@ohlabs/configuration 1.2.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chain-data.json +66 -0
- package/chain-slugs.js +3 -12
- package/chain-slugs.json +10 -0
- package/chain-slugs.mjs +6 -0
- package/chain.js +1 -81
- package/chains.mjs +6 -0
- package/package.json +1 -1
package/chain-data.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"production": {
|
|
3
|
+
"arbitrum": {
|
|
4
|
+
"chainId": 42161,
|
|
5
|
+
"rpc": "https://arb1.arbitrum.io/rpc",
|
|
6
|
+
"explorer": "https://arbiscan.io"
|
|
7
|
+
},
|
|
8
|
+
"b3": {
|
|
9
|
+
"chainId": 8333,
|
|
10
|
+
"rpc": "https://mainnet-rpc.b3.fun",
|
|
11
|
+
"explorer": "https://explorer.b3.fun"
|
|
12
|
+
},
|
|
13
|
+
"base": {
|
|
14
|
+
"chainId": 8453,
|
|
15
|
+
"rpc": "https://mainnet.base.org",
|
|
16
|
+
"explorer": "https://basescan.org"
|
|
17
|
+
},
|
|
18
|
+
"blast": {
|
|
19
|
+
"chainId": 81457,
|
|
20
|
+
"rpc": "https://rpc.blast.io",
|
|
21
|
+
"explorer": "https://blastscan.io"
|
|
22
|
+
},
|
|
23
|
+
"bnb": {
|
|
24
|
+
"chainId": 56,
|
|
25
|
+
"rpc": "https://bsc-dataseed.binance.org",
|
|
26
|
+
"explorer": "https://bscscan.com"
|
|
27
|
+
},
|
|
28
|
+
"ethereum": {
|
|
29
|
+
"chainId": 1,
|
|
30
|
+
"rpc": "https://rpc.ankr.com/eth",
|
|
31
|
+
"explorer": "https://etherscan.io"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"test": {
|
|
35
|
+
"arbitrum": {
|
|
36
|
+
"chainId": 421614,
|
|
37
|
+
"rpc": "https://sepolia-rollup.arbitrum.io/rpc",
|
|
38
|
+
"explorer": "https://sepolia.arbiscan.io"
|
|
39
|
+
},
|
|
40
|
+
"b3": {
|
|
41
|
+
"chainId": 1993,
|
|
42
|
+
"rpc": "https://testnet-rpc.b3.fun",
|
|
43
|
+
"explorer": "https://testnet-explorer.b3.fun"
|
|
44
|
+
},
|
|
45
|
+
"base": {
|
|
46
|
+
"chainId": 84532,
|
|
47
|
+
"rpc": "https://sepolia.base.org",
|
|
48
|
+
"explorer": "https://sepolia.basescan.org"
|
|
49
|
+
},
|
|
50
|
+
"blast": {
|
|
51
|
+
"chainId": 168587773,
|
|
52
|
+
"rpc": "https://sepolia.blast.io",
|
|
53
|
+
"explorer": "https://testnet.blastscan.io"
|
|
54
|
+
},
|
|
55
|
+
"bnb": {
|
|
56
|
+
"chainId": 97,
|
|
57
|
+
"rpc": "https://data-seed-prebsc-1-s1.bnbchain.org:8545",
|
|
58
|
+
"explorer": "https://testnet.bscscan.com"
|
|
59
|
+
},
|
|
60
|
+
"ethereum": {
|
|
61
|
+
"chainId": 11155111,
|
|
62
|
+
"rpc": "https://rpc.sepolia.org",
|
|
63
|
+
"explorer": "https://sepolia.etherscan.io"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
package/chain-slugs.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
const CHAIN_SLUGS = Object.freeze(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Base: 'base',
|
|
5
|
-
Blast: 'blast',
|
|
6
|
-
BNB: 'bnb',
|
|
7
|
-
Ethereum: 'ethereum',
|
|
8
|
-
Monad: 'monad',
|
|
9
|
-
Story: 'story'
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
module.exports = { CHAIN_SLUGS };
|
|
1
|
+
const CHAIN_SLUGS = Object.freeze(require("./chain-slugs.json"));
|
|
2
|
+
|
|
3
|
+
module.exports = { CHAIN_SLUGS };
|
package/chain-slugs.json
ADDED
package/chain-slugs.mjs
ADDED
package/chain.js
CHANGED
|
@@ -1,82 +1,2 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
const chains = {
|
|
4
|
-
production: {
|
|
5
|
-
[CHAIN_SLUGS.Arbitrum]: {
|
|
6
|
-
chainId: 42161,
|
|
7
|
-
rpc: "https://arb1.arbitrum.io/rpc",
|
|
8
|
-
explorer: "https://arbiscan.io"
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
[CHAIN_SLUGS.B3]: {
|
|
12
|
-
chainId: 8333,
|
|
13
|
-
rpc: "https://mainnet-rpc.b3.fun",
|
|
14
|
-
explorer: "https://explorer.b3.fun"
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
[CHAIN_SLUGS.Base]: {
|
|
18
|
-
chainId: 8453,
|
|
19
|
-
rpc: "https://mainnet.base.org",
|
|
20
|
-
explorer: "https://basescan.org"
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
[CHAIN_SLUGS.Blast]: {
|
|
24
|
-
chainId: 81457,
|
|
25
|
-
rpc: "https://rpc.blast.io",
|
|
26
|
-
explorer: "https://blastscan.io"
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
[CHAIN_SLUGS.BNB]: {
|
|
30
|
-
chainId: 56,
|
|
31
|
-
rpc: "https://bsc-dataseed.binance.org",
|
|
32
|
-
explorer: "https://bscscan.com"
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
[CHAIN_SLUGS.Ethereum]: {
|
|
36
|
-
chainId: 1,
|
|
37
|
-
rpc: "https://rpc.ankr.com/eth",
|
|
38
|
-
explorer: "https://etherscan.io"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
test: {
|
|
44
|
-
[CHAIN_SLUGS.Arbitrum]: {
|
|
45
|
-
chainId: 421614,
|
|
46
|
-
rpc: "https://sepolia-rollup.arbitrum.io/rpc",
|
|
47
|
-
explorer: "https://sepolia.arbiscan.io"
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
[CHAIN_SLUGS.B3]: {
|
|
51
|
-
chainId: 1993,
|
|
52
|
-
rpc: "https://testnet-rpc.b3.fun",
|
|
53
|
-
explorer: "https://testnet-explorer.b3.fun"
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
[CHAIN_SLUGS.Base]: {
|
|
57
|
-
chainId: 84532,
|
|
58
|
-
rpc: "https://sepolia.base.org",
|
|
59
|
-
explorer: "https://sepolia.basescan.org"
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
[CHAIN_SLUGS.Blast]: {
|
|
63
|
-
chainId: 168587773,
|
|
64
|
-
rpc: "https://sepolia.blast.io",
|
|
65
|
-
explorer: "https://testnet.blastscan.io"
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
[CHAIN_SLUGS.BNB]: {
|
|
69
|
-
chainId: 97,
|
|
70
|
-
rpc: "https://data-seed-prebsc-1-s1.bnbchain.org:8545",
|
|
71
|
-
explorer: "https://testnet.bscscan.com"
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
[CHAIN_SLUGS.Ethereum]: {
|
|
75
|
-
chainId: 11155111,
|
|
76
|
-
rpc: "https://rpc.sepolia.org",
|
|
77
|
-
explorer: "https://sepolia.etherscan.io"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
1
|
+
const chains = Object.freeze(require("./chain-data.json"));
|
|
82
2
|
exports.chains = chains;
|
package/chains.mjs
ADDED