@reality.eth/contracts 3.0.20 → 3.0.22
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 +2 -2
- package/chains/deployments/280/ETH/RealityETH-3.0.json +2 -2
- package/chains/supported.json +1 -1
- package/generated/contracts.json +2 -2
- package/non_standard_deployments/zksync2/deploy/deploy.ts +6 -2
- package/non_standard_deployments/zksync2/hardhat.config.ts +10 -19
- package/non_standard_deployments/zksync2/package.json +11 -6
- package/non_standard_deployments/zksync2/yarn.lock +1108 -1061
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"name": "ZKSync Goerli
|
|
29
|
+
"name": "ZKSync Goerli",
|
|
30
30
|
"chainId": 280,
|
|
31
31
|
"shortName": "zksyncgoerli",
|
|
32
32
|
"chain": "ETH",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"explorers": [
|
|
46
46
|
{
|
|
47
47
|
"name": "ZKSync Goerli Explorer",
|
|
48
|
-
"url": "https://
|
|
48
|
+
"url": "https://goerli.explorer.zksync.io/",
|
|
49
49
|
"standard": "EIP3091"
|
|
50
50
|
}
|
|
51
51
|
]
|
package/chains/supported.json
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"280": {
|
|
75
75
|
"hostedRPC": "https://zksync2-testnet.zksync.dev",
|
|
76
|
-
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-goerli",
|
|
76
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-goerli-2",
|
|
77
77
|
"explorerURL": "https://zksync2-testnet.zkscan.io",
|
|
78
78
|
"network_name": "zkSync2-testnet"
|
|
79
79
|
},
|
package/generated/contracts.json
CHANGED
|
@@ -376,8 +376,8 @@
|
|
|
376
376
|
"280": {
|
|
377
377
|
"ETH": {
|
|
378
378
|
"RealityETH-3.0": {
|
|
379
|
-
"address": "
|
|
380
|
-
"block":
|
|
379
|
+
"address": "0xFAD6e5e3a9421B9de71A517122D3Bb39A57D6FF5",
|
|
380
|
+
"block": 5956040,
|
|
381
381
|
"notes": null,
|
|
382
382
|
"arbitrators": {}
|
|
383
383
|
}
|
|
@@ -17,6 +17,7 @@ export default async function (hre: HardhatRuntimeEnvironment) {
|
|
|
17
17
|
|
|
18
18
|
// Initialize the wallet.
|
|
19
19
|
const wallet = new Wallet(priv);
|
|
20
|
+
console.log('gas to pay from address', wallet.address);
|
|
20
21
|
|
|
21
22
|
// Create deployer object and load the artifact of the contract we want to deploy.
|
|
22
23
|
const deployer = new Deployer(hre, wallet);
|
|
@@ -24,7 +25,7 @@ export default async function (hre: HardhatRuntimeEnvironment) {
|
|
|
24
25
|
|
|
25
26
|
/*
|
|
26
27
|
// Deposit some funds to L2 in order to be able to perform L2 transactions.
|
|
27
|
-
const depositAmount = ethers.utils.parseEther("0.
|
|
28
|
+
const depositAmount = ethers.utils.parseEther("0.5");
|
|
28
29
|
const depositHandle = await deployer.zkWallet.deposit({
|
|
29
30
|
to: deployer.zkWallet.address,
|
|
30
31
|
token: utils.ETH_ADDRESS,
|
|
@@ -32,7 +33,10 @@ export default async function (hre: HardhatRuntimeEnvironment) {
|
|
|
32
33
|
});
|
|
33
34
|
// Wait until the deposit is processed on zkSync
|
|
34
35
|
await depositHandle.wait();
|
|
35
|
-
|
|
36
|
+
|
|
37
|
+
console.log('deposit done');
|
|
38
|
+
return;
|
|
39
|
+
*/
|
|
36
40
|
|
|
37
41
|
// Deploy this contract. The returned object will be of a `Contract` type, similarly to ones in `ethers`.
|
|
38
42
|
const realityContract = await deployer.deploy(artifact, []);
|
|
@@ -1,30 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import "@matterlabs/hardhat-zksync-deploy";
|
|
2
|
+
import "@matterlabs/hardhat-zksync-solc";
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
zksolc: {
|
|
6
|
-
version: "
|
|
7
|
-
compilerSource: "
|
|
8
|
-
settings: {
|
|
9
|
-
optimizer: {
|
|
10
|
-
enabled: true,
|
|
11
|
-
},
|
|
12
|
-
experimental: {
|
|
13
|
-
dockerImage: "matterlabs/zksolc",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
zkSyncDeploy: {
|
|
18
|
-
zkSyncNetwork: "https://zksync2-testnet.zksync.dev",
|
|
19
|
-
ethNetwork: "goerli", // Can also be the RPC URL of the network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
|
|
6
|
+
version: "1.2.2",
|
|
7
|
+
compilerSource: "binary",
|
|
8
|
+
settings: {},
|
|
20
9
|
},
|
|
10
|
+
defaultNetwork: "zkTestnet",
|
|
21
11
|
networks: {
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
zkTestnet: {
|
|
13
|
+
url: "https://zksync2-testnet.zksync.dev", // URL of the zkSync network RPC
|
|
14
|
+
ethNetwork: "goerli", // Can also be the RPC URL of the Ethereum network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
|
|
24
15
|
zksync: true,
|
|
25
16
|
},
|
|
26
17
|
},
|
|
27
18
|
solidity: {
|
|
28
|
-
version: "0.8.
|
|
19
|
+
version: "0.8.16",
|
|
29
20
|
},
|
|
30
21
|
};
|
|
@@ -4,12 +4,17 @@
|
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@
|
|
8
|
-
"@
|
|
9
|
-
"
|
|
10
|
-
"hardhat": "^
|
|
7
|
+
"@ethersproject/hash": "^5.7.0",
|
|
8
|
+
"@ethersproject/web": "^5.7.1",
|
|
9
|
+
"@matterlabs/hardhat-zksync-deploy": "^0.6.1",
|
|
10
|
+
"@matterlabs/hardhat-zksync-solc": "^0.3.13",
|
|
11
|
+
"@types/node": "^18.11.18",
|
|
12
|
+
"hardhat": "^2.12.6",
|
|
11
13
|
"ts-node": "^10.9.1",
|
|
12
|
-
"typescript": "^4.
|
|
13
|
-
"zksync-web3": "^0.
|
|
14
|
+
"typescript": "^4.9.5",
|
|
15
|
+
"zksync-web3": "^0.12.5"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"ethers": "^5.7.2"
|
|
14
19
|
}
|
|
15
20
|
}
|