@reality.eth/contracts 3.0.3 → 3.0.7
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/README.md +9 -3
- package/chains/chainid.network.json +4618 -810
- package/chains/chainid.network.local.json +25 -0
- package/chains/deployments/280/WETH/RealityETH_ERC20-3.0.json +8 -0
- package/chains/supported.json +14 -4
- package/generated/chains.json +42 -23
- package/generated/contracts.json +11 -0
- package/generated/tokens.json +7 -0
- package/index.js +0 -1
- package/non_standard_deployments/zksync2/README +21 -0
- package/non_standard_deployments/zksync2/contracts/RealityETH_ERC20-3.0.sol +1096 -0
- package/non_standard_deployments/zksync2/deploy/deploy.ts +53 -0
- package/non_standard_deployments/zksync2/hardhat.config.ts +30 -0
- package/non_standard_deployments/zksync2/package.json +15 -0
- package/non_standard_deployments/zksync2/yarn.lock +2887 -0
- package/package.json +2 -2
- package/tokens/WETH.json +7 -0
|
@@ -24,5 +24,30 @@
|
|
|
24
24
|
"standard": "EIP3091"
|
|
25
25
|
}
|
|
26
26
|
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "ZKSync Goerli Alpha",
|
|
30
|
+
"chainId": 280,
|
|
31
|
+
"shortName": "zksyncgoerli",
|
|
32
|
+
"chain": "ETH",
|
|
33
|
+
"network": "mainnet",
|
|
34
|
+
"networkId": 280,
|
|
35
|
+
"nativeCurrency": {
|
|
36
|
+
"name": "Ether",
|
|
37
|
+
"symbol": "WETH",
|
|
38
|
+
"decimals": 18
|
|
39
|
+
},
|
|
40
|
+
"rpc": [
|
|
41
|
+
"https://zksync2-testnet.zksync.dev"
|
|
42
|
+
],
|
|
43
|
+
"faucets": [],
|
|
44
|
+
"infoURL": "https://zksync2-testnet.zkscan.io/",
|
|
45
|
+
"explorers": [
|
|
46
|
+
{
|
|
47
|
+
"name": "ZKSync Goerli Explorer",
|
|
48
|
+
"url": "https://zksync2-testnet.zkscan.io/",
|
|
49
|
+
"standard": "EIP3091"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
27
52
|
}
|
|
28
53
|
]
|
package/chains/supported.json
CHANGED
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
"1": {
|
|
3
3
|
"hostedRPC": "https://eth-mainnet.alchemyapi.io/v2/c9uS--nIxEOjVjh0AJlNttMaqUXQy8gR",
|
|
4
4
|
"explorerURL": "https://etherscan.io",
|
|
5
|
-
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth"
|
|
5
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth",
|
|
6
|
+
"network_name": "mainnet"
|
|
6
7
|
},
|
|
7
8
|
"3": {
|
|
8
9
|
"hostedRPC": "https://ropsten.infura.io/tSrhlXUe1sNEO5ZWhpUK",
|
|
9
10
|
"explorerURL": "https://ropsten.etherscan.io",
|
|
10
|
-
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ropsten"
|
|
11
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ropsten",
|
|
12
|
+
"network_name": "ropsten"
|
|
11
13
|
},
|
|
12
14
|
"4": {
|
|
13
15
|
"hostedRPC": "https://eth-rinkeby.alchemyapi.io/v2/m2Op-gK2G1RiwtWHr6QB_JH9-ry0A6do",
|
|
14
16
|
"explorerURL": "https://rinkeby.etherscan.io",
|
|
15
|
-
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-rinkeby"
|
|
17
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-rinkeby",
|
|
18
|
+
"network_name": "rinkeby"
|
|
16
19
|
},
|
|
17
20
|
"8": {
|
|
18
21
|
"hostedRPC": "https://rpc.octano.dev",
|
|
@@ -34,7 +37,8 @@
|
|
|
34
37
|
},
|
|
35
38
|
"69": {
|
|
36
39
|
"hostedRPC": "https://kovan.optimism.io",
|
|
37
|
-
"explorerURL": "https://kovan-optimistic.etherscan.io"
|
|
40
|
+
"explorerURL": "https://kovan-optimistic.etherscan.io",
|
|
41
|
+
"network_name": "kovan"
|
|
38
42
|
},
|
|
39
43
|
"77": {
|
|
40
44
|
"explorerURL": "https://blockscout.com/poa/sokol",
|
|
@@ -56,6 +60,12 @@
|
|
|
56
60
|
"explorerURL": "https://explore.cheapswap.io/",
|
|
57
61
|
"network_name": "cheapeth"
|
|
58
62
|
},
|
|
63
|
+
"280": {
|
|
64
|
+
"hostedRPC": "https://zksync2-testnet.zksync.dev",
|
|
65
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-goerli",
|
|
66
|
+
"explorerURL": "https://zksync2-testnet.zkscan.io",
|
|
67
|
+
"network_name": "zkSync2-testnet"
|
|
68
|
+
},
|
|
59
69
|
"43114": {
|
|
60
70
|
"explorerURL": "https://cchain.explorer.avax.network/",
|
|
61
71
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ava",
|
package/generated/chains.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"3": {
|
|
22
22
|
"chainId": "0x3",
|
|
23
|
-
"chainName": "
|
|
23
|
+
"chainName": "Ropsten",
|
|
24
24
|
"nativeCurrency": {
|
|
25
25
|
"name": "Ropsten Ether",
|
|
26
26
|
"symbol": "ROP",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"4": {
|
|
38
38
|
"chainId": "0x4",
|
|
39
|
-
"chainName": "
|
|
39
|
+
"chainName": "Rinkeby",
|
|
40
40
|
"nativeCurrency": {
|
|
41
41
|
"name": "Rinkeby Ether",
|
|
42
42
|
"symbol": "RIN",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"symbol": "UBQ",
|
|
59
59
|
"decimals": 18
|
|
60
60
|
},
|
|
61
|
-
"network_name": "mainnet",
|
|
62
61
|
"rpcUrls": [
|
|
63
62
|
"https://rpc.octano.dev",
|
|
64
63
|
"https://pyrus2.ubiqscan.io"
|
|
@@ -71,13 +70,12 @@
|
|
|
71
70
|
},
|
|
72
71
|
"10": {
|
|
73
72
|
"chainId": "0xa",
|
|
74
|
-
"chainName": "
|
|
73
|
+
"chainName": "Optimism",
|
|
75
74
|
"nativeCurrency": {
|
|
76
75
|
"name": "Ether",
|
|
77
|
-
"symbol": "
|
|
76
|
+
"symbol": "ETH",
|
|
78
77
|
"decimals": 18
|
|
79
78
|
},
|
|
80
|
-
"network_name": "mainnet",
|
|
81
79
|
"rpcUrls": [
|
|
82
80
|
"https://mainnet.optimism.io/"
|
|
83
81
|
],
|
|
@@ -89,13 +87,13 @@
|
|
|
89
87
|
},
|
|
90
88
|
"42": {
|
|
91
89
|
"chainId": "0x2a",
|
|
92
|
-
"chainName": "
|
|
90
|
+
"chainName": "Kovan",
|
|
93
91
|
"nativeCurrency": {
|
|
94
92
|
"name": "Kovan Ether",
|
|
95
93
|
"symbol": "KOV",
|
|
96
94
|
"decimals": 18
|
|
97
95
|
},
|
|
98
|
-
"network_name": "
|
|
96
|
+
"network_name": "testnet",
|
|
99
97
|
"rpcUrls": [
|
|
100
98
|
"https://kovan.poa.network",
|
|
101
99
|
"http://kovan.poa.network:8545",
|
|
@@ -140,7 +138,7 @@
|
|
|
140
138
|
},
|
|
141
139
|
"69": {
|
|
142
140
|
"chainId": "0x45",
|
|
143
|
-
"chainName": "
|
|
141
|
+
"chainName": "Optimism Kovan",
|
|
144
142
|
"nativeCurrency": {
|
|
145
143
|
"name": "Kovan Ether",
|
|
146
144
|
"symbol": "KOR",
|
|
@@ -177,7 +175,7 @@
|
|
|
177
175
|
},
|
|
178
176
|
"100": {
|
|
179
177
|
"chainId": "0x64",
|
|
180
|
-
"chainName": "
|
|
178
|
+
"chainName": "Gnosis",
|
|
181
179
|
"nativeCurrency": {
|
|
182
180
|
"name": "xDAI",
|
|
183
181
|
"symbol": "xDAI",
|
|
@@ -185,21 +183,22 @@
|
|
|
185
183
|
},
|
|
186
184
|
"network_name": "xdai",
|
|
187
185
|
"rpcUrls": [
|
|
188
|
-
"https://rpc.
|
|
186
|
+
"https://rpc.gnosischain.com",
|
|
189
187
|
"https://xdai.poanetwork.dev",
|
|
190
|
-
"wss://rpc.xdaichain.com/wss",
|
|
191
|
-
"wss://xdai.poanetwork.dev/wss",
|
|
192
|
-
"http://xdai.poanetwork.dev",
|
|
193
188
|
"https://dai.poa.network",
|
|
189
|
+
"https://rpc.ankr.com/gnosis",
|
|
190
|
+
"https://gnosischain-rpc.gateway.pokt.network",
|
|
191
|
+
"wss://rpc.gnosischain.com/wss",
|
|
192
|
+
"wss://xdai.poanetwork.dev/wss",
|
|
194
193
|
"ws://xdai.poanetwork.dev:8546"
|
|
195
194
|
],
|
|
196
|
-
"hostedRPC": "https://rpc.
|
|
195
|
+
"hostedRPC": "https://rpc.gnosischain.com",
|
|
197
196
|
"iconUrls": [
|
|
198
197
|
"https://gblobscdn.gitbook.com/spaces%2F-Lpi9AHj62wscNlQjI-l%2Favatar.png"
|
|
199
198
|
],
|
|
200
199
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-xdai",
|
|
201
200
|
"blockExplorerUrls": [
|
|
202
|
-
"https://blockscout.com/
|
|
201
|
+
"https://blockscout.com/xdai/mainnet",
|
|
203
202
|
"https://blockscout.com/poa/xdai/"
|
|
204
203
|
]
|
|
205
204
|
},
|
|
@@ -223,9 +222,29 @@
|
|
|
223
222
|
"hostedRPC": "https://polygon-rpc.com/",
|
|
224
223
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-polygon",
|
|
225
224
|
"blockExplorerUrls": [
|
|
225
|
+
"https://polygonscan.com",
|
|
226
226
|
"https://polygonscan.com/"
|
|
227
227
|
]
|
|
228
228
|
},
|
|
229
|
+
"280": {
|
|
230
|
+
"chainId": "0x118",
|
|
231
|
+
"chainName": "ZKSync Goerli Alpha",
|
|
232
|
+
"nativeCurrency": {
|
|
233
|
+
"name": "Ether",
|
|
234
|
+
"symbol": "WETH",
|
|
235
|
+
"decimals": 18
|
|
236
|
+
},
|
|
237
|
+
"network_name": "zkSync2-testnet",
|
|
238
|
+
"rpcUrls": [
|
|
239
|
+
"https://zksync2-testnet.zksync.dev"
|
|
240
|
+
],
|
|
241
|
+
"hostedRPC": "https://zksync2-testnet.zksync.dev",
|
|
242
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-goerli",
|
|
243
|
+
"blockExplorerUrls": [
|
|
244
|
+
"https://zksync2-testnet.zkscan.io/",
|
|
245
|
+
"https://zksync2-testnet.zkscan.io"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
229
248
|
"777": {
|
|
230
249
|
"chainId": "0x309",
|
|
231
250
|
"chainName": "cheapETH",
|
|
@@ -263,7 +282,7 @@
|
|
|
263
282
|
},
|
|
264
283
|
"43114": {
|
|
265
284
|
"chainId": "0xa86a",
|
|
266
|
-
"chainName": "Avalanche
|
|
285
|
+
"chainName": "Avalanche C-Chain",
|
|
267
286
|
"nativeCurrency": {
|
|
268
287
|
"name": "Avalanche",
|
|
269
288
|
"symbol": "AVAX",
|
|
@@ -276,13 +295,13 @@
|
|
|
276
295
|
"hostedRPC": "https://api.avax.network/ext/bc/C/rpc",
|
|
277
296
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ava",
|
|
278
297
|
"blockExplorerUrls": [
|
|
279
|
-
"https://snowtrace.io
|
|
298
|
+
"https://snowtrace.io",
|
|
280
299
|
"https://cchain.explorer.avax.network/"
|
|
281
300
|
]
|
|
282
301
|
},
|
|
283
302
|
"421611": {
|
|
284
303
|
"chainId": "0x66eeb",
|
|
285
|
-
"chainName": "Arbitrum
|
|
304
|
+
"chainName": "Arbitrum Rinkeby",
|
|
286
305
|
"nativeCurrency": {
|
|
287
306
|
"name": "Arbitrum Rinkeby Ether",
|
|
288
307
|
"symbol": "ARETH",
|
|
@@ -290,17 +309,17 @@
|
|
|
290
309
|
},
|
|
291
310
|
"network_name": "arbitrum-rinkeby",
|
|
292
311
|
"rpcUrls": [
|
|
293
|
-
"https://rinkeby.arbitrum.io/rpc"
|
|
294
|
-
"wss://rinkeby.arbitrum.io/ws"
|
|
312
|
+
"https://rinkeby.arbitrum.io/rpc"
|
|
295
313
|
],
|
|
296
314
|
"hostedRPC": "https://rinkeby.arbitrum.io/rpc",
|
|
297
315
|
"blockExplorerUrls": [
|
|
316
|
+
"https://testnet.arbiscan.io",
|
|
298
317
|
"https://rinkeby-explorer.arbitrum.io"
|
|
299
318
|
]
|
|
300
319
|
},
|
|
301
320
|
"1337702": {
|
|
302
321
|
"chainId": "0x146966",
|
|
303
|
-
"chainName": "Kintsugi
|
|
322
|
+
"chainName": "Kintsugi",
|
|
304
323
|
"nativeCurrency": {
|
|
305
324
|
"name": "kintsugi Ethere",
|
|
306
325
|
"symbol": "kiETH",
|
|
@@ -312,7 +331,7 @@
|
|
|
312
331
|
],
|
|
313
332
|
"hostedRPC": "https://rpc.kintsugi.themerge.dev",
|
|
314
333
|
"blockExplorerUrls": [
|
|
315
|
-
"https://explorer.kintsugi.themerge.dev
|
|
334
|
+
"https://explorer.kintsugi.themerge.dev"
|
|
316
335
|
]
|
|
317
336
|
}
|
|
318
337
|
}
|
package/generated/contracts.json
CHANGED
|
@@ -344,6 +344,17 @@
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
|
+
"280": {
|
|
348
|
+
"WETH": {
|
|
349
|
+
"RealityETH_ERC20-3.0": {
|
|
350
|
+
"address": "0xE80bc83Dad9B3794471912c29612A20d8170Befd",
|
|
351
|
+
"block": 333541,
|
|
352
|
+
"token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
|
|
353
|
+
"notes": null,
|
|
354
|
+
"arbitrators": {}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
347
358
|
"777": {
|
|
348
359
|
"CTH": {
|
|
349
360
|
"RealityETH-3.0": {
|
package/generated/tokens.json
CHANGED
|
@@ -119,5 +119,12 @@
|
|
|
119
119
|
"1": "0xcb94be6f13a1182e4a4b6140cb7bf2025d28e41b",
|
|
120
120
|
"4": "0x21036C54e16521B8809553956123E44054120226"
|
|
121
121
|
}
|
|
122
|
+
},
|
|
123
|
+
"WETH": {
|
|
124
|
+
"decimals": 18,
|
|
125
|
+
"small_number": 10000000000000000,
|
|
126
|
+
"erc20_chains": {
|
|
127
|
+
"280": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
|
|
128
|
+
}
|
|
122
129
|
}
|
|
123
130
|
}
|
package/index.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
We made the zk-sync alpha deployment using their hardhat deployment mechanism.
|
|
2
|
+
https://v2-docs.zksync.io/api/hardhat/getting-started.html#initializing-the-project
|
|
3
|
+
|
|
4
|
+
We used a standalone copy of RealityETH_ERC20-3.0.sol from the flat/ directory.
|
|
5
|
+
|
|
6
|
+
mkdir realityeth-hardhat
|
|
7
|
+
cd realityeth-hardhat
|
|
8
|
+
yarn init -y
|
|
9
|
+
yarn add -D typescript ts-node ethers zksync-web3 hardhat @matterlabs/hardhat-zksync-solc @matterlabs/hardhat-zksync-deploy
|
|
10
|
+
|
|
11
|
+
# create hardhat.config.ts
|
|
12
|
+
|
|
13
|
+
mkdir contracts
|
|
14
|
+
# Copy source for any contracts we want to compile into contracts from our flat/ directory
|
|
15
|
+
|
|
16
|
+
mkdir deploy
|
|
17
|
+
|
|
18
|
+
yarn hardhat compile
|
|
19
|
+
|
|
20
|
+
# You may need to edit deploy.ts to make sure the appropriate account is funded etc.
|
|
21
|
+
yarn hardhat deploy-zksync
|