Skip to content

Optimism Sepolia for Data Feeds #1730

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 5 commits into from
Jan 22, 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
2 changes: 2 additions & 0 deletions src/config/data/chain-to-technology.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
"ARBITRUM_SEPOLIA": "ARBITRUM",
"ARBITRUM_GOERLI": "ARBITRUM",
"OPTIMISM_MAINNET": "OPTIMISM",
"OPTIMISM_SEPOLIA": "OPTIMISM",
"OPTIMISM_GOERLI": "OPTIMISM",
"MOONRIVER_MAINNET": "MOONRIVER",
"MOONBEAM_MAINNET": "MOONBEAM",
"METIS_MAINNET": "METIS",
"CELO_MAINNET": "CELO",
"CELO_ALFAJORES": "CELO",
"POLYGON_ZKEVM_MAINNET": "POLYGON_ZKEVM",
"POLYGON_ZKEVM_TESTNET": "POLYGON_ZKEVM",
"SCROLL_MAINNET": "SCROLL",
"SCROLL_SEPOLIA": "SCROLL",
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 @@ -141,6 +141,12 @@
"explorer": "https://optimistic.etherscan.io",
"nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 }
},
"OPTIMISM_SEPOLIA": {
"chainId": 11155420,
"title": "Optimism Sepolia testnet",
"explorer": "https://sepolia-optimism.etherscan.io",
"nativeCurrency": { "name": "Sepolia Ether", "symbol": "ETH", "decimals": 18 }
},
"OPTIMISM_GOERLI": {
"chainId": 420,
"title": "Optimism Goerli testnet",
Expand Down
1 change: 1 addition & 0 deletions src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export type SupportedChain =
| "ARBITRUM_SEPOLIA"
| "ARBITRUM_GOERLI"
| "OPTIMISM_MAINNET"
| "OPTIMISM_SEPOLIA"
| "OPTIMISM_GOERLI"
| "MOONRIVER_MAINNET"
| "MOONBEAM_MAINNET"
Expand Down
1 change: 1 addition & 0 deletions src/config/web3Providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const chainToProvider: Record<SupportedChain, () => providers.Provider> =
ARBITRUM_GOERLI: () =>
new providers.JsonRpcProvider("https://arb-goerli.g.alchemy.com/v2/AwZE27jvfRidiu-6FFunBzP3Bff0XFNx"),
OPTIMISM_MAINNET: () => new providers.JsonRpcProvider("https://rpc.ankr.com/optimism"),
OPTIMISM_SEPOLIA: () => new providers.JsonRpcProvider("https://sepolia.optimism.io/"),
OPTIMISM_GOERLI: () =>
new providers.JsonRpcProvider("https://opt-goerli.g.alchemy.com/v2/5lHtpzqF7gxVKsSfpyoUbisei8OwoIRS"),
MOONRIVER_MAINNET: () => new providers.JsonRpcProvider("https://rpc.api.moonriver.moonbeam.network"),
Expand Down
17 changes: 16 additions & 1 deletion src/content/resources/link-token-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,26 @@ ETH is used to pay for transactions on Optimism. Use the [Optimism Bridge](https
| Decimals | 18 |
| Network status | [status.optimism.io](https://status.optimism.io/) |

### Optimism Sepolia testnet

Testnet ETH is used to pay for transactions on Optimism. Use the [Optimism Bridge](https://app.optimism.io/bridge) to transfer testnet ETH and LINK from Ethereum Sepolia to Optimistim Sepolia.

Testnet LINK is available at [faucets.chain.link](https://faucets.chain.link/sepolia).

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

### Optimism Goerli testnet

Testnet ETH is used to pay for transactions on Optimism. Use the [Optimism Bridge](https://app.optimism.io/bridge) to transfer testnet ETH and LINK from Ethereum Goerli to Optimistim Goerli.

Testnet LINK is available at [faucets.chain.link](https://faucets.chain.link/goerli).
Testnet LINK is available at [faucets.chain.link](https://faucets.chain.link/optimism-goerli).

| Parameter | Value |
| :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
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 @@ -231,6 +231,13 @@ export const CHAINS: Chain[] = [
rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-mainnet-optimism-1.json",
queryString: "optimism-mainnet",
},
{
name: "Optimism Sepolia",
explorerUrl: "https://sepolia-optimism.etherscan.io/address/%s",
networkType: "testnet",
rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-testnet-sepolia-optimism-1.json",
queryString: "optimism-sepolia",
},
{
name: "Optimism Goerli",
explorerUrl: "https://goerli-optimism.etherscan.io/address/%s",
Expand Down
20 changes: 20 additions & 0 deletions src/scripts/reference/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -717,5 +717,25 @@
{ "name": "etherscan-sepolia", "url": "https://sepolia.etherscan.io", "standard": "EIP3091" },
{ "name": "otterscan-sepolia", "url": "https://sepolia.otterscan.io", "standard": "EIP3091" }
]
},
{
"name": "OP Sepolia Testnet",
"chain": "ETH",
"rpc": ["https://sepolia.optimism.io"],
"faucets": ["https://app.optimism.io/faucet"],
"nativeCurrency": { "name": "Sepolia Ether", "symbol": "ETH", "decimals": 18 },
"infoURL": "https://optimism.io",
"shortName": "opsep",
"chainId": 11155420,
"networkId": 11155420,
"slip44": 1,
"explorers": [
{
"name": "opscout",
"url": "https://optimism-sepolia.blockscout.com",
"icon": "blockscout",
"standard": "EIP3091"
}
]
}
]
1 change: 1 addition & 0 deletions src/scripts/reference/linkNameSymbol.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"4002": { "name": "ChainLink Token", "symbol": "LINK" },
"42161": { "name": "ChainLink Token", "symbol": "LINK" },
"10": { "name": "ChainLink Token", "symbol": "LINK" },
"11155420": { "name": "ChainLink Token", "symbol": "LINK" },
"420": { "name": "ChainLink Token", "symbol": "LINK" },
"1285": { "name": "ChainLink Token", "symbol": "LINK" },
"1284": { "name": "ChainLink Token", "symbol": "LINK" },
Expand Down