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