@reality.eth/contracts 3.0.22 → 3.0.24

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "address": "0xFAD6e5e3a9421B9de71A517122D3Bb39A57D6FF5",
3
- "block": 5956040,
2
+ "address": "0x7955DFA097Cd5474b2773dFe85F1988014d85C01",
3
+ "block": 715363,
4
4
  "notes": null,
5
5
  "arbitrators": {
6
6
  }
@@ -2,5 +2,7 @@
2
2
  "address": "0x6F80C5cBCF9FbC2dA2F0675E56A5900BB70Df72f",
3
3
  "block": 7313546,
4
4
  "notes": null,
5
- "arbitrators": {}
5
+ "arbitrators": {
6
+ "0xaa5681047a16f163391377fd9f78e84355cc9696": "Kleros"
7
+ }
6
8
  }
@@ -57,10 +57,9 @@
57
57
  "network_name": "chapel"
58
58
  },
59
59
  "100": {
60
- "iconURL": "https://gblobscdn.gitbook.com/spaces%2F-Lpi9AHj62wscNlQjI-l%2Favatar.png",
61
- "explorerURL": "https://blockscout.com/poa/xdai/",
62
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-xdai",
63
- "network_name": "xdai"
60
+ "explorerURL": "https://gnosisscan.io",
61
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-gnosis",
62
+ "network_name": "gnosis"
64
63
  },
