@wagmi/core 0.4.0-test.0 → 0.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/chains/dist/wagmi-core-chains.cjs.d.ts +1 -11
- package/chains/dist/wagmi-core-chains.cjs.dev.js +23 -0
- package/chains/dist/wagmi-core-chains.cjs.js +6 -15
- package/chains/dist/wagmi-core-chains.cjs.prod.js +23 -0
- package/chains/dist/wagmi-core-chains.esm.js +2 -0
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.d.ts +1 -11
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.dev.js +263 -0
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.js +6 -15
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.prod.js +263 -0
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.esm.js +241 -0
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.d.ts +1 -11
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.dev.js +80 -0
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.js +6 -15
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.prod.js +80 -0
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.esm.js +76 -0
- package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.d.ts +1 -11
- package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.dev.js +264 -0
- package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.js +6 -15
- package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.prod.js +264 -0
- package/connectors/mock/dist/wagmi-core-connectors-mock.esm.js +255 -0
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.d.ts +1 -11
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.dev.js +227 -0
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.js +6 -15
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.prod.js +227 -0
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.esm.js +205 -0
- package/dist/base-33eceda3.esm.js +302 -0
- package/dist/base-457b5f55.cjs.prod.js +328 -0
- package/dist/base-6f16410c.cjs.dev.js +328 -0
- package/dist/chains-1390c48d.cjs.prod.js +416 -0
- package/dist/chains-2ca34f98.cjs.dev.js +416 -0
- package/dist/chains-e98fda1e.esm.js +395 -0
- package/dist/client-71653c40.esm.js +641 -0
- package/dist/client-7864fb0c.cjs.prod.js +652 -0
- package/dist/client-b3902dbf.cjs.dev.js +652 -0
- package/dist/declarations/src/actions/accounts/connect.d.ts +18 -0
- package/dist/declarations/src/actions/accounts/disconnect.d.ts +1 -0
- package/dist/declarations/src/actions/accounts/fetchBalance.d.ts +20 -0
- package/dist/declarations/src/actions/accounts/fetchSigner.d.ts +3 -0
- package/dist/declarations/src/actions/accounts/getAccount.d.ts +36 -0
- package/dist/declarations/src/actions/accounts/getNetwork.d.ts +8 -0
- package/dist/declarations/src/actions/accounts/index.d.ts +12 -0
- package/dist/declarations/src/actions/accounts/signMessage.d.ts +9 -0
- package/dist/declarations/src/actions/accounts/signTypedData.d.ts +20 -0
- package/dist/declarations/src/actions/accounts/switchNetwork.d.ts +6 -0
- package/dist/declarations/src/actions/accounts/watchAccount.d.ts +12 -0
- package/dist/declarations/src/actions/accounts/watchNetwork.d.ts +10 -0
- package/dist/declarations/src/actions/accounts/watchSigner.d.ts +3 -0
- package/dist/declarations/src/actions/contracts/getContract.d.ts +10 -0
- package/dist/declarations/src/actions/contracts/index.d.ts +7 -0
- package/dist/declarations/src/actions/contracts/multicall.d.ts +21 -0
- package/dist/declarations/src/actions/contracts/readContract.d.ts +17 -0
- package/dist/declarations/src/actions/contracts/readContracts.d.ts +19 -0
- package/dist/declarations/src/actions/contracts/watchContractEvent.d.ts +14 -0
- package/dist/declarations/src/actions/contracts/watchReadContract.d.ts +6 -0
- package/dist/declarations/src/actions/contracts/watchReadContracts.d.ts +6 -0
- package/dist/declarations/src/actions/contracts/writeContract.d.ts +16 -0
- package/dist/declarations/src/actions/ens/fetchEnsAddress.d.ts +8 -0
- package/dist/declarations/src/actions/ens/fetchEnsAvatar.d.ts +8 -0
- package/dist/declarations/src/actions/ens/fetchEnsName.d.ts +8 -0
- package/dist/declarations/src/actions/ens/fetchEnsResolver.d.ts +9 -0
- package/dist/declarations/src/actions/ens/index.d.ts +4 -0
- package/dist/declarations/src/actions/index.d.ts +7 -0
- package/dist/declarations/src/actions/network-status/fetchBlockNumber.d.ts +5 -0
- package/dist/declarations/src/actions/network-status/fetchFeeData.d.ts +16 -0
- package/dist/declarations/src/actions/network-status/index.d.ts +3 -0
- package/dist/declarations/src/actions/network-status/watchBlockNumber.d.ts +6 -0
- package/dist/declarations/src/actions/providers/getProvider.d.ts +7 -0
- package/dist/declarations/src/actions/providers/getWebSocketProvider.d.ts +7 -0
- package/dist/declarations/src/actions/providers/index.d.ts +4 -0
- package/dist/declarations/src/actions/providers/watchProvider.d.ts +4 -0
- package/dist/declarations/src/actions/providers/watchWebSocketProvider.d.ts +4 -0
- package/dist/declarations/src/actions/tokens/fetchToken.d.ts +20 -0
- package/dist/declarations/src/actions/tokens/index.d.ts +1 -0
- package/dist/declarations/src/actions/transactions/index.d.ts +2 -0
- package/dist/declarations/src/actions/transactions/sendTransaction.d.ts +12 -0
- package/dist/declarations/src/actions/transactions/waitForTransaction.d.ts +17 -0
- package/dist/declarations/src/chains.d.ts +1 -0
- package/dist/declarations/src/client.d.ts +77 -0
- package/dist/declarations/src/connectors/base.d.ts +61 -0
- package/dist/declarations/src/connectors/coinbaseWallet.d.ts +54 -0
- package/dist/declarations/src/connectors/index.d.ts +2 -0
- package/dist/declarations/src/connectors/injected.d.ts +56 -0
- package/dist/declarations/src/connectors/metaMask.d.ts +13 -0
- package/dist/declarations/src/connectors/mock/connector.d.ts +34 -0
- package/dist/declarations/src/connectors/mock/index.d.ts +2 -0
- package/dist/declarations/src/connectors/mock/provider.d.ts +40 -0
- package/dist/declarations/src/connectors/walletConnect.d.ts +39 -0
- package/dist/declarations/src/constants/abis.d.ts +2 -0
- package/dist/declarations/src/constants/blockExplorers.d.ts +9 -0
- package/dist/declarations/src/constants/chains.d.ts +55 -0
- package/dist/declarations/src/constants/index.d.ts +8 -0
- package/dist/declarations/src/constants/multicall.d.ts +25 -0
- package/dist/declarations/src/constants/rpcs.d.ts +9 -0
- package/dist/declarations/src/constants/units.d.ts +1 -0
- package/dist/declarations/src/errors.d.ts +94 -0
- package/dist/declarations/src/index.d.ts +13 -0
- package/dist/declarations/src/providers/alchemy.d.ts +7 -0
- package/dist/declarations/src/providers/infura.d.ts +7 -0
- package/dist/declarations/src/providers/jsonRpc.d.ts +11 -0
- package/dist/declarations/src/providers/public.d.ts +6 -0
- package/dist/declarations/src/storage.d.ts +12 -0
- package/dist/declarations/src/types/index.d.ts +163 -0
- package/dist/declarations/src/utils/configureChains.d.ts +26 -0
- package/dist/declarations/src/utils/getInjectedName.d.ts +1 -0
- package/dist/declarations/src/utils/index.d.ts +5 -0
- package/dist/declarations/src/utils/normalizeChainId.d.ts +1 -0
- package/dist/declarations/src/utils/warn.d.ts +1 -0
- package/dist/rpcs-7cfbd91c.esm.js +30 -0
- package/dist/rpcs-9c4eb960.cjs.dev.js +35 -0
- package/dist/rpcs-b3c52116.cjs.prod.js +35 -0
- package/dist/wagmi-core.cjs.d.ts +1 -11
- package/dist/wagmi-core.cjs.dev.js +1110 -0
- package/dist/wagmi-core.cjs.js +6 -15
- package/dist/wagmi-core.cjs.prod.js +1110 -0
- package/dist/wagmi-core.esm.js +1040 -0
- package/package.json +15 -3
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.d.ts +1 -11
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.dev.js +38 -0
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.js +6 -15
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.prod.js +38 -0
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.esm.js +34 -0
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.d.ts +1 -11
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.dev.js +38 -0
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.js +6 -15
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.prod.js +38 -0
- package/providers/infura/dist/wagmi-core-providers-infura.esm.js +34 -0
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.d.ts +1 -11
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.dev.js +48 -0
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.js +6 -15
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.prod.js +48 -0
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.esm.js +44 -0
- package/providers/public/dist/wagmi-core-providers-public.cjs.d.ts +1 -11
- package/providers/public/dist/wagmi-core-providers-public.cjs.dev.js +34 -0
- package/providers/public/dist/wagmi-core-providers-public.cjs.js +6 -15
- package/providers/public/dist/wagmi-core-providers-public.cjs.prod.js +34 -0
- package/providers/public/dist/wagmi-core-providers-public.esm.js +30 -0
- package/connectors/injected/dist/wagmi-core-connectors-injected.cjs.d.ts +0 -1
- package/connectors/injected/dist/wagmi-core-connectors-injected.cjs.dev.js +0 -200
- package/connectors/injected/dist/wagmi-core-connectors-injected.cjs.js +0 -7
- package/connectors/injected/dist/wagmi-core-connectors-injected.cjs.prod.js +0 -200
- package/connectors/injected/dist/wagmi-core-connectors-injected.esm.js +0 -196
- package/connectors/walletLink/dist/wagmi-core-connectors-walletLink.cjs.d.ts +0 -11
- package/connectors/walletLink/dist/wagmi-core-connectors-walletLink.cjs.js +0 -16
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { a as alchemyRpcUrls, i as infuraRpcUrls, d as defaultAlchemyId } from './rpcs-7cfbd91c.esm.js';
|
|
2
|
+
|
|
3
|
+
const etherscanBlockExplorers = {
|
|
4
|
+
mainnet: {
|
|
5
|
+
name: 'Etherscan',
|
|
6
|
+
url: 'https://etherscan.io'
|
|
7
|
+
},
|
|
8
|
+
ropsten: {
|
|
9
|
+
name: 'Etherscan',
|
|
10
|
+
url: 'https://ropsten.etherscan.io'
|
|
11
|
+
},
|
|
12
|
+
rinkeby: {
|
|
13
|
+
name: 'Etherscan',
|
|
14
|
+
url: 'https://rinkeby.etherscan.io'
|
|
15
|
+
},
|
|
16
|
+
goerli: {
|
|
17
|
+
name: 'Etherscan',
|
|
18
|
+
url: 'https://goerli.etherscan.io'
|
|
19
|
+
},
|
|
20
|
+
kovan: {
|
|
21
|
+
name: 'Etherscan',
|
|
22
|
+
url: 'https://kovan.etherscan.io'
|
|
23
|
+
},
|
|
24
|
+
optimism: {
|
|
25
|
+
name: 'Etherscan',
|
|
26
|
+
url: 'https://optimistic.etherscan.io'
|
|
27
|
+
},
|
|
28
|
+
optimismKovan: {
|
|
29
|
+
name: 'Etherscan',
|
|
30
|
+
url: 'https://kovan-optimistic.etherscan.io'
|
|
31
|
+
},
|
|
32
|
+
polygon: {
|
|
33
|
+
name: 'PolygonScan',
|
|
34
|
+
url: 'https://polygonscan.com'
|
|
35
|
+
},
|
|
36
|
+
polygonMumbai: {
|
|
37
|
+
name: 'PolygonScan',
|
|
38
|
+
url: 'https://mumbai.polygonscan.com'
|
|
39
|
+
},
|
|
40
|
+
arbitrum: {
|
|
41
|
+
name: 'Arbiscan',
|
|
42
|
+
url: 'https://arbiscan.io'
|
|
43
|
+
},
|
|
44
|
+
arbitrumRinkeby: {
|
|
45
|
+
name: 'Arbiscan',
|
|
46
|
+
url: 'https://testnet.arbiscan.io'
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const chainId = {
|
|
51
|
+
mainnet: 1,
|
|
52
|
+
ropsten: 3,
|
|
53
|
+
rinkeby: 4,
|
|
54
|
+
goerli: 5,
|
|
55
|
+
kovan: 42,
|
|
56
|
+
optimism: 10,
|
|
57
|
+
optimismKovan: 69,
|
|
58
|
+
polygon: 137,
|
|
59
|
+
polygonMumbai: 80001,
|
|
60
|
+
arbitrum: 42161,
|
|
61
|
+
arbitrumRinkeby: 421611,
|
|
62
|
+
localhost: 1337,
|
|
63
|
+
hardhat: 31337,
|
|
64
|
+
foundry: 31337
|
|
65
|
+
};
|
|
66
|
+
const mainnet = {
|
|
67
|
+
id: chainId.mainnet,
|
|
68
|
+
name: 'Ethereum',
|
|
69
|
+
network: 'homestead',
|
|
70
|
+
nativeCurrency: {
|
|
71
|
+
name: 'Ether',
|
|
72
|
+
symbol: 'ETH',
|
|
73
|
+
decimals: 18
|
|
74
|
+
},
|
|
75
|
+
rpcUrls: {
|
|
76
|
+
alchemy: alchemyRpcUrls.mainnet,
|
|
77
|
+
infura: infuraRpcUrls.mainnet,
|
|
78
|
+
default: "".concat(alchemyRpcUrls.mainnet, "/").concat(defaultAlchemyId)
|
|
79
|
+
},
|
|
80
|
+
blockExplorers: {
|
|
81
|
+
etherscan: etherscanBlockExplorers.mainnet,
|
|
82
|
+
default: etherscanBlockExplorers.mainnet
|
|
83
|
+
},
|
|
84
|
+
ens: {
|
|
85
|
+
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e'
|
|
86
|
+
},
|
|
87
|
+
multicall: {
|
|
88
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
89
|
+
blockCreated: 14353601
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const ropsten = {
|
|
93
|
+
id: chainId.ropsten,
|
|
94
|
+
name: 'Ropsten',
|
|
95
|
+
network: 'ropsten',
|
|
96
|
+
nativeCurrency: {
|
|
97
|
+
name: 'Ropsten Ether',
|
|
98
|
+
symbol: 'ROP',
|
|
99
|
+
decimals: 18
|
|
100
|
+
},
|
|
101
|
+
rpcUrls: {
|
|
102
|
+
alchemy: alchemyRpcUrls.ropsten,
|
|
103
|
+
infura: infuraRpcUrls.ropsten,
|
|
104
|
+
default: "".concat(alchemyRpcUrls.ropsten, "/").concat(defaultAlchemyId)
|
|
105
|
+
},
|
|
106
|
+
blockExplorers: {
|
|
107
|
+
etherscan: etherscanBlockExplorers.ropsten,
|
|
108
|
+
default: etherscanBlockExplorers.ropsten
|
|
109
|
+
},
|
|
110
|
+
ens: {
|
|
111
|
+
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e'
|
|
112
|
+
},
|
|
113
|
+
multicall: {
|
|
114
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
115
|
+
blockCreated: 12063863
|
|
116
|
+
},
|
|
117
|
+
testnet: true
|
|
118
|
+
};
|
|
119
|
+
const rinkeby = {
|
|
120
|
+
id: chainId.rinkeby,
|
|
121
|
+
name: 'Rinkeby',
|
|
122
|
+
network: 'rinkeby',
|
|
123
|
+
nativeCurrency: {
|
|
124
|
+
name: 'Rinkeby Ether',
|
|
125
|
+
symbol: 'RIN',
|
|
126
|
+
decimals: 18
|
|
127
|
+
},
|
|
128
|
+
rpcUrls: {
|
|
129
|
+
alchemy: alchemyRpcUrls.rinkeby,
|
|
130
|
+
infura: infuraRpcUrls.rinkeby,
|
|
131
|
+
default: "".concat(alchemyRpcUrls.rinkeby, "/").concat(defaultAlchemyId)
|
|
132
|
+
},
|
|
133
|
+
blockExplorers: {
|
|
134
|
+
etherscan: etherscanBlockExplorers.rinkeby,
|
|
135
|
+
default: etherscanBlockExplorers.rinkeby
|
|
136
|
+
},
|
|
137
|
+
ens: {
|
|
138
|
+
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e'
|
|
139
|
+
},
|
|
140
|
+
multicall: {
|
|
141
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
142
|
+
blockCreated: 10299530
|
|
143
|
+
},
|
|
144
|
+
testnet: true
|
|
145
|
+
};
|
|
146
|
+
const goerli = {
|
|
147
|
+
id: chainId.goerli,
|
|
148
|
+
name: 'Goerli',
|
|
149
|
+
network: 'goerli',
|
|
150
|
+
nativeCurrency: {
|
|
151
|
+
name: 'Goerli Ether',
|
|
152
|
+
symbol: 'GOR',
|
|
153
|
+
decimals: 18
|
|
154
|
+
},
|
|
155
|
+
rpcUrls: {
|
|
156
|
+
alchemy: alchemyRpcUrls.goerli,
|
|
157
|
+
infura: infuraRpcUrls.goerli,
|
|
158
|
+
default: "".concat(alchemyRpcUrls.goerli, "/").concat(defaultAlchemyId)
|
|
159
|
+
},
|
|
160
|
+
blockExplorers: {
|
|
161
|
+
etherscan: etherscanBlockExplorers.goerli,
|
|
162
|
+
default: etherscanBlockExplorers.goerli
|
|
163
|
+
},
|
|
164
|
+
ens: {
|
|
165
|
+
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e'
|
|
166
|
+
},
|
|
167
|
+
multicall: {
|
|
168
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
169
|
+
blockCreated: 6507670
|
|
170
|
+
},
|
|
171
|
+
testnet: true
|
|
172
|
+
};
|
|
173
|
+
const kovan = {
|
|
174
|
+
id: chainId.kovan,
|
|
175
|
+
name: 'Kovan',
|
|
176
|
+
network: 'kovan',
|
|
177
|
+
nativeCurrency: {
|
|
178
|
+
name: 'Kovan Ether',
|
|
179
|
+
symbol: 'KOV',
|
|
180
|
+
decimals: 18
|
|
181
|
+
},
|
|
182
|
+
rpcUrls: {
|
|
183
|
+
alchemy: alchemyRpcUrls.kovan,
|
|
184
|
+
infura: infuraRpcUrls.kovan,
|
|
185
|
+
default: "".concat(alchemyRpcUrls.kovan, "/").concat(defaultAlchemyId)
|
|
186
|
+
},
|
|
187
|
+
blockExplorers: {
|
|
188
|
+
etherscan: etherscanBlockExplorers.kovan,
|
|
189
|
+
default: etherscanBlockExplorers.kovan
|
|
190
|
+
},
|
|
191
|
+
multicall: {
|
|
192
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
193
|
+
blockCreated: 30285908
|
|
194
|
+
},
|
|
195
|
+
testnet: true
|
|
196
|
+
};
|
|
197
|
+
const optimism = {
|
|
198
|
+
id: chainId.optimism,
|
|
199
|
+
name: 'Optimism',
|
|
200
|
+
network: 'optimism',
|
|
201
|
+
nativeCurrency: {
|
|
202
|
+
name: 'Ether',
|
|
203
|
+
symbol: 'ETH',
|
|
204
|
+
decimals: 18
|
|
205
|
+
},
|
|
206
|
+
rpcUrls: {
|
|
207
|
+
alchemy: alchemyRpcUrls.optimism,
|
|
208
|
+
infura: infuraRpcUrls.optimism,
|
|
209
|
+
default: 'https://mainnet.optimism.io'
|
|
210
|
+
},
|
|
211
|
+
blockExplorers: {
|
|
212
|
+
etherscan: etherscanBlockExplorers.optimism,
|
|
213
|
+
default: etherscanBlockExplorers.optimism
|
|
214
|
+
},
|
|
215
|
+
multicall: {
|
|
216
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
217
|
+
blockCreated: 4286263
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
const optimismKovan = {
|
|
221
|
+
id: chainId.optimismKovan,
|
|
222
|
+
name: 'Optimism Kovan',
|
|
223
|
+
network: 'optimism-kovan',
|
|
224
|
+
nativeCurrency: {
|
|
225
|
+
name: 'Kovan Ether',
|
|
226
|
+
symbol: 'KOR',
|
|
227
|
+
decimals: 18
|
|
228
|
+
},
|
|
229
|
+
rpcUrls: {
|
|
230
|
+
alchemy: alchemyRpcUrls.optimismKovan,
|
|
231
|
+
infura: infuraRpcUrls.optimismKovan,
|
|
232
|
+
default: 'https://kovan.optimism.io'
|
|
233
|
+
},
|
|
234
|
+
blockExplorers: {
|
|
235
|
+
etherscan: etherscanBlockExplorers.optimismKovan,
|
|
236
|
+
default: etherscanBlockExplorers.optimismKovan
|
|
237
|
+
},
|
|
238
|
+
multicall: {
|
|
239
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
240
|
+
blockCreated: 1418387
|
|
241
|
+
},
|
|
242
|
+
testnet: true
|
|
243
|
+
};
|
|
244
|
+
const polygon = {
|
|
245
|
+
id: chainId.polygon,
|
|
246
|
+
name: 'Polygon',
|
|
247
|
+
network: 'matic',
|
|
248
|
+
nativeCurrency: {
|
|
249
|
+
name: 'MATIC',
|
|
250
|
+
symbol: 'MATIC',
|
|
251
|
+
decimals: 18
|
|
252
|
+
},
|
|
253
|
+
rpcUrls: {
|
|
254
|
+
alchemy: alchemyRpcUrls.polygon,
|
|
255
|
+
infura: infuraRpcUrls.polygon,
|
|
256
|
+
default: 'https://polygon-rpc.com'
|
|
257
|
+
},
|
|
258
|
+
blockExplorers: {
|
|
259
|
+
etherscan: etherscanBlockExplorers.polygon,
|
|
260
|
+
default: etherscanBlockExplorers.polygon
|
|
261
|
+
},
|
|
262
|
+
multicall: {
|
|
263
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
264
|
+
blockCreated: 25770160
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
const polygonMumbai = {
|
|
268
|
+
id: chainId.polygonMumbai,
|
|
269
|
+
name: 'Polygon Mumbai',
|
|
270
|
+
network: 'maticmum',
|
|
271
|
+
nativeCurrency: {
|
|
272
|
+
name: 'MATIC',
|
|
273
|
+
symbol: 'MATIC',
|
|
274
|
+
decimals: 18
|
|
275
|
+
},
|
|
276
|
+
rpcUrls: {
|
|
277
|
+
alchemy: alchemyRpcUrls.polygonMumbai,
|
|
278
|
+
infura: infuraRpcUrls.polygonMumbai,
|
|
279
|
+
default: 'https://matic-mumbai.chainstacklabs.com'
|
|
280
|
+
},
|
|
281
|
+
blockExplorers: {
|
|
282
|
+
etherscan: etherscanBlockExplorers.polygonMumbai,
|
|
283
|
+
default: etherscanBlockExplorers.polygonMumbai
|
|
284
|
+
},
|
|
285
|
+
multicall: {
|
|
286
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
287
|
+
blockCreated: 25444704
|
|
288
|
+
},
|
|
289
|
+
testnet: true
|
|
290
|
+
};
|
|
291
|
+
const arbitrum = {
|
|
292
|
+
id: chainId.arbitrum,
|
|
293
|
+
name: 'Arbitrum One',
|
|
294
|
+
network: 'arbitrum',
|
|
295
|
+
nativeCurrency: {
|
|
296
|
+
name: 'Ether',
|
|
297
|
+
symbol: 'ETH',
|
|
298
|
+
decimals: 18
|
|
299
|
+
},
|
|
300
|
+
rpcUrls: {
|
|
301
|
+
alchemy: alchemyRpcUrls.arbitrum,
|
|
302
|
+
infura: infuraRpcUrls.arbitrum,
|
|
303
|
+
default: 'https://arb1.arbitrum.io/rpc'
|
|
304
|
+
},
|
|
305
|
+
blockExplorers: {
|
|
306
|
+
arbitrum: {
|
|
307
|
+
name: 'Arbitrum Explorer',
|
|
308
|
+
url: 'https://explorer.arbitrum.io'
|
|
309
|
+
},
|
|
310
|
+
etherscan: etherscanBlockExplorers.arbitrum,
|
|
311
|
+
default: etherscanBlockExplorers.arbitrum
|
|
312
|
+
},
|
|
313
|
+
multicall: {
|
|
314
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
315
|
+
blockCreated: 7654707
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
const arbitrumRinkeby = {
|
|
319
|
+
id: chainId.arbitrumRinkeby,
|
|
320
|
+
name: 'Arbitrum Rinkeby',
|
|
321
|
+
network: 'arbitrum-rinkeby',
|
|
322
|
+
nativeCurrency: {
|
|
323
|
+
name: 'Arbitrum Rinkeby Ether',
|
|
324
|
+
symbol: 'ARETH',
|
|
325
|
+
decimals: 18
|
|
326
|
+
},
|
|
327
|
+
rpcUrls: {
|
|
328
|
+
alchemy: alchemyRpcUrls.arbitrumRinkeby,
|
|
329
|
+
infura: infuraRpcUrls.arbitrumRinkeby,
|
|
330
|
+
default: 'https://rinkeby.arbitrum.io/rpc'
|
|
331
|
+
},
|
|
332
|
+
blockExplorers: {
|
|
333
|
+
arbitrum: {
|
|
334
|
+
name: 'Arbitrum Explorer',
|
|
335
|
+
url: 'https://rinkeby-explorer.arbitrum.io'
|
|
336
|
+
},
|
|
337
|
+
etherscan: etherscanBlockExplorers.arbitrumRinkeby,
|
|
338
|
+
default: etherscanBlockExplorers.arbitrumRinkeby
|
|
339
|
+
},
|
|
340
|
+
multicall: {
|
|
341
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
342
|
+
blockCreated: 10228837
|
|
343
|
+
},
|
|
344
|
+
testnet: true
|
|
345
|
+
};
|
|
346
|
+
const localhost = {
|
|
347
|
+
id: chainId.localhost,
|
|
348
|
+
name: 'Localhost',
|
|
349
|
+
network: 'localhost',
|
|
350
|
+
rpcUrls: {
|
|
351
|
+
default: 'http://127.0.0.1:8545'
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
const hardhat = {
|
|
355
|
+
id: chainId.hardhat,
|
|
356
|
+
name: 'Hardhat',
|
|
357
|
+
network: 'hardhat',
|
|
358
|
+
rpcUrls: {
|
|
359
|
+
default: 'http://127.0.0.1:8545'
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
const foundry = {
|
|
363
|
+
id: chainId.hardhat,
|
|
364
|
+
name: 'Foundry',
|
|
365
|
+
network: 'foundry',
|
|
366
|
+
rpcUrls: {
|
|
367
|
+
default: 'http://127.0.0.1:8545'
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Common chains for convenience
|
|
372
|
+
* Should not contain all possible chains
|
|
373
|
+
*/
|
|
374
|
+
|
|
375
|
+
const chain = {
|
|
376
|
+
mainnet,
|
|
377
|
+
ropsten,
|
|
378
|
+
rinkeby,
|
|
379
|
+
goerli,
|
|
380
|
+
kovan,
|
|
381
|
+
optimism,
|
|
382
|
+
optimismKovan,
|
|
383
|
+
polygon,
|
|
384
|
+
polygonMumbai,
|
|
385
|
+
arbitrum,
|
|
386
|
+
arbitrumRinkeby,
|
|
387
|
+
localhost,
|
|
388
|
+
hardhat,
|
|
389
|
+
foundry
|
|
390
|
+
};
|
|
391
|
+
const allChains = Object.values(chain);
|
|
392
|
+
const defaultChains = [chain.mainnet, chain.ropsten, chain.rinkeby, chain.goerli, chain.kovan];
|
|
393
|
+
const defaultL2Chains = [chain.arbitrum, chain.arbitrumRinkeby, chain.optimism, chain.optimismKovan];
|
|
394
|
+
|
|
395
|
+
export { allChains as a, chainId as b, chain as c, defaultChains as d, defaultL2Chains as e, etherscanBlockExplorers as f, arbitrum as g, arbitrumRinkeby as h, foundry as i, goerli as j, hardhat as k, kovan as l, localhost as m, mainnet as n, optimism as o, optimismKovan as p, polygon as q, polygonMumbai as r, rinkeby as s, ropsten as t };
|