@reality.eth/contracts 3.0.24 → 3.0.25

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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "address": "0xaf33DcB6E8c5c4D9dDF579f53031b514d19449CA",
3
+ "block": 3044431,
4
+ "notes": null,
5
+ "arbitrators": {}
6
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
3
+ "block": 9140,
4
+ "notes": null,
5
+ "arbitrators": {
6
+ }
7
+ }
@@ -66,6 +66,11 @@
66
66
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-polygon",
67
67
  "network_name": "matic"
68
68
  },
69
+ "324": {
70
+ "explorerURL": "https://explorer.zksync.io/",
71
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-todo",
72
+ "network_name": "era-todo"
73
+ },
69
74
  "777": {
70
75
  "explorerURL": "https://explore.cheapswap.io/",
71
76
  "network_name": "cheapeth"
@@ -93,6 +98,9 @@
93
98
  "421611": {
94
99
  "network_name": "arbitrum-rinkeby"
95
100
  },
101
+ "11155111": {
102
+ "network_name": "sepolia"
103
+ },
96
104
  "1337702": {
97
105
  "network_name": "kintsugi"
98
106
  }
@@ -391,5 +391,19 @@
391
391
  "blockExplorerUrls": [
392
392
  "https://explorer.kintsugi.themerge.dev"
393
393
  ]
394
+ },
395
+ "11155111": {
396
+ "chainId": "0xaa36a7",
397
+ "chainName": "Sepolia",
398
+ "nativeCurrency": {
399
+ "name": "Sepolia Ether",
400
+ "symbol": "SEP",
401
+ "decimals": 18
402
+ },
403
+ "network_name": "sepolia",
404
+ "rpcUrls": [],
405
+ "blockExplorerUrls": [
406
+ "https://sepolia.otterscan.io"
407
+ ]
394
408
  }
395
409
  }
@@ -385,6 +385,16 @@
385
385
  }
386
386
  }
387
387
  },
388
+ "324": {
389
+ "ETH": {
390
+ "RealityETH-3.0": {
391
+ "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
392
+ "block": 9140,
393
+ "notes": null,
394
+ "arbitrators": {}
395
+ }
396
+ }
397
+ },
388
398
  "777": {
389
399
  "CTH": {
390
400
  "RealityETH-3.0": {
@@ -470,5 +480,15 @@
470
480
  "arbitrators": {}
471
481
  }
472
482
  }
483
+ },
484
+ "11155111": {
485
+ "ETH": {
486
+ "RealityETH-3.0": {
487
+ "address": "0xaf33DcB6E8c5c4D9dDF579f53031b514d19449CA",
488
+ "block": 3044431,
489
+ "notes": null,
490
+ "arbitrators": {}
491
+ }
492
+ }
473
493
  }
474
494
  }
@@ -38,7 +38,9 @@
38
38
  "5": true,
39
39
  "42": true,
40
40
  "280": true,
41
- "1337702": true
41
+ "324": true,
42
+ "1337702": true,
43
+ "11155111": true
42
44
  }
43
45
  },
44
46
  "MATIC": {
@@ -0,0 +1,47 @@
1
+ import { Wallet, utils } from "zksync-web3";
2
+ import * as ethers from "ethers";
3
+ import { HardhatRuntimeEnvironment } from "hardhat/types";
4
+ import { Deployer } from "@matterlabs/hardhat-zksync-deploy";
5
+ const fs = require('fs');
6
+
7
+ const key_file = '/home/ed/secrets/zksync_mainnet.sec';
8
+ const PRIVATE_KEY = fs.readFileSync(key_file, 'utf8').replace(/\n$/, "");
9
+
10
+ // An example of a deploy script that will deploy and call a simple contract.
11
+ export default async function (hre: HardhatRuntimeEnvironment) {
12
+ console.log(`Running deploy script for the reality.eth contract`);
13
+
14
+ // Initialize the wallet.
15
+ const wallet = new Wallet(PRIVATE_KEY);
16
+
17
+ // Create deployer object and load the artifact of the contract you want to deploy.
18
+ const deployer = new Deployer(hre, wallet);
19
+ const artifact = await deployer.loadArtifact("RealityETH_v3_0");
20
+
21
+ // Estimate contract deployment fee
22
+ const greeting = "Hi there!";
23
+ const deploymentFee = await deployer.estimateDeployFee(artifact, []);
24
+
25
+ /*
26
+ // OPTIONAL: Deposit funds to L2
27
+ // Comment this block if you already have funds on zkSync.
28
+ const depositHandle = await deployer.zkWallet.deposit({
29
+ to: deployer.zkWallet.address,
30
+ token: utils.ETH_ADDRESS,
31
+ amount: deploymentFee.mul(2),
32
+ });
33
+ // Wait until the deposit is processed on zkSync
34
+ await depositHandle.wait();
35
+ */
36
+
37
+ // Deploy this contract. The returned object will be of a `Contract` type, similarly to ones in `ethers`.
38
+ // `greeting` is an argument for contract constructor.
39
+ const parsedFee = ethers.utils.formatEther(deploymentFee.toString());
40
+ console.log(`The deployment is estimated to cost ${parsedFee} ETH`);
41
+
42
+ const realityContract = await deployer.deploy(artifact, []);
43
+
44
+ // Show the contract info.
45
+ const contractAddress = realityContract.address;
46
+ console.log(`${artifact.contractName} was deployed to ${contractAddress}`);
47
+ }
@@ -15,6 +15,11 @@ module.exports = {
15
15
  ethNetwork: "goerli", // Can also be the RPC URL of the network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
16
16
  zksync: true,
17
17
  },
18
+ zkSyncMainnet: {
19
+ url: "https://zksync2-mainnet.zksync.io",
20
+ ethNetwork: "mainnet",
21
+ zksync: true,
22
+ },
18
23
  },
19
24
  solidity: {
20
25
  version: "0.8.17",
@@ -4,10 +4,10 @@
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
7
- "@matterlabs/hardhat-zksync-deploy": "^0.6.1",
7
+ "@matterlabs/hardhat-zksync-deploy": "^0.6.2",
8
8
  "@matterlabs/hardhat-zksync-solc": "^0.3.14",
9
9
  "ethers": "^5.7.2",
10
- "hardhat": "^2.12.7",
10
+ "hardhat": "^2.13.0",
11
11
  "ts-node": "^10.9.1",
12
12
  "typescript": "^4.9.5",
13
13
  "zksync-web3": "^0.13.1"