@reality.eth/contracts 3.0.4 → 3.0.8
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/chainid.network.local.json +25 -0
- package/chains/deployments/280/WETH/RealityETH_ERC20-3.0.json +8 -0
- package/chains/supported.json +6 -0
- package/generated/chains.json +19 -0
- package/generated/contracts.json +11 -0
- package/generated/tokens.json +7 -0
- 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
- package/scripts/send_funds.js +0 -52
|
@@ -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
|
@@ -60,6 +60,12 @@
|
|
|
60
60
|
"explorerURL": "https://explore.cheapswap.io/",
|
|
61
61
|
"network_name": "cheapeth"
|
|
62
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
|
+
},
|
|
63
69
|
"43114": {
|
|
64
70
|
"explorerURL": "https://cchain.explorer.avax.network/",
|
|
65
71
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ava",
|
package/generated/chains.json
CHANGED
|
@@ -226,6 +226,25 @@
|
|
|
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",
|
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": "0x7955DFA097Cd5474b2773dFe85F1988014d85C01",
|
|
351
|
+
"block": 444697,
|
|
352
|
+
"token_address": "0x000000000000000000000000000000000000800A",
|
|
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": "0x000000000000000000000000000000000000800a"
|
|
128
|
+
}
|
|
122
129
|
}
|
|
123
130
|
}
|
|
@@ -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
|