Skip to content
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

feature: add L2 chains config #78

Merged
merged 3 commits into from
Dec 26, 2023
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: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@blocto/dappauth": "^2.1.0",
"@blocto/fcl": "^1.0.0-alpha.1",
"@blocto/sdk": "0.8.1-beta.0",
"@blocto/sdk": "0.9.0-beta.3",
"@chakra-ui/icons": "^1.1.1",
"@chakra-ui/react": "^1.7.4",
"@emotion/react": "^11",
Expand Down
101 changes: 100 additions & 1 deletion src/services/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,33 @@ export const supportedChains = [
faucet: "https://goerlifaucet.com/",
environment: "testnet",
},
{
name: "Ethereum Sepolia",
chainId: "0xaa36a7",
rpcUrls: ["https://ethereum-sepolia.blockpi.network/v1/rpc/public"],
faucet: "https://sepoliafaucet.com/",
environment: "testnet",
},
{
name: "Arbitrum Mainnet",
chainId: "0xa4b1",
rpcUrls: ["https://arb1.arbitrum.io/rpc"],
environment: "mainnet",
},
{
name: "Arbitrum Testnet",
name: "Arbitrum Goerli Testnet",
chainId: "0x66eed",
rpcUrls: ["https://goerli-rollup.arbitrum.io/rpc"],
faucet: "https://faucet.triangleplatform.com/arbitrum/goerli",
environment: "testnet",
},
{
name: "Arbitrum Sepolia Testnet",
chainId: "0x66eee",
rpcUrls: ["https://arbitrum-sepolia.blockpi.network/v1/rpc/public"],
faucet: "https://faucet.quicknode.com/arbitrum/sepolia",
environment: "testnet",
},
{
name: "BSC",
chainId: "0x38",
Expand Down Expand Up @@ -94,6 +108,91 @@ export const supportedChains = [
faucet: "https://faucet.paradigm.xyz/",
environment: "testnet",
},
{
name: "Optimism Sepolia Testnet",
chainId: "0xaa37dc",
rpcUrls: ["https://sepolia.optimism.io"],
faucet: "https://faucet.quicknode.com/optimism/sepolia",
environment: "testnet",
},
{
name: "Base",
chainId: "0x2105",
rpcUrls: ["https://mainnet.base.org"],
environment: "mainnet",
},
{
name: "Base Goerli Testnet",
chainId: "0x14a33",
rpcUrls: ["https://goerli.base.org"],
faucet: "https://faucet.quicknode.com/base/goerli",
environment: "testnet",
},
{
name: "Base Sepolia Testnet",
chainId: "0x14a34",
rpcUrls: ["https://sepolia.base.org"],
faucet: "https://faucet.quicknode.com/base/sepolia",
environment: "testnet",
},
{
name: "Zora",
chainId: "0x76adf1",
rpcUrls: ["https://rpc.zora.energy"],
environment: "mainnet",
},
{
name: "Zora Goerli Testnet",
chainId: "0x3E7",
rpcUrls: ["https://testnet.rpc.zora.energy"],
faucet: "https://testnet.zora.co",
environment: "testnet",
},
{
name: "Zora Sepolia Testnet",
chainId: "0x3b9ac9ff",
rpcUrls: ["https://sepolia.rpc.zora.energy"],
faucet: "https://testnet.zora.co",
environment: "testnet",
},
{
name: "Scroll",
chainId: "0x82750",
rpcUrls: ["https://rpc.scroll.io"],
environment: "mainnet",
},
{
name: "Scroll Goerli Testnet",
chainId: "0x82751",
rpcUrls: ["https://alpha-rpc.scroll.io/l2"],
environment: "testnet",
},
{
name: "Scroll Sepolia Testnet",
chainId: "0x8274f",
rpcUrls: ["https://sepolia-rpc.scroll.io"],
faucet: "https://docs.scroll.io/en/user-guide/faucet/",
environment: "testnet",
},
{
name: "Linea",
chainId: "0xe708",
rpcUrls: ["https://rpc.linea.build"],
environment: "mainnet",
},
{
name: "Linea Goerli Testnet",
chainId: "0xe704",
rpcUrls: ["https://rpc.goerli.linea.build"],
faucet: "https://faucet.goerli.linea.build/",
environment: "testnet",
},
{
name: "zKatana Sepolia Testnet",
chainId: "0x133e40",
rpcUrls: ["https://rpc.startale.com/zkatana"],
environment: "testnet",
},
];

const bloctoSDK = new BloctoSDK({
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1336,10 +1336,10 @@
deepmerge "^4.2.2"
sha3 "^2.1.4"

"@blocto/sdk@0.8.1-beta.0":
version "0.8.1-beta.0"
resolved "https://registry.yarnpkg.com/@blocto/sdk/-/sdk-0.8.1-beta.0.tgz#83da285c666c56c9ca144dbee46f3e01c6b886f0"
integrity sha512-MgKvdmvzDIphxZFnES5L7K3y2zMwvE4AGB9VEEOfzAN75iakeBDF9clZXY38gHp5qWBNV6O9Hvco80P+mphRkw==
"@blocto/sdk@0.9.0-beta.3":
version "0.9.0-beta.3"
resolved "https://registry.yarnpkg.com/@blocto/sdk/-/sdk-0.9.0-beta.3.tgz#102da56408373c4a4b346662c0230e91af65799e"
integrity sha512-OlqumUEWF8wKvph5Ox3RqurGlAlwDMRf/eY/rX3Ts60RSnL2kznmilmRCJfl3oiNkmwWH9eCWd8DFnxhp/LSZw==
dependencies:
buffer "^6.0.3"
eip1193-provider "^1.0.1"
Expand Down
Loading