65
64
  "137": {
66
65
  "explorerURL": "https://polygonscan.com/",
@@ -0,0 +1,335 @@
1
+ // SPDX-License-Identifier: GPL-3.0-only
2
+
3
+ pragma solidity ^0.8.10;
4
+
5
+ interface IBalanceHolder {
6
+ function withdraw ( ) external;
7
+ function balanceOf ( address ) external view returns ( uint256 );
8
+ }
9
+
10
+ interface IRealityETH is IBalanceHolder {
11
+ event LogAnswerReveal (bytes32 indexed question_id, address indexed user, bytes32 indexed answer_hash, bytes32 answer, uint256 nonce, uint256 bond);
12
+ event LogCancelArbitration (bytes32 indexed question_id);
13
+ event LogClaim (bytes32 indexed question_id, address indexed user, uint256 amount);
14
+ event LogFinalize (bytes32 indexed question_id, bytes32 indexed answer);
15
+ event LogFundAnswerBounty (bytes32 indexed question_id, uint256 bounty_added, uint256 bounty, address indexed user);
16
+ event LogMinimumBond (bytes32 indexed question_id, uint256 min_bond);
17
+ event LogNewAnswer (bytes32 answer, bytes32 indexed question_id, bytes32 history_hash, address indexed user, uint256 bond, uint256 ts, bool is_commitment);
18
+ event LogNewQuestion (bytes32 indexed question_id, address indexed user, uint256 template_id, string question, bytes32 indexed content_hash, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce, uint256 created);
19
+ event LogNewTemplate (uint256 indexed template_id, address indexed user, string question_text);
20
+ event LogNotifyOfArbitrationRequest (bytes32 indexed question_id, address indexed user);
21
+ event LogReopenQuestion (bytes32 indexed question_id, bytes32 indexed reopened_question_id);
22
+ event LogSetQuestionFee (address arbitrator, uint256 amount);
23
+
24
+ function assignWinnerAndSubmitAnswerByArbitrator (bytes32 question_id, bytes32 answer, address payee_if_wrong, bytes32 last_history_hash, bytes32 last_answer_or_commitment_id, address last_answerer) external;
25
+ function cancelArbitration (bytes32 question_id) external;
26
+ function claimMultipleAndWithdrawBalance (bytes32[] calldata question_ids, uint256[] calldata lengths, bytes32[] calldata hist_hashes, address[] calldata addrs, uint256[] calldata bonds, bytes32[] calldata answers) external;
27
+ function claimWinnings (bytes32 question_id, bytes32[] calldata history_hashes, address[] calldata addrs, uint256[] calldata bonds, bytes32[] calldata answers) external;
28
+ function createTemplate (string calldata content) external returns (uint256);
29
+ function notifyOfArbitrationRequest (bytes32 question_id, address requester, uint256 max_previous) external;
30
+ function setQuestionFee (uint256 fee) external;
31
+ function submitAnswerByArbitrator (bytes32 question_id, bytes32 answer, address answerer) external;
32
+ function submitAnswerReveal (bytes32 question_id, bytes32 answer, uint256 nonce, uint256 bond) external;
33
+ function askQuestion (uint256 template_id, string calldata question, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce) external payable returns (bytes32);
34
+ function askQuestionWithMinBond (uint256 template_id, string calldata question, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce, uint256 min_bond) external payable returns (bytes32);
35
+ function createTemplateAndAskQuestion (string calldata content, string calldata question, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce) external payable returns (bytes32);
36
+ function fundAnswerBounty (bytes32 question_id) external payable;
37
+ function reopenQuestion (uint256 template_id, string calldata question, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce, uint256 min_bond, bytes32 reopens_question_id) external payable returns (bytes32);
38
+ function submitAnswer (bytes32 question_id, bytes32 answer, uint256 max_previous) external payable;
39
+ function submitAnswerCommitment (bytes32 question_id, bytes32 answer_hash, uint256 max_previous, address _answerer) external payable;
40
+ function submitAnswerFor (bytes32 question_id, bytes32 answer, uint256 max_previous, address answerer) external payable;
41
+ function arbitrator_question_fees (address) external view returns (uint256);
42
+ function commitments (bytes32) external view returns (uint32 reveal_ts, bool is_revealed, bytes32 revealed_answer);
43
+ function getArbitrator (bytes32 question_id) external view returns (address);
44
+ function getBestAnswer (bytes32 question_id) external view returns (bytes32);
45
+ function getBond (bytes32 question_id) external view returns (uint256);
46
+ function getBounty (bytes32 question_id) external view returns (uint256);
47
+ function getContentHash (bytes32 question_id) external view returns (bytes32);
48
+ function getFinalAnswer (bytes32 question_id) external view returns (bytes32);
49
+ function getFinalAnswerIfMatches (bytes32 question_id, bytes32 content_hash, address arbitrator, uint32 min_timeout, uint256 min_bond) external view returns (bytes32);
50
+ function getFinalizeTS (bytes32 question_id) external view returns (uint32);
51
+ function getHistoryHash (bytes32 question_id) external view returns (bytes32);
52
+ function getMinBond (bytes32 question_id) external view returns (uint256);
53
+ function getOpeningTS (bytes32 question_id) external view returns (uint32);
54
+ function getTimeout (bytes32 question_id) external view returns (uint32);
55
+ function isFinalized (bytes32 question_id) external view returns (bool);
56
+ function isPendingArbitration (bytes32 question_id) external view returns (bool);
57
+ function isSettledTooSoon (bytes32 question_id) external view returns (bool);
58
+ function question_claims (bytes32) external view returns (address payee, uint256 last_bond, uint256 queued_funds);
59
+ function questions (bytes32) external view returns (bytes32 content_hash, address arbitrator, uint32 opening_ts, uint32 timeout, uint32 finalize_ts, bool is_pending_arbitration, uint256 bounty, bytes32 best_answer, bytes32 history_hash, uint256 bond, uint256 min_bond);
60
+ function reopened_questions (bytes32) external view returns (bytes32);
61
+ function reopener_questions (bytes32) external view returns (bool);
62
+ function resultFor (bytes32 question_id) external view returns (bytes32);
63
+ function resultForOnceSettled (bytes32 question_id) external view returns (bytes32);
64
+ function template_hashes (uint256) external view returns (bytes32);
65
+ function templates (uint256) external view returns (uint256);
66
+ }
67
+
68
+ /**
69
+ * @title ERC20 interface
70
+ * @dev see https://github.com/ethereum/EIPs/issues/20
71
+ */
72
+ interface IERC20 {
73
+ function totalSupply() external view returns (uint256);
74
+
75
+ function balanceOf(address who) external view returns (uint256);
76
+
77
+ function allowance(address owner, address spender) external view returns (uint256);
78
+
79
+ function transfer(address to, uint256 value) external returns (bool);
80
+
81
+ function approve(address spender, uint256 value) external returns (bool);
82
+
83
+ function transferFrom(address from, address to, uint256 value) external returns (bool);
84
+
85
+ function decimals() external returns (uint8);
86
+
87
+ function name() external returns (string memory);
88
+
89
+ function symbol() external returns (string memory);
90
+
91
+ event Transfer(address indexed from, address indexed to, uint256 value);
92
+
93
+ event Approval(address indexed owner, address indexed spender, uint256 value);
94
+ }
95
+
96
+ interface IOwned {
97
+ function owner ( ) external view returns ( address );
98
+ function transferOwnership ( address newOwner ) external;
99
+ }
100
+
101
+ contract Owned is IOwned {
102
+ address public owner;
103
+
104
+ constructor() {
105
+ owner = msg.sender;
106
+ }
107
+
108
+ modifier onlyOwner {
109
+ require(msg.sender == owner);
110
+ _;
111
+ }
112
+
113
+ function transferOwnership(address newOwner)
114
+ onlyOwner
115
+ external {
116
+ owner = newOwner;
117
+ }
118
+ }
119
+
120
+ interface IArbitrator {
121
+ function metadata ( ) external view returns ( string memory );
122
+ function arbitration_bounties ( bytes32 ) external view returns ( uint256 );
123
+ function realitio ( ) external view returns ( IRealityETH );
124
+ function realitycheck ( ) external view returns ( IRealityETH );
125
+ function setRealitio ( address addr ) external;
126
+ function setDisputeFee ( uint256 fee ) external;
127
+ function setCustomDisputeFee ( bytes32 question_id, uint256 fee ) external;
128
+ function getDisputeFee ( bytes32 question_id ) external view returns ( uint256 );
129
+ function setQuestionFee ( uint256 fee ) external;
130
+ function submitAnswerByArbitrator ( bytes32 question_id, bytes32 answer, address answerer ) external;
131
+ function requestArbitration ( bytes32 question_id, uint256 max_previous ) external payable returns ( bool );
132
+ function withdraw ( address addr ) external;
133
+ function withdrawERC20 ( IERC20 _token, address addr ) external;
134
+ function callWithdraw ( ) external;
135
+ function setMetaData ( string memory _metadata ) external;
136
+ }
137
+
138
+ contract Arbitrator is Owned, IArbitrator {
139
+
140
+ IRealityETH public realitio;
141
+
142
+ mapping(bytes32 => uint256) public arbitration_bounties;
143
+
144
+ uint256 dispute_fee;
145
+ mapping(bytes32 => uint256) custom_dispute_fees;
146
+
147
+ string public metadata;
148
+
149
+ event LogRequestArbitration(
150
+ bytes32 indexed question_id,
151
+ uint256 fee_paid,
152
+ address requester,
153
+ uint256 remaining
154
+ );
155
+
156
+ event LogSetRealitio(
157
+ address realitio
158
+ );
159
+
160
+ event LogSetQuestionFee(
161
+ uint256 fee
162
+ );
163
+
164
+
165
+ event LogSetDisputeFee(
166
+ uint256 fee
167
+ );
168
+
169
+ event LogSetCustomDisputeFee(
170
+ bytes32 indexed question_id,
171
+ uint256 fee
172
+ );
173
+
174
+ /// @notice Constructor. Sets the deploying address as owner.
175
+ constructor() {
176
+ owner = msg.sender;
177
+ }
178
+
179
+ /// @notice Returns the Realitio contract address - deprecated in favour of realitio()
180
+ function realitycheck()
181
+ external view returns(IRealityETH) {
182
+ return realitio;
183
+ }
184
+
185
+ /// @notice Set the Reality Check contract address
186
+ /// @param addr The address of the Reality Check contract
187
+ function setRealitio(address addr)
188
+ onlyOwner
189
+ public {
190
+ realitio = IRealityETH(addr);
191
+ emit LogSetRealitio(addr);
192
+ }
193
+
194
+ /// @notice Set the default fee
195
+ /// @param fee The default fee amount
196
+ function setDisputeFee(uint256 fee)
197
+ onlyOwner
198
+ public {
199
+ dispute_fee = fee;
200
+ emit LogSetDisputeFee(fee);
201
+ }
202
+
203
+ /// @notice Set a custom fee for this particular question
204
+ /// @param question_id The question in question
205
+ /// @param fee The fee amount
206
+ function setCustomDisputeFee(bytes32 question_id, uint256 fee)
207
+ onlyOwner
208
+ public {
209
+ custom_dispute_fees[question_id] = fee;
210
+ emit LogSetCustomDisputeFee(question_id, fee);
211
+ }
212
+
213
+ /// @notice Return the dispute fee for the specified question. 0 indicates that we won't arbitrate it.
214
+ /// @param question_id The question in question
215
+ /// @dev Uses a general default, but can be over-ridden on a question-by-question basis.
216
+ function getDisputeFee(bytes32 question_id)
217
+ public view returns (uint256) {
218
+ return (custom_dispute_fees[question_id] > 0) ? custom_dispute_fees[question_id] : dispute_fee;
219
+ }
220
+
221
+ /// @notice Set a fee for asking a question with us as the arbitrator
222
+ /// @param fee The fee amount
223
+ /// @dev Default is no fee. Unlike the dispute fee, 0 is an acceptable setting.
224
+ /// You could set an impossibly high fee if you want to prevent us being used as arbitrator unless we submit the question.
225
+ /// (Submitting the question ourselves is not implemented here.)
226
+ /// This fee can be used as a revenue source, an anti-spam measure, or both.
227
+ function setQuestionFee(uint256 fee)
228
+ onlyOwner
229
+ public {
230
+ realitio.setQuestionFee(fee);
231
+ emit LogSetQuestionFee(fee);
232
+ }
233
+
234
+ /// @notice Submit the arbitrator's answer to a question.
235
+ /// @param question_id The question in question
236
+ /// @param answer The answer
237
+ /// @param answerer The answerer. If arbitration changed the answer, it should be the payer. If not, the old answerer.
238
+ function submitAnswerByArbitrator(bytes32 question_id, bytes32 answer, address answerer)
239
+ onlyOwner
240
+ public {
241
+ delete arbitration_bounties[question_id];
242
+ realitio.submitAnswerByArbitrator(question_id, answer, answerer);
243
+ }
244
+
245
+ /// @notice Submit the arbitrator's answer to a question, assigning the winner automatically.
246
+ /// @param question_id The question in question
247
+ /// @param answer The answer
248
+ /// @param payee_if_wrong The account to by credited as winner if the last answer given is wrong, usually the account that paid the arbitrator
249
+ /// @param last_history_hash The history hash before the final one
250
+ /// @param last_answer_or_commitment_id The last answer given, or the commitment ID if it was a commitment.
251
+ /// @param last_answerer The address that supplied the last answer
252
+ function assignWinnerAndSubmitAnswerByArbitrator(bytes32 question_id, bytes32 answer, address payee_if_wrong, bytes32 last_history_hash, bytes32 last_answer_or_commitment_id, address last_answerer)
253
+ onlyOwner
254
+ public {
255
+ delete arbitration_bounties[question_id];
256
+ realitio.assignWinnerAndSubmitAnswerByArbitrator(question_id, answer, payee_if_wrong, last_history_hash, last_answer_or_commitment_id, last_answerer);
257
+ }
258
+
259
+ /// @notice Cancel a previous arbitration request
260
+ /// @dev This is intended for situations where the arbitration is happening non-atomically and the fee or something change.
261
+ /// @param question_id The question in question
262
+ function cancelArbitration(bytes32 question_id)
263
+ onlyOwner
264
+ public {
265
+ realitio.cancelArbitration(question_id);
266
+ }
267
+
268
+ /// @notice Request arbitration, freezing the question until we send submitAnswerByArbitrator
269
+ /// @dev The bounty can be paid only in part, in which case the last person to pay will be considered the payer
270
+ /// Will trigger an error if the notification fails, eg because the question has already been finalized
271
+ /// @param question_id The question in question
272
+ /// @param max_previous If specified, reverts if a bond higher than this was submitted after you sent your transaction.
273
+ function requestArbitration(bytes32 question_id, uint256 max_previous)
274
+ external payable returns (bool) {
275
+
276
+ uint256 arbitration_fee = getDisputeFee(question_id);
277
+ require(arbitration_fee > 0, "The arbitrator must have set a non-zero fee for the question");
278
+
279
+ arbitration_bounties[question_id] += msg.value;
280
+ uint256 paid = arbitration_bounties[question_id];
281
+
282
+ if (paid >= arbitration_fee) {
283
+ realitio.notifyOfArbitrationRequest(question_id, msg.sender, max_previous);
284
+ emit LogRequestArbitration(question_id, msg.value, msg.sender, 0);
285
+ return true;
286
+ } else {
287
+ require(!realitio.isFinalized(question_id), "The question must not have been finalized");
288
+ emit LogRequestArbitration(question_id, msg.value, msg.sender, arbitration_fee - paid);
289
+ return false;
290
+ }
291
+
292
+ }
293
+
294
+ /// @notice Withdraw any accumulated ETH fees to the specified address
295
+ /// @param addr The address to which the balance should be sent
296
+ function withdraw(address addr)
297
+ onlyOwner
298
+ public {
299
+ payable(addr).transfer(address(this).balance);
300
+ }
301
+
302
+ /// @notice Withdraw any accumulated token fees to the specified address
303
+ /// @param addr The address to which the balance should be sent
304
+ /// @dev Only needed if the Realitio contract used is using an ERC20 token
305
+ /// @dev Also only normally useful if a per-question fee is set, otherwise we only have ETH.
306
+ function withdrawERC20(IERC20 _token, address addr)
307
+ onlyOwner
308
+ public {
309
+ uint256 bal = _token.balanceOf(address(this));
310
+ IERC20(_token).transfer(addr, bal);
311
+ }
312
+
313
+ receive()
314
+ external payable {
315
+ }
316
+
317
+ /// @notice Withdraw any accumulated question fees from the specified address into this contract
318
+ /// @dev Funds can then be liberated from this contract with our withdraw() function
319
+ /// @dev This works in the same way whether the realitio contract is using ETH or an ERC20 token
320
+ function callWithdraw()
321
+ onlyOwner
322
+ public {
323
+ realitio.withdraw();
324
+ }
325
+
326
+ /// @notice Set a metadata string, expected to be JSON, containing things like arbitrator TOS address
327
+ function setMetaData(string memory _metadata)
328
+ onlyOwner
329
+ external {
330
+ metadata = _metadata;
331
+ }
332
+
333
+ }
334
+
335
+
@@ -222,7 +222,7 @@
222
222
  "symbol": "xDAI",
223
223
  "decimals": 18
224
224
  },
