@gitmyabi/ben 1.0.0 → 1.0.1
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 +4 -4
- package/contracts/BenCoinV2.d.ts +3754 -0
- package/contracts/BenCoinV2.js +3974 -0
- package/contracts/BenCoinV2.ts +4947 -0
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +4 -4
- package/contracts/StandardERC20_json.d.ts +0 -550
- package/contracts/StandardERC20_json.js +0 -583
- package/contracts/StandardERC20_json.ts +0 -731
|
@@ -0,0 +1,4947 @@
|
|
|
1
|
+
import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
|
|
2
|
+
import { getContract } from 'viem';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* ERC20Votes.Checkpoint struct type
|
|
7
|
+
*/
|
|
8
|
+
export type ERC20Votes_Checkpoint = {
|
|
9
|
+
fromBlock: bigint;
|
|
10
|
+
votes: bigint;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ICommonOFT.LzCallParams struct type
|
|
15
|
+
*/
|
|
16
|
+
export type ICommonOFT_LzCallParams = {
|
|
17
|
+
refundAddress: `0x${string}`;
|
|
18
|
+
zroPaymentAddress: `0x${string}`;
|
|
19
|
+
adapterParams: `0x${string}`;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* BenCoinV2 ABI
|
|
23
|
+
*
|
|
24
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
25
|
+
*/
|
|
26
|
+
export const BenCoinV2Abi = [
|
|
27
|
+
{
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"stateMutability": "nonpayable",
|
|
30
|
+
"type": "constructor"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "AlreadyInitialized",
|
|
35
|
+
"type": "error"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [],
|
|
39
|
+
"name": "BothAddressesAreContracts",
|
|
40
|
+
"type": "error"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"inputs": [],
|
|
44
|
+
"name": "ERC20ApproveFromZeroAddress",
|
|
45
|
+
"type": "error"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"name": "ERC20ApproveToZeroAddress",
|
|
50
|
+
"type": "error"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"inputs": [],
|
|
54
|
+
"name": "ERC20DecreasedAllowanceBelowZero",
|
|
55
|
+
"type": "error"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"inputs": [],
|
|
59
|
+
"name": "ERC20MintToZeroAddress",
|
|
60
|
+
"type": "error"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [],
|
|
64
|
+
"name": "ERC20PermitExpired",
|
|
65
|
+
"type": "error"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputs": [],
|
|
69
|
+
"name": "ERC20PermitInvalidSignature",
|
|
70
|
+
"type": "error"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"inputs": [],
|
|
74
|
+
"name": "ERC20TransferExceedsAllowance",
|
|
75
|
+
"type": "error"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"name": "ERC20TransferExceedsBalance",
|
|
80
|
+
"type": "error"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputs": [],
|
|
84
|
+
"name": "ERC20TransferFromZeroAddress",
|
|
85
|
+
"type": "error"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"inputs": [],
|
|
89
|
+
"name": "ERC20TransferToZeroAddress",
|
|
90
|
+
"type": "error"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"inputs": [],
|
|
94
|
+
"name": "ERC20VotesBrokenClock",
|
|
95
|
+
"type": "error"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"inputs": [],
|
|
99
|
+
"name": "ERC20VotesFutureLookup",
|
|
100
|
+
"type": "error"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"inputs": [],
|
|
104
|
+
"name": "ERC20VotesInvalidNonce",
|
|
105
|
+
"type": "error"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputs": [],
|
|
109
|
+
"name": "ERC20VotesSignatureExpired",
|
|
110
|
+
"type": "error"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"inputs": [],
|
|
114
|
+
"name": "ERC20VotesSupplyOverflow",
|
|
115
|
+
"type": "error"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"inputs": [],
|
|
119
|
+
"name": "InvalidArrayLength",
|
|
120
|
+
"type": "error"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"inputs": [],
|
|
124
|
+
"name": "InvalidBuyTaxReceiver",
|
|
125
|
+
"type": "error"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"inputs": [],
|
|
129
|
+
"name": "InvalidShortString",
|
|
130
|
+
"type": "error"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "LZAPPInvalidAdapterParams",
|
|
135
|
+
"type": "error"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"name": "LZAPPInvalidDestinationChain",
|
|
140
|
+
"type": "error"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"inputs": [],
|
|
144
|
+
"name": "LZAPPInvalidEndpointCaller",
|
|
145
|
+
"type": "error"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"inputs": [],
|
|
149
|
+
"name": "LZAPPInvalidGasLimit",
|
|
150
|
+
"type": "error"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [],
|
|
154
|
+
"name": "LZAPPInvalidMinGas",
|
|
155
|
+
"type": "error"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"inputs": [],
|
|
159
|
+
"name": "LZAPPInvalidMinGasLimit",
|
|
160
|
+
"type": "error"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"inputs": [],
|
|
164
|
+
"name": "LZAPPInvalidPayload",
|
|
165
|
+
"type": "error"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"inputs": [],
|
|
169
|
+
"name": "LZAPPInvalidPayloadSize",
|
|
170
|
+
"type": "error"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"inputs": [],
|
|
174
|
+
"name": "LZAPPInvalidSourceSendingContract",
|
|
175
|
+
"type": "error"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"inputs": [],
|
|
179
|
+
"name": "LZAPPNoTrustedPathRecord",
|
|
180
|
+
"type": "error"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"inputs": [],
|
|
184
|
+
"name": "MaxTaxExceeded",
|
|
185
|
+
"type": "error"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"inputs": [],
|
|
189
|
+
"name": "MigratorSetOnInvalidChain",
|
|
190
|
+
"type": "error"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"inputs": [],
|
|
194
|
+
"name": "NewOwnerIsZeroAddress",
|
|
195
|
+
"type": "error"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"inputs": [],
|
|
199
|
+
"name": "OFTCoreAdapterParamsNotAllowed",
|
|
200
|
+
"type": "error"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"inputs": [],
|
|
204
|
+
"name": "OFTCoreAmountSDOverflow",
|
|
205
|
+
"type": "error"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"inputs": [],
|
|
209
|
+
"name": "OFTCoreAmountZero",
|
|
210
|
+
"type": "error"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"inputs": [],
|
|
214
|
+
"name": "OFTCoreCallerMustBeOFTCore",
|
|
215
|
+
"type": "error"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"inputs": [],
|
|
219
|
+
"name": "OFTCoreInvalidPayload",
|
|
220
|
+
"type": "error"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"inputs": [],
|
|
224
|
+
"name": "OFTCoreUnknownPacketType",
|
|
225
|
+
"type": "error"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"inputs": [
|
|
229
|
+
{
|
|
230
|
+
"internalType": "uint8",
|
|
231
|
+
"name": "sharedDecimals",
|
|
232
|
+
"type": "uint8"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"internalType": "uint8",
|
|
236
|
+
"name": "decimals",
|
|
237
|
+
"type": "uint8"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"name": "OFTSharedDecimalsMustBeLessThanOrEqualToDecimals",
|
|
241
|
+
"type": "error"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"inputs": [],
|
|
245
|
+
"name": "OnlyMigrator",
|
|
246
|
+
"type": "error"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"inputs": [],
|
|
250
|
+
"name": "OnlyOwner",
|
|
251
|
+
"type": "error"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"inputs": [],
|
|
255
|
+
"name": "SafeERC20ERC20OperationFailed",
|
|
256
|
+
"type": "error"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"inputs": [
|
|
260
|
+
{
|
|
261
|
+
"internalType": "string",
|
|
262
|
+
"name": "str",
|
|
263
|
+
"type": "string"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"name": "StringTooLong",
|
|
267
|
+
"type": "error"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"internalType": "address",
|
|
273
|
+
"name": "",
|
|
274
|
+
"type": "address"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"name": "TransferBlacklisted",
|
|
278
|
+
"type": "error"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"anonymous": false,
|
|
282
|
+
"inputs": [
|
|
283
|
+
{
|
|
284
|
+
"indexed": true,
|
|
285
|
+
"internalType": "address",
|
|
286
|
+
"name": "owner",
|
|
287
|
+
"type": "address"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"indexed": true,
|
|
291
|
+
"internalType": "address",
|
|
292
|
+
"name": "spender",
|
|
293
|
+
"type": "address"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"indexed": false,
|
|
297
|
+
"internalType": "uint256",
|
|
298
|
+
"name": "value",
|
|
299
|
+
"type": "uint256"
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"name": "Approval",
|
|
303
|
+
"type": "event"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"anonymous": false,
|
|
307
|
+
"inputs": [
|
|
308
|
+
{
|
|
309
|
+
"indexed": true,
|
|
310
|
+
"internalType": "uint16",
|
|
311
|
+
"name": "_srcChainId",
|
|
312
|
+
"type": "uint16"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"indexed": false,
|
|
316
|
+
"internalType": "bytes",
|
|
317
|
+
"name": "_srcAddress",
|
|
318
|
+
"type": "bytes"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"indexed": false,
|
|
322
|
+
"internalType": "uint64",
|
|
323
|
+
"name": "_nonce",
|
|
324
|
+
"type": "uint64"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"indexed": false,
|
|
328
|
+
"internalType": "bytes32",
|
|
329
|
+
"name": "_hash",
|
|
330
|
+
"type": "bytes32"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"name": "CallOFTReceivedSuccess",
|
|
334
|
+
"type": "event"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"anonymous": false,
|
|
338
|
+
"inputs": [
|
|
339
|
+
{
|
|
340
|
+
"indexed": true,
|
|
341
|
+
"internalType": "address",
|
|
342
|
+
"name": "delegator",
|
|
343
|
+
"type": "address"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"indexed": true,
|
|
347
|
+
"internalType": "address",
|
|
348
|
+
"name": "fromDelegate",
|
|
349
|
+
"type": "address"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"indexed": true,
|
|
353
|
+
"internalType": "address",
|
|
354
|
+
"name": "toDelegate",
|
|
355
|
+
"type": "address"
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"name": "DelegateChanged",
|
|
359
|
+
"type": "event"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"anonymous": false,
|
|
363
|
+
"inputs": [
|
|
364
|
+
{
|
|
365
|
+
"indexed": true,
|
|
366
|
+
"internalType": "address",
|
|
367
|
+
"name": "delegate",
|
|
368
|
+
"type": "address"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"indexed": false,
|
|
372
|
+
"internalType": "uint256",
|
|
373
|
+
"name": "previousBalance",
|
|
374
|
+
"type": "uint256"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"indexed": false,
|
|
378
|
+
"internalType": "uint256",
|
|
379
|
+
"name": "newBalance",
|
|
380
|
+
"type": "uint256"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"name": "DelegateVotesChanged",
|
|
384
|
+
"type": "event"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"anonymous": false,
|
|
388
|
+
"inputs": [],
|
|
389
|
+
"name": "EIP712DomainChanged",
|
|
390
|
+
"type": "event"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"anonymous": false,
|
|
394
|
+
"inputs": [
|
|
395
|
+
{
|
|
396
|
+
"indexed": false,
|
|
397
|
+
"internalType": "uint16",
|
|
398
|
+
"name": "_srcChainId",
|
|
399
|
+
"type": "uint16"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"indexed": false,
|
|
403
|
+
"internalType": "bytes",
|
|
404
|
+
"name": "_srcAddress",
|
|
405
|
+
"type": "bytes"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"indexed": false,
|
|
409
|
+
"internalType": "uint64",
|
|
410
|
+
"name": "_nonce",
|
|
411
|
+
"type": "uint64"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"indexed": false,
|
|
415
|
+
"internalType": "bytes",
|
|
416
|
+
"name": "_payload",
|
|
417
|
+
"type": "bytes"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"indexed": false,
|
|
421
|
+
"internalType": "bytes",
|
|
422
|
+
"name": "_reason",
|
|
423
|
+
"type": "bytes"
|
|
424
|
+
}
|
|
425
|
+
],
|
|
426
|
+
"name": "MessageFailed",
|
|
427
|
+
"type": "event"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"anonymous": false,
|
|
431
|
+
"inputs": [
|
|
432
|
+
{
|
|
433
|
+
"indexed": false,
|
|
434
|
+
"internalType": "address",
|
|
435
|
+
"name": "_address",
|
|
436
|
+
"type": "address"
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"name": "NonContractAddress",
|
|
440
|
+
"type": "event"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"anonymous": false,
|
|
444
|
+
"inputs": [
|
|
445
|
+
{
|
|
446
|
+
"indexed": true,
|
|
447
|
+
"internalType": "address",
|
|
448
|
+
"name": "previousOwner",
|
|
449
|
+
"type": "address"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"indexed": true,
|
|
453
|
+
"internalType": "address",
|
|
454
|
+
"name": "newOwner",
|
|
455
|
+
"type": "address"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"name": "OwnershipTransferred",
|
|
459
|
+
"type": "event"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"anonymous": false,
|
|
463
|
+
"inputs": [
|
|
464
|
+
{
|
|
465
|
+
"indexed": true,
|
|
466
|
+
"internalType": "uint16",
|
|
467
|
+
"name": "_srcChainId",
|
|
468
|
+
"type": "uint16"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"indexed": true,
|
|
472
|
+
"internalType": "address",
|
|
473
|
+
"name": "_to",
|
|
474
|
+
"type": "address"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"indexed": false,
|
|
478
|
+
"internalType": "uint256",
|
|
479
|
+
"name": "_amount",
|
|
480
|
+
"type": "uint256"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"name": "ReceiveFromChain",
|
|
484
|
+
"type": "event"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"anonymous": false,
|
|
488
|
+
"inputs": [
|
|
489
|
+
{
|
|
490
|
+
"indexed": false,
|
|
491
|
+
"internalType": "uint16",
|
|
492
|
+
"name": "_srcChainId",
|
|
493
|
+
"type": "uint16"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"indexed": false,
|
|
497
|
+
"internalType": "bytes",
|
|
498
|
+
"name": "_srcAddress",
|
|
499
|
+
"type": "bytes"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"indexed": false,
|
|
503
|
+
"internalType": "uint64",
|
|
504
|
+
"name": "_nonce",
|
|
505
|
+
"type": "uint64"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"indexed": false,
|
|
509
|
+
"internalType": "bytes32",
|
|
510
|
+
"name": "_payloadHash",
|
|
511
|
+
"type": "bytes32"
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"name": "RetryMessageSuccess",
|
|
515
|
+
"type": "event"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"anonymous": false,
|
|
519
|
+
"inputs": [
|
|
520
|
+
{
|
|
521
|
+
"indexed": true,
|
|
522
|
+
"internalType": "uint16",
|
|
523
|
+
"name": "_dstChainId",
|
|
524
|
+
"type": "uint16"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"indexed": true,
|
|
528
|
+
"internalType": "address",
|
|
529
|
+
"name": "_from",
|
|
530
|
+
"type": "address"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"indexed": true,
|
|
534
|
+
"internalType": "bytes32",
|
|
535
|
+
"name": "_toAddress",
|
|
536
|
+
"type": "bytes32"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"indexed": false,
|
|
540
|
+
"internalType": "uint256",
|
|
541
|
+
"name": "_amount",
|
|
542
|
+
"type": "uint256"
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
"name": "SendToChain",
|
|
546
|
+
"type": "event"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"anonymous": false,
|
|
550
|
+
"inputs": [
|
|
551
|
+
{
|
|
552
|
+
"indexed": false,
|
|
553
|
+
"internalType": "address",
|
|
554
|
+
"name": "buyTaxReceiver",
|
|
555
|
+
"type": "address"
|
|
556
|
+
}
|
|
557
|
+
],
|
|
558
|
+
"name": "SetBuyTaxReceiver",
|
|
559
|
+
"type": "event"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"anonymous": false,
|
|
563
|
+
"inputs": [
|
|
564
|
+
{
|
|
565
|
+
"indexed": false,
|
|
566
|
+
"internalType": "bool",
|
|
567
|
+
"name": "isAntiMEV",
|
|
568
|
+
"type": "bool"
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
"name": "SetIsAntiMEV",
|
|
572
|
+
"type": "event"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"anonymous": false,
|
|
576
|
+
"inputs": [
|
|
577
|
+
{
|
|
578
|
+
"indexed": false,
|
|
579
|
+
"internalType": "bool",
|
|
580
|
+
"name": "isBlacklisting",
|
|
581
|
+
"type": "bool"
|
|
582
|
+
}
|
|
583
|
+
],
|
|
584
|
+
"name": "SetIsTransferBlacklisting",
|
|
585
|
+
"type": "event"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"anonymous": false,
|
|
589
|
+
"inputs": [
|
|
590
|
+
{
|
|
591
|
+
"indexed": false,
|
|
592
|
+
"internalType": "uint16",
|
|
593
|
+
"name": "_dstChainId",
|
|
594
|
+
"type": "uint16"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"indexed": false,
|
|
598
|
+
"internalType": "uint16",
|
|
599
|
+
"name": "_type",
|
|
600
|
+
"type": "uint16"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"indexed": false,
|
|
604
|
+
"internalType": "uint256",
|
|
605
|
+
"name": "_minDstGas",
|
|
606
|
+
"type": "uint256"
|
|
607
|
+
}
|
|
608
|
+
],
|
|
609
|
+
"name": "SetMinDstGas",
|
|
610
|
+
"type": "event"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"anonymous": false,
|
|
614
|
+
"inputs": [
|
|
615
|
+
{
|
|
616
|
+
"indexed": false,
|
|
617
|
+
"internalType": "address",
|
|
618
|
+
"name": "precrime",
|
|
619
|
+
"type": "address"
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"name": "SetPrecrime",
|
|
623
|
+
"type": "event"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"anonymous": false,
|
|
627
|
+
"inputs": [
|
|
628
|
+
{
|
|
629
|
+
"indexed": false,
|
|
630
|
+
"internalType": "uint256",
|
|
631
|
+
"name": "buyTax",
|
|
632
|
+
"type": "uint256"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"indexed": false,
|
|
636
|
+
"internalType": "uint256",
|
|
637
|
+
"name": "sellTax",
|
|
638
|
+
"type": "uint256"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"indexed": false,
|
|
642
|
+
"internalType": "bool",
|
|
643
|
+
"name": "isTaxing",
|
|
644
|
+
"type": "bool"
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
"name": "SetTax",
|
|
648
|
+
"type": "event"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"anonymous": false,
|
|
652
|
+
"inputs": [
|
|
653
|
+
{
|
|
654
|
+
"indexed": false,
|
|
655
|
+
"internalType": "address",
|
|
656
|
+
"name": "whitelist",
|
|
657
|
+
"type": "address"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"indexed": false,
|
|
661
|
+
"internalType": "bool",
|
|
662
|
+
"name": "isWhitelisted",
|
|
663
|
+
"type": "bool"
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
"name": "SetTaxWhitelist",
|
|
667
|
+
"type": "event"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"anonymous": false,
|
|
671
|
+
"inputs": [
|
|
672
|
+
{
|
|
673
|
+
"indexed": false,
|
|
674
|
+
"internalType": "address",
|
|
675
|
+
"name": "taxableContract",
|
|
676
|
+
"type": "address"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"indexed": false,
|
|
680
|
+
"internalType": "bool",
|
|
681
|
+
"name": "isTaxable",
|
|
682
|
+
"type": "bool"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"name": "SetTaxableContract",
|
|
686
|
+
"type": "event"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"anonymous": false,
|
|
690
|
+
"inputs": [
|
|
691
|
+
{
|
|
692
|
+
"indexed": false,
|
|
693
|
+
"internalType": "address",
|
|
694
|
+
"name": "blacklist",
|
|
695
|
+
"type": "address"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"indexed": false,
|
|
699
|
+
"internalType": "bool",
|
|
700
|
+
"name": "isBlacklisted",
|
|
701
|
+
"type": "bool"
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"name": "SetTransferBlacklist",
|
|
705
|
+
"type": "event"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"anonymous": false,
|
|
709
|
+
"inputs": [
|
|
710
|
+
{
|
|
711
|
+
"indexed": false,
|
|
712
|
+
"internalType": "uint16",
|
|
713
|
+
"name": "_remoteChainId",
|
|
714
|
+
"type": "uint16"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"indexed": false,
|
|
718
|
+
"internalType": "bytes",
|
|
719
|
+
"name": "_path",
|
|
720
|
+
"type": "bytes"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
"name": "SetTrustedRemote",
|
|
724
|
+
"type": "event"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"anonymous": false,
|
|
728
|
+
"inputs": [
|
|
729
|
+
{
|
|
730
|
+
"indexed": false,
|
|
731
|
+
"internalType": "uint16",
|
|
732
|
+
"name": "_remoteChainId",
|
|
733
|
+
"type": "uint16"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"indexed": false,
|
|
737
|
+
"internalType": "bytes",
|
|
738
|
+
"name": "_remoteAddress",
|
|
739
|
+
"type": "bytes"
|
|
740
|
+
}
|
|
741
|
+
],
|
|
742
|
+
"name": "SetTrustedRemoteAddress",
|
|
743
|
+
"type": "event"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"anonymous": false,
|
|
747
|
+
"inputs": [
|
|
748
|
+
{
|
|
749
|
+
"indexed": false,
|
|
750
|
+
"internalType": "bool",
|
|
751
|
+
"name": "_useCustomAdapterParams",
|
|
752
|
+
"type": "bool"
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
"name": "SetUseCustomAdapterParams",
|
|
756
|
+
"type": "event"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"anonymous": false,
|
|
760
|
+
"inputs": [
|
|
761
|
+
{
|
|
762
|
+
"indexed": true,
|
|
763
|
+
"internalType": "address",
|
|
764
|
+
"name": "from",
|
|
765
|
+
"type": "address"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"indexed": true,
|
|
769
|
+
"internalType": "address",
|
|
770
|
+
"name": "to",
|
|
771
|
+
"type": "address"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"indexed": false,
|
|
775
|
+
"internalType": "uint256",
|
|
776
|
+
"name": "value",
|
|
777
|
+
"type": "uint256"
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
"name": "Transfer",
|
|
781
|
+
"type": "event"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"inputs": [],
|
|
785
|
+
"name": "CLOCK_MODE",
|
|
786
|
+
"outputs": [
|
|
787
|
+
{
|
|
788
|
+
"internalType": "string",
|
|
789
|
+
"name": "",
|
|
790
|
+
"type": "string"
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"stateMutability": "view",
|
|
794
|
+
"type": "function"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"inputs": [],
|
|
798
|
+
"name": "DEFAULT_PAYLOAD_SIZE_LIMIT",
|
|
799
|
+
"outputs": [
|
|
800
|
+
{
|
|
801
|
+
"internalType": "uint256",
|
|
802
|
+
"name": "",
|
|
803
|
+
"type": "uint256"
|
|
804
|
+
}
|
|
805
|
+
],
|
|
806
|
+
"stateMutability": "view",
|
|
807
|
+
"type": "function"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"inputs": [],
|
|
811
|
+
"name": "DOMAIN_SEPARATOR",
|
|
812
|
+
"outputs": [
|
|
813
|
+
{
|
|
814
|
+
"internalType": "bytes32",
|
|
815
|
+
"name": "",
|
|
816
|
+
"type": "bytes32"
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"stateMutability": "view",
|
|
820
|
+
"type": "function"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"inputs": [],
|
|
824
|
+
"name": "NO_EXTRA_GAS",
|
|
825
|
+
"outputs": [
|
|
826
|
+
{
|
|
827
|
+
"internalType": "uint256",
|
|
828
|
+
"name": "",
|
|
829
|
+
"type": "uint256"
|
|
830
|
+
}
|
|
831
|
+
],
|
|
832
|
+
"stateMutability": "view",
|
|
833
|
+
"type": "function"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"inputs": [],
|
|
837
|
+
"name": "PT_SEND",
|
|
838
|
+
"outputs": [
|
|
839
|
+
{
|
|
840
|
+
"internalType": "uint8",
|
|
841
|
+
"name": "",
|
|
842
|
+
"type": "uint8"
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
"stateMutability": "view",
|
|
846
|
+
"type": "function"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"inputs": [],
|
|
850
|
+
"name": "PT_SEND_AND_CALL",
|
|
851
|
+
"outputs": [
|
|
852
|
+
{
|
|
853
|
+
"internalType": "uint8",
|
|
854
|
+
"name": "",
|
|
855
|
+
"type": "uint8"
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"stateMutability": "view",
|
|
859
|
+
"type": "function"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"inputs": [
|
|
863
|
+
{
|
|
864
|
+
"internalType": "address",
|
|
865
|
+
"name": "owner",
|
|
866
|
+
"type": "address"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"internalType": "address",
|
|
870
|
+
"name": "spender",
|
|
871
|
+
"type": "address"
|
|
872
|
+
}
|
|
873
|
+
],
|
|
874
|
+
"name": "allowance",
|
|
875
|
+
"outputs": [
|
|
876
|
+
{
|
|
877
|
+
"internalType": "uint256",
|
|
878
|
+
"name": "",
|
|
879
|
+
"type": "uint256"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"stateMutability": "view",
|
|
883
|
+
"type": "function"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"inputs": [
|
|
887
|
+
{
|
|
888
|
+
"internalType": "address",
|
|
889
|
+
"name": "spender",
|
|
890
|
+
"type": "address"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"internalType": "uint256",
|
|
894
|
+
"name": "amount",
|
|
895
|
+
"type": "uint256"
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
"name": "approve",
|
|
899
|
+
"outputs": [
|
|
900
|
+
{
|
|
901
|
+
"internalType": "bool",
|
|
902
|
+
"name": "",
|
|
903
|
+
"type": "bool"
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"stateMutability": "nonpayable",
|
|
907
|
+
"type": "function"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"inputs": [
|
|
911
|
+
{
|
|
912
|
+
"internalType": "address",
|
|
913
|
+
"name": "account",
|
|
914
|
+
"type": "address"
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"name": "balanceOf",
|
|
918
|
+
"outputs": [
|
|
919
|
+
{
|
|
920
|
+
"internalType": "uint256",
|
|
921
|
+
"name": "",
|
|
922
|
+
"type": "uint256"
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
"stateMutability": "view",
|
|
926
|
+
"type": "function"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"inputs": [
|
|
930
|
+
{
|
|
931
|
+
"internalType": "uint256",
|
|
932
|
+
"name": "_amount",
|
|
933
|
+
"type": "uint256"
|
|
934
|
+
}
|
|
935
|
+
],
|
|
936
|
+
"name": "burn",
|
|
937
|
+
"outputs": [],
|
|
938
|
+
"stateMutability": "nonpayable",
|
|
939
|
+
"type": "function"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"inputs": [
|
|
943
|
+
{
|
|
944
|
+
"internalType": "address",
|
|
945
|
+
"name": "_account",
|
|
946
|
+
"type": "address"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"internalType": "uint256",
|
|
950
|
+
"name": "_amount",
|
|
951
|
+
"type": "uint256"
|
|
952
|
+
}
|
|
953
|
+
],
|
|
954
|
+
"name": "burnFrom",
|
|
955
|
+
"outputs": [],
|
|
956
|
+
"stateMutability": "nonpayable",
|
|
957
|
+
"type": "function"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"inputs": [
|
|
961
|
+
{
|
|
962
|
+
"internalType": "uint16",
|
|
963
|
+
"name": "_srcChainId",
|
|
964
|
+
"type": "uint16"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"internalType": "bytes",
|
|
968
|
+
"name": "_srcAddress",
|
|
969
|
+
"type": "bytes"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"internalType": "uint64",
|
|
973
|
+
"name": "_nonce",
|
|
974
|
+
"type": "uint64"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"internalType": "bytes32",
|
|
978
|
+
"name": "_from",
|
|
979
|
+
"type": "bytes32"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"internalType": "address",
|
|
983
|
+
"name": "_to",
|
|
984
|
+
"type": "address"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"internalType": "uint256",
|
|
988
|
+
"name": "_amount",
|
|
989
|
+
"type": "uint256"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"internalType": "bytes",
|
|
993
|
+
"name": "_payload",
|
|
994
|
+
"type": "bytes"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"internalType": "uint256",
|
|
998
|
+
"name": "_gasForCall",
|
|
999
|
+
"type": "uint256"
|
|
1000
|
+
}
|
|
1001
|
+
],
|
|
1002
|
+
"name": "callOnOFTReceived",
|
|
1003
|
+
"outputs": [],
|
|
1004
|
+
"stateMutability": "nonpayable",
|
|
1005
|
+
"type": "function"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"inputs": [
|
|
1009
|
+
{
|
|
1010
|
+
"internalType": "address",
|
|
1011
|
+
"name": "account",
|
|
1012
|
+
"type": "address"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"internalType": "uint32",
|
|
1016
|
+
"name": "pos",
|
|
1017
|
+
"type": "uint32"
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
"name": "checkpoints",
|
|
1021
|
+
"outputs": [
|
|
1022
|
+
{
|
|
1023
|
+
"components": [
|
|
1024
|
+
{
|
|
1025
|
+
"internalType": "uint32",
|
|
1026
|
+
"name": "fromBlock",
|
|
1027
|
+
"type": "uint32"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"internalType": "uint224",
|
|
1031
|
+
"name": "votes",
|
|
1032
|
+
"type": "uint224"
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
"internalType": "struct ERC20Votes.Checkpoint",
|
|
1036
|
+
"name": "",
|
|
1037
|
+
"type": "tuple"
|
|
1038
|
+
}
|
|
1039
|
+
],
|
|
1040
|
+
"stateMutability": "view",
|
|
1041
|
+
"type": "function"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"inputs": [],
|
|
1045
|
+
"name": "circulatingSupply",
|
|
1046
|
+
"outputs": [
|
|
1047
|
+
{
|
|
1048
|
+
"internalType": "uint256",
|
|
1049
|
+
"name": "",
|
|
1050
|
+
"type": "uint256"
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"stateMutability": "view",
|
|
1054
|
+
"type": "function"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"inputs": [],
|
|
1058
|
+
"name": "clock",
|
|
1059
|
+
"outputs": [
|
|
1060
|
+
{
|
|
1061
|
+
"internalType": "uint48",
|
|
1062
|
+
"name": "",
|
|
1063
|
+
"type": "uint48"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"stateMutability": "view",
|
|
1067
|
+
"type": "function"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"inputs": [
|
|
1071
|
+
{
|
|
1072
|
+
"internalType": "uint16",
|
|
1073
|
+
"name": "",
|
|
1074
|
+
"type": "uint16"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"internalType": "bytes",
|
|
1078
|
+
"name": "",
|
|
1079
|
+
"type": "bytes"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"internalType": "uint64",
|
|
1083
|
+
"name": "",
|
|
1084
|
+
"type": "uint64"
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
"name": "creditedPackets",
|
|
1088
|
+
"outputs": [
|
|
1089
|
+
{
|
|
1090
|
+
"internalType": "bool",
|
|
1091
|
+
"name": "",
|
|
1092
|
+
"type": "bool"
|
|
1093
|
+
}
|
|
1094
|
+
],
|
|
1095
|
+
"stateMutability": "view",
|
|
1096
|
+
"type": "function"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"inputs": [],
|
|
1100
|
+
"name": "decimals",
|
|
1101
|
+
"outputs": [
|
|
1102
|
+
{
|
|
1103
|
+
"internalType": "uint8",
|
|
1104
|
+
"name": "",
|
|
1105
|
+
"type": "uint8"
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
"stateMutability": "view",
|
|
1109
|
+
"type": "function"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"inputs": [
|
|
1113
|
+
{
|
|
1114
|
+
"internalType": "address",
|
|
1115
|
+
"name": "spender",
|
|
1116
|
+
"type": "address"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"internalType": "uint256",
|
|
1120
|
+
"name": "subtractedValue",
|
|
1121
|
+
"type": "uint256"
|
|
1122
|
+
}
|
|
1123
|
+
],
|
|
1124
|
+
"name": "decreaseAllowance",
|
|
1125
|
+
"outputs": [
|
|
1126
|
+
{
|
|
1127
|
+
"internalType": "bool",
|
|
1128
|
+
"name": "",
|
|
1129
|
+
"type": "bool"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"stateMutability": "nonpayable",
|
|
1133
|
+
"type": "function"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"inputs": [
|
|
1137
|
+
{
|
|
1138
|
+
"internalType": "address",
|
|
1139
|
+
"name": "delegatee",
|
|
1140
|
+
"type": "address"
|
|
1141
|
+
}
|
|
1142
|
+
],
|
|
1143
|
+
"name": "delegate",
|
|
1144
|
+
"outputs": [],
|
|
1145
|
+
"stateMutability": "nonpayable",
|
|
1146
|
+
"type": "function"
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
"inputs": [
|
|
1150
|
+
{
|
|
1151
|
+
"internalType": "address",
|
|
1152
|
+
"name": "delegatee",
|
|
1153
|
+
"type": "address"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"internalType": "uint256",
|
|
1157
|
+
"name": "nonce",
|
|
1158
|
+
"type": "uint256"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"internalType": "uint256",
|
|
1162
|
+
"name": "expiry",
|
|
1163
|
+
"type": "uint256"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"internalType": "uint8",
|
|
1167
|
+
"name": "v",
|
|
1168
|
+
"type": "uint8"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"internalType": "bytes32",
|
|
1172
|
+
"name": "r",
|
|
1173
|
+
"type": "bytes32"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"internalType": "bytes32",
|
|
1177
|
+
"name": "s",
|
|
1178
|
+
"type": "bytes32"
|
|
1179
|
+
}
|
|
1180
|
+
],
|
|
1181
|
+
"name": "delegateBySig",
|
|
1182
|
+
"outputs": [],
|
|
1183
|
+
"stateMutability": "nonpayable",
|
|
1184
|
+
"type": "function"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"inputs": [
|
|
1188
|
+
{
|
|
1189
|
+
"internalType": "address",
|
|
1190
|
+
"name": "account",
|
|
1191
|
+
"type": "address"
|
|
1192
|
+
}
|
|
1193
|
+
],
|
|
1194
|
+
"name": "delegates",
|
|
1195
|
+
"outputs": [
|
|
1196
|
+
{
|
|
1197
|
+
"internalType": "address",
|
|
1198
|
+
"name": "",
|
|
1199
|
+
"type": "address"
|
|
1200
|
+
}
|
|
1201
|
+
],
|
|
1202
|
+
"stateMutability": "view",
|
|
1203
|
+
"type": "function"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"inputs": [],
|
|
1207
|
+
"name": "eip712Domain",
|
|
1208
|
+
"outputs": [
|
|
1209
|
+
{
|
|
1210
|
+
"internalType": "bytes1",
|
|
1211
|
+
"name": "fields",
|
|
1212
|
+
"type": "bytes1"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"internalType": "string",
|
|
1216
|
+
"name": "name",
|
|
1217
|
+
"type": "string"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"internalType": "string",
|
|
1221
|
+
"name": "version",
|
|
1222
|
+
"type": "string"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"internalType": "uint256",
|
|
1226
|
+
"name": "chainId",
|
|
1227
|
+
"type": "uint256"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"internalType": "address",
|
|
1231
|
+
"name": "verifyingContract",
|
|
1232
|
+
"type": "address"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"internalType": "bytes32",
|
|
1236
|
+
"name": "salt",
|
|
1237
|
+
"type": "bytes32"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"internalType": "uint256[]",
|
|
1241
|
+
"name": "extensions",
|
|
1242
|
+
"type": "uint256[]"
|
|
1243
|
+
}
|
|
1244
|
+
],
|
|
1245
|
+
"stateMutability": "view",
|
|
1246
|
+
"type": "function"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"inputs": [
|
|
1250
|
+
{
|
|
1251
|
+
"internalType": "uint16",
|
|
1252
|
+
"name": "_dstChainId",
|
|
1253
|
+
"type": "uint16"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"internalType": "bytes32",
|
|
1257
|
+
"name": "_toAddress",
|
|
1258
|
+
"type": "bytes32"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"internalType": "uint256",
|
|
1262
|
+
"name": "_amount",
|
|
1263
|
+
"type": "uint256"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"internalType": "bytes",
|
|
1267
|
+
"name": "_payload",
|
|
1268
|
+
"type": "bytes"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"internalType": "uint64",
|
|
1272
|
+
"name": "_dstGasForCall",
|
|
1273
|
+
"type": "uint64"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"internalType": "bool",
|
|
1277
|
+
"name": "_useZro",
|
|
1278
|
+
"type": "bool"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"internalType": "bytes",
|
|
1282
|
+
"name": "_adapterParams",
|
|
1283
|
+
"type": "bytes"
|
|
1284
|
+
}
|
|
1285
|
+
],
|
|
1286
|
+
"name": "estimateSendAndCallFee",
|
|
1287
|
+
"outputs": [
|
|
1288
|
+
{
|
|
1289
|
+
"internalType": "uint256",
|
|
1290
|
+
"name": "nativeFee",
|
|
1291
|
+
"type": "uint256"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"internalType": "uint256",
|
|
1295
|
+
"name": "zroFee",
|
|
1296
|
+
"type": "uint256"
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
"stateMutability": "view",
|
|
1300
|
+
"type": "function"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"inputs": [
|
|
1304
|
+
{
|
|
1305
|
+
"internalType": "uint16",
|
|
1306
|
+
"name": "_dstChainId",
|
|
1307
|
+
"type": "uint16"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"internalType": "bytes32",
|
|
1311
|
+
"name": "_toAddress",
|
|
1312
|
+
"type": "bytes32"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"internalType": "uint256",
|
|
1316
|
+
"name": "_amount",
|
|
1317
|
+
"type": "uint256"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"internalType": "bool",
|
|
1321
|
+
"name": "_useZro",
|
|
1322
|
+
"type": "bool"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"internalType": "bytes",
|
|
1326
|
+
"name": "_adapterParams",
|
|
1327
|
+
"type": "bytes"
|
|
1328
|
+
}
|
|
1329
|
+
],
|
|
1330
|
+
"name": "estimateSendFee",
|
|
1331
|
+
"outputs": [
|
|
1332
|
+
{
|
|
1333
|
+
"internalType": "uint256",
|
|
1334
|
+
"name": "nativeFee",
|
|
1335
|
+
"type": "uint256"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"internalType": "uint256",
|
|
1339
|
+
"name": "zroFee",
|
|
1340
|
+
"type": "uint256"
|
|
1341
|
+
}
|
|
1342
|
+
],
|
|
1343
|
+
"stateMutability": "view",
|
|
1344
|
+
"type": "function"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"inputs": [
|
|
1348
|
+
{
|
|
1349
|
+
"internalType": "uint16",
|
|
1350
|
+
"name": "",
|
|
1351
|
+
"type": "uint16"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"internalType": "bytes",
|
|
1355
|
+
"name": "",
|
|
1356
|
+
"type": "bytes"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"internalType": "uint64",
|
|
1360
|
+
"name": "",
|
|
1361
|
+
"type": "uint64"
|
|
1362
|
+
}
|
|
1363
|
+
],
|
|
1364
|
+
"name": "failedMessages",
|
|
1365
|
+
"outputs": [
|
|
1366
|
+
{
|
|
1367
|
+
"internalType": "bytes32",
|
|
1368
|
+
"name": "",
|
|
1369
|
+
"type": "bytes32"
|
|
1370
|
+
}
|
|
1371
|
+
],
|
|
1372
|
+
"stateMutability": "view",
|
|
1373
|
+
"type": "function"
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
"inputs": [
|
|
1377
|
+
{
|
|
1378
|
+
"internalType": "uint16",
|
|
1379
|
+
"name": "_srcChainId",
|
|
1380
|
+
"type": "uint16"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"internalType": "bytes",
|
|
1384
|
+
"name": "_srcAddress",
|
|
1385
|
+
"type": "bytes"
|
|
1386
|
+
}
|
|
1387
|
+
],
|
|
1388
|
+
"name": "forceResumeReceive",
|
|
1389
|
+
"outputs": [],
|
|
1390
|
+
"stateMutability": "nonpayable",
|
|
1391
|
+
"type": "function"
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"inputs": [
|
|
1395
|
+
{
|
|
1396
|
+
"internalType": "uint16",
|
|
1397
|
+
"name": "_version",
|
|
1398
|
+
"type": "uint16"
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"internalType": "uint16",
|
|
1402
|
+
"name": "_chainId",
|
|
1403
|
+
"type": "uint16"
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
"internalType": "address",
|
|
1407
|
+
"name": "",
|
|
1408
|
+
"type": "address"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"internalType": "uint256",
|
|
1412
|
+
"name": "_configType",
|
|
1413
|
+
"type": "uint256"
|
|
1414
|
+
}
|
|
1415
|
+
],
|
|
1416
|
+
"name": "getConfig",
|
|
1417
|
+
"outputs": [
|
|
1418
|
+
{
|
|
1419
|
+
"internalType": "bytes",
|
|
1420
|
+
"name": "",
|
|
1421
|
+
"type": "bytes"
|
|
1422
|
+
}
|
|
1423
|
+
],
|
|
1424
|
+
"stateMutability": "view",
|
|
1425
|
+
"type": "function"
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"inputs": [
|
|
1429
|
+
{
|
|
1430
|
+
"internalType": "uint256",
|
|
1431
|
+
"name": "timepoint",
|
|
1432
|
+
"type": "uint256"
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"name": "getPastTotalSupply",
|
|
1436
|
+
"outputs": [
|
|
1437
|
+
{
|
|
1438
|
+
"internalType": "uint256",
|
|
1439
|
+
"name": "",
|
|
1440
|
+
"type": "uint256"
|
|
1441
|
+
}
|
|
1442
|
+
],
|
|
1443
|
+
"stateMutability": "view",
|
|
1444
|
+
"type": "function"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"inputs": [
|
|
1448
|
+
{
|
|
1449
|
+
"internalType": "address",
|
|
1450
|
+
"name": "account",
|
|
1451
|
+
"type": "address"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"internalType": "uint256",
|
|
1455
|
+
"name": "timepoint",
|
|
1456
|
+
"type": "uint256"
|
|
1457
|
+
}
|
|
1458
|
+
],
|
|
1459
|
+
"name": "getPastVotes",
|
|
1460
|
+
"outputs": [
|
|
1461
|
+
{
|
|
1462
|
+
"internalType": "uint256",
|
|
1463
|
+
"name": "",
|
|
1464
|
+
"type": "uint256"
|
|
1465
|
+
}
|
|
1466
|
+
],
|
|
1467
|
+
"stateMutability": "view",
|
|
1468
|
+
"type": "function"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"inputs": [
|
|
1472
|
+
{
|
|
1473
|
+
"internalType": "uint16",
|
|
1474
|
+
"name": "_remoteChainId",
|
|
1475
|
+
"type": "uint16"
|
|
1476
|
+
}
|
|
1477
|
+
],
|
|
1478
|
+
"name": "getTrustedRemoteAddress",
|
|
1479
|
+
"outputs": [
|
|
1480
|
+
{
|
|
1481
|
+
"internalType": "bytes",
|
|
1482
|
+
"name": "",
|
|
1483
|
+
"type": "bytes"
|
|
1484
|
+
}
|
|
1485
|
+
],
|
|
1486
|
+
"stateMutability": "view",
|
|
1487
|
+
"type": "function"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"inputs": [
|
|
1491
|
+
{
|
|
1492
|
+
"internalType": "address",
|
|
1493
|
+
"name": "account",
|
|
1494
|
+
"type": "address"
|
|
1495
|
+
}
|
|
1496
|
+
],
|
|
1497
|
+
"name": "getVotes",
|
|
1498
|
+
"outputs": [
|
|
1499
|
+
{
|
|
1500
|
+
"internalType": "uint256",
|
|
1501
|
+
"name": "",
|
|
1502
|
+
"type": "uint256"
|
|
1503
|
+
}
|
|
1504
|
+
],
|
|
1505
|
+
"stateMutability": "view",
|
|
1506
|
+
"type": "function"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"inputs": [
|
|
1510
|
+
{
|
|
1511
|
+
"internalType": "address",
|
|
1512
|
+
"name": "spender",
|
|
1513
|
+
"type": "address"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"internalType": "uint256",
|
|
1517
|
+
"name": "addedValue",
|
|
1518
|
+
"type": "uint256"
|
|
1519
|
+
}
|
|
1520
|
+
],
|
|
1521
|
+
"name": "increaseAllowance",
|
|
1522
|
+
"outputs": [
|
|
1523
|
+
{
|
|
1524
|
+
"internalType": "bool",
|
|
1525
|
+
"name": "",
|
|
1526
|
+
"type": "bool"
|
|
1527
|
+
}
|
|
1528
|
+
],
|
|
1529
|
+
"stateMutability": "nonpayable",
|
|
1530
|
+
"type": "function"
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"inputs": [
|
|
1534
|
+
{
|
|
1535
|
+
"internalType": "address",
|
|
1536
|
+
"name": "_lzEndpoint",
|
|
1537
|
+
"type": "address"
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"internalType": "address",
|
|
1541
|
+
"name": "_buyTaxReceiver",
|
|
1542
|
+
"type": "address"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"internalType": "address",
|
|
1546
|
+
"name": "_antiMEVStrategy",
|
|
1547
|
+
"type": "address"
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"internalType": "address",
|
|
1551
|
+
"name": "_migrator",
|
|
1552
|
+
"type": "address"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"internalType": "uint256",
|
|
1556
|
+
"name": "_migratorMintSupply",
|
|
1557
|
+
"type": "uint256"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"internalType": "uint256",
|
|
1561
|
+
"name": "_buyTax",
|
|
1562
|
+
"type": "uint256"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"internalType": "uint256",
|
|
1566
|
+
"name": "_sellTax",
|
|
1567
|
+
"type": "uint256"
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"internalType": "bool",
|
|
1571
|
+
"name": "_isTaxingEnabled",
|
|
1572
|
+
"type": "bool"
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"internalType": "bool",
|
|
1576
|
+
"name": "_isAntiMEV",
|
|
1577
|
+
"type": "bool"
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"internalType": "bool",
|
|
1581
|
+
"name": "_isTransferBlacklisting",
|
|
1582
|
+
"type": "bool"
|
|
1583
|
+
}
|
|
1584
|
+
],
|
|
1585
|
+
"name": "initialize",
|
|
1586
|
+
"outputs": [],
|
|
1587
|
+
"stateMutability": "nonpayable",
|
|
1588
|
+
"type": "function"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"inputs": [
|
|
1592
|
+
{
|
|
1593
|
+
"internalType": "uint16",
|
|
1594
|
+
"name": "_srcChainId",
|
|
1595
|
+
"type": "uint16"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"internalType": "bytes",
|
|
1599
|
+
"name": "_srcAddress",
|
|
1600
|
+
"type": "bytes"
|
|
1601
|
+
}
|
|
1602
|
+
],
|
|
1603
|
+
"name": "isTrustedRemote",
|
|
1604
|
+
"outputs": [
|
|
1605
|
+
{
|
|
1606
|
+
"internalType": "bool",
|
|
1607
|
+
"name": "",
|
|
1608
|
+
"type": "bool"
|
|
1609
|
+
}
|
|
1610
|
+
],
|
|
1611
|
+
"stateMutability": "view",
|
|
1612
|
+
"type": "function"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"inputs": [],
|
|
1616
|
+
"name": "lzEndpoint",
|
|
1617
|
+
"outputs": [
|
|
1618
|
+
{
|
|
1619
|
+
"internalType": "contract ILayerZeroEndpoint",
|
|
1620
|
+
"name": "",
|
|
1621
|
+
"type": "address"
|
|
1622
|
+
}
|
|
1623
|
+
],
|
|
1624
|
+
"stateMutability": "view",
|
|
1625
|
+
"type": "function"
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"inputs": [
|
|
1629
|
+
{
|
|
1630
|
+
"internalType": "uint16",
|
|
1631
|
+
"name": "_srcChainId",
|
|
1632
|
+
"type": "uint16"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"internalType": "bytes",
|
|
1636
|
+
"name": "_srcAddress",
|
|
1637
|
+
"type": "bytes"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"internalType": "uint64",
|
|
1641
|
+
"name": "_nonce",
|
|
1642
|
+
"type": "uint64"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"internalType": "bytes",
|
|
1646
|
+
"name": "_payload",
|
|
1647
|
+
"type": "bytes"
|
|
1648
|
+
}
|
|
1649
|
+
],
|
|
1650
|
+
"name": "lzReceive",
|
|
1651
|
+
"outputs": [],
|
|
1652
|
+
"stateMutability": "nonpayable",
|
|
1653
|
+
"type": "function"
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"inputs": [
|
|
1657
|
+
{
|
|
1658
|
+
"internalType": "uint16",
|
|
1659
|
+
"name": "",
|
|
1660
|
+
"type": "uint16"
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"internalType": "uint16",
|
|
1664
|
+
"name": "",
|
|
1665
|
+
"type": "uint16"
|
|
1666
|
+
}
|
|
1667
|
+
],
|
|
1668
|
+
"name": "minDstGasLookup",
|
|
1669
|
+
"outputs": [
|
|
1670
|
+
{
|
|
1671
|
+
"internalType": "uint256",
|
|
1672
|
+
"name": "",
|
|
1673
|
+
"type": "uint256"
|
|
1674
|
+
}
|
|
1675
|
+
],
|
|
1676
|
+
"stateMutability": "view",
|
|
1677
|
+
"type": "function"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
"inputs": [],
|
|
1681
|
+
"name": "name",
|
|
1682
|
+
"outputs": [
|
|
1683
|
+
{
|
|
1684
|
+
"internalType": "string",
|
|
1685
|
+
"name": "",
|
|
1686
|
+
"type": "string"
|
|
1687
|
+
}
|
|
1688
|
+
],
|
|
1689
|
+
"stateMutability": "view",
|
|
1690
|
+
"type": "function"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"inputs": [
|
|
1694
|
+
{
|
|
1695
|
+
"internalType": "uint16",
|
|
1696
|
+
"name": "_srcChainId",
|
|
1697
|
+
"type": "uint16"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"internalType": "bytes",
|
|
1701
|
+
"name": "_srcAddress",
|
|
1702
|
+
"type": "bytes"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"internalType": "uint64",
|
|
1706
|
+
"name": "_nonce",
|
|
1707
|
+
"type": "uint64"
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"internalType": "bytes",
|
|
1711
|
+
"name": "_payload",
|
|
1712
|
+
"type": "bytes"
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
"name": "nonblockingLzReceive",
|
|
1716
|
+
"outputs": [],
|
|
1717
|
+
"stateMutability": "nonpayable",
|
|
1718
|
+
"type": "function"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"inputs": [
|
|
1722
|
+
{
|
|
1723
|
+
"internalType": "address",
|
|
1724
|
+
"name": "owner",
|
|
1725
|
+
"type": "address"
|
|
1726
|
+
}
|
|
1727
|
+
],
|
|
1728
|
+
"name": "nonces",
|
|
1729
|
+
"outputs": [
|
|
1730
|
+
{
|
|
1731
|
+
"internalType": "uint256",
|
|
1732
|
+
"name": "",
|
|
1733
|
+
"type": "uint256"
|
|
1734
|
+
}
|
|
1735
|
+
],
|
|
1736
|
+
"stateMutability": "view",
|
|
1737
|
+
"type": "function"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"inputs": [
|
|
1741
|
+
{
|
|
1742
|
+
"internalType": "address",
|
|
1743
|
+
"name": "account",
|
|
1744
|
+
"type": "address"
|
|
1745
|
+
}
|
|
1746
|
+
],
|
|
1747
|
+
"name": "numCheckpoints",
|
|
1748
|
+
"outputs": [
|
|
1749
|
+
{
|
|
1750
|
+
"internalType": "uint32",
|
|
1751
|
+
"name": "",
|
|
1752
|
+
"type": "uint32"
|
|
1753
|
+
}
|
|
1754
|
+
],
|
|
1755
|
+
"stateMutability": "view",
|
|
1756
|
+
"type": "function"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"inputs": [],
|
|
1760
|
+
"name": "owner",
|
|
1761
|
+
"outputs": [
|
|
1762
|
+
{
|
|
1763
|
+
"internalType": "address",
|
|
1764
|
+
"name": "",
|
|
1765
|
+
"type": "address"
|
|
1766
|
+
}
|
|
1767
|
+
],
|
|
1768
|
+
"stateMutability": "view",
|
|
1769
|
+
"type": "function"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"inputs": [
|
|
1773
|
+
{
|
|
1774
|
+
"internalType": "uint16",
|
|
1775
|
+
"name": "",
|
|
1776
|
+
"type": "uint16"
|
|
1777
|
+
}
|
|
1778
|
+
],
|
|
1779
|
+
"name": "payloadSizeLimitLookup",
|
|
1780
|
+
"outputs": [
|
|
1781
|
+
{
|
|
1782
|
+
"internalType": "uint256",
|
|
1783
|
+
"name": "",
|
|
1784
|
+
"type": "uint256"
|
|
1785
|
+
}
|
|
1786
|
+
],
|
|
1787
|
+
"stateMutability": "view",
|
|
1788
|
+
"type": "function"
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
"inputs": [
|
|
1792
|
+
{
|
|
1793
|
+
"internalType": "address",
|
|
1794
|
+
"name": "owner",
|
|
1795
|
+
"type": "address"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"internalType": "address",
|
|
1799
|
+
"name": "spender",
|
|
1800
|
+
"type": "address"
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"internalType": "uint256",
|
|
1804
|
+
"name": "value",
|
|
1805
|
+
"type": "uint256"
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"internalType": "uint256",
|
|
1809
|
+
"name": "deadline",
|
|
1810
|
+
"type": "uint256"
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"internalType": "uint8",
|
|
1814
|
+
"name": "v",
|
|
1815
|
+
"type": "uint8"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"internalType": "bytes32",
|
|
1819
|
+
"name": "r",
|
|
1820
|
+
"type": "bytes32"
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"internalType": "bytes32",
|
|
1824
|
+
"name": "s",
|
|
1825
|
+
"type": "bytes32"
|
|
1826
|
+
}
|
|
1827
|
+
],
|
|
1828
|
+
"name": "permit",
|
|
1829
|
+
"outputs": [],
|
|
1830
|
+
"stateMutability": "nonpayable",
|
|
1831
|
+
"type": "function"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"inputs": [],
|
|
1835
|
+
"name": "precrime",
|
|
1836
|
+
"outputs": [
|
|
1837
|
+
{
|
|
1838
|
+
"internalType": "address",
|
|
1839
|
+
"name": "",
|
|
1840
|
+
"type": "address"
|
|
1841
|
+
}
|
|
1842
|
+
],
|
|
1843
|
+
"stateMutability": "view",
|
|
1844
|
+
"type": "function"
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"inputs": [
|
|
1848
|
+
{
|
|
1849
|
+
"internalType": "contract IERC20",
|
|
1850
|
+
"name": "_token",
|
|
1851
|
+
"type": "address"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"internalType": "uint256",
|
|
1855
|
+
"name": "_amount",
|
|
1856
|
+
"type": "uint256"
|
|
1857
|
+
}
|
|
1858
|
+
],
|
|
1859
|
+
"name": "recoverToken",
|
|
1860
|
+
"outputs": [],
|
|
1861
|
+
"stateMutability": "nonpayable",
|
|
1862
|
+
"type": "function"
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
"inputs": [],
|
|
1866
|
+
"name": "renounceOwnership",
|
|
1867
|
+
"outputs": [],
|
|
1868
|
+
"stateMutability": "nonpayable",
|
|
1869
|
+
"type": "function"
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
"inputs": [
|
|
1873
|
+
{
|
|
1874
|
+
"internalType": "uint16",
|
|
1875
|
+
"name": "_srcChainId",
|
|
1876
|
+
"type": "uint16"
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"internalType": "bytes",
|
|
1880
|
+
"name": "_srcAddress",
|
|
1881
|
+
"type": "bytes"
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
"internalType": "uint64",
|
|
1885
|
+
"name": "_nonce",
|
|
1886
|
+
"type": "uint64"
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"internalType": "bytes",
|
|
1890
|
+
"name": "_payload",
|
|
1891
|
+
"type": "bytes"
|
|
1892
|
+
}
|
|
1893
|
+
],
|
|
1894
|
+
"name": "retryMessage",
|
|
1895
|
+
"outputs": [],
|
|
1896
|
+
"stateMutability": "payable",
|
|
1897
|
+
"type": "function"
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
"inputs": [
|
|
1901
|
+
{
|
|
1902
|
+
"internalType": "address",
|
|
1903
|
+
"name": "_from",
|
|
1904
|
+
"type": "address"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"internalType": "uint16",
|
|
1908
|
+
"name": "_dstChainId",
|
|
1909
|
+
"type": "uint16"
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"internalType": "bytes32",
|
|
1913
|
+
"name": "_toAddress",
|
|
1914
|
+
"type": "bytes32"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
"internalType": "uint256",
|
|
1918
|
+
"name": "_amount",
|
|
1919
|
+
"type": "uint256"
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
"internalType": "bytes",
|
|
1923
|
+
"name": "_payload",
|
|
1924
|
+
"type": "bytes"
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
"internalType": "uint64",
|
|
1928
|
+
"name": "_dstGasForCall",
|
|
1929
|
+
"type": "uint64"
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
"components": [
|
|
1933
|
+
{
|
|
1934
|
+
"internalType": "address payable",
|
|
1935
|
+
"name": "refundAddress",
|
|
1936
|
+
"type": "address"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"internalType": "address",
|
|
1940
|
+
"name": "zroPaymentAddress",
|
|
1941
|
+
"type": "address"
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"internalType": "bytes",
|
|
1945
|
+
"name": "adapterParams",
|
|
1946
|
+
"type": "bytes"
|
|
1947
|
+
}
|
|
1948
|
+
],
|
|
1949
|
+
"internalType": "struct ICommonOFT.LzCallParams",
|
|
1950
|
+
"name": "_callParams",
|
|
1951
|
+
"type": "tuple"
|
|
1952
|
+
}
|
|
1953
|
+
],
|
|
1954
|
+
"name": "sendAndCall",
|
|
1955
|
+
"outputs": [],
|
|
1956
|
+
"stateMutability": "payable",
|
|
1957
|
+
"type": "function"
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
"inputs": [
|
|
1961
|
+
{
|
|
1962
|
+
"internalType": "address",
|
|
1963
|
+
"name": "_from",
|
|
1964
|
+
"type": "address"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"internalType": "uint16",
|
|
1968
|
+
"name": "_dstChainId",
|
|
1969
|
+
"type": "uint16"
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"internalType": "bytes32",
|
|
1973
|
+
"name": "_toAddress",
|
|
1974
|
+
"type": "bytes32"
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"internalType": "uint256",
|
|
1978
|
+
"name": "_amount",
|
|
1979
|
+
"type": "uint256"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"components": [
|
|
1983
|
+
{
|
|
1984
|
+
"internalType": "address payable",
|
|
1985
|
+
"name": "refundAddress",
|
|
1986
|
+
"type": "address"
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"internalType": "address",
|
|
1990
|
+
"name": "zroPaymentAddress",
|
|
1991
|
+
"type": "address"
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"internalType": "bytes",
|
|
1995
|
+
"name": "adapterParams",
|
|
1996
|
+
"type": "bytes"
|
|
1997
|
+
}
|
|
1998
|
+
],
|
|
1999
|
+
"internalType": "struct ICommonOFT.LzCallParams",
|
|
2000
|
+
"name": "_callParams",
|
|
2001
|
+
"type": "tuple"
|
|
2002
|
+
}
|
|
2003
|
+
],
|
|
2004
|
+
"name": "sendFrom",
|
|
2005
|
+
"outputs": [],
|
|
2006
|
+
"stateMutability": "payable",
|
|
2007
|
+
"type": "function"
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"inputs": [
|
|
2011
|
+
{
|
|
2012
|
+
"internalType": "contract IAntiMevStrategy",
|
|
2013
|
+
"name": "_antiMEVStrategy",
|
|
2014
|
+
"type": "address"
|
|
2015
|
+
}
|
|
2016
|
+
],
|
|
2017
|
+
"name": "setAntiMevStrategy",
|
|
2018
|
+
"outputs": [],
|
|
2019
|
+
"stateMutability": "nonpayable",
|
|
2020
|
+
"type": "function"
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"inputs": [
|
|
2024
|
+
{
|
|
2025
|
+
"internalType": "address",
|
|
2026
|
+
"name": "_buyTaxReceiver",
|
|
2027
|
+
"type": "address"
|
|
2028
|
+
}
|
|
2029
|
+
],
|
|
2030
|
+
"name": "setBuyTaxReceiver",
|
|
2031
|
+
"outputs": [],
|
|
2032
|
+
"stateMutability": "nonpayable",
|
|
2033
|
+
"type": "function"
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"inputs": [
|
|
2037
|
+
{
|
|
2038
|
+
"internalType": "uint16",
|
|
2039
|
+
"name": "_version",
|
|
2040
|
+
"type": "uint16"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"internalType": "uint16",
|
|
2044
|
+
"name": "_chainId",
|
|
2045
|
+
"type": "uint16"
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
"internalType": "uint256",
|
|
2049
|
+
"name": "_configType",
|
|
2050
|
+
"type": "uint256"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"internalType": "bytes",
|
|
2054
|
+
"name": "_config",
|
|
2055
|
+
"type": "bytes"
|
|
2056
|
+
}
|
|
2057
|
+
],
|
|
2058
|
+
"name": "setConfig",
|
|
2059
|
+
"outputs": [],
|
|
2060
|
+
"stateMutability": "nonpayable",
|
|
2061
|
+
"type": "function"
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"inputs": [
|
|
2065
|
+
{
|
|
2066
|
+
"internalType": "bool",
|
|
2067
|
+
"name": "_isAntiMEV",
|
|
2068
|
+
"type": "bool"
|
|
2069
|
+
}
|
|
2070
|
+
],
|
|
2071
|
+
"name": "setIsAntiMEV",
|
|
2072
|
+
"outputs": [],
|
|
2073
|
+
"stateMutability": "nonpayable",
|
|
2074
|
+
"type": "function"
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
"inputs": [
|
|
2078
|
+
{
|
|
2079
|
+
"internalType": "bool",
|
|
2080
|
+
"name": "_isBlacklisting",
|
|
2081
|
+
"type": "bool"
|
|
2082
|
+
}
|
|
2083
|
+
],
|
|
2084
|
+
"name": "setIsTransferBlacklisting",
|
|
2085
|
+
"outputs": [],
|
|
2086
|
+
"stateMutability": "nonpayable",
|
|
2087
|
+
"type": "function"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"inputs": [
|
|
2091
|
+
{
|
|
2092
|
+
"internalType": "uint16",
|
|
2093
|
+
"name": "_dstChainId",
|
|
2094
|
+
"type": "uint16"
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"internalType": "uint16",
|
|
2098
|
+
"name": "_packetType",
|
|
2099
|
+
"type": "uint16"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"internalType": "uint256",
|
|
2103
|
+
"name": "_minGas",
|
|
2104
|
+
"type": "uint256"
|
|
2105
|
+
}
|
|
2106
|
+
],
|
|
2107
|
+
"name": "setMinDstGas",
|
|
2108
|
+
"outputs": [],
|
|
2109
|
+
"stateMutability": "nonpayable",
|
|
2110
|
+
"type": "function"
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
"inputs": [
|
|
2114
|
+
{
|
|
2115
|
+
"internalType": "uint16",
|
|
2116
|
+
"name": "_dstChainId",
|
|
2117
|
+
"type": "uint16"
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"internalType": "uint256",
|
|
2121
|
+
"name": "_size",
|
|
2122
|
+
"type": "uint256"
|
|
2123
|
+
}
|
|
2124
|
+
],
|
|
2125
|
+
"name": "setPayloadSizeLimit",
|
|
2126
|
+
"outputs": [],
|
|
2127
|
+
"stateMutability": "nonpayable",
|
|
2128
|
+
"type": "function"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"inputs": [
|
|
2132
|
+
{
|
|
2133
|
+
"internalType": "address",
|
|
2134
|
+
"name": "_precrime",
|
|
2135
|
+
"type": "address"
|
|
2136
|
+
}
|
|
2137
|
+
],
|
|
2138
|
+
"name": "setPrecrime",
|
|
2139
|
+
"outputs": [],
|
|
2140
|
+
"stateMutability": "nonpayable",
|
|
2141
|
+
"type": "function"
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"inputs": [
|
|
2145
|
+
{
|
|
2146
|
+
"internalType": "uint16",
|
|
2147
|
+
"name": "_version",
|
|
2148
|
+
"type": "uint16"
|
|
2149
|
+
}
|
|
2150
|
+
],
|
|
2151
|
+
"name": "setReceiveVersion",
|
|
2152
|
+
"outputs": [],
|
|
2153
|
+
"stateMutability": "nonpayable",
|
|
2154
|
+
"type": "function"
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
"inputs": [
|
|
2158
|
+
{
|
|
2159
|
+
"internalType": "uint16",
|
|
2160
|
+
"name": "_version",
|
|
2161
|
+
"type": "uint16"
|
|
2162
|
+
}
|
|
2163
|
+
],
|
|
2164
|
+
"name": "setSendVersion",
|
|
2165
|
+
"outputs": [],
|
|
2166
|
+
"stateMutability": "nonpayable",
|
|
2167
|
+
"type": "function"
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
"inputs": [
|
|
2171
|
+
{
|
|
2172
|
+
"internalType": "uint256",
|
|
2173
|
+
"name": "_buyTax",
|
|
2174
|
+
"type": "uint256"
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"internalType": "uint256",
|
|
2178
|
+
"name": "_sellTax",
|
|
2179
|
+
"type": "uint256"
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
"internalType": "bool",
|
|
2183
|
+
"name": "_isTaxingEnabled",
|
|
2184
|
+
"type": "bool"
|
|
2185
|
+
}
|
|
2186
|
+
],
|
|
2187
|
+
"name": "setTax",
|
|
2188
|
+
"outputs": [],
|
|
2189
|
+
"stateMutability": "nonpayable",
|
|
2190
|
+
"type": "function"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
"inputs": [
|
|
2194
|
+
{
|
|
2195
|
+
"internalType": "address",
|
|
2196
|
+
"name": "_whitelist",
|
|
2197
|
+
"type": "address"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"internalType": "bool",
|
|
2201
|
+
"name": "_isWhitelisted",
|
|
2202
|
+
"type": "bool"
|
|
2203
|
+
}
|
|
2204
|
+
],
|
|
2205
|
+
"name": "setTaxWhitelist",
|
|
2206
|
+
"outputs": [],
|
|
2207
|
+
"stateMutability": "nonpayable",
|
|
2208
|
+
"type": "function"
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"inputs": [
|
|
2212
|
+
{
|
|
2213
|
+
"internalType": "address",
|
|
2214
|
+
"name": "_taxableContract",
|
|
2215
|
+
"type": "address"
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
"internalType": "bool",
|
|
2219
|
+
"name": "_isTaxable",
|
|
2220
|
+
"type": "bool"
|
|
2221
|
+
}
|
|
2222
|
+
],
|
|
2223
|
+
"name": "setTaxableContract",
|
|
2224
|
+
"outputs": [],
|
|
2225
|
+
"stateMutability": "nonpayable",
|
|
2226
|
+
"type": "function"
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
"inputs": [
|
|
2230
|
+
{
|
|
2231
|
+
"internalType": "address",
|
|
2232
|
+
"name": "_blacklist",
|
|
2233
|
+
"type": "address"
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"internalType": "bool",
|
|
2237
|
+
"name": "_isBlacklisted",
|
|
2238
|
+
"type": "bool"
|
|
2239
|
+
}
|
|
2240
|
+
],
|
|
2241
|
+
"name": "setTransferBlacklist",
|
|
2242
|
+
"outputs": [],
|
|
2243
|
+
"stateMutability": "nonpayable",
|
|
2244
|
+
"type": "function"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"inputs": [
|
|
2248
|
+
{
|
|
2249
|
+
"internalType": "uint16",
|
|
2250
|
+
"name": "_remoteChainId",
|
|
2251
|
+
"type": "uint16"
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"internalType": "bytes",
|
|
2255
|
+
"name": "_path",
|
|
2256
|
+
"type": "bytes"
|
|
2257
|
+
}
|
|
2258
|
+
],
|
|
2259
|
+
"name": "setTrustedRemote",
|
|
2260
|
+
"outputs": [],
|
|
2261
|
+
"stateMutability": "nonpayable",
|
|
2262
|
+
"type": "function"
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
"inputs": [
|
|
2266
|
+
{
|
|
2267
|
+
"internalType": "uint16",
|
|
2268
|
+
"name": "_remoteChainId",
|
|
2269
|
+
"type": "uint16"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"internalType": "bytes",
|
|
2273
|
+
"name": "_remoteAddress",
|
|
2274
|
+
"type": "bytes"
|
|
2275
|
+
}
|
|
2276
|
+
],
|
|
2277
|
+
"name": "setTrustedRemoteAddress",
|
|
2278
|
+
"outputs": [],
|
|
2279
|
+
"stateMutability": "nonpayable",
|
|
2280
|
+
"type": "function"
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"inputs": [
|
|
2284
|
+
{
|
|
2285
|
+
"internalType": "bool",
|
|
2286
|
+
"name": "_useCustomAdapterParams",
|
|
2287
|
+
"type": "bool"
|
|
2288
|
+
}
|
|
2289
|
+
],
|
|
2290
|
+
"name": "setUseCustomAdapterParams",
|
|
2291
|
+
"outputs": [],
|
|
2292
|
+
"stateMutability": "nonpayable",
|
|
2293
|
+
"type": "function"
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
"inputs": [],
|
|
2297
|
+
"name": "sharedDecimals",
|
|
2298
|
+
"outputs": [
|
|
2299
|
+
{
|
|
2300
|
+
"internalType": "uint8",
|
|
2301
|
+
"name": "",
|
|
2302
|
+
"type": "uint8"
|
|
2303
|
+
}
|
|
2304
|
+
],
|
|
2305
|
+
"stateMutability": "view",
|
|
2306
|
+
"type": "function"
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
"inputs": [
|
|
2310
|
+
{
|
|
2311
|
+
"internalType": "bytes4",
|
|
2312
|
+
"name": "interfaceId",
|
|
2313
|
+
"type": "bytes4"
|
|
2314
|
+
}
|
|
2315
|
+
],
|
|
2316
|
+
"name": "supportsInterface",
|
|
2317
|
+
"outputs": [
|
|
2318
|
+
{
|
|
2319
|
+
"internalType": "bool",
|
|
2320
|
+
"name": "",
|
|
2321
|
+
"type": "bool"
|
|
2322
|
+
}
|
|
2323
|
+
],
|
|
2324
|
+
"stateMutability": "view",
|
|
2325
|
+
"type": "function"
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"inputs": [],
|
|
2329
|
+
"name": "symbol",
|
|
2330
|
+
"outputs": [
|
|
2331
|
+
{
|
|
2332
|
+
"internalType": "string",
|
|
2333
|
+
"name": "",
|
|
2334
|
+
"type": "string"
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
"stateMutability": "view",
|
|
2338
|
+
"type": "function"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"inputs": [],
|
|
2342
|
+
"name": "token",
|
|
2343
|
+
"outputs": [
|
|
2344
|
+
{
|
|
2345
|
+
"internalType": "address",
|
|
2346
|
+
"name": "",
|
|
2347
|
+
"type": "address"
|
|
2348
|
+
}
|
|
2349
|
+
],
|
|
2350
|
+
"stateMutability": "view",
|
|
2351
|
+
"type": "function"
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"inputs": [],
|
|
2355
|
+
"name": "totalSupply",
|
|
2356
|
+
"outputs": [
|
|
2357
|
+
{
|
|
2358
|
+
"internalType": "uint256",
|
|
2359
|
+
"name": "",
|
|
2360
|
+
"type": "uint256"
|
|
2361
|
+
}
|
|
2362
|
+
],
|
|
2363
|
+
"stateMutability": "view",
|
|
2364
|
+
"type": "function"
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"inputs": [
|
|
2368
|
+
{
|
|
2369
|
+
"internalType": "address",
|
|
2370
|
+
"name": "to",
|
|
2371
|
+
"type": "address"
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"internalType": "uint256",
|
|
2375
|
+
"name": "amount",
|
|
2376
|
+
"type": "uint256"
|
|
2377
|
+
}
|
|
2378
|
+
],
|
|
2379
|
+
"name": "transfer",
|
|
2380
|
+
"outputs": [
|
|
2381
|
+
{
|
|
2382
|
+
"internalType": "bool",
|
|
2383
|
+
"name": "",
|
|
2384
|
+
"type": "bool"
|
|
2385
|
+
}
|
|
2386
|
+
],
|
|
2387
|
+
"stateMutability": "nonpayable",
|
|
2388
|
+
"type": "function"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"inputs": [
|
|
2392
|
+
{
|
|
2393
|
+
"internalType": "address",
|
|
2394
|
+
"name": "from",
|
|
2395
|
+
"type": "address"
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
"internalType": "address",
|
|
2399
|
+
"name": "to",
|
|
2400
|
+
"type": "address"
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
"internalType": "uint256",
|
|
2404
|
+
"name": "amount",
|
|
2405
|
+
"type": "uint256"
|
|
2406
|
+
}
|
|
2407
|
+
],
|
|
2408
|
+
"name": "transferFrom",
|
|
2409
|
+
"outputs": [
|
|
2410
|
+
{
|
|
2411
|
+
"internalType": "bool",
|
|
2412
|
+
"name": "",
|
|
2413
|
+
"type": "bool"
|
|
2414
|
+
}
|
|
2415
|
+
],
|
|
2416
|
+
"stateMutability": "nonpayable",
|
|
2417
|
+
"type": "function"
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
"inputs": [
|
|
2421
|
+
{
|
|
2422
|
+
"internalType": "address",
|
|
2423
|
+
"name": "newOwner",
|
|
2424
|
+
"type": "address"
|
|
2425
|
+
}
|
|
2426
|
+
],
|
|
2427
|
+
"name": "transferOwnership",
|
|
2428
|
+
"outputs": [],
|
|
2429
|
+
"stateMutability": "nonpayable",
|
|
2430
|
+
"type": "function"
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
"inputs": [
|
|
2434
|
+
{
|
|
2435
|
+
"internalType": "uint16",
|
|
2436
|
+
"name": "",
|
|
2437
|
+
"type": "uint16"
|
|
2438
|
+
}
|
|
2439
|
+
],
|
|
2440
|
+
"name": "trustedRemoteLookup",
|
|
2441
|
+
"outputs": [
|
|
2442
|
+
{
|
|
2443
|
+
"internalType": "bytes",
|
|
2444
|
+
"name": "",
|
|
2445
|
+
"type": "bytes"
|
|
2446
|
+
}
|
|
2447
|
+
],
|
|
2448
|
+
"stateMutability": "view",
|
|
2449
|
+
"type": "function"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"inputs": [],
|
|
2453
|
+
"name": "useCustomAdapterParams",
|
|
2454
|
+
"outputs": [
|
|
2455
|
+
{
|
|
2456
|
+
"internalType": "bool",
|
|
2457
|
+
"name": "",
|
|
2458
|
+
"type": "bool"
|
|
2459
|
+
}
|
|
2460
|
+
],
|
|
2461
|
+
"stateMutability": "view",
|
|
2462
|
+
"type": "function"
|
|
2463
|
+
}
|
|
2464
|
+
] as const satisfies Abi;
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* Type-safe ABI for BenCoinV2
|
|
2468
|
+
*/
|
|
2469
|
+
export type BenCoinV2Abi = typeof BenCoinV2Abi;
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* Contract instance type for BenCoinV2
|
|
2473
|
+
*/
|
|
2474
|
+
// Use any for contract type to avoid complex viem type issues
|
|
2475
|
+
// The runtime behavior is type-safe through viem's ABI typing
|
|
2476
|
+
export type BenCoinV2Contract = any;
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* BenCoinV2 Contract Class
|
|
2480
|
+
*
|
|
2481
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
2482
|
+
*
|
|
2483
|
+
* @example
|
|
2484
|
+
* ```typescript
|
|
2485
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
2486
|
+
* import { mainnet } from 'viem/chains';
|
|
2487
|
+
* import { BenCoinV2 } from 'BenCoinV2';
|
|
2488
|
+
*
|
|
2489
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
2490
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
2491
|
+
*
|
|
2492
|
+
* const contract = new BenCoinV2('0x...', { publicClient, walletClient });
|
|
2493
|
+
*
|
|
2494
|
+
* // Read functions
|
|
2495
|
+
* const result = await contract.balanceOf('0x...');
|
|
2496
|
+
*
|
|
2497
|
+
* // Write functions
|
|
2498
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
2499
|
+
*
|
|
2500
|
+
* // Simulate transactions (dry-run)
|
|
2501
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
2502
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
2503
|
+
*
|
|
2504
|
+
* // Watch events
|
|
2505
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2506
|
+
* console.log('Transfer event:', event);
|
|
2507
|
+
* });
|
|
2508
|
+
* ```
|
|
2509
|
+
*/
|
|
2510
|
+
export class BenCoinV2 {
|
|
2511
|
+
private contract: BenCoinV2Contract;
|
|
2512
|
+
private contractAddress: Address;
|
|
2513
|
+
private publicClient: PublicClient;
|
|
2514
|
+
|
|
2515
|
+
constructor(
|
|
2516
|
+
address: Address,
|
|
2517
|
+
clients: {
|
|
2518
|
+
publicClient: PublicClient;
|
|
2519
|
+
walletClient?: WalletClient;
|
|
2520
|
+
}
|
|
2521
|
+
) {
|
|
2522
|
+
this.contractAddress = address;
|
|
2523
|
+
this.publicClient = clients.publicClient;
|
|
2524
|
+
this.contract = getContract({
|
|
2525
|
+
address,
|
|
2526
|
+
abi: BenCoinV2Abi,
|
|
2527
|
+
client: {
|
|
2528
|
+
public: clients.publicClient,
|
|
2529
|
+
wallet: clients.walletClient,
|
|
2530
|
+
},
|
|
2531
|
+
});
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* Get the contract address
|
|
2536
|
+
*/
|
|
2537
|
+
get address(): Address {
|
|
2538
|
+
return this.contractAddress;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Get the underlying viem contract instance.
|
|
2543
|
+
*/
|
|
2544
|
+
getContract(): BenCoinV2Contract {
|
|
2545
|
+
return this.contract;
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* CLOCK_MODE
|
|
2550
|
+
* view
|
|
2551
|
+
*/
|
|
2552
|
+
async CLOCK_MODE(): Promise<string> {
|
|
2553
|
+
return this.contract.read.CLOCK_MODE() as Promise<string>;
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* DEFAULT_PAYLOAD_SIZE_LIMIT
|
|
2558
|
+
* view
|
|
2559
|
+
*/
|
|
2560
|
+
async DEFAULT_PAYLOAD_SIZE_LIMIT(): Promise<bigint> {
|
|
2561
|
+
return this.contract.read.DEFAULT_PAYLOAD_SIZE_LIMIT() as Promise<bigint>;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* DOMAIN_SEPARATOR
|
|
2566
|
+
* view
|
|
2567
|
+
*/
|
|
2568
|
+
async DOMAIN_SEPARATOR(): Promise<`0x${string}`> {
|
|
2569
|
+
return this.contract.read.DOMAIN_SEPARATOR() as Promise<`0x${string}`>;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
/**
|
|
2573
|
+
* NO_EXTRA_GAS
|
|
2574
|
+
* view
|
|
2575
|
+
*/
|
|
2576
|
+
async NO_EXTRA_GAS(): Promise<bigint> {
|
|
2577
|
+
return this.contract.read.NO_EXTRA_GAS() as Promise<bigint>;
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
/**
|
|
2581
|
+
* PT_SEND
|
|
2582
|
+
* view
|
|
2583
|
+
*/
|
|
2584
|
+
async PT_SEND(): Promise<bigint> {
|
|
2585
|
+
return this.contract.read.PT_SEND() as Promise<bigint>;
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* PT_SEND_AND_CALL
|
|
2590
|
+
* view
|
|
2591
|
+
*/
|
|
2592
|
+
async PT_SEND_AND_CALL(): Promise<bigint> {
|
|
2593
|
+
return this.contract.read.PT_SEND_AND_CALL() as Promise<bigint>;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* allowance
|
|
2598
|
+
* view
|
|
2599
|
+
*/
|
|
2600
|
+
async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
2601
|
+
return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* balanceOf
|
|
2606
|
+
* view
|
|
2607
|
+
*/
|
|
2608
|
+
async balanceOf(account: `0x${string}`): Promise<bigint> {
|
|
2609
|
+
return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* checkpoints
|
|
2614
|
+
* view
|
|
2615
|
+
*/
|
|
2616
|
+
async checkpoints(account: `0x${string}`, pos: bigint): Promise<ERC20Votes_Checkpoint> {
|
|
2617
|
+
return this.contract.read.checkpoints([account, pos] as const) as Promise<ERC20Votes_Checkpoint>;
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
/**
|
|
2621
|
+
* circulatingSupply
|
|
2622
|
+
* view
|
|
2623
|
+
*/
|
|
2624
|
+
async circulatingSupply(): Promise<bigint> {
|
|
2625
|
+
return this.contract.read.circulatingSupply() as Promise<bigint>;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
/**
|
|
2629
|
+
* clock
|
|
2630
|
+
* view
|
|
2631
|
+
*/
|
|
2632
|
+
async clock(): Promise<bigint> {
|
|
2633
|
+
return this.contract.read.clock() as Promise<bigint>;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* creditedPackets
|
|
2638
|
+
* view
|
|
2639
|
+
*/
|
|
2640
|
+
async creditedPackets(arg0: bigint, arg1: `0x${string}`, arg2: bigint): Promise<boolean> {
|
|
2641
|
+
return this.contract.read.creditedPackets([arg0, arg1, arg2] as const) as Promise<boolean>;
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
/**
|
|
2645
|
+
* decimals
|
|
2646
|
+
* view
|
|
2647
|
+
*/
|
|
2648
|
+
async decimals(): Promise<bigint> {
|
|
2649
|
+
return this.contract.read.decimals() as Promise<bigint>;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* delegates
|
|
2654
|
+
* view
|
|
2655
|
+
*/
|
|
2656
|
+
async delegates(account: `0x${string}`): Promise<`0x${string}`> {
|
|
2657
|
+
return this.contract.read.delegates([account] as const) as Promise<`0x${string}`>;
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* eip712Domain
|
|
2662
|
+
* view
|
|
2663
|
+
*/
|
|
2664
|
+
async eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]> {
|
|
2665
|
+
return this.contract.read.eip712Domain() as Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* estimateSendAndCallFee
|
|
2670
|
+
* view
|
|
2671
|
+
*/
|
|
2672
|
+
async estimateSendAndCallFee(_dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _dstGasForCall: bigint, _useZro: boolean, _adapterParams: `0x${string}`): Promise<[bigint, bigint]> {
|
|
2673
|
+
return this.contract.read.estimateSendAndCallFee([_dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _useZro, _adapterParams] as const) as Promise<[bigint, bigint]>;
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* estimateSendFee
|
|
2678
|
+
* view
|
|
2679
|
+
*/
|
|
2680
|
+
async estimateSendFee(_dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _useZro: boolean, _adapterParams: `0x${string}`): Promise<[bigint, bigint]> {
|
|
2681
|
+
return this.contract.read.estimateSendFee([_dstChainId, _toAddress, _amount, _useZro, _adapterParams] as const) as Promise<[bigint, bigint]>;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* failedMessages
|
|
2686
|
+
* view
|
|
2687
|
+
*/
|
|
2688
|
+
async failedMessages(arg0: bigint, arg1: `0x${string}`, arg2: bigint): Promise<`0x${string}`> {
|
|
2689
|
+
return this.contract.read.failedMessages([arg0, arg1, arg2] as const) as Promise<`0x${string}`>;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
/**
|
|
2693
|
+
* getConfig
|
|
2694
|
+
* view
|
|
2695
|
+
*/
|
|
2696
|
+
async getConfig(_version: bigint, _chainId: bigint, arg2: `0x${string}`, _configType: bigint): Promise<`0x${string}`> {
|
|
2697
|
+
return this.contract.read.getConfig([_version, _chainId, arg2, _configType] as const) as Promise<`0x${string}`>;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
/**
|
|
2701
|
+
* getPastTotalSupply
|
|
2702
|
+
* view
|
|
2703
|
+
*/
|
|
2704
|
+
async getPastTotalSupply(timepoint: bigint): Promise<bigint> {
|
|
2705
|
+
return this.contract.read.getPastTotalSupply([timepoint] as const) as Promise<bigint>;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* getPastVotes
|
|
2710
|
+
* view
|
|
2711
|
+
*/
|
|
2712
|
+
async getPastVotes(account: `0x${string}`, timepoint: bigint): Promise<bigint> {
|
|
2713
|
+
return this.contract.read.getPastVotes([account, timepoint] as const) as Promise<bigint>;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* getTrustedRemoteAddress
|
|
2718
|
+
* view
|
|
2719
|
+
*/
|
|
2720
|
+
async getTrustedRemoteAddress(_remoteChainId: bigint): Promise<`0x${string}`> {
|
|
2721
|
+
return this.contract.read.getTrustedRemoteAddress([_remoteChainId] as const) as Promise<`0x${string}`>;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* getVotes
|
|
2726
|
+
* view
|
|
2727
|
+
*/
|
|
2728
|
+
async getVotes(account: `0x${string}`): Promise<bigint> {
|
|
2729
|
+
return this.contract.read.getVotes([account] as const) as Promise<bigint>;
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* isTrustedRemote
|
|
2734
|
+
* view
|
|
2735
|
+
*/
|
|
2736
|
+
async isTrustedRemote(_srcChainId: bigint, _srcAddress: `0x${string}`): Promise<boolean> {
|
|
2737
|
+
return this.contract.read.isTrustedRemote([_srcChainId, _srcAddress] as const) as Promise<boolean>;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* lzEndpoint
|
|
2742
|
+
* view
|
|
2743
|
+
*/
|
|
2744
|
+
async lzEndpoint(): Promise<`0x${string}`> {
|
|
2745
|
+
return this.contract.read.lzEndpoint() as Promise<`0x${string}`>;
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* minDstGasLookup
|
|
2750
|
+
* view
|
|
2751
|
+
*/
|
|
2752
|
+
async minDstGasLookup(arg0: bigint, arg1: bigint): Promise<bigint> {
|
|
2753
|
+
return this.contract.read.minDstGasLookup([arg0, arg1] as const) as Promise<bigint>;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
/**
|
|
2757
|
+
* name
|
|
2758
|
+
* view
|
|
2759
|
+
*/
|
|
2760
|
+
async name(): Promise<string> {
|
|
2761
|
+
return this.contract.read.name() as Promise<string>;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
/**
|
|
2765
|
+
* nonces
|
|
2766
|
+
* view
|
|
2767
|
+
*/
|
|
2768
|
+
async nonces(owner: `0x${string}`): Promise<bigint> {
|
|
2769
|
+
return this.contract.read.nonces([owner] as const) as Promise<bigint>;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
/**
|
|
2773
|
+
* numCheckpoints
|
|
2774
|
+
* view
|
|
2775
|
+
*/
|
|
2776
|
+
async numCheckpoints(account: `0x${string}`): Promise<bigint> {
|
|
2777
|
+
return this.contract.read.numCheckpoints([account] as const) as Promise<bigint>;
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
/**
|
|
2781
|
+
* owner
|
|
2782
|
+
* view
|
|
2783
|
+
*/
|
|
2784
|
+
async owner(): Promise<`0x${string}`> {
|
|
2785
|
+
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
/**
|
|
2789
|
+
* payloadSizeLimitLookup
|
|
2790
|
+
* view
|
|
2791
|
+
*/
|
|
2792
|
+
async payloadSizeLimitLookup(arg0: bigint): Promise<bigint> {
|
|
2793
|
+
return this.contract.read.payloadSizeLimitLookup([arg0] as const) as Promise<bigint>;
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* precrime
|
|
2798
|
+
* view
|
|
2799
|
+
*/
|
|
2800
|
+
async precrime(): Promise<`0x${string}`> {
|
|
2801
|
+
return this.contract.read.precrime() as Promise<`0x${string}`>;
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
/**
|
|
2805
|
+
* sharedDecimals
|
|
2806
|
+
* view
|
|
2807
|
+
*/
|
|
2808
|
+
async sharedDecimals(): Promise<bigint> {
|
|
2809
|
+
return this.contract.read.sharedDecimals() as Promise<bigint>;
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
/**
|
|
2813
|
+
* supportsInterface
|
|
2814
|
+
* view
|
|
2815
|
+
*/
|
|
2816
|
+
async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
|
|
2817
|
+
return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* symbol
|
|
2822
|
+
* view
|
|
2823
|
+
*/
|
|
2824
|
+
async symbol(): Promise<string> {
|
|
2825
|
+
return this.contract.read.symbol() as Promise<string>;
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* token
|
|
2830
|
+
* view
|
|
2831
|
+
*/
|
|
2832
|
+
async token(): Promise<`0x${string}`> {
|
|
2833
|
+
return this.contract.read.token() as Promise<`0x${string}`>;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* totalSupply
|
|
2838
|
+
* view
|
|
2839
|
+
*/
|
|
2840
|
+
async totalSupply(): Promise<bigint> {
|
|
2841
|
+
return this.contract.read.totalSupply() as Promise<bigint>;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
/**
|
|
2845
|
+
* trustedRemoteLookup
|
|
2846
|
+
* view
|
|
2847
|
+
*/
|
|
2848
|
+
async trustedRemoteLookup(arg0: bigint): Promise<`0x${string}`> {
|
|
2849
|
+
return this.contract.read.trustedRemoteLookup([arg0] as const) as Promise<`0x${string}`>;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
/**
|
|
2853
|
+
* useCustomAdapterParams
|
|
2854
|
+
* view
|
|
2855
|
+
*/
|
|
2856
|
+
async useCustomAdapterParams(): Promise<boolean> {
|
|
2857
|
+
return this.contract.read.useCustomAdapterParams() as Promise<boolean>;
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* approve
|
|
2862
|
+
* nonpayable
|
|
2863
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2864
|
+
*/
|
|
2865
|
+
async approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
2866
|
+
accessList?: import('viem').AccessList;
|
|
2867
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2868
|
+
chain?: import('viem').Chain | null;
|
|
2869
|
+
dataSuffix?: `0x${string}`;
|
|
2870
|
+
gas?: bigint;
|
|
2871
|
+
gasPrice?: bigint;
|
|
2872
|
+
maxFeePerGas?: bigint;
|
|
2873
|
+
maxPriorityFeePerGas?: bigint;
|
|
2874
|
+
nonce?: number;
|
|
2875
|
+
value?: bigint;
|
|
2876
|
+
}): Promise<`0x${string}`> {
|
|
2877
|
+
if (!this.contract.write) {
|
|
2878
|
+
throw new Error('Wallet client is required for write operations');
|
|
2879
|
+
}
|
|
2880
|
+
return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
/**
|
|
2884
|
+
* burn
|
|
2885
|
+
* nonpayable
|
|
2886
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2887
|
+
*/
|
|
2888
|
+
async burn(_amount: bigint, options?: {
|
|
2889
|
+
accessList?: import('viem').AccessList;
|
|
2890
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2891
|
+
chain?: import('viem').Chain | null;
|
|
2892
|
+
dataSuffix?: `0x${string}`;
|
|
2893
|
+
gas?: bigint;
|
|
2894
|
+
gasPrice?: bigint;
|
|
2895
|
+
maxFeePerGas?: bigint;
|
|
2896
|
+
maxPriorityFeePerGas?: bigint;
|
|
2897
|
+
nonce?: number;
|
|
2898
|
+
value?: bigint;
|
|
2899
|
+
}): Promise<`0x${string}`> {
|
|
2900
|
+
if (!this.contract.write) {
|
|
2901
|
+
throw new Error('Wallet client is required for write operations');
|
|
2902
|
+
}
|
|
2903
|
+
return this.contract.write.burn([_amount] as const, options) as Promise<`0x${string}`>;
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
/**
|
|
2907
|
+
* burnFrom
|
|
2908
|
+
* nonpayable
|
|
2909
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2910
|
+
*/
|
|
2911
|
+
async burnFrom(_account: `0x${string}`, _amount: bigint, options?: {
|
|
2912
|
+
accessList?: import('viem').AccessList;
|
|
2913
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2914
|
+
chain?: import('viem').Chain | null;
|
|
2915
|
+
dataSuffix?: `0x${string}`;
|
|
2916
|
+
gas?: bigint;
|
|
2917
|
+
gasPrice?: bigint;
|
|
2918
|
+
maxFeePerGas?: bigint;
|
|
2919
|
+
maxPriorityFeePerGas?: bigint;
|
|
2920
|
+
nonce?: number;
|
|
2921
|
+
value?: bigint;
|
|
2922
|
+
}): Promise<`0x${string}`> {
|
|
2923
|
+
if (!this.contract.write) {
|
|
2924
|
+
throw new Error('Wallet client is required for write operations');
|
|
2925
|
+
}
|
|
2926
|
+
return this.contract.write.burnFrom([_account, _amount] as const, options) as Promise<`0x${string}`>;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
/**
|
|
2930
|
+
* callOnOFTReceived
|
|
2931
|
+
* nonpayable
|
|
2932
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2933
|
+
*/
|
|
2934
|
+
async callOnOFTReceived(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _from: `0x${string}`, _to: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _gasForCall: bigint, options?: {
|
|
2935
|
+
accessList?: import('viem').AccessList;
|
|
2936
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2937
|
+
chain?: import('viem').Chain | null;
|
|
2938
|
+
dataSuffix?: `0x${string}`;
|
|
2939
|
+
gas?: bigint;
|
|
2940
|
+
gasPrice?: bigint;
|
|
2941
|
+
maxFeePerGas?: bigint;
|
|
2942
|
+
maxPriorityFeePerGas?: bigint;
|
|
2943
|
+
nonce?: number;
|
|
2944
|
+
value?: bigint;
|
|
2945
|
+
}): Promise<`0x${string}`> {
|
|
2946
|
+
if (!this.contract.write) {
|
|
2947
|
+
throw new Error('Wallet client is required for write operations');
|
|
2948
|
+
}
|
|
2949
|
+
return this.contract.write.callOnOFTReceived([_srcChainId, _srcAddress, _nonce, _from, _to, _amount, _payload, _gasForCall] as const, options) as Promise<`0x${string}`>;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
/**
|
|
2953
|
+
* decreaseAllowance
|
|
2954
|
+
* nonpayable
|
|
2955
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2956
|
+
*/
|
|
2957
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
2958
|
+
accessList?: import('viem').AccessList;
|
|
2959
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2960
|
+
chain?: import('viem').Chain | null;
|
|
2961
|
+
dataSuffix?: `0x${string}`;
|
|
2962
|
+
gas?: bigint;
|
|
2963
|
+
gasPrice?: bigint;
|
|
2964
|
+
maxFeePerGas?: bigint;
|
|
2965
|
+
maxPriorityFeePerGas?: bigint;
|
|
2966
|
+
nonce?: number;
|
|
2967
|
+
value?: bigint;
|
|
2968
|
+
}): Promise<`0x${string}`> {
|
|
2969
|
+
if (!this.contract.write) {
|
|
2970
|
+
throw new Error('Wallet client is required for write operations');
|
|
2971
|
+
}
|
|
2972
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
/**
|
|
2976
|
+
* delegate
|
|
2977
|
+
* nonpayable
|
|
2978
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2979
|
+
*/
|
|
2980
|
+
async delegate(delegatee: `0x${string}`, options?: {
|
|
2981
|
+
accessList?: import('viem').AccessList;
|
|
2982
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2983
|
+
chain?: import('viem').Chain | null;
|
|
2984
|
+
dataSuffix?: `0x${string}`;
|
|
2985
|
+
gas?: bigint;
|
|
2986
|
+
gasPrice?: bigint;
|
|
2987
|
+
maxFeePerGas?: bigint;
|
|
2988
|
+
maxPriorityFeePerGas?: bigint;
|
|
2989
|
+
nonce?: number;
|
|
2990
|
+
value?: bigint;
|
|
2991
|
+
}): Promise<`0x${string}`> {
|
|
2992
|
+
if (!this.contract.write) {
|
|
2993
|
+
throw new Error('Wallet client is required for write operations');
|
|
2994
|
+
}
|
|
2995
|
+
return this.contract.write.delegate([delegatee] as const, options) as Promise<`0x${string}`>;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
/**
|
|
2999
|
+
* delegateBySig
|
|
3000
|
+
* nonpayable
|
|
3001
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3002
|
+
*/
|
|
3003
|
+
async delegateBySig(delegatee: `0x${string}`, nonce: bigint, expiry: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
3004
|
+
accessList?: import('viem').AccessList;
|
|
3005
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3006
|
+
chain?: import('viem').Chain | null;
|
|
3007
|
+
dataSuffix?: `0x${string}`;
|
|
3008
|
+
gas?: bigint;
|
|
3009
|
+
gasPrice?: bigint;
|
|
3010
|
+
maxFeePerGas?: bigint;
|
|
3011
|
+
maxPriorityFeePerGas?: bigint;
|
|
3012
|
+
nonce?: number;
|
|
3013
|
+
value?: bigint;
|
|
3014
|
+
}): Promise<`0x${string}`> {
|
|
3015
|
+
if (!this.contract.write) {
|
|
3016
|
+
throw new Error('Wallet client is required for write operations');
|
|
3017
|
+
}
|
|
3018
|
+
return this.contract.write.delegateBySig([delegatee, nonce, expiry, v, r, s] as const, options) as Promise<`0x${string}`>;
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
/**
|
|
3022
|
+
* forceResumeReceive
|
|
3023
|
+
* nonpayable
|
|
3024
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3025
|
+
*/
|
|
3026
|
+
async forceResumeReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, options?: {
|
|
3027
|
+
accessList?: import('viem').AccessList;
|
|
3028
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3029
|
+
chain?: import('viem').Chain | null;
|
|
3030
|
+
dataSuffix?: `0x${string}`;
|
|
3031
|
+
gas?: bigint;
|
|
3032
|
+
gasPrice?: bigint;
|
|
3033
|
+
maxFeePerGas?: bigint;
|
|
3034
|
+
maxPriorityFeePerGas?: bigint;
|
|
3035
|
+
nonce?: number;
|
|
3036
|
+
value?: bigint;
|
|
3037
|
+
}): Promise<`0x${string}`> {
|
|
3038
|
+
if (!this.contract.write) {
|
|
3039
|
+
throw new Error('Wallet client is required for write operations');
|
|
3040
|
+
}
|
|
3041
|
+
return this.contract.write.forceResumeReceive([_srcChainId, _srcAddress] as const, options) as Promise<`0x${string}`>;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
/**
|
|
3045
|
+
* increaseAllowance
|
|
3046
|
+
* nonpayable
|
|
3047
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3048
|
+
*/
|
|
3049
|
+
async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
3050
|
+
accessList?: import('viem').AccessList;
|
|
3051
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3052
|
+
chain?: import('viem').Chain | null;
|
|
3053
|
+
dataSuffix?: `0x${string}`;
|
|
3054
|
+
gas?: bigint;
|
|
3055
|
+
gasPrice?: bigint;
|
|
3056
|
+
maxFeePerGas?: bigint;
|
|
3057
|
+
maxPriorityFeePerGas?: bigint;
|
|
3058
|
+
nonce?: number;
|
|
3059
|
+
value?: bigint;
|
|
3060
|
+
}): Promise<`0x${string}`> {
|
|
3061
|
+
if (!this.contract.write) {
|
|
3062
|
+
throw new Error('Wallet client is required for write operations');
|
|
3063
|
+
}
|
|
3064
|
+
return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* initialize
|
|
3069
|
+
* nonpayable
|
|
3070
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3071
|
+
*/
|
|
3072
|
+
async initialize(_lzEndpoint: `0x${string}`, _buyTaxReceiver: `0x${string}`, _antiMEVStrategy: `0x${string}`, _migrator: `0x${string}`, _migratorMintSupply: bigint, _buyTax: bigint, _sellTax: bigint, _isTaxingEnabled: boolean, _isAntiMEV: boolean, _isTransferBlacklisting: boolean, options?: {
|
|
3073
|
+
accessList?: import('viem').AccessList;
|
|
3074
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3075
|
+
chain?: import('viem').Chain | null;
|
|
3076
|
+
dataSuffix?: `0x${string}`;
|
|
3077
|
+
gas?: bigint;
|
|
3078
|
+
gasPrice?: bigint;
|
|
3079
|
+
maxFeePerGas?: bigint;
|
|
3080
|
+
maxPriorityFeePerGas?: bigint;
|
|
3081
|
+
nonce?: number;
|
|
3082
|
+
value?: bigint;
|
|
3083
|
+
}): Promise<`0x${string}`> {
|
|
3084
|
+
if (!this.contract.write) {
|
|
3085
|
+
throw new Error('Wallet client is required for write operations');
|
|
3086
|
+
}
|
|
3087
|
+
return this.contract.write.initialize([_lzEndpoint, _buyTaxReceiver, _antiMEVStrategy, _migrator, _migratorMintSupply, _buyTax, _sellTax, _isTaxingEnabled, _isAntiMEV, _isTransferBlacklisting] as const, options) as Promise<`0x${string}`>;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* lzReceive
|
|
3092
|
+
* nonpayable
|
|
3093
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3094
|
+
*/
|
|
3095
|
+
async lzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
3096
|
+
accessList?: import('viem').AccessList;
|
|
3097
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3098
|
+
chain?: import('viem').Chain | null;
|
|
3099
|
+
dataSuffix?: `0x${string}`;
|
|
3100
|
+
gas?: bigint;
|
|
3101
|
+
gasPrice?: bigint;
|
|
3102
|
+
maxFeePerGas?: bigint;
|
|
3103
|
+
maxPriorityFeePerGas?: bigint;
|
|
3104
|
+
nonce?: number;
|
|
3105
|
+
value?: bigint;
|
|
3106
|
+
}): Promise<`0x${string}`> {
|
|
3107
|
+
if (!this.contract.write) {
|
|
3108
|
+
throw new Error('Wallet client is required for write operations');
|
|
3109
|
+
}
|
|
3110
|
+
return this.contract.write.lzReceive([_srcChainId, _srcAddress, _nonce, _payload] as const, options) as Promise<`0x${string}`>;
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* nonblockingLzReceive
|
|
3115
|
+
* nonpayable
|
|
3116
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3117
|
+
*/
|
|
3118
|
+
async nonblockingLzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
3119
|
+
accessList?: import('viem').AccessList;
|
|
3120
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3121
|
+
chain?: import('viem').Chain | null;
|
|
3122
|
+
dataSuffix?: `0x${string}`;
|
|
3123
|
+
gas?: bigint;
|
|
3124
|
+
gasPrice?: bigint;
|
|
3125
|
+
maxFeePerGas?: bigint;
|
|
3126
|
+
maxPriorityFeePerGas?: bigint;
|
|
3127
|
+
nonce?: number;
|
|
3128
|
+
value?: bigint;
|
|
3129
|
+
}): Promise<`0x${string}`> {
|
|
3130
|
+
if (!this.contract.write) {
|
|
3131
|
+
throw new Error('Wallet client is required for write operations');
|
|
3132
|
+
}
|
|
3133
|
+
return this.contract.write.nonblockingLzReceive([_srcChainId, _srcAddress, _nonce, _payload] as const, options) as Promise<`0x${string}`>;
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
* permit
|
|
3138
|
+
* nonpayable
|
|
3139
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3140
|
+
*/
|
|
3141
|
+
async permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
3142
|
+
accessList?: import('viem').AccessList;
|
|
3143
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3144
|
+
chain?: import('viem').Chain | null;
|
|
3145
|
+
dataSuffix?: `0x${string}`;
|
|
3146
|
+
gas?: bigint;
|
|
3147
|
+
gasPrice?: bigint;
|
|
3148
|
+
maxFeePerGas?: bigint;
|
|
3149
|
+
maxPriorityFeePerGas?: bigint;
|
|
3150
|
+
nonce?: number;
|
|
3151
|
+
value?: bigint;
|
|
3152
|
+
}): Promise<`0x${string}`> {
|
|
3153
|
+
if (!this.contract.write) {
|
|
3154
|
+
throw new Error('Wallet client is required for write operations');
|
|
3155
|
+
}
|
|
3156
|
+
return this.contract.write.permit([owner, spender, value, deadline, v, r, s] as const, options) as Promise<`0x${string}`>;
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* recoverToken
|
|
3161
|
+
* nonpayable
|
|
3162
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3163
|
+
*/
|
|
3164
|
+
async recoverToken(_token: `0x${string}`, _amount: bigint, options?: {
|
|
3165
|
+
accessList?: import('viem').AccessList;
|
|
3166
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3167
|
+
chain?: import('viem').Chain | null;
|
|
3168
|
+
dataSuffix?: `0x${string}`;
|
|
3169
|
+
gas?: bigint;
|
|
3170
|
+
gasPrice?: bigint;
|
|
3171
|
+
maxFeePerGas?: bigint;
|
|
3172
|
+
maxPriorityFeePerGas?: bigint;
|
|
3173
|
+
nonce?: number;
|
|
3174
|
+
value?: bigint;
|
|
3175
|
+
}): Promise<`0x${string}`> {
|
|
3176
|
+
if (!this.contract.write) {
|
|
3177
|
+
throw new Error('Wallet client is required for write operations');
|
|
3178
|
+
}
|
|
3179
|
+
return this.contract.write.recoverToken([_token, _amount] as const, options) as Promise<`0x${string}`>;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* renounceOwnership
|
|
3184
|
+
* nonpayable
|
|
3185
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3186
|
+
*/
|
|
3187
|
+
async renounceOwnership(options?: {
|
|
3188
|
+
accessList?: import('viem').AccessList;
|
|
3189
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3190
|
+
chain?: import('viem').Chain | null;
|
|
3191
|
+
dataSuffix?: `0x${string}`;
|
|
3192
|
+
gas?: bigint;
|
|
3193
|
+
gasPrice?: bigint;
|
|
3194
|
+
maxFeePerGas?: bigint;
|
|
3195
|
+
maxPriorityFeePerGas?: bigint;
|
|
3196
|
+
nonce?: number;
|
|
3197
|
+
value?: bigint;
|
|
3198
|
+
}): Promise<`0x${string}`> {
|
|
3199
|
+
if (!this.contract.write) {
|
|
3200
|
+
throw new Error('Wallet client is required for write operations');
|
|
3201
|
+
}
|
|
3202
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
/**
|
|
3206
|
+
* retryMessage
|
|
3207
|
+
* payable
|
|
3208
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3209
|
+
*/
|
|
3210
|
+
async retryMessage(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
3211
|
+
accessList?: import('viem').AccessList;
|
|
3212
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3213
|
+
chain?: import('viem').Chain | null;
|
|
3214
|
+
dataSuffix?: `0x${string}`;
|
|
3215
|
+
gas?: bigint;
|
|
3216
|
+
gasPrice?: bigint;
|
|
3217
|
+
maxFeePerGas?: bigint;
|
|
3218
|
+
maxPriorityFeePerGas?: bigint;
|
|
3219
|
+
nonce?: number;
|
|
3220
|
+
value?: bigint;
|
|
3221
|
+
}): Promise<`0x${string}`> {
|
|
3222
|
+
if (!this.contract.write) {
|
|
3223
|
+
throw new Error('Wallet client is required for write operations');
|
|
3224
|
+
}
|
|
3225
|
+
return this.contract.write.retryMessage([_srcChainId, _srcAddress, _nonce, _payload] as const, options) as Promise<`0x${string}`>;
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* sendAndCall
|
|
3230
|
+
* payable
|
|
3231
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3232
|
+
*/
|
|
3233
|
+
async sendAndCall(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _dstGasForCall: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
3234
|
+
accessList?: import('viem').AccessList;
|
|
3235
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3236
|
+
chain?: import('viem').Chain | null;
|
|
3237
|
+
dataSuffix?: `0x${string}`;
|
|
3238
|
+
gas?: bigint;
|
|
3239
|
+
gasPrice?: bigint;
|
|
3240
|
+
maxFeePerGas?: bigint;
|
|
3241
|
+
maxPriorityFeePerGas?: bigint;
|
|
3242
|
+
nonce?: number;
|
|
3243
|
+
value?: bigint;
|
|
3244
|
+
}): Promise<`0x${string}`> {
|
|
3245
|
+
if (!this.contract.write) {
|
|
3246
|
+
throw new Error('Wallet client is required for write operations');
|
|
3247
|
+
}
|
|
3248
|
+
return this.contract.write.sendAndCall([_from, _dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _callParams] as const, options) as Promise<`0x${string}`>;
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
/**
|
|
3252
|
+
* sendFrom
|
|
3253
|
+
* payable
|
|
3254
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3255
|
+
*/
|
|
3256
|
+
async sendFrom(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
3257
|
+
accessList?: import('viem').AccessList;
|
|
3258
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3259
|
+
chain?: import('viem').Chain | null;
|
|
3260
|
+
dataSuffix?: `0x${string}`;
|
|
3261
|
+
gas?: bigint;
|
|
3262
|
+
gasPrice?: bigint;
|
|
3263
|
+
maxFeePerGas?: bigint;
|
|
3264
|
+
maxPriorityFeePerGas?: bigint;
|
|
3265
|
+
nonce?: number;
|
|
3266
|
+
value?: bigint;
|
|
3267
|
+
}): Promise<`0x${string}`> {
|
|
3268
|
+
if (!this.contract.write) {
|
|
3269
|
+
throw new Error('Wallet client is required for write operations');
|
|
3270
|
+
}
|
|
3271
|
+
return this.contract.write.sendFrom([_from, _dstChainId, _toAddress, _amount, _callParams] as const, options) as Promise<`0x${string}`>;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* setAntiMevStrategy
|
|
3276
|
+
* nonpayable
|
|
3277
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3278
|
+
*/
|
|
3279
|
+
async setAntiMevStrategy(_antiMEVStrategy: `0x${string}`, options?: {
|
|
3280
|
+
accessList?: import('viem').AccessList;
|
|
3281
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3282
|
+
chain?: import('viem').Chain | null;
|
|
3283
|
+
dataSuffix?: `0x${string}`;
|
|
3284
|
+
gas?: bigint;
|
|
3285
|
+
gasPrice?: bigint;
|
|
3286
|
+
maxFeePerGas?: bigint;
|
|
3287
|
+
maxPriorityFeePerGas?: bigint;
|
|
3288
|
+
nonce?: number;
|
|
3289
|
+
value?: bigint;
|
|
3290
|
+
}): Promise<`0x${string}`> {
|
|
3291
|
+
if (!this.contract.write) {
|
|
3292
|
+
throw new Error('Wallet client is required for write operations');
|
|
3293
|
+
}
|
|
3294
|
+
return this.contract.write.setAntiMevStrategy([_antiMEVStrategy] as const, options) as Promise<`0x${string}`>;
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* setBuyTaxReceiver
|
|
3299
|
+
* nonpayable
|
|
3300
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3301
|
+
*/
|
|
3302
|
+
async setBuyTaxReceiver(_buyTaxReceiver: `0x${string}`, options?: {
|
|
3303
|
+
accessList?: import('viem').AccessList;
|
|
3304
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3305
|
+
chain?: import('viem').Chain | null;
|
|
3306
|
+
dataSuffix?: `0x${string}`;
|
|
3307
|
+
gas?: bigint;
|
|
3308
|
+
gasPrice?: bigint;
|
|
3309
|
+
maxFeePerGas?: bigint;
|
|
3310
|
+
maxPriorityFeePerGas?: bigint;
|
|
3311
|
+
nonce?: number;
|
|
3312
|
+
value?: bigint;
|
|
3313
|
+
}): Promise<`0x${string}`> {
|
|
3314
|
+
if (!this.contract.write) {
|
|
3315
|
+
throw new Error('Wallet client is required for write operations');
|
|
3316
|
+
}
|
|
3317
|
+
return this.contract.write.setBuyTaxReceiver([_buyTaxReceiver] as const, options) as Promise<`0x${string}`>;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
/**
|
|
3321
|
+
* setConfig
|
|
3322
|
+
* nonpayable
|
|
3323
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3324
|
+
*/
|
|
3325
|
+
async setConfig(_version: bigint, _chainId: bigint, _configType: bigint, _config: `0x${string}`, options?: {
|
|
3326
|
+
accessList?: import('viem').AccessList;
|
|
3327
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3328
|
+
chain?: import('viem').Chain | null;
|
|
3329
|
+
dataSuffix?: `0x${string}`;
|
|
3330
|
+
gas?: bigint;
|
|
3331
|
+
gasPrice?: bigint;
|
|
3332
|
+
maxFeePerGas?: bigint;
|
|
3333
|
+
maxPriorityFeePerGas?: bigint;
|
|
3334
|
+
nonce?: number;
|
|
3335
|
+
value?: bigint;
|
|
3336
|
+
}): Promise<`0x${string}`> {
|
|
3337
|
+
if (!this.contract.write) {
|
|
3338
|
+
throw new Error('Wallet client is required for write operations');
|
|
3339
|
+
}
|
|
3340
|
+
return this.contract.write.setConfig([_version, _chainId, _configType, _config] as const, options) as Promise<`0x${string}`>;
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
/**
|
|
3344
|
+
* setIsAntiMEV
|
|
3345
|
+
* nonpayable
|
|
3346
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3347
|
+
*/
|
|
3348
|
+
async setIsAntiMEV(_isAntiMEV: boolean, options?: {
|
|
3349
|
+
accessList?: import('viem').AccessList;
|
|
3350
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3351
|
+
chain?: import('viem').Chain | null;
|
|
3352
|
+
dataSuffix?: `0x${string}`;
|
|
3353
|
+
gas?: bigint;
|
|
3354
|
+
gasPrice?: bigint;
|
|
3355
|
+
maxFeePerGas?: bigint;
|
|
3356
|
+
maxPriorityFeePerGas?: bigint;
|
|
3357
|
+
nonce?: number;
|
|
3358
|
+
value?: bigint;
|
|
3359
|
+
}): Promise<`0x${string}`> {
|
|
3360
|
+
if (!this.contract.write) {
|
|
3361
|
+
throw new Error('Wallet client is required for write operations');
|
|
3362
|
+
}
|
|
3363
|
+
return this.contract.write.setIsAntiMEV([_isAntiMEV] as const, options) as Promise<`0x${string}`>;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
/**
|
|
3367
|
+
* setIsTransferBlacklisting
|
|
3368
|
+
* nonpayable
|
|
3369
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3370
|
+
*/
|
|
3371
|
+
async setIsTransferBlacklisting(_isBlacklisting: boolean, options?: {
|
|
3372
|
+
accessList?: import('viem').AccessList;
|
|
3373
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3374
|
+
chain?: import('viem').Chain | null;
|
|
3375
|
+
dataSuffix?: `0x${string}`;
|
|
3376
|
+
gas?: bigint;
|
|
3377
|
+
gasPrice?: bigint;
|
|
3378
|
+
maxFeePerGas?: bigint;
|
|
3379
|
+
maxPriorityFeePerGas?: bigint;
|
|
3380
|
+
nonce?: number;
|
|
3381
|
+
value?: bigint;
|
|
3382
|
+
}): Promise<`0x${string}`> {
|
|
3383
|
+
if (!this.contract.write) {
|
|
3384
|
+
throw new Error('Wallet client is required for write operations');
|
|
3385
|
+
}
|
|
3386
|
+
return this.contract.write.setIsTransferBlacklisting([_isBlacklisting] as const, options) as Promise<`0x${string}`>;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
/**
|
|
3390
|
+
* setMinDstGas
|
|
3391
|
+
* nonpayable
|
|
3392
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3393
|
+
*/
|
|
3394
|
+
async setMinDstGas(_dstChainId: bigint, _packetType: bigint, _minGas: bigint, options?: {
|
|
3395
|
+
accessList?: import('viem').AccessList;
|
|
3396
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3397
|
+
chain?: import('viem').Chain | null;
|
|
3398
|
+
dataSuffix?: `0x${string}`;
|
|
3399
|
+
gas?: bigint;
|
|
3400
|
+
gasPrice?: bigint;
|
|
3401
|
+
maxFeePerGas?: bigint;
|
|
3402
|
+
maxPriorityFeePerGas?: bigint;
|
|
3403
|
+
nonce?: number;
|
|
3404
|
+
value?: bigint;
|
|
3405
|
+
}): Promise<`0x${string}`> {
|
|
3406
|
+
if (!this.contract.write) {
|
|
3407
|
+
throw new Error('Wallet client is required for write operations');
|
|
3408
|
+
}
|
|
3409
|
+
return this.contract.write.setMinDstGas([_dstChainId, _packetType, _minGas] as const, options) as Promise<`0x${string}`>;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
/**
|
|
3413
|
+
* setPayloadSizeLimit
|
|
3414
|
+
* nonpayable
|
|
3415
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3416
|
+
*/
|
|
3417
|
+
async setPayloadSizeLimit(_dstChainId: bigint, _size: bigint, options?: {
|
|
3418
|
+
accessList?: import('viem').AccessList;
|
|
3419
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3420
|
+
chain?: import('viem').Chain | null;
|
|
3421
|
+
dataSuffix?: `0x${string}`;
|
|
3422
|
+
gas?: bigint;
|
|
3423
|
+
gasPrice?: bigint;
|
|
3424
|
+
maxFeePerGas?: bigint;
|
|
3425
|
+
maxPriorityFeePerGas?: bigint;
|
|
3426
|
+
nonce?: number;
|
|
3427
|
+
value?: bigint;
|
|
3428
|
+
}): Promise<`0x${string}`> {
|
|
3429
|
+
if (!this.contract.write) {
|
|
3430
|
+
throw new Error('Wallet client is required for write operations');
|
|
3431
|
+
}
|
|
3432
|
+
return this.contract.write.setPayloadSizeLimit([_dstChainId, _size] as const, options) as Promise<`0x${string}`>;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* setPrecrime
|
|
3437
|
+
* nonpayable
|
|
3438
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3439
|
+
*/
|
|
3440
|
+
async setPrecrime(_precrime: `0x${string}`, options?: {
|
|
3441
|
+
accessList?: import('viem').AccessList;
|
|
3442
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3443
|
+
chain?: import('viem').Chain | null;
|
|
3444
|
+
dataSuffix?: `0x${string}`;
|
|
3445
|
+
gas?: bigint;
|
|
3446
|
+
gasPrice?: bigint;
|
|
3447
|
+
maxFeePerGas?: bigint;
|
|
3448
|
+
maxPriorityFeePerGas?: bigint;
|
|
3449
|
+
nonce?: number;
|
|
3450
|
+
value?: bigint;
|
|
3451
|
+
}): Promise<`0x${string}`> {
|
|
3452
|
+
if (!this.contract.write) {
|
|
3453
|
+
throw new Error('Wallet client is required for write operations');
|
|
3454
|
+
}
|
|
3455
|
+
return this.contract.write.setPrecrime([_precrime] as const, options) as Promise<`0x${string}`>;
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
/**
|
|
3459
|
+
* setReceiveVersion
|
|
3460
|
+
* nonpayable
|
|
3461
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3462
|
+
*/
|
|
3463
|
+
async setReceiveVersion(_version: bigint, options?: {
|
|
3464
|
+
accessList?: import('viem').AccessList;
|
|
3465
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3466
|
+
chain?: import('viem').Chain | null;
|
|
3467
|
+
dataSuffix?: `0x${string}`;
|
|
3468
|
+
gas?: bigint;
|
|
3469
|
+
gasPrice?: bigint;
|
|
3470
|
+
maxFeePerGas?: bigint;
|
|
3471
|
+
maxPriorityFeePerGas?: bigint;
|
|
3472
|
+
nonce?: number;
|
|
3473
|
+
value?: bigint;
|
|
3474
|
+
}): Promise<`0x${string}`> {
|
|
3475
|
+
if (!this.contract.write) {
|
|
3476
|
+
throw new Error('Wallet client is required for write operations');
|
|
3477
|
+
}
|
|
3478
|
+
return this.contract.write.setReceiveVersion([_version] as const, options) as Promise<`0x${string}`>;
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
/**
|
|
3482
|
+
* setSendVersion
|
|
3483
|
+
* nonpayable
|
|
3484
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3485
|
+
*/
|
|
3486
|
+
async setSendVersion(_version: bigint, options?: {
|
|
3487
|
+
accessList?: import('viem').AccessList;
|
|
3488
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3489
|
+
chain?: import('viem').Chain | null;
|
|
3490
|
+
dataSuffix?: `0x${string}`;
|
|
3491
|
+
gas?: bigint;
|
|
3492
|
+
gasPrice?: bigint;
|
|
3493
|
+
maxFeePerGas?: bigint;
|
|
3494
|
+
maxPriorityFeePerGas?: bigint;
|
|
3495
|
+
nonce?: number;
|
|
3496
|
+
value?: bigint;
|
|
3497
|
+
}): Promise<`0x${string}`> {
|
|
3498
|
+
if (!this.contract.write) {
|
|
3499
|
+
throw new Error('Wallet client is required for write operations');
|
|
3500
|
+
}
|
|
3501
|
+
return this.contract.write.setSendVersion([_version] as const, options) as Promise<`0x${string}`>;
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* setTax
|
|
3506
|
+
* nonpayable
|
|
3507
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3508
|
+
*/
|
|
3509
|
+
async setTax(_buyTax: bigint, _sellTax: bigint, _isTaxingEnabled: boolean, options?: {
|
|
3510
|
+
accessList?: import('viem').AccessList;
|
|
3511
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3512
|
+
chain?: import('viem').Chain | null;
|
|
3513
|
+
dataSuffix?: `0x${string}`;
|
|
3514
|
+
gas?: bigint;
|
|
3515
|
+
gasPrice?: bigint;
|
|
3516
|
+
maxFeePerGas?: bigint;
|
|
3517
|
+
maxPriorityFeePerGas?: bigint;
|
|
3518
|
+
nonce?: number;
|
|
3519
|
+
value?: bigint;
|
|
3520
|
+
}): Promise<`0x${string}`> {
|
|
3521
|
+
if (!this.contract.write) {
|
|
3522
|
+
throw new Error('Wallet client is required for write operations');
|
|
3523
|
+
}
|
|
3524
|
+
return this.contract.write.setTax([_buyTax, _sellTax, _isTaxingEnabled] as const, options) as Promise<`0x${string}`>;
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
/**
|
|
3528
|
+
* setTaxWhitelist
|
|
3529
|
+
* nonpayable
|
|
3530
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3531
|
+
*/
|
|
3532
|
+
async setTaxWhitelist(_whitelist: `0x${string}`, _isWhitelisted: boolean, options?: {
|
|
3533
|
+
accessList?: import('viem').AccessList;
|
|
3534
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3535
|
+
chain?: import('viem').Chain | null;
|
|
3536
|
+
dataSuffix?: `0x${string}`;
|
|
3537
|
+
gas?: bigint;
|
|
3538
|
+
gasPrice?: bigint;
|
|
3539
|
+
maxFeePerGas?: bigint;
|
|
3540
|
+
maxPriorityFeePerGas?: bigint;
|
|
3541
|
+
nonce?: number;
|
|
3542
|
+
value?: bigint;
|
|
3543
|
+
}): Promise<`0x${string}`> {
|
|
3544
|
+
if (!this.contract.write) {
|
|
3545
|
+
throw new Error('Wallet client is required for write operations');
|
|
3546
|
+
}
|
|
3547
|
+
return this.contract.write.setTaxWhitelist([_whitelist, _isWhitelisted] as const, options) as Promise<`0x${string}`>;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
* setTaxableContract
|
|
3552
|
+
* nonpayable
|
|
3553
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3554
|
+
*/
|
|
3555
|
+
async setTaxableContract(_taxableContract: `0x${string}`, _isTaxable: boolean, options?: {
|
|
3556
|
+
accessList?: import('viem').AccessList;
|
|
3557
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3558
|
+
chain?: import('viem').Chain | null;
|
|
3559
|
+
dataSuffix?: `0x${string}`;
|
|
3560
|
+
gas?: bigint;
|
|
3561
|
+
gasPrice?: bigint;
|
|
3562
|
+
maxFeePerGas?: bigint;
|
|
3563
|
+
maxPriorityFeePerGas?: bigint;
|
|
3564
|
+
nonce?: number;
|
|
3565
|
+
value?: bigint;
|
|
3566
|
+
}): Promise<`0x${string}`> {
|
|
3567
|
+
if (!this.contract.write) {
|
|
3568
|
+
throw new Error('Wallet client is required for write operations');
|
|
3569
|
+
}
|
|
3570
|
+
return this.contract.write.setTaxableContract([_taxableContract, _isTaxable] as const, options) as Promise<`0x${string}`>;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
/**
|
|
3574
|
+
* setTransferBlacklist
|
|
3575
|
+
* nonpayable
|
|
3576
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3577
|
+
*/
|
|
3578
|
+
async setTransferBlacklist(_blacklist: `0x${string}`, _isBlacklisted: boolean, options?: {
|
|
3579
|
+
accessList?: import('viem').AccessList;
|
|
3580
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3581
|
+
chain?: import('viem').Chain | null;
|
|
3582
|
+
dataSuffix?: `0x${string}`;
|
|
3583
|
+
gas?: bigint;
|
|
3584
|
+
gasPrice?: bigint;
|
|
3585
|
+
maxFeePerGas?: bigint;
|
|
3586
|
+
maxPriorityFeePerGas?: bigint;
|
|
3587
|
+
nonce?: number;
|
|
3588
|
+
value?: bigint;
|
|
3589
|
+
}): Promise<`0x${string}`> {
|
|
3590
|
+
if (!this.contract.write) {
|
|
3591
|
+
throw new Error('Wallet client is required for write operations');
|
|
3592
|
+
}
|
|
3593
|
+
return this.contract.write.setTransferBlacklist([_blacklist, _isBlacklisted] as const, options) as Promise<`0x${string}`>;
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
/**
|
|
3597
|
+
* setTrustedRemote
|
|
3598
|
+
* nonpayable
|
|
3599
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3600
|
+
*/
|
|
3601
|
+
async setTrustedRemote(_remoteChainId: bigint, _path: `0x${string}`, options?: {
|
|
3602
|
+
accessList?: import('viem').AccessList;
|
|
3603
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3604
|
+
chain?: import('viem').Chain | null;
|
|
3605
|
+
dataSuffix?: `0x${string}`;
|
|
3606
|
+
gas?: bigint;
|
|
3607
|
+
gasPrice?: bigint;
|
|
3608
|
+
maxFeePerGas?: bigint;
|
|
3609
|
+
maxPriorityFeePerGas?: bigint;
|
|
3610
|
+
nonce?: number;
|
|
3611
|
+
value?: bigint;
|
|
3612
|
+
}): Promise<`0x${string}`> {
|
|
3613
|
+
if (!this.contract.write) {
|
|
3614
|
+
throw new Error('Wallet client is required for write operations');
|
|
3615
|
+
}
|
|
3616
|
+
return this.contract.write.setTrustedRemote([_remoteChainId, _path] as const, options) as Promise<`0x${string}`>;
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
/**
|
|
3620
|
+
* setTrustedRemoteAddress
|
|
3621
|
+
* nonpayable
|
|
3622
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3623
|
+
*/
|
|
3624
|
+
async setTrustedRemoteAddress(_remoteChainId: bigint, _remoteAddress: `0x${string}`, options?: {
|
|
3625
|
+
accessList?: import('viem').AccessList;
|
|
3626
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3627
|
+
chain?: import('viem').Chain | null;
|
|
3628
|
+
dataSuffix?: `0x${string}`;
|
|
3629
|
+
gas?: bigint;
|
|
3630
|
+
gasPrice?: bigint;
|
|
3631
|
+
maxFeePerGas?: bigint;
|
|
3632
|
+
maxPriorityFeePerGas?: bigint;
|
|
3633
|
+
nonce?: number;
|
|
3634
|
+
value?: bigint;
|
|
3635
|
+
}): Promise<`0x${string}`> {
|
|
3636
|
+
if (!this.contract.write) {
|
|
3637
|
+
throw new Error('Wallet client is required for write operations');
|
|
3638
|
+
}
|
|
3639
|
+
return this.contract.write.setTrustedRemoteAddress([_remoteChainId, _remoteAddress] as const, options) as Promise<`0x${string}`>;
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
/**
|
|
3643
|
+
* setUseCustomAdapterParams
|
|
3644
|
+
* nonpayable
|
|
3645
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3646
|
+
*/
|
|
3647
|
+
async setUseCustomAdapterParams(_useCustomAdapterParams: boolean, options?: {
|
|
3648
|
+
accessList?: import('viem').AccessList;
|
|
3649
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3650
|
+
chain?: import('viem').Chain | null;
|
|
3651
|
+
dataSuffix?: `0x${string}`;
|
|
3652
|
+
gas?: bigint;
|
|
3653
|
+
gasPrice?: bigint;
|
|
3654
|
+
maxFeePerGas?: bigint;
|
|
3655
|
+
maxPriorityFeePerGas?: bigint;
|
|
3656
|
+
nonce?: number;
|
|
3657
|
+
value?: bigint;
|
|
3658
|
+
}): Promise<`0x${string}`> {
|
|
3659
|
+
if (!this.contract.write) {
|
|
3660
|
+
throw new Error('Wallet client is required for write operations');
|
|
3661
|
+
}
|
|
3662
|
+
return this.contract.write.setUseCustomAdapterParams([_useCustomAdapterParams] as const, options) as Promise<`0x${string}`>;
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
/**
|
|
3666
|
+
* transfer
|
|
3667
|
+
* nonpayable
|
|
3668
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3669
|
+
*/
|
|
3670
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
3671
|
+
accessList?: import('viem').AccessList;
|
|
3672
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3673
|
+
chain?: import('viem').Chain | null;
|
|
3674
|
+
dataSuffix?: `0x${string}`;
|
|
3675
|
+
gas?: bigint;
|
|
3676
|
+
gasPrice?: bigint;
|
|
3677
|
+
maxFeePerGas?: bigint;
|
|
3678
|
+
maxPriorityFeePerGas?: bigint;
|
|
3679
|
+
nonce?: number;
|
|
3680
|
+
value?: bigint;
|
|
3681
|
+
}): Promise<`0x${string}`> {
|
|
3682
|
+
if (!this.contract.write) {
|
|
3683
|
+
throw new Error('Wallet client is required for write operations');
|
|
3684
|
+
}
|
|
3685
|
+
return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
/**
|
|
3689
|
+
* transferFrom
|
|
3690
|
+
* nonpayable
|
|
3691
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3692
|
+
*/
|
|
3693
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
3694
|
+
accessList?: import('viem').AccessList;
|
|
3695
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3696
|
+
chain?: import('viem').Chain | null;
|
|
3697
|
+
dataSuffix?: `0x${string}`;
|
|
3698
|
+
gas?: bigint;
|
|
3699
|
+
gasPrice?: bigint;
|
|
3700
|
+
maxFeePerGas?: bigint;
|
|
3701
|
+
maxPriorityFeePerGas?: bigint;
|
|
3702
|
+
nonce?: number;
|
|
3703
|
+
value?: bigint;
|
|
3704
|
+
}): Promise<`0x${string}`> {
|
|
3705
|
+
if (!this.contract.write) {
|
|
3706
|
+
throw new Error('Wallet client is required for write operations');
|
|
3707
|
+
}
|
|
3708
|
+
return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3711
|
+
/**
|
|
3712
|
+
* transferOwnership
|
|
3713
|
+
* nonpayable
|
|
3714
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3715
|
+
*/
|
|
3716
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
3717
|
+
accessList?: import('viem').AccessList;
|
|
3718
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3719
|
+
chain?: import('viem').Chain | null;
|
|
3720
|
+
dataSuffix?: `0x${string}`;
|
|
3721
|
+
gas?: bigint;
|
|
3722
|
+
gasPrice?: bigint;
|
|
3723
|
+
maxFeePerGas?: bigint;
|
|
3724
|
+
maxPriorityFeePerGas?: bigint;
|
|
3725
|
+
nonce?: number;
|
|
3726
|
+
value?: bigint;
|
|
3727
|
+
}): Promise<`0x${string}`> {
|
|
3728
|
+
if (!this.contract.write) {
|
|
3729
|
+
throw new Error('Wallet client is required for write operations');
|
|
3730
|
+
}
|
|
3731
|
+
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
|
|
3736
|
+
/**
|
|
3737
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
3738
|
+
*
|
|
3739
|
+
* @example
|
|
3740
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
3741
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
3742
|
+
* console.log('Would succeed:', result.result);
|
|
3743
|
+
*/
|
|
3744
|
+
get simulate() {
|
|
3745
|
+
const contract = this.contract;
|
|
3746
|
+
if (!contract.simulate) {
|
|
3747
|
+
throw new Error('Public client is required for simulation');
|
|
3748
|
+
}
|
|
3749
|
+
return {
|
|
3750
|
+
/**
|
|
3751
|
+
* Simulate approve
|
|
3752
|
+
* Returns gas estimate and result without sending transaction
|
|
3753
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3754
|
+
*/
|
|
3755
|
+
async approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
3756
|
+
accessList?: import('viem').AccessList;
|
|
3757
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3758
|
+
chain?: import('viem').Chain | null;
|
|
3759
|
+
dataSuffix?: `0x${string}`;
|
|
3760
|
+
gas?: bigint;
|
|
3761
|
+
gasPrice?: bigint;
|
|
3762
|
+
maxFeePerGas?: bigint;
|
|
3763
|
+
maxPriorityFeePerGas?: bigint;
|
|
3764
|
+
nonce?: number;
|
|
3765
|
+
value?: bigint;
|
|
3766
|
+
}): Promise<boolean> {
|
|
3767
|
+
return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
|
|
3768
|
+
},
|
|
3769
|
+
/**
|
|
3770
|
+
* Simulate burn
|
|
3771
|
+
* Returns gas estimate and result without sending transaction
|
|
3772
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3773
|
+
*/
|
|
3774
|
+
async burn(_amount: bigint, options?: {
|
|
3775
|
+
accessList?: import('viem').AccessList;
|
|
3776
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3777
|
+
chain?: import('viem').Chain | null;
|
|
3778
|
+
dataSuffix?: `0x${string}`;
|
|
3779
|
+
gas?: bigint;
|
|
3780
|
+
gasPrice?: bigint;
|
|
3781
|
+
maxFeePerGas?: bigint;
|
|
3782
|
+
maxPriorityFeePerGas?: bigint;
|
|
3783
|
+
nonce?: number;
|
|
3784
|
+
value?: bigint;
|
|
3785
|
+
}): Promise<void> {
|
|
3786
|
+
return contract.simulate.burn([_amount] as const, options) as Promise<void>;
|
|
3787
|
+
},
|
|
3788
|
+
/**
|
|
3789
|
+
* Simulate burnFrom
|
|
3790
|
+
* Returns gas estimate and result without sending transaction
|
|
3791
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3792
|
+
*/
|
|
3793
|
+
async burnFrom(_account: `0x${string}`, _amount: bigint, options?: {
|
|
3794
|
+
accessList?: import('viem').AccessList;
|
|
3795
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3796
|
+
chain?: import('viem').Chain | null;
|
|
3797
|
+
dataSuffix?: `0x${string}`;
|
|
3798
|
+
gas?: bigint;
|
|
3799
|
+
gasPrice?: bigint;
|
|
3800
|
+
maxFeePerGas?: bigint;
|
|
3801
|
+
maxPriorityFeePerGas?: bigint;
|
|
3802
|
+
nonce?: number;
|
|
3803
|
+
value?: bigint;
|
|
3804
|
+
}): Promise<void> {
|
|
3805
|
+
return contract.simulate.burnFrom([_account, _amount] as const, options) as Promise<void>;
|
|
3806
|
+
},
|
|
3807
|
+
/**
|
|
3808
|
+
* Simulate callOnOFTReceived
|
|
3809
|
+
* Returns gas estimate and result without sending transaction
|
|
3810
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3811
|
+
*/
|
|
3812
|
+
async callOnOFTReceived(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _from: `0x${string}`, _to: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _gasForCall: bigint, options?: {
|
|
3813
|
+
accessList?: import('viem').AccessList;
|
|
3814
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3815
|
+
chain?: import('viem').Chain | null;
|
|
3816
|
+
dataSuffix?: `0x${string}`;
|
|
3817
|
+
gas?: bigint;
|
|
3818
|
+
gasPrice?: bigint;
|
|
3819
|
+
maxFeePerGas?: bigint;
|
|
3820
|
+
maxPriorityFeePerGas?: bigint;
|
|
3821
|
+
nonce?: number;
|
|
3822
|
+
value?: bigint;
|
|
3823
|
+
}): Promise<void> {
|
|
3824
|
+
return contract.simulate.callOnOFTReceived([_srcChainId, _srcAddress, _nonce, _from, _to, _amount, _payload, _gasForCall] as const, options) as Promise<void>;
|
|
3825
|
+
},
|
|
3826
|
+
/**
|
|
3827
|
+
* Simulate decreaseAllowance
|
|
3828
|
+
* Returns gas estimate and result without sending transaction
|
|
3829
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3830
|
+
*/
|
|
3831
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
3832
|
+
accessList?: import('viem').AccessList;
|
|
3833
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3834
|
+
chain?: import('viem').Chain | null;
|
|
3835
|
+
dataSuffix?: `0x${string}`;
|
|
3836
|
+
gas?: bigint;
|
|
3837
|
+
gasPrice?: bigint;
|
|
3838
|
+
maxFeePerGas?: bigint;
|
|
3839
|
+
maxPriorityFeePerGas?: bigint;
|
|
3840
|
+
nonce?: number;
|
|
3841
|
+
value?: bigint;
|
|
3842
|
+
}): Promise<boolean> {
|
|
3843
|
+
return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
|
|
3844
|
+
},
|
|
3845
|
+
/**
|
|
3846
|
+
* Simulate delegate
|
|
3847
|
+
* Returns gas estimate and result without sending transaction
|
|
3848
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3849
|
+
*/
|
|
3850
|
+
async delegate(delegatee: `0x${string}`, options?: {
|
|
3851
|
+
accessList?: import('viem').AccessList;
|
|
3852
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3853
|
+
chain?: import('viem').Chain | null;
|
|
3854
|
+
dataSuffix?: `0x${string}`;
|
|
3855
|
+
gas?: bigint;
|
|
3856
|
+
gasPrice?: bigint;
|
|
3857
|
+
maxFeePerGas?: bigint;
|
|
3858
|
+
maxPriorityFeePerGas?: bigint;
|
|
3859
|
+
nonce?: number;
|
|
3860
|
+
value?: bigint;
|
|
3861
|
+
}): Promise<void> {
|
|
3862
|
+
return contract.simulate.delegate([delegatee] as const, options) as Promise<void>;
|
|
3863
|
+
},
|
|
3864
|
+
/**
|
|
3865
|
+
* Simulate delegateBySig
|
|
3866
|
+
* Returns gas estimate and result without sending transaction
|
|
3867
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3868
|
+
*/
|
|
3869
|
+
async delegateBySig(delegatee: `0x${string}`, nonce: bigint, expiry: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
3870
|
+
accessList?: import('viem').AccessList;
|
|
3871
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3872
|
+
chain?: import('viem').Chain | null;
|
|
3873
|
+
dataSuffix?: `0x${string}`;
|
|
3874
|
+
gas?: bigint;
|
|
3875
|
+
gasPrice?: bigint;
|
|
3876
|
+
maxFeePerGas?: bigint;
|
|
3877
|
+
maxPriorityFeePerGas?: bigint;
|
|
3878
|
+
nonce?: number;
|
|
3879
|
+
value?: bigint;
|
|
3880
|
+
}): Promise<void> {
|
|
3881
|
+
return contract.simulate.delegateBySig([delegatee, nonce, expiry, v, r, s] as const, options) as Promise<void>;
|
|
3882
|
+
},
|
|
3883
|
+
/**
|
|
3884
|
+
* Simulate forceResumeReceive
|
|
3885
|
+
* Returns gas estimate and result without sending transaction
|
|
3886
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3887
|
+
*/
|
|
3888
|
+
async forceResumeReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, options?: {
|
|
3889
|
+
accessList?: import('viem').AccessList;
|
|
3890
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3891
|
+
chain?: import('viem').Chain | null;
|
|
3892
|
+
dataSuffix?: `0x${string}`;
|
|
3893
|
+
gas?: bigint;
|
|
3894
|
+
gasPrice?: bigint;
|
|
3895
|
+
maxFeePerGas?: bigint;
|
|
3896
|
+
maxPriorityFeePerGas?: bigint;
|
|
3897
|
+
nonce?: number;
|
|
3898
|
+
value?: bigint;
|
|
3899
|
+
}): Promise<void> {
|
|
3900
|
+
return contract.simulate.forceResumeReceive([_srcChainId, _srcAddress] as const, options) as Promise<void>;
|
|
3901
|
+
},
|
|
3902
|
+
/**
|
|
3903
|
+
* Simulate increaseAllowance
|
|
3904
|
+
* Returns gas estimate and result without sending transaction
|
|
3905
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3906
|
+
*/
|
|
3907
|
+
async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
3908
|
+
accessList?: import('viem').AccessList;
|
|
3909
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3910
|
+
chain?: import('viem').Chain | null;
|
|
3911
|
+
dataSuffix?: `0x${string}`;
|
|
3912
|
+
gas?: bigint;
|
|
3913
|
+
gasPrice?: bigint;
|
|
3914
|
+
maxFeePerGas?: bigint;
|
|
3915
|
+
maxPriorityFeePerGas?: bigint;
|
|
3916
|
+
nonce?: number;
|
|
3917
|
+
value?: bigint;
|
|
3918
|
+
}): Promise<boolean> {
|
|
3919
|
+
return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
|
|
3920
|
+
},
|
|
3921
|
+
/**
|
|
3922
|
+
* Simulate initialize
|
|
3923
|
+
* Returns gas estimate and result without sending transaction
|
|
3924
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3925
|
+
*/
|
|
3926
|
+
async initialize(_lzEndpoint: `0x${string}`, _buyTaxReceiver: `0x${string}`, _antiMEVStrategy: `0x${string}`, _migrator: `0x${string}`, _migratorMintSupply: bigint, _buyTax: bigint, _sellTax: bigint, _isTaxingEnabled: boolean, _isAntiMEV: boolean, _isTransferBlacklisting: boolean, options?: {
|
|
3927
|
+
accessList?: import('viem').AccessList;
|
|
3928
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3929
|
+
chain?: import('viem').Chain | null;
|
|
3930
|
+
dataSuffix?: `0x${string}`;
|
|
3931
|
+
gas?: bigint;
|
|
3932
|
+
gasPrice?: bigint;
|
|
3933
|
+
maxFeePerGas?: bigint;
|
|
3934
|
+
maxPriorityFeePerGas?: bigint;
|
|
3935
|
+
nonce?: number;
|
|
3936
|
+
value?: bigint;
|
|
3937
|
+
}): Promise<void> {
|
|
3938
|
+
return contract.simulate.initialize([_lzEndpoint, _buyTaxReceiver, _antiMEVStrategy, _migrator, _migratorMintSupply, _buyTax, _sellTax, _isTaxingEnabled, _isAntiMEV, _isTransferBlacklisting] as const, options) as Promise<void>;
|
|
3939
|
+
},
|
|
3940
|
+
/**
|
|
3941
|
+
* Simulate lzReceive
|
|
3942
|
+
* Returns gas estimate and result without sending transaction
|
|
3943
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3944
|
+
*/
|
|
3945
|
+
async lzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
3946
|
+
accessList?: import('viem').AccessList;
|
|
3947
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3948
|
+
chain?: import('viem').Chain | null;
|
|
3949
|
+
dataSuffix?: `0x${string}`;
|
|
3950
|
+
gas?: bigint;
|
|
3951
|
+
gasPrice?: bigint;
|
|
3952
|
+
maxFeePerGas?: bigint;
|
|
3953
|
+
maxPriorityFeePerGas?: bigint;
|
|
3954
|
+
nonce?: number;
|
|
3955
|
+
value?: bigint;
|
|
3956
|
+
}): Promise<void> {
|
|
3957
|
+
return contract.simulate.lzReceive([_srcChainId, _srcAddress, _nonce, _payload] as const, options) as Promise<void>;
|
|
3958
|
+
},
|
|
3959
|
+
/**
|
|
3960
|
+
* Simulate nonblockingLzReceive
|
|
3961
|
+
* Returns gas estimate and result without sending transaction
|
|
3962
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3963
|
+
*/
|
|
3964
|
+
async nonblockingLzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
3965
|
+
accessList?: import('viem').AccessList;
|
|
3966
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3967
|
+
chain?: import('viem').Chain | null;
|
|
3968
|
+
dataSuffix?: `0x${string}`;
|
|
3969
|
+
gas?: bigint;
|
|
3970
|
+
gasPrice?: bigint;
|
|
3971
|
+
maxFeePerGas?: bigint;
|
|
3972
|
+
maxPriorityFeePerGas?: bigint;
|
|
3973
|
+
nonce?: number;
|
|
3974
|
+
value?: bigint;
|
|
3975
|
+
}): Promise<void> {
|
|
3976
|
+
return contract.simulate.nonblockingLzReceive([_srcChainId, _srcAddress, _nonce, _payload] as const, options) as Promise<void>;
|
|
3977
|
+
},
|
|
3978
|
+
/**
|
|
3979
|
+
* Simulate permit
|
|
3980
|
+
* Returns gas estimate and result without sending transaction
|
|
3981
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3982
|
+
*/
|
|
3983
|
+
async permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
3984
|
+
accessList?: import('viem').AccessList;
|
|
3985
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3986
|
+
chain?: import('viem').Chain | null;
|
|
3987
|
+
dataSuffix?: `0x${string}`;
|
|
3988
|
+
gas?: bigint;
|
|
3989
|
+
gasPrice?: bigint;
|
|
3990
|
+
maxFeePerGas?: bigint;
|
|
3991
|
+
maxPriorityFeePerGas?: bigint;
|
|
3992
|
+
nonce?: number;
|
|
3993
|
+
value?: bigint;
|
|
3994
|
+
}): Promise<void> {
|
|
3995
|
+
return contract.simulate.permit([owner, spender, value, deadline, v, r, s] as const, options) as Promise<void>;
|
|
3996
|
+
},
|
|
3997
|
+
/**
|
|
3998
|
+
* Simulate recoverToken
|
|
3999
|
+
* Returns gas estimate and result without sending transaction
|
|
4000
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4001
|
+
*/
|
|
4002
|
+
async recoverToken(_token: `0x${string}`, _amount: bigint, options?: {
|
|
4003
|
+
accessList?: import('viem').AccessList;
|
|
4004
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4005
|
+
chain?: import('viem').Chain | null;
|
|
4006
|
+
dataSuffix?: `0x${string}`;
|
|
4007
|
+
gas?: bigint;
|
|
4008
|
+
gasPrice?: bigint;
|
|
4009
|
+
maxFeePerGas?: bigint;
|
|
4010
|
+
maxPriorityFeePerGas?: bigint;
|
|
4011
|
+
nonce?: number;
|
|
4012
|
+
value?: bigint;
|
|
4013
|
+
}): Promise<void> {
|
|
4014
|
+
return contract.simulate.recoverToken([_token, _amount] as const, options) as Promise<void>;
|
|
4015
|
+
},
|
|
4016
|
+
/**
|
|
4017
|
+
* Simulate renounceOwnership
|
|
4018
|
+
* Returns gas estimate and result without sending transaction
|
|
4019
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4020
|
+
*/
|
|
4021
|
+
async renounceOwnership(options?: {
|
|
4022
|
+
accessList?: import('viem').AccessList;
|
|
4023
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4024
|
+
chain?: import('viem').Chain | null;
|
|
4025
|
+
dataSuffix?: `0x${string}`;
|
|
4026
|
+
gas?: bigint;
|
|
4027
|
+
gasPrice?: bigint;
|
|
4028
|
+
maxFeePerGas?: bigint;
|
|
4029
|
+
maxPriorityFeePerGas?: bigint;
|
|
4030
|
+
nonce?: number;
|
|
4031
|
+
value?: bigint;
|
|
4032
|
+
}): Promise<void> {
|
|
4033
|
+
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
4034
|
+
},
|
|
4035
|
+
/**
|
|
4036
|
+
* Simulate retryMessage
|
|
4037
|
+
* Returns gas estimate and result without sending transaction
|
|
4038
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4039
|
+
*/
|
|
4040
|
+
async retryMessage(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
4041
|
+
accessList?: import('viem').AccessList;
|
|
4042
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4043
|
+
chain?: import('viem').Chain | null;
|
|
4044
|
+
dataSuffix?: `0x${string}`;
|
|
4045
|
+
gas?: bigint;
|
|
4046
|
+
gasPrice?: bigint;
|
|
4047
|
+
maxFeePerGas?: bigint;
|
|
4048
|
+
maxPriorityFeePerGas?: bigint;
|
|
4049
|
+
nonce?: number;
|
|
4050
|
+
value?: bigint;
|
|
4051
|
+
}): Promise<void> {
|
|
4052
|
+
return contract.simulate.retryMessage([_srcChainId, _srcAddress, _nonce, _payload] as const, options) as Promise<void>;
|
|
4053
|
+
},
|
|
4054
|
+
/**
|
|
4055
|
+
* Simulate sendAndCall
|
|
4056
|
+
* Returns gas estimate and result without sending transaction
|
|
4057
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4058
|
+
*/
|
|
4059
|
+
async sendAndCall(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _dstGasForCall: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
4060
|
+
accessList?: import('viem').AccessList;
|
|
4061
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4062
|
+
chain?: import('viem').Chain | null;
|
|
4063
|
+
dataSuffix?: `0x${string}`;
|
|
4064
|
+
gas?: bigint;
|
|
4065
|
+
gasPrice?: bigint;
|
|
4066
|
+
maxFeePerGas?: bigint;
|
|
4067
|
+
maxPriorityFeePerGas?: bigint;
|
|
4068
|
+
nonce?: number;
|
|
4069
|
+
value?: bigint;
|
|
4070
|
+
}): Promise<void> {
|
|
4071
|
+
return contract.simulate.sendAndCall([_from, _dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _callParams] as const, options) as Promise<void>;
|
|
4072
|
+
},
|
|
4073
|
+
/**
|
|
4074
|
+
* Simulate sendFrom
|
|
4075
|
+
* Returns gas estimate and result without sending transaction
|
|
4076
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4077
|
+
*/
|
|
4078
|
+
async sendFrom(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
4079
|
+
accessList?: import('viem').AccessList;
|
|
4080
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4081
|
+
chain?: import('viem').Chain | null;
|
|
4082
|
+
dataSuffix?: `0x${string}`;
|
|
4083
|
+
gas?: bigint;
|
|
4084
|
+
gasPrice?: bigint;
|
|
4085
|
+
maxFeePerGas?: bigint;
|
|
4086
|
+
maxPriorityFeePerGas?: bigint;
|
|
4087
|
+
nonce?: number;
|
|
4088
|
+
value?: bigint;
|
|
4089
|
+
}): Promise<void> {
|
|
4090
|
+
return contract.simulate.sendFrom([_from, _dstChainId, _toAddress, _amount, _callParams] as const, options) as Promise<void>;
|
|
4091
|
+
},
|
|
4092
|
+
/**
|
|
4093
|
+
* Simulate setAntiMevStrategy
|
|
4094
|
+
* Returns gas estimate and result without sending transaction
|
|
4095
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4096
|
+
*/
|
|
4097
|
+
async setAntiMevStrategy(_antiMEVStrategy: `0x${string}`, options?: {
|
|
4098
|
+
accessList?: import('viem').AccessList;
|
|
4099
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4100
|
+
chain?: import('viem').Chain | null;
|
|
4101
|
+
dataSuffix?: `0x${string}`;
|
|
4102
|
+
gas?: bigint;
|
|
4103
|
+
gasPrice?: bigint;
|
|
4104
|
+
maxFeePerGas?: bigint;
|
|
4105
|
+
maxPriorityFeePerGas?: bigint;
|
|
4106
|
+
nonce?: number;
|
|
4107
|
+
value?: bigint;
|
|
4108
|
+
}): Promise<void> {
|
|
4109
|
+
return contract.simulate.setAntiMevStrategy([_antiMEVStrategy] as const, options) as Promise<void>;
|
|
4110
|
+
},
|
|
4111
|
+
/**
|
|
4112
|
+
* Simulate setBuyTaxReceiver
|
|
4113
|
+
* Returns gas estimate and result without sending transaction
|
|
4114
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4115
|
+
*/
|
|
4116
|
+
async setBuyTaxReceiver(_buyTaxReceiver: `0x${string}`, options?: {
|
|
4117
|
+
accessList?: import('viem').AccessList;
|
|
4118
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4119
|
+
chain?: import('viem').Chain | null;
|
|
4120
|
+
dataSuffix?: `0x${string}`;
|
|
4121
|
+
gas?: bigint;
|
|
4122
|
+
gasPrice?: bigint;
|
|
4123
|
+
maxFeePerGas?: bigint;
|
|
4124
|
+
maxPriorityFeePerGas?: bigint;
|
|
4125
|
+
nonce?: number;
|
|
4126
|
+
value?: bigint;
|
|
4127
|
+
}): Promise<void> {
|
|
4128
|
+
return contract.simulate.setBuyTaxReceiver([_buyTaxReceiver] as const, options) as Promise<void>;
|
|
4129
|
+
},
|
|
4130
|
+
/**
|
|
4131
|
+
* Simulate setConfig
|
|
4132
|
+
* Returns gas estimate and result without sending transaction
|
|
4133
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4134
|
+
*/
|
|
4135
|
+
async setConfig(_version: bigint, _chainId: bigint, _configType: bigint, _config: `0x${string}`, options?: {
|
|
4136
|
+
accessList?: import('viem').AccessList;
|
|
4137
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4138
|
+
chain?: import('viem').Chain | null;
|
|
4139
|
+
dataSuffix?: `0x${string}`;
|
|
4140
|
+
gas?: bigint;
|
|
4141
|
+
gasPrice?: bigint;
|
|
4142
|
+
maxFeePerGas?: bigint;
|
|
4143
|
+
maxPriorityFeePerGas?: bigint;
|
|
4144
|
+
nonce?: number;
|
|
4145
|
+
value?: bigint;
|
|
4146
|
+
}): Promise<void> {
|
|
4147
|
+
return contract.simulate.setConfig([_version, _chainId, _configType, _config] as const, options) as Promise<void>;
|
|
4148
|
+
},
|
|
4149
|
+
/**
|
|
4150
|
+
* Simulate setIsAntiMEV
|
|
4151
|
+
* Returns gas estimate and result without sending transaction
|
|
4152
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4153
|
+
*/
|
|
4154
|
+
async setIsAntiMEV(_isAntiMEV: boolean, options?: {
|
|
4155
|
+
accessList?: import('viem').AccessList;
|
|
4156
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4157
|
+
chain?: import('viem').Chain | null;
|
|
4158
|
+
dataSuffix?: `0x${string}`;
|
|
4159
|
+
gas?: bigint;
|
|
4160
|
+
gasPrice?: bigint;
|
|
4161
|
+
maxFeePerGas?: bigint;
|
|
4162
|
+
maxPriorityFeePerGas?: bigint;
|
|
4163
|
+
nonce?: number;
|
|
4164
|
+
value?: bigint;
|
|
4165
|
+
}): Promise<void> {
|
|
4166
|
+
return contract.simulate.setIsAntiMEV([_isAntiMEV] as const, options) as Promise<void>;
|
|
4167
|
+
},
|
|
4168
|
+
/**
|
|
4169
|
+
* Simulate setIsTransferBlacklisting
|
|
4170
|
+
* Returns gas estimate and result without sending transaction
|
|
4171
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4172
|
+
*/
|
|
4173
|
+
async setIsTransferBlacklisting(_isBlacklisting: boolean, options?: {
|
|
4174
|
+
accessList?: import('viem').AccessList;
|
|
4175
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4176
|
+
chain?: import('viem').Chain | null;
|
|
4177
|
+
dataSuffix?: `0x${string}`;
|
|
4178
|
+
gas?: bigint;
|
|
4179
|
+
gasPrice?: bigint;
|
|
4180
|
+
maxFeePerGas?: bigint;
|
|
4181
|
+
maxPriorityFeePerGas?: bigint;
|
|
4182
|
+
nonce?: number;
|
|
4183
|
+
value?: bigint;
|
|
4184
|
+
}): Promise<void> {
|
|
4185
|
+
return contract.simulate.setIsTransferBlacklisting([_isBlacklisting] as const, options) as Promise<void>;
|
|
4186
|
+
},
|
|
4187
|
+
/**
|
|
4188
|
+
* Simulate setMinDstGas
|
|
4189
|
+
* Returns gas estimate and result without sending transaction
|
|
4190
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4191
|
+
*/
|
|
4192
|
+
async setMinDstGas(_dstChainId: bigint, _packetType: bigint, _minGas: bigint, options?: {
|
|
4193
|
+
accessList?: import('viem').AccessList;
|
|
4194
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4195
|
+
chain?: import('viem').Chain | null;
|
|
4196
|
+
dataSuffix?: `0x${string}`;
|
|
4197
|
+
gas?: bigint;
|
|
4198
|
+
gasPrice?: bigint;
|
|
4199
|
+
maxFeePerGas?: bigint;
|
|
4200
|
+
maxPriorityFeePerGas?: bigint;
|
|
4201
|
+
nonce?: number;
|
|
4202
|
+
value?: bigint;
|
|
4203
|
+
}): Promise<void> {
|
|
4204
|
+
return contract.simulate.setMinDstGas([_dstChainId, _packetType, _minGas] as const, options) as Promise<void>;
|
|
4205
|
+
},
|
|
4206
|
+
/**
|
|
4207
|
+
* Simulate setPayloadSizeLimit
|
|
4208
|
+
* Returns gas estimate and result without sending transaction
|
|
4209
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4210
|
+
*/
|
|
4211
|
+
async setPayloadSizeLimit(_dstChainId: bigint, _size: bigint, options?: {
|
|
4212
|
+
accessList?: import('viem').AccessList;
|
|
4213
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4214
|
+
chain?: import('viem').Chain | null;
|
|
4215
|
+
dataSuffix?: `0x${string}`;
|
|
4216
|
+
gas?: bigint;
|
|
4217
|
+
gasPrice?: bigint;
|
|
4218
|
+
maxFeePerGas?: bigint;
|
|
4219
|
+
maxPriorityFeePerGas?: bigint;
|
|
4220
|
+
nonce?: number;
|
|
4221
|
+
value?: bigint;
|
|
4222
|
+
}): Promise<void> {
|
|
4223
|
+
return contract.simulate.setPayloadSizeLimit([_dstChainId, _size] as const, options) as Promise<void>;
|
|
4224
|
+
},
|
|
4225
|
+
/**
|
|
4226
|
+
* Simulate setPrecrime
|
|
4227
|
+
* Returns gas estimate and result without sending transaction
|
|
4228
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4229
|
+
*/
|
|
4230
|
+
async setPrecrime(_precrime: `0x${string}`, options?: {
|
|
4231
|
+
accessList?: import('viem').AccessList;
|
|
4232
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4233
|
+
chain?: import('viem').Chain | null;
|
|
4234
|
+
dataSuffix?: `0x${string}`;
|
|
4235
|
+
gas?: bigint;
|
|
4236
|
+
gasPrice?: bigint;
|
|
4237
|
+
maxFeePerGas?: bigint;
|
|
4238
|
+
maxPriorityFeePerGas?: bigint;
|
|
4239
|
+
nonce?: number;
|
|
4240
|
+
value?: bigint;
|
|
4241
|
+
}): Promise<void> {
|
|
4242
|
+
return contract.simulate.setPrecrime([_precrime] as const, options) as Promise<void>;
|
|
4243
|
+
},
|
|
4244
|
+
/**
|
|
4245
|
+
* Simulate setReceiveVersion
|
|
4246
|
+
* Returns gas estimate and result without sending transaction
|
|
4247
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4248
|
+
*/
|
|
4249
|
+
async setReceiveVersion(_version: bigint, options?: {
|
|
4250
|
+
accessList?: import('viem').AccessList;
|
|
4251
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4252
|
+
chain?: import('viem').Chain | null;
|
|
4253
|
+
dataSuffix?: `0x${string}`;
|
|
4254
|
+
gas?: bigint;
|
|
4255
|
+
gasPrice?: bigint;
|
|
4256
|
+
maxFeePerGas?: bigint;
|
|
4257
|
+
maxPriorityFeePerGas?: bigint;
|
|
4258
|
+
nonce?: number;
|
|
4259
|
+
value?: bigint;
|
|
4260
|
+
}): Promise<void> {
|
|
4261
|
+
return contract.simulate.setReceiveVersion([_version] as const, options) as Promise<void>;
|
|
4262
|
+
},
|
|
4263
|
+
/**
|
|
4264
|
+
* Simulate setSendVersion
|
|
4265
|
+
* Returns gas estimate and result without sending transaction
|
|
4266
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4267
|
+
*/
|
|
4268
|
+
async setSendVersion(_version: bigint, options?: {
|
|
4269
|
+
accessList?: import('viem').AccessList;
|
|
4270
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4271
|
+
chain?: import('viem').Chain | null;
|
|
4272
|
+
dataSuffix?: `0x${string}`;
|
|
4273
|
+
gas?: bigint;
|
|
4274
|
+
gasPrice?: bigint;
|
|
4275
|
+
maxFeePerGas?: bigint;
|
|
4276
|
+
maxPriorityFeePerGas?: bigint;
|
|
4277
|
+
nonce?: number;
|
|
4278
|
+
value?: bigint;
|
|
4279
|
+
}): Promise<void> {
|
|
4280
|
+
return contract.simulate.setSendVersion([_version] as const, options) as Promise<void>;
|
|
4281
|
+
},
|
|
4282
|
+
/**
|
|
4283
|
+
* Simulate setTax
|
|
4284
|
+
* Returns gas estimate and result without sending transaction
|
|
4285
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4286
|
+
*/
|
|
4287
|
+
async setTax(_buyTax: bigint, _sellTax: bigint, _isTaxingEnabled: boolean, options?: {
|
|
4288
|
+
accessList?: import('viem').AccessList;
|
|
4289
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4290
|
+
chain?: import('viem').Chain | null;
|
|
4291
|
+
dataSuffix?: `0x${string}`;
|
|
4292
|
+
gas?: bigint;
|
|
4293
|
+
gasPrice?: bigint;
|
|
4294
|
+
maxFeePerGas?: bigint;
|
|
4295
|
+
maxPriorityFeePerGas?: bigint;
|
|
4296
|
+
nonce?: number;
|
|
4297
|
+
value?: bigint;
|
|
4298
|
+
}): Promise<void> {
|
|
4299
|
+
return contract.simulate.setTax([_buyTax, _sellTax, _isTaxingEnabled] as const, options) as Promise<void>;
|
|
4300
|
+
},
|
|
4301
|
+
/**
|
|
4302
|
+
* Simulate setTaxWhitelist
|
|
4303
|
+
* Returns gas estimate and result without sending transaction
|
|
4304
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4305
|
+
*/
|
|
4306
|
+
async setTaxWhitelist(_whitelist: `0x${string}`, _isWhitelisted: boolean, options?: {
|
|
4307
|
+
accessList?: import('viem').AccessList;
|
|
4308
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4309
|
+
chain?: import('viem').Chain | null;
|
|
4310
|
+
dataSuffix?: `0x${string}`;
|
|
4311
|
+
gas?: bigint;
|
|
4312
|
+
gasPrice?: bigint;
|
|
4313
|
+
maxFeePerGas?: bigint;
|
|
4314
|
+
maxPriorityFeePerGas?: bigint;
|
|
4315
|
+
nonce?: number;
|
|
4316
|
+
value?: bigint;
|
|
4317
|
+
}): Promise<void> {
|
|
4318
|
+
return contract.simulate.setTaxWhitelist([_whitelist, _isWhitelisted] as const, options) as Promise<void>;
|
|
4319
|
+
},
|
|
4320
|
+
/**
|
|
4321
|
+
* Simulate setTaxableContract
|
|
4322
|
+
* Returns gas estimate and result without sending transaction
|
|
4323
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4324
|
+
*/
|
|
4325
|
+
async setTaxableContract(_taxableContract: `0x${string}`, _isTaxable: boolean, options?: {
|
|
4326
|
+
accessList?: import('viem').AccessList;
|
|
4327
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4328
|
+
chain?: import('viem').Chain | null;
|
|
4329
|
+
dataSuffix?: `0x${string}`;
|
|
4330
|
+
gas?: bigint;
|
|
4331
|
+
gasPrice?: bigint;
|
|
4332
|
+
maxFeePerGas?: bigint;
|
|
4333
|
+
maxPriorityFeePerGas?: bigint;
|
|
4334
|
+
nonce?: number;
|
|
4335
|
+
value?: bigint;
|
|
4336
|
+
}): Promise<void> {
|
|
4337
|
+
return contract.simulate.setTaxableContract([_taxableContract, _isTaxable] as const, options) as Promise<void>;
|
|
4338
|
+
},
|
|
4339
|
+
/**
|
|
4340
|
+
* Simulate setTransferBlacklist
|
|
4341
|
+
* Returns gas estimate and result without sending transaction
|
|
4342
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4343
|
+
*/
|
|
4344
|
+
async setTransferBlacklist(_blacklist: `0x${string}`, _isBlacklisted: boolean, options?: {
|
|
4345
|
+
accessList?: import('viem').AccessList;
|
|
4346
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4347
|
+
chain?: import('viem').Chain | null;
|
|
4348
|
+
dataSuffix?: `0x${string}`;
|
|
4349
|
+
gas?: bigint;
|
|
4350
|
+
gasPrice?: bigint;
|
|
4351
|
+
maxFeePerGas?: bigint;
|
|
4352
|
+
maxPriorityFeePerGas?: bigint;
|
|
4353
|
+
nonce?: number;
|
|
4354
|
+
value?: bigint;
|
|
4355
|
+
}): Promise<void> {
|
|
4356
|
+
return contract.simulate.setTransferBlacklist([_blacklist, _isBlacklisted] as const, options) as Promise<void>;
|
|
4357
|
+
},
|
|
4358
|
+
/**
|
|
4359
|
+
* Simulate setTrustedRemote
|
|
4360
|
+
* Returns gas estimate and result without sending transaction
|
|
4361
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4362
|
+
*/
|
|
4363
|
+
async setTrustedRemote(_remoteChainId: bigint, _path: `0x${string}`, options?: {
|
|
4364
|
+
accessList?: import('viem').AccessList;
|
|
4365
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4366
|
+
chain?: import('viem').Chain | null;
|
|
4367
|
+
dataSuffix?: `0x${string}`;
|
|
4368
|
+
gas?: bigint;
|
|
4369
|
+
gasPrice?: bigint;
|
|
4370
|
+
maxFeePerGas?: bigint;
|
|
4371
|
+
maxPriorityFeePerGas?: bigint;
|
|
4372
|
+
nonce?: number;
|
|
4373
|
+
value?: bigint;
|
|
4374
|
+
}): Promise<void> {
|
|
4375
|
+
return contract.simulate.setTrustedRemote([_remoteChainId, _path] as const, options) as Promise<void>;
|
|
4376
|
+
},
|
|
4377
|
+
/**
|
|
4378
|
+
* Simulate setTrustedRemoteAddress
|
|
4379
|
+
* Returns gas estimate and result without sending transaction
|
|
4380
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4381
|
+
*/
|
|
4382
|
+
async setTrustedRemoteAddress(_remoteChainId: bigint, _remoteAddress: `0x${string}`, options?: {
|
|
4383
|
+
accessList?: import('viem').AccessList;
|
|
4384
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4385
|
+
chain?: import('viem').Chain | null;
|
|
4386
|
+
dataSuffix?: `0x${string}`;
|
|
4387
|
+
gas?: bigint;
|
|
4388
|
+
gasPrice?: bigint;
|
|
4389
|
+
maxFeePerGas?: bigint;
|
|
4390
|
+
maxPriorityFeePerGas?: bigint;
|
|
4391
|
+
nonce?: number;
|
|
4392
|
+
value?: bigint;
|
|
4393
|
+
}): Promise<void> {
|
|
4394
|
+
return contract.simulate.setTrustedRemoteAddress([_remoteChainId, _remoteAddress] as const, options) as Promise<void>;
|
|
4395
|
+
},
|
|
4396
|
+
/**
|
|
4397
|
+
* Simulate setUseCustomAdapterParams
|
|
4398
|
+
* Returns gas estimate and result without sending transaction
|
|
4399
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4400
|
+
*/
|
|
4401
|
+
async setUseCustomAdapterParams(_useCustomAdapterParams: boolean, options?: {
|
|
4402
|
+
accessList?: import('viem').AccessList;
|
|
4403
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4404
|
+
chain?: import('viem').Chain | null;
|
|
4405
|
+
dataSuffix?: `0x${string}`;
|
|
4406
|
+
gas?: bigint;
|
|
4407
|
+
gasPrice?: bigint;
|
|
4408
|
+
maxFeePerGas?: bigint;
|
|
4409
|
+
maxPriorityFeePerGas?: bigint;
|
|
4410
|
+
nonce?: number;
|
|
4411
|
+
value?: bigint;
|
|
4412
|
+
}): Promise<void> {
|
|
4413
|
+
return contract.simulate.setUseCustomAdapterParams([_useCustomAdapterParams] as const, options) as Promise<void>;
|
|
4414
|
+
},
|
|
4415
|
+
/**
|
|
4416
|
+
* Simulate transfer
|
|
4417
|
+
* Returns gas estimate and result without sending transaction
|
|
4418
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4419
|
+
*/
|
|
4420
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
4421
|
+
accessList?: import('viem').AccessList;
|
|
4422
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4423
|
+
chain?: import('viem').Chain | null;
|
|
4424
|
+
dataSuffix?: `0x${string}`;
|
|
4425
|
+
gas?: bigint;
|
|
4426
|
+
gasPrice?: bigint;
|
|
4427
|
+
maxFeePerGas?: bigint;
|
|
4428
|
+
maxPriorityFeePerGas?: bigint;
|
|
4429
|
+
nonce?: number;
|
|
4430
|
+
value?: bigint;
|
|
4431
|
+
}): Promise<boolean> {
|
|
4432
|
+
return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
|
|
4433
|
+
},
|
|
4434
|
+
/**
|
|
4435
|
+
* Simulate transferFrom
|
|
4436
|
+
* Returns gas estimate and result without sending transaction
|
|
4437
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4438
|
+
*/
|
|
4439
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
4440
|
+
accessList?: import('viem').AccessList;
|
|
4441
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4442
|
+
chain?: import('viem').Chain | null;
|
|
4443
|
+
dataSuffix?: `0x${string}`;
|
|
4444
|
+
gas?: bigint;
|
|
4445
|
+
gasPrice?: bigint;
|
|
4446
|
+
maxFeePerGas?: bigint;
|
|
4447
|
+
maxPriorityFeePerGas?: bigint;
|
|
4448
|
+
nonce?: number;
|
|
4449
|
+
value?: bigint;
|
|
4450
|
+
}): Promise<boolean> {
|
|
4451
|
+
return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
|
|
4452
|
+
},
|
|
4453
|
+
/**
|
|
4454
|
+
* Simulate transferOwnership
|
|
4455
|
+
* Returns gas estimate and result without sending transaction
|
|
4456
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
4457
|
+
*/
|
|
4458
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
4459
|
+
accessList?: import('viem').AccessList;
|
|
4460
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
4461
|
+
chain?: import('viem').Chain | null;
|
|
4462
|
+
dataSuffix?: `0x${string}`;
|
|
4463
|
+
gas?: bigint;
|
|
4464
|
+
gasPrice?: bigint;
|
|
4465
|
+
maxFeePerGas?: bigint;
|
|
4466
|
+
maxPriorityFeePerGas?: bigint;
|
|
4467
|
+
nonce?: number;
|
|
4468
|
+
value?: bigint;
|
|
4469
|
+
}): Promise<void> {
|
|
4470
|
+
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
4471
|
+
}
|
|
4472
|
+
};
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
/**
|
|
4476
|
+
* Watch contract events
|
|
4477
|
+
*
|
|
4478
|
+
* @example
|
|
4479
|
+
* // Watch all Transfer events
|
|
4480
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
4481
|
+
* console.log('Transfer:', event);
|
|
4482
|
+
* });
|
|
4483
|
+
*
|
|
4484
|
+
* // Stop watching
|
|
4485
|
+
* unwatch();
|
|
4486
|
+
*/
|
|
4487
|
+
get watch() {
|
|
4488
|
+
return {
|
|
4489
|
+
/**
|
|
4490
|
+
* Watch Approval events
|
|
4491
|
+
* @param callback Function to call when event is emitted
|
|
4492
|
+
* @param filter Optional filter for indexed parameters
|
|
4493
|
+
* @returns Unwatch function to stop listening
|
|
4494
|
+
*/
|
|
4495
|
+
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner?: `0x${string}` | `0x${string}`[] | null; spender?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
4496
|
+
return this.publicClient.watchContractEvent({
|
|
4497
|
+
address: this.contractAddress,
|
|
4498
|
+
abi: BenCoinV2Abi,
|
|
4499
|
+
eventName: 'Approval',
|
|
4500
|
+
args: filter as any,
|
|
4501
|
+
onLogs: (logs: any[]) => {
|
|
4502
|
+
logs.forEach((log: any) => {
|
|
4503
|
+
callback(log.args as any);
|
|
4504
|
+
});
|
|
4505
|
+
},
|
|
4506
|
+
}) as () => void;
|
|
4507
|
+
},
|
|
4508
|
+
/**
|
|
4509
|
+
* Watch CallOFTReceivedSuccess events
|
|
4510
|
+
* @param callback Function to call when event is emitted
|
|
4511
|
+
* @param filter Optional filter for indexed parameters
|
|
4512
|
+
* @returns Unwatch function to stop listening
|
|
4513
|
+
*/
|
|
4514
|
+
CallOFTReceivedSuccess: (callback: (event: { _srcChainId: bigint; _srcAddress: `0x${string}`; _nonce: bigint; _hash: `0x${string}` }) => void, filter?: { _srcChainId?: number | number[] | null }) => {
|
|
4515
|
+
return this.publicClient.watchContractEvent({
|
|
4516
|
+
address: this.contractAddress,
|
|
4517
|
+
abi: BenCoinV2Abi,
|
|
4518
|
+
eventName: 'CallOFTReceivedSuccess',
|
|
4519
|
+
args: filter as any,
|
|
4520
|
+
onLogs: (logs: any[]) => {
|
|
4521
|
+
logs.forEach((log: any) => {
|
|
4522
|
+
callback(log.args as any);
|
|
4523
|
+
});
|
|
4524
|
+
},
|
|
4525
|
+
}) as () => void;
|
|
4526
|
+
},
|
|
4527
|
+
/**
|
|
4528
|
+
* Watch DelegateChanged events
|
|
4529
|
+
* @param callback Function to call when event is emitted
|
|
4530
|
+
* @param filter Optional filter for indexed parameters
|
|
4531
|
+
* @returns Unwatch function to stop listening
|
|
4532
|
+
*/
|
|
4533
|
+
DelegateChanged: (callback: (event: { delegator: `0x${string}`; fromDelegate: `0x${string}`; toDelegate: `0x${string}` }) => void, filter?: { delegator?: `0x${string}` | `0x${string}`[] | null; fromDelegate?: `0x${string}` | `0x${string}`[] | null; toDelegate?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
4534
|
+
return this.publicClient.watchContractEvent({
|
|
4535
|
+
address: this.contractAddress,
|
|
4536
|
+
abi: BenCoinV2Abi,
|
|
4537
|
+
eventName: 'DelegateChanged',
|
|
4538
|
+
args: filter as any,
|
|
4539
|
+
onLogs: (logs: any[]) => {
|
|
4540
|
+
logs.forEach((log: any) => {
|
|
4541
|
+
callback(log.args as any);
|
|
4542
|
+
});
|
|
4543
|
+
},
|
|
4544
|
+
}) as () => void;
|
|
4545
|
+
},
|
|
4546
|
+
/**
|
|
4547
|
+
* Watch DelegateVotesChanged events
|
|
4548
|
+
* @param callback Function to call when event is emitted
|
|
4549
|
+
* @param filter Optional filter for indexed parameters
|
|
4550
|
+
* @returns Unwatch function to stop listening
|
|
4551
|
+
*/
|
|
4552
|
+
DelegateVotesChanged: (callback: (event: { delegate: `0x${string}`; previousBalance: bigint; newBalance: bigint }) => void, filter?: { delegate?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
4553
|
+
return this.publicClient.watchContractEvent({
|
|
4554
|
+
address: this.contractAddress,
|
|
4555
|
+
abi: BenCoinV2Abi,
|
|
4556
|
+
eventName: 'DelegateVotesChanged',
|
|
4557
|
+
args: filter as any,
|
|
4558
|
+
onLogs: (logs: any[]) => {
|
|
4559
|
+
logs.forEach((log: any) => {
|
|
4560
|
+
callback(log.args as any);
|
|
4561
|
+
});
|
|
4562
|
+
},
|
|
4563
|
+
}) as () => void;
|
|
4564
|
+
},
|
|
4565
|
+
/**
|
|
4566
|
+
* Watch EIP712DomainChanged events
|
|
4567
|
+
* @param callback Function to call when event is emitted
|
|
4568
|
+
* @param filter Optional filter for indexed parameters
|
|
4569
|
+
* @returns Unwatch function to stop listening
|
|
4570
|
+
*/
|
|
4571
|
+
EIP712DomainChanged: (callback: (event: { }) => void) => {
|
|
4572
|
+
return this.publicClient.watchContractEvent({
|
|
4573
|
+
address: this.contractAddress,
|
|
4574
|
+
abi: BenCoinV2Abi,
|
|
4575
|
+
eventName: 'EIP712DomainChanged',
|
|
4576
|
+
|
|
4577
|
+
onLogs: (logs: any[]) => {
|
|
4578
|
+
logs.forEach((log: any) => {
|
|
4579
|
+
callback(log.args as any);
|
|
4580
|
+
});
|
|
4581
|
+
},
|
|
4582
|
+
}) as () => void;
|
|
4583
|
+
},
|
|
4584
|
+
/**
|
|
4585
|
+
* Watch MessageFailed events
|
|
4586
|
+
* @param callback Function to call when event is emitted
|
|
4587
|
+
* @param filter Optional filter for indexed parameters
|
|
4588
|
+
* @returns Unwatch function to stop listening
|
|
4589
|
+
*/
|
|
4590
|
+
MessageFailed: (callback: (event: { _srcChainId: bigint; _srcAddress: `0x${string}`; _nonce: bigint; _payload: `0x${string}`; _reason: `0x${string}` }) => void) => {
|
|
4591
|
+
return this.publicClient.watchContractEvent({
|
|
4592
|
+
address: this.contractAddress,
|
|
4593
|
+
abi: BenCoinV2Abi,
|
|
4594
|
+
eventName: 'MessageFailed',
|
|
4595
|
+
|
|
4596
|
+
onLogs: (logs: any[]) => {
|
|
4597
|
+
logs.forEach((log: any) => {
|
|
4598
|
+
callback(log.args as any);
|
|
4599
|
+
});
|
|
4600
|
+
},
|
|
4601
|
+
}) as () => void;
|
|
4602
|
+
},
|
|
4603
|
+
/**
|
|
4604
|
+
* Watch NonContractAddress events
|
|
4605
|
+
* @param callback Function to call when event is emitted
|
|
4606
|
+
* @param filter Optional filter for indexed parameters
|
|
4607
|
+
* @returns Unwatch function to stop listening
|
|
4608
|
+
*/
|
|
4609
|
+
NonContractAddress: (callback: (event: { _address: `0x${string}` }) => void) => {
|
|
4610
|
+
return this.publicClient.watchContractEvent({
|
|
4611
|
+
address: this.contractAddress,
|
|
4612
|
+
abi: BenCoinV2Abi,
|
|
4613
|
+
eventName: 'NonContractAddress',
|
|
4614
|
+
|
|
4615
|
+
onLogs: (logs: any[]) => {
|
|
4616
|
+
logs.forEach((log: any) => {
|
|
4617
|
+
callback(log.args as any);
|
|
4618
|
+
});
|
|
4619
|
+
},
|
|
4620
|
+
}) as () => void;
|
|
4621
|
+
},
|
|
4622
|
+
/**
|
|
4623
|
+
* Watch OwnershipTransferred events
|
|
4624
|
+
* @param callback Function to call when event is emitted
|
|
4625
|
+
* @param filter Optional filter for indexed parameters
|
|
4626
|
+
* @returns Unwatch function to stop listening
|
|
4627
|
+
*/
|
|
4628
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner?: `0x${string}` | `0x${string}`[] | null; newOwner?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
4629
|
+
return this.publicClient.watchContractEvent({
|
|
4630
|
+
address: this.contractAddress,
|
|
4631
|
+
abi: BenCoinV2Abi,
|
|
4632
|
+
eventName: 'OwnershipTransferred',
|
|
4633
|
+
args: filter as any,
|
|
4634
|
+
onLogs: (logs: any[]) => {
|
|
4635
|
+
logs.forEach((log: any) => {
|
|
4636
|
+
callback(log.args as any);
|
|
4637
|
+
});
|
|
4638
|
+
},
|
|
4639
|
+
}) as () => void;
|
|
4640
|
+
},
|
|
4641
|
+
/**
|
|
4642
|
+
* Watch ReceiveFromChain events
|
|
4643
|
+
* @param callback Function to call when event is emitted
|
|
4644
|
+
* @param filter Optional filter for indexed parameters
|
|
4645
|
+
* @returns Unwatch function to stop listening
|
|
4646
|
+
*/
|
|
4647
|
+
ReceiveFromChain: (callback: (event: { _srcChainId: bigint; _to: `0x${string}`; _amount: bigint }) => void, filter?: { _srcChainId?: number | number[] | null; _to?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
4648
|
+
return this.publicClient.watchContractEvent({
|
|
4649
|
+
address: this.contractAddress,
|
|
4650
|
+
abi: BenCoinV2Abi,
|
|
4651
|
+
eventName: 'ReceiveFromChain',
|
|
4652
|
+
args: filter as any,
|
|
4653
|
+
onLogs: (logs: any[]) => {
|
|
4654
|
+
logs.forEach((log: any) => {
|
|
4655
|
+
callback(log.args as any);
|
|
4656
|
+
});
|
|
4657
|
+
},
|
|
4658
|
+
}) as () => void;
|
|
4659
|
+
},
|
|
4660
|
+
/**
|
|
4661
|
+
* Watch RetryMessageSuccess events
|
|
4662
|
+
* @param callback Function to call when event is emitted
|
|
4663
|
+
* @param filter Optional filter for indexed parameters
|
|
4664
|
+
* @returns Unwatch function to stop listening
|
|
4665
|
+
*/
|
|
4666
|
+
RetryMessageSuccess: (callback: (event: { _srcChainId: bigint; _srcAddress: `0x${string}`; _nonce: bigint; _payloadHash: `0x${string}` }) => void) => {
|
|
4667
|
+
return this.publicClient.watchContractEvent({
|
|
4668
|
+
address: this.contractAddress,
|
|
4669
|
+
abi: BenCoinV2Abi,
|
|
4670
|
+
eventName: 'RetryMessageSuccess',
|
|
4671
|
+
|
|
4672
|
+
onLogs: (logs: any[]) => {
|
|
4673
|
+
logs.forEach((log: any) => {
|
|
4674
|
+
callback(log.args as any);
|
|
4675
|
+
});
|
|
4676
|
+
},
|
|
4677
|
+
}) as () => void;
|
|
4678
|
+
},
|
|
4679
|
+
/**
|
|
4680
|
+
* Watch SendToChain events
|
|
4681
|
+
* @param callback Function to call when event is emitted
|
|
4682
|
+
* @param filter Optional filter for indexed parameters
|
|
4683
|
+
* @returns Unwatch function to stop listening
|
|
4684
|
+
*/
|
|
4685
|
+
SendToChain: (callback: (event: { _dstChainId: bigint; _from: `0x${string}`; _toAddress: `0x${string}`; _amount: bigint }) => void, filter?: { _dstChainId?: number | number[] | null; _from?: `0x${string}` | `0x${string}`[] | null; _toAddress?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
4686
|
+
return this.publicClient.watchContractEvent({
|
|
4687
|
+
address: this.contractAddress,
|
|
4688
|
+
abi: BenCoinV2Abi,
|
|
4689
|
+
eventName: 'SendToChain',
|
|
4690
|
+
args: filter as any,
|
|
4691
|
+
onLogs: (logs: any[]) => {
|
|
4692
|
+
logs.forEach((log: any) => {
|
|
4693
|
+
callback(log.args as any);
|
|
4694
|
+
});
|
|
4695
|
+
},
|
|
4696
|
+
}) as () => void;
|
|
4697
|
+
},
|
|
4698
|
+
/**
|
|
4699
|
+
* Watch SetBuyTaxReceiver events
|
|
4700
|
+
* @param callback Function to call when event is emitted
|
|
4701
|
+
* @param filter Optional filter for indexed parameters
|
|
4702
|
+
* @returns Unwatch function to stop listening
|
|
4703
|
+
*/
|
|
4704
|
+
SetBuyTaxReceiver: (callback: (event: { buyTaxReceiver: `0x${string}` }) => void) => {
|
|
4705
|
+
return this.publicClient.watchContractEvent({
|
|
4706
|
+
address: this.contractAddress,
|
|
4707
|
+
abi: BenCoinV2Abi,
|
|
4708
|
+
eventName: 'SetBuyTaxReceiver',
|
|
4709
|
+
|
|
4710
|
+
onLogs: (logs: any[]) => {
|
|
4711
|
+
logs.forEach((log: any) => {
|
|
4712
|
+
callback(log.args as any);
|
|
4713
|
+
});
|
|
4714
|
+
},
|
|
4715
|
+
}) as () => void;
|
|
4716
|
+
},
|
|
4717
|
+
/**
|
|
4718
|
+
* Watch SetIsAntiMEV events
|
|
4719
|
+
* @param callback Function to call when event is emitted
|
|
4720
|
+
* @param filter Optional filter for indexed parameters
|
|
4721
|
+
* @returns Unwatch function to stop listening
|
|
4722
|
+
*/
|
|
4723
|
+
SetIsAntiMEV: (callback: (event: { isAntiMEV: boolean }) => void) => {
|
|
4724
|
+
return this.publicClient.watchContractEvent({
|
|
4725
|
+
address: this.contractAddress,
|
|
4726
|
+
abi: BenCoinV2Abi,
|
|
4727
|
+
eventName: 'SetIsAntiMEV',
|
|
4728
|
+
|
|
4729
|
+
onLogs: (logs: any[]) => {
|
|
4730
|
+
logs.forEach((log: any) => {
|
|
4731
|
+
callback(log.args as any);
|
|
4732
|
+
});
|
|
4733
|
+
},
|
|
4734
|
+
}) as () => void;
|
|
4735
|
+
},
|
|
4736
|
+
/**
|
|
4737
|
+
* Watch SetIsTransferBlacklisting events
|
|
4738
|
+
* @param callback Function to call when event is emitted
|
|
4739
|
+
* @param filter Optional filter for indexed parameters
|
|
4740
|
+
* @returns Unwatch function to stop listening
|
|
4741
|
+
*/
|
|
4742
|
+
SetIsTransferBlacklisting: (callback: (event: { isBlacklisting: boolean }) => void) => {
|
|
4743
|
+
return this.publicClient.watchContractEvent({
|
|
4744
|
+
address: this.contractAddress,
|
|
4745
|
+
abi: BenCoinV2Abi,
|
|
4746
|
+
eventName: 'SetIsTransferBlacklisting',
|
|
4747
|
+
|
|
4748
|
+
onLogs: (logs: any[]) => {
|
|
4749
|
+
logs.forEach((log: any) => {
|
|
4750
|
+
callback(log.args as any);
|
|
4751
|
+
});
|
|
4752
|
+
},
|
|
4753
|
+
}) as () => void;
|
|
4754
|
+
},
|
|
4755
|
+
/**
|
|
4756
|
+
* Watch SetMinDstGas events
|
|
4757
|
+
* @param callback Function to call when event is emitted
|
|
4758
|
+
* @param filter Optional filter for indexed parameters
|
|
4759
|
+
* @returns Unwatch function to stop listening
|
|
4760
|
+
*/
|
|
4761
|
+
SetMinDstGas: (callback: (event: { _dstChainId: bigint; _type: bigint; _minDstGas: bigint }) => void) => {
|
|
4762
|
+
return this.publicClient.watchContractEvent({
|
|
4763
|
+
address: this.contractAddress,
|
|
4764
|
+
abi: BenCoinV2Abi,
|
|
4765
|
+
eventName: 'SetMinDstGas',
|
|
4766
|
+
|
|
4767
|
+
onLogs: (logs: any[]) => {
|
|
4768
|
+
logs.forEach((log: any) => {
|
|
4769
|
+
callback(log.args as any);
|
|
4770
|
+
});
|
|
4771
|
+
},
|
|
4772
|
+
}) as () => void;
|
|
4773
|
+
},
|
|
4774
|
+
/**
|
|
4775
|
+
* Watch SetPrecrime events
|
|
4776
|
+
* @param callback Function to call when event is emitted
|
|
4777
|
+
* @param filter Optional filter for indexed parameters
|
|
4778
|
+
* @returns Unwatch function to stop listening
|
|
4779
|
+
*/
|
|
4780
|
+
SetPrecrime: (callback: (event: { precrime: `0x${string}` }) => void) => {
|
|
4781
|
+
return this.publicClient.watchContractEvent({
|
|
4782
|
+
address: this.contractAddress,
|
|
4783
|
+
abi: BenCoinV2Abi,
|
|
4784
|
+
eventName: 'SetPrecrime',
|
|
4785
|
+
|
|
4786
|
+
onLogs: (logs: any[]) => {
|
|
4787
|
+
logs.forEach((log: any) => {
|
|
4788
|
+
callback(log.args as any);
|
|
4789
|
+
});
|
|
4790
|
+
},
|
|
4791
|
+
}) as () => void;
|
|
4792
|
+
},
|
|
4793
|
+
/**
|
|
4794
|
+
* Watch SetTax events
|
|
4795
|
+
* @param callback Function to call when event is emitted
|
|
4796
|
+
* @param filter Optional filter for indexed parameters
|
|
4797
|
+
* @returns Unwatch function to stop listening
|
|
4798
|
+
*/
|
|
4799
|
+
SetTax: (callback: (event: { buyTax: bigint; sellTax: bigint; isTaxing: boolean }) => void) => {
|
|
4800
|
+
return this.publicClient.watchContractEvent({
|
|
4801
|
+
address: this.contractAddress,
|
|
4802
|
+
abi: BenCoinV2Abi,
|
|
4803
|
+
eventName: 'SetTax',
|
|
4804
|
+
|
|
4805
|
+
onLogs: (logs: any[]) => {
|
|
4806
|
+
logs.forEach((log: any) => {
|
|
4807
|
+
callback(log.args as any);
|
|
4808
|
+
});
|
|
4809
|
+
},
|
|
4810
|
+
}) as () => void;
|
|
4811
|
+
},
|
|
4812
|
+
/**
|
|
4813
|
+
* Watch SetTaxWhitelist events
|
|
4814
|
+
* @param callback Function to call when event is emitted
|
|
4815
|
+
* @param filter Optional filter for indexed parameters
|
|
4816
|
+
* @returns Unwatch function to stop listening
|
|
4817
|
+
*/
|
|
4818
|
+
SetTaxWhitelist: (callback: (event: { whitelist: `0x${string}`; isWhitelisted: boolean }) => void) => {
|
|
4819
|
+
return this.publicClient.watchContractEvent({
|
|
4820
|
+
address: this.contractAddress,
|
|
4821
|
+
abi: BenCoinV2Abi,
|
|
4822
|
+
eventName: 'SetTaxWhitelist',
|
|
4823
|
+
|
|
4824
|
+
onLogs: (logs: any[]) => {
|
|
4825
|
+
logs.forEach((log: any) => {
|
|
4826
|
+
callback(log.args as any);
|
|
4827
|
+
});
|
|
4828
|
+
},
|
|
4829
|
+
}) as () => void;
|
|
4830
|
+
},
|
|
4831
|
+
/**
|
|
4832
|
+
* Watch SetTaxableContract events
|
|
4833
|
+
* @param callback Function to call when event is emitted
|
|
4834
|
+
* @param filter Optional filter for indexed parameters
|
|
4835
|
+
* @returns Unwatch function to stop listening
|
|
4836
|
+
*/
|
|
4837
|
+
SetTaxableContract: (callback: (event: { taxableContract: `0x${string}`; isTaxable: boolean }) => void) => {
|
|
4838
|
+
return this.publicClient.watchContractEvent({
|
|
4839
|
+
address: this.contractAddress,
|
|
4840
|
+
abi: BenCoinV2Abi,
|
|
4841
|
+
eventName: 'SetTaxableContract',
|
|
4842
|
+
|
|
4843
|
+
onLogs: (logs: any[]) => {
|
|
4844
|
+
logs.forEach((log: any) => {
|
|
4845
|
+
callback(log.args as any);
|
|
4846
|
+
});
|
|
4847
|
+
},
|
|
4848
|
+
}) as () => void;
|
|
4849
|
+
},
|
|
4850
|
+
/**
|
|
4851
|
+
* Watch SetTransferBlacklist events
|
|
4852
|
+
* @param callback Function to call when event is emitted
|
|
4853
|
+
* @param filter Optional filter for indexed parameters
|
|
4854
|
+
* @returns Unwatch function to stop listening
|
|
4855
|
+
*/
|
|
4856
|
+
SetTransferBlacklist: (callback: (event: { blacklist: `0x${string}`; isBlacklisted: boolean }) => void) => {
|
|
4857
|
+
return this.publicClient.watchContractEvent({
|
|
4858
|
+
address: this.contractAddress,
|
|
4859
|
+
abi: BenCoinV2Abi,
|
|
4860
|
+
eventName: 'SetTransferBlacklist',
|
|
4861
|
+
|
|
4862
|
+
onLogs: (logs: any[]) => {
|
|
4863
|
+
logs.forEach((log: any) => {
|
|
4864
|
+
callback(log.args as any);
|
|
4865
|
+
});
|
|
4866
|
+
},
|
|
4867
|
+
}) as () => void;
|
|
4868
|
+
},
|
|
4869
|
+
/**
|
|
4870
|
+
* Watch SetTrustedRemote events
|
|
4871
|
+
* @param callback Function to call when event is emitted
|
|
4872
|
+
* @param filter Optional filter for indexed parameters
|
|
4873
|
+
* @returns Unwatch function to stop listening
|
|
4874
|
+
*/
|
|
4875
|
+
SetTrustedRemote: (callback: (event: { _remoteChainId: bigint; _path: `0x${string}` }) => void) => {
|
|
4876
|
+
return this.publicClient.watchContractEvent({
|
|
4877
|
+
address: this.contractAddress,
|
|
4878
|
+
abi: BenCoinV2Abi,
|
|
4879
|
+
eventName: 'SetTrustedRemote',
|
|
4880
|
+
|
|
4881
|
+
onLogs: (logs: any[]) => {
|
|
4882
|
+
logs.forEach((log: any) => {
|
|
4883
|
+
callback(log.args as any);
|
|
4884
|
+
});
|
|
4885
|
+
},
|
|
4886
|
+
}) as () => void;
|
|
4887
|
+
},
|
|
4888
|
+
/**
|
|
4889
|
+
* Watch SetTrustedRemoteAddress events
|
|
4890
|
+
* @param callback Function to call when event is emitted
|
|
4891
|
+
* @param filter Optional filter for indexed parameters
|
|
4892
|
+
* @returns Unwatch function to stop listening
|
|
4893
|
+
*/
|
|
4894
|
+
SetTrustedRemoteAddress: (callback: (event: { _remoteChainId: bigint; _remoteAddress: `0x${string}` }) => void) => {
|
|
4895
|
+
return this.publicClient.watchContractEvent({
|
|
4896
|
+
address: this.contractAddress,
|
|
4897
|
+
abi: BenCoinV2Abi,
|
|
4898
|
+
eventName: 'SetTrustedRemoteAddress',
|
|
4899
|
+
|
|
4900
|
+
onLogs: (logs: any[]) => {
|
|
4901
|
+
logs.forEach((log: any) => {
|
|
4902
|
+
callback(log.args as any);
|
|
4903
|
+
});
|
|
4904
|
+
},
|
|
4905
|
+
}) as () => void;
|
|
4906
|
+
},
|
|
4907
|
+
/**
|
|
4908
|
+
* Watch SetUseCustomAdapterParams events
|
|
4909
|
+
* @param callback Function to call when event is emitted
|
|
4910
|
+
* @param filter Optional filter for indexed parameters
|
|
4911
|
+
* @returns Unwatch function to stop listening
|
|
4912
|
+
*/
|
|
4913
|
+
SetUseCustomAdapterParams: (callback: (event: { _useCustomAdapterParams: boolean }) => void) => {
|
|
4914
|
+
return this.publicClient.watchContractEvent({
|
|
4915
|
+
address: this.contractAddress,
|
|
4916
|
+
abi: BenCoinV2Abi,
|
|
4917
|
+
eventName: 'SetUseCustomAdapterParams',
|
|
4918
|
+
|
|
4919
|
+
onLogs: (logs: any[]) => {
|
|
4920
|
+
logs.forEach((log: any) => {
|
|
4921
|
+
callback(log.args as any);
|
|
4922
|
+
});
|
|
4923
|
+
},
|
|
4924
|
+
}) as () => void;
|
|
4925
|
+
},
|
|
4926
|
+
/**
|
|
4927
|
+
* Watch Transfer events
|
|
4928
|
+
* @param callback Function to call when event is emitted
|
|
4929
|
+
* @param filter Optional filter for indexed parameters
|
|
4930
|
+
* @returns Unwatch function to stop listening
|
|
4931
|
+
*/
|
|
4932
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from?: `0x${string}` | `0x${string}`[] | null; to?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
4933
|
+
return this.publicClient.watchContractEvent({
|
|
4934
|
+
address: this.contractAddress,
|
|
4935
|
+
abi: BenCoinV2Abi,
|
|
4936
|
+
eventName: 'Transfer',
|
|
4937
|
+
args: filter as any,
|
|
4938
|
+
onLogs: (logs: any[]) => {
|
|
4939
|
+
logs.forEach((log: any) => {
|
|
4940
|
+
callback(log.args as any);
|
|
4941
|
+
});
|
|
4942
|
+
},
|
|
4943
|
+
}) as () => void;
|
|
4944
|
+
}
|
|
4945
|
+
};
|
|
4946
|
+
}
|
|
4947
|
+
}
|