@gitmyabi/ben 0.0.0-stage → 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 +107 -2
- 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 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +40 -3
|
@@ -0,0 +1,3754 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* ERC20Votes.Checkpoint struct type
|
|
4
|
+
*/
|
|
5
|
+
export type ERC20Votes_Checkpoint = {
|
|
6
|
+
fromBlock: bigint;
|
|
7
|
+
votes: bigint;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* ICommonOFT.LzCallParams struct type
|
|
11
|
+
*/
|
|
12
|
+
export type ICommonOFT_LzCallParams = {
|
|
13
|
+
refundAddress: `0x${string}`;
|
|
14
|
+
zroPaymentAddress: `0x${string}`;
|
|
15
|
+
adapterParams: `0x${string}`;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* BenCoinV2 ABI
|
|
19
|
+
*
|
|
20
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
21
|
+
*/
|
|
22
|
+
export declare const BenCoinV2Abi: readonly [{
|
|
23
|
+
readonly inputs: readonly [];
|
|
24
|
+
readonly stateMutability: "nonpayable";
|
|
25
|
+
readonly type: "constructor";
|
|
26
|
+
}, {
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly name: "AlreadyInitialized";
|
|
29
|
+
readonly type: "error";
|
|
30
|
+
}, {
|
|
31
|
+
readonly inputs: readonly [];
|
|
32
|
+
readonly name: "BothAddressesAreContracts";
|
|
33
|
+
readonly type: "error";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [];
|
|
36
|
+
readonly name: "ERC20ApproveFromZeroAddress";
|
|
37
|
+
readonly type: "error";
|
|
38
|
+
}, {
|
|
39
|
+
readonly inputs: readonly [];
|
|
40
|
+
readonly name: "ERC20ApproveToZeroAddress";
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly name: "ERC20DecreasedAllowanceBelowZero";
|
|
45
|
+
readonly type: "error";
|
|
46
|
+
}, {
|
|
47
|
+
readonly inputs: readonly [];
|
|
48
|
+
readonly name: "ERC20MintToZeroAddress";
|
|
49
|
+
readonly type: "error";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [];
|
|
52
|
+
readonly name: "ERC20PermitExpired";
|
|
53
|
+
readonly type: "error";
|
|
54
|
+
}, {
|
|
55
|
+
readonly inputs: readonly [];
|
|
56
|
+
readonly name: "ERC20PermitInvalidSignature";
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [];
|
|
60
|
+
readonly name: "ERC20TransferExceedsAllowance";
|
|
61
|
+
readonly type: "error";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "ERC20TransferExceedsBalance";
|
|
65
|
+
readonly type: "error";
|
|
66
|
+
}, {
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly name: "ERC20TransferFromZeroAddress";
|
|
69
|
+
readonly type: "error";
|
|
70
|
+
}, {
|
|
71
|
+
readonly inputs: readonly [];
|
|
72
|
+
readonly name: "ERC20TransferToZeroAddress";
|
|
73
|
+
readonly type: "error";
|
|
74
|
+
}, {
|
|
75
|
+
readonly inputs: readonly [];
|
|
76
|
+
readonly name: "ERC20VotesBrokenClock";
|
|
77
|
+
readonly type: "error";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [];
|
|
80
|
+
readonly name: "ERC20VotesFutureLookup";
|
|
81
|
+
readonly type: "error";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly name: "ERC20VotesInvalidNonce";
|
|
85
|
+
readonly type: "error";
|
|
86
|
+
}, {
|
|
87
|
+
readonly inputs: readonly [];
|
|
88
|
+
readonly name: "ERC20VotesSignatureExpired";
|
|
89
|
+
readonly type: "error";
|
|
90
|
+
}, {
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly name: "ERC20VotesSupplyOverflow";
|
|
93
|
+
readonly type: "error";
|
|
94
|
+
}, {
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly name: "InvalidArrayLength";
|
|
97
|
+
readonly type: "error";
|
|
98
|
+
}, {
|
|
99
|
+
readonly inputs: readonly [];
|
|
100
|
+
readonly name: "InvalidBuyTaxReceiver";
|
|
101
|
+
readonly type: "error";
|
|
102
|
+
}, {
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly name: "InvalidShortString";
|
|
105
|
+
readonly type: "error";
|
|
106
|
+
}, {
|
|
107
|
+
readonly inputs: readonly [];
|
|
108
|
+
readonly name: "LZAPPInvalidAdapterParams";
|
|
109
|
+
readonly type: "error";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly name: "LZAPPInvalidDestinationChain";
|
|
113
|
+
readonly type: "error";
|
|
114
|
+
}, {
|
|
115
|
+
readonly inputs: readonly [];
|
|
116
|
+
readonly name: "LZAPPInvalidEndpointCaller";
|
|
117
|
+
readonly type: "error";
|
|
118
|
+
}, {
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
readonly name: "LZAPPInvalidGasLimit";
|
|
121
|
+
readonly type: "error";
|
|
122
|
+
}, {
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly name: "LZAPPInvalidMinGas";
|
|
125
|
+
readonly type: "error";
|
|
126
|
+
}, {
|
|
127
|
+
readonly inputs: readonly [];
|
|
128
|
+
readonly name: "LZAPPInvalidMinGasLimit";
|
|
129
|
+
readonly type: "error";
|
|
130
|
+
}, {
|
|
131
|
+
readonly inputs: readonly [];
|
|
132
|
+
readonly name: "LZAPPInvalidPayload";
|
|
133
|
+
readonly type: "error";
|
|
134
|
+
}, {
|
|
135
|
+
readonly inputs: readonly [];
|
|
136
|
+
readonly name: "LZAPPInvalidPayloadSize";
|
|
137
|
+
readonly type: "error";
|
|
138
|
+
}, {
|
|
139
|
+
readonly inputs: readonly [];
|
|
140
|
+
readonly name: "LZAPPInvalidSourceSendingContract";
|
|
141
|
+
readonly type: "error";
|
|
142
|
+
}, {
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly name: "LZAPPNoTrustedPathRecord";
|
|
145
|
+
readonly type: "error";
|
|
146
|
+
}, {
|
|
147
|
+
readonly inputs: readonly [];
|
|
148
|
+
readonly name: "MaxTaxExceeded";
|
|
149
|
+
readonly type: "error";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly name: "MigratorSetOnInvalidChain";
|
|
153
|
+
readonly type: "error";
|
|
154
|
+
}, {
|
|
155
|
+
readonly inputs: readonly [];
|
|
156
|
+
readonly name: "NewOwnerIsZeroAddress";
|
|
157
|
+
readonly type: "error";
|
|
158
|
+
}, {
|
|
159
|
+
readonly inputs: readonly [];
|
|
160
|
+
readonly name: "OFTCoreAdapterParamsNotAllowed";
|
|
161
|
+
readonly type: "error";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [];
|
|
164
|
+
readonly name: "OFTCoreAmountSDOverflow";
|
|
165
|
+
readonly type: "error";
|
|
166
|
+
}, {
|
|
167
|
+
readonly inputs: readonly [];
|
|
168
|
+
readonly name: "OFTCoreAmountZero";
|
|
169
|
+
readonly type: "error";
|
|
170
|
+
}, {
|
|
171
|
+
readonly inputs: readonly [];
|
|
172
|
+
readonly name: "OFTCoreCallerMustBeOFTCore";
|
|
173
|
+
readonly type: "error";
|
|
174
|
+
}, {
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
readonly name: "OFTCoreInvalidPayload";
|
|
177
|
+
readonly type: "error";
|
|
178
|
+
}, {
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
|
+
readonly name: "OFTCoreUnknownPacketType";
|
|
181
|
+
readonly type: "error";
|
|
182
|
+
}, {
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly internalType: "uint8";
|
|
185
|
+
readonly name: "sharedDecimals";
|
|
186
|
+
readonly type: "uint8";
|
|
187
|
+
}, {
|
|
188
|
+
readonly internalType: "uint8";
|
|
189
|
+
readonly name: "decimals";
|
|
190
|
+
readonly type: "uint8";
|
|
191
|
+
}];
|
|
192
|
+
readonly name: "OFTSharedDecimalsMustBeLessThanOrEqualToDecimals";
|
|
193
|
+
readonly type: "error";
|
|
194
|
+
}, {
|
|
195
|
+
readonly inputs: readonly [];
|
|
196
|
+
readonly name: "OnlyMigrator";
|
|
197
|
+
readonly type: "error";
|
|
198
|
+
}, {
|
|
199
|
+
readonly inputs: readonly [];
|
|
200
|
+
readonly name: "OnlyOwner";
|
|
201
|
+
readonly type: "error";
|
|
202
|
+
}, {
|
|
203
|
+
readonly inputs: readonly [];
|
|
204
|
+
readonly name: "SafeERC20ERC20OperationFailed";
|
|
205
|
+
readonly type: "error";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly internalType: "string";
|
|
209
|
+
readonly name: "str";
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
}];
|
|
212
|
+
readonly name: "StringTooLong";
|
|
213
|
+
readonly type: "error";
|
|
214
|
+
}, {
|
|
215
|
+
readonly inputs: readonly [{
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
readonly name: "";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
}];
|
|
220
|
+
readonly name: "TransferBlacklisted";
|
|
221
|
+
readonly type: "error";
|
|
222
|
+
}, {
|
|
223
|
+
readonly anonymous: false;
|
|
224
|
+
readonly inputs: readonly [{
|
|
225
|
+
readonly indexed: true;
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
readonly name: "owner";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
}, {
|
|
230
|
+
readonly indexed: true;
|
|
231
|
+
readonly internalType: "address";
|
|
232
|
+
readonly name: "spender";
|
|
233
|
+
readonly type: "address";
|
|
234
|
+
}, {
|
|
235
|
+
readonly indexed: false;
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
readonly name: "value";
|
|
238
|
+
readonly type: "uint256";
|
|
239
|
+
}];
|
|
240
|
+
readonly name: "Approval";
|
|
241
|
+
readonly type: "event";
|
|
242
|
+
}, {
|
|
243
|
+
readonly anonymous: false;
|
|
244
|
+
readonly inputs: readonly [{
|
|
245
|
+
readonly indexed: true;
|
|
246
|
+
readonly internalType: "uint16";
|
|
247
|
+
readonly name: "_srcChainId";
|
|
248
|
+
readonly type: "uint16";
|
|
249
|
+
}, {
|
|
250
|
+
readonly indexed: false;
|
|
251
|
+
readonly internalType: "bytes";
|
|
252
|
+
readonly name: "_srcAddress";
|
|
253
|
+
readonly type: "bytes";
|
|
254
|
+
}, {
|
|
255
|
+
readonly indexed: false;
|
|
256
|
+
readonly internalType: "uint64";
|
|
257
|
+
readonly name: "_nonce";
|
|
258
|
+
readonly type: "uint64";
|
|
259
|
+
}, {
|
|
260
|
+
readonly indexed: false;
|
|
261
|
+
readonly internalType: "bytes32";
|
|
262
|
+
readonly name: "_hash";
|
|
263
|
+
readonly type: "bytes32";
|
|
264
|
+
}];
|
|
265
|
+
readonly name: "CallOFTReceivedSuccess";
|
|
266
|
+
readonly type: "event";
|
|
267
|
+
}, {
|
|
268
|
+
readonly anonymous: false;
|
|
269
|
+
readonly inputs: readonly [{
|
|
270
|
+
readonly indexed: true;
|
|
271
|
+
readonly internalType: "address";
|
|
272
|
+
readonly name: "delegator";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}, {
|
|
275
|
+
readonly indexed: true;
|
|
276
|
+
readonly internalType: "address";
|
|
277
|
+
readonly name: "fromDelegate";
|
|
278
|
+
readonly type: "address";
|
|
279
|
+
}, {
|
|
280
|
+
readonly indexed: true;
|
|
281
|
+
readonly internalType: "address";
|
|
282
|
+
readonly name: "toDelegate";
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
}];
|
|
285
|
+
readonly name: "DelegateChanged";
|
|
286
|
+
readonly type: "event";
|
|
287
|
+
}, {
|
|
288
|
+
readonly anonymous: false;
|
|
289
|
+
readonly inputs: readonly [{
|
|
290
|
+
readonly indexed: true;
|
|
291
|
+
readonly internalType: "address";
|
|
292
|
+
readonly name: "delegate";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
}, {
|
|
295
|
+
readonly indexed: false;
|
|
296
|
+
readonly internalType: "uint256";
|
|
297
|
+
readonly name: "previousBalance";
|
|
298
|
+
readonly type: "uint256";
|
|
299
|
+
}, {
|
|
300
|
+
readonly indexed: false;
|
|
301
|
+
readonly internalType: "uint256";
|
|
302
|
+
readonly name: "newBalance";
|
|
303
|
+
readonly type: "uint256";
|
|
304
|
+
}];
|
|
305
|
+
readonly name: "DelegateVotesChanged";
|
|
306
|
+
readonly type: "event";
|
|
307
|
+
}, {
|
|
308
|
+
readonly anonymous: false;
|
|
309
|
+
readonly inputs: readonly [];
|
|
310
|
+
readonly name: "EIP712DomainChanged";
|
|
311
|
+
readonly type: "event";
|
|
312
|
+
}, {
|
|
313
|
+
readonly anonymous: false;
|
|
314
|
+
readonly inputs: readonly [{
|
|
315
|
+
readonly indexed: false;
|
|
316
|
+
readonly internalType: "uint16";
|
|
317
|
+
readonly name: "_srcChainId";
|
|
318
|
+
readonly type: "uint16";
|
|
319
|
+
}, {
|
|
320
|
+
readonly indexed: false;
|
|
321
|
+
readonly internalType: "bytes";
|
|
322
|
+
readonly name: "_srcAddress";
|
|
323
|
+
readonly type: "bytes";
|
|
324
|
+
}, {
|
|
325
|
+
readonly indexed: false;
|
|
326
|
+
readonly internalType: "uint64";
|
|
327
|
+
readonly name: "_nonce";
|
|
328
|
+
readonly type: "uint64";
|
|
329
|
+
}, {
|
|
330
|
+
readonly indexed: false;
|
|
331
|
+
readonly internalType: "bytes";
|
|
332
|
+
readonly name: "_payload";
|
|
333
|
+
readonly type: "bytes";
|
|
334
|
+
}, {
|
|
335
|
+
readonly indexed: false;
|
|
336
|
+
readonly internalType: "bytes";
|
|
337
|
+
readonly name: "_reason";
|
|
338
|
+
readonly type: "bytes";
|
|
339
|
+
}];
|
|
340
|
+
readonly name: "MessageFailed";
|
|
341
|
+
readonly type: "event";
|
|
342
|
+
}, {
|
|
343
|
+
readonly anonymous: false;
|
|
344
|
+
readonly inputs: readonly [{
|
|
345
|
+
readonly indexed: false;
|
|
346
|
+
readonly internalType: "address";
|
|
347
|
+
readonly name: "_address";
|
|
348
|
+
readonly type: "address";
|
|
349
|
+
}];
|
|
350
|
+
readonly name: "NonContractAddress";
|
|
351
|
+
readonly type: "event";
|
|
352
|
+
}, {
|
|
353
|
+
readonly anonymous: false;
|
|
354
|
+
readonly inputs: readonly [{
|
|
355
|
+
readonly indexed: true;
|
|
356
|
+
readonly internalType: "address";
|
|
357
|
+
readonly name: "previousOwner";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}, {
|
|
360
|
+
readonly indexed: true;
|
|
361
|
+
readonly internalType: "address";
|
|
362
|
+
readonly name: "newOwner";
|
|
363
|
+
readonly type: "address";
|
|
364
|
+
}];
|
|
365
|
+
readonly name: "OwnershipTransferred";
|
|
366
|
+
readonly type: "event";
|
|
367
|
+
}, {
|
|
368
|
+
readonly anonymous: false;
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly indexed: true;
|
|
371
|
+
readonly internalType: "uint16";
|
|
372
|
+
readonly name: "_srcChainId";
|
|
373
|
+
readonly type: "uint16";
|
|
374
|
+
}, {
|
|
375
|
+
readonly indexed: true;
|
|
376
|
+
readonly internalType: "address";
|
|
377
|
+
readonly name: "_to";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
}, {
|
|
380
|
+
readonly indexed: false;
|
|
381
|
+
readonly internalType: "uint256";
|
|
382
|
+
readonly name: "_amount";
|
|
383
|
+
readonly type: "uint256";
|
|
384
|
+
}];
|
|
385
|
+
readonly name: "ReceiveFromChain";
|
|
386
|
+
readonly type: "event";
|
|
387
|
+
}, {
|
|
388
|
+
readonly anonymous: false;
|
|
389
|
+
readonly inputs: readonly [{
|
|
390
|
+
readonly indexed: false;
|
|
391
|
+
readonly internalType: "uint16";
|
|
392
|
+
readonly name: "_srcChainId";
|
|
393
|
+
readonly type: "uint16";
|
|
394
|
+
}, {
|
|
395
|
+
readonly indexed: false;
|
|
396
|
+
readonly internalType: "bytes";
|
|
397
|
+
readonly name: "_srcAddress";
|
|
398
|
+
readonly type: "bytes";
|
|
399
|
+
}, {
|
|
400
|
+
readonly indexed: false;
|
|
401
|
+
readonly internalType: "uint64";
|
|
402
|
+
readonly name: "_nonce";
|
|
403
|
+
readonly type: "uint64";
|
|
404
|
+
}, {
|
|
405
|
+
readonly indexed: false;
|
|
406
|
+
readonly internalType: "bytes32";
|
|
407
|
+
readonly name: "_payloadHash";
|
|
408
|
+
readonly type: "bytes32";
|
|
409
|
+
}];
|
|
410
|
+
readonly name: "RetryMessageSuccess";
|
|
411
|
+
readonly type: "event";
|
|
412
|
+
}, {
|
|
413
|
+
readonly anonymous: false;
|
|
414
|
+
readonly inputs: readonly [{
|
|
415
|
+
readonly indexed: true;
|
|
416
|
+
readonly internalType: "uint16";
|
|
417
|
+
readonly name: "_dstChainId";
|
|
418
|
+
readonly type: "uint16";
|
|
419
|
+
}, {
|
|
420
|
+
readonly indexed: true;
|
|
421
|
+
readonly internalType: "address";
|
|
422
|
+
readonly name: "_from";
|
|
423
|
+
readonly type: "address";
|
|
424
|
+
}, {
|
|
425
|
+
readonly indexed: true;
|
|
426
|
+
readonly internalType: "bytes32";
|
|
427
|
+
readonly name: "_toAddress";
|
|
428
|
+
readonly type: "bytes32";
|
|
429
|
+
}, {
|
|
430
|
+
readonly indexed: false;
|
|
431
|
+
readonly internalType: "uint256";
|
|
432
|
+
readonly name: "_amount";
|
|
433
|
+
readonly type: "uint256";
|
|
434
|
+
}];
|
|
435
|
+
readonly name: "SendToChain";
|
|
436
|
+
readonly type: "event";
|
|
437
|
+
}, {
|
|
438
|
+
readonly anonymous: false;
|
|
439
|
+
readonly inputs: readonly [{
|
|
440
|
+
readonly indexed: false;
|
|
441
|
+
readonly internalType: "address";
|
|
442
|
+
readonly name: "buyTaxReceiver";
|
|
443
|
+
readonly type: "address";
|
|
444
|
+
}];
|
|
445
|
+
readonly name: "SetBuyTaxReceiver";
|
|
446
|
+
readonly type: "event";
|
|
447
|
+
}, {
|
|
448
|
+
readonly anonymous: false;
|
|
449
|
+
readonly inputs: readonly [{
|
|
450
|
+
readonly indexed: false;
|
|
451
|
+
readonly internalType: "bool";
|
|
452
|
+
readonly name: "isAntiMEV";
|
|
453
|
+
readonly type: "bool";
|
|
454
|
+
}];
|
|
455
|
+
readonly name: "SetIsAntiMEV";
|
|
456
|
+
readonly type: "event";
|
|
457
|
+
}, {
|
|
458
|
+
readonly anonymous: false;
|
|
459
|
+
readonly inputs: readonly [{
|
|
460
|
+
readonly indexed: false;
|
|
461
|
+
readonly internalType: "bool";
|
|
462
|
+
readonly name: "isBlacklisting";
|
|
463
|
+
readonly type: "bool";
|
|
464
|
+
}];
|
|
465
|
+
readonly name: "SetIsTransferBlacklisting";
|
|
466
|
+
readonly type: "event";
|
|
467
|
+
}, {
|
|
468
|
+
readonly anonymous: false;
|
|
469
|
+
readonly inputs: readonly [{
|
|
470
|
+
readonly indexed: false;
|
|
471
|
+
readonly internalType: "uint16";
|
|
472
|
+
readonly name: "_dstChainId";
|
|
473
|
+
readonly type: "uint16";
|
|
474
|
+
}, {
|
|
475
|
+
readonly indexed: false;
|
|
476
|
+
readonly internalType: "uint16";
|
|
477
|
+
readonly name: "_type";
|
|
478
|
+
readonly type: "uint16";
|
|
479
|
+
}, {
|
|
480
|
+
readonly indexed: false;
|
|
481
|
+
readonly internalType: "uint256";
|
|
482
|
+
readonly name: "_minDstGas";
|
|
483
|
+
readonly type: "uint256";
|
|
484
|
+
}];
|
|
485
|
+
readonly name: "SetMinDstGas";
|
|
486
|
+
readonly type: "event";
|
|
487
|
+
}, {
|
|
488
|
+
readonly anonymous: false;
|
|
489
|
+
readonly inputs: readonly [{
|
|
490
|
+
readonly indexed: false;
|
|
491
|
+
readonly internalType: "address";
|
|
492
|
+
readonly name: "precrime";
|
|
493
|
+
readonly type: "address";
|
|
494
|
+
}];
|
|
495
|
+
readonly name: "SetPrecrime";
|
|
496
|
+
readonly type: "event";
|
|
497
|
+
}, {
|
|
498
|
+
readonly anonymous: false;
|
|
499
|
+
readonly inputs: readonly [{
|
|
500
|
+
readonly indexed: false;
|
|
501
|
+
readonly internalType: "uint256";
|
|
502
|
+
readonly name: "buyTax";
|
|
503
|
+
readonly type: "uint256";
|
|
504
|
+
}, {
|
|
505
|
+
readonly indexed: false;
|
|
506
|
+
readonly internalType: "uint256";
|
|
507
|
+
readonly name: "sellTax";
|
|
508
|
+
readonly type: "uint256";
|
|
509
|
+
}, {
|
|
510
|
+
readonly indexed: false;
|
|
511
|
+
readonly internalType: "bool";
|
|
512
|
+
readonly name: "isTaxing";
|
|
513
|
+
readonly type: "bool";
|
|
514
|
+
}];
|
|
515
|
+
readonly name: "SetTax";
|
|
516
|
+
readonly type: "event";
|
|
517
|
+
}, {
|
|
518
|
+
readonly anonymous: false;
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly indexed: false;
|
|
521
|
+
readonly internalType: "address";
|
|
522
|
+
readonly name: "whitelist";
|
|
523
|
+
readonly type: "address";
|
|
524
|
+
}, {
|
|
525
|
+
readonly indexed: false;
|
|
526
|
+
readonly internalType: "bool";
|
|
527
|
+
readonly name: "isWhitelisted";
|
|
528
|
+
readonly type: "bool";
|
|
529
|
+
}];
|
|
530
|
+
readonly name: "SetTaxWhitelist";
|
|
531
|
+
readonly type: "event";
|
|
532
|
+
}, {
|
|
533
|
+
readonly anonymous: false;
|
|
534
|
+
readonly inputs: readonly [{
|
|
535
|
+
readonly indexed: false;
|
|
536
|
+
readonly internalType: "address";
|
|
537
|
+
readonly name: "taxableContract";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
}, {
|
|
540
|
+
readonly indexed: false;
|
|
541
|
+
readonly internalType: "bool";
|
|
542
|
+
readonly name: "isTaxable";
|
|
543
|
+
readonly type: "bool";
|
|
544
|
+
}];
|
|
545
|
+
readonly name: "SetTaxableContract";
|
|
546
|
+
readonly type: "event";
|
|
547
|
+
}, {
|
|
548
|
+
readonly anonymous: false;
|
|
549
|
+
readonly inputs: readonly [{
|
|
550
|
+
readonly indexed: false;
|
|
551
|
+
readonly internalType: "address";
|
|
552
|
+
readonly name: "blacklist";
|
|
553
|
+
readonly type: "address";
|
|
554
|
+
}, {
|
|
555
|
+
readonly indexed: false;
|
|
556
|
+
readonly internalType: "bool";
|
|
557
|
+
readonly name: "isBlacklisted";
|
|
558
|
+
readonly type: "bool";
|
|
559
|
+
}];
|
|
560
|
+
readonly name: "SetTransferBlacklist";
|
|
561
|
+
readonly type: "event";
|
|
562
|
+
}, {
|
|
563
|
+
readonly anonymous: false;
|
|
564
|
+
readonly inputs: readonly [{
|
|
565
|
+
readonly indexed: false;
|
|
566
|
+
readonly internalType: "uint16";
|
|
567
|
+
readonly name: "_remoteChainId";
|
|
568
|
+
readonly type: "uint16";
|
|
569
|
+
}, {
|
|
570
|
+
readonly indexed: false;
|
|
571
|
+
readonly internalType: "bytes";
|
|
572
|
+
readonly name: "_path";
|
|
573
|
+
readonly type: "bytes";
|
|
574
|
+
}];
|
|
575
|
+
readonly name: "SetTrustedRemote";
|
|
576
|
+
readonly type: "event";
|
|
577
|
+
}, {
|
|
578
|
+
readonly anonymous: false;
|
|
579
|
+
readonly inputs: readonly [{
|
|
580
|
+
readonly indexed: false;
|
|
581
|
+
readonly internalType: "uint16";
|
|
582
|
+
readonly name: "_remoteChainId";
|
|
583
|
+
readonly type: "uint16";
|
|
584
|
+
}, {
|
|
585
|
+
readonly indexed: false;
|
|
586
|
+
readonly internalType: "bytes";
|
|
587
|
+
readonly name: "_remoteAddress";
|
|
588
|
+
readonly type: "bytes";
|
|
589
|
+
}];
|
|
590
|
+
readonly name: "SetTrustedRemoteAddress";
|
|
591
|
+
readonly type: "event";
|
|
592
|
+
}, {
|
|
593
|
+
readonly anonymous: false;
|
|
594
|
+
readonly inputs: readonly [{
|
|
595
|
+
readonly indexed: false;
|
|
596
|
+
readonly internalType: "bool";
|
|
597
|
+
readonly name: "_useCustomAdapterParams";
|
|
598
|
+
readonly type: "bool";
|
|
599
|
+
}];
|
|
600
|
+
readonly name: "SetUseCustomAdapterParams";
|
|
601
|
+
readonly type: "event";
|
|
602
|
+
}, {
|
|
603
|
+
readonly anonymous: false;
|
|
604
|
+
readonly inputs: readonly [{
|
|
605
|
+
readonly indexed: true;
|
|
606
|
+
readonly internalType: "address";
|
|
607
|
+
readonly name: "from";
|
|
608
|
+
readonly type: "address";
|
|
609
|
+
}, {
|
|
610
|
+
readonly indexed: true;
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
readonly name: "to";
|
|
613
|
+
readonly type: "address";
|
|
614
|
+
}, {
|
|
615
|
+
readonly indexed: false;
|
|
616
|
+
readonly internalType: "uint256";
|
|
617
|
+
readonly name: "value";
|
|
618
|
+
readonly type: "uint256";
|
|
619
|
+
}];
|
|
620
|
+
readonly name: "Transfer";
|
|
621
|
+
readonly type: "event";
|
|
622
|
+
}, {
|
|
623
|
+
readonly inputs: readonly [];
|
|
624
|
+
readonly name: "CLOCK_MODE";
|
|
625
|
+
readonly outputs: readonly [{
|
|
626
|
+
readonly internalType: "string";
|
|
627
|
+
readonly name: "";
|
|
628
|
+
readonly type: "string";
|
|
629
|
+
}];
|
|
630
|
+
readonly stateMutability: "view";
|
|
631
|
+
readonly type: "function";
|
|
632
|
+
}, {
|
|
633
|
+
readonly inputs: readonly [];
|
|
634
|
+
readonly name: "DEFAULT_PAYLOAD_SIZE_LIMIT";
|
|
635
|
+
readonly outputs: readonly [{
|
|
636
|
+
readonly internalType: "uint256";
|
|
637
|
+
readonly name: "";
|
|
638
|
+
readonly type: "uint256";
|
|
639
|
+
}];
|
|
640
|
+
readonly stateMutability: "view";
|
|
641
|
+
readonly type: "function";
|
|
642
|
+
}, {
|
|
643
|
+
readonly inputs: readonly [];
|
|
644
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
645
|
+
readonly outputs: readonly [{
|
|
646
|
+
readonly internalType: "bytes32";
|
|
647
|
+
readonly name: "";
|
|
648
|
+
readonly type: "bytes32";
|
|
649
|
+
}];
|
|
650
|
+
readonly stateMutability: "view";
|
|
651
|
+
readonly type: "function";
|
|
652
|
+
}, {
|
|
653
|
+
readonly inputs: readonly [];
|
|
654
|
+
readonly name: "NO_EXTRA_GAS";
|
|
655
|
+
readonly outputs: readonly [{
|
|
656
|
+
readonly internalType: "uint256";
|
|
657
|
+
readonly name: "";
|
|
658
|
+
readonly type: "uint256";
|
|
659
|
+
}];
|
|
660
|
+
readonly stateMutability: "view";
|
|
661
|
+
readonly type: "function";
|
|
662
|
+
}, {
|
|
663
|
+
readonly inputs: readonly [];
|
|
664
|
+
readonly name: "PT_SEND";
|
|
665
|
+
readonly outputs: readonly [{
|
|
666
|
+
readonly internalType: "uint8";
|
|
667
|
+
readonly name: "";
|
|
668
|
+
readonly type: "uint8";
|
|
669
|
+
}];
|
|
670
|
+
readonly stateMutability: "view";
|
|
671
|
+
readonly type: "function";
|
|
672
|
+
}, {
|
|
673
|
+
readonly inputs: readonly [];
|
|
674
|
+
readonly name: "PT_SEND_AND_CALL";
|
|
675
|
+
readonly outputs: readonly [{
|
|
676
|
+
readonly internalType: "uint8";
|
|
677
|
+
readonly name: "";
|
|
678
|
+
readonly type: "uint8";
|
|
679
|
+
}];
|
|
680
|
+
readonly stateMutability: "view";
|
|
681
|
+
readonly type: "function";
|
|
682
|
+
}, {
|
|
683
|
+
readonly inputs: readonly [{
|
|
684
|
+
readonly internalType: "address";
|
|
685
|
+
readonly name: "owner";
|
|
686
|
+
readonly type: "address";
|
|
687
|
+
}, {
|
|
688
|
+
readonly internalType: "address";
|
|
689
|
+
readonly name: "spender";
|
|
690
|
+
readonly type: "address";
|
|
691
|
+
}];
|
|
692
|
+
readonly name: "allowance";
|
|
693
|
+
readonly outputs: readonly [{
|
|
694
|
+
readonly internalType: "uint256";
|
|
695
|
+
readonly name: "";
|
|
696
|
+
readonly type: "uint256";
|
|
697
|
+
}];
|
|
698
|
+
readonly stateMutability: "view";
|
|
699
|
+
readonly type: "function";
|
|
700
|
+
}, {
|
|
701
|
+
readonly inputs: readonly [{
|
|
702
|
+
readonly internalType: "address";
|
|
703
|
+
readonly name: "spender";
|
|
704
|
+
readonly type: "address";
|
|
705
|
+
}, {
|
|
706
|
+
readonly internalType: "uint256";
|
|
707
|
+
readonly name: "amount";
|
|
708
|
+
readonly type: "uint256";
|
|
709
|
+
}];
|
|
710
|
+
readonly name: "approve";
|
|
711
|
+
readonly outputs: readonly [{
|
|
712
|
+
readonly internalType: "bool";
|
|
713
|
+
readonly name: "";
|
|
714
|
+
readonly type: "bool";
|
|
715
|
+
}];
|
|
716
|
+
readonly stateMutability: "nonpayable";
|
|
717
|
+
readonly type: "function";
|
|
718
|
+
}, {
|
|
719
|
+
readonly inputs: readonly [{
|
|
720
|
+
readonly internalType: "address";
|
|
721
|
+
readonly name: "account";
|
|
722
|
+
readonly type: "address";
|
|
723
|
+
}];
|
|
724
|
+
readonly name: "balanceOf";
|
|
725
|
+
readonly outputs: readonly [{
|
|
726
|
+
readonly internalType: "uint256";
|
|
727
|
+
readonly name: "";
|
|
728
|
+
readonly type: "uint256";
|
|
729
|
+
}];
|
|
730
|
+
readonly stateMutability: "view";
|
|
731
|
+
readonly type: "function";
|
|
732
|
+
}, {
|
|
733
|
+
readonly inputs: readonly [{
|
|
734
|
+
readonly internalType: "uint256";
|
|
735
|
+
readonly name: "_amount";
|
|
736
|
+
readonly type: "uint256";
|
|
737
|
+
}];
|
|
738
|
+
readonly name: "burn";
|
|
739
|
+
readonly outputs: readonly [];
|
|
740
|
+
readonly stateMutability: "nonpayable";
|
|
741
|
+
readonly type: "function";
|
|
742
|
+
}, {
|
|
743
|
+
readonly inputs: readonly [{
|
|
744
|
+
readonly internalType: "address";
|
|
745
|
+
readonly name: "_account";
|
|
746
|
+
readonly type: "address";
|
|
747
|
+
}, {
|
|
748
|
+
readonly internalType: "uint256";
|
|
749
|
+
readonly name: "_amount";
|
|
750
|
+
readonly type: "uint256";
|
|
751
|
+
}];
|
|
752
|
+
readonly name: "burnFrom";
|
|
753
|
+
readonly outputs: readonly [];
|
|
754
|
+
readonly stateMutability: "nonpayable";
|
|
755
|
+
readonly type: "function";
|
|
756
|
+
}, {
|
|
757
|
+
readonly inputs: readonly [{
|
|
758
|
+
readonly internalType: "uint16";
|
|
759
|
+
readonly name: "_srcChainId";
|
|
760
|
+
readonly type: "uint16";
|
|
761
|
+
}, {
|
|
762
|
+
readonly internalType: "bytes";
|
|
763
|
+
readonly name: "_srcAddress";
|
|
764
|
+
readonly type: "bytes";
|
|
765
|
+
}, {
|
|
766
|
+
readonly internalType: "uint64";
|
|
767
|
+
readonly name: "_nonce";
|
|
768
|
+
readonly type: "uint64";
|
|
769
|
+
}, {
|
|
770
|
+
readonly internalType: "bytes32";
|
|
771
|
+
readonly name: "_from";
|
|
772
|
+
readonly type: "bytes32";
|
|
773
|
+
}, {
|
|
774
|
+
readonly internalType: "address";
|
|
775
|
+
readonly name: "_to";
|
|
776
|
+
readonly type: "address";
|
|
777
|
+
}, {
|
|
778
|
+
readonly internalType: "uint256";
|
|
779
|
+
readonly name: "_amount";
|
|
780
|
+
readonly type: "uint256";
|
|
781
|
+
}, {
|
|
782
|
+
readonly internalType: "bytes";
|
|
783
|
+
readonly name: "_payload";
|
|
784
|
+
readonly type: "bytes";
|
|
785
|
+
}, {
|
|
786
|
+
readonly internalType: "uint256";
|
|
787
|
+
readonly name: "_gasForCall";
|
|
788
|
+
readonly type: "uint256";
|
|
789
|
+
}];
|
|
790
|
+
readonly name: "callOnOFTReceived";
|
|
791
|
+
readonly outputs: readonly [];
|
|
792
|
+
readonly stateMutability: "nonpayable";
|
|
793
|
+
readonly type: "function";
|
|
794
|
+
}, {
|
|
795
|
+
readonly inputs: readonly [{
|
|
796
|
+
readonly internalType: "address";
|
|
797
|
+
readonly name: "account";
|
|
798
|
+
readonly type: "address";
|
|
799
|
+
}, {
|
|
800
|
+
readonly internalType: "uint32";
|
|
801
|
+
readonly name: "pos";
|
|
802
|
+
readonly type: "uint32";
|
|
803
|
+
}];
|
|
804
|
+
readonly name: "checkpoints";
|
|
805
|
+
readonly outputs: readonly [{
|
|
806
|
+
readonly components: readonly [{
|
|
807
|
+
readonly internalType: "uint32";
|
|
808
|
+
readonly name: "fromBlock";
|
|
809
|
+
readonly type: "uint32";
|
|
810
|
+
}, {
|
|
811
|
+
readonly internalType: "uint224";
|
|
812
|
+
readonly name: "votes";
|
|
813
|
+
readonly type: "uint224";
|
|
814
|
+
}];
|
|
815
|
+
readonly internalType: "struct ERC20Votes.Checkpoint";
|
|
816
|
+
readonly name: "";
|
|
817
|
+
readonly type: "tuple";
|
|
818
|
+
}];
|
|
819
|
+
readonly stateMutability: "view";
|
|
820
|
+
readonly type: "function";
|
|
821
|
+
}, {
|
|
822
|
+
readonly inputs: readonly [];
|
|
823
|
+
readonly name: "circulatingSupply";
|
|
824
|
+
readonly outputs: readonly [{
|
|
825
|
+
readonly internalType: "uint256";
|
|
826
|
+
readonly name: "";
|
|
827
|
+
readonly type: "uint256";
|
|
828
|
+
}];
|
|
829
|
+
readonly stateMutability: "view";
|
|
830
|
+
readonly type: "function";
|
|
831
|
+
}, {
|
|
832
|
+
readonly inputs: readonly [];
|
|
833
|
+
readonly name: "clock";
|
|
834
|
+
readonly outputs: readonly [{
|
|
835
|
+
readonly internalType: "uint48";
|
|
836
|
+
readonly name: "";
|
|
837
|
+
readonly type: "uint48";
|
|
838
|
+
}];
|
|
839
|
+
readonly stateMutability: "view";
|
|
840
|
+
readonly type: "function";
|
|
841
|
+
}, {
|
|
842
|
+
readonly inputs: readonly [{
|
|
843
|
+
readonly internalType: "uint16";
|
|
844
|
+
readonly name: "";
|
|
845
|
+
readonly type: "uint16";
|
|
846
|
+
}, {
|
|
847
|
+
readonly internalType: "bytes";
|
|
848
|
+
readonly name: "";
|
|
849
|
+
readonly type: "bytes";
|
|
850
|
+
}, {
|
|
851
|
+
readonly internalType: "uint64";
|
|
852
|
+
readonly name: "";
|
|
853
|
+
readonly type: "uint64";
|
|
854
|
+
}];
|
|
855
|
+
readonly name: "creditedPackets";
|
|
856
|
+
readonly outputs: readonly [{
|
|
857
|
+
readonly internalType: "bool";
|
|
858
|
+
readonly name: "";
|
|
859
|
+
readonly type: "bool";
|
|
860
|
+
}];
|
|
861
|
+
readonly stateMutability: "view";
|
|
862
|
+
readonly type: "function";
|
|
863
|
+
}, {
|
|
864
|
+
readonly inputs: readonly [];
|
|
865
|
+
readonly name: "decimals";
|
|
866
|
+
readonly outputs: readonly [{
|
|
867
|
+
readonly internalType: "uint8";
|
|
868
|
+
readonly name: "";
|
|
869
|
+
readonly type: "uint8";
|
|
870
|
+
}];
|
|
871
|
+
readonly stateMutability: "view";
|
|
872
|
+
readonly type: "function";
|
|
873
|
+
}, {
|
|
874
|
+
readonly inputs: readonly [{
|
|
875
|
+
readonly internalType: "address";
|
|
876
|
+
readonly name: "spender";
|
|
877
|
+
readonly type: "address";
|
|
878
|
+
}, {
|
|
879
|
+
readonly internalType: "uint256";
|
|
880
|
+
readonly name: "subtractedValue";
|
|
881
|
+
readonly type: "uint256";
|
|
882
|
+
}];
|
|
883
|
+
readonly name: "decreaseAllowance";
|
|
884
|
+
readonly outputs: readonly [{
|
|
885
|
+
readonly internalType: "bool";
|
|
886
|
+
readonly name: "";
|
|
887
|
+
readonly type: "bool";
|
|
888
|
+
}];
|
|
889
|
+
readonly stateMutability: "nonpayable";
|
|
890
|
+
readonly type: "function";
|
|
891
|
+
}, {
|
|
892
|
+
readonly inputs: readonly [{
|
|
893
|
+
readonly internalType: "address";
|
|
894
|
+
readonly name: "delegatee";
|
|
895
|
+
readonly type: "address";
|
|
896
|
+
}];
|
|
897
|
+
readonly name: "delegate";
|
|
898
|
+
readonly outputs: readonly [];
|
|
899
|
+
readonly stateMutability: "nonpayable";
|
|
900
|
+
readonly type: "function";
|
|
901
|
+
}, {
|
|
902
|
+
readonly inputs: readonly [{
|
|
903
|
+
readonly internalType: "address";
|
|
904
|
+
readonly name: "delegatee";
|
|
905
|
+
readonly type: "address";
|
|
906
|
+
}, {
|
|
907
|
+
readonly internalType: "uint256";
|
|
908
|
+
readonly name: "nonce";
|
|
909
|
+
readonly type: "uint256";
|
|
910
|
+
}, {
|
|
911
|
+
readonly internalType: "uint256";
|
|
912
|
+
readonly name: "expiry";
|
|
913
|
+
readonly type: "uint256";
|
|
914
|
+
}, {
|
|
915
|
+
readonly internalType: "uint8";
|
|
916
|
+
readonly name: "v";
|
|
917
|
+
readonly type: "uint8";
|
|
918
|
+
}, {
|
|
919
|
+
readonly internalType: "bytes32";
|
|
920
|
+
readonly name: "r";
|
|
921
|
+
readonly type: "bytes32";
|
|
922
|
+
}, {
|
|
923
|
+
readonly internalType: "bytes32";
|
|
924
|
+
readonly name: "s";
|
|
925
|
+
readonly type: "bytes32";
|
|
926
|
+
}];
|
|
927
|
+
readonly name: "delegateBySig";
|
|
928
|
+
readonly outputs: readonly [];
|
|
929
|
+
readonly stateMutability: "nonpayable";
|
|
930
|
+
readonly type: "function";
|
|
931
|
+
}, {
|
|
932
|
+
readonly inputs: readonly [{
|
|
933
|
+
readonly internalType: "address";
|
|
934
|
+
readonly name: "account";
|
|
935
|
+
readonly type: "address";
|
|
936
|
+
}];
|
|
937
|
+
readonly name: "delegates";
|
|
938
|
+
readonly outputs: readonly [{
|
|
939
|
+
readonly internalType: "address";
|
|
940
|
+
readonly name: "";
|
|
941
|
+
readonly type: "address";
|
|
942
|
+
}];
|
|
943
|
+
readonly stateMutability: "view";
|
|
944
|
+
readonly type: "function";
|
|
945
|
+
}, {
|
|
946
|
+
readonly inputs: readonly [];
|
|
947
|
+
readonly name: "eip712Domain";
|
|
948
|
+
readonly outputs: readonly [{
|
|
949
|
+
readonly internalType: "bytes1";
|
|
950
|
+
readonly name: "fields";
|
|
951
|
+
readonly type: "bytes1";
|
|
952
|
+
}, {
|
|
953
|
+
readonly internalType: "string";
|
|
954
|
+
readonly name: "name";
|
|
955
|
+
readonly type: "string";
|
|
956
|
+
}, {
|
|
957
|
+
readonly internalType: "string";
|
|
958
|
+
readonly name: "version";
|
|
959
|
+
readonly type: "string";
|
|
960
|
+
}, {
|
|
961
|
+
readonly internalType: "uint256";
|
|
962
|
+
readonly name: "chainId";
|
|
963
|
+
readonly type: "uint256";
|
|
964
|
+
}, {
|
|
965
|
+
readonly internalType: "address";
|
|
966
|
+
readonly name: "verifyingContract";
|
|
967
|
+
readonly type: "address";
|
|
968
|
+
}, {
|
|
969
|
+
readonly internalType: "bytes32";
|
|
970
|
+
readonly name: "salt";
|
|
971
|
+
readonly type: "bytes32";
|
|
972
|
+
}, {
|
|
973
|
+
readonly internalType: "uint256[]";
|
|
974
|
+
readonly name: "extensions";
|
|
975
|
+
readonly type: "uint256[]";
|
|
976
|
+
}];
|
|
977
|
+
readonly stateMutability: "view";
|
|
978
|
+
readonly type: "function";
|
|
979
|
+
}, {
|
|
980
|
+
readonly inputs: readonly [{
|
|
981
|
+
readonly internalType: "uint16";
|
|
982
|
+
readonly name: "_dstChainId";
|
|
983
|
+
readonly type: "uint16";
|
|
984
|
+
}, {
|
|
985
|
+
readonly internalType: "bytes32";
|
|
986
|
+
readonly name: "_toAddress";
|
|
987
|
+
readonly type: "bytes32";
|
|
988
|
+
}, {
|
|
989
|
+
readonly internalType: "uint256";
|
|
990
|
+
readonly name: "_amount";
|
|
991
|
+
readonly type: "uint256";
|
|
992
|
+
}, {
|
|
993
|
+
readonly internalType: "bytes";
|
|
994
|
+
readonly name: "_payload";
|
|
995
|
+
readonly type: "bytes";
|
|
996
|
+
}, {
|
|
997
|
+
readonly internalType: "uint64";
|
|
998
|
+
readonly name: "_dstGasForCall";
|
|
999
|
+
readonly type: "uint64";
|
|
1000
|
+
}, {
|
|
1001
|
+
readonly internalType: "bool";
|
|
1002
|
+
readonly name: "_useZro";
|
|
1003
|
+
readonly type: "bool";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly internalType: "bytes";
|
|
1006
|
+
readonly name: "_adapterParams";
|
|
1007
|
+
readonly type: "bytes";
|
|
1008
|
+
}];
|
|
1009
|
+
readonly name: "estimateSendAndCallFee";
|
|
1010
|
+
readonly outputs: readonly [{
|
|
1011
|
+
readonly internalType: "uint256";
|
|
1012
|
+
readonly name: "nativeFee";
|
|
1013
|
+
readonly type: "uint256";
|
|
1014
|
+
}, {
|
|
1015
|
+
readonly internalType: "uint256";
|
|
1016
|
+
readonly name: "zroFee";
|
|
1017
|
+
readonly type: "uint256";
|
|
1018
|
+
}];
|
|
1019
|
+
readonly stateMutability: "view";
|
|
1020
|
+
readonly type: "function";
|
|
1021
|
+
}, {
|
|
1022
|
+
readonly inputs: readonly [{
|
|
1023
|
+
readonly internalType: "uint16";
|
|
1024
|
+
readonly name: "_dstChainId";
|
|
1025
|
+
readonly type: "uint16";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly internalType: "bytes32";
|
|
1028
|
+
readonly name: "_toAddress";
|
|
1029
|
+
readonly type: "bytes32";
|
|
1030
|
+
}, {
|
|
1031
|
+
readonly internalType: "uint256";
|
|
1032
|
+
readonly name: "_amount";
|
|
1033
|
+
readonly type: "uint256";
|
|
1034
|
+
}, {
|
|
1035
|
+
readonly internalType: "bool";
|
|
1036
|
+
readonly name: "_useZro";
|
|
1037
|
+
readonly type: "bool";
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly internalType: "bytes";
|
|
1040
|
+
readonly name: "_adapterParams";
|
|
1041
|
+
readonly type: "bytes";
|
|
1042
|
+
}];
|
|
1043
|
+
readonly name: "estimateSendFee";
|
|
1044
|
+
readonly outputs: readonly [{
|
|
1045
|
+
readonly internalType: "uint256";
|
|
1046
|
+
readonly name: "nativeFee";
|
|
1047
|
+
readonly type: "uint256";
|
|
1048
|
+
}, {
|
|
1049
|
+
readonly internalType: "uint256";
|
|
1050
|
+
readonly name: "zroFee";
|
|
1051
|
+
readonly type: "uint256";
|
|
1052
|
+
}];
|
|
1053
|
+
readonly stateMutability: "view";
|
|
1054
|
+
readonly type: "function";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly inputs: readonly [{
|
|
1057
|
+
readonly internalType: "uint16";
|
|
1058
|
+
readonly name: "";
|
|
1059
|
+
readonly type: "uint16";
|
|
1060
|
+
}, {
|
|
1061
|
+
readonly internalType: "bytes";
|
|
1062
|
+
readonly name: "";
|
|
1063
|
+
readonly type: "bytes";
|
|
1064
|
+
}, {
|
|
1065
|
+
readonly internalType: "uint64";
|
|
1066
|
+
readonly name: "";
|
|
1067
|
+
readonly type: "uint64";
|
|
1068
|
+
}];
|
|
1069
|
+
readonly name: "failedMessages";
|
|
1070
|
+
readonly outputs: readonly [{
|
|
1071
|
+
readonly internalType: "bytes32";
|
|
1072
|
+
readonly name: "";
|
|
1073
|
+
readonly type: "bytes32";
|
|
1074
|
+
}];
|
|
1075
|
+
readonly stateMutability: "view";
|
|
1076
|
+
readonly type: "function";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly inputs: readonly [{
|
|
1079
|
+
readonly internalType: "uint16";
|
|
1080
|
+
readonly name: "_srcChainId";
|
|
1081
|
+
readonly type: "uint16";
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly internalType: "bytes";
|
|
1084
|
+
readonly name: "_srcAddress";
|
|
1085
|
+
readonly type: "bytes";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly name: "forceResumeReceive";
|
|
1088
|
+
readonly outputs: readonly [];
|
|
1089
|
+
readonly stateMutability: "nonpayable";
|
|
1090
|
+
readonly type: "function";
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly inputs: readonly [{
|
|
1093
|
+
readonly internalType: "uint16";
|
|
1094
|
+
readonly name: "_version";
|
|
1095
|
+
readonly type: "uint16";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly internalType: "uint16";
|
|
1098
|
+
readonly name: "_chainId";
|
|
1099
|
+
readonly type: "uint16";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly internalType: "address";
|
|
1102
|
+
readonly name: "";
|
|
1103
|
+
readonly type: "address";
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly internalType: "uint256";
|
|
1106
|
+
readonly name: "_configType";
|
|
1107
|
+
readonly type: "uint256";
|
|
1108
|
+
}];
|
|
1109
|
+
readonly name: "getConfig";
|
|
1110
|
+
readonly outputs: readonly [{
|
|
1111
|
+
readonly internalType: "bytes";
|
|
1112
|
+
readonly name: "";
|
|
1113
|
+
readonly type: "bytes";
|
|
1114
|
+
}];
|
|
1115
|
+
readonly stateMutability: "view";
|
|
1116
|
+
readonly type: "function";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly inputs: readonly [{
|
|
1119
|
+
readonly internalType: "uint256";
|
|
1120
|
+
readonly name: "timepoint";
|
|
1121
|
+
readonly type: "uint256";
|
|
1122
|
+
}];
|
|
1123
|
+
readonly name: "getPastTotalSupply";
|
|
1124
|
+
readonly outputs: readonly [{
|
|
1125
|
+
readonly internalType: "uint256";
|
|
1126
|
+
readonly name: "";
|
|
1127
|
+
readonly type: "uint256";
|
|
1128
|
+
}];
|
|
1129
|
+
readonly stateMutability: "view";
|
|
1130
|
+
readonly type: "function";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly inputs: readonly [{
|
|
1133
|
+
readonly internalType: "address";
|
|
1134
|
+
readonly name: "account";
|
|
1135
|
+
readonly type: "address";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly internalType: "uint256";
|
|
1138
|
+
readonly name: "timepoint";
|
|
1139
|
+
readonly type: "uint256";
|
|
1140
|
+
}];
|
|
1141
|
+
readonly name: "getPastVotes";
|
|
1142
|
+
readonly outputs: readonly [{
|
|
1143
|
+
readonly internalType: "uint256";
|
|
1144
|
+
readonly name: "";
|
|
1145
|
+
readonly type: "uint256";
|
|
1146
|
+
}];
|
|
1147
|
+
readonly stateMutability: "view";
|
|
1148
|
+
readonly type: "function";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly inputs: readonly [{
|
|
1151
|
+
readonly internalType: "uint16";
|
|
1152
|
+
readonly name: "_remoteChainId";
|
|
1153
|
+
readonly type: "uint16";
|
|
1154
|
+
}];
|
|
1155
|
+
readonly name: "getTrustedRemoteAddress";
|
|
1156
|
+
readonly outputs: readonly [{
|
|
1157
|
+
readonly internalType: "bytes";
|
|
1158
|
+
readonly name: "";
|
|
1159
|
+
readonly type: "bytes";
|
|
1160
|
+
}];
|
|
1161
|
+
readonly stateMutability: "view";
|
|
1162
|
+
readonly type: "function";
|
|
1163
|
+
}, {
|
|
1164
|
+
readonly inputs: readonly [{
|
|
1165
|
+
readonly internalType: "address";
|
|
1166
|
+
readonly name: "account";
|
|
1167
|
+
readonly type: "address";
|
|
1168
|
+
}];
|
|
1169
|
+
readonly name: "getVotes";
|
|
1170
|
+
readonly outputs: readonly [{
|
|
1171
|
+
readonly internalType: "uint256";
|
|
1172
|
+
readonly name: "";
|
|
1173
|
+
readonly type: "uint256";
|
|
1174
|
+
}];
|
|
1175
|
+
readonly stateMutability: "view";
|
|
1176
|
+
readonly type: "function";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly inputs: readonly [{
|
|
1179
|
+
readonly internalType: "address";
|
|
1180
|
+
readonly name: "spender";
|
|
1181
|
+
readonly type: "address";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly internalType: "uint256";
|
|
1184
|
+
readonly name: "addedValue";
|
|
1185
|
+
readonly type: "uint256";
|
|
1186
|
+
}];
|
|
1187
|
+
readonly name: "increaseAllowance";
|
|
1188
|
+
readonly outputs: readonly [{
|
|
1189
|
+
readonly internalType: "bool";
|
|
1190
|
+
readonly name: "";
|
|
1191
|
+
readonly type: "bool";
|
|
1192
|
+
}];
|
|
1193
|
+
readonly stateMutability: "nonpayable";
|
|
1194
|
+
readonly type: "function";
|
|
1195
|
+
}, {
|
|
1196
|
+
readonly inputs: readonly [{
|
|
1197
|
+
readonly internalType: "address";
|
|
1198
|
+
readonly name: "_lzEndpoint";
|
|
1199
|
+
readonly type: "address";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly internalType: "address";
|
|
1202
|
+
readonly name: "_buyTaxReceiver";
|
|
1203
|
+
readonly type: "address";
|
|
1204
|
+
}, {
|
|
1205
|
+
readonly internalType: "address";
|
|
1206
|
+
readonly name: "_antiMEVStrategy";
|
|
1207
|
+
readonly type: "address";
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly internalType: "address";
|
|
1210
|
+
readonly name: "_migrator";
|
|
1211
|
+
readonly type: "address";
|
|
1212
|
+
}, {
|
|
1213
|
+
readonly internalType: "uint256";
|
|
1214
|
+
readonly name: "_migratorMintSupply";
|
|
1215
|
+
readonly type: "uint256";
|
|
1216
|
+
}, {
|
|
1217
|
+
readonly internalType: "uint256";
|
|
1218
|
+
readonly name: "_buyTax";
|
|
1219
|
+
readonly type: "uint256";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly internalType: "uint256";
|
|
1222
|
+
readonly name: "_sellTax";
|
|
1223
|
+
readonly type: "uint256";
|
|
1224
|
+
}, {
|
|
1225
|
+
readonly internalType: "bool";
|
|
1226
|
+
readonly name: "_isTaxingEnabled";
|
|
1227
|
+
readonly type: "bool";
|
|
1228
|
+
}, {
|
|
1229
|
+
readonly internalType: "bool";
|
|
1230
|
+
readonly name: "_isAntiMEV";
|
|
1231
|
+
readonly type: "bool";
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly internalType: "bool";
|
|
1234
|
+
readonly name: "_isTransferBlacklisting";
|
|
1235
|
+
readonly type: "bool";
|
|
1236
|
+
}];
|
|
1237
|
+
readonly name: "initialize";
|
|
1238
|
+
readonly outputs: readonly [];
|
|
1239
|
+
readonly stateMutability: "nonpayable";
|
|
1240
|
+
readonly type: "function";
|
|
1241
|
+
}, {
|
|
1242
|
+
readonly inputs: readonly [{
|
|
1243
|
+
readonly internalType: "uint16";
|
|
1244
|
+
readonly name: "_srcChainId";
|
|
1245
|
+
readonly type: "uint16";
|
|
1246
|
+
}, {
|
|
1247
|
+
readonly internalType: "bytes";
|
|
1248
|
+
readonly name: "_srcAddress";
|
|
1249
|
+
readonly type: "bytes";
|
|
1250
|
+
}];
|
|
1251
|
+
readonly name: "isTrustedRemote";
|
|
1252
|
+
readonly outputs: readonly [{
|
|
1253
|
+
readonly internalType: "bool";
|
|
1254
|
+
readonly name: "";
|
|
1255
|
+
readonly type: "bool";
|
|
1256
|
+
}];
|
|
1257
|
+
readonly stateMutability: "view";
|
|
1258
|
+
readonly type: "function";
|
|
1259
|
+
}, {
|
|
1260
|
+
readonly inputs: readonly [];
|
|
1261
|
+
readonly name: "lzEndpoint";
|
|
1262
|
+
readonly outputs: readonly [{
|
|
1263
|
+
readonly internalType: "contract ILayerZeroEndpoint";
|
|
1264
|
+
readonly name: "";
|
|
1265
|
+
readonly type: "address";
|
|
1266
|
+
}];
|
|
1267
|
+
readonly stateMutability: "view";
|
|
1268
|
+
readonly type: "function";
|
|
1269
|
+
}, {
|
|
1270
|
+
readonly inputs: readonly [{
|
|
1271
|
+
readonly internalType: "uint16";
|
|
1272
|
+
readonly name: "_srcChainId";
|
|
1273
|
+
readonly type: "uint16";
|
|
1274
|
+
}, {
|
|
1275
|
+
readonly internalType: "bytes";
|
|
1276
|
+
readonly name: "_srcAddress";
|
|
1277
|
+
readonly type: "bytes";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly internalType: "uint64";
|
|
1280
|
+
readonly name: "_nonce";
|
|
1281
|
+
readonly type: "uint64";
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly internalType: "bytes";
|
|
1284
|
+
readonly name: "_payload";
|
|
1285
|
+
readonly type: "bytes";
|
|
1286
|
+
}];
|
|
1287
|
+
readonly name: "lzReceive";
|
|
1288
|
+
readonly outputs: readonly [];
|
|
1289
|
+
readonly stateMutability: "nonpayable";
|
|
1290
|
+
readonly type: "function";
|
|
1291
|
+
}, {
|
|
1292
|
+
readonly inputs: readonly [{
|
|
1293
|
+
readonly internalType: "uint16";
|
|
1294
|
+
readonly name: "";
|
|
1295
|
+
readonly type: "uint16";
|
|
1296
|
+
}, {
|
|
1297
|
+
readonly internalType: "uint16";
|
|
1298
|
+
readonly name: "";
|
|
1299
|
+
readonly type: "uint16";
|
|
1300
|
+
}];
|
|
1301
|
+
readonly name: "minDstGasLookup";
|
|
1302
|
+
readonly outputs: readonly [{
|
|
1303
|
+
readonly internalType: "uint256";
|
|
1304
|
+
readonly name: "";
|
|
1305
|
+
readonly type: "uint256";
|
|
1306
|
+
}];
|
|
1307
|
+
readonly stateMutability: "view";
|
|
1308
|
+
readonly type: "function";
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly inputs: readonly [];
|
|
1311
|
+
readonly name: "name";
|
|
1312
|
+
readonly outputs: readonly [{
|
|
1313
|
+
readonly internalType: "string";
|
|
1314
|
+
readonly name: "";
|
|
1315
|
+
readonly type: "string";
|
|
1316
|
+
}];
|
|
1317
|
+
readonly stateMutability: "view";
|
|
1318
|
+
readonly type: "function";
|
|
1319
|
+
}, {
|
|
1320
|
+
readonly inputs: readonly [{
|
|
1321
|
+
readonly internalType: "uint16";
|
|
1322
|
+
readonly name: "_srcChainId";
|
|
1323
|
+
readonly type: "uint16";
|
|
1324
|
+
}, {
|
|
1325
|
+
readonly internalType: "bytes";
|
|
1326
|
+
readonly name: "_srcAddress";
|
|
1327
|
+
readonly type: "bytes";
|
|
1328
|
+
}, {
|
|
1329
|
+
readonly internalType: "uint64";
|
|
1330
|
+
readonly name: "_nonce";
|
|
1331
|
+
readonly type: "uint64";
|
|
1332
|
+
}, {
|
|
1333
|
+
readonly internalType: "bytes";
|
|
1334
|
+
readonly name: "_payload";
|
|
1335
|
+
readonly type: "bytes";
|
|
1336
|
+
}];
|
|
1337
|
+
readonly name: "nonblockingLzReceive";
|
|
1338
|
+
readonly outputs: readonly [];
|
|
1339
|
+
readonly stateMutability: "nonpayable";
|
|
1340
|
+
readonly type: "function";
|
|
1341
|
+
}, {
|
|
1342
|
+
readonly inputs: readonly [{
|
|
1343
|
+
readonly internalType: "address";
|
|
1344
|
+
readonly name: "owner";
|
|
1345
|
+
readonly type: "address";
|
|
1346
|
+
}];
|
|
1347
|
+
readonly name: "nonces";
|
|
1348
|
+
readonly outputs: readonly [{
|
|
1349
|
+
readonly internalType: "uint256";
|
|
1350
|
+
readonly name: "";
|
|
1351
|
+
readonly type: "uint256";
|
|
1352
|
+
}];
|
|
1353
|
+
readonly stateMutability: "view";
|
|
1354
|
+
readonly type: "function";
|
|
1355
|
+
}, {
|
|
1356
|
+
readonly inputs: readonly [{
|
|
1357
|
+
readonly internalType: "address";
|
|
1358
|
+
readonly name: "account";
|
|
1359
|
+
readonly type: "address";
|
|
1360
|
+
}];
|
|
1361
|
+
readonly name: "numCheckpoints";
|
|
1362
|
+
readonly outputs: readonly [{
|
|
1363
|
+
readonly internalType: "uint32";
|
|
1364
|
+
readonly name: "";
|
|
1365
|
+
readonly type: "uint32";
|
|
1366
|
+
}];
|
|
1367
|
+
readonly stateMutability: "view";
|
|
1368
|
+
readonly type: "function";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly inputs: readonly [];
|
|
1371
|
+
readonly name: "owner";
|
|
1372
|
+
readonly outputs: readonly [{
|
|
1373
|
+
readonly internalType: "address";
|
|
1374
|
+
readonly name: "";
|
|
1375
|
+
readonly type: "address";
|
|
1376
|
+
}];
|
|
1377
|
+
readonly stateMutability: "view";
|
|
1378
|
+
readonly type: "function";
|
|
1379
|
+
}, {
|
|
1380
|
+
readonly inputs: readonly [{
|
|
1381
|
+
readonly internalType: "uint16";
|
|
1382
|
+
readonly name: "";
|
|
1383
|
+
readonly type: "uint16";
|
|
1384
|
+
}];
|
|
1385
|
+
readonly name: "payloadSizeLimitLookup";
|
|
1386
|
+
readonly outputs: readonly [{
|
|
1387
|
+
readonly internalType: "uint256";
|
|
1388
|
+
readonly name: "";
|
|
1389
|
+
readonly type: "uint256";
|
|
1390
|
+
}];
|
|
1391
|
+
readonly stateMutability: "view";
|
|
1392
|
+
readonly type: "function";
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly inputs: readonly [{
|
|
1395
|
+
readonly internalType: "address";
|
|
1396
|
+
readonly name: "owner";
|
|
1397
|
+
readonly type: "address";
|
|
1398
|
+
}, {
|
|
1399
|
+
readonly internalType: "address";
|
|
1400
|
+
readonly name: "spender";
|
|
1401
|
+
readonly type: "address";
|
|
1402
|
+
}, {
|
|
1403
|
+
readonly internalType: "uint256";
|
|
1404
|
+
readonly name: "value";
|
|
1405
|
+
readonly type: "uint256";
|
|
1406
|
+
}, {
|
|
1407
|
+
readonly internalType: "uint256";
|
|
1408
|
+
readonly name: "deadline";
|
|
1409
|
+
readonly type: "uint256";
|
|
1410
|
+
}, {
|
|
1411
|
+
readonly internalType: "uint8";
|
|
1412
|
+
readonly name: "v";
|
|
1413
|
+
readonly type: "uint8";
|
|
1414
|
+
}, {
|
|
1415
|
+
readonly internalType: "bytes32";
|
|
1416
|
+
readonly name: "r";
|
|
1417
|
+
readonly type: "bytes32";
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly internalType: "bytes32";
|
|
1420
|
+
readonly name: "s";
|
|
1421
|
+
readonly type: "bytes32";
|
|
1422
|
+
}];
|
|
1423
|
+
readonly name: "permit";
|
|
1424
|
+
readonly outputs: readonly [];
|
|
1425
|
+
readonly stateMutability: "nonpayable";
|
|
1426
|
+
readonly type: "function";
|
|
1427
|
+
}, {
|
|
1428
|
+
readonly inputs: readonly [];
|
|
1429
|
+
readonly name: "precrime";
|
|
1430
|
+
readonly outputs: readonly [{
|
|
1431
|
+
readonly internalType: "address";
|
|
1432
|
+
readonly name: "";
|
|
1433
|
+
readonly type: "address";
|
|
1434
|
+
}];
|
|
1435
|
+
readonly stateMutability: "view";
|
|
1436
|
+
readonly type: "function";
|
|
1437
|
+
}, {
|
|
1438
|
+
readonly inputs: readonly [{
|
|
1439
|
+
readonly internalType: "contract IERC20";
|
|
1440
|
+
readonly name: "_token";
|
|
1441
|
+
readonly type: "address";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly internalType: "uint256";
|
|
1444
|
+
readonly name: "_amount";
|
|
1445
|
+
readonly type: "uint256";
|
|
1446
|
+
}];
|
|
1447
|
+
readonly name: "recoverToken";
|
|
1448
|
+
readonly outputs: readonly [];
|
|
1449
|
+
readonly stateMutability: "nonpayable";
|
|
1450
|
+
readonly type: "function";
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly inputs: readonly [];
|
|
1453
|
+
readonly name: "renounceOwnership";
|
|
1454
|
+
readonly outputs: readonly [];
|
|
1455
|
+
readonly stateMutability: "nonpayable";
|
|
1456
|
+
readonly type: "function";
|
|
1457
|
+
}, {
|
|
1458
|
+
readonly inputs: readonly [{
|
|
1459
|
+
readonly internalType: "uint16";
|
|
1460
|
+
readonly name: "_srcChainId";
|
|
1461
|
+
readonly type: "uint16";
|
|
1462
|
+
}, {
|
|
1463
|
+
readonly internalType: "bytes";
|
|
1464
|
+
readonly name: "_srcAddress";
|
|
1465
|
+
readonly type: "bytes";
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly internalType: "uint64";
|
|
1468
|
+
readonly name: "_nonce";
|
|
1469
|
+
readonly type: "uint64";
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly internalType: "bytes";
|
|
1472
|
+
readonly name: "_payload";
|
|
1473
|
+
readonly type: "bytes";
|
|
1474
|
+
}];
|
|
1475
|
+
readonly name: "retryMessage";
|
|
1476
|
+
readonly outputs: readonly [];
|
|
1477
|
+
readonly stateMutability: "payable";
|
|
1478
|
+
readonly type: "function";
|
|
1479
|
+
}, {
|
|
1480
|
+
readonly inputs: readonly [{
|
|
1481
|
+
readonly internalType: "address";
|
|
1482
|
+
readonly name: "_from";
|
|
1483
|
+
readonly type: "address";
|
|
1484
|
+
}, {
|
|
1485
|
+
readonly internalType: "uint16";
|
|
1486
|
+
readonly name: "_dstChainId";
|
|
1487
|
+
readonly type: "uint16";
|
|
1488
|
+
}, {
|
|
1489
|
+
readonly internalType: "bytes32";
|
|
1490
|
+
readonly name: "_toAddress";
|
|
1491
|
+
readonly type: "bytes32";
|
|
1492
|
+
}, {
|
|
1493
|
+
readonly internalType: "uint256";
|
|
1494
|
+
readonly name: "_amount";
|
|
1495
|
+
readonly type: "uint256";
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly internalType: "bytes";
|
|
1498
|
+
readonly name: "_payload";
|
|
1499
|
+
readonly type: "bytes";
|
|
1500
|
+
}, {
|
|
1501
|
+
readonly internalType: "uint64";
|
|
1502
|
+
readonly name: "_dstGasForCall";
|
|
1503
|
+
readonly type: "uint64";
|
|
1504
|
+
}, {
|
|
1505
|
+
readonly components: readonly [{
|
|
1506
|
+
readonly internalType: "address payable";
|
|
1507
|
+
readonly name: "refundAddress";
|
|
1508
|
+
readonly type: "address";
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly internalType: "address";
|
|
1511
|
+
readonly name: "zroPaymentAddress";
|
|
1512
|
+
readonly type: "address";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly internalType: "bytes";
|
|
1515
|
+
readonly name: "adapterParams";
|
|
1516
|
+
readonly type: "bytes";
|
|
1517
|
+
}];
|
|
1518
|
+
readonly internalType: "struct ICommonOFT.LzCallParams";
|
|
1519
|
+
readonly name: "_callParams";
|
|
1520
|
+
readonly type: "tuple";
|
|
1521
|
+
}];
|
|
1522
|
+
readonly name: "sendAndCall";
|
|
1523
|
+
readonly outputs: readonly [];
|
|
1524
|
+
readonly stateMutability: "payable";
|
|
1525
|
+
readonly type: "function";
|
|
1526
|
+
}, {
|
|
1527
|
+
readonly inputs: readonly [{
|
|
1528
|
+
readonly internalType: "address";
|
|
1529
|
+
readonly name: "_from";
|
|
1530
|
+
readonly type: "address";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly internalType: "uint16";
|
|
1533
|
+
readonly name: "_dstChainId";
|
|
1534
|
+
readonly type: "uint16";
|
|
1535
|
+
}, {
|
|
1536
|
+
readonly internalType: "bytes32";
|
|
1537
|
+
readonly name: "_toAddress";
|
|
1538
|
+
readonly type: "bytes32";
|
|
1539
|
+
}, {
|
|
1540
|
+
readonly internalType: "uint256";
|
|
1541
|
+
readonly name: "_amount";
|
|
1542
|
+
readonly type: "uint256";
|
|
1543
|
+
}, {
|
|
1544
|
+
readonly components: readonly [{
|
|
1545
|
+
readonly internalType: "address payable";
|
|
1546
|
+
readonly name: "refundAddress";
|
|
1547
|
+
readonly type: "address";
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly internalType: "address";
|
|
1550
|
+
readonly name: "zroPaymentAddress";
|
|
1551
|
+
readonly type: "address";
|
|
1552
|
+
}, {
|
|
1553
|
+
readonly internalType: "bytes";
|
|
1554
|
+
readonly name: "adapterParams";
|
|
1555
|
+
readonly type: "bytes";
|
|
1556
|
+
}];
|
|
1557
|
+
readonly internalType: "struct ICommonOFT.LzCallParams";
|
|
1558
|
+
readonly name: "_callParams";
|
|
1559
|
+
readonly type: "tuple";
|
|
1560
|
+
}];
|
|
1561
|
+
readonly name: "sendFrom";
|
|
1562
|
+
readonly outputs: readonly [];
|
|
1563
|
+
readonly stateMutability: "payable";
|
|
1564
|
+
readonly type: "function";
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly inputs: readonly [{
|
|
1567
|
+
readonly internalType: "contract IAntiMevStrategy";
|
|
1568
|
+
readonly name: "_antiMEVStrategy";
|
|
1569
|
+
readonly type: "address";
|
|
1570
|
+
}];
|
|
1571
|
+
readonly name: "setAntiMevStrategy";
|
|
1572
|
+
readonly outputs: readonly [];
|
|
1573
|
+
readonly stateMutability: "nonpayable";
|
|
1574
|
+
readonly type: "function";
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly inputs: readonly [{
|
|
1577
|
+
readonly internalType: "address";
|
|
1578
|
+
readonly name: "_buyTaxReceiver";
|
|
1579
|
+
readonly type: "address";
|
|
1580
|
+
}];
|
|
1581
|
+
readonly name: "setBuyTaxReceiver";
|
|
1582
|
+
readonly outputs: readonly [];
|
|
1583
|
+
readonly stateMutability: "nonpayable";
|
|
1584
|
+
readonly type: "function";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly inputs: readonly [{
|
|
1587
|
+
readonly internalType: "uint16";
|
|
1588
|
+
readonly name: "_version";
|
|
1589
|
+
readonly type: "uint16";
|
|
1590
|
+
}, {
|
|
1591
|
+
readonly internalType: "uint16";
|
|
1592
|
+
readonly name: "_chainId";
|
|
1593
|
+
readonly type: "uint16";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly internalType: "uint256";
|
|
1596
|
+
readonly name: "_configType";
|
|
1597
|
+
readonly type: "uint256";
|
|
1598
|
+
}, {
|
|
1599
|
+
readonly internalType: "bytes";
|
|
1600
|
+
readonly name: "_config";
|
|
1601
|
+
readonly type: "bytes";
|
|
1602
|
+
}];
|
|
1603
|
+
readonly name: "setConfig";
|
|
1604
|
+
readonly outputs: readonly [];
|
|
1605
|
+
readonly stateMutability: "nonpayable";
|
|
1606
|
+
readonly type: "function";
|
|
1607
|
+
}, {
|
|
1608
|
+
readonly inputs: readonly [{
|
|
1609
|
+
readonly internalType: "bool";
|
|
1610
|
+
readonly name: "_isAntiMEV";
|
|
1611
|
+
readonly type: "bool";
|
|
1612
|
+
}];
|
|
1613
|
+
readonly name: "setIsAntiMEV";
|
|
1614
|
+
readonly outputs: readonly [];
|
|
1615
|
+
readonly stateMutability: "nonpayable";
|
|
1616
|
+
readonly type: "function";
|
|
1617
|
+
}, {
|
|
1618
|
+
readonly inputs: readonly [{
|
|
1619
|
+
readonly internalType: "bool";
|
|
1620
|
+
readonly name: "_isBlacklisting";
|
|
1621
|
+
readonly type: "bool";
|
|
1622
|
+
}];
|
|
1623
|
+
readonly name: "setIsTransferBlacklisting";
|
|
1624
|
+
readonly outputs: readonly [];
|
|
1625
|
+
readonly stateMutability: "nonpayable";
|
|
1626
|
+
readonly type: "function";
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly inputs: readonly [{
|
|
1629
|
+
readonly internalType: "uint16";
|
|
1630
|
+
readonly name: "_dstChainId";
|
|
1631
|
+
readonly type: "uint16";
|
|
1632
|
+
}, {
|
|
1633
|
+
readonly internalType: "uint16";
|
|
1634
|
+
readonly name: "_packetType";
|
|
1635
|
+
readonly type: "uint16";
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly internalType: "uint256";
|
|
1638
|
+
readonly name: "_minGas";
|
|
1639
|
+
readonly type: "uint256";
|
|
1640
|
+
}];
|
|
1641
|
+
readonly name: "setMinDstGas";
|
|
1642
|
+
readonly outputs: readonly [];
|
|
1643
|
+
readonly stateMutability: "nonpayable";
|
|
1644
|
+
readonly type: "function";
|
|
1645
|
+
}, {
|
|
1646
|
+
readonly inputs: readonly [{
|
|
1647
|
+
readonly internalType: "uint16";
|
|
1648
|
+
readonly name: "_dstChainId";
|
|
1649
|
+
readonly type: "uint16";
|
|
1650
|
+
}, {
|
|
1651
|
+
readonly internalType: "uint256";
|
|
1652
|
+
readonly name: "_size";
|
|
1653
|
+
readonly type: "uint256";
|
|
1654
|
+
}];
|
|
1655
|
+
readonly name: "setPayloadSizeLimit";
|
|
1656
|
+
readonly outputs: readonly [];
|
|
1657
|
+
readonly stateMutability: "nonpayable";
|
|
1658
|
+
readonly type: "function";
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly inputs: readonly [{
|
|
1661
|
+
readonly internalType: "address";
|
|
1662
|
+
readonly name: "_precrime";
|
|
1663
|
+
readonly type: "address";
|
|
1664
|
+
}];
|
|
1665
|
+
readonly name: "setPrecrime";
|
|
1666
|
+
readonly outputs: readonly [];
|
|
1667
|
+
readonly stateMutability: "nonpayable";
|
|
1668
|
+
readonly type: "function";
|
|
1669
|
+
}, {
|
|
1670
|
+
readonly inputs: readonly [{
|
|
1671
|
+
readonly internalType: "uint16";
|
|
1672
|
+
readonly name: "_version";
|
|
1673
|
+
readonly type: "uint16";
|
|
1674
|
+
}];
|
|
1675
|
+
readonly name: "setReceiveVersion";
|
|
1676
|
+
readonly outputs: readonly [];
|
|
1677
|
+
readonly stateMutability: "nonpayable";
|
|
1678
|
+
readonly type: "function";
|
|
1679
|
+
}, {
|
|
1680
|
+
readonly inputs: readonly [{
|
|
1681
|
+
readonly internalType: "uint16";
|
|
1682
|
+
readonly name: "_version";
|
|
1683
|
+
readonly type: "uint16";
|
|
1684
|
+
}];
|
|
1685
|
+
readonly name: "setSendVersion";
|
|
1686
|
+
readonly outputs: readonly [];
|
|
1687
|
+
readonly stateMutability: "nonpayable";
|
|
1688
|
+
readonly type: "function";
|
|
1689
|
+
}, {
|
|
1690
|
+
readonly inputs: readonly [{
|
|
1691
|
+
readonly internalType: "uint256";
|
|
1692
|
+
readonly name: "_buyTax";
|
|
1693
|
+
readonly type: "uint256";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly internalType: "uint256";
|
|
1696
|
+
readonly name: "_sellTax";
|
|
1697
|
+
readonly type: "uint256";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly internalType: "bool";
|
|
1700
|
+
readonly name: "_isTaxingEnabled";
|
|
1701
|
+
readonly type: "bool";
|
|
1702
|
+
}];
|
|
1703
|
+
readonly name: "setTax";
|
|
1704
|
+
readonly outputs: readonly [];
|
|
1705
|
+
readonly stateMutability: "nonpayable";
|
|
1706
|
+
readonly type: "function";
|
|
1707
|
+
}, {
|
|
1708
|
+
readonly inputs: readonly [{
|
|
1709
|
+
readonly internalType: "address";
|
|
1710
|
+
readonly name: "_whitelist";
|
|
1711
|
+
readonly type: "address";
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly internalType: "bool";
|
|
1714
|
+
readonly name: "_isWhitelisted";
|
|
1715
|
+
readonly type: "bool";
|
|
1716
|
+
}];
|
|
1717
|
+
readonly name: "setTaxWhitelist";
|
|
1718
|
+
readonly outputs: readonly [];
|
|
1719
|
+
readonly stateMutability: "nonpayable";
|
|
1720
|
+
readonly type: "function";
|
|
1721
|
+
}, {
|
|
1722
|
+
readonly inputs: readonly [{
|
|
1723
|
+
readonly internalType: "address";
|
|
1724
|
+
readonly name: "_taxableContract";
|
|
1725
|
+
readonly type: "address";
|
|
1726
|
+
}, {
|
|
1727
|
+
readonly internalType: "bool";
|
|
1728
|
+
readonly name: "_isTaxable";
|
|
1729
|
+
readonly type: "bool";
|
|
1730
|
+
}];
|
|
1731
|
+
readonly name: "setTaxableContract";
|
|
1732
|
+
readonly outputs: readonly [];
|
|
1733
|
+
readonly stateMutability: "nonpayable";
|
|
1734
|
+
readonly type: "function";
|
|
1735
|
+
}, {
|
|
1736
|
+
readonly inputs: readonly [{
|
|
1737
|
+
readonly internalType: "address";
|
|
1738
|
+
readonly name: "_blacklist";
|
|
1739
|
+
readonly type: "address";
|
|
1740
|
+
}, {
|
|
1741
|
+
readonly internalType: "bool";
|
|
1742
|
+
readonly name: "_isBlacklisted";
|
|
1743
|
+
readonly type: "bool";
|
|
1744
|
+
}];
|
|
1745
|
+
readonly name: "setTransferBlacklist";
|
|
1746
|
+
readonly outputs: readonly [];
|
|
1747
|
+
readonly stateMutability: "nonpayable";
|
|
1748
|
+
readonly type: "function";
|
|
1749
|
+
}, {
|
|
1750
|
+
readonly inputs: readonly [{
|
|
1751
|
+
readonly internalType: "uint16";
|
|
1752
|
+
readonly name: "_remoteChainId";
|
|
1753
|
+
readonly type: "uint16";
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly internalType: "bytes";
|
|
1756
|
+
readonly name: "_path";
|
|
1757
|
+
readonly type: "bytes";
|
|
1758
|
+
}];
|
|
1759
|
+
readonly name: "setTrustedRemote";
|
|
1760
|
+
readonly outputs: readonly [];
|
|
1761
|
+
readonly stateMutability: "nonpayable";
|
|
1762
|
+
readonly type: "function";
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly inputs: readonly [{
|
|
1765
|
+
readonly internalType: "uint16";
|
|
1766
|
+
readonly name: "_remoteChainId";
|
|
1767
|
+
readonly type: "uint16";
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly internalType: "bytes";
|
|
1770
|
+
readonly name: "_remoteAddress";
|
|
1771
|
+
readonly type: "bytes";
|
|
1772
|
+
}];
|
|
1773
|
+
readonly name: "setTrustedRemoteAddress";
|
|
1774
|
+
readonly outputs: readonly [];
|
|
1775
|
+
readonly stateMutability: "nonpayable";
|
|
1776
|
+
readonly type: "function";
|
|
1777
|
+
}, {
|
|
1778
|
+
readonly inputs: readonly [{
|
|
1779
|
+
readonly internalType: "bool";
|
|
1780
|
+
readonly name: "_useCustomAdapterParams";
|
|
1781
|
+
readonly type: "bool";
|
|
1782
|
+
}];
|
|
1783
|
+
readonly name: "setUseCustomAdapterParams";
|
|
1784
|
+
readonly outputs: readonly [];
|
|
1785
|
+
readonly stateMutability: "nonpayable";
|
|
1786
|
+
readonly type: "function";
|
|
1787
|
+
}, {
|
|
1788
|
+
readonly inputs: readonly [];
|
|
1789
|
+
readonly name: "sharedDecimals";
|
|
1790
|
+
readonly outputs: readonly [{
|
|
1791
|
+
readonly internalType: "uint8";
|
|
1792
|
+
readonly name: "";
|
|
1793
|
+
readonly type: "uint8";
|
|
1794
|
+
}];
|
|
1795
|
+
readonly stateMutability: "view";
|
|
1796
|
+
readonly type: "function";
|
|
1797
|
+
}, {
|
|
1798
|
+
readonly inputs: readonly [{
|
|
1799
|
+
readonly internalType: "bytes4";
|
|
1800
|
+
readonly name: "interfaceId";
|
|
1801
|
+
readonly type: "bytes4";
|
|
1802
|
+
}];
|
|
1803
|
+
readonly name: "supportsInterface";
|
|
1804
|
+
readonly outputs: readonly [{
|
|
1805
|
+
readonly internalType: "bool";
|
|
1806
|
+
readonly name: "";
|
|
1807
|
+
readonly type: "bool";
|
|
1808
|
+
}];
|
|
1809
|
+
readonly stateMutability: "view";
|
|
1810
|
+
readonly type: "function";
|
|
1811
|
+
}, {
|
|
1812
|
+
readonly inputs: readonly [];
|
|
1813
|
+
readonly name: "symbol";
|
|
1814
|
+
readonly outputs: readonly [{
|
|
1815
|
+
readonly internalType: "string";
|
|
1816
|
+
readonly name: "";
|
|
1817
|
+
readonly type: "string";
|
|
1818
|
+
}];
|
|
1819
|
+
readonly stateMutability: "view";
|
|
1820
|
+
readonly type: "function";
|
|
1821
|
+
}, {
|
|
1822
|
+
readonly inputs: readonly [];
|
|
1823
|
+
readonly name: "token";
|
|
1824
|
+
readonly outputs: readonly [{
|
|
1825
|
+
readonly internalType: "address";
|
|
1826
|
+
readonly name: "";
|
|
1827
|
+
readonly type: "address";
|
|
1828
|
+
}];
|
|
1829
|
+
readonly stateMutability: "view";
|
|
1830
|
+
readonly type: "function";
|
|
1831
|
+
}, {
|
|
1832
|
+
readonly inputs: readonly [];
|
|
1833
|
+
readonly name: "totalSupply";
|
|
1834
|
+
readonly outputs: readonly [{
|
|
1835
|
+
readonly internalType: "uint256";
|
|
1836
|
+
readonly name: "";
|
|
1837
|
+
readonly type: "uint256";
|
|
1838
|
+
}];
|
|
1839
|
+
readonly stateMutability: "view";
|
|
1840
|
+
readonly type: "function";
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly inputs: readonly [{
|
|
1843
|
+
readonly internalType: "address";
|
|
1844
|
+
readonly name: "to";
|
|
1845
|
+
readonly type: "address";
|
|
1846
|
+
}, {
|
|
1847
|
+
readonly internalType: "uint256";
|
|
1848
|
+
readonly name: "amount";
|
|
1849
|
+
readonly type: "uint256";
|
|
1850
|
+
}];
|
|
1851
|
+
readonly name: "transfer";
|
|
1852
|
+
readonly outputs: readonly [{
|
|
1853
|
+
readonly internalType: "bool";
|
|
1854
|
+
readonly name: "";
|
|
1855
|
+
readonly type: "bool";
|
|
1856
|
+
}];
|
|
1857
|
+
readonly stateMutability: "nonpayable";
|
|
1858
|
+
readonly type: "function";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly inputs: readonly [{
|
|
1861
|
+
readonly internalType: "address";
|
|
1862
|
+
readonly name: "from";
|
|
1863
|
+
readonly type: "address";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly internalType: "address";
|
|
1866
|
+
readonly name: "to";
|
|
1867
|
+
readonly type: "address";
|
|
1868
|
+
}, {
|
|
1869
|
+
readonly internalType: "uint256";
|
|
1870
|
+
readonly name: "amount";
|
|
1871
|
+
readonly type: "uint256";
|
|
1872
|
+
}];
|
|
1873
|
+
readonly name: "transferFrom";
|
|
1874
|
+
readonly outputs: readonly [{
|
|
1875
|
+
readonly internalType: "bool";
|
|
1876
|
+
readonly name: "";
|
|
1877
|
+
readonly type: "bool";
|
|
1878
|
+
}];
|
|
1879
|
+
readonly stateMutability: "nonpayable";
|
|
1880
|
+
readonly type: "function";
|
|
1881
|
+
}, {
|
|
1882
|
+
readonly inputs: readonly [{
|
|
1883
|
+
readonly internalType: "address";
|
|
1884
|
+
readonly name: "newOwner";
|
|
1885
|
+
readonly type: "address";
|
|
1886
|
+
}];
|
|
1887
|
+
readonly name: "transferOwnership";
|
|
1888
|
+
readonly outputs: readonly [];
|
|
1889
|
+
readonly stateMutability: "nonpayable";
|
|
1890
|
+
readonly type: "function";
|
|
1891
|
+
}, {
|
|
1892
|
+
readonly inputs: readonly [{
|
|
1893
|
+
readonly internalType: "uint16";
|
|
1894
|
+
readonly name: "";
|
|
1895
|
+
readonly type: "uint16";
|
|
1896
|
+
}];
|
|
1897
|
+
readonly name: "trustedRemoteLookup";
|
|
1898
|
+
readonly outputs: readonly [{
|
|
1899
|
+
readonly internalType: "bytes";
|
|
1900
|
+
readonly name: "";
|
|
1901
|
+
readonly type: "bytes";
|
|
1902
|
+
}];
|
|
1903
|
+
readonly stateMutability: "view";
|
|
1904
|
+
readonly type: "function";
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly inputs: readonly [];
|
|
1907
|
+
readonly name: "useCustomAdapterParams";
|
|
1908
|
+
readonly outputs: readonly [{
|
|
1909
|
+
readonly internalType: "bool";
|
|
1910
|
+
readonly name: "";
|
|
1911
|
+
readonly type: "bool";
|
|
1912
|
+
}];
|
|
1913
|
+
readonly stateMutability: "view";
|
|
1914
|
+
readonly type: "function";
|
|
1915
|
+
}];
|
|
1916
|
+
/**
|
|
1917
|
+
* Type-safe ABI for BenCoinV2
|
|
1918
|
+
*/
|
|
1919
|
+
export type BenCoinV2Abi = typeof BenCoinV2Abi;
|
|
1920
|
+
/**
|
|
1921
|
+
* Contract instance type for BenCoinV2
|
|
1922
|
+
*/
|
|
1923
|
+
export type BenCoinV2Contract = any;
|
|
1924
|
+
/**
|
|
1925
|
+
* BenCoinV2 Contract Class
|
|
1926
|
+
*
|
|
1927
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1928
|
+
*
|
|
1929
|
+
* @example
|
|
1930
|
+
* ```typescript
|
|
1931
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1932
|
+
* import { mainnet } from 'viem/chains';
|
|
1933
|
+
* import { BenCoinV2 } from 'BenCoinV2';
|
|
1934
|
+
*
|
|
1935
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1936
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1937
|
+
*
|
|
1938
|
+
* const contract = new BenCoinV2('0x...', { publicClient, walletClient });
|
|
1939
|
+
*
|
|
1940
|
+
* // Read functions
|
|
1941
|
+
* const result = await contract.balanceOf('0x...');
|
|
1942
|
+
*
|
|
1943
|
+
* // Write functions
|
|
1944
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1945
|
+
*
|
|
1946
|
+
* // Simulate transactions (dry-run)
|
|
1947
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1948
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1949
|
+
*
|
|
1950
|
+
* // Watch events
|
|
1951
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1952
|
+
* console.log('Transfer event:', event);
|
|
1953
|
+
* });
|
|
1954
|
+
* ```
|
|
1955
|
+
*/
|
|
1956
|
+
export declare class BenCoinV2 {
|
|
1957
|
+
private contract;
|
|
1958
|
+
private contractAddress;
|
|
1959
|
+
private publicClient;
|
|
1960
|
+
constructor(address: Address, clients: {
|
|
1961
|
+
publicClient: PublicClient;
|
|
1962
|
+
walletClient?: WalletClient;
|
|
1963
|
+
});
|
|
1964
|
+
/**
|
|
1965
|
+
* Get the contract address
|
|
1966
|
+
*/
|
|
1967
|
+
get address(): Address;
|
|
1968
|
+
/**
|
|
1969
|
+
* Get the underlying viem contract instance.
|
|
1970
|
+
*/
|
|
1971
|
+
getContract(): BenCoinV2Contract;
|
|
1972
|
+
/**
|
|
1973
|
+
* CLOCK_MODE
|
|
1974
|
+
* view
|
|
1975
|
+
*/
|
|
1976
|
+
CLOCK_MODE(): Promise<string>;
|
|
1977
|
+
/**
|
|
1978
|
+
* DEFAULT_PAYLOAD_SIZE_LIMIT
|
|
1979
|
+
* view
|
|
1980
|
+
*/
|
|
1981
|
+
DEFAULT_PAYLOAD_SIZE_LIMIT(): Promise<bigint>;
|
|
1982
|
+
/**
|
|
1983
|
+
* DOMAIN_SEPARATOR
|
|
1984
|
+
* view
|
|
1985
|
+
*/
|
|
1986
|
+
DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
|
|
1987
|
+
/**
|
|
1988
|
+
* NO_EXTRA_GAS
|
|
1989
|
+
* view
|
|
1990
|
+
*/
|
|
1991
|
+
NO_EXTRA_GAS(): Promise<bigint>;
|
|
1992
|
+
/**
|
|
1993
|
+
* PT_SEND
|
|
1994
|
+
* view
|
|
1995
|
+
*/
|
|
1996
|
+
PT_SEND(): Promise<bigint>;
|
|
1997
|
+
/**
|
|
1998
|
+
* PT_SEND_AND_CALL
|
|
1999
|
+
* view
|
|
2000
|
+
*/
|
|
2001
|
+
PT_SEND_AND_CALL(): Promise<bigint>;
|
|
2002
|
+
/**
|
|
2003
|
+
* allowance
|
|
2004
|
+
* view
|
|
2005
|
+
*/
|
|
2006
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
2007
|
+
/**
|
|
2008
|
+
* balanceOf
|
|
2009
|
+
* view
|
|
2010
|
+
*/
|
|
2011
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
2012
|
+
/**
|
|
2013
|
+
* checkpoints
|
|
2014
|
+
* view
|
|
2015
|
+
*/
|
|
2016
|
+
checkpoints(account: `0x${string}`, pos: bigint): Promise<ERC20Votes_Checkpoint>;
|
|
2017
|
+
/**
|
|
2018
|
+
* circulatingSupply
|
|
2019
|
+
* view
|
|
2020
|
+
*/
|
|
2021
|
+
circulatingSupply(): Promise<bigint>;
|
|
2022
|
+
/**
|
|
2023
|
+
* clock
|
|
2024
|
+
* view
|
|
2025
|
+
*/
|
|
2026
|
+
clock(): Promise<bigint>;
|
|
2027
|
+
/**
|
|
2028
|
+
* creditedPackets
|
|
2029
|
+
* view
|
|
2030
|
+
*/
|
|
2031
|
+
creditedPackets(arg0: bigint, arg1: `0x${string}`, arg2: bigint): Promise<boolean>;
|
|
2032
|
+
/**
|
|
2033
|
+
* decimals
|
|
2034
|
+
* view
|
|
2035
|
+
*/
|
|
2036
|
+
decimals(): Promise<bigint>;
|
|
2037
|
+
/**
|
|
2038
|
+
* delegates
|
|
2039
|
+
* view
|
|
2040
|
+
*/
|
|
2041
|
+
delegates(account: `0x${string}`): Promise<`0x${string}`>;
|
|
2042
|
+
/**
|
|
2043
|
+
* eip712Domain
|
|
2044
|
+
* view
|
|
2045
|
+
*/
|
|
2046
|
+
eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
|
|
2047
|
+
/**
|
|
2048
|
+
* estimateSendAndCallFee
|
|
2049
|
+
* view
|
|
2050
|
+
*/
|
|
2051
|
+
estimateSendAndCallFee(_dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _dstGasForCall: bigint, _useZro: boolean, _adapterParams: `0x${string}`): Promise<[bigint, bigint]>;
|
|
2052
|
+
/**
|
|
2053
|
+
* estimateSendFee
|
|
2054
|
+
* view
|
|
2055
|
+
*/
|
|
2056
|
+
estimateSendFee(_dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _useZro: boolean, _adapterParams: `0x${string}`): Promise<[bigint, bigint]>;
|
|
2057
|
+
/**
|
|
2058
|
+
* failedMessages
|
|
2059
|
+
* view
|
|
2060
|
+
*/
|
|
2061
|
+
failedMessages(arg0: bigint, arg1: `0x${string}`, arg2: bigint): Promise<`0x${string}`>;
|
|
2062
|
+
/**
|
|
2063
|
+
* getConfig
|
|
2064
|
+
* view
|
|
2065
|
+
*/
|
|
2066
|
+
getConfig(_version: bigint, _chainId: bigint, arg2: `0x${string}`, _configType: bigint): Promise<`0x${string}`>;
|
|
2067
|
+
/**
|
|
2068
|
+
* getPastTotalSupply
|
|
2069
|
+
* view
|
|
2070
|
+
*/
|
|
2071
|
+
getPastTotalSupply(timepoint: bigint): Promise<bigint>;
|
|
2072
|
+
/**
|
|
2073
|
+
* getPastVotes
|
|
2074
|
+
* view
|
|
2075
|
+
*/
|
|
2076
|
+
getPastVotes(account: `0x${string}`, timepoint: bigint): Promise<bigint>;
|
|
2077
|
+
/**
|
|
2078
|
+
* getTrustedRemoteAddress
|
|
2079
|
+
* view
|
|
2080
|
+
*/
|
|
2081
|
+
getTrustedRemoteAddress(_remoteChainId: bigint): Promise<`0x${string}`>;
|
|
2082
|
+
/**
|
|
2083
|
+
* getVotes
|
|
2084
|
+
* view
|
|
2085
|
+
*/
|
|
2086
|
+
getVotes(account: `0x${string}`): Promise<bigint>;
|
|
2087
|
+
/**
|
|
2088
|
+
* isTrustedRemote
|
|
2089
|
+
* view
|
|
2090
|
+
*/
|
|
2091
|
+
isTrustedRemote(_srcChainId: bigint, _srcAddress: `0x${string}`): Promise<boolean>;
|
|
2092
|
+
/**
|
|
2093
|
+
* lzEndpoint
|
|
2094
|
+
* view
|
|
2095
|
+
*/
|
|
2096
|
+
lzEndpoint(): Promise<`0x${string}`>;
|
|
2097
|
+
/**
|
|
2098
|
+
* minDstGasLookup
|
|
2099
|
+
* view
|
|
2100
|
+
*/
|
|
2101
|
+
minDstGasLookup(arg0: bigint, arg1: bigint): Promise<bigint>;
|
|
2102
|
+
/**
|
|
2103
|
+
* name
|
|
2104
|
+
* view
|
|
2105
|
+
*/
|
|
2106
|
+
name(): Promise<string>;
|
|
2107
|
+
/**
|
|
2108
|
+
* nonces
|
|
2109
|
+
* view
|
|
2110
|
+
*/
|
|
2111
|
+
nonces(owner: `0x${string}`): Promise<bigint>;
|
|
2112
|
+
/**
|
|
2113
|
+
* numCheckpoints
|
|
2114
|
+
* view
|
|
2115
|
+
*/
|
|
2116
|
+
numCheckpoints(account: `0x${string}`): Promise<bigint>;
|
|
2117
|
+
/**
|
|
2118
|
+
* owner
|
|
2119
|
+
* view
|
|
2120
|
+
*/
|
|
2121
|
+
owner(): Promise<`0x${string}`>;
|
|
2122
|
+
/**
|
|
2123
|
+
* payloadSizeLimitLookup
|
|
2124
|
+
* view
|
|
2125
|
+
*/
|
|
2126
|
+
payloadSizeLimitLookup(arg0: bigint): Promise<bigint>;
|
|
2127
|
+
/**
|
|
2128
|
+
* precrime
|
|
2129
|
+
* view
|
|
2130
|
+
*/
|
|
2131
|
+
precrime(): Promise<`0x${string}`>;
|
|
2132
|
+
/**
|
|
2133
|
+
* sharedDecimals
|
|
2134
|
+
* view
|
|
2135
|
+
*/
|
|
2136
|
+
sharedDecimals(): Promise<bigint>;
|
|
2137
|
+
/**
|
|
2138
|
+
* supportsInterface
|
|
2139
|
+
* view
|
|
2140
|
+
*/
|
|
2141
|
+
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
2142
|
+
/**
|
|
2143
|
+
* symbol
|
|
2144
|
+
* view
|
|
2145
|
+
*/
|
|
2146
|
+
symbol(): Promise<string>;
|
|
2147
|
+
/**
|
|
2148
|
+
* token
|
|
2149
|
+
* view
|
|
2150
|
+
*/
|
|
2151
|
+
token(): Promise<`0x${string}`>;
|
|
2152
|
+
/**
|
|
2153
|
+
* totalSupply
|
|
2154
|
+
* view
|
|
2155
|
+
*/
|
|
2156
|
+
totalSupply(): Promise<bigint>;
|
|
2157
|
+
/**
|
|
2158
|
+
* trustedRemoteLookup
|
|
2159
|
+
* view
|
|
2160
|
+
*/
|
|
2161
|
+
trustedRemoteLookup(arg0: bigint): Promise<`0x${string}`>;
|
|
2162
|
+
/**
|
|
2163
|
+
* useCustomAdapterParams
|
|
2164
|
+
* view
|
|
2165
|
+
*/
|
|
2166
|
+
useCustomAdapterParams(): Promise<boolean>;
|
|
2167
|
+
/**
|
|
2168
|
+
* approve
|
|
2169
|
+
* nonpayable
|
|
2170
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2171
|
+
*/
|
|
2172
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
2173
|
+
accessList?: import('viem').AccessList;
|
|
2174
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2175
|
+
chain?: import('viem').Chain | null;
|
|
2176
|
+
dataSuffix?: `0x${string}`;
|
|
2177
|
+
gas?: bigint;
|
|
2178
|
+
gasPrice?: bigint;
|
|
2179
|
+
maxFeePerGas?: bigint;
|
|
2180
|
+
maxPriorityFeePerGas?: bigint;
|
|
2181
|
+
nonce?: number;
|
|
2182
|
+
value?: bigint;
|
|
2183
|
+
}): Promise<`0x${string}`>;
|
|
2184
|
+
/**
|
|
2185
|
+
* burn
|
|
2186
|
+
* nonpayable
|
|
2187
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2188
|
+
*/
|
|
2189
|
+
burn(_amount: bigint, options?: {
|
|
2190
|
+
accessList?: import('viem').AccessList;
|
|
2191
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2192
|
+
chain?: import('viem').Chain | null;
|
|
2193
|
+
dataSuffix?: `0x${string}`;
|
|
2194
|
+
gas?: bigint;
|
|
2195
|
+
gasPrice?: bigint;
|
|
2196
|
+
maxFeePerGas?: bigint;
|
|
2197
|
+
maxPriorityFeePerGas?: bigint;
|
|
2198
|
+
nonce?: number;
|
|
2199
|
+
value?: bigint;
|
|
2200
|
+
}): Promise<`0x${string}`>;
|
|
2201
|
+
/**
|
|
2202
|
+
* burnFrom
|
|
2203
|
+
* nonpayable
|
|
2204
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2205
|
+
*/
|
|
2206
|
+
burnFrom(_account: `0x${string}`, _amount: bigint, options?: {
|
|
2207
|
+
accessList?: import('viem').AccessList;
|
|
2208
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2209
|
+
chain?: import('viem').Chain | null;
|
|
2210
|
+
dataSuffix?: `0x${string}`;
|
|
2211
|
+
gas?: bigint;
|
|
2212
|
+
gasPrice?: bigint;
|
|
2213
|
+
maxFeePerGas?: bigint;
|
|
2214
|
+
maxPriorityFeePerGas?: bigint;
|
|
2215
|
+
nonce?: number;
|
|
2216
|
+
value?: bigint;
|
|
2217
|
+
}): Promise<`0x${string}`>;
|
|
2218
|
+
/**
|
|
2219
|
+
* callOnOFTReceived
|
|
2220
|
+
* nonpayable
|
|
2221
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2222
|
+
*/
|
|
2223
|
+
callOnOFTReceived(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _from: `0x${string}`, _to: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _gasForCall: bigint, options?: {
|
|
2224
|
+
accessList?: import('viem').AccessList;
|
|
2225
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2226
|
+
chain?: import('viem').Chain | null;
|
|
2227
|
+
dataSuffix?: `0x${string}`;
|
|
2228
|
+
gas?: bigint;
|
|
2229
|
+
gasPrice?: bigint;
|
|
2230
|
+
maxFeePerGas?: bigint;
|
|
2231
|
+
maxPriorityFeePerGas?: bigint;
|
|
2232
|
+
nonce?: number;
|
|
2233
|
+
value?: bigint;
|
|
2234
|
+
}): Promise<`0x${string}`>;
|
|
2235
|
+
/**
|
|
2236
|
+
* decreaseAllowance
|
|
2237
|
+
* nonpayable
|
|
2238
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2239
|
+
*/
|
|
2240
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
2241
|
+
accessList?: import('viem').AccessList;
|
|
2242
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2243
|
+
chain?: import('viem').Chain | null;
|
|
2244
|
+
dataSuffix?: `0x${string}`;
|
|
2245
|
+
gas?: bigint;
|
|
2246
|
+
gasPrice?: bigint;
|
|
2247
|
+
maxFeePerGas?: bigint;
|
|
2248
|
+
maxPriorityFeePerGas?: bigint;
|
|
2249
|
+
nonce?: number;
|
|
2250
|
+
value?: bigint;
|
|
2251
|
+
}): Promise<`0x${string}`>;
|
|
2252
|
+
/**
|
|
2253
|
+
* delegate
|
|
2254
|
+
* nonpayable
|
|
2255
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2256
|
+
*/
|
|
2257
|
+
delegate(delegatee: `0x${string}`, options?: {
|
|
2258
|
+
accessList?: import('viem').AccessList;
|
|
2259
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2260
|
+
chain?: import('viem').Chain | null;
|
|
2261
|
+
dataSuffix?: `0x${string}`;
|
|
2262
|
+
gas?: bigint;
|
|
2263
|
+
gasPrice?: bigint;
|
|
2264
|
+
maxFeePerGas?: bigint;
|
|
2265
|
+
maxPriorityFeePerGas?: bigint;
|
|
2266
|
+
nonce?: number;
|
|
2267
|
+
value?: bigint;
|
|
2268
|
+
}): Promise<`0x${string}`>;
|
|
2269
|
+
/**
|
|
2270
|
+
* delegateBySig
|
|
2271
|
+
* nonpayable
|
|
2272
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2273
|
+
*/
|
|
2274
|
+
delegateBySig(delegatee: `0x${string}`, nonce: bigint, expiry: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
2275
|
+
accessList?: import('viem').AccessList;
|
|
2276
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2277
|
+
chain?: import('viem').Chain | null;
|
|
2278
|
+
dataSuffix?: `0x${string}`;
|
|
2279
|
+
gas?: bigint;
|
|
2280
|
+
gasPrice?: bigint;
|
|
2281
|
+
maxFeePerGas?: bigint;
|
|
2282
|
+
maxPriorityFeePerGas?: bigint;
|
|
2283
|
+
nonce?: number;
|
|
2284
|
+
value?: bigint;
|
|
2285
|
+
}): Promise<`0x${string}`>;
|
|
2286
|
+
/**
|
|
2287
|
+
* forceResumeReceive
|
|
2288
|
+
* nonpayable
|
|
2289
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2290
|
+
*/
|
|
2291
|
+
forceResumeReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, options?: {
|
|
2292
|
+
accessList?: import('viem').AccessList;
|
|
2293
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2294
|
+
chain?: import('viem').Chain | null;
|
|
2295
|
+
dataSuffix?: `0x${string}`;
|
|
2296
|
+
gas?: bigint;
|
|
2297
|
+
gasPrice?: bigint;
|
|
2298
|
+
maxFeePerGas?: bigint;
|
|
2299
|
+
maxPriorityFeePerGas?: bigint;
|
|
2300
|
+
nonce?: number;
|
|
2301
|
+
value?: bigint;
|
|
2302
|
+
}): Promise<`0x${string}`>;
|
|
2303
|
+
/**
|
|
2304
|
+
* increaseAllowance
|
|
2305
|
+
* nonpayable
|
|
2306
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2307
|
+
*/
|
|
2308
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
2309
|
+
accessList?: import('viem').AccessList;
|
|
2310
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2311
|
+
chain?: import('viem').Chain | null;
|
|
2312
|
+
dataSuffix?: `0x${string}`;
|
|
2313
|
+
gas?: bigint;
|
|
2314
|
+
gasPrice?: bigint;
|
|
2315
|
+
maxFeePerGas?: bigint;
|
|
2316
|
+
maxPriorityFeePerGas?: bigint;
|
|
2317
|
+
nonce?: number;
|
|
2318
|
+
value?: bigint;
|
|
2319
|
+
}): Promise<`0x${string}`>;
|
|
2320
|
+
/**
|
|
2321
|
+
* initialize
|
|
2322
|
+
* nonpayable
|
|
2323
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2324
|
+
*/
|
|
2325
|
+
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?: {
|
|
2326
|
+
accessList?: import('viem').AccessList;
|
|
2327
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2328
|
+
chain?: import('viem').Chain | null;
|
|
2329
|
+
dataSuffix?: `0x${string}`;
|
|
2330
|
+
gas?: bigint;
|
|
2331
|
+
gasPrice?: bigint;
|
|
2332
|
+
maxFeePerGas?: bigint;
|
|
2333
|
+
maxPriorityFeePerGas?: bigint;
|
|
2334
|
+
nonce?: number;
|
|
2335
|
+
value?: bigint;
|
|
2336
|
+
}): Promise<`0x${string}`>;
|
|
2337
|
+
/**
|
|
2338
|
+
* lzReceive
|
|
2339
|
+
* nonpayable
|
|
2340
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2341
|
+
*/
|
|
2342
|
+
lzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
2343
|
+
accessList?: import('viem').AccessList;
|
|
2344
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2345
|
+
chain?: import('viem').Chain | null;
|
|
2346
|
+
dataSuffix?: `0x${string}`;
|
|
2347
|
+
gas?: bigint;
|
|
2348
|
+
gasPrice?: bigint;
|
|
2349
|
+
maxFeePerGas?: bigint;
|
|
2350
|
+
maxPriorityFeePerGas?: bigint;
|
|
2351
|
+
nonce?: number;
|
|
2352
|
+
value?: bigint;
|
|
2353
|
+
}): Promise<`0x${string}`>;
|
|
2354
|
+
/**
|
|
2355
|
+
* nonblockingLzReceive
|
|
2356
|
+
* nonpayable
|
|
2357
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2358
|
+
*/
|
|
2359
|
+
nonblockingLzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
2360
|
+
accessList?: import('viem').AccessList;
|
|
2361
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2362
|
+
chain?: import('viem').Chain | null;
|
|
2363
|
+
dataSuffix?: `0x${string}`;
|
|
2364
|
+
gas?: bigint;
|
|
2365
|
+
gasPrice?: bigint;
|
|
2366
|
+
maxFeePerGas?: bigint;
|
|
2367
|
+
maxPriorityFeePerGas?: bigint;
|
|
2368
|
+
nonce?: number;
|
|
2369
|
+
value?: bigint;
|
|
2370
|
+
}): Promise<`0x${string}`>;
|
|
2371
|
+
/**
|
|
2372
|
+
* permit
|
|
2373
|
+
* nonpayable
|
|
2374
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2375
|
+
*/
|
|
2376
|
+
permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
2377
|
+
accessList?: import('viem').AccessList;
|
|
2378
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2379
|
+
chain?: import('viem').Chain | null;
|
|
2380
|
+
dataSuffix?: `0x${string}`;
|
|
2381
|
+
gas?: bigint;
|
|
2382
|
+
gasPrice?: bigint;
|
|
2383
|
+
maxFeePerGas?: bigint;
|
|
2384
|
+
maxPriorityFeePerGas?: bigint;
|
|
2385
|
+
nonce?: number;
|
|
2386
|
+
value?: bigint;
|
|
2387
|
+
}): Promise<`0x${string}`>;
|
|
2388
|
+
/**
|
|
2389
|
+
* recoverToken
|
|
2390
|
+
* nonpayable
|
|
2391
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2392
|
+
*/
|
|
2393
|
+
recoverToken(_token: `0x${string}`, _amount: bigint, options?: {
|
|
2394
|
+
accessList?: import('viem').AccessList;
|
|
2395
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2396
|
+
chain?: import('viem').Chain | null;
|
|
2397
|
+
dataSuffix?: `0x${string}`;
|
|
2398
|
+
gas?: bigint;
|
|
2399
|
+
gasPrice?: bigint;
|
|
2400
|
+
maxFeePerGas?: bigint;
|
|
2401
|
+
maxPriorityFeePerGas?: bigint;
|
|
2402
|
+
nonce?: number;
|
|
2403
|
+
value?: bigint;
|
|
2404
|
+
}): Promise<`0x${string}`>;
|
|
2405
|
+
/**
|
|
2406
|
+
* renounceOwnership
|
|
2407
|
+
* nonpayable
|
|
2408
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2409
|
+
*/
|
|
2410
|
+
renounceOwnership(options?: {
|
|
2411
|
+
accessList?: import('viem').AccessList;
|
|
2412
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2413
|
+
chain?: import('viem').Chain | null;
|
|
2414
|
+
dataSuffix?: `0x${string}`;
|
|
2415
|
+
gas?: bigint;
|
|
2416
|
+
gasPrice?: bigint;
|
|
2417
|
+
maxFeePerGas?: bigint;
|
|
2418
|
+
maxPriorityFeePerGas?: bigint;
|
|
2419
|
+
nonce?: number;
|
|
2420
|
+
value?: bigint;
|
|
2421
|
+
}): Promise<`0x${string}`>;
|
|
2422
|
+
/**
|
|
2423
|
+
* retryMessage
|
|
2424
|
+
* payable
|
|
2425
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2426
|
+
*/
|
|
2427
|
+
retryMessage(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
2428
|
+
accessList?: import('viem').AccessList;
|
|
2429
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2430
|
+
chain?: import('viem').Chain | null;
|
|
2431
|
+
dataSuffix?: `0x${string}`;
|
|
2432
|
+
gas?: bigint;
|
|
2433
|
+
gasPrice?: bigint;
|
|
2434
|
+
maxFeePerGas?: bigint;
|
|
2435
|
+
maxPriorityFeePerGas?: bigint;
|
|
2436
|
+
nonce?: number;
|
|
2437
|
+
value?: bigint;
|
|
2438
|
+
}): Promise<`0x${string}`>;
|
|
2439
|
+
/**
|
|
2440
|
+
* sendAndCall
|
|
2441
|
+
* payable
|
|
2442
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2443
|
+
*/
|
|
2444
|
+
sendAndCall(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _dstGasForCall: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
2445
|
+
accessList?: import('viem').AccessList;
|
|
2446
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2447
|
+
chain?: import('viem').Chain | null;
|
|
2448
|
+
dataSuffix?: `0x${string}`;
|
|
2449
|
+
gas?: bigint;
|
|
2450
|
+
gasPrice?: bigint;
|
|
2451
|
+
maxFeePerGas?: bigint;
|
|
2452
|
+
maxPriorityFeePerGas?: bigint;
|
|
2453
|
+
nonce?: number;
|
|
2454
|
+
value?: bigint;
|
|
2455
|
+
}): Promise<`0x${string}`>;
|
|
2456
|
+
/**
|
|
2457
|
+
* sendFrom
|
|
2458
|
+
* payable
|
|
2459
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2460
|
+
*/
|
|
2461
|
+
sendFrom(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
2462
|
+
accessList?: import('viem').AccessList;
|
|
2463
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2464
|
+
chain?: import('viem').Chain | null;
|
|
2465
|
+
dataSuffix?: `0x${string}`;
|
|
2466
|
+
gas?: bigint;
|
|
2467
|
+
gasPrice?: bigint;
|
|
2468
|
+
maxFeePerGas?: bigint;
|
|
2469
|
+
maxPriorityFeePerGas?: bigint;
|
|
2470
|
+
nonce?: number;
|
|
2471
|
+
value?: bigint;
|
|
2472
|
+
}): Promise<`0x${string}`>;
|
|
2473
|
+
/**
|
|
2474
|
+
* setAntiMevStrategy
|
|
2475
|
+
* nonpayable
|
|
2476
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2477
|
+
*/
|
|
2478
|
+
setAntiMevStrategy(_antiMEVStrategy: `0x${string}`, options?: {
|
|
2479
|
+
accessList?: import('viem').AccessList;
|
|
2480
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2481
|
+
chain?: import('viem').Chain | null;
|
|
2482
|
+
dataSuffix?: `0x${string}`;
|
|
2483
|
+
gas?: bigint;
|
|
2484
|
+
gasPrice?: bigint;
|
|
2485
|
+
maxFeePerGas?: bigint;
|
|
2486
|
+
maxPriorityFeePerGas?: bigint;
|
|
2487
|
+
nonce?: number;
|
|
2488
|
+
value?: bigint;
|
|
2489
|
+
}): Promise<`0x${string}`>;
|
|
2490
|
+
/**
|
|
2491
|
+
* setBuyTaxReceiver
|
|
2492
|
+
* nonpayable
|
|
2493
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2494
|
+
*/
|
|
2495
|
+
setBuyTaxReceiver(_buyTaxReceiver: `0x${string}`, options?: {
|
|
2496
|
+
accessList?: import('viem').AccessList;
|
|
2497
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2498
|
+
chain?: import('viem').Chain | null;
|
|
2499
|
+
dataSuffix?: `0x${string}`;
|
|
2500
|
+
gas?: bigint;
|
|
2501
|
+
gasPrice?: bigint;
|
|
2502
|
+
maxFeePerGas?: bigint;
|
|
2503
|
+
maxPriorityFeePerGas?: bigint;
|
|
2504
|
+
nonce?: number;
|
|
2505
|
+
value?: bigint;
|
|
2506
|
+
}): Promise<`0x${string}`>;
|
|
2507
|
+
/**
|
|
2508
|
+
* setConfig
|
|
2509
|
+
* nonpayable
|
|
2510
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2511
|
+
*/
|
|
2512
|
+
setConfig(_version: bigint, _chainId: bigint, _configType: bigint, _config: `0x${string}`, options?: {
|
|
2513
|
+
accessList?: import('viem').AccessList;
|
|
2514
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2515
|
+
chain?: import('viem').Chain | null;
|
|
2516
|
+
dataSuffix?: `0x${string}`;
|
|
2517
|
+
gas?: bigint;
|
|
2518
|
+
gasPrice?: bigint;
|
|
2519
|
+
maxFeePerGas?: bigint;
|
|
2520
|
+
maxPriorityFeePerGas?: bigint;
|
|
2521
|
+
nonce?: number;
|
|
2522
|
+
value?: bigint;
|
|
2523
|
+
}): Promise<`0x${string}`>;
|
|
2524
|
+
/**
|
|
2525
|
+
* setIsAntiMEV
|
|
2526
|
+
* nonpayable
|
|
2527
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2528
|
+
*/
|
|
2529
|
+
setIsAntiMEV(_isAntiMEV: boolean, options?: {
|
|
2530
|
+
accessList?: import('viem').AccessList;
|
|
2531
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2532
|
+
chain?: import('viem').Chain | null;
|
|
2533
|
+
dataSuffix?: `0x${string}`;
|
|
2534
|
+
gas?: bigint;
|
|
2535
|
+
gasPrice?: bigint;
|
|
2536
|
+
maxFeePerGas?: bigint;
|
|
2537
|
+
maxPriorityFeePerGas?: bigint;
|
|
2538
|
+
nonce?: number;
|
|
2539
|
+
value?: bigint;
|
|
2540
|
+
}): Promise<`0x${string}`>;
|
|
2541
|
+
/**
|
|
2542
|
+
* setIsTransferBlacklisting
|
|
2543
|
+
* nonpayable
|
|
2544
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2545
|
+
*/
|
|
2546
|
+
setIsTransferBlacklisting(_isBlacklisting: boolean, options?: {
|
|
2547
|
+
accessList?: import('viem').AccessList;
|
|
2548
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2549
|
+
chain?: import('viem').Chain | null;
|
|
2550
|
+
dataSuffix?: `0x${string}`;
|
|
2551
|
+
gas?: bigint;
|
|
2552
|
+
gasPrice?: bigint;
|
|
2553
|
+
maxFeePerGas?: bigint;
|
|
2554
|
+
maxPriorityFeePerGas?: bigint;
|
|
2555
|
+
nonce?: number;
|
|
2556
|
+
value?: bigint;
|
|
2557
|
+
}): Promise<`0x${string}`>;
|
|
2558
|
+
/**
|
|
2559
|
+
* setMinDstGas
|
|
2560
|
+
* nonpayable
|
|
2561
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2562
|
+
*/
|
|
2563
|
+
setMinDstGas(_dstChainId: bigint, _packetType: bigint, _minGas: bigint, options?: {
|
|
2564
|
+
accessList?: import('viem').AccessList;
|
|
2565
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2566
|
+
chain?: import('viem').Chain | null;
|
|
2567
|
+
dataSuffix?: `0x${string}`;
|
|
2568
|
+
gas?: bigint;
|
|
2569
|
+
gasPrice?: bigint;
|
|
2570
|
+
maxFeePerGas?: bigint;
|
|
2571
|
+
maxPriorityFeePerGas?: bigint;
|
|
2572
|
+
nonce?: number;
|
|
2573
|
+
value?: bigint;
|
|
2574
|
+
}): Promise<`0x${string}`>;
|
|
2575
|
+
/**
|
|
2576
|
+
* setPayloadSizeLimit
|
|
2577
|
+
* nonpayable
|
|
2578
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2579
|
+
*/
|
|
2580
|
+
setPayloadSizeLimit(_dstChainId: bigint, _size: bigint, options?: {
|
|
2581
|
+
accessList?: import('viem').AccessList;
|
|
2582
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2583
|
+
chain?: import('viem').Chain | null;
|
|
2584
|
+
dataSuffix?: `0x${string}`;
|
|
2585
|
+
gas?: bigint;
|
|
2586
|
+
gasPrice?: bigint;
|
|
2587
|
+
maxFeePerGas?: bigint;
|
|
2588
|
+
maxPriorityFeePerGas?: bigint;
|
|
2589
|
+
nonce?: number;
|
|
2590
|
+
value?: bigint;
|
|
2591
|
+
}): Promise<`0x${string}`>;
|
|
2592
|
+
/**
|
|
2593
|
+
* setPrecrime
|
|
2594
|
+
* nonpayable
|
|
2595
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2596
|
+
*/
|
|
2597
|
+
setPrecrime(_precrime: `0x${string}`, options?: {
|
|
2598
|
+
accessList?: import('viem').AccessList;
|
|
2599
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2600
|
+
chain?: import('viem').Chain | null;
|
|
2601
|
+
dataSuffix?: `0x${string}`;
|
|
2602
|
+
gas?: bigint;
|
|
2603
|
+
gasPrice?: bigint;
|
|
2604
|
+
maxFeePerGas?: bigint;
|
|
2605
|
+
maxPriorityFeePerGas?: bigint;
|
|
2606
|
+
nonce?: number;
|
|
2607
|
+
value?: bigint;
|
|
2608
|
+
}): Promise<`0x${string}`>;
|
|
2609
|
+
/**
|
|
2610
|
+
* setReceiveVersion
|
|
2611
|
+
* nonpayable
|
|
2612
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2613
|
+
*/
|
|
2614
|
+
setReceiveVersion(_version: bigint, options?: {
|
|
2615
|
+
accessList?: import('viem').AccessList;
|
|
2616
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2617
|
+
chain?: import('viem').Chain | null;
|
|
2618
|
+
dataSuffix?: `0x${string}`;
|
|
2619
|
+
gas?: bigint;
|
|
2620
|
+
gasPrice?: bigint;
|
|
2621
|
+
maxFeePerGas?: bigint;
|
|
2622
|
+
maxPriorityFeePerGas?: bigint;
|
|
2623
|
+
nonce?: number;
|
|
2624
|
+
value?: bigint;
|
|
2625
|
+
}): Promise<`0x${string}`>;
|
|
2626
|
+
/**
|
|
2627
|
+
* setSendVersion
|
|
2628
|
+
* nonpayable
|
|
2629
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2630
|
+
*/
|
|
2631
|
+
setSendVersion(_version: bigint, options?: {
|
|
2632
|
+
accessList?: import('viem').AccessList;
|
|
2633
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2634
|
+
chain?: import('viem').Chain | null;
|
|
2635
|
+
dataSuffix?: `0x${string}`;
|
|
2636
|
+
gas?: bigint;
|
|
2637
|
+
gasPrice?: bigint;
|
|
2638
|
+
maxFeePerGas?: bigint;
|
|
2639
|
+
maxPriorityFeePerGas?: bigint;
|
|
2640
|
+
nonce?: number;
|
|
2641
|
+
value?: bigint;
|
|
2642
|
+
}): Promise<`0x${string}`>;
|
|
2643
|
+
/**
|
|
2644
|
+
* setTax
|
|
2645
|
+
* nonpayable
|
|
2646
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2647
|
+
*/
|
|
2648
|
+
setTax(_buyTax: bigint, _sellTax: bigint, _isTaxingEnabled: boolean, options?: {
|
|
2649
|
+
accessList?: import('viem').AccessList;
|
|
2650
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2651
|
+
chain?: import('viem').Chain | null;
|
|
2652
|
+
dataSuffix?: `0x${string}`;
|
|
2653
|
+
gas?: bigint;
|
|
2654
|
+
gasPrice?: bigint;
|
|
2655
|
+
maxFeePerGas?: bigint;
|
|
2656
|
+
maxPriorityFeePerGas?: bigint;
|
|
2657
|
+
nonce?: number;
|
|
2658
|
+
value?: bigint;
|
|
2659
|
+
}): Promise<`0x${string}`>;
|
|
2660
|
+
/**
|
|
2661
|
+
* setTaxWhitelist
|
|
2662
|
+
* nonpayable
|
|
2663
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2664
|
+
*/
|
|
2665
|
+
setTaxWhitelist(_whitelist: `0x${string}`, _isWhitelisted: boolean, options?: {
|
|
2666
|
+
accessList?: import('viem').AccessList;
|
|
2667
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2668
|
+
chain?: import('viem').Chain | null;
|
|
2669
|
+
dataSuffix?: `0x${string}`;
|
|
2670
|
+
gas?: bigint;
|
|
2671
|
+
gasPrice?: bigint;
|
|
2672
|
+
maxFeePerGas?: bigint;
|
|
2673
|
+
maxPriorityFeePerGas?: bigint;
|
|
2674
|
+
nonce?: number;
|
|
2675
|
+
value?: bigint;
|
|
2676
|
+
}): Promise<`0x${string}`>;
|
|
2677
|
+
/**
|
|
2678
|
+
* setTaxableContract
|
|
2679
|
+
* nonpayable
|
|
2680
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2681
|
+
*/
|
|
2682
|
+
setTaxableContract(_taxableContract: `0x${string}`, _isTaxable: boolean, options?: {
|
|
2683
|
+
accessList?: import('viem').AccessList;
|
|
2684
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2685
|
+
chain?: import('viem').Chain | null;
|
|
2686
|
+
dataSuffix?: `0x${string}`;
|
|
2687
|
+
gas?: bigint;
|
|
2688
|
+
gasPrice?: bigint;
|
|
2689
|
+
maxFeePerGas?: bigint;
|
|
2690
|
+
maxPriorityFeePerGas?: bigint;
|
|
2691
|
+
nonce?: number;
|
|
2692
|
+
value?: bigint;
|
|
2693
|
+
}): Promise<`0x${string}`>;
|
|
2694
|
+
/**
|
|
2695
|
+
* setTransferBlacklist
|
|
2696
|
+
* nonpayable
|
|
2697
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2698
|
+
*/
|
|
2699
|
+
setTransferBlacklist(_blacklist: `0x${string}`, _isBlacklisted: boolean, options?: {
|
|
2700
|
+
accessList?: import('viem').AccessList;
|
|
2701
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2702
|
+
chain?: import('viem').Chain | null;
|
|
2703
|
+
dataSuffix?: `0x${string}`;
|
|
2704
|
+
gas?: bigint;
|
|
2705
|
+
gasPrice?: bigint;
|
|
2706
|
+
maxFeePerGas?: bigint;
|
|
2707
|
+
maxPriorityFeePerGas?: bigint;
|
|
2708
|
+
nonce?: number;
|
|
2709
|
+
value?: bigint;
|
|
2710
|
+
}): Promise<`0x${string}`>;
|
|
2711
|
+
/**
|
|
2712
|
+
* setTrustedRemote
|
|
2713
|
+
* nonpayable
|
|
2714
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2715
|
+
*/
|
|
2716
|
+
setTrustedRemote(_remoteChainId: bigint, _path: `0x${string}`, options?: {
|
|
2717
|
+
accessList?: import('viem').AccessList;
|
|
2718
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2719
|
+
chain?: import('viem').Chain | null;
|
|
2720
|
+
dataSuffix?: `0x${string}`;
|
|
2721
|
+
gas?: bigint;
|
|
2722
|
+
gasPrice?: bigint;
|
|
2723
|
+
maxFeePerGas?: bigint;
|
|
2724
|
+
maxPriorityFeePerGas?: bigint;
|
|
2725
|
+
nonce?: number;
|
|
2726
|
+
value?: bigint;
|
|
2727
|
+
}): Promise<`0x${string}`>;
|
|
2728
|
+
/**
|
|
2729
|
+
* setTrustedRemoteAddress
|
|
2730
|
+
* nonpayable
|
|
2731
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2732
|
+
*/
|
|
2733
|
+
setTrustedRemoteAddress(_remoteChainId: bigint, _remoteAddress: `0x${string}`, options?: {
|
|
2734
|
+
accessList?: import('viem').AccessList;
|
|
2735
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2736
|
+
chain?: import('viem').Chain | null;
|
|
2737
|
+
dataSuffix?: `0x${string}`;
|
|
2738
|
+
gas?: bigint;
|
|
2739
|
+
gasPrice?: bigint;
|
|
2740
|
+
maxFeePerGas?: bigint;
|
|
2741
|
+
maxPriorityFeePerGas?: bigint;
|
|
2742
|
+
nonce?: number;
|
|
2743
|
+
value?: bigint;
|
|
2744
|
+
}): Promise<`0x${string}`>;
|
|
2745
|
+
/**
|
|
2746
|
+
* setUseCustomAdapterParams
|
|
2747
|
+
* nonpayable
|
|
2748
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2749
|
+
*/
|
|
2750
|
+
setUseCustomAdapterParams(_useCustomAdapterParams: boolean, options?: {
|
|
2751
|
+
accessList?: import('viem').AccessList;
|
|
2752
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2753
|
+
chain?: import('viem').Chain | null;
|
|
2754
|
+
dataSuffix?: `0x${string}`;
|
|
2755
|
+
gas?: bigint;
|
|
2756
|
+
gasPrice?: bigint;
|
|
2757
|
+
maxFeePerGas?: bigint;
|
|
2758
|
+
maxPriorityFeePerGas?: bigint;
|
|
2759
|
+
nonce?: number;
|
|
2760
|
+
value?: bigint;
|
|
2761
|
+
}): Promise<`0x${string}`>;
|
|
2762
|
+
/**
|
|
2763
|
+
* transfer
|
|
2764
|
+
* nonpayable
|
|
2765
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2766
|
+
*/
|
|
2767
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
2768
|
+
accessList?: import('viem').AccessList;
|
|
2769
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2770
|
+
chain?: import('viem').Chain | null;
|
|
2771
|
+
dataSuffix?: `0x${string}`;
|
|
2772
|
+
gas?: bigint;
|
|
2773
|
+
gasPrice?: bigint;
|
|
2774
|
+
maxFeePerGas?: bigint;
|
|
2775
|
+
maxPriorityFeePerGas?: bigint;
|
|
2776
|
+
nonce?: number;
|
|
2777
|
+
value?: bigint;
|
|
2778
|
+
}): Promise<`0x${string}`>;
|
|
2779
|
+
/**
|
|
2780
|
+
* transferFrom
|
|
2781
|
+
* nonpayable
|
|
2782
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2783
|
+
*/
|
|
2784
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
2785
|
+
accessList?: import('viem').AccessList;
|
|
2786
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2787
|
+
chain?: import('viem').Chain | null;
|
|
2788
|
+
dataSuffix?: `0x${string}`;
|
|
2789
|
+
gas?: bigint;
|
|
2790
|
+
gasPrice?: bigint;
|
|
2791
|
+
maxFeePerGas?: bigint;
|
|
2792
|
+
maxPriorityFeePerGas?: bigint;
|
|
2793
|
+
nonce?: number;
|
|
2794
|
+
value?: bigint;
|
|
2795
|
+
}): Promise<`0x${string}`>;
|
|
2796
|
+
/**
|
|
2797
|
+
* transferOwnership
|
|
2798
|
+
* nonpayable
|
|
2799
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2800
|
+
*/
|
|
2801
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
2802
|
+
accessList?: import('viem').AccessList;
|
|
2803
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2804
|
+
chain?: import('viem').Chain | null;
|
|
2805
|
+
dataSuffix?: `0x${string}`;
|
|
2806
|
+
gas?: bigint;
|
|
2807
|
+
gasPrice?: bigint;
|
|
2808
|
+
maxFeePerGas?: bigint;
|
|
2809
|
+
maxPriorityFeePerGas?: bigint;
|
|
2810
|
+
nonce?: number;
|
|
2811
|
+
value?: bigint;
|
|
2812
|
+
}): Promise<`0x${string}`>;
|
|
2813
|
+
/**
|
|
2814
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2815
|
+
*
|
|
2816
|
+
* @example
|
|
2817
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2818
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2819
|
+
* console.log('Would succeed:', result.result);
|
|
2820
|
+
*/
|
|
2821
|
+
get simulate(): {
|
|
2822
|
+
/**
|
|
2823
|
+
* Simulate approve
|
|
2824
|
+
* Returns gas estimate and result without sending transaction
|
|
2825
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2826
|
+
*/
|
|
2827
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
2828
|
+
accessList?: import("viem").AccessList;
|
|
2829
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2830
|
+
chain?: import("viem").Chain | null;
|
|
2831
|
+
dataSuffix?: `0x${string}`;
|
|
2832
|
+
gas?: bigint;
|
|
2833
|
+
gasPrice?: bigint;
|
|
2834
|
+
maxFeePerGas?: bigint;
|
|
2835
|
+
maxPriorityFeePerGas?: bigint;
|
|
2836
|
+
nonce?: number;
|
|
2837
|
+
value?: bigint;
|
|
2838
|
+
}): Promise<boolean>;
|
|
2839
|
+
/**
|
|
2840
|
+
* Simulate burn
|
|
2841
|
+
* Returns gas estimate and result without sending transaction
|
|
2842
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2843
|
+
*/
|
|
2844
|
+
burn(_amount: bigint, options?: {
|
|
2845
|
+
accessList?: import("viem").AccessList;
|
|
2846
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2847
|
+
chain?: import("viem").Chain | null;
|
|
2848
|
+
dataSuffix?: `0x${string}`;
|
|
2849
|
+
gas?: bigint;
|
|
2850
|
+
gasPrice?: bigint;
|
|
2851
|
+
maxFeePerGas?: bigint;
|
|
2852
|
+
maxPriorityFeePerGas?: bigint;
|
|
2853
|
+
nonce?: number;
|
|
2854
|
+
value?: bigint;
|
|
2855
|
+
}): Promise<void>;
|
|
2856
|
+
/**
|
|
2857
|
+
* Simulate burnFrom
|
|
2858
|
+
* Returns gas estimate and result without sending transaction
|
|
2859
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2860
|
+
*/
|
|
2861
|
+
burnFrom(_account: `0x${string}`, _amount: bigint, options?: {
|
|
2862
|
+
accessList?: import("viem").AccessList;
|
|
2863
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2864
|
+
chain?: import("viem").Chain | null;
|
|
2865
|
+
dataSuffix?: `0x${string}`;
|
|
2866
|
+
gas?: bigint;
|
|
2867
|
+
gasPrice?: bigint;
|
|
2868
|
+
maxFeePerGas?: bigint;
|
|
2869
|
+
maxPriorityFeePerGas?: bigint;
|
|
2870
|
+
nonce?: number;
|
|
2871
|
+
value?: bigint;
|
|
2872
|
+
}): Promise<void>;
|
|
2873
|
+
/**
|
|
2874
|
+
* Simulate callOnOFTReceived
|
|
2875
|
+
* Returns gas estimate and result without sending transaction
|
|
2876
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2877
|
+
*/
|
|
2878
|
+
callOnOFTReceived(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _from: `0x${string}`, _to: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _gasForCall: bigint, options?: {
|
|
2879
|
+
accessList?: import("viem").AccessList;
|
|
2880
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2881
|
+
chain?: import("viem").Chain | null;
|
|
2882
|
+
dataSuffix?: `0x${string}`;
|
|
2883
|
+
gas?: bigint;
|
|
2884
|
+
gasPrice?: bigint;
|
|
2885
|
+
maxFeePerGas?: bigint;
|
|
2886
|
+
maxPriorityFeePerGas?: bigint;
|
|
2887
|
+
nonce?: number;
|
|
2888
|
+
value?: bigint;
|
|
2889
|
+
}): Promise<void>;
|
|
2890
|
+
/**
|
|
2891
|
+
* Simulate decreaseAllowance
|
|
2892
|
+
* Returns gas estimate and result without sending transaction
|
|
2893
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2894
|
+
*/
|
|
2895
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
2896
|
+
accessList?: import("viem").AccessList;
|
|
2897
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2898
|
+
chain?: import("viem").Chain | null;
|
|
2899
|
+
dataSuffix?: `0x${string}`;
|
|
2900
|
+
gas?: bigint;
|
|
2901
|
+
gasPrice?: bigint;
|
|
2902
|
+
maxFeePerGas?: bigint;
|
|
2903
|
+
maxPriorityFeePerGas?: bigint;
|
|
2904
|
+
nonce?: number;
|
|
2905
|
+
value?: bigint;
|
|
2906
|
+
}): Promise<boolean>;
|
|
2907
|
+
/**
|
|
2908
|
+
* Simulate delegate
|
|
2909
|
+
* Returns gas estimate and result without sending transaction
|
|
2910
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2911
|
+
*/
|
|
2912
|
+
delegate(delegatee: `0x${string}`, options?: {
|
|
2913
|
+
accessList?: import("viem").AccessList;
|
|
2914
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2915
|
+
chain?: import("viem").Chain | null;
|
|
2916
|
+
dataSuffix?: `0x${string}`;
|
|
2917
|
+
gas?: bigint;
|
|
2918
|
+
gasPrice?: bigint;
|
|
2919
|
+
maxFeePerGas?: bigint;
|
|
2920
|
+
maxPriorityFeePerGas?: bigint;
|
|
2921
|
+
nonce?: number;
|
|
2922
|
+
value?: bigint;
|
|
2923
|
+
}): Promise<void>;
|
|
2924
|
+
/**
|
|
2925
|
+
* Simulate delegateBySig
|
|
2926
|
+
* Returns gas estimate and result without sending transaction
|
|
2927
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2928
|
+
*/
|
|
2929
|
+
delegateBySig(delegatee: `0x${string}`, nonce: bigint, expiry: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
2930
|
+
accessList?: import("viem").AccessList;
|
|
2931
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2932
|
+
chain?: import("viem").Chain | null;
|
|
2933
|
+
dataSuffix?: `0x${string}`;
|
|
2934
|
+
gas?: bigint;
|
|
2935
|
+
gasPrice?: bigint;
|
|
2936
|
+
maxFeePerGas?: bigint;
|
|
2937
|
+
maxPriorityFeePerGas?: bigint;
|
|
2938
|
+
nonce?: number;
|
|
2939
|
+
value?: bigint;
|
|
2940
|
+
}): Promise<void>;
|
|
2941
|
+
/**
|
|
2942
|
+
* Simulate forceResumeReceive
|
|
2943
|
+
* Returns gas estimate and result without sending transaction
|
|
2944
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2945
|
+
*/
|
|
2946
|
+
forceResumeReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, options?: {
|
|
2947
|
+
accessList?: import("viem").AccessList;
|
|
2948
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2949
|
+
chain?: import("viem").Chain | null;
|
|
2950
|
+
dataSuffix?: `0x${string}`;
|
|
2951
|
+
gas?: bigint;
|
|
2952
|
+
gasPrice?: bigint;
|
|
2953
|
+
maxFeePerGas?: bigint;
|
|
2954
|
+
maxPriorityFeePerGas?: bigint;
|
|
2955
|
+
nonce?: number;
|
|
2956
|
+
value?: bigint;
|
|
2957
|
+
}): Promise<void>;
|
|
2958
|
+
/**
|
|
2959
|
+
* Simulate increaseAllowance
|
|
2960
|
+
* Returns gas estimate and result without sending transaction
|
|
2961
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2962
|
+
*/
|
|
2963
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
2964
|
+
accessList?: import("viem").AccessList;
|
|
2965
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2966
|
+
chain?: import("viem").Chain | null;
|
|
2967
|
+
dataSuffix?: `0x${string}`;
|
|
2968
|
+
gas?: bigint;
|
|
2969
|
+
gasPrice?: bigint;
|
|
2970
|
+
maxFeePerGas?: bigint;
|
|
2971
|
+
maxPriorityFeePerGas?: bigint;
|
|
2972
|
+
nonce?: number;
|
|
2973
|
+
value?: bigint;
|
|
2974
|
+
}): Promise<boolean>;
|
|
2975
|
+
/**
|
|
2976
|
+
* Simulate initialize
|
|
2977
|
+
* Returns gas estimate and result without sending transaction
|
|
2978
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2979
|
+
*/
|
|
2980
|
+
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?: {
|
|
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<void>;
|
|
2992
|
+
/**
|
|
2993
|
+
* Simulate lzReceive
|
|
2994
|
+
* Returns gas estimate and result without sending transaction
|
|
2995
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2996
|
+
*/
|
|
2997
|
+
lzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
2998
|
+
accessList?: import("viem").AccessList;
|
|
2999
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3000
|
+
chain?: import("viem").Chain | null;
|
|
3001
|
+
dataSuffix?: `0x${string}`;
|
|
3002
|
+
gas?: bigint;
|
|
3003
|
+
gasPrice?: bigint;
|
|
3004
|
+
maxFeePerGas?: bigint;
|
|
3005
|
+
maxPriorityFeePerGas?: bigint;
|
|
3006
|
+
nonce?: number;
|
|
3007
|
+
value?: bigint;
|
|
3008
|
+
}): Promise<void>;
|
|
3009
|
+
/**
|
|
3010
|
+
* Simulate nonblockingLzReceive
|
|
3011
|
+
* Returns gas estimate and result without sending transaction
|
|
3012
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3013
|
+
*/
|
|
3014
|
+
nonblockingLzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
3015
|
+
accessList?: import("viem").AccessList;
|
|
3016
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3017
|
+
chain?: import("viem").Chain | null;
|
|
3018
|
+
dataSuffix?: `0x${string}`;
|
|
3019
|
+
gas?: bigint;
|
|
3020
|
+
gasPrice?: bigint;
|
|
3021
|
+
maxFeePerGas?: bigint;
|
|
3022
|
+
maxPriorityFeePerGas?: bigint;
|
|
3023
|
+
nonce?: number;
|
|
3024
|
+
value?: bigint;
|
|
3025
|
+
}): Promise<void>;
|
|
3026
|
+
/**
|
|
3027
|
+
* Simulate permit
|
|
3028
|
+
* Returns gas estimate and result without sending transaction
|
|
3029
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3030
|
+
*/
|
|
3031
|
+
permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
3032
|
+
accessList?: import("viem").AccessList;
|
|
3033
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3034
|
+
chain?: import("viem").Chain | null;
|
|
3035
|
+
dataSuffix?: `0x${string}`;
|
|
3036
|
+
gas?: bigint;
|
|
3037
|
+
gasPrice?: bigint;
|
|
3038
|
+
maxFeePerGas?: bigint;
|
|
3039
|
+
maxPriorityFeePerGas?: bigint;
|
|
3040
|
+
nonce?: number;
|
|
3041
|
+
value?: bigint;
|
|
3042
|
+
}): Promise<void>;
|
|
3043
|
+
/**
|
|
3044
|
+
* Simulate recoverToken
|
|
3045
|
+
* Returns gas estimate and result without sending transaction
|
|
3046
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3047
|
+
*/
|
|
3048
|
+
recoverToken(_token: `0x${string}`, _amount: bigint, options?: {
|
|
3049
|
+
accessList?: import("viem").AccessList;
|
|
3050
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3051
|
+
chain?: import("viem").Chain | null;
|
|
3052
|
+
dataSuffix?: `0x${string}`;
|
|
3053
|
+
gas?: bigint;
|
|
3054
|
+
gasPrice?: bigint;
|
|
3055
|
+
maxFeePerGas?: bigint;
|
|
3056
|
+
maxPriorityFeePerGas?: bigint;
|
|
3057
|
+
nonce?: number;
|
|
3058
|
+
value?: bigint;
|
|
3059
|
+
}): Promise<void>;
|
|
3060
|
+
/**
|
|
3061
|
+
* Simulate renounceOwnership
|
|
3062
|
+
* Returns gas estimate and result without sending transaction
|
|
3063
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3064
|
+
*/
|
|
3065
|
+
renounceOwnership(options?: {
|
|
3066
|
+
accessList?: import("viem").AccessList;
|
|
3067
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3068
|
+
chain?: import("viem").Chain | null;
|
|
3069
|
+
dataSuffix?: `0x${string}`;
|
|
3070
|
+
gas?: bigint;
|
|
3071
|
+
gasPrice?: bigint;
|
|
3072
|
+
maxFeePerGas?: bigint;
|
|
3073
|
+
maxPriorityFeePerGas?: bigint;
|
|
3074
|
+
nonce?: number;
|
|
3075
|
+
value?: bigint;
|
|
3076
|
+
}): Promise<void>;
|
|
3077
|
+
/**
|
|
3078
|
+
* Simulate retryMessage
|
|
3079
|
+
* Returns gas estimate and result without sending transaction
|
|
3080
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3081
|
+
*/
|
|
3082
|
+
retryMessage(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
|
|
3083
|
+
accessList?: import("viem").AccessList;
|
|
3084
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3085
|
+
chain?: import("viem").Chain | null;
|
|
3086
|
+
dataSuffix?: `0x${string}`;
|
|
3087
|
+
gas?: bigint;
|
|
3088
|
+
gasPrice?: bigint;
|
|
3089
|
+
maxFeePerGas?: bigint;
|
|
3090
|
+
maxPriorityFeePerGas?: bigint;
|
|
3091
|
+
nonce?: number;
|
|
3092
|
+
value?: bigint;
|
|
3093
|
+
}): Promise<void>;
|
|
3094
|
+
/**
|
|
3095
|
+
* Simulate sendAndCall
|
|
3096
|
+
* Returns gas estimate and result without sending transaction
|
|
3097
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3098
|
+
*/
|
|
3099
|
+
sendAndCall(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _payload: `0x${string}`, _dstGasForCall: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
3100
|
+
accessList?: import("viem").AccessList;
|
|
3101
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3102
|
+
chain?: import("viem").Chain | null;
|
|
3103
|
+
dataSuffix?: `0x${string}`;
|
|
3104
|
+
gas?: bigint;
|
|
3105
|
+
gasPrice?: bigint;
|
|
3106
|
+
maxFeePerGas?: bigint;
|
|
3107
|
+
maxPriorityFeePerGas?: bigint;
|
|
3108
|
+
nonce?: number;
|
|
3109
|
+
value?: bigint;
|
|
3110
|
+
}): Promise<void>;
|
|
3111
|
+
/**
|
|
3112
|
+
* Simulate sendFrom
|
|
3113
|
+
* Returns gas estimate and result without sending transaction
|
|
3114
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3115
|
+
*/
|
|
3116
|
+
sendFrom(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _callParams: ICommonOFT_LzCallParams, options?: {
|
|
3117
|
+
accessList?: import("viem").AccessList;
|
|
3118
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3119
|
+
chain?: import("viem").Chain | null;
|
|
3120
|
+
dataSuffix?: `0x${string}`;
|
|
3121
|
+
gas?: bigint;
|
|
3122
|
+
gasPrice?: bigint;
|
|
3123
|
+
maxFeePerGas?: bigint;
|
|
3124
|
+
maxPriorityFeePerGas?: bigint;
|
|
3125
|
+
nonce?: number;
|
|
3126
|
+
value?: bigint;
|
|
3127
|
+
}): Promise<void>;
|
|
3128
|
+
/**
|
|
3129
|
+
* Simulate setAntiMevStrategy
|
|
3130
|
+
* Returns gas estimate and result without sending transaction
|
|
3131
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3132
|
+
*/
|
|
3133
|
+
setAntiMevStrategy(_antiMEVStrategy: `0x${string}`, options?: {
|
|
3134
|
+
accessList?: import("viem").AccessList;
|
|
3135
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3136
|
+
chain?: import("viem").Chain | null;
|
|
3137
|
+
dataSuffix?: `0x${string}`;
|
|
3138
|
+
gas?: bigint;
|
|
3139
|
+
gasPrice?: bigint;
|
|
3140
|
+
maxFeePerGas?: bigint;
|
|
3141
|
+
maxPriorityFeePerGas?: bigint;
|
|
3142
|
+
nonce?: number;
|
|
3143
|
+
value?: bigint;
|
|
3144
|
+
}): Promise<void>;
|
|
3145
|
+
/**
|
|
3146
|
+
* Simulate setBuyTaxReceiver
|
|
3147
|
+
* Returns gas estimate and result without sending transaction
|
|
3148
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3149
|
+
*/
|
|
3150
|
+
setBuyTaxReceiver(_buyTaxReceiver: `0x${string}`, options?: {
|
|
3151
|
+
accessList?: import("viem").AccessList;
|
|
3152
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3153
|
+
chain?: import("viem").Chain | null;
|
|
3154
|
+
dataSuffix?: `0x${string}`;
|
|
3155
|
+
gas?: bigint;
|
|
3156
|
+
gasPrice?: bigint;
|
|
3157
|
+
maxFeePerGas?: bigint;
|
|
3158
|
+
maxPriorityFeePerGas?: bigint;
|
|
3159
|
+
nonce?: number;
|
|
3160
|
+
value?: bigint;
|
|
3161
|
+
}): Promise<void>;
|
|
3162
|
+
/**
|
|
3163
|
+
* Simulate setConfig
|
|
3164
|
+
* Returns gas estimate and result without sending transaction
|
|
3165
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3166
|
+
*/
|
|
3167
|
+
setConfig(_version: bigint, _chainId: bigint, _configType: bigint, _config: `0x${string}`, options?: {
|
|
3168
|
+
accessList?: import("viem").AccessList;
|
|
3169
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3170
|
+
chain?: import("viem").Chain | null;
|
|
3171
|
+
dataSuffix?: `0x${string}`;
|
|
3172
|
+
gas?: bigint;
|
|
3173
|
+
gasPrice?: bigint;
|
|
3174
|
+
maxFeePerGas?: bigint;
|
|
3175
|
+
maxPriorityFeePerGas?: bigint;
|
|
3176
|
+
nonce?: number;
|
|
3177
|
+
value?: bigint;
|
|
3178
|
+
}): Promise<void>;
|
|
3179
|
+
/**
|
|
3180
|
+
* Simulate setIsAntiMEV
|
|
3181
|
+
* Returns gas estimate and result without sending transaction
|
|
3182
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3183
|
+
*/
|
|
3184
|
+
setIsAntiMEV(_isAntiMEV: boolean, options?: {
|
|
3185
|
+
accessList?: import("viem").AccessList;
|
|
3186
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3187
|
+
chain?: import("viem").Chain | null;
|
|
3188
|
+
dataSuffix?: `0x${string}`;
|
|
3189
|
+
gas?: bigint;
|
|
3190
|
+
gasPrice?: bigint;
|
|
3191
|
+
maxFeePerGas?: bigint;
|
|
3192
|
+
maxPriorityFeePerGas?: bigint;
|
|
3193
|
+
nonce?: number;
|
|
3194
|
+
value?: bigint;
|
|
3195
|
+
}): Promise<void>;
|
|
3196
|
+
/**
|
|
3197
|
+
* Simulate setIsTransferBlacklisting
|
|
3198
|
+
* Returns gas estimate and result without sending transaction
|
|
3199
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3200
|
+
*/
|
|
3201
|
+
setIsTransferBlacklisting(_isBlacklisting: boolean, options?: {
|
|
3202
|
+
accessList?: import("viem").AccessList;
|
|
3203
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3204
|
+
chain?: import("viem").Chain | null;
|
|
3205
|
+
dataSuffix?: `0x${string}`;
|
|
3206
|
+
gas?: bigint;
|
|
3207
|
+
gasPrice?: bigint;
|
|
3208
|
+
maxFeePerGas?: bigint;
|
|
3209
|
+
maxPriorityFeePerGas?: bigint;
|
|
3210
|
+
nonce?: number;
|
|
3211
|
+
value?: bigint;
|
|
3212
|
+
}): Promise<void>;
|
|
3213
|
+
/**
|
|
3214
|
+
* Simulate setMinDstGas
|
|
3215
|
+
* Returns gas estimate and result without sending transaction
|
|
3216
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3217
|
+
*/
|
|
3218
|
+
setMinDstGas(_dstChainId: bigint, _packetType: bigint, _minGas: bigint, options?: {
|
|
3219
|
+
accessList?: import("viem").AccessList;
|
|
3220
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3221
|
+
chain?: import("viem").Chain | null;
|
|
3222
|
+
dataSuffix?: `0x${string}`;
|
|
3223
|
+
gas?: bigint;
|
|
3224
|
+
gasPrice?: bigint;
|
|
3225
|
+
maxFeePerGas?: bigint;
|
|
3226
|
+
maxPriorityFeePerGas?: bigint;
|
|
3227
|
+
nonce?: number;
|
|
3228
|
+
value?: bigint;
|
|
3229
|
+
}): Promise<void>;
|
|
3230
|
+
/**
|
|
3231
|
+
* Simulate setPayloadSizeLimit
|
|
3232
|
+
* Returns gas estimate and result without sending transaction
|
|
3233
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3234
|
+
*/
|
|
3235
|
+
setPayloadSizeLimit(_dstChainId: bigint, _size: bigint, options?: {
|
|
3236
|
+
accessList?: import("viem").AccessList;
|
|
3237
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3238
|
+
chain?: import("viem").Chain | null;
|
|
3239
|
+
dataSuffix?: `0x${string}`;
|
|
3240
|
+
gas?: bigint;
|
|
3241
|
+
gasPrice?: bigint;
|
|
3242
|
+
maxFeePerGas?: bigint;
|
|
3243
|
+
maxPriorityFeePerGas?: bigint;
|
|
3244
|
+
nonce?: number;
|
|
3245
|
+
value?: bigint;
|
|
3246
|
+
}): Promise<void>;
|
|
3247
|
+
/**
|
|
3248
|
+
* Simulate setPrecrime
|
|
3249
|
+
* Returns gas estimate and result without sending transaction
|
|
3250
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3251
|
+
*/
|
|
3252
|
+
setPrecrime(_precrime: `0x${string}`, options?: {
|
|
3253
|
+
accessList?: import("viem").AccessList;
|
|
3254
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3255
|
+
chain?: import("viem").Chain | null;
|
|
3256
|
+
dataSuffix?: `0x${string}`;
|
|
3257
|
+
gas?: bigint;
|
|
3258
|
+
gasPrice?: bigint;
|
|
3259
|
+
maxFeePerGas?: bigint;
|
|
3260
|
+
maxPriorityFeePerGas?: bigint;
|
|
3261
|
+
nonce?: number;
|
|
3262
|
+
value?: bigint;
|
|
3263
|
+
}): Promise<void>;
|
|
3264
|
+
/**
|
|
3265
|
+
* Simulate setReceiveVersion
|
|
3266
|
+
* Returns gas estimate and result without sending transaction
|
|
3267
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3268
|
+
*/
|
|
3269
|
+
setReceiveVersion(_version: bigint, options?: {
|
|
3270
|
+
accessList?: import("viem").AccessList;
|
|
3271
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3272
|
+
chain?: import("viem").Chain | null;
|
|
3273
|
+
dataSuffix?: `0x${string}`;
|
|
3274
|
+
gas?: bigint;
|
|
3275
|
+
gasPrice?: bigint;
|
|
3276
|
+
maxFeePerGas?: bigint;
|
|
3277
|
+
maxPriorityFeePerGas?: bigint;
|
|
3278
|
+
nonce?: number;
|
|
3279
|
+
value?: bigint;
|
|
3280
|
+
}): Promise<void>;
|
|
3281
|
+
/**
|
|
3282
|
+
* Simulate setSendVersion
|
|
3283
|
+
* Returns gas estimate and result without sending transaction
|
|
3284
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3285
|
+
*/
|
|
3286
|
+
setSendVersion(_version: bigint, options?: {
|
|
3287
|
+
accessList?: import("viem").AccessList;
|
|
3288
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3289
|
+
chain?: import("viem").Chain | null;
|
|
3290
|
+
dataSuffix?: `0x${string}`;
|
|
3291
|
+
gas?: bigint;
|
|
3292
|
+
gasPrice?: bigint;
|
|
3293
|
+
maxFeePerGas?: bigint;
|
|
3294
|
+
maxPriorityFeePerGas?: bigint;
|
|
3295
|
+
nonce?: number;
|
|
3296
|
+
value?: bigint;
|
|
3297
|
+
}): Promise<void>;
|
|
3298
|
+
/**
|
|
3299
|
+
* Simulate setTax
|
|
3300
|
+
* Returns gas estimate and result without sending transaction
|
|
3301
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3302
|
+
*/
|
|
3303
|
+
setTax(_buyTax: bigint, _sellTax: bigint, _isTaxingEnabled: boolean, options?: {
|
|
3304
|
+
accessList?: import("viem").AccessList;
|
|
3305
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3306
|
+
chain?: import("viem").Chain | null;
|
|
3307
|
+
dataSuffix?: `0x${string}`;
|
|
3308
|
+
gas?: bigint;
|
|
3309
|
+
gasPrice?: bigint;
|
|
3310
|
+
maxFeePerGas?: bigint;
|
|
3311
|
+
maxPriorityFeePerGas?: bigint;
|
|
3312
|
+
nonce?: number;
|
|
3313
|
+
value?: bigint;
|
|
3314
|
+
}): Promise<void>;
|
|
3315
|
+
/**
|
|
3316
|
+
* Simulate setTaxWhitelist
|
|
3317
|
+
* Returns gas estimate and result without sending transaction
|
|
3318
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3319
|
+
*/
|
|
3320
|
+
setTaxWhitelist(_whitelist: `0x${string}`, _isWhitelisted: boolean, options?: {
|
|
3321
|
+
accessList?: import("viem").AccessList;
|
|
3322
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3323
|
+
chain?: import("viem").Chain | null;
|
|
3324
|
+
dataSuffix?: `0x${string}`;
|
|
3325
|
+
gas?: bigint;
|
|
3326
|
+
gasPrice?: bigint;
|
|
3327
|
+
maxFeePerGas?: bigint;
|
|
3328
|
+
maxPriorityFeePerGas?: bigint;
|
|
3329
|
+
nonce?: number;
|
|
3330
|
+
value?: bigint;
|
|
3331
|
+
}): Promise<void>;
|
|
3332
|
+
/**
|
|
3333
|
+
* Simulate setTaxableContract
|
|
3334
|
+
* Returns gas estimate and result without sending transaction
|
|
3335
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3336
|
+
*/
|
|
3337
|
+
setTaxableContract(_taxableContract: `0x${string}`, _isTaxable: boolean, options?: {
|
|
3338
|
+
accessList?: import("viem").AccessList;
|
|
3339
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3340
|
+
chain?: import("viem").Chain | null;
|
|
3341
|
+
dataSuffix?: `0x${string}`;
|
|
3342
|
+
gas?: bigint;
|
|
3343
|
+
gasPrice?: bigint;
|
|
3344
|
+
maxFeePerGas?: bigint;
|
|
3345
|
+
maxPriorityFeePerGas?: bigint;
|
|
3346
|
+
nonce?: number;
|
|
3347
|
+
value?: bigint;
|
|
3348
|
+
}): Promise<void>;
|
|
3349
|
+
/**
|
|
3350
|
+
* Simulate setTransferBlacklist
|
|
3351
|
+
* Returns gas estimate and result without sending transaction
|
|
3352
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3353
|
+
*/
|
|
3354
|
+
setTransferBlacklist(_blacklist: `0x${string}`, _isBlacklisted: boolean, options?: {
|
|
3355
|
+
accessList?: import("viem").AccessList;
|
|
3356
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3357
|
+
chain?: import("viem").Chain | null;
|
|
3358
|
+
dataSuffix?: `0x${string}`;
|
|
3359
|
+
gas?: bigint;
|
|
3360
|
+
gasPrice?: bigint;
|
|
3361
|
+
maxFeePerGas?: bigint;
|
|
3362
|
+
maxPriorityFeePerGas?: bigint;
|
|
3363
|
+
nonce?: number;
|
|
3364
|
+
value?: bigint;
|
|
3365
|
+
}): Promise<void>;
|
|
3366
|
+
/**
|
|
3367
|
+
* Simulate setTrustedRemote
|
|
3368
|
+
* Returns gas estimate and result without sending transaction
|
|
3369
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3370
|
+
*/
|
|
3371
|
+
setTrustedRemote(_remoteChainId: bigint, _path: `0x${string}`, 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<void>;
|
|
3383
|
+
/**
|
|
3384
|
+
* Simulate setTrustedRemoteAddress
|
|
3385
|
+
* Returns gas estimate and result without sending transaction
|
|
3386
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3387
|
+
*/
|
|
3388
|
+
setTrustedRemoteAddress(_remoteChainId: bigint, _remoteAddress: `0x${string}`, options?: {
|
|
3389
|
+
accessList?: import("viem").AccessList;
|
|
3390
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3391
|
+
chain?: import("viem").Chain | null;
|
|
3392
|
+
dataSuffix?: `0x${string}`;
|
|
3393
|
+
gas?: bigint;
|
|
3394
|
+
gasPrice?: bigint;
|
|
3395
|
+
maxFeePerGas?: bigint;
|
|
3396
|
+
maxPriorityFeePerGas?: bigint;
|
|
3397
|
+
nonce?: number;
|
|
3398
|
+
value?: bigint;
|
|
3399
|
+
}): Promise<void>;
|
|
3400
|
+
/**
|
|
3401
|
+
* Simulate setUseCustomAdapterParams
|
|
3402
|
+
* Returns gas estimate and result without sending transaction
|
|
3403
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3404
|
+
*/
|
|
3405
|
+
setUseCustomAdapterParams(_useCustomAdapterParams: boolean, options?: {
|
|
3406
|
+
accessList?: import("viem").AccessList;
|
|
3407
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3408
|
+
chain?: import("viem").Chain | null;
|
|
3409
|
+
dataSuffix?: `0x${string}`;
|
|
3410
|
+
gas?: bigint;
|
|
3411
|
+
gasPrice?: bigint;
|
|
3412
|
+
maxFeePerGas?: bigint;
|
|
3413
|
+
maxPriorityFeePerGas?: bigint;
|
|
3414
|
+
nonce?: number;
|
|
3415
|
+
value?: bigint;
|
|
3416
|
+
}): Promise<void>;
|
|
3417
|
+
/**
|
|
3418
|
+
* Simulate transfer
|
|
3419
|
+
* Returns gas estimate and result without sending transaction
|
|
3420
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3421
|
+
*/
|
|
3422
|
+
transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
3423
|
+
accessList?: import("viem").AccessList;
|
|
3424
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3425
|
+
chain?: import("viem").Chain | null;
|
|
3426
|
+
dataSuffix?: `0x${string}`;
|
|
3427
|
+
gas?: bigint;
|
|
3428
|
+
gasPrice?: bigint;
|
|
3429
|
+
maxFeePerGas?: bigint;
|
|
3430
|
+
maxPriorityFeePerGas?: bigint;
|
|
3431
|
+
nonce?: number;
|
|
3432
|
+
value?: bigint;
|
|
3433
|
+
}): Promise<boolean>;
|
|
3434
|
+
/**
|
|
3435
|
+
* Simulate transferFrom
|
|
3436
|
+
* Returns gas estimate and result without sending transaction
|
|
3437
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3438
|
+
*/
|
|
3439
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
3440
|
+
accessList?: import("viem").AccessList;
|
|
3441
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3442
|
+
chain?: import("viem").Chain | null;
|
|
3443
|
+
dataSuffix?: `0x${string}`;
|
|
3444
|
+
gas?: bigint;
|
|
3445
|
+
gasPrice?: bigint;
|
|
3446
|
+
maxFeePerGas?: bigint;
|
|
3447
|
+
maxPriorityFeePerGas?: bigint;
|
|
3448
|
+
nonce?: number;
|
|
3449
|
+
value?: bigint;
|
|
3450
|
+
}): Promise<boolean>;
|
|
3451
|
+
/**
|
|
3452
|
+
* Simulate transferOwnership
|
|
3453
|
+
* Returns gas estimate and result without sending transaction
|
|
3454
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3455
|
+
*/
|
|
3456
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
3457
|
+
accessList?: import("viem").AccessList;
|
|
3458
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3459
|
+
chain?: import("viem").Chain | null;
|
|
3460
|
+
dataSuffix?: `0x${string}`;
|
|
3461
|
+
gas?: bigint;
|
|
3462
|
+
gasPrice?: bigint;
|
|
3463
|
+
maxFeePerGas?: bigint;
|
|
3464
|
+
maxPriorityFeePerGas?: bigint;
|
|
3465
|
+
nonce?: number;
|
|
3466
|
+
value?: bigint;
|
|
3467
|
+
}): Promise<void>;
|
|
3468
|
+
};
|
|
3469
|
+
/**
|
|
3470
|
+
* Watch contract events
|
|
3471
|
+
*
|
|
3472
|
+
* @example
|
|
3473
|
+
* // Watch all Transfer events
|
|
3474
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
3475
|
+
* console.log('Transfer:', event);
|
|
3476
|
+
* });
|
|
3477
|
+
*
|
|
3478
|
+
* // Stop watching
|
|
3479
|
+
* unwatch();
|
|
3480
|
+
*/
|
|
3481
|
+
get watch(): {
|
|
3482
|
+
/**
|
|
3483
|
+
* Watch Approval events
|
|
3484
|
+
* @param callback Function to call when event is emitted
|
|
3485
|
+
* @param filter Optional filter for indexed parameters
|
|
3486
|
+
* @returns Unwatch function to stop listening
|
|
3487
|
+
*/
|
|
3488
|
+
Approval: (callback: (event: {
|
|
3489
|
+
owner: `0x${string}`;
|
|
3490
|
+
spender: `0x${string}`;
|
|
3491
|
+
value: bigint;
|
|
3492
|
+
}) => void, filter?: {
|
|
3493
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
3494
|
+
spender?: `0x${string}` | `0x${string}`[] | null;
|
|
3495
|
+
}) => () => void;
|
|
3496
|
+
/**
|
|
3497
|
+
* Watch CallOFTReceivedSuccess events
|
|
3498
|
+
* @param callback Function to call when event is emitted
|
|
3499
|
+
* @param filter Optional filter for indexed parameters
|
|
3500
|
+
* @returns Unwatch function to stop listening
|
|
3501
|
+
*/
|
|
3502
|
+
CallOFTReceivedSuccess: (callback: (event: {
|
|
3503
|
+
_srcChainId: bigint;
|
|
3504
|
+
_srcAddress: `0x${string}`;
|
|
3505
|
+
_nonce: bigint;
|
|
3506
|
+
_hash: `0x${string}`;
|
|
3507
|
+
}) => void, filter?: {
|
|
3508
|
+
_srcChainId?: number | number[] | null;
|
|
3509
|
+
}) => () => void;
|
|
3510
|
+
/**
|
|
3511
|
+
* Watch DelegateChanged events
|
|
3512
|
+
* @param callback Function to call when event is emitted
|
|
3513
|
+
* @param filter Optional filter for indexed parameters
|
|
3514
|
+
* @returns Unwatch function to stop listening
|
|
3515
|
+
*/
|
|
3516
|
+
DelegateChanged: (callback: (event: {
|
|
3517
|
+
delegator: `0x${string}`;
|
|
3518
|
+
fromDelegate: `0x${string}`;
|
|
3519
|
+
toDelegate: `0x${string}`;
|
|
3520
|
+
}) => void, filter?: {
|
|
3521
|
+
delegator?: `0x${string}` | `0x${string}`[] | null;
|
|
3522
|
+
fromDelegate?: `0x${string}` | `0x${string}`[] | null;
|
|
3523
|
+
toDelegate?: `0x${string}` | `0x${string}`[] | null;
|
|
3524
|
+
}) => () => void;
|
|
3525
|
+
/**
|
|
3526
|
+
* Watch DelegateVotesChanged events
|
|
3527
|
+
* @param callback Function to call when event is emitted
|
|
3528
|
+
* @param filter Optional filter for indexed parameters
|
|
3529
|
+
* @returns Unwatch function to stop listening
|
|
3530
|
+
*/
|
|
3531
|
+
DelegateVotesChanged: (callback: (event: {
|
|
3532
|
+
delegate: `0x${string}`;
|
|
3533
|
+
previousBalance: bigint;
|
|
3534
|
+
newBalance: bigint;
|
|
3535
|
+
}) => void, filter?: {
|
|
3536
|
+
delegate?: `0x${string}` | `0x${string}`[] | null;
|
|
3537
|
+
}) => () => void;
|
|
3538
|
+
/**
|
|
3539
|
+
* Watch EIP712DomainChanged events
|
|
3540
|
+
* @param callback Function to call when event is emitted
|
|
3541
|
+
* @param filter Optional filter for indexed parameters
|
|
3542
|
+
* @returns Unwatch function to stop listening
|
|
3543
|
+
*/
|
|
3544
|
+
EIP712DomainChanged: (callback: (event: {}) => void) => () => void;
|
|
3545
|
+
/**
|
|
3546
|
+
* Watch MessageFailed events
|
|
3547
|
+
* @param callback Function to call when event is emitted
|
|
3548
|
+
* @param filter Optional filter for indexed parameters
|
|
3549
|
+
* @returns Unwatch function to stop listening
|
|
3550
|
+
*/
|
|
3551
|
+
MessageFailed: (callback: (event: {
|
|
3552
|
+
_srcChainId: bigint;
|
|
3553
|
+
_srcAddress: `0x${string}`;
|
|
3554
|
+
_nonce: bigint;
|
|
3555
|
+
_payload: `0x${string}`;
|
|
3556
|
+
_reason: `0x${string}`;
|
|
3557
|
+
}) => void) => () => void;
|
|
3558
|
+
/**
|
|
3559
|
+
* Watch NonContractAddress events
|
|
3560
|
+
* @param callback Function to call when event is emitted
|
|
3561
|
+
* @param filter Optional filter for indexed parameters
|
|
3562
|
+
* @returns Unwatch function to stop listening
|
|
3563
|
+
*/
|
|
3564
|
+
NonContractAddress: (callback: (event: {
|
|
3565
|
+
_address: `0x${string}`;
|
|
3566
|
+
}) => void) => () => void;
|
|
3567
|
+
/**
|
|
3568
|
+
* Watch OwnershipTransferred events
|
|
3569
|
+
* @param callback Function to call when event is emitted
|
|
3570
|
+
* @param filter Optional filter for indexed parameters
|
|
3571
|
+
* @returns Unwatch function to stop listening
|
|
3572
|
+
*/
|
|
3573
|
+
OwnershipTransferred: (callback: (event: {
|
|
3574
|
+
previousOwner: `0x${string}`;
|
|
3575
|
+
newOwner: `0x${string}`;
|
|
3576
|
+
}) => void, filter?: {
|
|
3577
|
+
previousOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
3578
|
+
newOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
3579
|
+
}) => () => void;
|
|
3580
|
+
/**
|
|
3581
|
+
* Watch ReceiveFromChain events
|
|
3582
|
+
* @param callback Function to call when event is emitted
|
|
3583
|
+
* @param filter Optional filter for indexed parameters
|
|
3584
|
+
* @returns Unwatch function to stop listening
|
|
3585
|
+
*/
|
|
3586
|
+
ReceiveFromChain: (callback: (event: {
|
|
3587
|
+
_srcChainId: bigint;
|
|
3588
|
+
_to: `0x${string}`;
|
|
3589
|
+
_amount: bigint;
|
|
3590
|
+
}) => void, filter?: {
|
|
3591
|
+
_srcChainId?: number | number[] | null;
|
|
3592
|
+
_to?: `0x${string}` | `0x${string}`[] | null;
|
|
3593
|
+
}) => () => void;
|
|
3594
|
+
/**
|
|
3595
|
+
* Watch RetryMessageSuccess events
|
|
3596
|
+
* @param callback Function to call when event is emitted
|
|
3597
|
+
* @param filter Optional filter for indexed parameters
|
|
3598
|
+
* @returns Unwatch function to stop listening
|
|
3599
|
+
*/
|
|
3600
|
+
RetryMessageSuccess: (callback: (event: {
|
|
3601
|
+
_srcChainId: bigint;
|
|
3602
|
+
_srcAddress: `0x${string}`;
|
|
3603
|
+
_nonce: bigint;
|
|
3604
|
+
_payloadHash: `0x${string}`;
|
|
3605
|
+
}) => void) => () => void;
|
|
3606
|
+
/**
|
|
3607
|
+
* Watch SendToChain events
|
|
3608
|
+
* @param callback Function to call when event is emitted
|
|
3609
|
+
* @param filter Optional filter for indexed parameters
|
|
3610
|
+
* @returns Unwatch function to stop listening
|
|
3611
|
+
*/
|
|
3612
|
+
SendToChain: (callback: (event: {
|
|
3613
|
+
_dstChainId: bigint;
|
|
3614
|
+
_from: `0x${string}`;
|
|
3615
|
+
_toAddress: `0x${string}`;
|
|
3616
|
+
_amount: bigint;
|
|
3617
|
+
}) => void, filter?: {
|
|
3618
|
+
_dstChainId?: number | number[] | null;
|
|
3619
|
+
_from?: `0x${string}` | `0x${string}`[] | null;
|
|
3620
|
+
_toAddress?: `0x${string}` | `0x${string}`[] | null;
|
|
3621
|
+
}) => () => void;
|
|
3622
|
+
/**
|
|
3623
|
+
* Watch SetBuyTaxReceiver events
|
|
3624
|
+
* @param callback Function to call when event is emitted
|
|
3625
|
+
* @param filter Optional filter for indexed parameters
|
|
3626
|
+
* @returns Unwatch function to stop listening
|
|
3627
|
+
*/
|
|
3628
|
+
SetBuyTaxReceiver: (callback: (event: {
|
|
3629
|
+
buyTaxReceiver: `0x${string}`;
|
|
3630
|
+
}) => void) => () => void;
|
|
3631
|
+
/**
|
|
3632
|
+
* Watch SetIsAntiMEV events
|
|
3633
|
+
* @param callback Function to call when event is emitted
|
|
3634
|
+
* @param filter Optional filter for indexed parameters
|
|
3635
|
+
* @returns Unwatch function to stop listening
|
|
3636
|
+
*/
|
|
3637
|
+
SetIsAntiMEV: (callback: (event: {
|
|
3638
|
+
isAntiMEV: boolean;
|
|
3639
|
+
}) => void) => () => void;
|
|
3640
|
+
/**
|
|
3641
|
+
* Watch SetIsTransferBlacklisting events
|
|
3642
|
+
* @param callback Function to call when event is emitted
|
|
3643
|
+
* @param filter Optional filter for indexed parameters
|
|
3644
|
+
* @returns Unwatch function to stop listening
|
|
3645
|
+
*/
|
|
3646
|
+
SetIsTransferBlacklisting: (callback: (event: {
|
|
3647
|
+
isBlacklisting: boolean;
|
|
3648
|
+
}) => void) => () => void;
|
|
3649
|
+
/**
|
|
3650
|
+
* Watch SetMinDstGas events
|
|
3651
|
+
* @param callback Function to call when event is emitted
|
|
3652
|
+
* @param filter Optional filter for indexed parameters
|
|
3653
|
+
* @returns Unwatch function to stop listening
|
|
3654
|
+
*/
|
|
3655
|
+
SetMinDstGas: (callback: (event: {
|
|
3656
|
+
_dstChainId: bigint;
|
|
3657
|
+
_type: bigint;
|
|
3658
|
+
_minDstGas: bigint;
|
|
3659
|
+
}) => void) => () => void;
|
|
3660
|
+
/**
|
|
3661
|
+
* Watch SetPrecrime events
|
|
3662
|
+
* @param callback Function to call when event is emitted
|
|
3663
|
+
* @param filter Optional filter for indexed parameters
|
|
3664
|
+
* @returns Unwatch function to stop listening
|
|
3665
|
+
*/
|
|
3666
|
+
SetPrecrime: (callback: (event: {
|
|
3667
|
+
precrime: `0x${string}`;
|
|
3668
|
+
}) => void) => () => void;
|
|
3669
|
+
/**
|
|
3670
|
+
* Watch SetTax events
|
|
3671
|
+
* @param callback Function to call when event is emitted
|
|
3672
|
+
* @param filter Optional filter for indexed parameters
|
|
3673
|
+
* @returns Unwatch function to stop listening
|
|
3674
|
+
*/
|
|
3675
|
+
SetTax: (callback: (event: {
|
|
3676
|
+
buyTax: bigint;
|
|
3677
|
+
sellTax: bigint;
|
|
3678
|
+
isTaxing: boolean;
|
|
3679
|
+
}) => void) => () => void;
|
|
3680
|
+
/**
|
|
3681
|
+
* Watch SetTaxWhitelist events
|
|
3682
|
+
* @param callback Function to call when event is emitted
|
|
3683
|
+
* @param filter Optional filter for indexed parameters
|
|
3684
|
+
* @returns Unwatch function to stop listening
|
|
3685
|
+
*/
|
|
3686
|
+
SetTaxWhitelist: (callback: (event: {
|
|
3687
|
+
whitelist: `0x${string}`;
|
|
3688
|
+
isWhitelisted: boolean;
|
|
3689
|
+
}) => void) => () => void;
|
|
3690
|
+
/**
|
|
3691
|
+
* Watch SetTaxableContract events
|
|
3692
|
+
* @param callback Function to call when event is emitted
|
|
3693
|
+
* @param filter Optional filter for indexed parameters
|
|
3694
|
+
* @returns Unwatch function to stop listening
|
|
3695
|
+
*/
|
|
3696
|
+
SetTaxableContract: (callback: (event: {
|
|
3697
|
+
taxableContract: `0x${string}`;
|
|
3698
|
+
isTaxable: boolean;
|
|
3699
|
+
}) => void) => () => void;
|
|
3700
|
+
/**
|
|
3701
|
+
* Watch SetTransferBlacklist events
|
|
3702
|
+
* @param callback Function to call when event is emitted
|
|
3703
|
+
* @param filter Optional filter for indexed parameters
|
|
3704
|
+
* @returns Unwatch function to stop listening
|
|
3705
|
+
*/
|
|
3706
|
+
SetTransferBlacklist: (callback: (event: {
|
|
3707
|
+
blacklist: `0x${string}`;
|
|
3708
|
+
isBlacklisted: boolean;
|
|
3709
|
+
}) => void) => () => void;
|
|
3710
|
+
/**
|
|
3711
|
+
* Watch SetTrustedRemote events
|
|
3712
|
+
* @param callback Function to call when event is emitted
|
|
3713
|
+
* @param filter Optional filter for indexed parameters
|
|
3714
|
+
* @returns Unwatch function to stop listening
|
|
3715
|
+
*/
|
|
3716
|
+
SetTrustedRemote: (callback: (event: {
|
|
3717
|
+
_remoteChainId: bigint;
|
|
3718
|
+
_path: `0x${string}`;
|
|
3719
|
+
}) => void) => () => void;
|
|
3720
|
+
/**
|
|
3721
|
+
* Watch SetTrustedRemoteAddress events
|
|
3722
|
+
* @param callback Function to call when event is emitted
|
|
3723
|
+
* @param filter Optional filter for indexed parameters
|
|
3724
|
+
* @returns Unwatch function to stop listening
|
|
3725
|
+
*/
|
|
3726
|
+
SetTrustedRemoteAddress: (callback: (event: {
|
|
3727
|
+
_remoteChainId: bigint;
|
|
3728
|
+
_remoteAddress: `0x${string}`;
|
|
3729
|
+
}) => void) => () => void;
|
|
3730
|
+
/**
|
|
3731
|
+
* Watch SetUseCustomAdapterParams events
|
|
3732
|
+
* @param callback Function to call when event is emitted
|
|
3733
|
+
* @param filter Optional filter for indexed parameters
|
|
3734
|
+
* @returns Unwatch function to stop listening
|
|
3735
|
+
*/
|
|
3736
|
+
SetUseCustomAdapterParams: (callback: (event: {
|
|
3737
|
+
_useCustomAdapterParams: boolean;
|
|
3738
|
+
}) => void) => () => void;
|
|
3739
|
+
/**
|
|
3740
|
+
* Watch Transfer events
|
|
3741
|
+
* @param callback Function to call when event is emitted
|
|
3742
|
+
* @param filter Optional filter for indexed parameters
|
|
3743
|
+
* @returns Unwatch function to stop listening
|
|
3744
|
+
*/
|
|
3745
|
+
Transfer: (callback: (event: {
|
|
3746
|
+
from: `0x${string}`;
|
|
3747
|
+
to: `0x${string}`;
|
|
3748
|
+
value: bigint;
|
|
3749
|
+
}) => void, filter?: {
|
|
3750
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
3751
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
3752
|
+
}) => () => void;
|
|
3753
|
+
};
|
|
3754
|
+
}
|