@gitmyabi/treasury 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/Treasury_json.d.ts +547 -1832
- package/contracts/Treasury_json.js +559 -1812
- package/contracts/Treasury_json.ts +510 -2201
- package/package.json +3 -3
|
@@ -9,224 +9,53 @@ const viem_1 = require("viem");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.Treasury_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
+
"anonymous": false,
|
|
12
13
|
"inputs": [
|
|
13
14
|
{
|
|
14
|
-
"
|
|
15
|
-
"name": "_fwa",
|
|
16
|
-
"type": "address"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
15
|
+
"indexed": false,
|
|
19
16
|
"internalType": "address",
|
|
20
|
-
"name": "
|
|
21
|
-
"type": "address"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"internalType": "contract IPoolManager",
|
|
25
|
-
"name": "_poolManager",
|
|
17
|
+
"name": "factory",
|
|
26
18
|
"type": "address"
|
|
27
19
|
},
|
|
28
20
|
{
|
|
21
|
+
"indexed": false,
|
|
29
22
|
"internalType": "address",
|
|
30
|
-
"name": "
|
|
31
|
-
"type": "address"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"internalType": "contract IHooks",
|
|
35
|
-
"name": "_hook",
|
|
23
|
+
"name": "ruleList",
|
|
36
24
|
"type": "address"
|
|
37
25
|
},
|
|
38
26
|
{
|
|
27
|
+
"indexed": false,
|
|
39
28
|
"internalType": "address",
|
|
40
|
-
"name": "
|
|
41
|
-
"type": "address"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"stateMutability": "nonpayable",
|
|
45
|
-
"type": "constructor"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"inputs": [
|
|
49
|
-
{
|
|
50
|
-
"internalType": "address",
|
|
51
|
-
"name": "target",
|
|
52
|
-
"type": "address"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"name": "AddressEmptyCode",
|
|
56
|
-
"type": "error"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"inputs": [
|
|
60
|
-
{
|
|
61
|
-
"internalType": "address",
|
|
62
|
-
"name": "account",
|
|
63
|
-
"type": "address"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"name": "AddressInsufficientBalance",
|
|
67
|
-
"type": "error"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"inputs": [],
|
|
71
|
-
"name": "BackingTooHigh",
|
|
72
|
-
"type": "error"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"inputs": [],
|
|
76
|
-
"name": "CapExceeded",
|
|
77
|
-
"type": "error"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"inputs": [],
|
|
81
|
-
"name": "EnforcedPause",
|
|
82
|
-
"type": "error"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"inputs": [],
|
|
86
|
-
"name": "ExpectedPause",
|
|
87
|
-
"type": "error"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"inputs": [],
|
|
91
|
-
"name": "FailedInnerCall",
|
|
92
|
-
"type": "error"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"inputs": [],
|
|
96
|
-
"name": "InsufficientBalance",
|
|
97
|
-
"type": "error"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"inputs": [],
|
|
101
|
-
"name": "NftNotReceived",
|
|
102
|
-
"type": "error"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"inputs": [],
|
|
106
|
-
"name": "NftPriceTooHigh",
|
|
107
|
-
"type": "error"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"inputs": [],
|
|
111
|
-
"name": "NotOperatorOrOwner",
|
|
112
|
-
"type": "error"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"inputs": [],
|
|
116
|
-
"name": "NotPoolManager",
|
|
117
|
-
"type": "error"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"inputs": [
|
|
121
|
-
{
|
|
122
|
-
"internalType": "address",
|
|
123
|
-
"name": "owner",
|
|
124
|
-
"type": "address"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"name": "OwnableInvalidOwner",
|
|
128
|
-
"type": "error"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"inputs": [
|
|
132
|
-
{
|
|
133
|
-
"internalType": "address",
|
|
134
|
-
"name": "account",
|
|
135
|
-
"type": "address"
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"name": "OwnableUnauthorizedAccount",
|
|
139
|
-
"type": "error"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"inputs": [],
|
|
143
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
144
|
-
"type": "error"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [
|
|
148
|
-
{
|
|
149
|
-
"internalType": "address",
|
|
150
|
-
"name": "token",
|
|
29
|
+
"name": "escrowedDeposit",
|
|
151
30
|
"type": "address"
|
|
152
31
|
}
|
|
153
32
|
],
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "error"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"inputs": [],
|
|
159
|
-
"name": "SeaportBuyFailed",
|
|
160
|
-
"type": "error"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"inputs": [],
|
|
164
|
-
"name": "SlippageBuyback",
|
|
165
|
-
"type": "error"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"inputs": [],
|
|
169
|
-
"name": "SlippageTooHigh",
|
|
170
|
-
"type": "error"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"inputs": [],
|
|
174
|
-
"name": "TransferFailed",
|
|
175
|
-
"type": "error"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"inputs": [],
|
|
179
|
-
"name": "ZeroAddress",
|
|
180
|
-
"type": "error"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"anonymous": false,
|
|
184
|
-
"inputs": [
|
|
185
|
-
{
|
|
186
|
-
"indexed": true,
|
|
187
|
-
"internalType": "uint256",
|
|
188
|
-
"name": "listingId",
|
|
189
|
-
"type": "uint256"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"indexed": false,
|
|
193
|
-
"internalType": "uint256",
|
|
194
|
-
"name": "newBacking",
|
|
195
|
-
"type": "uint256"
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"name": "BackingUpdated",
|
|
33
|
+
"name": "connectedContracts",
|
|
199
34
|
"type": "event"
|
|
200
35
|
},
|
|
201
36
|
{
|
|
202
37
|
"anonymous": false,
|
|
203
38
|
"inputs": [
|
|
204
39
|
{
|
|
205
|
-
"indexed":
|
|
40
|
+
"indexed": false,
|
|
206
41
|
"internalType": "uint256",
|
|
207
|
-
"name": "
|
|
42
|
+
"name": "speedBumpIndex",
|
|
208
43
|
"type": "uint256"
|
|
209
44
|
},
|
|
210
|
-
{
|
|
211
|
-
"indexed": true,
|
|
212
|
-
"internalType": "address",
|
|
213
|
-
"name": "collection",
|
|
214
|
-
"type": "address"
|
|
215
|
-
},
|
|
216
45
|
{
|
|
217
46
|
"indexed": false,
|
|
218
47
|
"internalType": "uint256",
|
|
219
|
-
"name": "
|
|
48
|
+
"name": "timeCreated",
|
|
220
49
|
"type": "uint256"
|
|
221
50
|
},
|
|
222
51
|
{
|
|
223
52
|
"indexed": false,
|
|
224
53
|
"internalType": "uint256",
|
|
225
|
-
"name": "
|
|
54
|
+
"name": "speedBumpHours",
|
|
226
55
|
"type": "uint256"
|
|
227
56
|
}
|
|
228
57
|
],
|
|
229
|
-
"name": "
|
|
58
|
+
"name": "updatedSpeedBump",
|
|
230
59
|
"type": "event"
|
|
231
60
|
},
|
|
232
61
|
{
|
|
@@ -234,18 +63,18 @@ exports.Treasury_jsonAbi = [
|
|
|
234
63
|
"inputs": [
|
|
235
64
|
{
|
|
236
65
|
"indexed": false,
|
|
237
|
-
"internalType": "
|
|
238
|
-
"name": "
|
|
239
|
-
"type": "
|
|
66
|
+
"internalType": "string",
|
|
67
|
+
"name": "verificationDetails",
|
|
68
|
+
"type": "string"
|
|
240
69
|
},
|
|
241
70
|
{
|
|
242
71
|
"indexed": false,
|
|
243
|
-
"internalType": "
|
|
244
|
-
"name": "
|
|
245
|
-
"type": "
|
|
72
|
+
"internalType": "string",
|
|
73
|
+
"name": "locationOfDetails",
|
|
74
|
+
"type": "string"
|
|
246
75
|
}
|
|
247
76
|
],
|
|
248
|
-
"name": "
|
|
77
|
+
"name": "updatedTreasuryFunctionVerification",
|
|
249
78
|
"type": "event"
|
|
250
79
|
},
|
|
251
80
|
{
|
|
@@ -253,302 +82,267 @@ exports.Treasury_jsonAbi = [
|
|
|
253
82
|
"inputs": [
|
|
254
83
|
{
|
|
255
84
|
"indexed": false,
|
|
256
|
-
"internalType": "
|
|
257
|
-
"name": "
|
|
258
|
-
"type": "
|
|
85
|
+
"internalType": "address",
|
|
86
|
+
"name": "newWithdrawalAddress",
|
|
87
|
+
"type": "address"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"indexed": false,
|
|
91
|
+
"internalType": "address",
|
|
92
|
+
"name": "newOperator",
|
|
93
|
+
"type": "address"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"indexed": false,
|
|
97
|
+
"internalType": "bool",
|
|
98
|
+
"name": "circuitBreaker",
|
|
99
|
+
"type": "bool"
|
|
259
100
|
}
|
|
260
101
|
],
|
|
261
|
-
"name": "
|
|
102
|
+
"name": "updatedTreasuryMainVariables",
|
|
262
103
|
"type": "event"
|
|
263
104
|
},
|
|
264
105
|
{
|
|
265
106
|
"anonymous": false,
|
|
266
107
|
"inputs": [
|
|
267
108
|
{
|
|
268
|
-
"indexed":
|
|
269
|
-
"internalType": "
|
|
270
|
-
"name": "
|
|
271
|
-
"type": "
|
|
109
|
+
"indexed": false,
|
|
110
|
+
"internalType": "uint16",
|
|
111
|
+
"name": "mappDisputeFeeMultipler",
|
|
112
|
+
"type": "uint16"
|
|
272
113
|
},
|
|
273
114
|
{
|
|
274
|
-
"indexed":
|
|
275
|
-
"internalType": "
|
|
276
|
-
"name": "
|
|
277
|
-
"type": "
|
|
115
|
+
"indexed": false,
|
|
116
|
+
"internalType": "uint16",
|
|
117
|
+
"name": "commissionDivider",
|
|
118
|
+
"type": "uint16"
|
|
278
119
|
},
|
|
279
120
|
{
|
|
280
121
|
"indexed": false,
|
|
281
|
-
"internalType": "
|
|
282
|
-
"name": "
|
|
283
|
-
"type": "
|
|
122
|
+
"internalType": "uint16",
|
|
123
|
+
"name": "gatewayPenaltyMultipler",
|
|
124
|
+
"type": "uint16"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"indexed": false,
|
|
128
|
+
"internalType": "uint16",
|
|
129
|
+
"name": "treasuryPenaltyMultipler",
|
|
130
|
+
"type": "uint16"
|
|
284
131
|
}
|
|
285
132
|
],
|
|
286
|
-
"name": "
|
|
133
|
+
"name": "updatedTreasuryVariables",
|
|
287
134
|
"type": "event"
|
|
288
135
|
},
|
|
289
136
|
{
|
|
290
|
-
"
|
|
291
|
-
"inputs": [
|
|
137
|
+
"constant": true,
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"name": "QNTAddress",
|
|
140
|
+
"outputs": [
|
|
292
141
|
{
|
|
293
|
-
"indexed": true,
|
|
294
142
|
"internalType": "address",
|
|
295
|
-
"name": "
|
|
143
|
+
"name": "",
|
|
296
144
|
"type": "address"
|
|
297
|
-
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"payable": false,
|
|
148
|
+
"stateMutability": "view",
|
|
149
|
+
"type": "function"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"constant": true,
|
|
153
|
+
"inputs": [],
|
|
154
|
+
"name": "admin",
|
|
155
|
+
"outputs": [
|
|
298
156
|
{
|
|
299
|
-
"indexed": true,
|
|
300
157
|
"internalType": "address",
|
|
301
|
-
"name": "
|
|
158
|
+
"name": "",
|
|
302
159
|
"type": "address"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"indexed": false,
|
|
306
|
-
"internalType": "uint256",
|
|
307
|
-
"name": "tokenId",
|
|
308
|
-
"type": "uint256"
|
|
309
160
|
}
|
|
310
161
|
],
|
|
311
|
-
"
|
|
312
|
-
"
|
|
162
|
+
"payable": false,
|
|
163
|
+
"stateMutability": "view",
|
|
164
|
+
"type": "function"
|
|
313
165
|
},
|
|
314
166
|
{
|
|
315
|
-
"
|
|
167
|
+
"constant": false,
|
|
316
168
|
"inputs": [
|
|
317
169
|
{
|
|
318
|
-
"indexed": true,
|
|
319
170
|
"internalType": "address",
|
|
320
|
-
"name": "
|
|
171
|
+
"name": "nextAdmin",
|
|
321
172
|
"type": "address"
|
|
322
173
|
},
|
|
323
174
|
{
|
|
324
|
-
"
|
|
325
|
-
"
|
|
326
|
-
"
|
|
327
|
-
"type": "uint256"
|
|
175
|
+
"internalType": "address",
|
|
176
|
+
"name": "nextImplementation",
|
|
177
|
+
"type": "address"
|
|
328
178
|
}
|
|
329
179
|
],
|
|
330
|
-
"name": "
|
|
331
|
-
"
|
|
180
|
+
"name": "changeProxyVariables",
|
|
181
|
+
"outputs": [],
|
|
182
|
+
"payable": false,
|
|
183
|
+
"stateMutability": "nonpayable",
|
|
184
|
+
"type": "function"
|
|
332
185
|
},
|
|
333
186
|
{
|
|
334
|
-
"
|
|
335
|
-
"inputs": [
|
|
187
|
+
"constant": true,
|
|
188
|
+
"inputs": [],
|
|
189
|
+
"name": "circuitBreakerOn",
|
|
190
|
+
"outputs": [
|
|
336
191
|
{
|
|
337
|
-
"
|
|
338
|
-
"
|
|
339
|
-
"
|
|
340
|
-
"type": "uint256"
|
|
192
|
+
"internalType": "bool",
|
|
193
|
+
"name": "",
|
|
194
|
+
"type": "bool"
|
|
341
195
|
}
|
|
342
196
|
],
|
|
343
|
-
"
|
|
344
|
-
"
|
|
197
|
+
"payable": false,
|
|
198
|
+
"stateMutability": "view",
|
|
199
|
+
"type": "function"
|
|
345
200
|
},
|
|
346
201
|
{
|
|
347
|
-
"
|
|
348
|
-
"inputs": [
|
|
202
|
+
"constant": true,
|
|
203
|
+
"inputs": [],
|
|
204
|
+
"name": "commissionDivider",
|
|
205
|
+
"outputs": [
|
|
349
206
|
{
|
|
350
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"
|
|
353
|
-
"type": "uint256"
|
|
207
|
+
"internalType": "uint16",
|
|
208
|
+
"name": "",
|
|
209
|
+
"type": "uint16"
|
|
354
210
|
}
|
|
355
211
|
],
|
|
356
|
-
"
|
|
357
|
-
"
|
|
212
|
+
"payable": false,
|
|
213
|
+
"stateMutability": "view",
|
|
214
|
+
"type": "function"
|
|
358
215
|
},
|
|
359
216
|
{
|
|
360
|
-
"
|
|
361
|
-
"inputs": [
|
|
217
|
+
"constant": true,
|
|
218
|
+
"inputs": [],
|
|
219
|
+
"name": "gatewayPenaltyMultipler",
|
|
220
|
+
"outputs": [
|
|
362
221
|
{
|
|
363
|
-
"
|
|
364
|
-
"
|
|
365
|
-
"
|
|
366
|
-
|
|
367
|
-
|
|
222
|
+
"internalType": "uint16",
|
|
223
|
+
"name": "",
|
|
224
|
+
"type": "uint16"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"payable": false,
|
|
228
|
+
"stateMutability": "view",
|
|
229
|
+
"type": "function"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"constant": true,
|
|
233
|
+
"inputs": [],
|
|
234
|
+
"name": "implementation",
|
|
235
|
+
"outputs": [
|
|
368
236
|
{
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
"type": "uint256"
|
|
237
|
+
"internalType": "address",
|
|
238
|
+
"name": "",
|
|
239
|
+
"type": "address"
|
|
373
240
|
}
|
|
374
241
|
],
|
|
375
|
-
"
|
|
376
|
-
"
|
|
242
|
+
"payable": false,
|
|
243
|
+
"stateMutability": "view",
|
|
244
|
+
"type": "function"
|
|
377
245
|
},
|
|
378
246
|
{
|
|
379
|
-
"
|
|
247
|
+
"constant": false,
|
|
380
248
|
"inputs": [
|
|
381
249
|
{
|
|
382
|
-
"
|
|
383
|
-
"
|
|
384
|
-
"
|
|
385
|
-
"type": "uint256"
|
|
250
|
+
"internalType": "address",
|
|
251
|
+
"name": "thisQNTAddress",
|
|
252
|
+
"type": "address"
|
|
386
253
|
},
|
|
387
254
|
{
|
|
388
|
-
"
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
"type": "uint256"
|
|
255
|
+
"internalType": "address",
|
|
256
|
+
"name": "thisOperatorAddress",
|
|
257
|
+
"type": "address"
|
|
392
258
|
},
|
|
393
259
|
{
|
|
394
|
-
"
|
|
395
|
-
"
|
|
396
|
-
"
|
|
397
|
-
"type": "uint256"
|
|
260
|
+
"internalType": "uint16",
|
|
261
|
+
"name": "mappDisputeFee",
|
|
262
|
+
"type": "uint16"
|
|
398
263
|
},
|
|
399
264
|
{
|
|
400
|
-
"
|
|
401
|
-
"
|
|
402
|
-
"
|
|
403
|
-
"type": "uint256"
|
|
404
|
-
}
|
|
405
|
-
],
|
|
406
|
-
"name": "LimitsSet",
|
|
407
|
-
"type": "event"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"anonymous": false,
|
|
411
|
-
"inputs": [
|
|
412
|
-
{
|
|
413
|
-
"indexed": true,
|
|
414
|
-
"internalType": "uint256",
|
|
415
|
-
"name": "listingId",
|
|
416
|
-
"type": "uint256"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"indexed": true,
|
|
420
|
-
"internalType": "address",
|
|
421
|
-
"name": "collection",
|
|
422
|
-
"type": "address"
|
|
265
|
+
"internalType": "uint16",
|
|
266
|
+
"name": "commission",
|
|
267
|
+
"type": "uint16"
|
|
423
268
|
},
|
|
424
269
|
{
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
"type": "uint256"
|
|
270
|
+
"internalType": "uint16",
|
|
271
|
+
"name": "treasuryPenalty",
|
|
272
|
+
"type": "uint16"
|
|
429
273
|
},
|
|
430
274
|
{
|
|
431
|
-
"
|
|
432
|
-
"
|
|
433
|
-
"
|
|
434
|
-
"type": "uint256"
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
"name": "ListedOnFwa",
|
|
438
|
-
"type": "event"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"anonymous": false,
|
|
442
|
-
"inputs": [
|
|
443
|
-
{
|
|
444
|
-
"indexed": true,
|
|
445
|
-
"internalType": "address",
|
|
446
|
-
"name": "operator",
|
|
447
|
-
"type": "address"
|
|
275
|
+
"internalType": "uint16",
|
|
276
|
+
"name": "gatewayPenalty",
|
|
277
|
+
"type": "uint16"
|
|
448
278
|
},
|
|
449
279
|
{
|
|
450
|
-
"
|
|
451
|
-
"
|
|
452
|
-
"
|
|
453
|
-
"type": "uint256"
|
|
454
|
-
}
|
|
455
|
-
],
|
|
456
|
-
"name": "OperatorFunded",
|
|
457
|
-
"type": "event"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"anonymous": false,
|
|
461
|
-
"inputs": [
|
|
462
|
-
{
|
|
463
|
-
"indexed": true,
|
|
464
|
-
"internalType": "address",
|
|
465
|
-
"name": "operator",
|
|
466
|
-
"type": "address"
|
|
280
|
+
"internalType": "uint16",
|
|
281
|
+
"name": "speedBumpTime",
|
|
282
|
+
"type": "uint16"
|
|
467
283
|
}
|
|
468
284
|
],
|
|
469
|
-
"name": "
|
|
470
|
-
"
|
|
285
|
+
"name": "initialize",
|
|
286
|
+
"outputs": [],
|
|
287
|
+
"payable": false,
|
|
288
|
+
"stateMutability": "nonpayable",
|
|
289
|
+
"type": "function"
|
|
471
290
|
},
|
|
472
291
|
{
|
|
473
|
-
"
|
|
474
|
-
"inputs": [
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
"internalType": "address",
|
|
478
|
-
"name": "previousOwner",
|
|
479
|
-
"type": "address"
|
|
480
|
-
},
|
|
292
|
+
"constant": true,
|
|
293
|
+
"inputs": [],
|
|
294
|
+
"name": "initialized",
|
|
295
|
+
"outputs": [
|
|
481
296
|
{
|
|
482
|
-
"
|
|
483
|
-
"
|
|
484
|
-
"
|
|
485
|
-
"type": "address"
|
|
297
|
+
"internalType": "bool",
|
|
298
|
+
"name": "",
|
|
299
|
+
"type": "bool"
|
|
486
300
|
}
|
|
487
301
|
],
|
|
488
|
-
"
|
|
489
|
-
"
|
|
302
|
+
"payable": false,
|
|
303
|
+
"stateMutability": "view",
|
|
304
|
+
"type": "function"
|
|
490
305
|
},
|
|
491
306
|
{
|
|
492
|
-
"
|
|
493
|
-
"inputs": [
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
"internalType": "address",
|
|
497
|
-
"name": "previousOwner",
|
|
498
|
-
"type": "address"
|
|
499
|
-
},
|
|
307
|
+
"constant": true,
|
|
308
|
+
"inputs": [],
|
|
309
|
+
"name": "mappDisputeFeeMultipler",
|
|
310
|
+
"outputs": [
|
|
500
311
|
{
|
|
501
|
-
"
|
|
502
|
-
"
|
|
503
|
-
"
|
|
504
|
-
"type": "address"
|
|
312
|
+
"internalType": "uint16",
|
|
313
|
+
"name": "",
|
|
314
|
+
"type": "uint16"
|
|
505
315
|
}
|
|
506
316
|
],
|
|
507
|
-
"
|
|
508
|
-
"
|
|
317
|
+
"payable": false,
|
|
318
|
+
"stateMutability": "view",
|
|
319
|
+
"type": "function"
|
|
509
320
|
},
|
|
510
321
|
{
|
|
511
|
-
"
|
|
512
|
-
"inputs": [
|
|
322
|
+
"constant": true,
|
|
323
|
+
"inputs": [],
|
|
324
|
+
"name": "operatorAddress",
|
|
325
|
+
"outputs": [
|
|
513
326
|
{
|
|
514
|
-
"indexed": false,
|
|
515
327
|
"internalType": "address",
|
|
516
|
-
"name": "
|
|
328
|
+
"name": "",
|
|
517
329
|
"type": "address"
|
|
518
330
|
}
|
|
519
331
|
],
|
|
520
|
-
"
|
|
521
|
-
"
|
|
522
|
-
|
|
523
|
-
{
|
|
524
|
-
"anonymous": false,
|
|
525
|
-
"inputs": [
|
|
526
|
-
{
|
|
527
|
-
"indexed": false,
|
|
528
|
-
"internalType": "uint256",
|
|
529
|
-
"name": "total",
|
|
530
|
-
"type": "uint256"
|
|
531
|
-
}
|
|
532
|
-
],
|
|
533
|
-
"name": "RewardsClaimed",
|
|
534
|
-
"type": "event"
|
|
332
|
+
"payable": false,
|
|
333
|
+
"stateMutability": "view",
|
|
334
|
+
"type": "function"
|
|
535
335
|
},
|
|
536
336
|
{
|
|
537
|
-
"
|
|
337
|
+
"constant": true,
|
|
538
338
|
"inputs": [
|
|
539
339
|
{
|
|
540
|
-
"
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
"type": "address"
|
|
340
|
+
"internalType": "bool",
|
|
341
|
+
"name": "gateway",
|
|
342
|
+
"type": "bool"
|
|
544
343
|
}
|
|
545
344
|
],
|
|
546
|
-
"name": "
|
|
547
|
-
"type": "event"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"inputs": [],
|
|
551
|
-
"name": "MAX_BUYBACK_SLIPPAGE_BPS",
|
|
345
|
+
"name": "readFunctionPenaltyMultipler",
|
|
552
346
|
"outputs": [
|
|
553
347
|
{
|
|
554
348
|
"internalType": "uint256",
|
|
@@ -556,757 +350,320 @@ exports.Treasury_jsonAbi = [
|
|
|
556
350
|
"type": "uint256"
|
|
557
351
|
}
|
|
558
352
|
],
|
|
353
|
+
"payable": false,
|
|
559
354
|
"stateMutability": "view",
|
|
560
355
|
"type": "function"
|
|
561
356
|
},
|
|
562
357
|
{
|
|
358
|
+
"constant": false,
|
|
563
359
|
"inputs": [],
|
|
564
|
-
"name": "
|
|
360
|
+
"name": "setAdmin",
|
|
565
361
|
"outputs": [],
|
|
362
|
+
"payable": false,
|
|
566
363
|
"stateMutability": "nonpayable",
|
|
567
364
|
"type": "function"
|
|
568
365
|
},
|
|
569
366
|
{
|
|
570
|
-
"
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
"name": "maxCount",
|
|
574
|
-
"type": "uint256"
|
|
575
|
-
}
|
|
576
|
-
],
|
|
577
|
-
"name": "activateFwaListings",
|
|
367
|
+
"constant": false,
|
|
368
|
+
"inputs": [],
|
|
369
|
+
"name": "setImplementation",
|
|
578
370
|
"outputs": [],
|
|
371
|
+
"payable": false,
|
|
579
372
|
"stateMutability": "nonpayable",
|
|
580
373
|
"type": "function"
|
|
581
374
|
},
|
|
582
375
|
{
|
|
376
|
+
"constant": true,
|
|
583
377
|
"inputs": [
|
|
584
378
|
{
|
|
585
|
-
"internalType": "
|
|
586
|
-
"name": "
|
|
587
|
-
"type": "
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"internalType": "uint256",
|
|
591
|
-
"name": "priceWei",
|
|
592
|
-
"type": "uint256"
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
"internalType": "address",
|
|
596
|
-
"name": "collection",
|
|
597
|
-
"type": "address"
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"internalType": "uint256",
|
|
601
|
-
"name": "tokenId",
|
|
602
|
-
"type": "uint256"
|
|
379
|
+
"internalType": "uint8",
|
|
380
|
+
"name": "index",
|
|
381
|
+
"type": "uint8"
|
|
603
382
|
},
|
|
604
383
|
{
|
|
605
|
-
"internalType": "
|
|
606
|
-
"name": "
|
|
607
|
-
"type": "
|
|
384
|
+
"internalType": "uint8",
|
|
385
|
+
"name": "addressIndex",
|
|
386
|
+
"type": "uint8"
|
|
608
387
|
}
|
|
609
388
|
],
|
|
610
|
-
"name": "
|
|
389
|
+
"name": "speedBumpAddresses",
|
|
611
390
|
"outputs": [
|
|
612
391
|
{
|
|
613
|
-
"internalType": "
|
|
614
|
-
"name": "
|
|
615
|
-
"type": "
|
|
392
|
+
"internalType": "address",
|
|
393
|
+
"name": "",
|
|
394
|
+
"type": "address"
|
|
616
395
|
}
|
|
617
396
|
],
|
|
618
|
-
"
|
|
397
|
+
"payable": false,
|
|
398
|
+
"stateMutability": "view",
|
|
619
399
|
"type": "function"
|
|
620
400
|
},
|
|
621
401
|
{
|
|
402
|
+
"constant": true,
|
|
622
403
|
"inputs": [
|
|
623
404
|
{
|
|
624
|
-
"internalType": "
|
|
625
|
-
"name": "
|
|
626
|
-
"type": "
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"internalType": "uint256",
|
|
630
|
-
"name": "minTokensOut",
|
|
631
|
-
"type": "uint256"
|
|
632
|
-
}
|
|
633
|
-
],
|
|
634
|
-
"name": "buybackAndBurn",
|
|
635
|
-
"outputs": [
|
|
636
|
-
{
|
|
637
|
-
"internalType": "uint256",
|
|
638
|
-
"name": "tokensBurned",
|
|
639
|
-
"type": "uint256"
|
|
405
|
+
"internalType": "uint8",
|
|
406
|
+
"name": "index",
|
|
407
|
+
"type": "uint8"
|
|
640
408
|
}
|
|
641
409
|
],
|
|
642
|
-
"
|
|
643
|
-
"type": "function"
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
"inputs": [],
|
|
647
|
-
"name": "buybackSlippageBps",
|
|
410
|
+
"name": "speedBumpCircuitBreaker",
|
|
648
411
|
"outputs": [
|
|
649
412
|
{
|
|
650
|
-
"internalType": "
|
|
413
|
+
"internalType": "bool",
|
|
651
414
|
"name": "",
|
|
652
|
-
"type": "
|
|
415
|
+
"type": "bool"
|
|
653
416
|
}
|
|
654
417
|
],
|
|
418
|
+
"payable": false,
|
|
655
419
|
"stateMutability": "view",
|
|
656
420
|
"type": "function"
|
|
657
421
|
},
|
|
658
422
|
{
|
|
423
|
+
"constant": false,
|
|
659
424
|
"inputs": [
|
|
660
425
|
{
|
|
661
|
-
"internalType": "
|
|
662
|
-
"name": "
|
|
663
|
-
"type": "
|
|
664
|
-
}
|
|
665
|
-
],
|
|
666
|
-
"name": "claimFees",
|
|
667
|
-
"outputs": [
|
|
668
|
-
{
|
|
669
|
-
"internalType": "uint256",
|
|
670
|
-
"name": "total",
|
|
671
|
-
"type": "uint256"
|
|
426
|
+
"internalType": "address[]",
|
|
427
|
+
"name": "addresses",
|
|
428
|
+
"type": "address[]"
|
|
672
429
|
}
|
|
673
430
|
],
|
|
431
|
+
"name": "speedBumpContract",
|
|
432
|
+
"outputs": [],
|
|
433
|
+
"payable": false,
|
|
674
434
|
"stateMutability": "nonpayable",
|
|
675
435
|
"type": "function"
|
|
676
436
|
},
|
|
677
437
|
{
|
|
438
|
+
"constant": true,
|
|
678
439
|
"inputs": [
|
|
679
440
|
{
|
|
680
|
-
"internalType": "
|
|
681
|
-
"name": "
|
|
682
|
-
"type": "
|
|
441
|
+
"internalType": "uint8",
|
|
442
|
+
"name": "index",
|
|
443
|
+
"type": "uint8"
|
|
683
444
|
}
|
|
684
445
|
],
|
|
685
|
-
"name": "
|
|
446
|
+
"name": "speedBumpCurrentSBHours",
|
|
686
447
|
"outputs": [
|
|
687
448
|
{
|
|
688
|
-
"internalType": "
|
|
689
|
-
"name": "
|
|
690
|
-
"type": "
|
|
449
|
+
"internalType": "uint16",
|
|
450
|
+
"name": "",
|
|
451
|
+
"type": "uint16"
|
|
691
452
|
}
|
|
692
453
|
],
|
|
693
|
-
"
|
|
454
|
+
"payable": false,
|
|
455
|
+
"stateMutability": "view",
|
|
694
456
|
"type": "function"
|
|
695
457
|
},
|
|
696
458
|
{
|
|
459
|
+
"constant": false,
|
|
697
460
|
"inputs": [
|
|
698
461
|
{
|
|
699
|
-
"internalType": "
|
|
700
|
-
"name": "
|
|
701
|
-
"type": "
|
|
462
|
+
"internalType": "uint16[]",
|
|
463
|
+
"name": "uint16s",
|
|
464
|
+
"type": "uint16[]"
|
|
702
465
|
}
|
|
703
466
|
],
|
|
704
|
-
"name": "
|
|
467
|
+
"name": "speedBumpFee",
|
|
705
468
|
"outputs": [],
|
|
469
|
+
"payable": false,
|
|
706
470
|
"stateMutability": "nonpayable",
|
|
707
471
|
"type": "function"
|
|
708
472
|
},
|
|
709
473
|
{
|
|
474
|
+
"constant": true,
|
|
710
475
|
"inputs": [],
|
|
711
|
-
"name": "
|
|
476
|
+
"name": "speedBumpHours",
|
|
712
477
|
"outputs": [
|
|
713
478
|
{
|
|
714
|
-
"internalType": "
|
|
479
|
+
"internalType": "uint16",
|
|
715
480
|
"name": "",
|
|
716
|
-
"type": "
|
|
481
|
+
"type": "uint16"
|
|
717
482
|
}
|
|
718
483
|
],
|
|
484
|
+
"payable": false,
|
|
719
485
|
"stateMutability": "view",
|
|
720
486
|
"type": "function"
|
|
721
487
|
},
|
|
722
488
|
{
|
|
489
|
+
"constant": false,
|
|
723
490
|
"inputs": [
|
|
724
491
|
{
|
|
725
|
-
"internalType": "
|
|
726
|
-
"name": "
|
|
727
|
-
"type": "
|
|
492
|
+
"internalType": "address[]",
|
|
493
|
+
"name": "addresses",
|
|
494
|
+
"type": "address[]"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"internalType": "uint16",
|
|
498
|
+
"name": "newSpeedBumpHours",
|
|
499
|
+
"type": "uint16"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"internalType": "bool",
|
|
503
|
+
"name": "circuitBreaker",
|
|
504
|
+
"type": "bool"
|
|
728
505
|
}
|
|
729
506
|
],
|
|
730
|
-
"name": "
|
|
507
|
+
"name": "speedBumpMain",
|
|
731
508
|
"outputs": [],
|
|
509
|
+
"payable": false,
|
|
732
510
|
"stateMutability": "nonpayable",
|
|
733
511
|
"type": "function"
|
|
734
512
|
},
|
|
735
513
|
{
|
|
514
|
+
"constant": true,
|
|
736
515
|
"inputs": [
|
|
737
516
|
{
|
|
738
|
-
"internalType": "
|
|
739
|
-
"name": "
|
|
740
|
-
"type": "
|
|
517
|
+
"internalType": "uint8",
|
|
518
|
+
"name": "index",
|
|
519
|
+
"type": "uint8"
|
|
741
520
|
}
|
|
742
521
|
],
|
|
743
|
-
"name": "
|
|
744
|
-
"outputs": [
|
|
745
|
-
|
|
522
|
+
"name": "speedBumpNextSBHours",
|
|
523
|
+
"outputs": [
|
|
524
|
+
{
|
|
525
|
+
"internalType": "uint16",
|
|
526
|
+
"name": "",
|
|
527
|
+
"type": "uint16"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"payable": false,
|
|
531
|
+
"stateMutability": "view",
|
|
746
532
|
"type": "function"
|
|
747
533
|
},
|
|
748
534
|
{
|
|
535
|
+
"constant": true,
|
|
749
536
|
"inputs": [
|
|
750
537
|
{
|
|
751
|
-
"internalType": "
|
|
752
|
-
"name": "
|
|
753
|
-
"type": "
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
"type": "address"
|
|
759
|
-
},
|
|
538
|
+
"internalType": "uint8",
|
|
539
|
+
"name": "index",
|
|
540
|
+
"type": "uint8"
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
"name": "speedBumpTimeCreated",
|
|
544
|
+
"outputs": [
|
|
760
545
|
{
|
|
761
546
|
"internalType": "uint256",
|
|
762
|
-
"name": "
|
|
547
|
+
"name": "",
|
|
763
548
|
"type": "uint256"
|
|
764
549
|
}
|
|
765
550
|
],
|
|
766
|
-
"
|
|
767
|
-
"
|
|
768
|
-
"stateMutability": "nonpayable",
|
|
551
|
+
"payable": false,
|
|
552
|
+
"stateMutability": "view",
|
|
769
553
|
"type": "function"
|
|
770
554
|
},
|
|
771
555
|
{
|
|
556
|
+
"constant": true,
|
|
772
557
|
"inputs": [
|
|
773
558
|
{
|
|
774
|
-
"internalType": "
|
|
775
|
-
"name": "
|
|
776
|
-
"type": "
|
|
559
|
+
"internalType": "uint8",
|
|
560
|
+
"name": "index",
|
|
561
|
+
"type": "uint8"
|
|
777
562
|
},
|
|
778
563
|
{
|
|
779
|
-
"internalType": "
|
|
780
|
-
"name": "
|
|
781
|
-
"type": "
|
|
782
|
-
}
|
|
564
|
+
"internalType": "uint8",
|
|
565
|
+
"name": "uint16Index",
|
|
566
|
+
"type": "uint8"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"name": "speedBumpUint16s",
|
|
570
|
+
"outputs": [
|
|
783
571
|
{
|
|
784
|
-
"internalType": "
|
|
785
|
-
"name": "
|
|
786
|
-
"type": "
|
|
572
|
+
"internalType": "uint16",
|
|
573
|
+
"name": "",
|
|
574
|
+
"type": "uint16"
|
|
787
575
|
}
|
|
788
576
|
],
|
|
789
|
-
"
|
|
790
|
-
"
|
|
791
|
-
"stateMutability": "nonpayable",
|
|
577
|
+
"payable": false,
|
|
578
|
+
"stateMutability": "view",
|
|
792
579
|
"type": "function"
|
|
793
580
|
},
|
|
794
581
|
{
|
|
795
|
-
"
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
"type": "address"
|
|
800
|
-
},
|
|
582
|
+
"constant": true,
|
|
583
|
+
"inputs": [],
|
|
584
|
+
"name": "treasuryPenaltyMultipler",
|
|
585
|
+
"outputs": [
|
|
801
586
|
{
|
|
802
|
-
"internalType": "
|
|
803
|
-
"name": "
|
|
804
|
-
"type": "
|
|
587
|
+
"internalType": "uint16",
|
|
588
|
+
"name": "",
|
|
589
|
+
"type": "uint16"
|
|
805
590
|
}
|
|
806
591
|
],
|
|
807
|
-
"
|
|
808
|
-
"
|
|
809
|
-
"stateMutability": "nonpayable",
|
|
592
|
+
"payable": false,
|
|
593
|
+
"stateMutability": "view",
|
|
810
594
|
"type": "function"
|
|
811
595
|
},
|
|
812
596
|
{
|
|
813
|
-
"
|
|
597
|
+
"constant": true,
|
|
598
|
+
"inputs": [],
|
|
599
|
+
"name": "treasurysDeposit",
|
|
600
|
+
"outputs": [
|
|
814
601
|
{
|
|
815
|
-
"internalType": "
|
|
816
|
-
"name": "
|
|
817
|
-
"type": "
|
|
602
|
+
"internalType": "address",
|
|
603
|
+
"name": "",
|
|
604
|
+
"type": "address"
|
|
818
605
|
}
|
|
819
606
|
],
|
|
820
|
-
"
|
|
821
|
-
"
|
|
822
|
-
"stateMutability": "nonpayable",
|
|
607
|
+
"payable": false,
|
|
608
|
+
"stateMutability": "view",
|
|
823
609
|
"type": "function"
|
|
824
610
|
},
|
|
825
611
|
{
|
|
826
|
-
"
|
|
612
|
+
"constant": true,
|
|
613
|
+
"inputs": [],
|
|
614
|
+
"name": "treasurysFactory",
|
|
615
|
+
"outputs": [
|
|
827
616
|
{
|
|
828
|
-
"internalType": "
|
|
829
|
-
"name": "
|
|
830
|
-
"type": "
|
|
617
|
+
"internalType": "address",
|
|
618
|
+
"name": "",
|
|
619
|
+
"type": "address"
|
|
831
620
|
}
|
|
832
621
|
],
|
|
833
|
-
"
|
|
834
|
-
"
|
|
835
|
-
"stateMutability": "nonpayable",
|
|
622
|
+
"payable": false,
|
|
623
|
+
"stateMutability": "view",
|
|
836
624
|
"type": "function"
|
|
837
625
|
},
|
|
838
626
|
{
|
|
627
|
+
"constant": true,
|
|
839
628
|
"inputs": [],
|
|
840
|
-
"name": "
|
|
629
|
+
"name": "treasurysRuleList",
|
|
841
630
|
"outputs": [
|
|
842
631
|
{
|
|
843
|
-
"internalType": "
|
|
632
|
+
"internalType": "address",
|
|
844
633
|
"name": "",
|
|
845
634
|
"type": "address"
|
|
846
635
|
}
|
|
847
636
|
],
|
|
637
|
+
"payable": false,
|
|
848
638
|
"stateMutability": "view",
|
|
849
639
|
"type": "function"
|
|
850
640
|
},
|
|
851
641
|
{
|
|
852
|
-
"
|
|
853
|
-
{
|
|
854
|
-
"internalType": "uint256[]",
|
|
855
|
-
"name": "ids",
|
|
856
|
-
"type": "uint256[]"
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
"internalType": "uint256",
|
|
860
|
-
"name": "minTokensOut",
|
|
861
|
-
"type": "uint256"
|
|
862
|
-
}
|
|
863
|
-
],
|
|
864
|
-
"name": "harvestFeesAndBurn",
|
|
865
|
-
"outputs": [
|
|
866
|
-
{
|
|
867
|
-
"internalType": "uint256",
|
|
868
|
-
"name": "harvested",
|
|
869
|
-
"type": "uint256"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
"internalType": "uint256",
|
|
873
|
-
"name": "tokensBurned",
|
|
874
|
-
"type": "uint256"
|
|
875
|
-
}
|
|
876
|
-
],
|
|
877
|
-
"stateMutability": "nonpayable",
|
|
878
|
-
"type": "function"
|
|
879
|
-
},
|
|
880
|
-
{
|
|
642
|
+
"constant": false,
|
|
881
643
|
"inputs": [],
|
|
882
|
-
"name": "
|
|
883
|
-
"outputs": [
|
|
884
|
-
{
|
|
885
|
-
"internalType": "contract IHooks",
|
|
886
|
-
"name": "",
|
|
887
|
-
"type": "address"
|
|
888
|
-
}
|
|
889
|
-
],
|
|
890
|
-
"stateMutability": "view",
|
|
891
|
-
"type": "function"
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
"inputs": [
|
|
895
|
-
{
|
|
896
|
-
"internalType": "address",
|
|
897
|
-
"name": "collection",
|
|
898
|
-
"type": "address"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
"internalType": "uint256",
|
|
902
|
-
"name": "tokenId",
|
|
903
|
-
"type": "uint256"
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
"internalType": "uint256",
|
|
907
|
-
"name": "backingWei",
|
|
908
|
-
"type": "uint256"
|
|
909
|
-
}
|
|
910
|
-
],
|
|
911
|
-
"name": "listOnFwa",
|
|
912
|
-
"outputs": [
|
|
913
|
-
{
|
|
914
|
-
"internalType": "uint256",
|
|
915
|
-
"name": "listingId",
|
|
916
|
-
"type": "uint256"
|
|
917
|
-
}
|
|
918
|
-
],
|
|
919
|
-
"stateMutability": "nonpayable",
|
|
920
|
-
"type": "function"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"inputs": [],
|
|
924
|
-
"name": "listingCount",
|
|
925
|
-
"outputs": [
|
|
926
|
-
{
|
|
927
|
-
"internalType": "uint256",
|
|
928
|
-
"name": "",
|
|
929
|
-
"type": "uint256"
|
|
930
|
-
}
|
|
931
|
-
],
|
|
932
|
-
"stateMutability": "view",
|
|
933
|
-
"type": "function"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
"inputs": [
|
|
937
|
-
{
|
|
938
|
-
"internalType": "uint256",
|
|
939
|
-
"name": "",
|
|
940
|
-
"type": "uint256"
|
|
941
|
-
}
|
|
942
|
-
],
|
|
943
|
-
"name": "listingIds",
|
|
944
|
-
"outputs": [
|
|
945
|
-
{
|
|
946
|
-
"internalType": "uint256",
|
|
947
|
-
"name": "",
|
|
948
|
-
"type": "uint256"
|
|
949
|
-
}
|
|
950
|
-
],
|
|
951
|
-
"stateMutability": "view",
|
|
952
|
-
"type": "function"
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
"inputs": [],
|
|
956
|
-
"name": "maxBackingWei",
|
|
957
|
-
"outputs": [
|
|
958
|
-
{
|
|
959
|
-
"internalType": "uint256",
|
|
960
|
-
"name": "",
|
|
961
|
-
"type": "uint256"
|
|
962
|
-
}
|
|
963
|
-
],
|
|
964
|
-
"stateMutability": "view",
|
|
965
|
-
"type": "function"
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
"inputs": [],
|
|
969
|
-
"name": "maxNftPriceWei",
|
|
970
|
-
"outputs": [
|
|
971
|
-
{
|
|
972
|
-
"internalType": "uint256",
|
|
973
|
-
"name": "",
|
|
974
|
-
"type": "uint256"
|
|
975
|
-
}
|
|
976
|
-
],
|
|
977
|
-
"stateMutability": "view",
|
|
978
|
-
"type": "function"
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
"inputs": [],
|
|
982
|
-
"name": "maxOperatorFundPerDay",
|
|
983
|
-
"outputs": [
|
|
984
|
-
{
|
|
985
|
-
"internalType": "uint256",
|
|
986
|
-
"name": "",
|
|
987
|
-
"type": "uint256"
|
|
988
|
-
}
|
|
989
|
-
],
|
|
990
|
-
"stateMutability": "view",
|
|
991
|
-
"type": "function"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
"inputs": [],
|
|
995
|
-
"name": "maxOperatorFundPerTx",
|
|
996
|
-
"outputs": [
|
|
997
|
-
{
|
|
998
|
-
"internalType": "uint256",
|
|
999
|
-
"name": "",
|
|
1000
|
-
"type": "uint256"
|
|
1001
|
-
}
|
|
1002
|
-
],
|
|
1003
|
-
"stateMutability": "view",
|
|
1004
|
-
"type": "function"
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
"inputs": [
|
|
1008
|
-
{
|
|
1009
|
-
"internalType": "address",
|
|
1010
|
-
"name": "",
|
|
1011
|
-
"type": "address"
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
"internalType": "address",
|
|
1015
|
-
"name": "",
|
|
1016
|
-
"type": "address"
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
"internalType": "uint256",
|
|
1020
|
-
"name": "",
|
|
1021
|
-
"type": "uint256"
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"internalType": "bytes",
|
|
1025
|
-
"name": "",
|
|
1026
|
-
"type": "bytes"
|
|
1027
|
-
}
|
|
1028
|
-
],
|
|
1029
|
-
"name": "onERC721Received",
|
|
1030
|
-
"outputs": [
|
|
1031
|
-
{
|
|
1032
|
-
"internalType": "bytes4",
|
|
1033
|
-
"name": "",
|
|
1034
|
-
"type": "bytes4"
|
|
1035
|
-
}
|
|
1036
|
-
],
|
|
1037
|
-
"stateMutability": "nonpayable",
|
|
1038
|
-
"type": "function"
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"inputs": [],
|
|
1042
|
-
"name": "operator",
|
|
1043
|
-
"outputs": [
|
|
1044
|
-
{
|
|
1045
|
-
"internalType": "address",
|
|
1046
|
-
"name": "",
|
|
1047
|
-
"type": "address"
|
|
1048
|
-
}
|
|
1049
|
-
],
|
|
1050
|
-
"stateMutability": "view",
|
|
1051
|
-
"type": "function"
|
|
1052
|
-
},
|
|
1053
|
-
{
|
|
1054
|
-
"inputs": [],
|
|
1055
|
-
"name": "operatorFundedToday",
|
|
1056
|
-
"outputs": [
|
|
1057
|
-
{
|
|
1058
|
-
"internalType": "uint256",
|
|
1059
|
-
"name": "",
|
|
1060
|
-
"type": "uint256"
|
|
1061
|
-
}
|
|
1062
|
-
],
|
|
1063
|
-
"stateMutability": "view",
|
|
1064
|
-
"type": "function"
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
"inputs": [],
|
|
1068
|
-
"name": "owner",
|
|
1069
|
-
"outputs": [
|
|
1070
|
-
{
|
|
1071
|
-
"internalType": "address",
|
|
1072
|
-
"name": "",
|
|
1073
|
-
"type": "address"
|
|
1074
|
-
}
|
|
1075
|
-
],
|
|
1076
|
-
"stateMutability": "view",
|
|
1077
|
-
"type": "function"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
"inputs": [],
|
|
1081
|
-
"name": "pause",
|
|
644
|
+
"name": "updateTreasuryContracts",
|
|
1082
645
|
"outputs": [],
|
|
646
|
+
"payable": false,
|
|
1083
647
|
"stateMutability": "nonpayable",
|
|
1084
648
|
"type": "function"
|
|
1085
649
|
},
|
|
1086
650
|
{
|
|
651
|
+
"constant": false,
|
|
1087
652
|
"inputs": [],
|
|
1088
|
-
"name": "
|
|
1089
|
-
"outputs": [
|
|
1090
|
-
{
|
|
1091
|
-
"internalType": "bool",
|
|
1092
|
-
"name": "",
|
|
1093
|
-
"type": "bool"
|
|
1094
|
-
}
|
|
1095
|
-
],
|
|
1096
|
-
"stateMutability": "view",
|
|
1097
|
-
"type": "function"
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
"inputs": [],
|
|
1101
|
-
"name": "pendingOwner",
|
|
1102
|
-
"outputs": [
|
|
1103
|
-
{
|
|
1104
|
-
"internalType": "address",
|
|
1105
|
-
"name": "",
|
|
1106
|
-
"type": "address"
|
|
1107
|
-
}
|
|
1108
|
-
],
|
|
1109
|
-
"stateMutability": "view",
|
|
1110
|
-
"type": "function"
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
"inputs": [],
|
|
1114
|
-
"name": "poolManager",
|
|
1115
|
-
"outputs": [
|
|
1116
|
-
{
|
|
1117
|
-
"internalType": "contract IPoolManager",
|
|
1118
|
-
"name": "",
|
|
1119
|
-
"type": "address"
|
|
1120
|
-
}
|
|
1121
|
-
],
|
|
1122
|
-
"stateMutability": "view",
|
|
1123
|
-
"type": "function"
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
"inputs": [
|
|
1127
|
-
{
|
|
1128
|
-
"internalType": "uint256",
|
|
1129
|
-
"name": "listingId",
|
|
1130
|
-
"type": "uint256"
|
|
1131
|
-
}
|
|
1132
|
-
],
|
|
1133
|
-
"name": "recoverStuckNFT",
|
|
1134
|
-
"outputs": [],
|
|
1135
|
-
"stateMutability": "nonpayable",
|
|
1136
|
-
"type": "function"
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
"inputs": [],
|
|
1140
|
-
"name": "renounceOwnership",
|
|
1141
|
-
"outputs": [],
|
|
1142
|
-
"stateMutability": "nonpayable",
|
|
1143
|
-
"type": "function"
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
"inputs": [],
|
|
1147
|
-
"name": "returnFunds",
|
|
1148
|
-
"outputs": [],
|
|
1149
|
-
"stateMutability": "payable",
|
|
1150
|
-
"type": "function"
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
"inputs": [],
|
|
1154
|
-
"name": "seaport",
|
|
1155
|
-
"outputs": [
|
|
1156
|
-
{
|
|
1157
|
-
"internalType": "address",
|
|
1158
|
-
"name": "",
|
|
1159
|
-
"type": "address"
|
|
1160
|
-
}
|
|
1161
|
-
],
|
|
1162
|
-
"stateMutability": "view",
|
|
1163
|
-
"type": "function"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"inputs": [
|
|
1167
|
-
{
|
|
1168
|
-
"internalType": "uint256",
|
|
1169
|
-
"name": "bps",
|
|
1170
|
-
"type": "uint256"
|
|
1171
|
-
}
|
|
1172
|
-
],
|
|
1173
|
-
"name": "setBuybackSlippageBps",
|
|
1174
|
-
"outputs": [],
|
|
1175
|
-
"stateMutability": "nonpayable",
|
|
1176
|
-
"type": "function"
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
"inputs": [
|
|
1180
|
-
{
|
|
1181
|
-
"internalType": "uint256",
|
|
1182
|
-
"name": "_maxBackingWei",
|
|
1183
|
-
"type": "uint256"
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
"internalType": "uint256",
|
|
1187
|
-
"name": "_maxNftPriceWei",
|
|
1188
|
-
"type": "uint256"
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"internalType": "uint256",
|
|
1192
|
-
"name": "_maxPerTx",
|
|
1193
|
-
"type": "uint256"
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"internalType": "uint256",
|
|
1197
|
-
"name": "_maxPerDay",
|
|
1198
|
-
"type": "uint256"
|
|
1199
|
-
}
|
|
1200
|
-
],
|
|
1201
|
-
"name": "setLimits",
|
|
1202
|
-
"outputs": [],
|
|
1203
|
-
"stateMutability": "nonpayable",
|
|
1204
|
-
"type": "function"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
"inputs": [
|
|
1208
|
-
{
|
|
1209
|
-
"internalType": "address",
|
|
1210
|
-
"name": "_operator",
|
|
1211
|
-
"type": "address"
|
|
1212
|
-
}
|
|
1213
|
-
],
|
|
1214
|
-
"name": "setOperator",
|
|
1215
|
-
"outputs": [],
|
|
1216
|
-
"stateMutability": "nonpayable",
|
|
1217
|
-
"type": "function"
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
"inputs": [],
|
|
1221
|
-
"name": "token",
|
|
1222
|
-
"outputs": [
|
|
1223
|
-
{
|
|
1224
|
-
"internalType": "address",
|
|
1225
|
-
"name": "",
|
|
1226
|
-
"type": "address"
|
|
1227
|
-
}
|
|
1228
|
-
],
|
|
1229
|
-
"stateMutability": "view",
|
|
1230
|
-
"type": "function"
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
"inputs": [
|
|
1234
|
-
{
|
|
1235
|
-
"internalType": "address",
|
|
1236
|
-
"name": "newOwner",
|
|
1237
|
-
"type": "address"
|
|
1238
|
-
}
|
|
1239
|
-
],
|
|
1240
|
-
"name": "transferOwnership",
|
|
653
|
+
"name": "updateTreasuryFeeVariables",
|
|
1241
654
|
"outputs": [],
|
|
655
|
+
"payable": false,
|
|
1242
656
|
"stateMutability": "nonpayable",
|
|
1243
657
|
"type": "function"
|
|
1244
658
|
},
|
|
1245
659
|
{
|
|
1246
|
-
"
|
|
1247
|
-
{
|
|
1248
|
-
"internalType": "bytes",
|
|
1249
|
-
"name": "data",
|
|
1250
|
-
"type": "bytes"
|
|
1251
|
-
}
|
|
1252
|
-
],
|
|
1253
|
-
"name": "unlockCallback",
|
|
1254
|
-
"outputs": [
|
|
1255
|
-
{
|
|
1256
|
-
"internalType": "bytes",
|
|
1257
|
-
"name": "",
|
|
1258
|
-
"type": "bytes"
|
|
1259
|
-
}
|
|
1260
|
-
],
|
|
1261
|
-
"stateMutability": "nonpayable",
|
|
1262
|
-
"type": "function"
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
660
|
+
"constant": false,
|
|
1265
661
|
"inputs": [],
|
|
1266
|
-
"name": "
|
|
1267
|
-
"outputs": [],
|
|
1268
|
-
"stateMutability": "nonpayable",
|
|
1269
|
-
"type": "function"
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"inputs": [
|
|
1273
|
-
{
|
|
1274
|
-
"internalType": "uint256",
|
|
1275
|
-
"name": "listingId",
|
|
1276
|
-
"type": "uint256"
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
"internalType": "uint256",
|
|
1280
|
-
"name": "newBacking",
|
|
1281
|
-
"type": "uint256"
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
"internalType": "uint256",
|
|
1285
|
-
"name": "extraWei",
|
|
1286
|
-
"type": "uint256"
|
|
1287
|
-
}
|
|
1288
|
-
],
|
|
1289
|
-
"name": "updateBacking",
|
|
662
|
+
"name": "updateTreasuryMainVariables",
|
|
1290
663
|
"outputs": [],
|
|
664
|
+
"payable": false,
|
|
1291
665
|
"stateMutability": "nonpayable",
|
|
1292
666
|
"type": "function"
|
|
1293
|
-
},
|
|
1294
|
-
{
|
|
1295
|
-
"inputs": [
|
|
1296
|
-
{
|
|
1297
|
-
"internalType": "uint256",
|
|
1298
|
-
"name": "listingId",
|
|
1299
|
-
"type": "uint256"
|
|
1300
|
-
}
|
|
1301
|
-
],
|
|
1302
|
-
"name": "withdrawListing",
|
|
1303
|
-
"outputs": [],
|
|
1304
|
-
"stateMutability": "nonpayable",
|
|
1305
|
-
"type": "function"
|
|
1306
|
-
},
|
|
1307
|
-
{
|
|
1308
|
-
"stateMutability": "payable",
|
|
1309
|
-
"type": "receive"
|
|
1310
667
|
}
|
|
1311
668
|
];
|
|
1312
669
|
/**
|
|
@@ -1347,722 +704,375 @@ class Treasury_json {
|
|
|
1347
704
|
this.publicClient = clients.publicClient;
|
|
1348
705
|
this.contract = (0, viem_1.getContract)({
|
|
1349
706
|
address,
|
|
1350
|
-
abi: exports.Treasury_jsonAbi,
|
|
1351
|
-
client: {
|
|
1352
|
-
public: clients.publicClient,
|
|
1353
|
-
wallet: clients.walletClient,
|
|
1354
|
-
},
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
/**
|
|
1358
|
-
* Get the contract address
|
|
1359
|
-
*/
|
|
1360
|
-
get address() {
|
|
1361
|
-
return this.contractAddress;
|
|
1362
|
-
}
|
|
1363
|
-
/**
|
|
1364
|
-
* Get the underlying viem contract instance
|
|
1365
|
-
*/
|
|
1366
|
-
getContract() {
|
|
1367
|
-
return this.contract;
|
|
1368
|
-
}
|
|
1369
|
-
/**
|
|
1370
|
-
* MAX_BUYBACK_SLIPPAGE_BPS
|
|
1371
|
-
* view
|
|
1372
|
-
*/
|
|
1373
|
-
async MAX_BUYBACK_SLIPPAGE_BPS() {
|
|
1374
|
-
return this.contract.read.MAX_BUYBACK_SLIPPAGE_BPS();
|
|
1375
|
-
}
|
|
1376
|
-
/**
|
|
1377
|
-
* buybackSlippageBps
|
|
1378
|
-
* view
|
|
1379
|
-
*/
|
|
1380
|
-
async buybackSlippageBps() {
|
|
1381
|
-
return this.contract.read.buybackSlippageBps();
|
|
1382
|
-
}
|
|
1383
|
-
/**
|
|
1384
|
-
* currentDay
|
|
1385
|
-
* view
|
|
1386
|
-
*/
|
|
1387
|
-
async currentDay() {
|
|
1388
|
-
return this.contract.read.currentDay();
|
|
1389
|
-
}
|
|
1390
|
-
/**
|
|
1391
|
-
* fwa
|
|
1392
|
-
* view
|
|
1393
|
-
*/
|
|
1394
|
-
async fwa() {
|
|
1395
|
-
return this.contract.read.fwa();
|
|
1396
|
-
}
|
|
1397
|
-
/**
|
|
1398
|
-
* hook
|
|
1399
|
-
* view
|
|
1400
|
-
*/
|
|
1401
|
-
async hook() {
|
|
1402
|
-
return this.contract.read.hook();
|
|
1403
|
-
}
|
|
1404
|
-
/**
|
|
1405
|
-
* listingCount
|
|
1406
|
-
* view
|
|
1407
|
-
*/
|
|
1408
|
-
async listingCount() {
|
|
1409
|
-
return this.contract.read.listingCount();
|
|
1410
|
-
}
|
|
1411
|
-
/**
|
|
1412
|
-
* listingIds
|
|
1413
|
-
* view
|
|
1414
|
-
*/
|
|
1415
|
-
async listingIds(arg0) {
|
|
1416
|
-
return this.contract.read.listingIds([arg0]);
|
|
1417
|
-
}
|
|
1418
|
-
/**
|
|
1419
|
-
* maxBackingWei
|
|
1420
|
-
* view
|
|
1421
|
-
*/
|
|
1422
|
-
async maxBackingWei() {
|
|
1423
|
-
return this.contract.read.maxBackingWei();
|
|
1424
|
-
}
|
|
1425
|
-
/**
|
|
1426
|
-
* maxNftPriceWei
|
|
1427
|
-
* view
|
|
1428
|
-
*/
|
|
1429
|
-
async maxNftPriceWei() {
|
|
1430
|
-
return this.contract.read.maxNftPriceWei();
|
|
1431
|
-
}
|
|
1432
|
-
/**
|
|
1433
|
-
* maxOperatorFundPerDay
|
|
1434
|
-
* view
|
|
1435
|
-
*/
|
|
1436
|
-
async maxOperatorFundPerDay() {
|
|
1437
|
-
return this.contract.read.maxOperatorFundPerDay();
|
|
1438
|
-
}
|
|
1439
|
-
/**
|
|
1440
|
-
* maxOperatorFundPerTx
|
|
1441
|
-
* view
|
|
1442
|
-
*/
|
|
1443
|
-
async maxOperatorFundPerTx() {
|
|
1444
|
-
return this.contract.read.maxOperatorFundPerTx();
|
|
1445
|
-
}
|
|
1446
|
-
/**
|
|
1447
|
-
* operator
|
|
1448
|
-
* view
|
|
1449
|
-
*/
|
|
1450
|
-
async operator() {
|
|
1451
|
-
return this.contract.read.operator();
|
|
1452
|
-
}
|
|
1453
|
-
/**
|
|
1454
|
-
* operatorFundedToday
|
|
1455
|
-
* view
|
|
1456
|
-
*/
|
|
1457
|
-
async operatorFundedToday() {
|
|
1458
|
-
return this.contract.read.operatorFundedToday();
|
|
1459
|
-
}
|
|
1460
|
-
/**
|
|
1461
|
-
* owner
|
|
1462
|
-
* view
|
|
1463
|
-
*/
|
|
1464
|
-
async owner() {
|
|
1465
|
-
return this.contract.read.owner();
|
|
1466
|
-
}
|
|
1467
|
-
/**
|
|
1468
|
-
* paused
|
|
1469
|
-
* view
|
|
1470
|
-
*/
|
|
1471
|
-
async paused() {
|
|
1472
|
-
return this.contract.read.paused();
|
|
1473
|
-
}
|
|
1474
|
-
/**
|
|
1475
|
-
* pendingOwner
|
|
1476
|
-
* view
|
|
1477
|
-
*/
|
|
1478
|
-
async pendingOwner() {
|
|
1479
|
-
return this.contract.read.pendingOwner();
|
|
1480
|
-
}
|
|
1481
|
-
/**
|
|
1482
|
-
* poolManager
|
|
1483
|
-
* view
|
|
1484
|
-
*/
|
|
1485
|
-
async poolManager() {
|
|
1486
|
-
return this.contract.read.poolManager();
|
|
1487
|
-
}
|
|
1488
|
-
/**
|
|
1489
|
-
* seaport
|
|
1490
|
-
* view
|
|
1491
|
-
*/
|
|
1492
|
-
async seaport() {
|
|
1493
|
-
return this.contract.read.seaport();
|
|
1494
|
-
}
|
|
1495
|
-
/**
|
|
1496
|
-
* token
|
|
1497
|
-
* view
|
|
1498
|
-
*/
|
|
1499
|
-
async token() {
|
|
1500
|
-
return this.contract.read.token();
|
|
707
|
+
abi: exports.Treasury_jsonAbi,
|
|
708
|
+
client: {
|
|
709
|
+
public: clients.publicClient,
|
|
710
|
+
wallet: clients.walletClient,
|
|
711
|
+
},
|
|
712
|
+
});
|
|
1501
713
|
}
|
|
1502
714
|
/**
|
|
1503
|
-
*
|
|
1504
|
-
* nonpayable
|
|
1505
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
715
|
+
* Get the contract address
|
|
1506
716
|
*/
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
throw new Error('Wallet client is required for write operations');
|
|
1510
|
-
}
|
|
1511
|
-
return this.contract.write.acceptOwnership(options);
|
|
717
|
+
get address() {
|
|
718
|
+
return this.contractAddress;
|
|
1512
719
|
}
|
|
1513
720
|
/**
|
|
1514
|
-
*
|
|
1515
|
-
* nonpayable
|
|
1516
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
721
|
+
* Get the underlying viem contract instance
|
|
1517
722
|
*/
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
throw new Error('Wallet client is required for write operations');
|
|
1521
|
-
}
|
|
1522
|
-
return this.contract.write.activateFwaListings([maxCount], options);
|
|
723
|
+
getContract() {
|
|
724
|
+
return this.contract;
|
|
1523
725
|
}
|
|
1524
726
|
/**
|
|
1525
|
-
*
|
|
1526
|
-
*
|
|
1527
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
727
|
+
* QNTAddress
|
|
728
|
+
* view
|
|
1528
729
|
*/
|
|
1529
|
-
async
|
|
1530
|
-
|
|
1531
|
-
throw new Error('Wallet client is required for write operations');
|
|
1532
|
-
}
|
|
1533
|
-
return this.contract.write.buyAndList([seaportCalldata, priceWei, collection, tokenId, backingWei], options);
|
|
730
|
+
async QNTAddress() {
|
|
731
|
+
return this.contract.read.QNTAddress();
|
|
1534
732
|
}
|
|
1535
733
|
/**
|
|
1536
|
-
*
|
|
1537
|
-
*
|
|
1538
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
734
|
+
* admin
|
|
735
|
+
* view
|
|
1539
736
|
*/
|
|
1540
|
-
async
|
|
1541
|
-
|
|
1542
|
-
throw new Error('Wallet client is required for write operations');
|
|
1543
|
-
}
|
|
1544
|
-
return this.contract.write.buybackAndBurn([ethAmount, minTokensOut], options);
|
|
737
|
+
async admin() {
|
|
738
|
+
return this.contract.read.admin();
|
|
1545
739
|
}
|
|
1546
740
|
/**
|
|
1547
|
-
*
|
|
1548
|
-
*
|
|
1549
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
741
|
+
* circuitBreakerOn
|
|
742
|
+
* view
|
|
1550
743
|
*/
|
|
1551
|
-
async
|
|
1552
|
-
|
|
1553
|
-
throw new Error('Wallet client is required for write operations');
|
|
1554
|
-
}
|
|
1555
|
-
return this.contract.write.claimFees([ids], options);
|
|
744
|
+
async circuitBreakerOn() {
|
|
745
|
+
return this.contract.read.circuitBreakerOn();
|
|
1556
746
|
}
|
|
1557
747
|
/**
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
1560
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
748
|
+
* commissionDivider
|
|
749
|
+
* view
|
|
1561
750
|
*/
|
|
1562
|
-
async
|
|
1563
|
-
|
|
1564
|
-
throw new Error('Wallet client is required for write operations');
|
|
1565
|
-
}
|
|
1566
|
-
return this.contract.write.claimRewards([ids], options);
|
|
751
|
+
async commissionDivider() {
|
|
752
|
+
return this.contract.read.commissionDivider();
|
|
1567
753
|
}
|
|
1568
754
|
/**
|
|
1569
|
-
*
|
|
1570
|
-
*
|
|
1571
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
755
|
+
* gatewayPenaltyMultipler
|
|
756
|
+
* view
|
|
1572
757
|
*/
|
|
1573
|
-
async
|
|
1574
|
-
|
|
1575
|
-
throw new Error('Wallet client is required for write operations');
|
|
1576
|
-
}
|
|
1577
|
-
return this.contract.write.claimTopSpot([listingId], options);
|
|
758
|
+
async gatewayPenaltyMultipler() {
|
|
759
|
+
return this.contract.read.gatewayPenaltyMultipler();
|
|
1578
760
|
}
|
|
1579
761
|
/**
|
|
1580
|
-
*
|
|
1581
|
-
*
|
|
1582
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
762
|
+
* implementation
|
|
763
|
+
* view
|
|
1583
764
|
*/
|
|
1584
|
-
async
|
|
1585
|
-
|
|
1586
|
-
throw new Error('Wallet client is required for write operations');
|
|
1587
|
-
}
|
|
1588
|
-
return this.contract.write.depositorReclaimBacking([listingId], options);
|
|
765
|
+
async implementation() {
|
|
766
|
+
return this.contract.read.implementation();
|
|
1589
767
|
}
|
|
1590
768
|
/**
|
|
1591
|
-
*
|
|
1592
|
-
*
|
|
1593
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
769
|
+
* initialized
|
|
770
|
+
* view
|
|
1594
771
|
*/
|
|
1595
|
-
async
|
|
1596
|
-
|
|
1597
|
-
throw new Error('Wallet client is required for write operations');
|
|
1598
|
-
}
|
|
1599
|
-
return this.contract.write.depositorReclaimNFT([listingId], options);
|
|
772
|
+
async initialized() {
|
|
773
|
+
return this.contract.read.initialized();
|
|
1600
774
|
}
|
|
1601
775
|
/**
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
|
+
* mappDisputeFeeMultipler
|
|
777
|
+
* view
|
|
1605
778
|
*/
|
|
1606
|
-
async
|
|
1607
|
-
|
|
1608
|
-
throw new Error('Wallet client is required for write operations');
|
|
1609
|
-
}
|
|
1610
|
-
return this.contract.write.emergencyWithdrawERC20([token_, to, amount], options);
|
|
779
|
+
async mappDisputeFeeMultipler() {
|
|
780
|
+
return this.contract.read.mappDisputeFeeMultipler();
|
|
1611
781
|
}
|
|
1612
782
|
/**
|
|
1613
|
-
*
|
|
1614
|
-
*
|
|
1615
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
783
|
+
* operatorAddress
|
|
784
|
+
* view
|
|
1616
785
|
*/
|
|
1617
|
-
async
|
|
1618
|
-
|
|
1619
|
-
throw new Error('Wallet client is required for write operations');
|
|
1620
|
-
}
|
|
1621
|
-
return this.contract.write.emergencyWithdrawERC721([collection, to, tokenId], options);
|
|
786
|
+
async operatorAddress() {
|
|
787
|
+
return this.contract.read.operatorAddress();
|
|
1622
788
|
}
|
|
1623
789
|
/**
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
790
|
+
* readFunctionPenaltyMultipler
|
|
791
|
+
* view
|
|
1627
792
|
*/
|
|
1628
|
-
async
|
|
1629
|
-
|
|
1630
|
-
throw new Error('Wallet client is required for write operations');
|
|
1631
|
-
}
|
|
1632
|
-
return this.contract.write.emergencyWithdrawETH([to, amount], options);
|
|
793
|
+
async readFunctionPenaltyMultipler(gateway) {
|
|
794
|
+
return this.contract.read.readFunctionPenaltyMultipler([gateway]);
|
|
1633
795
|
}
|
|
1634
796
|
/**
|
|
1635
|
-
*
|
|
1636
|
-
*
|
|
1637
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
797
|
+
* speedBumpAddresses
|
|
798
|
+
* view
|
|
1638
799
|
*/
|
|
1639
|
-
async
|
|
1640
|
-
|
|
1641
|
-
throw new Error('Wallet client is required for write operations');
|
|
1642
|
-
}
|
|
1643
|
-
return this.contract.write.finalizeUnsettled([listingId], options);
|
|
800
|
+
async speedBumpAddresses(index, addressIndex) {
|
|
801
|
+
return this.contract.read.speedBumpAddresses([index, addressIndex]);
|
|
1644
802
|
}
|
|
1645
803
|
/**
|
|
1646
|
-
*
|
|
1647
|
-
*
|
|
1648
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
804
|
+
* speedBumpCircuitBreaker
|
|
805
|
+
* view
|
|
1649
806
|
*/
|
|
1650
|
-
async
|
|
1651
|
-
|
|
1652
|
-
throw new Error('Wallet client is required for write operations');
|
|
1653
|
-
}
|
|
1654
|
-
return this.contract.write.fundOperator([amount], options);
|
|
807
|
+
async speedBumpCircuitBreaker(index) {
|
|
808
|
+
return this.contract.read.speedBumpCircuitBreaker([index]);
|
|
1655
809
|
}
|
|
1656
810
|
/**
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1659
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
811
|
+
* speedBumpCurrentSBHours
|
|
812
|
+
* view
|
|
1660
813
|
*/
|
|
1661
|
-
async
|
|
1662
|
-
|
|
1663
|
-
throw new Error('Wallet client is required for write operations');
|
|
1664
|
-
}
|
|
1665
|
-
return this.contract.write.harvestFeesAndBurn([ids, minTokensOut], options);
|
|
814
|
+
async speedBumpCurrentSBHours(index) {
|
|
815
|
+
return this.contract.read.speedBumpCurrentSBHours([index]);
|
|
1666
816
|
}
|
|
1667
817
|
/**
|
|
1668
|
-
*
|
|
1669
|
-
*
|
|
1670
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
818
|
+
* speedBumpHours
|
|
819
|
+
* view
|
|
1671
820
|
*/
|
|
1672
|
-
async
|
|
1673
|
-
|
|
1674
|
-
throw new Error('Wallet client is required for write operations');
|
|
1675
|
-
}
|
|
1676
|
-
return this.contract.write.listOnFwa([collection, tokenId, backingWei], options);
|
|
821
|
+
async speedBumpHours() {
|
|
822
|
+
return this.contract.read.speedBumpHours();
|
|
1677
823
|
}
|
|
1678
824
|
/**
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
825
|
+
* speedBumpNextSBHours
|
|
826
|
+
* view
|
|
1682
827
|
*/
|
|
1683
|
-
async
|
|
1684
|
-
|
|
1685
|
-
throw new Error('Wallet client is required for write operations');
|
|
1686
|
-
}
|
|
1687
|
-
return this.contract.write.onERC721Received([arg0, arg1, arg2, arg3], options);
|
|
828
|
+
async speedBumpNextSBHours(index) {
|
|
829
|
+
return this.contract.read.speedBumpNextSBHours([index]);
|
|
1688
830
|
}
|
|
1689
831
|
/**
|
|
1690
|
-
*
|
|
1691
|
-
*
|
|
1692
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
832
|
+
* speedBumpTimeCreated
|
|
833
|
+
* view
|
|
1693
834
|
*/
|
|
1694
|
-
async
|
|
1695
|
-
|
|
1696
|
-
throw new Error('Wallet client is required for write operations');
|
|
1697
|
-
}
|
|
1698
|
-
return this.contract.write.pause(options);
|
|
835
|
+
async speedBumpTimeCreated(index) {
|
|
836
|
+
return this.contract.read.speedBumpTimeCreated([index]);
|
|
1699
837
|
}
|
|
1700
838
|
/**
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1703
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
839
|
+
* speedBumpUint16s
|
|
840
|
+
* view
|
|
1704
841
|
*/
|
|
1705
|
-
async
|
|
1706
|
-
|
|
1707
|
-
throw new Error('Wallet client is required for write operations');
|
|
1708
|
-
}
|
|
1709
|
-
return this.contract.write.recoverStuckNFT([listingId], options);
|
|
842
|
+
async speedBumpUint16s(index, uint16Index) {
|
|
843
|
+
return this.contract.read.speedBumpUint16s([index, uint16Index]);
|
|
1710
844
|
}
|
|
1711
845
|
/**
|
|
1712
|
-
*
|
|
1713
|
-
*
|
|
1714
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
846
|
+
* treasuryPenaltyMultipler
|
|
847
|
+
* view
|
|
1715
848
|
*/
|
|
1716
|
-
async
|
|
1717
|
-
|
|
1718
|
-
throw new Error('Wallet client is required for write operations');
|
|
1719
|
-
}
|
|
1720
|
-
return this.contract.write.renounceOwnership(options);
|
|
849
|
+
async treasuryPenaltyMultipler() {
|
|
850
|
+
return this.contract.read.treasuryPenaltyMultipler();
|
|
1721
851
|
}
|
|
1722
852
|
/**
|
|
1723
|
-
*
|
|
1724
|
-
*
|
|
1725
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
853
|
+
* treasurysDeposit
|
|
854
|
+
* view
|
|
1726
855
|
*/
|
|
1727
|
-
async
|
|
1728
|
-
|
|
1729
|
-
throw new Error('Wallet client is required for write operations');
|
|
1730
|
-
}
|
|
1731
|
-
return this.contract.write.returnFunds(options);
|
|
856
|
+
async treasurysDeposit() {
|
|
857
|
+
return this.contract.read.treasurysDeposit();
|
|
1732
858
|
}
|
|
1733
859
|
/**
|
|
1734
|
-
*
|
|
1735
|
-
*
|
|
1736
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
860
|
+
* treasurysFactory
|
|
861
|
+
* view
|
|
1737
862
|
*/
|
|
1738
|
-
async
|
|
1739
|
-
|
|
1740
|
-
throw new Error('Wallet client is required for write operations');
|
|
1741
|
-
}
|
|
1742
|
-
return this.contract.write.setBuybackSlippageBps([bps], options);
|
|
863
|
+
async treasurysFactory() {
|
|
864
|
+
return this.contract.read.treasurysFactory();
|
|
1743
865
|
}
|
|
1744
866
|
/**
|
|
1745
|
-
*
|
|
1746
|
-
*
|
|
1747
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
867
|
+
* treasurysRuleList
|
|
868
|
+
* view
|
|
1748
869
|
*/
|
|
1749
|
-
async
|
|
1750
|
-
|
|
1751
|
-
throw new Error('Wallet client is required for write operations');
|
|
1752
|
-
}
|
|
1753
|
-
return this.contract.write.setLimits([_maxBackingWei, _maxNftPriceWei, _maxPerTx, _maxPerDay], options);
|
|
870
|
+
async treasurysRuleList() {
|
|
871
|
+
return this.contract.read.treasurysRuleList();
|
|
1754
872
|
}
|
|
1755
873
|
/**
|
|
1756
|
-
*
|
|
874
|
+
* changeProxyVariables
|
|
1757
875
|
* nonpayable
|
|
1758
876
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1759
877
|
*/
|
|
1760
|
-
async
|
|
878
|
+
async changeProxyVariables(nextAdmin, nextImplementation, options) {
|
|
1761
879
|
if (!this.contract.write) {
|
|
1762
880
|
throw new Error('Wallet client is required for write operations');
|
|
1763
881
|
}
|
|
1764
|
-
return this.contract.write.
|
|
882
|
+
return this.contract.write.changeProxyVariables([nextAdmin, nextImplementation], options);
|
|
1765
883
|
}
|
|
1766
884
|
/**
|
|
1767
|
-
*
|
|
885
|
+
* initialize
|
|
1768
886
|
* nonpayable
|
|
1769
887
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1770
888
|
*/
|
|
1771
|
-
async
|
|
889
|
+
async initialize(thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime, options) {
|
|
1772
890
|
if (!this.contract.write) {
|
|
1773
891
|
throw new Error('Wallet client is required for write operations');
|
|
1774
892
|
}
|
|
1775
|
-
return this.contract.write.
|
|
893
|
+
return this.contract.write.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime], options);
|
|
1776
894
|
}
|
|
1777
895
|
/**
|
|
1778
|
-
*
|
|
896
|
+
* setAdmin
|
|
1779
897
|
* nonpayable
|
|
1780
898
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1781
899
|
*/
|
|
1782
|
-
async
|
|
900
|
+
async setAdmin(options) {
|
|
1783
901
|
if (!this.contract.write) {
|
|
1784
902
|
throw new Error('Wallet client is required for write operations');
|
|
1785
903
|
}
|
|
1786
|
-
return this.contract.write.
|
|
904
|
+
return this.contract.write.setAdmin(options);
|
|
1787
905
|
}
|
|
1788
906
|
/**
|
|
1789
|
-
*
|
|
907
|
+
* setImplementation
|
|
1790
908
|
* nonpayable
|
|
1791
909
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1792
910
|
*/
|
|
1793
|
-
async
|
|
911
|
+
async setImplementation(options) {
|
|
1794
912
|
if (!this.contract.write) {
|
|
1795
913
|
throw new Error('Wallet client is required for write operations');
|
|
1796
914
|
}
|
|
1797
|
-
return this.contract.write.
|
|
915
|
+
return this.contract.write.setImplementation(options);
|
|
1798
916
|
}
|
|
1799
917
|
/**
|
|
1800
|
-
*
|
|
918
|
+
* speedBumpContract
|
|
1801
919
|
* nonpayable
|
|
1802
920
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1803
921
|
*/
|
|
1804
|
-
async
|
|
922
|
+
async speedBumpContract(addresses, options) {
|
|
1805
923
|
if (!this.contract.write) {
|
|
1806
924
|
throw new Error('Wallet client is required for write operations');
|
|
1807
925
|
}
|
|
1808
|
-
return this.contract.write.
|
|
926
|
+
return this.contract.write.speedBumpContract([addresses], options);
|
|
1809
927
|
}
|
|
1810
928
|
/**
|
|
1811
|
-
*
|
|
929
|
+
* speedBumpFee
|
|
1812
930
|
* nonpayable
|
|
1813
931
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1814
932
|
*/
|
|
1815
|
-
async
|
|
933
|
+
async speedBumpFee(uint16s, options) {
|
|
1816
934
|
if (!this.contract.write) {
|
|
1817
935
|
throw new Error('Wallet client is required for write operations');
|
|
1818
936
|
}
|
|
1819
|
-
return this.contract.write.
|
|
937
|
+
return this.contract.write.speedBumpFee([uint16s], options);
|
|
1820
938
|
}
|
|
1821
|
-
/**
|
|
1822
|
-
*
|
|
1823
|
-
*
|
|
1824
|
-
* @
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
*/
|
|
1880
|
-
async claimRewards(ids, options) {
|
|
1881
|
-
return contract.simulate.claimRewards([ids], options);
|
|
1882
|
-
},
|
|
1883
|
-
/**
|
|
1884
|
-
* Simulate claimTopSpot
|
|
1885
|
-
* Returns gas estimate and result without sending transaction
|
|
1886
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1887
|
-
*/
|
|
1888
|
-
async claimTopSpot(listingId, options) {
|
|
1889
|
-
return contract.simulate.claimTopSpot([listingId], options);
|
|
1890
|
-
},
|
|
1891
|
-
/**
|
|
1892
|
-
* Simulate depositorReclaimBacking
|
|
1893
|
-
* Returns gas estimate and result without sending transaction
|
|
1894
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1895
|
-
*/
|
|
1896
|
-
async depositorReclaimBacking(listingId, options) {
|
|
1897
|
-
return contract.simulate.depositorReclaimBacking([listingId], options);
|
|
1898
|
-
},
|
|
1899
|
-
/**
|
|
1900
|
-
* Simulate depositorReclaimNFT
|
|
1901
|
-
* Returns gas estimate and result without sending transaction
|
|
1902
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1903
|
-
*/
|
|
1904
|
-
async depositorReclaimNFT(listingId, options) {
|
|
1905
|
-
return contract.simulate.depositorReclaimNFT([listingId], options);
|
|
1906
|
-
},
|
|
1907
|
-
/**
|
|
1908
|
-
* Simulate emergencyWithdrawERC20
|
|
1909
|
-
* Returns gas estimate and result without sending transaction
|
|
1910
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1911
|
-
*/
|
|
1912
|
-
async emergencyWithdrawERC20(token_, to, amount, options) {
|
|
1913
|
-
return contract.simulate.emergencyWithdrawERC20([token_, to, amount], options);
|
|
1914
|
-
},
|
|
1915
|
-
/**
|
|
1916
|
-
* Simulate emergencyWithdrawERC721
|
|
1917
|
-
* Returns gas estimate and result without sending transaction
|
|
1918
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1919
|
-
*/
|
|
1920
|
-
async emergencyWithdrawERC721(collection, to, tokenId, options) {
|
|
1921
|
-
return contract.simulate.emergencyWithdrawERC721([collection, to, tokenId], options);
|
|
1922
|
-
},
|
|
1923
|
-
/**
|
|
1924
|
-
* Simulate emergencyWithdrawETH
|
|
1925
|
-
* Returns gas estimate and result without sending transaction
|
|
1926
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1927
|
-
*/
|
|
1928
|
-
async emergencyWithdrawETH(to, amount, options) {
|
|
1929
|
-
return contract.simulate.emergencyWithdrawETH([to, amount], options);
|
|
1930
|
-
},
|
|
1931
|
-
/**
|
|
1932
|
-
* Simulate finalizeUnsettled
|
|
1933
|
-
* Returns gas estimate and result without sending transaction
|
|
1934
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1935
|
-
*/
|
|
1936
|
-
async finalizeUnsettled(listingId, options) {
|
|
1937
|
-
return contract.simulate.finalizeUnsettled([listingId], options);
|
|
1938
|
-
},
|
|
1939
|
-
/**
|
|
1940
|
-
* Simulate fundOperator
|
|
1941
|
-
* Returns gas estimate and result without sending transaction
|
|
1942
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1943
|
-
*/
|
|
1944
|
-
async fundOperator(amount, options) {
|
|
1945
|
-
return contract.simulate.fundOperator([amount], options);
|
|
1946
|
-
},
|
|
1947
|
-
/**
|
|
1948
|
-
* Simulate harvestFeesAndBurn
|
|
1949
|
-
* Returns gas estimate and result without sending transaction
|
|
1950
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1951
|
-
*/
|
|
1952
|
-
async harvestFeesAndBurn(ids, minTokensOut, options) {
|
|
1953
|
-
return contract.simulate.harvestFeesAndBurn([ids, minTokensOut], options);
|
|
1954
|
-
},
|
|
1955
|
-
/**
|
|
1956
|
-
* Simulate listOnFwa
|
|
1957
|
-
* Returns gas estimate and result without sending transaction
|
|
1958
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1959
|
-
*/
|
|
1960
|
-
async listOnFwa(collection, tokenId, backingWei, options) {
|
|
1961
|
-
return contract.simulate.listOnFwa([collection, tokenId, backingWei], options);
|
|
1962
|
-
},
|
|
1963
|
-
/**
|
|
1964
|
-
* Simulate onERC721Received
|
|
1965
|
-
* Returns gas estimate and result without sending transaction
|
|
1966
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1967
|
-
*/
|
|
1968
|
-
async onERC721Received(arg0, arg1, arg2, arg3, options) {
|
|
1969
|
-
return contract.simulate.onERC721Received([arg0, arg1, arg2, arg3], options);
|
|
1970
|
-
},
|
|
1971
|
-
/**
|
|
1972
|
-
* Simulate pause
|
|
1973
|
-
* Returns gas estimate and result without sending transaction
|
|
1974
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1975
|
-
*/
|
|
1976
|
-
async pause(options) {
|
|
1977
|
-
return contract.simulate.pause(options);
|
|
1978
|
-
},
|
|
1979
|
-
/**
|
|
1980
|
-
* Simulate recoverStuckNFT
|
|
1981
|
-
* Returns gas estimate and result without sending transaction
|
|
1982
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1983
|
-
*/
|
|
1984
|
-
async recoverStuckNFT(listingId, options) {
|
|
1985
|
-
return contract.simulate.recoverStuckNFT([listingId], options);
|
|
1986
|
-
},
|
|
939
|
+
/**
|
|
940
|
+
* speedBumpMain
|
|
941
|
+
* nonpayable
|
|
942
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
943
|
+
*/
|
|
944
|
+
async speedBumpMain(addresses, newSpeedBumpHours, circuitBreaker, options) {
|
|
945
|
+
if (!this.contract.write) {
|
|
946
|
+
throw new Error('Wallet client is required for write operations');
|
|
947
|
+
}
|
|
948
|
+
return this.contract.write.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker], options);
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* updateTreasuryContracts
|
|
952
|
+
* nonpayable
|
|
953
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
954
|
+
*/
|
|
955
|
+
async updateTreasuryContracts(options) {
|
|
956
|
+
if (!this.contract.write) {
|
|
957
|
+
throw new Error('Wallet client is required for write operations');
|
|
958
|
+
}
|
|
959
|
+
return this.contract.write.updateTreasuryContracts(options);
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* updateTreasuryFeeVariables
|
|
963
|
+
* nonpayable
|
|
964
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
965
|
+
*/
|
|
966
|
+
async updateTreasuryFeeVariables(options) {
|
|
967
|
+
if (!this.contract.write) {
|
|
968
|
+
throw new Error('Wallet client is required for write operations');
|
|
969
|
+
}
|
|
970
|
+
return this.contract.write.updateTreasuryFeeVariables(options);
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* updateTreasuryMainVariables
|
|
974
|
+
* nonpayable
|
|
975
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
976
|
+
*/
|
|
977
|
+
async updateTreasuryMainVariables(options) {
|
|
978
|
+
if (!this.contract.write) {
|
|
979
|
+
throw new Error('Wallet client is required for write operations');
|
|
980
|
+
}
|
|
981
|
+
return this.contract.write.updateTreasuryMainVariables(options);
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
988
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
989
|
+
* console.log('Would succeed:', result.result);
|
|
990
|
+
*/
|
|
991
|
+
get simulate() {
|
|
992
|
+
const contract = this.contract;
|
|
993
|
+
if (!contract.simulate) {
|
|
994
|
+
throw new Error('Public client is required for simulation');
|
|
995
|
+
}
|
|
996
|
+
return {
|
|
1987
997
|
/**
|
|
1988
|
-
* Simulate
|
|
998
|
+
* Simulate changeProxyVariables
|
|
1989
999
|
* Returns gas estimate and result without sending transaction
|
|
1990
1000
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1991
1001
|
*/
|
|
1992
|
-
async
|
|
1993
|
-
return contract.simulate.
|
|
1002
|
+
async changeProxyVariables(nextAdmin, nextImplementation, options) {
|
|
1003
|
+
return contract.simulate.changeProxyVariables([nextAdmin, nextImplementation], options);
|
|
1994
1004
|
},
|
|
1995
1005
|
/**
|
|
1996
|
-
* Simulate
|
|
1006
|
+
* Simulate initialize
|
|
1997
1007
|
* Returns gas estimate and result without sending transaction
|
|
1998
1008
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1999
1009
|
*/
|
|
2000
|
-
async
|
|
2001
|
-
return contract.simulate.
|
|
1010
|
+
async initialize(thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime, options) {
|
|
1011
|
+
return contract.simulate.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime], options);
|
|
2002
1012
|
},
|
|
2003
1013
|
/**
|
|
2004
|
-
* Simulate
|
|
1014
|
+
* Simulate setAdmin
|
|
2005
1015
|
* Returns gas estimate and result without sending transaction
|
|
2006
1016
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2007
1017
|
*/
|
|
2008
|
-
async
|
|
2009
|
-
return contract.simulate.
|
|
1018
|
+
async setAdmin(options) {
|
|
1019
|
+
return contract.simulate.setAdmin(options);
|
|
2010
1020
|
},
|
|
2011
1021
|
/**
|
|
2012
|
-
* Simulate
|
|
1022
|
+
* Simulate setImplementation
|
|
2013
1023
|
* Returns gas estimate and result without sending transaction
|
|
2014
1024
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2015
1025
|
*/
|
|
2016
|
-
async
|
|
2017
|
-
return contract.simulate.
|
|
1026
|
+
async setImplementation(options) {
|
|
1027
|
+
return contract.simulate.setImplementation(options);
|
|
2018
1028
|
},
|
|
2019
1029
|
/**
|
|
2020
|
-
* Simulate
|
|
1030
|
+
* Simulate speedBumpContract
|
|
2021
1031
|
* Returns gas estimate and result without sending transaction
|
|
2022
1032
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2023
1033
|
*/
|
|
2024
|
-
async
|
|
2025
|
-
return contract.simulate.
|
|
1034
|
+
async speedBumpContract(addresses, options) {
|
|
1035
|
+
return contract.simulate.speedBumpContract([addresses], options);
|
|
2026
1036
|
},
|
|
2027
1037
|
/**
|
|
2028
|
-
* Simulate
|
|
1038
|
+
* Simulate speedBumpFee
|
|
2029
1039
|
* Returns gas estimate and result without sending transaction
|
|
2030
1040
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2031
1041
|
*/
|
|
2032
|
-
async
|
|
2033
|
-
return contract.simulate.
|
|
1042
|
+
async speedBumpFee(uint16s, options) {
|
|
1043
|
+
return contract.simulate.speedBumpFee([uint16s], options);
|
|
2034
1044
|
},
|
|
2035
1045
|
/**
|
|
2036
|
-
* Simulate
|
|
1046
|
+
* Simulate speedBumpMain
|
|
2037
1047
|
* Returns gas estimate and result without sending transaction
|
|
2038
1048
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2039
1049
|
*/
|
|
2040
|
-
async
|
|
2041
|
-
return contract.simulate.
|
|
1050
|
+
async speedBumpMain(addresses, newSpeedBumpHours, circuitBreaker, options) {
|
|
1051
|
+
return contract.simulate.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker], options);
|
|
2042
1052
|
},
|
|
2043
1053
|
/**
|
|
2044
|
-
* Simulate
|
|
1054
|
+
* Simulate updateTreasuryContracts
|
|
2045
1055
|
* Returns gas estimate and result without sending transaction
|
|
2046
1056
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2047
1057
|
*/
|
|
2048
|
-
async
|
|
2049
|
-
return contract.simulate.
|
|
1058
|
+
async updateTreasuryContracts(options) {
|
|
1059
|
+
return contract.simulate.updateTreasuryContracts(options);
|
|
2050
1060
|
},
|
|
2051
1061
|
/**
|
|
2052
|
-
* Simulate
|
|
1062
|
+
* Simulate updateTreasuryFeeVariables
|
|
2053
1063
|
* Returns gas estimate and result without sending transaction
|
|
2054
1064
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2055
1065
|
*/
|
|
2056
|
-
async
|
|
2057
|
-
return contract.simulate.
|
|
1066
|
+
async updateTreasuryFeeVariables(options) {
|
|
1067
|
+
return contract.simulate.updateTreasuryFeeVariables(options);
|
|
2058
1068
|
},
|
|
2059
1069
|
/**
|
|
2060
|
-
* Simulate
|
|
1070
|
+
* Simulate updateTreasuryMainVariables
|
|
2061
1071
|
* Returns gas estimate and result without sending transaction
|
|
2062
1072
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2063
1073
|
*/
|
|
2064
|
-
async
|
|
2065
|
-
return contract.simulate.
|
|
1074
|
+
async updateTreasuryMainVariables(options) {
|
|
1075
|
+
return contract.simulate.updateTreasuryMainVariables(options);
|
|
2066
1076
|
}
|
|
2067
1077
|
};
|
|
2068
1078
|
}
|
|
@@ -2081,278 +1091,16 @@ class Treasury_json {
|
|
|
2081
1091
|
get watch() {
|
|
2082
1092
|
return {
|
|
2083
1093
|
/**
|
|
2084
|
-
* Watch
|
|
2085
|
-
* @param callback Function to call when event is emitted
|
|
2086
|
-
* @param filter Optional filter for indexed parameters
|
|
2087
|
-
* @returns Unwatch function to stop listening
|
|
2088
|
-
*/
|
|
2089
|
-
BackingUpdated: (callback, filter) => {
|
|
2090
|
-
return this.publicClient.watchContractEvent({
|
|
2091
|
-
address: this.contractAddress,
|
|
2092
|
-
abi: exports.Treasury_jsonAbi,
|
|
2093
|
-
eventName: 'BackingUpdated',
|
|
2094
|
-
args: filter,
|
|
2095
|
-
onLogs: (logs) => {
|
|
2096
|
-
logs.forEach((log) => {
|
|
2097
|
-
callback(log.args);
|
|
2098
|
-
});
|
|
2099
|
-
},
|
|
2100
|
-
});
|
|
2101
|
-
},
|
|
2102
|
-
/**
|
|
2103
|
-
* Watch BoughtAndListed events
|
|
2104
|
-
* @param callback Function to call when event is emitted
|
|
2105
|
-
* @param filter Optional filter for indexed parameters
|
|
2106
|
-
* @returns Unwatch function to stop listening
|
|
2107
|
-
*/
|
|
2108
|
-
BoughtAndListed: (callback, filter) => {
|
|
2109
|
-
return this.publicClient.watchContractEvent({
|
|
2110
|
-
address: this.contractAddress,
|
|
2111
|
-
abi: exports.Treasury_jsonAbi,
|
|
2112
|
-
eventName: 'BoughtAndListed',
|
|
2113
|
-
args: filter,
|
|
2114
|
-
onLogs: (logs) => {
|
|
2115
|
-
logs.forEach((log) => {
|
|
2116
|
-
callback(log.args);
|
|
2117
|
-
});
|
|
2118
|
-
},
|
|
2119
|
-
});
|
|
2120
|
-
},
|
|
2121
|
-
/**
|
|
2122
|
-
* Watch BuybackBurned events
|
|
2123
|
-
* @param callback Function to call when event is emitted
|
|
2124
|
-
* @param filter Optional filter for indexed parameters
|
|
2125
|
-
* @returns Unwatch function to stop listening
|
|
2126
|
-
*/
|
|
2127
|
-
BuybackBurned: (callback) => {
|
|
2128
|
-
return this.publicClient.watchContractEvent({
|
|
2129
|
-
address: this.contractAddress,
|
|
2130
|
-
abi: exports.Treasury_jsonAbi,
|
|
2131
|
-
eventName: 'BuybackBurned',
|
|
2132
|
-
onLogs: (logs) => {
|
|
2133
|
-
logs.forEach((log) => {
|
|
2134
|
-
callback(log.args);
|
|
2135
|
-
});
|
|
2136
|
-
},
|
|
2137
|
-
});
|
|
2138
|
-
},
|
|
2139
|
-
/**
|
|
2140
|
-
* Watch BuybackSlippageSet events
|
|
2141
|
-
* @param callback Function to call when event is emitted
|
|
2142
|
-
* @param filter Optional filter for indexed parameters
|
|
2143
|
-
* @returns Unwatch function to stop listening
|
|
2144
|
-
*/
|
|
2145
|
-
BuybackSlippageSet: (callback) => {
|
|
2146
|
-
return this.publicClient.watchContractEvent({
|
|
2147
|
-
address: this.contractAddress,
|
|
2148
|
-
abi: exports.Treasury_jsonAbi,
|
|
2149
|
-
eventName: 'BuybackSlippageSet',
|
|
2150
|
-
onLogs: (logs) => {
|
|
2151
|
-
logs.forEach((log) => {
|
|
2152
|
-
callback(log.args);
|
|
2153
|
-
});
|
|
2154
|
-
},
|
|
2155
|
-
});
|
|
2156
|
-
},
|
|
2157
|
-
/**
|
|
2158
|
-
* Watch EmergencyWithdrawERC20 events
|
|
2159
|
-
* @param callback Function to call when event is emitted
|
|
2160
|
-
* @param filter Optional filter for indexed parameters
|
|
2161
|
-
* @returns Unwatch function to stop listening
|
|
2162
|
-
*/
|
|
2163
|
-
EmergencyWithdrawERC20: (callback, filter) => {
|
|
2164
|
-
return this.publicClient.watchContractEvent({
|
|
2165
|
-
address: this.contractAddress,
|
|
2166
|
-
abi: exports.Treasury_jsonAbi,
|
|
2167
|
-
eventName: 'EmergencyWithdrawERC20',
|
|
2168
|
-
args: filter,
|
|
2169
|
-
onLogs: (logs) => {
|
|
2170
|
-
logs.forEach((log) => {
|
|
2171
|
-
callback(log.args);
|
|
2172
|
-
});
|
|
2173
|
-
},
|
|
2174
|
-
});
|
|
2175
|
-
},
|
|
2176
|
-
/**
|
|
2177
|
-
* Watch EmergencyWithdrawERC721 events
|
|
2178
|
-
* @param callback Function to call when event is emitted
|
|
2179
|
-
* @param filter Optional filter for indexed parameters
|
|
2180
|
-
* @returns Unwatch function to stop listening
|
|
2181
|
-
*/
|
|
2182
|
-
EmergencyWithdrawERC721: (callback, filter) => {
|
|
2183
|
-
return this.publicClient.watchContractEvent({
|
|
2184
|
-
address: this.contractAddress,
|
|
2185
|
-
abi: exports.Treasury_jsonAbi,
|
|
2186
|
-
eventName: 'EmergencyWithdrawERC721',
|
|
2187
|
-
args: filter,
|
|
2188
|
-
onLogs: (logs) => {
|
|
2189
|
-
logs.forEach((log) => {
|
|
2190
|
-
callback(log.args);
|
|
2191
|
-
});
|
|
2192
|
-
},
|
|
2193
|
-
});
|
|
2194
|
-
},
|
|
2195
|
-
/**
|
|
2196
|
-
* Watch EmergencyWithdrawETH events
|
|
2197
|
-
* @param callback Function to call when event is emitted
|
|
2198
|
-
* @param filter Optional filter for indexed parameters
|
|
2199
|
-
* @returns Unwatch function to stop listening
|
|
2200
|
-
*/
|
|
2201
|
-
EmergencyWithdrawETH: (callback, filter) => {
|
|
2202
|
-
return this.publicClient.watchContractEvent({
|
|
2203
|
-
address: this.contractAddress,
|
|
2204
|
-
abi: exports.Treasury_jsonAbi,
|
|
2205
|
-
eventName: 'EmergencyWithdrawETH',
|
|
2206
|
-
args: filter,
|
|
2207
|
-
onLogs: (logs) => {
|
|
2208
|
-
logs.forEach((log) => {
|
|
2209
|
-
callback(log.args);
|
|
2210
|
-
});
|
|
2211
|
-
},
|
|
2212
|
-
});
|
|
2213
|
-
},
|
|
2214
|
-
/**
|
|
2215
|
-
* Watch FeesClaimed events
|
|
2216
|
-
* @param callback Function to call when event is emitted
|
|
2217
|
-
* @param filter Optional filter for indexed parameters
|
|
2218
|
-
* @returns Unwatch function to stop listening
|
|
2219
|
-
*/
|
|
2220
|
-
FeesClaimed: (callback) => {
|
|
2221
|
-
return this.publicClient.watchContractEvent({
|
|
2222
|
-
address: this.contractAddress,
|
|
2223
|
-
abi: exports.Treasury_jsonAbi,
|
|
2224
|
-
eventName: 'FeesClaimed',
|
|
2225
|
-
onLogs: (logs) => {
|
|
2226
|
-
logs.forEach((log) => {
|
|
2227
|
-
callback(log.args);
|
|
2228
|
-
});
|
|
2229
|
-
},
|
|
2230
|
-
});
|
|
2231
|
-
},
|
|
2232
|
-
/**
|
|
2233
|
-
* Watch FundsReturned events
|
|
2234
|
-
* @param callback Function to call when event is emitted
|
|
2235
|
-
* @param filter Optional filter for indexed parameters
|
|
2236
|
-
* @returns Unwatch function to stop listening
|
|
2237
|
-
*/
|
|
2238
|
-
FundsReturned: (callback) => {
|
|
2239
|
-
return this.publicClient.watchContractEvent({
|
|
2240
|
-
address: this.contractAddress,
|
|
2241
|
-
abi: exports.Treasury_jsonAbi,
|
|
2242
|
-
eventName: 'FundsReturned',
|
|
2243
|
-
onLogs: (logs) => {
|
|
2244
|
-
logs.forEach((log) => {
|
|
2245
|
-
callback(log.args);
|
|
2246
|
-
});
|
|
2247
|
-
},
|
|
2248
|
-
});
|
|
2249
|
-
},
|
|
2250
|
-
/**
|
|
2251
|
-
* Watch FwaRecovery events
|
|
2252
|
-
* @param callback Function to call when event is emitted
|
|
2253
|
-
* @param filter Optional filter for indexed parameters
|
|
2254
|
-
* @returns Unwatch function to stop listening
|
|
2255
|
-
*/
|
|
2256
|
-
FwaRecovery: (callback, filter) => {
|
|
2257
|
-
return this.publicClient.watchContractEvent({
|
|
2258
|
-
address: this.contractAddress,
|
|
2259
|
-
abi: exports.Treasury_jsonAbi,
|
|
2260
|
-
eventName: 'FwaRecovery',
|
|
2261
|
-
args: filter,
|
|
2262
|
-
onLogs: (logs) => {
|
|
2263
|
-
logs.forEach((log) => {
|
|
2264
|
-
callback(log.args);
|
|
2265
|
-
});
|
|
2266
|
-
},
|
|
2267
|
-
});
|
|
2268
|
-
},
|
|
2269
|
-
/**
|
|
2270
|
-
* Watch LimitsSet events
|
|
2271
|
-
* @param callback Function to call when event is emitted
|
|
2272
|
-
* @param filter Optional filter for indexed parameters
|
|
2273
|
-
* @returns Unwatch function to stop listening
|
|
2274
|
-
*/
|
|
2275
|
-
LimitsSet: (callback) => {
|
|
2276
|
-
return this.publicClient.watchContractEvent({
|
|
2277
|
-
address: this.contractAddress,
|
|
2278
|
-
abi: exports.Treasury_jsonAbi,
|
|
2279
|
-
eventName: 'LimitsSet',
|
|
2280
|
-
onLogs: (logs) => {
|
|
2281
|
-
logs.forEach((log) => {
|
|
2282
|
-
callback(log.args);
|
|
2283
|
-
});
|
|
2284
|
-
},
|
|
2285
|
-
});
|
|
2286
|
-
},
|
|
2287
|
-
/**
|
|
2288
|
-
* Watch ListedOnFwa events
|
|
2289
|
-
* @param callback Function to call when event is emitted
|
|
2290
|
-
* @param filter Optional filter for indexed parameters
|
|
2291
|
-
* @returns Unwatch function to stop listening
|
|
2292
|
-
*/
|
|
2293
|
-
ListedOnFwa: (callback, filter) => {
|
|
2294
|
-
return this.publicClient.watchContractEvent({
|
|
2295
|
-
address: this.contractAddress,
|
|
2296
|
-
abi: exports.Treasury_jsonAbi,
|
|
2297
|
-
eventName: 'ListedOnFwa',
|
|
2298
|
-
args: filter,
|
|
2299
|
-
onLogs: (logs) => {
|
|
2300
|
-
logs.forEach((log) => {
|
|
2301
|
-
callback(log.args);
|
|
2302
|
-
});
|
|
2303
|
-
},
|
|
2304
|
-
});
|
|
2305
|
-
},
|
|
2306
|
-
/**
|
|
2307
|
-
* Watch OperatorFunded events
|
|
2308
|
-
* @param callback Function to call when event is emitted
|
|
2309
|
-
* @param filter Optional filter for indexed parameters
|
|
2310
|
-
* @returns Unwatch function to stop listening
|
|
2311
|
-
*/
|
|
2312
|
-
OperatorFunded: (callback, filter) => {
|
|
2313
|
-
return this.publicClient.watchContractEvent({
|
|
2314
|
-
address: this.contractAddress,
|
|
2315
|
-
abi: exports.Treasury_jsonAbi,
|
|
2316
|
-
eventName: 'OperatorFunded',
|
|
2317
|
-
args: filter,
|
|
2318
|
-
onLogs: (logs) => {
|
|
2319
|
-
logs.forEach((log) => {
|
|
2320
|
-
callback(log.args);
|
|
2321
|
-
});
|
|
2322
|
-
},
|
|
2323
|
-
});
|
|
2324
|
-
},
|
|
2325
|
-
/**
|
|
2326
|
-
* Watch OperatorSet events
|
|
2327
|
-
* @param callback Function to call when event is emitted
|
|
2328
|
-
* @param filter Optional filter for indexed parameters
|
|
2329
|
-
* @returns Unwatch function to stop listening
|
|
2330
|
-
*/
|
|
2331
|
-
OperatorSet: (callback, filter) => {
|
|
2332
|
-
return this.publicClient.watchContractEvent({
|
|
2333
|
-
address: this.contractAddress,
|
|
2334
|
-
abi: exports.Treasury_jsonAbi,
|
|
2335
|
-
eventName: 'OperatorSet',
|
|
2336
|
-
args: filter,
|
|
2337
|
-
onLogs: (logs) => {
|
|
2338
|
-
logs.forEach((log) => {
|
|
2339
|
-
callback(log.args);
|
|
2340
|
-
});
|
|
2341
|
-
},
|
|
2342
|
-
});
|
|
2343
|
-
},
|
|
2344
|
-
/**
|
|
2345
|
-
* Watch OwnershipTransferStarted events
|
|
1094
|
+
* Watch connectedContracts events
|
|
2346
1095
|
* @param callback Function to call when event is emitted
|
|
2347
1096
|
* @param filter Optional filter for indexed parameters
|
|
2348
1097
|
* @returns Unwatch function to stop listening
|
|
2349
1098
|
*/
|
|
2350
|
-
|
|
1099
|
+
connectedContracts: (callback) => {
|
|
2351
1100
|
return this.publicClient.watchContractEvent({
|
|
2352
1101
|
address: this.contractAddress,
|
|
2353
1102
|
abi: exports.Treasury_jsonAbi,
|
|
2354
|
-
eventName: '
|
|
2355
|
-
args: filter,
|
|
1103
|
+
eventName: 'connectedContracts',
|
|
2356
1104
|
onLogs: (logs) => {
|
|
2357
1105
|
logs.forEach((log) => {
|
|
2358
1106
|
callback(log.args);
|
|
@@ -2361,17 +1109,16 @@ class Treasury_json {
|
|
|
2361
1109
|
});
|
|
2362
1110
|
},
|
|
2363
1111
|
/**
|
|
2364
|
-
* Watch
|
|
1112
|
+
* Watch updatedSpeedBump events
|
|
2365
1113
|
* @param callback Function to call when event is emitted
|
|
2366
1114
|
* @param filter Optional filter for indexed parameters
|
|
2367
1115
|
* @returns Unwatch function to stop listening
|
|
2368
1116
|
*/
|
|
2369
|
-
|
|
1117
|
+
updatedSpeedBump: (callback) => {
|
|
2370
1118
|
return this.publicClient.watchContractEvent({
|
|
2371
1119
|
address: this.contractAddress,
|
|
2372
1120
|
abi: exports.Treasury_jsonAbi,
|
|
2373
|
-
eventName: '
|
|
2374
|
-
args: filter,
|
|
1121
|
+
eventName: 'updatedSpeedBump',
|
|
2375
1122
|
onLogs: (logs) => {
|
|
2376
1123
|
logs.forEach((log) => {
|
|
2377
1124
|
callback(log.args);
|
|
@@ -2380,16 +1127,16 @@ class Treasury_json {
|
|
|
2380
1127
|
});
|
|
2381
1128
|
},
|
|
2382
1129
|
/**
|
|
2383
|
-
* Watch
|
|
1130
|
+
* Watch updatedTreasuryFunctionVerification events
|
|
2384
1131
|
* @param callback Function to call when event is emitted
|
|
2385
1132
|
* @param filter Optional filter for indexed parameters
|
|
2386
1133
|
* @returns Unwatch function to stop listening
|
|
2387
1134
|
*/
|
|
2388
|
-
|
|
1135
|
+
updatedTreasuryFunctionVerification: (callback) => {
|
|
2389
1136
|
return this.publicClient.watchContractEvent({
|
|
2390
1137
|
address: this.contractAddress,
|
|
2391
1138
|
abi: exports.Treasury_jsonAbi,
|
|
2392
|
-
eventName: '
|
|
1139
|
+
eventName: 'updatedTreasuryFunctionVerification',
|
|
2393
1140
|
onLogs: (logs) => {
|
|
2394
1141
|
logs.forEach((log) => {
|
|
2395
1142
|
callback(log.args);
|
|
@@ -2398,16 +1145,16 @@ class Treasury_json {
|
|
|
2398
1145
|
});
|
|
2399
1146
|
},
|
|
2400
1147
|
/**
|
|
2401
|
-
* Watch
|
|
1148
|
+
* Watch updatedTreasuryMainVariables events
|
|
2402
1149
|
* @param callback Function to call when event is emitted
|
|
2403
1150
|
* @param filter Optional filter for indexed parameters
|
|
2404
1151
|
* @returns Unwatch function to stop listening
|
|
2405
1152
|
*/
|
|
2406
|
-
|
|
1153
|
+
updatedTreasuryMainVariables: (callback) => {
|
|
2407
1154
|
return this.publicClient.watchContractEvent({
|
|
2408
1155
|
address: this.contractAddress,
|
|
2409
1156
|
abi: exports.Treasury_jsonAbi,
|
|
2410
|
-
eventName: '
|
|
1157
|
+
eventName: 'updatedTreasuryMainVariables',
|
|
2411
1158
|
onLogs: (logs) => {
|
|
2412
1159
|
logs.forEach((log) => {
|
|
2413
1160
|
callback(log.args);
|
|
@@ -2416,16 +1163,16 @@ class Treasury_json {
|
|
|
2416
1163
|
});
|
|
2417
1164
|
},
|
|
2418
1165
|
/**
|
|
2419
|
-
* Watch
|
|
1166
|
+
* Watch updatedTreasuryVariables events
|
|
2420
1167
|
* @param callback Function to call when event is emitted
|
|
2421
1168
|
* @param filter Optional filter for indexed parameters
|
|
2422
1169
|
* @returns Unwatch function to stop listening
|
|
2423
1170
|
*/
|
|
2424
|
-
|
|
1171
|
+
updatedTreasuryVariables: (callback) => {
|
|
2425
1172
|
return this.publicClient.watchContractEvent({
|
|
2426
1173
|
address: this.contractAddress,
|
|
2427
1174
|
abi: exports.Treasury_jsonAbi,
|
|
2428
|
-
eventName: '
|
|
1175
|
+
eventName: 'updatedTreasuryVariables',
|
|
2429
1176
|
onLogs: (logs) => {
|
|
2430
1177
|
logs.forEach((log) => {
|
|
2431
1178
|
callback(log.args);
|