225
- "network_name": "xdai",
225
+ "network_name": "gnosis",
226
226
  "rpcUrls": [
227
227
  "https://rpc.gnosischain.com",
228
228
  "https://xdai.poanetwork.dev",
@@ -234,13 +234,10 @@
234
234
  "ws://xdai.poanetwork.dev:8546"
235
235
  ],
236
236
  "hostedRPC": "https://rpc.gnosischain.com",
237
- "iconUrls": [
238
- "https://gblobscdn.gitbook.com/spaces%2F-Lpi9AHj62wscNlQjI-l%2Favatar.png"
239
- ],
240
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-xdai",
237
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-gnosis",
241
238
  "blockExplorerUrls": [
242
239
  "https://blockscout.com/xdai/mainnet",
243
- "https://blockscout.com/poa/xdai/"
240
+ "https://gnosisscan.io"
244
241
  ]
245
242
  },
246
243
  "137": {
@@ -269,7 +266,7 @@
269
266
  },
270
267
  "280": {
271
268
  "chainId": "0x118",
272
- "chainName": "ZKSync Goerli Alpha",
269
+ "chainName": "ZKSync Goerli",
273
270
  "nativeCurrency": {
274
271
  "name": "Ether",
275
272
  "symbol": "WETH",
@@ -280,9 +277,9 @@
280
277
  "https://zksync2-testnet.zksync.dev"
281
278
  ],
282
279
  "hostedRPC": "https://zksync2-testnet.zksync.dev",
283
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-goerli",
280
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-goerli-2",
284
281
  "blockExplorerUrls": [
285
- "https://zksync2-testnet.zkscan.io/",
282
+ "https://goerli.explorer.zksync.io/",
286
283
  "https://zksync2-testnet.zkscan.io"
287
284
  ]
288
285
  },
