Skip to content

Add Base Sepolia #1741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config/data/chain-to-technology.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"BNB_TESTNET": "BNB",
"BASE_MAINNET": "BASE",
"BASE_GOERLI": "BASE",
"BASE_SEPOLIA": "BASE",
"POLYGON_MAINNET": "POLYGON",
"POLYGON_MUMBAI": "POLYGON",
"GNOSIS_MAINNET": "GNOSIS",
Expand Down
6 changes: 6 additions & 0 deletions src/config/data/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@
"explorer": "https://basescan.org",
"nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 }
},
"BASE_SEPOLIA": {
"chainId": 84532,
"title": "Base Sepolia testnet",
"explorer": "https://sepolia.basescan.org",
"nativeCurrency": { "name": "Sepolia Ether", "symbol": "ETH", "decimals": 18 }
},
"BASE_GOERLI": {
"chainId": 84531,
"title": "Base Goerli testnet",
Expand Down
15 changes: 15 additions & 0 deletions src/content/resources/link-token-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,21 @@ ETH is used to pay for transactions on BASE. You can use the [BASE Bridge](https
| Decimals | 18 |
| Network status | [basescan.org](https://basescan.org/) |

### BASE Sepolia testnet

Testnet ETH is used to pay for transactions on BASE.

Testnet LINK is available at [faucets.chain.link](https://faucets.chain.link/base-testnet). Testnet ETH is available from one of the [BASE Network Faucets](https://docs.base.org/tools/network-faucets).

| Parameter | Value |
| :------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Chain ID | `84532` |
| Address | <Address contractUrl="https://sepolia.basescan.org/address/0xE4aB69C077896252FAFBD49EFD26B5D171A32410" urlId="84532_0xE4aB69C077896252FAFBD49EFD26B5D171A32410" urlClass="erc-token-address"/> |
| Name | Chainlink Token on BASE Sepolia testnet |
| Symbol | LINK |
| Decimals | 18 |
| Network status | [sepolia.basescan.org](https://sepolia.basescan.org/) |

### BASE Goerli testnet

Testnet ETH is used to pay for transactions on BASE.
Expand Down
7 changes: 7 additions & 0 deletions src/features/data/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,13 @@ export const CHAINS: Chain[] = [
rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-mainnet-base-1.json",
queryString: "base-mainnet",
},
{
name: "BASE Sepolia testnet",
explorerUrl: "https://sepolia.basescan.org/address/%s",
networkType: "testnet",
rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-testnet-sepolia-base-1.json",
queryString: "base-sepolia",
},
{
name: "BASE Goerli testnet",
explorerUrl: "https://goerli.basescan.org/address/%s",
Expand Down
18 changes: 13 additions & 5 deletions src/features/feeds/components/Tables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const DefaultTr = ({ network, proxy, showExtraDetails, isTestnet = false }) => (
<a
class={tableStyles.addressLink}
href={network.explorerUrl.replace("%s", proxy.proxyAddress ?? proxy.transmissionsAccount)}
target="_blank"
>
{proxy.proxyAddress ?? proxy.transmissionsAccount}
</a>
Expand Down Expand Up @@ -168,7 +169,9 @@ const DefaultTr = ({ network, proxy, showExtraDetails, isTestnet = false }) => (
<span class="label">Market hours:</span>
</dt>
<dd>
<a href="/data-feeds/selecting-data-feeds#market-hours">{proxy.docs.marketHours}</a>
<a href="/data-feeds/selecting-data-feeds#market-hours" target="_blank">
{proxy.docs.marketHours}
</a>
</dd>
</div>
)}
Expand Down Expand Up @@ -228,7 +231,7 @@ const ProofOfReserveTr = ({ network, proxy, showExtraDetails }) => (
<td aria-hidden={!showExtraDetails}>{proxy.decimals ? proxy.decimals : "N/A"}</td>
<td>
<div className={tableStyles.assetAddress}>
<a class={tableStyles.addressLink} href={network.explorerUrl.replace("%s", proxy.proxyAddress)}>
<a class={tableStyles.addressLink} href={network.explorerUrl.replace("%s", proxy.proxyAddress)} target="_blank">
{proxy.proxyAddress}
</a>
<button
Expand Down Expand Up @@ -271,7 +274,9 @@ const ProofOfReserveTr = ({ network, proxy, showExtraDetails }) => (
<span class="label">Market hours:</span>
</dt>
<dd>
<a href="/data-feeds/selecting-data-feeds#market-hours">{proxy.docs.marketHours}</a>
<a href="/data-feeds/selecting-data-feeds#market-hours" target="_blank">
{proxy.docs.marketHours}
</a>
</dd>
</div>
)}
Expand Down Expand Up @@ -322,7 +327,7 @@ const NftFloorTr = ({ network, proxy, showExtraDetails }) => (
>
<img src="/assets/icons/copyIcon.svg" alt="copy to clipboard" />
</button>
<a class={tableStyles.addressLink} href={network.explorerUrl.replace("%s", proxy.proxyAddress)}>
<a class={tableStyles.addressLink} href={network.explorerUrl.replace("%s", proxy.proxyAddress)} target="_blank">
{proxy.proxyAddress}
</a>
</div>
Expand Down Expand Up @@ -373,6 +378,7 @@ const StreamsTr = ({ network, proxy, showExtraDetails }) => (
style="font-size: 0.75em;"
class={tableStyles.addressLink}
href={network.explorerUrl.replace("%s", verifierProxies.get(proxy.contractAddress))}
target="_blank"
>
{verifierProxies.get(proxy.contractAddress)}
</a>
Expand Down Expand Up @@ -438,7 +444,9 @@ const StreamsTr = ({ network, proxy, showExtraDetails }) => (
<span class="label">Market hours:</span>
</dt>
<dd>
<a href="/data-feeds/selecting-data-feeds#market-hours">{proxy.docs.marketHours}</a>
<a href="/data-feeds/selecting-data-feeds#market-hours" target="_blank">
{proxy.docs.marketHours}
</a>
</dd>
</div>
) : (
Expand Down
16 changes: 16 additions & 0 deletions src/scripts/reference/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,22 @@
{ "name": "dexguru", "url": "https://base-goerli.dex.guru", "icon": "dexguru", "standard": "EIP3091" }
]
},
{
"name": "Base Sepolia Testnet",
"chain": "ETH",
"rpc": ["https://sepolia.base.org"],
"faucets": [],
"nativeCurrency": { "name": "Sepolia Ether", "symbol": "ETH", "decimals": 18 },
"infoURL": "https://base.org",
"shortName": "basesep",
"chainId": 84532,
"networkId": 84532,
"slip44": 1,
"icon": "baseTestnet",
"explorers": [
{ "name": "basescout", "url": "https://base-sepolia.blockscout.com", "icon": "blockscout", "standard": "EIP3091" }
]
},
{
"name": "Arbitrum Goerli",
"title": "Arbitrum Goerli Rollup Testnet",
Expand Down
1 change: 1 addition & 0 deletions src/scripts/reference/linkNameSymbol.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"1285": { "name": "ChainLink Token", "symbol": "LINK" },
"1284": { "name": "ChainLink Token", "symbol": "LINK" },
"84531": { "name": "ChainLink Token", "symbol": "LINK" },
"84532": { "name": "ChainLink Token", "symbol": "LINK" },
"8453": { "name": "ChainLink Token", "symbol": "LINK" },
"421614": { "name": "ChainLink Token", "symbol": "LINK" },
"421613": { "name": "ChainLink Token", "symbol": "LINK" },
Expand Down