@reality.eth/contracts 3.0.4 → 3.0.6

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.
@@ -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
  ]
@@ -0,0 +1,8 @@
1
+ {
2
+ "address": "0xE80bc83Dad9B3794471912c29612A20d8170Befd",
3
+ "block": 333541,
4
+ "token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
5
+ "notes": null,
6
+ "arbitrators": {
7
+ }
8
+ }
@@ -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",
@@ -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",
@@ -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": {
@@ -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
  }
@@ -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
+ mkdir deploy
15
+ # Copy source into contracts from our flat/ directory
16
+ # Replace block.number with block.timestamp, not sure if we'll always need to do this, see https://github.com/RealityETH/reality-eth-monorepo/issues/60
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