@@ -145,7 +145,9 @@
145
145
  "address": "0x6F80C5cBCF9FbC2dA2F0675E56A5900BB70Df72f",
146
146
  "block": 7313546,
147
147
  "notes": null,
148
- "arbitrators": {}
148
+ "arbitrators": {
149
+ "0xaa5681047a16f163391377fd9f78e84355cc9696": "Kleros"
150
+ }
149
151
  }
150
152
  }
151
153
  },
@@ -376,8 +378,8 @@
376
378
  "280": {
377
379
  "ETH": {
378
380
  "RealityETH-3.0": {
379
- "address": "0xFAD6e5e3a9421B9de71A517122D3Bb39A57D6FF5",
380
- "block": 5956040,
381
+ "address": "0x7955DFA097Cd5474b2773dFe85F1988014d85C01",
382
+ "block": 715363,
381
383
  "notes": null,
382
384
  "arbitrators": {}
383
385
  }
@@ -3,19 +3,20 @@ import "@matterlabs/hardhat-zksync-solc";
3
3
 
4
4
  module.exports = {
5
5
  zksolc: {
6
- version: "1.2.2",
6
+ version: "1.3.1",
7
7
  compilerSource: "binary",
8
8
  settings: {},
9
9
  },
10
- defaultNetwork: "zkTestnet",
10
+ defaultNetwork: "zkSyncTestnet",
11
+
11
12
  networks: {
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>`)
13
+ zkSyncTestnet: {
14
+ url: "https://zksync2-testnet.zksync.dev",
15
+ ethNetwork: "goerli", // Can also be the RPC URL of the network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
15
16
  zksync: true,
16
17
  },
17
18
  },
18
19
  solidity: {
19
- version: "0.8.16",
20
+ version: "0.8.17",
20
21
  },
21
22
  };
@@ -4,17 +4,12 @@
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
7
- "@ethersproject/hash": "^5.7.0",
8
- "@ethersproject/web": "^5.7.1",
9
7
  "@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",
8
+ "@matterlabs/hardhat-zksync-solc": "^0.3.14",
9
+ "ethers": "^5.7.2",
10
+ "hardhat": "^2.12.7",
13
11
  "ts-node": "^10.9.1",
14
12
  "typescript": "^4.9.5",
15
- "zksync-web3": "^0.12.5"
16
- },
17
- "dependencies": {
18
- "ethers": "^5.7.2"
13
+ "zksync-web3": "^0.13.1"
19
14
  }
20
15
  }
@@ -118,7 +118,7 @@
118
118
  "@ethersproject/properties" "^5.7.0"
119
119
  "@ethersproject/transactions" "^5.7.0"
120
120
 
121
- "@ethersproject/hash@5.7.0":
121
+ "@ethersproject/hash@5.7.0", "@ethersproject/hash@^5.7.0":
122
122
  version "5.7.0"
123
123
  resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz"
124
124
  integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==
@@ -133,21 +133,6 @@
133
133
  "@ethersproject/properties" "^5.7.0"
134
134
  "@ethersproject/strings" "^5.7.0"
135
135
 
136
- "@ethersproject/hash@^5.7.0":
137
- version "5.7.0"
138
- resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7"
139
- integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==
140
- dependencies:
141
- "@ethersproject/abstract-signer" "^5.7.0"
142
- "@ethersproject/address" "^5.7.0"
143
- "@ethersproject/base64" "^5.7.0"
144
- "@ethersproject/bignumber" "^5.7.0"
145
- "@ethersproject/bytes" "^5.7.0"
146
- "@ethersproject/keccak256" "^5.7.0"
147
- "@ethersproject/logger" "^5.7.0"
148
- "@ethersproject/properties" "^5.7.0"
149
- "@ethersproject/strings" "^5.7.0"
150
-
151
136
  "@ethersproject/hdnode@5.7.0", "@ethersproject/hdnode@^5.7.0":
152
137
  version "5.7.0"
153
138
  resolved "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz"
@@ -360,17 +345,6 @@
360
345
  "@ethersproject/properties" "^5.7.0"
361
346
  "@ethersproject/strings" "^5.7.0"
362
347
 
363
- "@ethersproject/web@^5.7.1":
364
- version "5.7.1"
365
- resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae"
366
- integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w==
367
- dependencies:
368
- "@ethersproject/base64" "^5.7.0"
369
- "@ethersproject/bytes" "^5.7.0"
370
- "@ethersproject/logger" "^5.7.0"
371
- "@ethersproject/properties" "^5.7.0"
372
- "@ethersproject/strings" "^5.7.0"
373
-
374
348
  "@ethersproject/wordlists@5.7.0", "@ethersproject/wordlists@^5.7.0":
375
349
  version "5.7.0"
376
350
  resolved "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.7.0.tgz"
@@ -407,10 +381,10 @@
407
381
  dependencies:
408
382
  chalk "4.1.2"
409
383
 
410
- "@matterlabs/hardhat-zksync-solc@^0.3.13":
411
- version "0.3.13"
412
- resolved "https://registry.yarnpkg.com/@matterlabs/hardhat-zksync-solc/-/hardhat-zksync-solc-0.3.13.tgz#ff3401b164ebfde6feb2a8fac8639cf39f9b4954"
413
- integrity sha512-QuU3CfaY17SQbRxk7VvheJt+bBvWOSNaeo4hWedWXWdIa6d2Y8lQqf6QmYTFMqJg39Z+bx+uuVm2qzzLI4x0SQ==
384
+ "@matterlabs/hardhat-zksync-solc@^0.3.14":
385
+ version "0.3.14"
386
+ resolved "https://registry.yarnpkg.com/@matterlabs/hardhat-zksync-solc/-/hardhat-zksync-solc-0.3.14.tgz#0a32f01b4cd8631ecd8dfe0547e3ac49ab8290d5"
387
+ integrity sha512-iKuQ+vvnpv3K2lkFO41xpJcNWH0KHJ/5JbOboTlPZATVR7F3GJeHfJL+GG4wkxKXnxZczpxyQqC4rAfMKvRaDg==
414
388
  dependencies:
415
389
  "@nomiclabs/hardhat-docker" "^2.0.0"
416
390
  chalk "4.1.2"
@@ -788,11 +762,6 @@
788
762
  resolved "https://registry.npmjs.org/@types/node/-/node-18.11.15.tgz"
789
763
  integrity sha512-VkhBbVo2+2oozlkdHXLrb3zjsRkpdnaU2bXmX8Wgle3PUi569eLRaHGlgETQHR7lLL1w7GiG3h9SnePhxNDecw==
790
764
 
791
- "@types/node@^18.11.18":
792
- version "18.11.18"
793
- resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f"
794
- integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==
795
-
796
765
  "@types/pbkdf2@^3.0.0":
797
766
  version "3.1.0"
798
767
  resolved "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz"
@@ -1717,10 +1686,10 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
1717
1686
  resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz"
1718
1687
  integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
1719
1688
 
1720
- hardhat@^2.12.6:
1721
- version "2.12.6"
1722
- resolved "https://registry.yarnpkg.com/hardhat/-/hardhat-2.12.6.tgz#ea3c058bbd81850867389d10f76037cfa52a0019"
1723
- integrity sha512-0Ent1O5DsPgvaVb5sxEgsQ3bJRt/Ex92tsoO+xjoNH2Qc4bFmhI5/CHVlFikulalxOPjNmw5XQ2vJFuVQFESAA==
1689
+ hardhat@^2.12.7:
1690
+ version "2.12.7"
1691
+ resolved "https://registry.yarnpkg.com/hardhat/-/hardhat-2.12.7.tgz#d8de2dc32e9a2956d53cf26ef4cd5857e57a3138"
1692
+ integrity sha512-voWoN6zn5d8BOEaczSyK/1PyfdeOeI3SbGCFb36yCHTJUt6OIqLb+ZDX30VhA1UsYKzLqG7UnWl3fKJUuANc6A==
1724
1693
  dependencies:
1725
1694
  "@ethersproject/abi" "^5.1.2"
1726
1695
  "@metamask/eth-sig-util" "^4.0.0"
@@ -2928,7 +2897,7 @@ yocto-queue@^0.1.0:
2928
2897
  resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"
2929
2898
  integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
2930
2899
 
2931
- zksync-web3@^0.12.5:
2932
- version "0.12.5"
2933
- resolved "https://registry.yarnpkg.com/zksync-web3/-/zksync-web3-0.12.5.tgz#f6dd9adee0dad9d176c0e5a42e8140b4d4b5c4b8"
2934
- integrity sha512-WGobdAj1nBGnRTWPKLjUCA3KSk1U2zlB7silVX/FMpv8o7LQMvxY7vIGiA+Y+d1ND6PLWyLs3859kQKgrVwEGQ==
2900
+ zksync-web3@^0.13.1:
2901
+ version "0.13.4"
2902
+ resolved "https://registry.yarnpkg.com/zksync-web3/-/zksync-web3-0.13.4.tgz#1c5b1303436cb4cba1a0873ea07860b19f385331"
2903
+ integrity sha512-AjCKhn9TRqsk2T9VLKxlod22rnVWOWGOjq+QXppFe2yTxZx9dVaai325OJ0aa7a3m5wx+9yhPqBu23jG2xPo5Q==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/contracts",
3
- "version": "3.0.22",
3
+ "version": "3.0.24",
4
4
  "description": "Collection of smart contracts for the Realitio fact verification platform",
5
5
  "scripts": {
6
6
  "generate-chains": "node scripts/generate_chains_json.js",
@@ -30,7 +30,7 @@
30
30
  "url": "https://github.com/RealityETH/monorepo/issues"
31
31
  },
32
32
  "homepage": "https://reality.eth.link",
33
- "gitHead": "f5f4349ac42ad43c41c012eb187e33869aa69fd5",
33
+ "gitHead": "81ebb888b730674a02d147918ad2750a87f2e701",
34
34
  "dependencies": {
35
35
  "ethers": "^5.6.8"
36
36
  }