@gitmyabi/treasury 1.0.2 → 1.0.3
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/ERC1967Proxy_json.d.ts +145 -0
- package/contracts/ERC1967Proxy_json.js +182 -0
- package/contracts/ERC1967Proxy_json.ts +212 -0
- package/contracts/Treasury_json.d.ts +636 -446
- package/contracts/Treasury_json.js +740 -503
- package/contracts/Treasury_json.ts +786 -508
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +4 -1
- package/contracts/index.ts +2 -0
- package/package.json +3 -3
|
@@ -9,28 +9,161 @@ const viem_1 = require("viem");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.Treasury_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"anonymous": false,
|
|
13
12
|
"inputs": [
|
|
14
13
|
{
|
|
15
|
-
"indexed": false,
|
|
16
14
|
"internalType": "address",
|
|
17
|
-
"name": "
|
|
15
|
+
"name": "_manager",
|
|
18
16
|
"type": "address"
|
|
19
|
-
}
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "payable",
|
|
20
|
+
"type": "constructor"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [],
|
|
24
|
+
"name": "ADDRESS_ZERO",
|
|
25
|
+
"type": "error"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"name": "ALREADY_INITIALIZED",
|
|
30
|
+
"type": "error"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "DELEGATE_CALL_FAILED",
|
|
35
|
+
"type": "error"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [],
|
|
39
|
+
"name": "EXECUTION_EXPIRED",
|
|
40
|
+
"type": "error"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"internalType": "uint256",
|
|
46
|
+
"name": "txIndex",
|
|
47
|
+
"type": "uint256"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"name": "EXECUTION_FAILED",
|
|
51
|
+
"type": "error"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"internalType": "bytes32",
|
|
57
|
+
"name": "proposalId",
|
|
58
|
+
"type": "bytes32"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"name": "EXECUTION_NOT_READY",
|
|
62
|
+
"type": "error"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"inputs": [],
|
|
66
|
+
"name": "INITIALIZING",
|
|
67
|
+
"type": "error"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputs": [],
|
|
71
|
+
"name": "INVALID_TARGET",
|
|
72
|
+
"type": "error"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"inputs": [
|
|
20
76
|
{
|
|
21
|
-
"indexed": false,
|
|
22
77
|
"internalType": "address",
|
|
23
|
-
"name": "
|
|
78
|
+
"name": "impl",
|
|
24
79
|
"type": "address"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"name": "INVALID_UPGRADE",
|
|
83
|
+
"type": "error"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"inputs": [],
|
|
87
|
+
"name": "NOT_INITIALIZING",
|
|
88
|
+
"type": "error"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [],
|
|
92
|
+
"name": "ONLY_CALL",
|
|
93
|
+
"type": "error"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"inputs": [],
|
|
97
|
+
"name": "ONLY_DELEGATECALL",
|
|
98
|
+
"type": "error"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"inputs": [],
|
|
102
|
+
"name": "ONLY_MANAGER",
|
|
103
|
+
"type": "error"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"inputs": [],
|
|
107
|
+
"name": "ONLY_OWNER",
|
|
108
|
+
"type": "error"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"inputs": [],
|
|
112
|
+
"name": "ONLY_PENDING_OWNER",
|
|
113
|
+
"type": "error"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"inputs": [],
|
|
117
|
+
"name": "ONLY_PROXY",
|
|
118
|
+
"type": "error"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"inputs": [],
|
|
122
|
+
"name": "ONLY_TREASURY",
|
|
123
|
+
"type": "error"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"inputs": [],
|
|
127
|
+
"name": "ONLY_UUPS",
|
|
128
|
+
"type": "error"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"inputs": [],
|
|
132
|
+
"name": "PROPOSAL_ALREADY_QUEUED",
|
|
133
|
+
"type": "error"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"inputs": [],
|
|
137
|
+
"name": "PROPOSAL_NOT_QUEUED",
|
|
138
|
+
"type": "error"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [],
|
|
142
|
+
"name": "UNSAFE_CAST",
|
|
143
|
+
"type": "error"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"inputs": [],
|
|
147
|
+
"name": "UNSUPPORTED_UUID",
|
|
148
|
+
"type": "error"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"anonymous": false,
|
|
152
|
+
"inputs": [
|
|
153
|
+
{
|
|
154
|
+
"indexed": false,
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "prevDelay",
|
|
157
|
+
"type": "uint256"
|
|
25
158
|
},
|
|
26
159
|
{
|
|
27
160
|
"indexed": false,
|
|
28
|
-
"internalType": "
|
|
29
|
-
"name": "
|
|
30
|
-
"type": "
|
|
161
|
+
"internalType": "uint256",
|
|
162
|
+
"name": "newDelay",
|
|
163
|
+
"type": "uint256"
|
|
31
164
|
}
|
|
32
165
|
],
|
|
33
|
-
"name": "
|
|
166
|
+
"name": "DelayUpdated",
|
|
34
167
|
"type": "event"
|
|
35
168
|
},
|
|
36
169
|
{
|
|
@@ -39,67 +172,100 @@ exports.Treasury_jsonAbi = [
|
|
|
39
172
|
{
|
|
40
173
|
"indexed": false,
|
|
41
174
|
"internalType": "uint256",
|
|
42
|
-
"name": "
|
|
175
|
+
"name": "prevGracePeriod",
|
|
43
176
|
"type": "uint256"
|
|
44
177
|
},
|
|
45
178
|
{
|
|
46
179
|
"indexed": false,
|
|
47
180
|
"internalType": "uint256",
|
|
48
|
-
"name": "
|
|
181
|
+
"name": "newGracePeriod",
|
|
49
182
|
"type": "uint256"
|
|
50
|
-
}
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"name": "GracePeriodUpdated",
|
|
186
|
+
"type": "event"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"anonymous": false,
|
|
190
|
+
"inputs": [
|
|
51
191
|
{
|
|
52
192
|
"indexed": false,
|
|
53
193
|
"internalType": "uint256",
|
|
54
|
-
"name": "
|
|
194
|
+
"name": "version",
|
|
55
195
|
"type": "uint256"
|
|
56
196
|
}
|
|
57
197
|
],
|
|
58
|
-
"name": "
|
|
198
|
+
"name": "Initialized",
|
|
59
199
|
"type": "event"
|
|
60
200
|
},
|
|
61
201
|
{
|
|
62
202
|
"anonymous": false,
|
|
63
203
|
"inputs": [
|
|
64
204
|
{
|
|
65
|
-
"indexed":
|
|
66
|
-
"internalType": "
|
|
67
|
-
"name": "
|
|
68
|
-
"type": "
|
|
205
|
+
"indexed": true,
|
|
206
|
+
"internalType": "address",
|
|
207
|
+
"name": "owner",
|
|
208
|
+
"type": "address"
|
|
69
209
|
},
|
|
70
210
|
{
|
|
71
|
-
"indexed":
|
|
72
|
-
"internalType": "
|
|
73
|
-
"name": "
|
|
74
|
-
"type": "
|
|
211
|
+
"indexed": true,
|
|
212
|
+
"internalType": "address",
|
|
213
|
+
"name": "canceledOwner",
|
|
214
|
+
"type": "address"
|
|
75
215
|
}
|
|
76
216
|
],
|
|
77
|
-
"name": "
|
|
217
|
+
"name": "OwnerCanceled",
|
|
78
218
|
"type": "event"
|
|
79
219
|
},
|
|
80
220
|
{
|
|
81
221
|
"anonymous": false,
|
|
82
222
|
"inputs": [
|
|
83
223
|
{
|
|
84
|
-
"indexed":
|
|
224
|
+
"indexed": true,
|
|
85
225
|
"internalType": "address",
|
|
86
|
-
"name": "
|
|
226
|
+
"name": "owner",
|
|
87
227
|
"type": "address"
|
|
88
228
|
},
|
|
89
229
|
{
|
|
90
|
-
"indexed":
|
|
230
|
+
"indexed": true,
|
|
91
231
|
"internalType": "address",
|
|
92
|
-
"name": "
|
|
232
|
+
"name": "pendingOwner",
|
|
233
|
+
"type": "address"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"name": "OwnerPending",
|
|
237
|
+
"type": "event"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"anonymous": false,
|
|
241
|
+
"inputs": [
|
|
242
|
+
{
|
|
243
|
+
"indexed": true,
|
|
244
|
+
"internalType": "address",
|
|
245
|
+
"name": "prevOwner",
|
|
93
246
|
"type": "address"
|
|
94
247
|
},
|
|
248
|
+
{
|
|
249
|
+
"indexed": true,
|
|
250
|
+
"internalType": "address",
|
|
251
|
+
"name": "newOwner",
|
|
252
|
+
"type": "address"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"name": "OwnerUpdated",
|
|
256
|
+
"type": "event"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"anonymous": false,
|
|
260
|
+
"inputs": [
|
|
95
261
|
{
|
|
96
262
|
"indexed": false,
|
|
97
|
-
"internalType": "
|
|
98
|
-
"name": "
|
|
99
|
-
"type": "
|
|
263
|
+
"internalType": "bytes32",
|
|
264
|
+
"name": "proposalId",
|
|
265
|
+
"type": "bytes32"
|
|
100
266
|
}
|
|
101
267
|
],
|
|
102
|
-
"name": "
|
|
268
|
+
"name": "TransactionCanceled",
|
|
103
269
|
"type": "event"
|
|
104
270
|
},
|
|
105
271
|
{
|
|
@@ -107,191 +273,229 @@ exports.Treasury_jsonAbi = [
|
|
|
107
273
|
"inputs": [
|
|
108
274
|
{
|
|
109
275
|
"indexed": false,
|
|
110
|
-
"internalType": "
|
|
111
|
-
"name": "
|
|
112
|
-
"type": "
|
|
276
|
+
"internalType": "bytes32",
|
|
277
|
+
"name": "proposalId",
|
|
278
|
+
"type": "bytes32"
|
|
113
279
|
},
|
|
114
280
|
{
|
|
115
281
|
"indexed": false,
|
|
116
|
-
"internalType": "
|
|
117
|
-
"name": "
|
|
118
|
-
"type": "
|
|
282
|
+
"internalType": "address[]",
|
|
283
|
+
"name": "targets",
|
|
284
|
+
"type": "address[]"
|
|
119
285
|
},
|
|
120
286
|
{
|
|
121
287
|
"indexed": false,
|
|
122
|
-
"internalType": "
|
|
123
|
-
"name": "
|
|
124
|
-
"type": "
|
|
288
|
+
"internalType": "uint256[]",
|
|
289
|
+
"name": "values",
|
|
290
|
+
"type": "uint256[]"
|
|
125
291
|
},
|
|
126
292
|
{
|
|
127
293
|
"indexed": false,
|
|
128
|
-
"internalType": "
|
|
129
|
-
"name": "
|
|
130
|
-
"type": "
|
|
294
|
+
"internalType": "bytes[]",
|
|
295
|
+
"name": "payloads",
|
|
296
|
+
"type": "bytes[]"
|
|
131
297
|
}
|
|
132
298
|
],
|
|
133
|
-
"name": "
|
|
299
|
+
"name": "TransactionExecuted",
|
|
134
300
|
"type": "event"
|
|
135
301
|
},
|
|
136
302
|
{
|
|
137
|
-
"
|
|
138
|
-
"inputs": [
|
|
139
|
-
"name": "QNTAddress",
|
|
140
|
-
"outputs": [
|
|
303
|
+
"anonymous": false,
|
|
304
|
+
"inputs": [
|
|
141
305
|
{
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
306
|
+
"indexed": false,
|
|
307
|
+
"internalType": "bytes32",
|
|
308
|
+
"name": "proposalId",
|
|
309
|
+
"type": "bytes32"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"indexed": false,
|
|
313
|
+
"internalType": "uint256",
|
|
314
|
+
"name": "timestamp",
|
|
315
|
+
"type": "uint256"
|
|
145
316
|
}
|
|
146
317
|
],
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"type": "function"
|
|
318
|
+
"name": "TransactionScheduled",
|
|
319
|
+
"type": "event"
|
|
150
320
|
},
|
|
151
321
|
{
|
|
152
|
-
"
|
|
153
|
-
"inputs": [
|
|
154
|
-
"name": "admin",
|
|
155
|
-
"outputs": [
|
|
322
|
+
"anonymous": false,
|
|
323
|
+
"inputs": [
|
|
156
324
|
{
|
|
325
|
+
"indexed": false,
|
|
157
326
|
"internalType": "address",
|
|
158
|
-
"name": "",
|
|
327
|
+
"name": "impl",
|
|
159
328
|
"type": "address"
|
|
160
329
|
}
|
|
161
330
|
],
|
|
162
|
-
"
|
|
163
|
-
"
|
|
331
|
+
"name": "Upgraded",
|
|
332
|
+
"type": "event"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"inputs": [],
|
|
336
|
+
"name": "acceptOwnership",
|
|
337
|
+
"outputs": [],
|
|
338
|
+
"stateMutability": "nonpayable",
|
|
164
339
|
"type": "function"
|
|
165
340
|
},
|
|
166
341
|
{
|
|
167
|
-
"constant": false,
|
|
168
342
|
"inputs": [
|
|
169
343
|
{
|
|
170
|
-
"internalType": "
|
|
171
|
-
"name": "
|
|
172
|
-
"type": "
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"internalType": "address",
|
|
176
|
-
"name": "nextImplementation",
|
|
177
|
-
"type": "address"
|
|
344
|
+
"internalType": "bytes32",
|
|
345
|
+
"name": "_proposalId",
|
|
346
|
+
"type": "bytes32"
|
|
178
347
|
}
|
|
179
348
|
],
|
|
180
|
-
"name": "
|
|
349
|
+
"name": "cancel",
|
|
181
350
|
"outputs": [],
|
|
182
|
-
"payable": false,
|
|
183
351
|
"stateMutability": "nonpayable",
|
|
184
352
|
"type": "function"
|
|
185
353
|
},
|
|
186
354
|
{
|
|
187
|
-
"constant": true,
|
|
188
355
|
"inputs": [],
|
|
189
|
-
"name": "
|
|
356
|
+
"name": "cancelOwnershipTransfer",
|
|
357
|
+
"outputs": [],
|
|
358
|
+
"stateMutability": "nonpayable",
|
|
359
|
+
"type": "function"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"inputs": [],
|
|
363
|
+
"name": "contractVersion",
|
|
190
364
|
"outputs": [
|
|
191
365
|
{
|
|
192
|
-
"internalType": "
|
|
366
|
+
"internalType": "string",
|
|
193
367
|
"name": "",
|
|
194
|
-
"type": "
|
|
368
|
+
"type": "string"
|
|
195
369
|
}
|
|
196
370
|
],
|
|
197
|
-
"
|
|
198
|
-
"stateMutability": "view",
|
|
371
|
+
"stateMutability": "pure",
|
|
199
372
|
"type": "function"
|
|
200
373
|
},
|
|
201
374
|
{
|
|
202
|
-
"constant": true,
|
|
203
375
|
"inputs": [],
|
|
204
|
-
"name": "
|
|
376
|
+
"name": "delay",
|
|
205
377
|
"outputs": [
|
|
206
378
|
{
|
|
207
|
-
"internalType": "
|
|
379
|
+
"internalType": "uint256",
|
|
208
380
|
"name": "",
|
|
209
|
-
"type": "
|
|
381
|
+
"type": "uint256"
|
|
210
382
|
}
|
|
211
383
|
],
|
|
212
|
-
"payable": false,
|
|
213
384
|
"stateMutability": "view",
|
|
214
385
|
"type": "function"
|
|
215
386
|
},
|
|
216
387
|
{
|
|
217
|
-
"
|
|
218
|
-
"inputs": [],
|
|
219
|
-
"name": "gatewayPenaltyMultipler",
|
|
220
|
-
"outputs": [
|
|
388
|
+
"inputs": [
|
|
221
389
|
{
|
|
222
|
-
"internalType": "
|
|
223
|
-
"name": "",
|
|
224
|
-
"type": "
|
|
390
|
+
"internalType": "address[]",
|
|
391
|
+
"name": "_targets",
|
|
392
|
+
"type": "address[]"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"internalType": "uint256[]",
|
|
396
|
+
"name": "_values",
|
|
397
|
+
"type": "uint256[]"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"internalType": "bytes[]",
|
|
401
|
+
"name": "_calldatas",
|
|
402
|
+
"type": "bytes[]"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"internalType": "bytes32",
|
|
406
|
+
"name": "_descriptionHash",
|
|
407
|
+
"type": "bytes32"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"internalType": "address",
|
|
411
|
+
"name": "_proposer",
|
|
412
|
+
"type": "address"
|
|
225
413
|
}
|
|
226
414
|
],
|
|
227
|
-
"
|
|
228
|
-
"
|
|
415
|
+
"name": "execute",
|
|
416
|
+
"outputs": [],
|
|
417
|
+
"stateMutability": "payable",
|
|
229
418
|
"type": "function"
|
|
230
419
|
},
|
|
231
420
|
{
|
|
232
|
-
"constant": true,
|
|
233
421
|
"inputs": [],
|
|
234
|
-
"name": "
|
|
422
|
+
"name": "gracePeriod",
|
|
235
423
|
"outputs": [
|
|
236
424
|
{
|
|
237
|
-
"internalType": "
|
|
425
|
+
"internalType": "uint256",
|
|
238
426
|
"name": "",
|
|
239
|
-
"type": "
|
|
427
|
+
"type": "uint256"
|
|
240
428
|
}
|
|
241
429
|
],
|
|
242
|
-
"payable": false,
|
|
243
430
|
"stateMutability": "view",
|
|
244
431
|
"type": "function"
|
|
245
432
|
},
|
|
246
433
|
{
|
|
247
|
-
"constant": false,
|
|
248
434
|
"inputs": [
|
|
249
435
|
{
|
|
250
|
-
"internalType": "address",
|
|
251
|
-
"name": "
|
|
252
|
-
"type": "address"
|
|
436
|
+
"internalType": "address[]",
|
|
437
|
+
"name": "_targets",
|
|
438
|
+
"type": "address[]"
|
|
253
439
|
},
|
|
254
440
|
{
|
|
255
|
-
"internalType": "
|
|
256
|
-
"name": "
|
|
257
|
-
"type": "
|
|
441
|
+
"internalType": "uint256[]",
|
|
442
|
+
"name": "_values",
|
|
443
|
+
"type": "uint256[]"
|
|
258
444
|
},
|
|
259
445
|
{
|
|
260
|
-
"internalType": "
|
|
261
|
-
"name": "
|
|
262
|
-
"type": "
|
|
446
|
+
"internalType": "bytes[]",
|
|
447
|
+
"name": "_calldatas",
|
|
448
|
+
"type": "bytes[]"
|
|
263
449
|
},
|
|
264
450
|
{
|
|
265
|
-
"internalType": "
|
|
266
|
-
"name": "
|
|
267
|
-
"type": "
|
|
451
|
+
"internalType": "bytes32",
|
|
452
|
+
"name": "_descriptionHash",
|
|
453
|
+
"type": "bytes32"
|
|
268
454
|
},
|
|
269
455
|
{
|
|
270
|
-
"internalType": "
|
|
271
|
-
"name": "
|
|
272
|
-
"type": "
|
|
273
|
-
}
|
|
456
|
+
"internalType": "address",
|
|
457
|
+
"name": "_proposer",
|
|
458
|
+
"type": "address"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"name": "hashProposal",
|
|
462
|
+
"outputs": [
|
|
274
463
|
{
|
|
275
|
-
"internalType": "
|
|
276
|
-
"name": "
|
|
277
|
-
"type": "
|
|
464
|
+
"internalType": "bytes32",
|
|
465
|
+
"name": "",
|
|
466
|
+
"type": "bytes32"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"stateMutability": "pure",
|
|
470
|
+
"type": "function"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"inputs": [
|
|
474
|
+
{
|
|
475
|
+
"internalType": "address",
|
|
476
|
+
"name": "_governor",
|
|
477
|
+
"type": "address"
|
|
278
478
|
},
|
|
279
479
|
{
|
|
280
|
-
"internalType": "
|
|
281
|
-
"name": "
|
|
282
|
-
"type": "
|
|
480
|
+
"internalType": "uint256",
|
|
481
|
+
"name": "_delay",
|
|
482
|
+
"type": "uint256"
|
|
283
483
|
}
|
|
284
484
|
],
|
|
285
485
|
"name": "initialize",
|
|
286
486
|
"outputs": [],
|
|
287
|
-
"payable": false,
|
|
288
487
|
"stateMutability": "nonpayable",
|
|
289
488
|
"type": "function"
|
|
290
489
|
},
|
|
291
490
|
{
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
|
|
491
|
+
"inputs": [
|
|
492
|
+
{
|
|
493
|
+
"internalType": "bytes32",
|
|
494
|
+
"name": "_proposalId",
|
|
495
|
+
"type": "bytes32"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"name": "isExpired",
|
|
295
499
|
"outputs": [
|
|
296
500
|
{
|
|
297
501
|
"internalType": "bool",
|
|
@@ -299,248 +503,239 @@ exports.Treasury_jsonAbi = [
|
|
|
299
503
|
"type": "bool"
|
|
300
504
|
}
|
|
301
505
|
],
|
|
302
|
-
"payable": false,
|
|
303
506
|
"stateMutability": "view",
|
|
304
507
|
"type": "function"
|
|
305
508
|
},
|
|
306
509
|
{
|
|
307
|
-
"
|
|
308
|
-
"inputs": [],
|
|
309
|
-
"name": "mappDisputeFeeMultipler",
|
|
310
|
-
"outputs": [
|
|
510
|
+
"inputs": [
|
|
311
511
|
{
|
|
312
|
-
"internalType": "
|
|
313
|
-
"name": "",
|
|
314
|
-
"type": "
|
|
512
|
+
"internalType": "bytes32",
|
|
513
|
+
"name": "_proposalId",
|
|
514
|
+
"type": "bytes32"
|
|
315
515
|
}
|
|
316
516
|
],
|
|
317
|
-
"
|
|
318
|
-
"stateMutability": "view",
|
|
319
|
-
"type": "function"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"constant": true,
|
|
323
|
-
"inputs": [],
|
|
324
|
-
"name": "operatorAddress",
|
|
517
|
+
"name": "isQueued",
|
|
325
518
|
"outputs": [
|
|
326
519
|
{
|
|
327
|
-
"internalType": "
|
|
520
|
+
"internalType": "bool",
|
|
328
521
|
"name": "",
|
|
329
|
-
"type": "
|
|
522
|
+
"type": "bool"
|
|
330
523
|
}
|
|
331
524
|
],
|
|
332
|
-
"payable": false,
|
|
333
525
|
"stateMutability": "view",
|
|
334
526
|
"type": "function"
|
|
335
527
|
},
|
|
336
528
|
{
|
|
337
|
-
"constant": true,
|
|
338
529
|
"inputs": [
|
|
339
530
|
{
|
|
340
|
-
"internalType": "
|
|
341
|
-
"name": "
|
|
342
|
-
"type": "
|
|
531
|
+
"internalType": "bytes32",
|
|
532
|
+
"name": "_proposalId",
|
|
533
|
+
"type": "bytes32"
|
|
343
534
|
}
|
|
344
535
|
],
|
|
345
|
-
"name": "
|
|
536
|
+
"name": "isReady",
|
|
346
537
|
"outputs": [
|
|
347
538
|
{
|
|
348
|
-
"internalType": "
|
|
539
|
+
"internalType": "bool",
|
|
349
540
|
"name": "",
|
|
350
|
-
"type": "
|
|
541
|
+
"type": "bool"
|
|
351
542
|
}
|
|
352
543
|
],
|
|
353
|
-
"payable": false,
|
|
354
544
|
"stateMutability": "view",
|
|
355
545
|
"type": "function"
|
|
356
546
|
},
|
|
357
547
|
{
|
|
358
|
-
"constant": false,
|
|
359
|
-
"inputs": [],
|
|
360
|
-
"name": "setAdmin",
|
|
361
|
-
"outputs": [],
|
|
362
|
-
"payable": false,
|
|
363
|
-
"stateMutability": "nonpayable",
|
|
364
|
-
"type": "function"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"constant": false,
|
|
368
|
-
"inputs": [],
|
|
369
|
-
"name": "setImplementation",
|
|
370
|
-
"outputs": [],
|
|
371
|
-
"payable": false,
|
|
372
|
-
"stateMutability": "nonpayable",
|
|
373
|
-
"type": "function"
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
"constant": true,
|
|
377
548
|
"inputs": [
|
|
378
549
|
{
|
|
379
|
-
"internalType": "
|
|
380
|
-
"name": "
|
|
381
|
-
"type": "
|
|
550
|
+
"internalType": "address",
|
|
551
|
+
"name": "",
|
|
552
|
+
"type": "address"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"internalType": "address",
|
|
556
|
+
"name": "",
|
|
557
|
+
"type": "address"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"internalType": "uint256[]",
|
|
561
|
+
"name": "",
|
|
562
|
+
"type": "uint256[]"
|
|
382
563
|
},
|
|
383
564
|
{
|
|
384
|
-
"internalType": "
|
|
385
|
-
"name": "
|
|
386
|
-
"type": "
|
|
565
|
+
"internalType": "uint256[]",
|
|
566
|
+
"name": "",
|
|
567
|
+
"type": "uint256[]"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"internalType": "bytes",
|
|
571
|
+
"name": "",
|
|
572
|
+
"type": "bytes"
|
|
387
573
|
}
|
|
388
574
|
],
|
|
389
|
-
"name": "
|
|
575
|
+
"name": "onERC1155BatchReceived",
|
|
390
576
|
"outputs": [
|
|
391
577
|
{
|
|
392
|
-
"internalType": "
|
|
578
|
+
"internalType": "bytes4",
|
|
393
579
|
"name": "",
|
|
394
|
-
"type": "
|
|
580
|
+
"type": "bytes4"
|
|
395
581
|
}
|
|
396
582
|
],
|
|
397
|
-
"
|
|
398
|
-
"stateMutability": "view",
|
|
583
|
+
"stateMutability": "pure",
|
|
399
584
|
"type": "function"
|
|
400
585
|
},
|
|
401
586
|
{
|
|
402
|
-
"constant": true,
|
|
403
587
|
"inputs": [
|
|
404
588
|
{
|
|
405
|
-
"internalType": "
|
|
406
|
-
"name": "
|
|
407
|
-
"type": "
|
|
589
|
+
"internalType": "address",
|
|
590
|
+
"name": "",
|
|
591
|
+
"type": "address"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"internalType": "address",
|
|
595
|
+
"name": "",
|
|
596
|
+
"type": "address"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"internalType": "uint256",
|
|
600
|
+
"name": "",
|
|
601
|
+
"type": "uint256"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"internalType": "uint256",
|
|
605
|
+
"name": "",
|
|
606
|
+
"type": "uint256"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"internalType": "bytes",
|
|
610
|
+
"name": "",
|
|
611
|
+
"type": "bytes"
|
|
408
612
|
}
|
|
409
613
|
],
|
|
410
|
-
"name": "
|
|
614
|
+
"name": "onERC1155Received",
|
|
411
615
|
"outputs": [
|
|
412
616
|
{
|
|
413
|
-
"internalType": "
|
|
617
|
+
"internalType": "bytes4",
|
|
414
618
|
"name": "",
|
|
415
|
-
"type": "
|
|
619
|
+
"type": "bytes4"
|
|
416
620
|
}
|
|
417
621
|
],
|
|
418
|
-
"
|
|
419
|
-
"stateMutability": "view",
|
|
622
|
+
"stateMutability": "pure",
|
|
420
623
|
"type": "function"
|
|
421
624
|
},
|
|
422
625
|
{
|
|
423
|
-
"constant": false,
|
|
424
626
|
"inputs": [
|
|
425
627
|
{
|
|
426
|
-
"internalType": "address
|
|
427
|
-
"name": "
|
|
428
|
-
"type": "address
|
|
628
|
+
"internalType": "address",
|
|
629
|
+
"name": "",
|
|
630
|
+
"type": "address"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"internalType": "address",
|
|
634
|
+
"name": "",
|
|
635
|
+
"type": "address"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"internalType": "uint256",
|
|
639
|
+
"name": "",
|
|
640
|
+
"type": "uint256"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"internalType": "bytes",
|
|
644
|
+
"name": "",
|
|
645
|
+
"type": "bytes"
|
|
429
646
|
}
|
|
430
647
|
],
|
|
431
|
-
"name": "
|
|
432
|
-
"outputs": [
|
|
433
|
-
"payable": false,
|
|
434
|
-
"stateMutability": "nonpayable",
|
|
435
|
-
"type": "function"
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"constant": true,
|
|
439
|
-
"inputs": [
|
|
648
|
+
"name": "onERC721Received",
|
|
649
|
+
"outputs": [
|
|
440
650
|
{
|
|
441
|
-
"internalType": "
|
|
442
|
-
"name": "
|
|
443
|
-
"type": "
|
|
651
|
+
"internalType": "bytes4",
|
|
652
|
+
"name": "",
|
|
653
|
+
"type": "bytes4"
|
|
444
654
|
}
|
|
445
655
|
],
|
|
446
|
-
"
|
|
656
|
+
"stateMutability": "pure",
|
|
657
|
+
"type": "function"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"inputs": [],
|
|
661
|
+
"name": "owner",
|
|
447
662
|
"outputs": [
|
|
448
663
|
{
|
|
449
|
-
"internalType": "
|
|
664
|
+
"internalType": "address",
|
|
450
665
|
"name": "",
|
|
451
|
-
"type": "
|
|
666
|
+
"type": "address"
|
|
452
667
|
}
|
|
453
668
|
],
|
|
454
|
-
"payable": false,
|
|
455
669
|
"stateMutability": "view",
|
|
456
670
|
"type": "function"
|
|
457
671
|
},
|
|
458
672
|
{
|
|
459
|
-
"
|
|
460
|
-
"
|
|
673
|
+
"inputs": [],
|
|
674
|
+
"name": "pendingOwner",
|
|
675
|
+
"outputs": [
|
|
461
676
|
{
|
|
462
|
-
"internalType": "
|
|
463
|
-
"name": "
|
|
464
|
-
"type": "
|
|
677
|
+
"internalType": "address",
|
|
678
|
+
"name": "",
|
|
679
|
+
"type": "address"
|
|
465
680
|
}
|
|
466
681
|
],
|
|
467
|
-
"
|
|
468
|
-
"outputs": [],
|
|
469
|
-
"payable": false,
|
|
470
|
-
"stateMutability": "nonpayable",
|
|
682
|
+
"stateMutability": "view",
|
|
471
683
|
"type": "function"
|
|
472
684
|
},
|
|
473
685
|
{
|
|
474
|
-
"constant": true,
|
|
475
686
|
"inputs": [],
|
|
476
|
-
"name": "
|
|
687
|
+
"name": "proxiableUUID",
|
|
477
688
|
"outputs": [
|
|
478
689
|
{
|
|
479
|
-
"internalType": "
|
|
690
|
+
"internalType": "bytes32",
|
|
480
691
|
"name": "",
|
|
481
|
-
"type": "
|
|
692
|
+
"type": "bytes32"
|
|
482
693
|
}
|
|
483
694
|
],
|
|
484
|
-
"payable": false,
|
|
485
695
|
"stateMutability": "view",
|
|
486
696
|
"type": "function"
|
|
487
697
|
},
|
|
488
698
|
{
|
|
489
|
-
"constant": false,
|
|
490
699
|
"inputs": [
|
|
491
700
|
{
|
|
492
|
-
"internalType": "
|
|
493
|
-
"name": "
|
|
494
|
-
"type": "
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
"type": "uint16"
|
|
500
|
-
},
|
|
701
|
+
"internalType": "bytes32",
|
|
702
|
+
"name": "_proposalId",
|
|
703
|
+
"type": "bytes32"
|
|
704
|
+
}
|
|
705
|
+
],
|
|
706
|
+
"name": "queue",
|
|
707
|
+
"outputs": [
|
|
501
708
|
{
|
|
502
|
-
"internalType": "
|
|
503
|
-
"name": "
|
|
504
|
-
"type": "
|
|
709
|
+
"internalType": "uint256",
|
|
710
|
+
"name": "eta",
|
|
711
|
+
"type": "uint256"
|
|
505
712
|
}
|
|
506
713
|
],
|
|
507
|
-
"name": "speedBumpMain",
|
|
508
|
-
"outputs": [],
|
|
509
|
-
"payable": false,
|
|
510
714
|
"stateMutability": "nonpayable",
|
|
511
715
|
"type": "function"
|
|
512
716
|
},
|
|
513
717
|
{
|
|
514
|
-
"constant": true,
|
|
515
718
|
"inputs": [
|
|
516
719
|
{
|
|
517
|
-
"internalType": "
|
|
518
|
-
"name": "
|
|
519
|
-
"type": "
|
|
520
|
-
}
|
|
521
|
-
],
|
|
522
|
-
"name": "speedBumpNextSBHours",
|
|
523
|
-
"outputs": [
|
|
524
|
-
{
|
|
525
|
-
"internalType": "uint16",
|
|
526
|
-
"name": "",
|
|
527
|
-
"type": "uint16"
|
|
720
|
+
"internalType": "address",
|
|
721
|
+
"name": "_newOwner",
|
|
722
|
+
"type": "address"
|
|
528
723
|
}
|
|
529
724
|
],
|
|
530
|
-
"
|
|
531
|
-
"
|
|
725
|
+
"name": "safeTransferOwnership",
|
|
726
|
+
"outputs": [],
|
|
727
|
+
"stateMutability": "nonpayable",
|
|
532
728
|
"type": "function"
|
|
533
729
|
},
|
|
534
730
|
{
|
|
535
|
-
"constant": true,
|
|
536
731
|
"inputs": [
|
|
537
732
|
{
|
|
538
|
-
"internalType": "
|
|
539
|
-
"name": "
|
|
540
|
-
"type": "
|
|
733
|
+
"internalType": "bytes32",
|
|
734
|
+
"name": "_proposalId",
|
|
735
|
+
"type": "bytes32"
|
|
541
736
|
}
|
|
542
737
|
],
|
|
543
|
-
"name": "
|
|
738
|
+
"name": "timestamp",
|
|
544
739
|
"outputs": [
|
|
545
740
|
{
|
|
546
741
|
"internalType": "uint256",
|
|
@@ -548,122 +743,82 @@ exports.Treasury_jsonAbi = [
|
|
|
548
743
|
"type": "uint256"
|
|
549
744
|
}
|
|
550
745
|
],
|
|
551
|
-
"payable": false,
|
|
552
746
|
"stateMutability": "view",
|
|
553
747
|
"type": "function"
|
|
554
748
|
},
|
|
555
749
|
{
|
|
556
|
-
"constant": true,
|
|
557
750
|
"inputs": [
|
|
558
751
|
{
|
|
559
|
-
"internalType": "
|
|
560
|
-
"name": "
|
|
561
|
-
"type": "
|
|
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"
|
|
752
|
+
"internalType": "address",
|
|
753
|
+
"name": "_newOwner",
|
|
754
|
+
"type": "address"
|
|
575
755
|
}
|
|
576
756
|
],
|
|
577
|
-
"
|
|
578
|
-
"
|
|
757
|
+
"name": "transferOwnership",
|
|
758
|
+
"outputs": [],
|
|
759
|
+
"stateMutability": "nonpayable",
|
|
579
760
|
"type": "function"
|
|
580
761
|
},
|
|
581
762
|
{
|
|
582
|
-
"
|
|
583
|
-
"inputs": [],
|
|
584
|
-
"name": "treasuryPenaltyMultipler",
|
|
585
|
-
"outputs": [
|
|
763
|
+
"inputs": [
|
|
586
764
|
{
|
|
587
|
-
"internalType": "
|
|
588
|
-
"name": "",
|
|
589
|
-
"type": "
|
|
765
|
+
"internalType": "uint256",
|
|
766
|
+
"name": "_newDelay",
|
|
767
|
+
"type": "uint256"
|
|
590
768
|
}
|
|
591
769
|
],
|
|
592
|
-
"
|
|
593
|
-
"
|
|
770
|
+
"name": "updateDelay",
|
|
771
|
+
"outputs": [],
|
|
772
|
+
"stateMutability": "nonpayable",
|
|
594
773
|
"type": "function"
|
|
595
774
|
},
|
|
596
775
|
{
|
|
597
|
-
"
|
|
598
|
-
"inputs": [],
|
|
599
|
-
"name": "treasurysDeposit",
|
|
600
|
-
"outputs": [
|
|
776
|
+
"inputs": [
|
|
601
777
|
{
|
|
602
|
-
"internalType": "
|
|
603
|
-
"name": "",
|
|
604
|
-
"type": "
|
|
778
|
+
"internalType": "uint256",
|
|
779
|
+
"name": "_newGracePeriod",
|
|
780
|
+
"type": "uint256"
|
|
605
781
|
}
|
|
606
782
|
],
|
|
607
|
-
"
|
|
608
|
-
"
|
|
783
|
+
"name": "updateGracePeriod",
|
|
784
|
+
"outputs": [],
|
|
785
|
+
"stateMutability": "nonpayable",
|
|
609
786
|
"type": "function"
|
|
610
787
|
},
|
|
611
788
|
{
|
|
612
|
-
"
|
|
613
|
-
"inputs": [],
|
|
614
|
-
"name": "treasurysFactory",
|
|
615
|
-
"outputs": [
|
|
789
|
+
"inputs": [
|
|
616
790
|
{
|
|
617
791
|
"internalType": "address",
|
|
618
|
-
"name": "",
|
|
792
|
+
"name": "_newImpl",
|
|
619
793
|
"type": "address"
|
|
620
794
|
}
|
|
621
795
|
],
|
|
622
|
-
"
|
|
623
|
-
"
|
|
796
|
+
"name": "upgradeTo",
|
|
797
|
+
"outputs": [],
|
|
798
|
+
"stateMutability": "nonpayable",
|
|
624
799
|
"type": "function"
|
|
625
800
|
},
|
|
626
801
|
{
|
|
627
|
-
"
|
|
628
|
-
"inputs": [],
|
|
629
|
-
"name": "treasurysRuleList",
|
|
630
|
-
"outputs": [
|
|
802
|
+
"inputs": [
|
|
631
803
|
{
|
|
632
804
|
"internalType": "address",
|
|
633
|
-
"name": "",
|
|
805
|
+
"name": "_newImpl",
|
|
634
806
|
"type": "address"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"internalType": "bytes",
|
|
810
|
+
"name": "_data",
|
|
811
|
+
"type": "bytes"
|
|
635
812
|
}
|
|
636
813
|
],
|
|
637
|
-
"
|
|
638
|
-
"stateMutability": "view",
|
|
639
|
-
"type": "function"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"constant": false,
|
|
643
|
-
"inputs": [],
|
|
644
|
-
"name": "updateTreasuryContracts",
|
|
645
|
-
"outputs": [],
|
|
646
|
-
"payable": false,
|
|
647
|
-
"stateMutability": "nonpayable",
|
|
648
|
-
"type": "function"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
"constant": false,
|
|
652
|
-
"inputs": [],
|
|
653
|
-
"name": "updateTreasuryFeeVariables",
|
|
814
|
+
"name": "upgradeToAndCall",
|
|
654
815
|
"outputs": [],
|
|
655
|
-
"
|
|
656
|
-
"stateMutability": "nonpayable",
|
|
816
|
+
"stateMutability": "payable",
|
|
657
817
|
"type": "function"
|
|
658
818
|
},
|
|
659
819
|
{
|
|
660
|
-
"
|
|
661
|
-
"
|
|
662
|
-
"name": "updateTreasuryMainVariables",
|
|
663
|
-
"outputs": [],
|
|
664
|
-
"payable": false,
|
|
665
|
-
"stateMutability": "nonpayable",
|
|
666
|
-
"type": "function"
|
|
820
|
+
"stateMutability": "payable",
|
|
821
|
+
"type": "receive"
|
|
667
822
|
}
|
|
668
823
|
];
|
|
669
824
|
/**
|
|
@@ -724,261 +879,234 @@ class Treasury_json {
|
|
|
724
879
|
return this.contract;
|
|
725
880
|
}
|
|
726
881
|
/**
|
|
727
|
-
*
|
|
728
|
-
*
|
|
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
|
|
882
|
+
* contractVersion
|
|
883
|
+
* pure
|
|
764
884
|
*/
|
|
765
|
-
async
|
|
766
|
-
return this.contract.read.
|
|
885
|
+
async contractVersion() {
|
|
886
|
+
return this.contract.read.contractVersion();
|
|
767
887
|
}
|
|
768
888
|
/**
|
|
769
|
-
*
|
|
889
|
+
* delay
|
|
770
890
|
* view
|
|
771
891
|
*/
|
|
772
|
-
async
|
|
773
|
-
return this.contract.read.
|
|
892
|
+
async delay() {
|
|
893
|
+
return this.contract.read.delay();
|
|
774
894
|
}
|
|
775
895
|
/**
|
|
776
|
-
*
|
|
896
|
+
* gracePeriod
|
|
777
897
|
* view
|
|
778
898
|
*/
|
|
779
|
-
async
|
|
780
|
-
return this.contract.read.
|
|
899
|
+
async gracePeriod() {
|
|
900
|
+
return this.contract.read.gracePeriod();
|
|
781
901
|
}
|
|
782
902
|
/**
|
|
783
|
-
*
|
|
784
|
-
*
|
|
903
|
+
* hashProposal
|
|
904
|
+
* pure
|
|
785
905
|
*/
|
|
786
|
-
async
|
|
787
|
-
return this.contract.read.
|
|
906
|
+
async hashProposal(_targets, _values, _calldatas, _descriptionHash, _proposer) {
|
|
907
|
+
return this.contract.read.hashProposal([_targets, _values, _calldatas, _descriptionHash, _proposer]);
|
|
788
908
|
}
|
|
789
909
|
/**
|
|
790
|
-
*
|
|
910
|
+
* isExpired
|
|
791
911
|
* view
|
|
792
912
|
*/
|
|
793
|
-
async
|
|
794
|
-
return this.contract.read.
|
|
913
|
+
async isExpired(_proposalId) {
|
|
914
|
+
return this.contract.read.isExpired([_proposalId]);
|
|
795
915
|
}
|
|
796
916
|
/**
|
|
797
|
-
*
|
|
917
|
+
* isQueued
|
|
798
918
|
* view
|
|
799
919
|
*/
|
|
800
|
-
async
|
|
801
|
-
return this.contract.read.
|
|
920
|
+
async isQueued(_proposalId) {
|
|
921
|
+
return this.contract.read.isQueued([_proposalId]);
|
|
802
922
|
}
|
|
803
923
|
/**
|
|
804
|
-
*
|
|
924
|
+
* isReady
|
|
805
925
|
* view
|
|
806
926
|
*/
|
|
807
|
-
async
|
|
808
|
-
return this.contract.read.
|
|
927
|
+
async isReady(_proposalId) {
|
|
928
|
+
return this.contract.read.isReady([_proposalId]);
|
|
809
929
|
}
|
|
810
930
|
/**
|
|
811
|
-
*
|
|
812
|
-
*
|
|
931
|
+
* onERC1155BatchReceived
|
|
932
|
+
* pure
|
|
813
933
|
*/
|
|
814
|
-
async
|
|
815
|
-
return this.contract.read.
|
|
934
|
+
async onERC1155BatchReceived(arg0, arg1, arg2, arg3, arg4) {
|
|
935
|
+
return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4]);
|
|
816
936
|
}
|
|
817
937
|
/**
|
|
818
|
-
*
|
|
819
|
-
*
|
|
938
|
+
* onERC1155Received
|
|
939
|
+
* pure
|
|
820
940
|
*/
|
|
821
|
-
async
|
|
822
|
-
return this.contract.read.
|
|
941
|
+
async onERC1155Received(arg0, arg1, arg2, arg3, arg4) {
|
|
942
|
+
return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4]);
|
|
823
943
|
}
|
|
824
944
|
/**
|
|
825
|
-
*
|
|
826
|
-
*
|
|
945
|
+
* onERC721Received
|
|
946
|
+
* pure
|
|
827
947
|
*/
|
|
828
|
-
async
|
|
829
|
-
return this.contract.read.
|
|
948
|
+
async onERC721Received(arg0, arg1, arg2, arg3) {
|
|
949
|
+
return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3]);
|
|
830
950
|
}
|
|
831
951
|
/**
|
|
832
|
-
*
|
|
952
|
+
* owner
|
|
833
953
|
* view
|
|
834
954
|
*/
|
|
835
|
-
async
|
|
836
|
-
return this.contract.read.
|
|
955
|
+
async owner() {
|
|
956
|
+
return this.contract.read.owner();
|
|
837
957
|
}
|
|
838
958
|
/**
|
|
839
|
-
*
|
|
959
|
+
* pendingOwner
|
|
840
960
|
* view
|
|
841
961
|
*/
|
|
842
|
-
async
|
|
843
|
-
return this.contract.read.
|
|
962
|
+
async pendingOwner() {
|
|
963
|
+
return this.contract.read.pendingOwner();
|
|
844
964
|
}
|
|
845
965
|
/**
|
|
846
|
-
*
|
|
966
|
+
* proxiableUUID
|
|
847
967
|
* view
|
|
848
968
|
*/
|
|
849
|
-
async
|
|
850
|
-
return this.contract.read.
|
|
969
|
+
async proxiableUUID() {
|
|
970
|
+
return this.contract.read.proxiableUUID();
|
|
851
971
|
}
|
|
852
972
|
/**
|
|
853
|
-
*
|
|
973
|
+
* timestamp
|
|
854
974
|
* view
|
|
855
975
|
*/
|
|
856
|
-
async
|
|
857
|
-
return this.contract.read.
|
|
976
|
+
async timestamp(_proposalId) {
|
|
977
|
+
return this.contract.read.timestamp([_proposalId]);
|
|
858
978
|
}
|
|
859
979
|
/**
|
|
860
|
-
*
|
|
861
|
-
*
|
|
980
|
+
* acceptOwnership
|
|
981
|
+
* nonpayable
|
|
982
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
862
983
|
*/
|
|
863
|
-
async
|
|
864
|
-
|
|
984
|
+
async acceptOwnership(options) {
|
|
985
|
+
if (!this.contract.write) {
|
|
986
|
+
throw new Error('Wallet client is required for write operations');
|
|
987
|
+
}
|
|
988
|
+
return this.contract.write.acceptOwnership(options);
|
|
865
989
|
}
|
|
866
990
|
/**
|
|
867
|
-
*
|
|
868
|
-
*
|
|
991
|
+
* cancel
|
|
992
|
+
* nonpayable
|
|
993
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
869
994
|
*/
|
|
870
|
-
async
|
|
871
|
-
|
|
995
|
+
async cancel(_proposalId, options) {
|
|
996
|
+
if (!this.contract.write) {
|
|
997
|
+
throw new Error('Wallet client is required for write operations');
|
|
998
|
+
}
|
|
999
|
+
return this.contract.write.cancel([_proposalId], options);
|
|
872
1000
|
}
|
|
873
1001
|
/**
|
|
874
|
-
*
|
|
1002
|
+
* cancelOwnershipTransfer
|
|
875
1003
|
* nonpayable
|
|
876
1004
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
877
1005
|
*/
|
|
878
|
-
async
|
|
1006
|
+
async cancelOwnershipTransfer(options) {
|
|
879
1007
|
if (!this.contract.write) {
|
|
880
1008
|
throw new Error('Wallet client is required for write operations');
|
|
881
1009
|
}
|
|
882
|
-
return this.contract.write.
|
|
1010
|
+
return this.contract.write.cancelOwnershipTransfer(options);
|
|
883
1011
|
}
|
|
884
1012
|
/**
|
|
885
|
-
*
|
|
886
|
-
*
|
|
1013
|
+
* execute
|
|
1014
|
+
* payable
|
|
887
1015
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
888
1016
|
*/
|
|
889
|
-
async
|
|
1017
|
+
async execute(_targets, _values, _calldatas, _descriptionHash, _proposer, options) {
|
|
890
1018
|
if (!this.contract.write) {
|
|
891
1019
|
throw new Error('Wallet client is required for write operations');
|
|
892
1020
|
}
|
|
893
|
-
return this.contract.write.
|
|
1021
|
+
return this.contract.write.execute([_targets, _values, _calldatas, _descriptionHash, _proposer], options);
|
|
894
1022
|
}
|
|
895
1023
|
/**
|
|
896
|
-
*
|
|
1024
|
+
* initialize
|
|
897
1025
|
* nonpayable
|
|
898
1026
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
899
1027
|
*/
|
|
900
|
-
async
|
|
1028
|
+
async initialize(_governor, _delay, options) {
|
|
901
1029
|
if (!this.contract.write) {
|
|
902
1030
|
throw new Error('Wallet client is required for write operations');
|
|
903
1031
|
}
|
|
904
|
-
return this.contract.write.
|
|
1032
|
+
return this.contract.write.initialize([_governor, _delay], options);
|
|
905
1033
|
}
|
|
906
1034
|
/**
|
|
907
|
-
*
|
|
1035
|
+
* queue
|
|
908
1036
|
* nonpayable
|
|
909
1037
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
910
1038
|
*/
|
|
911
|
-
async
|
|
1039
|
+
async queue(_proposalId, options) {
|
|
912
1040
|
if (!this.contract.write) {
|
|
913
1041
|
throw new Error('Wallet client is required for write operations');
|
|
914
1042
|
}
|
|
915
|
-
return this.contract.write.
|
|
1043
|
+
return this.contract.write.queue([_proposalId], options);
|
|
916
1044
|
}
|
|
917
1045
|
/**
|
|
918
|
-
*
|
|
1046
|
+
* safeTransferOwnership
|
|
919
1047
|
* nonpayable
|
|
920
1048
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
921
1049
|
*/
|
|
922
|
-
async
|
|
1050
|
+
async safeTransferOwnership(_newOwner, options) {
|
|
923
1051
|
if (!this.contract.write) {
|
|
924
1052
|
throw new Error('Wallet client is required for write operations');
|
|
925
1053
|
}
|
|
926
|
-
return this.contract.write.
|
|
1054
|
+
return this.contract.write.safeTransferOwnership([_newOwner], options);
|
|
927
1055
|
}
|
|
928
1056
|
/**
|
|
929
|
-
*
|
|
1057
|
+
* transferOwnership
|
|
930
1058
|
* nonpayable
|
|
931
1059
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
932
1060
|
*/
|
|
933
|
-
async
|
|
1061
|
+
async transferOwnership(_newOwner, options) {
|
|
934
1062
|
if (!this.contract.write) {
|
|
935
1063
|
throw new Error('Wallet client is required for write operations');
|
|
936
1064
|
}
|
|
937
|
-
return this.contract.write.
|
|
1065
|
+
return this.contract.write.transferOwnership([_newOwner], options);
|
|
938
1066
|
}
|
|
939
1067
|
/**
|
|
940
|
-
*
|
|
1068
|
+
* updateDelay
|
|
941
1069
|
* nonpayable
|
|
942
1070
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
943
1071
|
*/
|
|
944
|
-
async
|
|
1072
|
+
async updateDelay(_newDelay, options) {
|
|
945
1073
|
if (!this.contract.write) {
|
|
946
1074
|
throw new Error('Wallet client is required for write operations');
|
|
947
1075
|
}
|
|
948
|
-
return this.contract.write.
|
|
1076
|
+
return this.contract.write.updateDelay([_newDelay], options);
|
|
949
1077
|
}
|
|
950
1078
|
/**
|
|
951
|
-
*
|
|
1079
|
+
* updateGracePeriod
|
|
952
1080
|
* nonpayable
|
|
953
1081
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
954
1082
|
*/
|
|
955
|
-
async
|
|
1083
|
+
async updateGracePeriod(_newGracePeriod, options) {
|
|
956
1084
|
if (!this.contract.write) {
|
|
957
1085
|
throw new Error('Wallet client is required for write operations');
|
|
958
1086
|
}
|
|
959
|
-
return this.contract.write.
|
|
1087
|
+
return this.contract.write.updateGracePeriod([_newGracePeriod], options);
|
|
960
1088
|
}
|
|
961
1089
|
/**
|
|
962
|
-
*
|
|
1090
|
+
* upgradeTo
|
|
963
1091
|
* nonpayable
|
|
964
1092
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
965
1093
|
*/
|
|
966
|
-
async
|
|
1094
|
+
async upgradeTo(_newImpl, options) {
|
|
967
1095
|
if (!this.contract.write) {
|
|
968
1096
|
throw new Error('Wallet client is required for write operations');
|
|
969
1097
|
}
|
|
970
|
-
return this.contract.write.
|
|
1098
|
+
return this.contract.write.upgradeTo([_newImpl], options);
|
|
971
1099
|
}
|
|
972
1100
|
/**
|
|
973
|
-
*
|
|
974
|
-
*
|
|
1101
|
+
* upgradeToAndCall
|
|
1102
|
+
* payable
|
|
975
1103
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
976
1104
|
*/
|
|
977
|
-
async
|
|
1105
|
+
async upgradeToAndCall(_newImpl, _data, options) {
|
|
978
1106
|
if (!this.contract.write) {
|
|
979
1107
|
throw new Error('Wallet client is required for write operations');
|
|
980
1108
|
}
|
|
981
|
-
return this.contract.write.
|
|
1109
|
+
return this.contract.write.upgradeToAndCall([_newImpl, _data], options);
|
|
982
1110
|
}
|
|
983
1111
|
/**
|
|
984
1112
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -995,84 +1123,100 @@ class Treasury_json {
|
|
|
995
1123
|
}
|
|
996
1124
|
return {
|
|
997
1125
|
/**
|
|
998
|
-
* Simulate
|
|
1126
|
+
* Simulate acceptOwnership
|
|
999
1127
|
* Returns gas estimate and result without sending transaction
|
|
1000
1128
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1001
1129
|
*/
|
|
1002
|
-
async
|
|
1003
|
-
return contract.simulate.
|
|
1130
|
+
async acceptOwnership(options) {
|
|
1131
|
+
return contract.simulate.acceptOwnership(options);
|
|
1004
1132
|
},
|
|
1005
1133
|
/**
|
|
1006
|
-
* Simulate
|
|
1134
|
+
* Simulate cancel
|
|
1135
|
+
* Returns gas estimate and result without sending transaction
|
|
1136
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1137
|
+
*/
|
|
1138
|
+
async cancel(_proposalId, options) {
|
|
1139
|
+
return contract.simulate.cancel([_proposalId], options);
|
|
1140
|
+
},
|
|
1141
|
+
/**
|
|
1142
|
+
* Simulate cancelOwnershipTransfer
|
|
1143
|
+
* Returns gas estimate and result without sending transaction
|
|
1144
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1145
|
+
*/
|
|
1146
|
+
async cancelOwnershipTransfer(options) {
|
|
1147
|
+
return contract.simulate.cancelOwnershipTransfer(options);
|
|
1148
|
+
},
|
|
1149
|
+
/**
|
|
1150
|
+
* Simulate execute
|
|
1007
1151
|
* Returns gas estimate and result without sending transaction
|
|
1008
1152
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1009
1153
|
*/
|
|
1010
|
-
async
|
|
1011
|
-
return contract.simulate.
|
|
1154
|
+
async execute(_targets, _values, _calldatas, _descriptionHash, _proposer, options) {
|
|
1155
|
+
return contract.simulate.execute([_targets, _values, _calldatas, _descriptionHash, _proposer], options);
|
|
1012
1156
|
},
|
|
1013
1157
|
/**
|
|
1014
|
-
* Simulate
|
|
1158
|
+
* Simulate initialize
|
|
1015
1159
|
* Returns gas estimate and result without sending transaction
|
|
1016
1160
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1017
1161
|
*/
|
|
1018
|
-
async
|
|
1019
|
-
return contract.simulate.
|
|
1162
|
+
async initialize(_governor, _delay, options) {
|
|
1163
|
+
return contract.simulate.initialize([_governor, _delay], options);
|
|
1020
1164
|
},
|
|
1021
1165
|
/**
|
|
1022
|
-
* Simulate
|
|
1166
|
+
* Simulate queue
|
|
1023
1167
|
* Returns gas estimate and result without sending transaction
|
|
1024
1168
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1025
1169
|
*/
|
|
1026
|
-
async
|
|
1027
|
-
return contract.simulate.
|
|
1170
|
+
async queue(_proposalId, options) {
|
|
1171
|
+
return contract.simulate.queue([_proposalId], options);
|
|
1028
1172
|
},
|
|
1029
1173
|
/**
|
|
1030
|
-
* Simulate
|
|
1174
|
+
* Simulate safeTransferOwnership
|
|
1031
1175
|
* Returns gas estimate and result without sending transaction
|
|
1032
1176
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1033
1177
|
*/
|
|
1034
|
-
async
|
|
1035
|
-
return contract.simulate.
|
|
1178
|
+
async safeTransferOwnership(_newOwner, options) {
|
|
1179
|
+
return contract.simulate.safeTransferOwnership([_newOwner], options);
|
|
1036
1180
|
},
|
|
1037
1181
|
/**
|
|
1038
|
-
* Simulate
|
|
1182
|
+
* Simulate transferOwnership
|
|
1039
1183
|
* Returns gas estimate and result without sending transaction
|
|
1040
1184
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1041
1185
|
*/
|
|
1042
|
-
async
|
|
1043
|
-
return contract.simulate.
|
|
1186
|
+
async transferOwnership(_newOwner, options) {
|
|
1187
|
+
return contract.simulate.transferOwnership([_newOwner], options);
|
|
1044
1188
|
},
|
|
1045
1189
|
/**
|
|
1046
|
-
* Simulate
|
|
1190
|
+
* Simulate updateDelay
|
|
1047
1191
|
* Returns gas estimate and result without sending transaction
|
|
1048
1192
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1049
1193
|
*/
|
|
1050
|
-
async
|
|
1051
|
-
return contract.simulate.
|
|
1194
|
+
async updateDelay(_newDelay, options) {
|
|
1195
|
+
return contract.simulate.updateDelay([_newDelay], options);
|
|
1052
1196
|
},
|
|
1053
1197
|
/**
|
|
1054
|
-
* Simulate
|
|
1198
|
+
* Simulate updateGracePeriod
|
|
1055
1199
|
* Returns gas estimate and result without sending transaction
|
|
1056
1200
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1057
1201
|
*/
|
|
1058
|
-
async
|
|
1059
|
-
return contract.simulate.
|
|
1202
|
+
async updateGracePeriod(_newGracePeriod, options) {
|
|
1203
|
+
return contract.simulate.updateGracePeriod([_newGracePeriod], options);
|
|
1060
1204
|
},
|
|
1061
1205
|
/**
|
|
1062
|
-
* Simulate
|
|
1206
|
+
* Simulate upgradeTo
|
|
1063
1207
|
* Returns gas estimate and result without sending transaction
|
|
1064
1208
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1065
1209
|
*/
|
|
1066
|
-
async
|
|
1067
|
-
return contract.simulate.
|
|
1210
|
+
async upgradeTo(_newImpl, options) {
|
|
1211
|
+
return contract.simulate.upgradeTo([_newImpl], options);
|
|
1068
1212
|
},
|
|
1069
1213
|
/**
|
|
1070
|
-
* Simulate
|
|
1214
|
+
* Simulate upgradeToAndCall
|
|
1071
1215
|
* Returns gas estimate and result without sending transaction
|
|
1072
1216
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1073
1217
|
*/
|
|
1074
|
-
async
|
|
1075
|
-
return contract.simulate.
|
|
1218
|
+
async upgradeToAndCall(_newImpl, _data, options) {
|
|
1219
|
+
return contract.simulate.upgradeToAndCall([_newImpl, _data], options);
|
|
1076
1220
|
}
|
|
1077
1221
|
};
|
|
1078
1222
|
}
|
|
@@ -1091,16 +1235,109 @@ class Treasury_json {
|
|
|
1091
1235
|
get watch() {
|
|
1092
1236
|
return {
|
|
1093
1237
|
/**
|
|
1094
|
-
* Watch
|
|
1238
|
+
* Watch DelayUpdated events
|
|
1239
|
+
* @param callback Function to call when event is emitted
|
|
1240
|
+
* @param filter Optional filter for indexed parameters
|
|
1241
|
+
* @returns Unwatch function to stop listening
|
|
1242
|
+
*/
|
|
1243
|
+
DelayUpdated: (callback) => {
|
|
1244
|
+
return this.publicClient.watchContractEvent({
|
|
1245
|
+
address: this.contractAddress,
|
|
1246
|
+
abi: exports.Treasury_jsonAbi,
|
|
1247
|
+
eventName: 'DelayUpdated',
|
|
1248
|
+
onLogs: (logs) => {
|
|
1249
|
+
logs.forEach((log) => {
|
|
1250
|
+
callback(log.args);
|
|
1251
|
+
});
|
|
1252
|
+
},
|
|
1253
|
+
});
|
|
1254
|
+
},
|
|
1255
|
+
/**
|
|
1256
|
+
* Watch GracePeriodUpdated events
|
|
1257
|
+
* @param callback Function to call when event is emitted
|
|
1258
|
+
* @param filter Optional filter for indexed parameters
|
|
1259
|
+
* @returns Unwatch function to stop listening
|
|
1260
|
+
*/
|
|
1261
|
+
GracePeriodUpdated: (callback) => {
|
|
1262
|
+
return this.publicClient.watchContractEvent({
|
|
1263
|
+
address: this.contractAddress,
|
|
1264
|
+
abi: exports.Treasury_jsonAbi,
|
|
1265
|
+
eventName: 'GracePeriodUpdated',
|
|
1266
|
+
onLogs: (logs) => {
|
|
1267
|
+
logs.forEach((log) => {
|
|
1268
|
+
callback(log.args);
|
|
1269
|
+
});
|
|
1270
|
+
},
|
|
1271
|
+
});
|
|
1272
|
+
},
|
|
1273
|
+
/**
|
|
1274
|
+
* Watch Initialized events
|
|
1275
|
+
* @param callback Function to call when event is emitted
|
|
1276
|
+
* @param filter Optional filter for indexed parameters
|
|
1277
|
+
* @returns Unwatch function to stop listening
|
|
1278
|
+
*/
|
|
1279
|
+
Initialized: (callback) => {
|
|
1280
|
+
return this.publicClient.watchContractEvent({
|
|
1281
|
+
address: this.contractAddress,
|
|
1282
|
+
abi: exports.Treasury_jsonAbi,
|
|
1283
|
+
eventName: 'Initialized',
|
|
1284
|
+
onLogs: (logs) => {
|
|
1285
|
+
logs.forEach((log) => {
|
|
1286
|
+
callback(log.args);
|
|
1287
|
+
});
|
|
1288
|
+
},
|
|
1289
|
+
});
|
|
1290
|
+
},
|
|
1291
|
+
/**
|
|
1292
|
+
* Watch OwnerCanceled events
|
|
1293
|
+
* @param callback Function to call when event is emitted
|
|
1294
|
+
* @param filter Optional filter for indexed parameters
|
|
1295
|
+
* @returns Unwatch function to stop listening
|
|
1296
|
+
*/
|
|
1297
|
+
OwnerCanceled: (callback, filter) => {
|
|
1298
|
+
return this.publicClient.watchContractEvent({
|
|
1299
|
+
address: this.contractAddress,
|
|
1300
|
+
abi: exports.Treasury_jsonAbi,
|
|
1301
|
+
eventName: 'OwnerCanceled',
|
|
1302
|
+
args: filter,
|
|
1303
|
+
onLogs: (logs) => {
|
|
1304
|
+
logs.forEach((log) => {
|
|
1305
|
+
callback(log.args);
|
|
1306
|
+
});
|
|
1307
|
+
},
|
|
1308
|
+
});
|
|
1309
|
+
},
|
|
1310
|
+
/**
|
|
1311
|
+
* Watch OwnerPending events
|
|
1312
|
+
* @param callback Function to call when event is emitted
|
|
1313
|
+
* @param filter Optional filter for indexed parameters
|
|
1314
|
+
* @returns Unwatch function to stop listening
|
|
1315
|
+
*/
|
|
1316
|
+
OwnerPending: (callback, filter) => {
|
|
1317
|
+
return this.publicClient.watchContractEvent({
|
|
1318
|
+
address: this.contractAddress,
|
|
1319
|
+
abi: exports.Treasury_jsonAbi,
|
|
1320
|
+
eventName: 'OwnerPending',
|
|
1321
|
+
args: filter,
|
|
1322
|
+
onLogs: (logs) => {
|
|
1323
|
+
logs.forEach((log) => {
|
|
1324
|
+
callback(log.args);
|
|
1325
|
+
});
|
|
1326
|
+
},
|
|
1327
|
+
});
|
|
1328
|
+
},
|
|
1329
|
+
/**
|
|
1330
|
+
* Watch OwnerUpdated events
|
|
1095
1331
|
* @param callback Function to call when event is emitted
|
|
1096
1332
|
* @param filter Optional filter for indexed parameters
|
|
1097
1333
|
* @returns Unwatch function to stop listening
|
|
1098
1334
|
*/
|
|
1099
|
-
|
|
1335
|
+
OwnerUpdated: (callback, filter) => {
|
|
1100
1336
|
return this.publicClient.watchContractEvent({
|
|
1101
1337
|
address: this.contractAddress,
|
|
1102
1338
|
abi: exports.Treasury_jsonAbi,
|
|
1103
|
-
eventName: '
|
|
1339
|
+
eventName: 'OwnerUpdated',
|
|
1340
|
+
args: filter,
|
|
1104
1341
|
onLogs: (logs) => {
|
|
1105
1342
|
logs.forEach((log) => {
|
|
1106
1343
|
callback(log.args);
|
|
@@ -1109,16 +1346,16 @@ class Treasury_json {
|
|
|
1109
1346
|
});
|
|
1110
1347
|
},
|
|
1111
1348
|
/**
|
|
1112
|
-
* Watch
|
|
1349
|
+
* Watch TransactionCanceled events
|
|
1113
1350
|
* @param callback Function to call when event is emitted
|
|
1114
1351
|
* @param filter Optional filter for indexed parameters
|
|
1115
1352
|
* @returns Unwatch function to stop listening
|
|
1116
1353
|
*/
|
|
1117
|
-
|
|
1354
|
+
TransactionCanceled: (callback) => {
|
|
1118
1355
|
return this.publicClient.watchContractEvent({
|
|
1119
1356
|
address: this.contractAddress,
|
|
1120
1357
|
abi: exports.Treasury_jsonAbi,
|
|
1121
|
-
eventName: '
|
|
1358
|
+
eventName: 'TransactionCanceled',
|
|
1122
1359
|
onLogs: (logs) => {
|
|
1123
1360
|
logs.forEach((log) => {
|
|
1124
1361
|
callback(log.args);
|
|
@@ -1127,16 +1364,16 @@ class Treasury_json {
|
|
|
1127
1364
|
});
|
|
1128
1365
|
},
|
|
1129
1366
|
/**
|
|
1130
|
-
* Watch
|
|
1367
|
+
* Watch TransactionExecuted events
|
|
1131
1368
|
* @param callback Function to call when event is emitted
|
|
1132
1369
|
* @param filter Optional filter for indexed parameters
|
|
1133
1370
|
* @returns Unwatch function to stop listening
|
|
1134
1371
|
*/
|
|
1135
|
-
|
|
1372
|
+
TransactionExecuted: (callback) => {
|
|
1136
1373
|
return this.publicClient.watchContractEvent({
|
|
1137
1374
|
address: this.contractAddress,
|
|
1138
1375
|
abi: exports.Treasury_jsonAbi,
|
|
1139
|
-
eventName: '
|
|
1376
|
+
eventName: 'TransactionExecuted',
|
|
1140
1377
|
onLogs: (logs) => {
|
|
1141
1378
|
logs.forEach((log) => {
|
|
1142
1379
|
callback(log.args);
|
|
@@ -1145,16 +1382,16 @@ class Treasury_json {
|
|
|
1145
1382
|
});
|
|
1146
1383
|
},
|
|
1147
1384
|
/**
|
|
1148
|
-
* Watch
|
|
1385
|
+
* Watch TransactionScheduled events
|
|
1149
1386
|
* @param callback Function to call when event is emitted
|
|
1150
1387
|
* @param filter Optional filter for indexed parameters
|
|
1151
1388
|
* @returns Unwatch function to stop listening
|
|
1152
1389
|
*/
|
|
1153
|
-
|
|
1390
|
+
TransactionScheduled: (callback) => {
|
|
1154
1391
|
return this.publicClient.watchContractEvent({
|
|
1155
1392
|
address: this.contractAddress,
|
|
1156
1393
|
abi: exports.Treasury_jsonAbi,
|
|
1157
|
-
eventName: '
|
|
1394
|
+
eventName: 'TransactionScheduled',
|
|
1158
1395
|
onLogs: (logs) => {
|
|
1159
1396
|
logs.forEach((log) => {
|
|
1160
1397
|
callback(log.args);
|
|
@@ -1163,16 +1400,16 @@ class Treasury_json {
|
|
|
1163
1400
|
});
|
|
1164
1401
|
},
|
|
1165
1402
|
/**
|
|
1166
|
-
* Watch
|
|
1403
|
+
* Watch Upgraded events
|
|
1167
1404
|
* @param callback Function to call when event is emitted
|
|
1168
1405
|
* @param filter Optional filter for indexed parameters
|
|
1169
1406
|
* @returns Unwatch function to stop listening
|
|
1170
1407
|
*/
|
|
1171
|
-
|
|
1408
|
+
Upgraded: (callback) => {
|
|
1172
1409
|
return this.publicClient.watchContractEvent({
|
|
1173
1410
|
address: this.contractAddress,
|
|
1174
1411
|
abi: exports.Treasury_jsonAbi,
|
|
1175
|
-
eventName: '
|
|
1412
|
+
eventName: 'Upgraded',
|
|
1176
1413
|
onLogs: (logs) => {
|
|
1177
1414
|
logs.forEach((log) => {
|
|
1178
1415
|
callback(log.args);
|