Skip to content

Commit

Permalink
VRF: Add BASE (#1997)
Browse files Browse the repository at this point in the history
* optimism mainnet and testnet

* BASE mainnet and testnet

* Split

* Add release note
  • Loading branch information
thedriftofwords authored Aug 15, 2024
1 parent 71c0329 commit 868c2e2
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/content/vrf/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ isMdx: true
whatsnext: { "Migrate to VRF V2.5": "/vrf/v2-5/migration-from-v2" }
---

## 2024-08-15 - VRF V2.5 on BASE

VRF V2.5 is available on [BASE mainnet](/vrf/v2-5/supported-networks#base-mainnet) and [BASE Sepolia testnet](/vrf/v2-5/supported-networks#base-sepolia-testnet). See the [VRF V2.5 Supported Networks](/vrf/v2-5/supported-networks) page to get configuration details for both subscription and direct funding.

## 2024-07-15 - Deprecation announcement

VRF V2 and V1 will be deprecated on November 29, 2024. Please [migrate to VRF V2.5](/vrf/v2-5/migration-from-v2) before then.
Expand All @@ -15,6 +19,8 @@ The docs for VRF V2 are still available and have been moved to the legacy sectio
- [VRF V2 Subscription method](/vrf/v2/subscription)
- [VRF V2 Direct funding method](/vrf/v2/direct-funding)

There is also a [migration guide available for V1 users migrating to V2.5](/vrf/v2-5/migration-from-v1).

## 2024-05-24 - Updated VRF V2.5 contracts

The [`@chainlink/contracts`](https://www.npmjs.com/package/@chainlink/contracts/v/1.1.1) package version 1.1.1 is now available. It includes the updated wrapper and interface contracts for VRF 2.5 direct funding, which had not been included in the `@chainlink/contracts` package version 1.1.0. The `DirectFundingConsumer.sol` example contract has been updated to reflect this.
Expand Down
80 changes: 80 additions & 0 deletions src/content/vrf/v2-5/supported-networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,83 @@ VRF v2.5 coordinators for subscription funding are available on several networks
| Coordinator Gas Overhead per Word | 435 |
</Fragment>
</TabsContent>

### BASE mainnet

{/* prettier-ignore */}
<TabsContent sharedStore="vrfMethod" client:visible>
<Fragment slot="tab.1">Subscription</Fragment>
<Fragment slot="tab.2">Direct funding</Fragment>
<Fragment slot="panel.1">
| Item | Value |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| LINK Token | <Address contractUrl="https://basescan.org/address/0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196" urlId="8453_0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196" urlClass="erc-token-address"/> |
| |
| VRF Coordinator | <Address contractUrl="https://basescan.org/address/0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634" /> |
| 2 gwei Key Hash | <CopyText text="0x00b81b5a830cb0a4009fbd8904de511e28631e62ce5ad231373d3cdad373ccab" code/> |
| 30 gwei Key Hash | <CopyText text="0xdc2f87677b01473c763cb0aee938ed3341512f6057324a584e5944e786144d70" code/> |
| Premium percentage <br/> (paying with BASE) | 60 |
| Premium percentage <br/> (paying with LINK) | 50 |
| Max Gas Limit | 2,500,000 |
| Minimum Confirmations | 0 |
| Maximum Confirmations | 200 |
| Maximum Random Values | 500 |
</Fragment>
<Fragment slot="panel.2">
| Item | Value |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| LINK Token | <Address contractUrl="https://basescan.org/address/0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196" urlId="8453_0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196" urlClass="erc-token-address"/> |
| VRF Wrapper | <Address contractUrl="https://basescan.org/address/0xb0407dbe851f8318bd31404A49e658143C982F23" /> |
| VRF Coordinator | <Address contractUrl="https://basescan.org/address/0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634" /> |
| 2 gwei Key Hash | <CopyText text="0x00b81b5a830cb0a4009fbd8904de511e28631e62ce5ad231373d3cdad373ccab" code/> |
| 30 gwei Key Hash | <CopyText text="0xdc2f87677b01473c763cb0aee938ed3341512f6057324a584e5944e786144d70" code/> | |
| Premium percentage <br/> (paying with BASE) | 60 |
| Premium percentage <br/> (paying with LINK) | 50 |
| Minimum Confirmations | 0 |
| Maximum Confirmations | 200 |
| Maximum Random Values | 10 |
| Wrapper Gas overhead | 13400 |
| Coordinator Gas Overhead (Native) | 128500 |
| Coordinator Gas Overhead (LINK) | 150400 |
| Coordinator Gas Overhead per Word | 435 |
</Fragment>
</TabsContent>

### BASE Sepolia testnet

{/* prettier-ignore */}
<TabsContent sharedStore="vrfMethod" client:visible>
<Fragment slot="tab.1">Subscription</Fragment>
<Fragment slot="tab.2">Direct funding</Fragment>
<Fragment slot="panel.1">
| Item | Value |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| LINK Token | <Address contractUrl="https://sepolia.basescan.org/address/0xE4aB69C077896252FAFBD49EFD26B5D171A32410" urlId="84532_0xE4aB69C077896252FAFBD49EFD26B5D171A32410" urlClass="erc-token-address"/> |
| |
| VRF Coordinator | <Address contractUrl="https://sepolia.basescan.org/address/0x5C210eF41CD1a72de73bF76eC39637bB0d3d7BEE" /> |
| 30 gwei Key Hash | <CopyText text="0x9e1344a1247c8a1785d0a4681a27152bffdb43666ae5bf7d14d24a5efd44bf71" code/> |
| Premium percentage <br/> (paying with Sepolia BASE ETH) | 60 |
| Premium percentage <br/> (paying with LINK) | 50 |
| Max Gas Limit | 2,500,000 |
| Minimum Confirmations | 0 |
| Maximum Confirmations | 200 |
| Maximum Random Values | 500 |
</Fragment>
<Fragment slot="panel.2">
| Item | Value |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| LINK Token | <Address contractUrl="https://sepolia.basescan.org/address/0xE4aB69C077896252FAFBD49EFD26B5D171A32410" urlId="84532_0xE4aB69C077896252FAFBD49EFD26B5D171A32410" urlClass="erc-token-address"/> |
| VRF Wrapper | <Address contractUrl="https://sepolia.basescan.org/address/0x7a1BaC17Ccc5b313516C5E16fb24f7659aA5ebed" /> |
| VRF Coordinator | <Address contractUrl="https://sepolia.basescan.org/address/0x5C210eF41CD1a72de73bF76eC39637bB0d3d7BEE" /> |
| 30 gwei Key Hash | <CopyText text="0x9e1344a1247c8a1785d0a4681a27152bffdb43666ae5bf7d14d24a5efd44bf71" code/> | |
| Premium percentage <br/> (paying with Sepolia BASE ETH) | 60 |
| Premium percentage <br/> (paying with LINK) | 50 |
| Minimum Confirmations | 0 |
| Maximum Confirmations | 200 |
| Maximum Random Values | 10 |
| Wrapper Gas overhead | 13400 |
| Coordinator Gas Overhead (Native) | 128500 |
| Coordinator Gas Overhead (LINK) | 150400 |
| Coordinator Gas Overhead per Word | 435 |
</Fragment>
</TabsContent>

0 comments on commit 868c2e2

Please sign in to comment.