@gitmyabi/treasury 1.0.1 → 1.0.2
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/README.md +5 -5
- package/contracts/Treasury_json.d.ts +599 -159
- package/contracts/Treasury_json.js +654 -183
- package/contracts/Treasury_json.ts +737 -183
- package/contracts/index.d.ts +0 -2
- package/contracts/index.js +1 -4
- package/contracts/index.ts +0 -2
- package/package.json +3 -3
- package/contracts/TransparentUpgradeableProxy_json.d.ts +0 -401
- package/contracts/TransparentUpgradeableProxy_json.js +0 -398
- package/contracts/TransparentUpgradeableProxy_json.ts +0 -542
|
@@ -14,49 +14,67 @@ exports.Treasury_jsonAbi = [
|
|
|
14
14
|
{
|
|
15
15
|
"indexed": false,
|
|
16
16
|
"internalType": "address",
|
|
17
|
-
"name": "
|
|
17
|
+
"name": "factory",
|
|
18
18
|
"type": "address"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"indexed": false,
|
|
22
22
|
"internalType": "address",
|
|
23
|
-
"name": "
|
|
23
|
+
"name": "ruleList",
|
|
24
|
+
"type": "address"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"indexed": false,
|
|
28
|
+
"internalType": "address",
|
|
29
|
+
"name": "escrowedDeposit",
|
|
24
30
|
"type": "address"
|
|
25
31
|
}
|
|
26
32
|
],
|
|
27
|
-
"name": "
|
|
33
|
+
"name": "connectedContracts",
|
|
28
34
|
"type": "event"
|
|
29
35
|
},
|
|
30
36
|
{
|
|
31
37
|
"anonymous": false,
|
|
32
38
|
"inputs": [
|
|
33
39
|
{
|
|
34
|
-
"indexed":
|
|
35
|
-
"internalType": "
|
|
36
|
-
"name": "
|
|
37
|
-
"type": "
|
|
40
|
+
"indexed": false,
|
|
41
|
+
"internalType": "uint256",
|
|
42
|
+
"name": "speedBumpIndex",
|
|
43
|
+
"type": "uint256"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"indexed": false,
|
|
47
|
+
"internalType": "uint256",
|
|
48
|
+
"name": "timeCreated",
|
|
49
|
+
"type": "uint256"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"indexed": false,
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "speedBumpHours",
|
|
55
|
+
"type": "uint256"
|
|
38
56
|
}
|
|
39
57
|
],
|
|
40
|
-
"name": "
|
|
58
|
+
"name": "updatedSpeedBump",
|
|
41
59
|
"type": "event"
|
|
42
60
|
},
|
|
43
61
|
{
|
|
44
62
|
"anonymous": false,
|
|
45
63
|
"inputs": [
|
|
46
64
|
{
|
|
47
|
-
"indexed":
|
|
48
|
-
"internalType": "
|
|
49
|
-
"name": "
|
|
50
|
-
"type": "
|
|
65
|
+
"indexed": false,
|
|
66
|
+
"internalType": "string",
|
|
67
|
+
"name": "verificationDetails",
|
|
68
|
+
"type": "string"
|
|
51
69
|
},
|
|
52
70
|
{
|
|
53
|
-
"indexed":
|
|
54
|
-
"internalType": "
|
|
55
|
-
"name": "
|
|
56
|
-
"type": "
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "string",
|
|
73
|
+
"name": "locationOfDetails",
|
|
74
|
+
"type": "string"
|
|
57
75
|
}
|
|
58
76
|
],
|
|
59
|
-
"name": "
|
|
77
|
+
"name": "updatedTreasuryFunctionVerification",
|
|
60
78
|
"type": "event"
|
|
61
79
|
},
|
|
62
80
|
{
|
|
@@ -65,11 +83,23 @@ exports.Treasury_jsonAbi = [
|
|
|
65
83
|
{
|
|
66
84
|
"indexed": false,
|
|
67
85
|
"internalType": "address",
|
|
68
|
-
"name": "
|
|
86
|
+
"name": "newWithdrawalAddress",
|
|
69
87
|
"type": "address"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"indexed": false,
|
|
91
|
+
"internalType": "address",
|
|
92
|
+
"name": "newOperator",
|
|
93
|
+
"type": "address"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"indexed": false,
|
|
97
|
+
"internalType": "bool",
|
|
98
|
+
"name": "circuitBreaker",
|
|
99
|
+
"type": "bool"
|
|
70
100
|
}
|
|
71
101
|
],
|
|
72
|
-
"name": "
|
|
102
|
+
"name": "updatedTreasuryMainVariables",
|
|
73
103
|
"type": "event"
|
|
74
104
|
},
|
|
75
105
|
{
|
|
@@ -77,30 +107,51 @@ exports.Treasury_jsonAbi = [
|
|
|
77
107
|
"inputs": [
|
|
78
108
|
{
|
|
79
109
|
"indexed": false,
|
|
80
|
-
"internalType": "
|
|
81
|
-
"name": "
|
|
82
|
-
"type": "
|
|
110
|
+
"internalType": "uint16",
|
|
111
|
+
"name": "mappDisputeFeeMultipler",
|
|
112
|
+
"type": "uint16"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"indexed": false,
|
|
116
|
+
"internalType": "uint16",
|
|
117
|
+
"name": "commissionDivider",
|
|
118
|
+
"type": "uint16"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"indexed": false,
|
|
122
|
+
"internalType": "uint16",
|
|
123
|
+
"name": "gatewayPenaltyMultipler",
|
|
124
|
+
"type": "uint16"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"indexed": false,
|
|
128
|
+
"internalType": "uint16",
|
|
129
|
+
"name": "treasuryPenaltyMultipler",
|
|
130
|
+
"type": "uint16"
|
|
83
131
|
}
|
|
84
132
|
],
|
|
85
|
-
"name": "
|
|
133
|
+
"name": "updatedTreasuryVariables",
|
|
86
134
|
"type": "event"
|
|
87
135
|
},
|
|
88
136
|
{
|
|
89
|
-
"
|
|
90
|
-
"inputs": [
|
|
137
|
+
"constant": true,
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"name": "QNTAddress",
|
|
140
|
+
"outputs": [
|
|
91
141
|
{
|
|
92
|
-
"indexed": true,
|
|
93
142
|
"internalType": "address",
|
|
94
|
-
"name": "
|
|
143
|
+
"name": "",
|
|
95
144
|
"type": "address"
|
|
96
145
|
}
|
|
97
146
|
],
|
|
98
|
-
"
|
|
99
|
-
"
|
|
147
|
+
"payable": false,
|
|
148
|
+
"stateMutability": "view",
|
|
149
|
+
"type": "function"
|
|
100
150
|
},
|
|
101
151
|
{
|
|
152
|
+
"constant": true,
|
|
102
153
|
"inputs": [],
|
|
103
|
-
"name": "
|
|
154
|
+
"name": "admin",
|
|
104
155
|
"outputs": [
|
|
105
156
|
{
|
|
106
157
|
"internalType": "address",
|
|
@@ -108,25 +159,79 @@ exports.Treasury_jsonAbi = [
|
|
|
108
159
|
"type": "address"
|
|
109
160
|
}
|
|
110
161
|
],
|
|
162
|
+
"payable": false,
|
|
111
163
|
"stateMutability": "view",
|
|
112
164
|
"type": "function"
|
|
113
165
|
},
|
|
114
166
|
{
|
|
167
|
+
"constant": false,
|
|
168
|
+
"inputs": [
|
|
169
|
+
{
|
|
170
|
+
"internalType": "address",
|
|
171
|
+
"name": "nextAdmin",
|
|
172
|
+
"type": "address"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"internalType": "address",
|
|
176
|
+
"name": "nextImplementation",
|
|
177
|
+
"type": "address"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"name": "changeProxyVariables",
|
|
181
|
+
"outputs": [],
|
|
182
|
+
"payable": false,
|
|
183
|
+
"stateMutability": "nonpayable",
|
|
184
|
+
"type": "function"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"constant": true,
|
|
115
188
|
"inputs": [],
|
|
116
|
-
"name": "
|
|
189
|
+
"name": "circuitBreakerOn",
|
|
117
190
|
"outputs": [
|
|
118
191
|
{
|
|
119
|
-
"internalType": "
|
|
192
|
+
"internalType": "bool",
|
|
120
193
|
"name": "",
|
|
121
|
-
"type": "
|
|
194
|
+
"type": "bool"
|
|
122
195
|
}
|
|
123
196
|
],
|
|
197
|
+
"payable": false,
|
|
124
198
|
"stateMutability": "view",
|
|
125
199
|
"type": "function"
|
|
126
200
|
},
|
|
127
201
|
{
|
|
202
|
+
"constant": true,
|
|
128
203
|
"inputs": [],
|
|
129
|
-
"name": "
|
|
204
|
+
"name": "commissionDivider",
|
|
205
|
+
"outputs": [
|
|
206
|
+
{
|
|
207
|
+
"internalType": "uint16",
|
|
208
|
+
"name": "",
|
|
209
|
+
"type": "uint16"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"payable": false,
|
|
213
|
+
"stateMutability": "view",
|
|
214
|
+
"type": "function"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"constant": true,
|
|
218
|
+
"inputs": [],
|
|
219
|
+
"name": "gatewayPenaltyMultipler",
|
|
220
|
+
"outputs": [
|
|
221
|
+
{
|
|
222
|
+
"internalType": "uint16",
|
|
223
|
+
"name": "",
|
|
224
|
+
"type": "uint16"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"payable": false,
|
|
228
|
+
"stateMutability": "view",
|
|
229
|
+
"type": "function"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"constant": true,
|
|
233
|
+
"inputs": [],
|
|
234
|
+
"name": "implementation",
|
|
130
235
|
"outputs": [
|
|
131
236
|
{
|
|
132
237
|
"internalType": "address",
|
|
@@ -134,86 +239,154 @@ exports.Treasury_jsonAbi = [
|
|
|
134
239
|
"type": "address"
|
|
135
240
|
}
|
|
136
241
|
],
|
|
242
|
+
"payable": false,
|
|
137
243
|
"stateMutability": "view",
|
|
138
244
|
"type": "function"
|
|
139
245
|
},
|
|
140
246
|
{
|
|
247
|
+
"constant": false,
|
|
141
248
|
"inputs": [
|
|
142
249
|
{
|
|
143
250
|
"internalType": "address",
|
|
144
|
-
"name": "
|
|
251
|
+
"name": "thisQNTAddress",
|
|
145
252
|
"type": "address"
|
|
146
253
|
},
|
|
147
254
|
{
|
|
148
255
|
"internalType": "address",
|
|
149
|
-
"name": "
|
|
256
|
+
"name": "thisOperatorAddress",
|
|
150
257
|
"type": "address"
|
|
151
258
|
},
|
|
152
259
|
{
|
|
153
|
-
"internalType": "
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "
|
|
260
|
+
"internalType": "uint16",
|
|
261
|
+
"name": "mappDisputeFee",
|
|
262
|
+
"type": "uint16"
|
|
156
263
|
},
|
|
157
264
|
{
|
|
158
|
-
"internalType": "
|
|
159
|
-
"name": "
|
|
160
|
-
"type": "
|
|
265
|
+
"internalType": "uint16",
|
|
266
|
+
"name": "commission",
|
|
267
|
+
"type": "uint16"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"internalType": "uint16",
|
|
271
|
+
"name": "treasuryPenalty",
|
|
272
|
+
"type": "uint16"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"internalType": "uint16",
|
|
276
|
+
"name": "gatewayPenalty",
|
|
277
|
+
"type": "uint16"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"internalType": "uint16",
|
|
281
|
+
"name": "speedBumpTime",
|
|
282
|
+
"type": "uint16"
|
|
161
283
|
}
|
|
162
284
|
],
|
|
163
285
|
"name": "initialize",
|
|
164
286
|
"outputs": [],
|
|
287
|
+
"payable": false,
|
|
165
288
|
"stateMutability": "nonpayable",
|
|
166
289
|
"type": "function"
|
|
167
290
|
},
|
|
168
291
|
{
|
|
292
|
+
"constant": true,
|
|
169
293
|
"inputs": [],
|
|
170
|
-
"name": "
|
|
294
|
+
"name": "initialized",
|
|
171
295
|
"outputs": [
|
|
172
296
|
{
|
|
173
|
-
"internalType": "
|
|
297
|
+
"internalType": "bool",
|
|
174
298
|
"name": "",
|
|
175
|
-
"type": "
|
|
299
|
+
"type": "bool"
|
|
176
300
|
}
|
|
177
301
|
],
|
|
302
|
+
"payable": false,
|
|
178
303
|
"stateMutability": "view",
|
|
179
304
|
"type": "function"
|
|
180
305
|
},
|
|
181
306
|
{
|
|
307
|
+
"constant": true,
|
|
182
308
|
"inputs": [],
|
|
183
|
-
"name": "
|
|
309
|
+
"name": "mappDisputeFeeMultipler",
|
|
184
310
|
"outputs": [
|
|
185
311
|
{
|
|
186
|
-
"internalType": "
|
|
312
|
+
"internalType": "uint16",
|
|
187
313
|
"name": "",
|
|
188
|
-
"type": "
|
|
314
|
+
"type": "uint16"
|
|
189
315
|
}
|
|
190
316
|
],
|
|
317
|
+
"payable": false,
|
|
191
318
|
"stateMutability": "view",
|
|
192
319
|
"type": "function"
|
|
193
320
|
},
|
|
194
321
|
{
|
|
322
|
+
"constant": true,
|
|
195
323
|
"inputs": [],
|
|
196
|
-
"name": "
|
|
324
|
+
"name": "operatorAddress",
|
|
197
325
|
"outputs": [
|
|
198
326
|
{
|
|
199
|
-
"internalType": "
|
|
327
|
+
"internalType": "address",
|
|
200
328
|
"name": "",
|
|
329
|
+
"type": "address"
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
"payable": false,
|
|
333
|
+
"stateMutability": "view",
|
|
334
|
+
"type": "function"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"constant": true,
|
|
338
|
+
"inputs": [
|
|
339
|
+
{
|
|
340
|
+
"internalType": "bool",
|
|
341
|
+
"name": "gateway",
|
|
201
342
|
"type": "bool"
|
|
202
343
|
}
|
|
203
344
|
],
|
|
345
|
+
"name": "readFunctionPenaltyMultipler",
|
|
346
|
+
"outputs": [
|
|
347
|
+
{
|
|
348
|
+
"internalType": "uint256",
|
|
349
|
+
"name": "",
|
|
350
|
+
"type": "uint256"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"payable": false,
|
|
204
354
|
"stateMutability": "view",
|
|
205
355
|
"type": "function"
|
|
206
356
|
},
|
|
207
357
|
{
|
|
358
|
+
"constant": false,
|
|
208
359
|
"inputs": [],
|
|
209
|
-
"name": "
|
|
360
|
+
"name": "setAdmin",
|
|
210
361
|
"outputs": [],
|
|
362
|
+
"payable": false,
|
|
211
363
|
"stateMutability": "nonpayable",
|
|
212
364
|
"type": "function"
|
|
213
365
|
},
|
|
214
366
|
{
|
|
367
|
+
"constant": false,
|
|
215
368
|
"inputs": [],
|
|
216
|
-
"name": "
|
|
369
|
+
"name": "setImplementation",
|
|
370
|
+
"outputs": [],
|
|
371
|
+
"payable": false,
|
|
372
|
+
"stateMutability": "nonpayable",
|
|
373
|
+
"type": "function"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"constant": true,
|
|
377
|
+
"inputs": [
|
|
378
|
+
{
|
|
379
|
+
"internalType": "uint8",
|
|
380
|
+
"name": "index",
|
|
381
|
+
"type": "uint8"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"internalType": "uint8",
|
|
385
|
+
"name": "addressIndex",
|
|
386
|
+
"type": "uint8"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"name": "speedBumpAddresses",
|
|
217
390
|
"outputs": [
|
|
218
391
|
{
|
|
219
392
|
"internalType": "address",
|
|
@@ -221,96 +394,274 @@ exports.Treasury_jsonAbi = [
|
|
|
221
394
|
"type": "address"
|
|
222
395
|
}
|
|
223
396
|
],
|
|
397
|
+
"payable": false,
|
|
224
398
|
"stateMutability": "view",
|
|
225
399
|
"type": "function"
|
|
226
400
|
},
|
|
227
401
|
{
|
|
228
|
-
"
|
|
229
|
-
"
|
|
402
|
+
"constant": true,
|
|
403
|
+
"inputs": [
|
|
404
|
+
{
|
|
405
|
+
"internalType": "uint8",
|
|
406
|
+
"name": "index",
|
|
407
|
+
"type": "uint8"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"name": "speedBumpCircuitBreaker",
|
|
230
411
|
"outputs": [
|
|
231
412
|
{
|
|
232
|
-
"internalType": "
|
|
413
|
+
"internalType": "bool",
|
|
233
414
|
"name": "",
|
|
234
|
-
"type": "
|
|
415
|
+
"type": "bool"
|
|
235
416
|
}
|
|
236
417
|
],
|
|
418
|
+
"payable": false,
|
|
237
419
|
"stateMutability": "view",
|
|
238
420
|
"type": "function"
|
|
239
421
|
},
|
|
240
422
|
{
|
|
423
|
+
"constant": false,
|
|
241
424
|
"inputs": [
|
|
242
425
|
{
|
|
243
|
-
"internalType": "address",
|
|
244
|
-
"name": "
|
|
245
|
-
"type": "address"
|
|
426
|
+
"internalType": "address[]",
|
|
427
|
+
"name": "addresses",
|
|
428
|
+
"type": "address[]"
|
|
246
429
|
}
|
|
247
430
|
],
|
|
248
|
-
"name": "
|
|
431
|
+
"name": "speedBumpContract",
|
|
249
432
|
"outputs": [],
|
|
433
|
+
"payable": false,
|
|
250
434
|
"stateMutability": "nonpayable",
|
|
251
435
|
"type": "function"
|
|
252
436
|
},
|
|
253
437
|
{
|
|
254
|
-
"
|
|
255
|
-
"
|
|
438
|
+
"constant": true,
|
|
439
|
+
"inputs": [
|
|
440
|
+
{
|
|
441
|
+
"internalType": "uint8",
|
|
442
|
+
"name": "index",
|
|
443
|
+
"type": "uint8"
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"name": "speedBumpCurrentSBHours",
|
|
256
447
|
"outputs": [
|
|
257
448
|
{
|
|
258
|
-
"internalType": "
|
|
449
|
+
"internalType": "uint16",
|
|
259
450
|
"name": "",
|
|
260
|
-
"type": "
|
|
451
|
+
"type": "uint16"
|
|
261
452
|
}
|
|
262
453
|
],
|
|
454
|
+
"payable": false,
|
|
263
455
|
"stateMutability": "view",
|
|
264
456
|
"type": "function"
|
|
265
457
|
},
|
|
266
458
|
{
|
|
459
|
+
"constant": false,
|
|
267
460
|
"inputs": [
|
|
268
461
|
{
|
|
269
|
-
"internalType": "
|
|
270
|
-
"name": "
|
|
271
|
-
"type": "
|
|
462
|
+
"internalType": "uint16[]",
|
|
463
|
+
"name": "uint16s",
|
|
464
|
+
"type": "uint16[]"
|
|
272
465
|
}
|
|
273
466
|
],
|
|
274
|
-
"name": "
|
|
467
|
+
"name": "speedBumpFee",
|
|
275
468
|
"outputs": [],
|
|
469
|
+
"payable": false,
|
|
276
470
|
"stateMutability": "nonpayable",
|
|
277
471
|
"type": "function"
|
|
278
472
|
},
|
|
279
473
|
{
|
|
474
|
+
"constant": true,
|
|
475
|
+
"inputs": [],
|
|
476
|
+
"name": "speedBumpHours",
|
|
477
|
+
"outputs": [
|
|
478
|
+
{
|
|
479
|
+
"internalType": "uint16",
|
|
480
|
+
"name": "",
|
|
481
|
+
"type": "uint16"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
"payable": false,
|
|
485
|
+
"stateMutability": "view",
|
|
486
|
+
"type": "function"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"constant": false,
|
|
280
490
|
"inputs": [
|
|
281
491
|
{
|
|
282
|
-
"internalType": "address",
|
|
283
|
-
"name": "
|
|
284
|
-
"type": "address"
|
|
492
|
+
"internalType": "address[]",
|
|
493
|
+
"name": "addresses",
|
|
494
|
+
"type": "address[]"
|
|
285
495
|
},
|
|
286
496
|
{
|
|
287
|
-
"internalType": "
|
|
288
|
-
"name": "
|
|
289
|
-
"type": "
|
|
497
|
+
"internalType": "uint16",
|
|
498
|
+
"name": "newSpeedBumpHours",
|
|
499
|
+
"type": "uint16"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"internalType": "bool",
|
|
503
|
+
"name": "circuitBreaker",
|
|
504
|
+
"type": "bool"
|
|
290
505
|
}
|
|
291
506
|
],
|
|
292
|
-
"name": "
|
|
507
|
+
"name": "speedBumpMain",
|
|
293
508
|
"outputs": [],
|
|
294
|
-
"
|
|
509
|
+
"payable": false,
|
|
510
|
+
"stateMutability": "nonpayable",
|
|
511
|
+
"type": "function"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"constant": true,
|
|
515
|
+
"inputs": [
|
|
516
|
+
{
|
|
517
|
+
"internalType": "uint8",
|
|
518
|
+
"name": "index",
|
|
519
|
+
"type": "uint8"
|
|
520
|
+
}
|
|
521
|
+
],
|
|
522
|
+
"name": "speedBumpNextSBHours",
|
|
523
|
+
"outputs": [
|
|
524
|
+
{
|
|
525
|
+
"internalType": "uint16",
|
|
526
|
+
"name": "",
|
|
527
|
+
"type": "uint16"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"payable": false,
|
|
531
|
+
"stateMutability": "view",
|
|
295
532
|
"type": "function"
|
|
296
533
|
},
|
|
297
534
|
{
|
|
535
|
+
"constant": true,
|
|
298
536
|
"inputs": [
|
|
537
|
+
{
|
|
538
|
+
"internalType": "uint8",
|
|
539
|
+
"name": "index",
|
|
540
|
+
"type": "uint8"
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
"name": "speedBumpTimeCreated",
|
|
544
|
+
"outputs": [
|
|
545
|
+
{
|
|
546
|
+
"internalType": "uint256",
|
|
547
|
+
"name": "",
|
|
548
|
+
"type": "uint256"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"payable": false,
|
|
552
|
+
"stateMutability": "view",
|
|
553
|
+
"type": "function"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"constant": true,
|
|
557
|
+
"inputs": [
|
|
558
|
+
{
|
|
559
|
+
"internalType": "uint8",
|
|
560
|
+
"name": "index",
|
|
561
|
+
"type": "uint8"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"internalType": "uint8",
|
|
565
|
+
"name": "uint16Index",
|
|
566
|
+
"type": "uint8"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"name": "speedBumpUint16s",
|
|
570
|
+
"outputs": [
|
|
571
|
+
{
|
|
572
|
+
"internalType": "uint16",
|
|
573
|
+
"name": "",
|
|
574
|
+
"type": "uint16"
|
|
575
|
+
}
|
|
576
|
+
],
|
|
577
|
+
"payable": false,
|
|
578
|
+
"stateMutability": "view",
|
|
579
|
+
"type": "function"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"constant": true,
|
|
583
|
+
"inputs": [],
|
|
584
|
+
"name": "treasuryPenaltyMultipler",
|
|
585
|
+
"outputs": [
|
|
586
|
+
{
|
|
587
|
+
"internalType": "uint16",
|
|
588
|
+
"name": "",
|
|
589
|
+
"type": "uint16"
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
"payable": false,
|
|
593
|
+
"stateMutability": "view",
|
|
594
|
+
"type": "function"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"constant": true,
|
|
598
|
+
"inputs": [],
|
|
599
|
+
"name": "treasurysDeposit",
|
|
600
|
+
"outputs": [
|
|
601
|
+
{
|
|
602
|
+
"internalType": "address",
|
|
603
|
+
"name": "",
|
|
604
|
+
"type": "address"
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
"payable": false,
|
|
608
|
+
"stateMutability": "view",
|
|
609
|
+
"type": "function"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"constant": true,
|
|
613
|
+
"inputs": [],
|
|
614
|
+
"name": "treasurysFactory",
|
|
615
|
+
"outputs": [
|
|
299
616
|
{
|
|
300
617
|
"internalType": "address",
|
|
301
|
-
"name": "
|
|
618
|
+
"name": "",
|
|
302
619
|
"type": "address"
|
|
303
620
|
}
|
|
304
621
|
],
|
|
305
|
-
"
|
|
622
|
+
"payable": false,
|
|
623
|
+
"stateMutability": "view",
|
|
624
|
+
"type": "function"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"constant": true,
|
|
628
|
+
"inputs": [],
|
|
629
|
+
"name": "treasurysRuleList",
|
|
630
|
+
"outputs": [
|
|
631
|
+
{
|
|
632
|
+
"internalType": "address",
|
|
633
|
+
"name": "",
|
|
634
|
+
"type": "address"
|
|
635
|
+
}
|
|
636
|
+
],
|
|
637
|
+
"payable": false,
|
|
638
|
+
"stateMutability": "view",
|
|
639
|
+
"type": "function"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"constant": false,
|
|
643
|
+
"inputs": [],
|
|
644
|
+
"name": "updateTreasuryContracts",
|
|
306
645
|
"outputs": [],
|
|
646
|
+
"payable": false,
|
|
307
647
|
"stateMutability": "nonpayable",
|
|
308
648
|
"type": "function"
|
|
309
649
|
},
|
|
310
650
|
{
|
|
651
|
+
"constant": false,
|
|
311
652
|
"inputs": [],
|
|
312
|
-
"name": "
|
|
653
|
+
"name": "updateTreasuryFeeVariables",
|
|
313
654
|
"outputs": [],
|
|
655
|
+
"payable": false,
|
|
656
|
+
"stateMutability": "nonpayable",
|
|
657
|
+
"type": "function"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"constant": false,
|
|
661
|
+
"inputs": [],
|
|
662
|
+
"name": "updateTreasuryMainVariables",
|
|
663
|
+
"outputs": [],
|
|
664
|
+
"payable": false,
|
|
314
665
|
"stateMutability": "nonpayable",
|
|
315
666
|
"type": "function"
|
|
316
667
|
}
|
|
@@ -373,144 +724,261 @@ class Treasury_json {
|
|
|
373
724
|
return this.contract;
|
|
374
725
|
}
|
|
375
726
|
/**
|
|
376
|
-
*
|
|
727
|
+
* QNTAddress
|
|
728
|
+
* view
|
|
729
|
+
*/
|
|
730
|
+
async QNTAddress() {
|
|
731
|
+
return this.contract.read.QNTAddress();
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* admin
|
|
735
|
+
* view
|
|
736
|
+
*/
|
|
737
|
+
async admin() {
|
|
738
|
+
return this.contract.read.admin();
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* circuitBreakerOn
|
|
742
|
+
* view
|
|
743
|
+
*/
|
|
744
|
+
async circuitBreakerOn() {
|
|
745
|
+
return this.contract.read.circuitBreakerOn();
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* commissionDivider
|
|
749
|
+
* view
|
|
750
|
+
*/
|
|
751
|
+
async commissionDivider() {
|
|
752
|
+
return this.contract.read.commissionDivider();
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* gatewayPenaltyMultipler
|
|
756
|
+
* view
|
|
757
|
+
*/
|
|
758
|
+
async gatewayPenaltyMultipler() {
|
|
759
|
+
return this.contract.read.gatewayPenaltyMultipler();
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* implementation
|
|
763
|
+
* view
|
|
764
|
+
*/
|
|
765
|
+
async implementation() {
|
|
766
|
+
return this.contract.read.implementation();
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* initialized
|
|
770
|
+
* view
|
|
771
|
+
*/
|
|
772
|
+
async initialized() {
|
|
773
|
+
return this.contract.read.initialized();
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* mappDisputeFeeMultipler
|
|
777
|
+
* view
|
|
778
|
+
*/
|
|
779
|
+
async mappDisputeFeeMultipler() {
|
|
780
|
+
return this.contract.read.mappDisputeFeeMultipler();
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* operatorAddress
|
|
784
|
+
* view
|
|
785
|
+
*/
|
|
786
|
+
async operatorAddress() {
|
|
787
|
+
return this.contract.read.operatorAddress();
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* readFunctionPenaltyMultipler
|
|
377
791
|
* view
|
|
378
792
|
*/
|
|
379
|
-
async
|
|
380
|
-
return this.contract.read.
|
|
793
|
+
async readFunctionPenaltyMultipler(gateway) {
|
|
794
|
+
return this.contract.read.readFunctionPenaltyMultipler([gateway]);
|
|
381
795
|
}
|
|
382
796
|
/**
|
|
383
|
-
*
|
|
797
|
+
* speedBumpAddresses
|
|
384
798
|
* view
|
|
385
799
|
*/
|
|
386
|
-
async
|
|
387
|
-
return this.contract.read.
|
|
800
|
+
async speedBumpAddresses(index, addressIndex) {
|
|
801
|
+
return this.contract.read.speedBumpAddresses([index, addressIndex]);
|
|
388
802
|
}
|
|
389
803
|
/**
|
|
390
|
-
*
|
|
804
|
+
* speedBumpCircuitBreaker
|
|
391
805
|
* view
|
|
392
806
|
*/
|
|
393
|
-
async
|
|
394
|
-
return this.contract.read.
|
|
807
|
+
async speedBumpCircuitBreaker(index) {
|
|
808
|
+
return this.contract.read.speedBumpCircuitBreaker([index]);
|
|
395
809
|
}
|
|
396
810
|
/**
|
|
397
|
-
*
|
|
811
|
+
* speedBumpCurrentSBHours
|
|
398
812
|
* view
|
|
399
813
|
*/
|
|
400
|
-
async
|
|
401
|
-
return this.contract.read.
|
|
814
|
+
async speedBumpCurrentSBHours(index) {
|
|
815
|
+
return this.contract.read.speedBumpCurrentSBHours([index]);
|
|
402
816
|
}
|
|
403
817
|
/**
|
|
404
|
-
*
|
|
818
|
+
* speedBumpHours
|
|
405
819
|
* view
|
|
406
820
|
*/
|
|
407
|
-
async
|
|
408
|
-
return this.contract.read.
|
|
821
|
+
async speedBumpHours() {
|
|
822
|
+
return this.contract.read.speedBumpHours();
|
|
409
823
|
}
|
|
410
824
|
/**
|
|
411
|
-
*
|
|
825
|
+
* speedBumpNextSBHours
|
|
412
826
|
* view
|
|
413
827
|
*/
|
|
414
|
-
async
|
|
415
|
-
return this.contract.read.
|
|
828
|
+
async speedBumpNextSBHours(index) {
|
|
829
|
+
return this.contract.read.speedBumpNextSBHours([index]);
|
|
416
830
|
}
|
|
417
831
|
/**
|
|
418
|
-
*
|
|
832
|
+
* speedBumpTimeCreated
|
|
419
833
|
* view
|
|
420
834
|
*/
|
|
421
|
-
async
|
|
422
|
-
return this.contract.read.
|
|
835
|
+
async speedBumpTimeCreated(index) {
|
|
836
|
+
return this.contract.read.speedBumpTimeCreated([index]);
|
|
423
837
|
}
|
|
424
838
|
/**
|
|
425
|
-
*
|
|
839
|
+
* speedBumpUint16s
|
|
426
840
|
* view
|
|
427
841
|
*/
|
|
428
|
-
async
|
|
429
|
-
return this.contract.read.
|
|
842
|
+
async speedBumpUint16s(index, uint16Index) {
|
|
843
|
+
return this.contract.read.speedBumpUint16s([index, uint16Index]);
|
|
430
844
|
}
|
|
431
845
|
/**
|
|
432
|
-
*
|
|
846
|
+
* treasuryPenaltyMultipler
|
|
433
847
|
* view
|
|
434
848
|
*/
|
|
435
|
-
async
|
|
436
|
-
return this.contract.read.
|
|
849
|
+
async treasuryPenaltyMultipler() {
|
|
850
|
+
return this.contract.read.treasuryPenaltyMultipler();
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* treasurysDeposit
|
|
854
|
+
* view
|
|
855
|
+
*/
|
|
856
|
+
async treasurysDeposit() {
|
|
857
|
+
return this.contract.read.treasurysDeposit();
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* treasurysFactory
|
|
861
|
+
* view
|
|
862
|
+
*/
|
|
863
|
+
async treasurysFactory() {
|
|
864
|
+
return this.contract.read.treasurysFactory();
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* treasurysRuleList
|
|
868
|
+
* view
|
|
869
|
+
*/
|
|
870
|
+
async treasurysRuleList() {
|
|
871
|
+
return this.contract.read.treasurysRuleList();
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* changeProxyVariables
|
|
875
|
+
* nonpayable
|
|
876
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
877
|
+
*/
|
|
878
|
+
async changeProxyVariables(nextAdmin, nextImplementation, options) {
|
|
879
|
+
if (!this.contract.write) {
|
|
880
|
+
throw new Error('Wallet client is required for write operations');
|
|
881
|
+
}
|
|
882
|
+
return this.contract.write.changeProxyVariables([nextAdmin, nextImplementation], options);
|
|
437
883
|
}
|
|
438
884
|
/**
|
|
439
885
|
* initialize
|
|
440
886
|
* nonpayable
|
|
441
887
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
442
888
|
*/
|
|
443
|
-
async initialize(
|
|
889
|
+
async initialize(thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime, options) {
|
|
890
|
+
if (!this.contract.write) {
|
|
891
|
+
throw new Error('Wallet client is required for write operations');
|
|
892
|
+
}
|
|
893
|
+
return this.contract.write.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime], options);
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* setAdmin
|
|
897
|
+
* nonpayable
|
|
898
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
899
|
+
*/
|
|
900
|
+
async setAdmin(options) {
|
|
444
901
|
if (!this.contract.write) {
|
|
445
902
|
throw new Error('Wallet client is required for write operations');
|
|
446
903
|
}
|
|
447
|
-
return this.contract.write.
|
|
904
|
+
return this.contract.write.setAdmin(options);
|
|
448
905
|
}
|
|
449
906
|
/**
|
|
450
|
-
*
|
|
907
|
+
* setImplementation
|
|
451
908
|
* nonpayable
|
|
452
909
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
453
910
|
*/
|
|
454
|
-
async
|
|
911
|
+
async setImplementation(options) {
|
|
455
912
|
if (!this.contract.write) {
|
|
456
913
|
throw new Error('Wallet client is required for write operations');
|
|
457
914
|
}
|
|
458
|
-
return this.contract.write.
|
|
915
|
+
return this.contract.write.setImplementation(options);
|
|
459
916
|
}
|
|
460
917
|
/**
|
|
461
|
-
*
|
|
918
|
+
* speedBumpContract
|
|
462
919
|
* nonpayable
|
|
463
920
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
464
921
|
*/
|
|
465
|
-
async
|
|
922
|
+
async speedBumpContract(addresses, options) {
|
|
466
923
|
if (!this.contract.write) {
|
|
467
924
|
throw new Error('Wallet client is required for write operations');
|
|
468
925
|
}
|
|
469
|
-
return this.contract.write.
|
|
926
|
+
return this.contract.write.speedBumpContract([addresses], options);
|
|
470
927
|
}
|
|
471
928
|
/**
|
|
472
|
-
*
|
|
929
|
+
* speedBumpFee
|
|
473
930
|
* nonpayable
|
|
474
931
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
475
932
|
*/
|
|
476
|
-
async
|
|
933
|
+
async speedBumpFee(uint16s, options) {
|
|
477
934
|
if (!this.contract.write) {
|
|
478
935
|
throw new Error('Wallet client is required for write operations');
|
|
479
936
|
}
|
|
480
|
-
return this.contract.write.
|
|
937
|
+
return this.contract.write.speedBumpFee([uint16s], options);
|
|
481
938
|
}
|
|
482
939
|
/**
|
|
483
|
-
*
|
|
484
|
-
*
|
|
940
|
+
* speedBumpMain
|
|
941
|
+
* nonpayable
|
|
485
942
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
486
943
|
*/
|
|
487
|
-
async
|
|
944
|
+
async speedBumpMain(addresses, newSpeedBumpHours, circuitBreaker, options) {
|
|
488
945
|
if (!this.contract.write) {
|
|
489
946
|
throw new Error('Wallet client is required for write operations');
|
|
490
947
|
}
|
|
491
|
-
return this.contract.write.
|
|
948
|
+
return this.contract.write.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker], options);
|
|
492
949
|
}
|
|
493
950
|
/**
|
|
494
|
-
*
|
|
951
|
+
* updateTreasuryContracts
|
|
495
952
|
* nonpayable
|
|
496
953
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
497
954
|
*/
|
|
498
|
-
async
|
|
955
|
+
async updateTreasuryContracts(options) {
|
|
499
956
|
if (!this.contract.write) {
|
|
500
957
|
throw new Error('Wallet client is required for write operations');
|
|
501
958
|
}
|
|
502
|
-
return this.contract.write.
|
|
959
|
+
return this.contract.write.updateTreasuryContracts(options);
|
|
503
960
|
}
|
|
504
961
|
/**
|
|
505
|
-
*
|
|
962
|
+
* updateTreasuryFeeVariables
|
|
506
963
|
* nonpayable
|
|
507
964
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
508
965
|
*/
|
|
509
|
-
async
|
|
966
|
+
async updateTreasuryFeeVariables(options) {
|
|
510
967
|
if (!this.contract.write) {
|
|
511
968
|
throw new Error('Wallet client is required for write operations');
|
|
512
969
|
}
|
|
513
|
-
return this.contract.write.
|
|
970
|
+
return this.contract.write.updateTreasuryFeeVariables(options);
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* updateTreasuryMainVariables
|
|
974
|
+
* nonpayable
|
|
975
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
976
|
+
*/
|
|
977
|
+
async updateTreasuryMainVariables(options) {
|
|
978
|
+
if (!this.contract.write) {
|
|
979
|
+
throw new Error('Wallet client is required for write operations');
|
|
980
|
+
}
|
|
981
|
+
return this.contract.write.updateTreasuryMainVariables(options);
|
|
514
982
|
}
|
|
515
983
|
/**
|
|
516
984
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -526,61 +994,85 @@ class Treasury_json {
|
|
|
526
994
|
throw new Error('Public client is required for simulation');
|
|
527
995
|
}
|
|
528
996
|
return {
|
|
997
|
+
/**
|
|
998
|
+
* Simulate changeProxyVariables
|
|
999
|
+
* Returns gas estimate and result without sending transaction
|
|
1000
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1001
|
+
*/
|
|
1002
|
+
async changeProxyVariables(nextAdmin, nextImplementation, options) {
|
|
1003
|
+
return contract.simulate.changeProxyVariables([nextAdmin, nextImplementation], options);
|
|
1004
|
+
},
|
|
529
1005
|
/**
|
|
530
1006
|
* Simulate initialize
|
|
531
1007
|
* Returns gas estimate and result without sending transaction
|
|
532
1008
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
533
1009
|
*/
|
|
534
|
-
async initialize(
|
|
535
|
-
return contract.simulate.initialize([
|
|
1010
|
+
async initialize(thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime, options) {
|
|
1011
|
+
return contract.simulate.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime], options);
|
|
536
1012
|
},
|
|
537
1013
|
/**
|
|
538
|
-
* Simulate
|
|
1014
|
+
* Simulate setAdmin
|
|
539
1015
|
* Returns gas estimate and result without sending transaction
|
|
540
1016
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
541
1017
|
*/
|
|
542
|
-
async
|
|
543
|
-
return contract.simulate.
|
|
1018
|
+
async setAdmin(options) {
|
|
1019
|
+
return contract.simulate.setAdmin(options);
|
|
544
1020
|
},
|
|
545
1021
|
/**
|
|
546
|
-
* Simulate
|
|
1022
|
+
* Simulate setImplementation
|
|
547
1023
|
* Returns gas estimate and result without sending transaction
|
|
548
1024
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
549
1025
|
*/
|
|
550
|
-
async
|
|
551
|
-
return contract.simulate.
|
|
1026
|
+
async setImplementation(options) {
|
|
1027
|
+
return contract.simulate.setImplementation(options);
|
|
552
1028
|
},
|
|
553
1029
|
/**
|
|
554
|
-
* Simulate
|
|
1030
|
+
* Simulate speedBumpContract
|
|
555
1031
|
* Returns gas estimate and result without sending transaction
|
|
556
1032
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
557
1033
|
*/
|
|
558
|
-
async
|
|
559
|
-
return contract.simulate.
|
|
1034
|
+
async speedBumpContract(addresses, options) {
|
|
1035
|
+
return contract.simulate.speedBumpContract([addresses], options);
|
|
560
1036
|
},
|
|
561
1037
|
/**
|
|
562
|
-
* Simulate
|
|
1038
|
+
* Simulate speedBumpFee
|
|
563
1039
|
* Returns gas estimate and result without sending transaction
|
|
564
1040
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
565
1041
|
*/
|
|
566
|
-
async
|
|
567
|
-
return contract.simulate.
|
|
1042
|
+
async speedBumpFee(uint16s, options) {
|
|
1043
|
+
return contract.simulate.speedBumpFee([uint16s], options);
|
|
568
1044
|
},
|
|
569
1045
|
/**
|
|
570
|
-
* Simulate
|
|
1046
|
+
* Simulate speedBumpMain
|
|
571
1047
|
* Returns gas estimate and result without sending transaction
|
|
572
1048
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
573
1049
|
*/
|
|
574
|
-
async
|
|
575
|
-
return contract.simulate.
|
|
1050
|
+
async speedBumpMain(addresses, newSpeedBumpHours, circuitBreaker, options) {
|
|
1051
|
+
return contract.simulate.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker], options);
|
|
576
1052
|
},
|
|
577
1053
|
/**
|
|
578
|
-
* Simulate
|
|
1054
|
+
* Simulate updateTreasuryContracts
|
|
579
1055
|
* Returns gas estimate and result without sending transaction
|
|
580
1056
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
581
1057
|
*/
|
|
582
|
-
async
|
|
583
|
-
return contract.simulate.
|
|
1058
|
+
async updateTreasuryContracts(options) {
|
|
1059
|
+
return contract.simulate.updateTreasuryContracts(options);
|
|
1060
|
+
},
|
|
1061
|
+
/**
|
|
1062
|
+
* Simulate updateTreasuryFeeVariables
|
|
1063
|
+
* Returns gas estimate and result without sending transaction
|
|
1064
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1065
|
+
*/
|
|
1066
|
+
async updateTreasuryFeeVariables(options) {
|
|
1067
|
+
return contract.simulate.updateTreasuryFeeVariables(options);
|
|
1068
|
+
},
|
|
1069
|
+
/**
|
|
1070
|
+
* Simulate updateTreasuryMainVariables
|
|
1071
|
+
* Returns gas estimate and result without sending transaction
|
|
1072
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1073
|
+
*/
|
|
1074
|
+
async updateTreasuryMainVariables(options) {
|
|
1075
|
+
return contract.simulate.updateTreasuryMainVariables(options);
|
|
584
1076
|
}
|
|
585
1077
|
};
|
|
586
1078
|
}
|
|
@@ -599,35 +1091,16 @@ class Treasury_json {
|
|
|
599
1091
|
get watch() {
|
|
600
1092
|
return {
|
|
601
1093
|
/**
|
|
602
|
-
* Watch
|
|
603
|
-
* @param callback Function to call when event is emitted
|
|
604
|
-
* @param filter Optional filter for indexed parameters
|
|
605
|
-
* @returns Unwatch function to stop listening
|
|
606
|
-
*/
|
|
607
|
-
AdminChanged: (callback) => {
|
|
608
|
-
return this.publicClient.watchContractEvent({
|
|
609
|
-
address: this.contractAddress,
|
|
610
|
-
abi: exports.Treasury_jsonAbi,
|
|
611
|
-
eventName: 'AdminChanged',
|
|
612
|
-
onLogs: (logs) => {
|
|
613
|
-
logs.forEach((log) => {
|
|
614
|
-
callback(log.args);
|
|
615
|
-
});
|
|
616
|
-
},
|
|
617
|
-
});
|
|
618
|
-
},
|
|
619
|
-
/**
|
|
620
|
-
* Watch BeaconUpgraded events
|
|
1094
|
+
* Watch connectedContracts events
|
|
621
1095
|
* @param callback Function to call when event is emitted
|
|
622
1096
|
* @param filter Optional filter for indexed parameters
|
|
623
1097
|
* @returns Unwatch function to stop listening
|
|
624
1098
|
*/
|
|
625
|
-
|
|
1099
|
+
connectedContracts: (callback) => {
|
|
626
1100
|
return this.publicClient.watchContractEvent({
|
|
627
1101
|
address: this.contractAddress,
|
|
628
1102
|
abi: exports.Treasury_jsonAbi,
|
|
629
|
-
eventName: '
|
|
630
|
-
args: filter,
|
|
1103
|
+
eventName: 'connectedContracts',
|
|
631
1104
|
onLogs: (logs) => {
|
|
632
1105
|
logs.forEach((log) => {
|
|
633
1106
|
callback(log.args);
|
|
@@ -636,17 +1109,16 @@ class Treasury_json {
|
|
|
636
1109
|
});
|
|
637
1110
|
},
|
|
638
1111
|
/**
|
|
639
|
-
* Watch
|
|
1112
|
+
* Watch updatedSpeedBump events
|
|
640
1113
|
* @param callback Function to call when event is emitted
|
|
641
1114
|
* @param filter Optional filter for indexed parameters
|
|
642
1115
|
* @returns Unwatch function to stop listening
|
|
643
1116
|
*/
|
|
644
|
-
|
|
1117
|
+
updatedSpeedBump: (callback) => {
|
|
645
1118
|
return this.publicClient.watchContractEvent({
|
|
646
1119
|
address: this.contractAddress,
|
|
647
1120
|
abi: exports.Treasury_jsonAbi,
|
|
648
|
-
eventName: '
|
|
649
|
-
args: filter,
|
|
1121
|
+
eventName: 'updatedSpeedBump',
|
|
650
1122
|
onLogs: (logs) => {
|
|
651
1123
|
logs.forEach((log) => {
|
|
652
1124
|
callback(log.args);
|
|
@@ -655,16 +1127,16 @@ class Treasury_json {
|
|
|
655
1127
|
});
|
|
656
1128
|
},
|
|
657
1129
|
/**
|
|
658
|
-
* Watch
|
|
1130
|
+
* Watch updatedTreasuryFunctionVerification events
|
|
659
1131
|
* @param callback Function to call when event is emitted
|
|
660
1132
|
* @param filter Optional filter for indexed parameters
|
|
661
1133
|
* @returns Unwatch function to stop listening
|
|
662
1134
|
*/
|
|
663
|
-
|
|
1135
|
+
updatedTreasuryFunctionVerification: (callback) => {
|
|
664
1136
|
return this.publicClient.watchContractEvent({
|
|
665
1137
|
address: this.contractAddress,
|
|
666
1138
|
abi: exports.Treasury_jsonAbi,
|
|
667
|
-
eventName: '
|
|
1139
|
+
eventName: 'updatedTreasuryFunctionVerification',
|
|
668
1140
|
onLogs: (logs) => {
|
|
669
1141
|
logs.forEach((log) => {
|
|
670
1142
|
callback(log.args);
|
|
@@ -673,16 +1145,16 @@ class Treasury_json {
|
|
|
673
1145
|
});
|
|
674
1146
|
},
|
|
675
1147
|
/**
|
|
676
|
-
* Watch
|
|
1148
|
+
* Watch updatedTreasuryMainVariables events
|
|
677
1149
|
* @param callback Function to call when event is emitted
|
|
678
1150
|
* @param filter Optional filter for indexed parameters
|
|
679
1151
|
* @returns Unwatch function to stop listening
|
|
680
1152
|
*/
|
|
681
|
-
|
|
1153
|
+
updatedTreasuryMainVariables: (callback) => {
|
|
682
1154
|
return this.publicClient.watchContractEvent({
|
|
683
1155
|
address: this.contractAddress,
|
|
684
1156
|
abi: exports.Treasury_jsonAbi,
|
|
685
|
-
eventName: '
|
|
1157
|
+
eventName: 'updatedTreasuryMainVariables',
|
|
686
1158
|
onLogs: (logs) => {
|
|
687
1159
|
logs.forEach((log) => {
|
|
688
1160
|
callback(log.args);
|
|
@@ -691,17 +1163,16 @@ class Treasury_json {
|
|
|
691
1163
|
});
|
|
692
1164
|
},
|
|
693
1165
|
/**
|
|
694
|
-
* Watch
|
|
1166
|
+
* Watch updatedTreasuryVariables events
|
|
695
1167
|
* @param callback Function to call when event is emitted
|
|
696
1168
|
* @param filter Optional filter for indexed parameters
|
|
697
1169
|
* @returns Unwatch function to stop listening
|
|
698
1170
|
*/
|
|
699
|
-
|
|
1171
|
+
updatedTreasuryVariables: (callback) => {
|
|
700
1172
|
return this.publicClient.watchContractEvent({
|
|
701
1173
|
address: this.contractAddress,
|
|
702
1174
|
abi: exports.Treasury_jsonAbi,
|
|
703
|
-
eventName: '
|
|
704
|
-
args: filter,
|
|
1175
|
+
eventName: 'updatedTreasuryVariables',
|
|
705
1176
|
onLogs: (logs) => {
|
|
706
1177
|
logs.forEach((log) => {
|
|
707
1178
|
callback(log.args);
|