@gitmyabi-stg/pieverse 0.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 +108 -0
- package/contracts/PieverseOFT.d.ts +2584 -0
- package/contracts/PieverseOFT.js +2834 -0
- package/contracts/PieverseOFT.ts +3425 -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 +43 -0
|
@@ -0,0 +1,2584 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* EnforcedOptionParam struct type
|
|
4
|
+
*/
|
|
5
|
+
export type EnforcedOptionParam = {
|
|
6
|
+
eid: bigint;
|
|
7
|
+
msgType: bigint;
|
|
8
|
+
options: `0x${string}`;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Origin struct type
|
|
12
|
+
*/
|
|
13
|
+
export type Origin = {
|
|
14
|
+
srcEid: bigint;
|
|
15
|
+
sender: `0x${string}`;
|
|
16
|
+
nonce: bigint;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* InboundPacket struct type
|
|
20
|
+
*/
|
|
21
|
+
export type InboundPacket = {
|
|
22
|
+
origin: Origin;
|
|
23
|
+
dstEid: bigint;
|
|
24
|
+
receiver: `0x${string}`;
|
|
25
|
+
guid: `0x${string}`;
|
|
26
|
+
value: bigint;
|
|
27
|
+
executor: `0x${string}`;
|
|
28
|
+
message: `0x${string}`;
|
|
29
|
+
extraData: `0x${string}`;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* SendParam struct type
|
|
33
|
+
*/
|
|
34
|
+
export type SendParam = {
|
|
35
|
+
dstEid: bigint;
|
|
36
|
+
to: `0x${string}`;
|
|
37
|
+
amountLD: bigint;
|
|
38
|
+
minAmountLD: bigint;
|
|
39
|
+
extraOptions: `0x${string}`;
|
|
40
|
+
composeMsg: `0x${string}`;
|
|
41
|
+
oftCmd: `0x${string}`;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* OFTLimit struct type
|
|
45
|
+
*/
|
|
46
|
+
export type OFTLimit = {
|
|
47
|
+
minAmountLD: bigint;
|
|
48
|
+
maxAmountLD: bigint;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* OFTFeeDetail struct type
|
|
52
|
+
*/
|
|
53
|
+
export type OFTFeeDetail = {
|
|
54
|
+
feeAmountLD: bigint;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* OFTReceipt struct type
|
|
59
|
+
*/
|
|
60
|
+
export type OFTReceipt = {
|
|
61
|
+
amountSentLD: bigint;
|
|
62
|
+
amountReceivedLD: bigint;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* MessagingFee struct type
|
|
66
|
+
*/
|
|
67
|
+
export type MessagingFee = {
|
|
68
|
+
nativeFee: bigint;
|
|
69
|
+
lzTokenFee: bigint;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* MessagingReceipt struct type
|
|
73
|
+
*/
|
|
74
|
+
export type MessagingReceipt = {
|
|
75
|
+
guid: `0x${string}`;
|
|
76
|
+
nonce: bigint;
|
|
77
|
+
fee: MessagingFee;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* PieverseOFT ABI
|
|
81
|
+
*
|
|
82
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
83
|
+
*/
|
|
84
|
+
export declare const PieverseOFTAbi: readonly [{
|
|
85
|
+
readonly inputs: readonly [{
|
|
86
|
+
readonly internalType: "string";
|
|
87
|
+
readonly name: "_name";
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
}, {
|
|
90
|
+
readonly internalType: "string";
|
|
91
|
+
readonly name: "_symbol";
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
}, {
|
|
94
|
+
readonly internalType: "address";
|
|
95
|
+
readonly name: "_lzEndpoint";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
}, {
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
readonly name: "_owner";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}, {
|
|
102
|
+
readonly internalType: "address";
|
|
103
|
+
readonly name: "_multisig";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
}, {
|
|
106
|
+
readonly internalType: "uint256";
|
|
107
|
+
readonly name: "_transferAllowedTime";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "nonpayable";
|
|
111
|
+
readonly type: "constructor";
|
|
112
|
+
}, {
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
readonly name: "amountSD";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}];
|
|
118
|
+
readonly name: "AmountSDOverflowed";
|
|
119
|
+
readonly type: "error";
|
|
120
|
+
}, {
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly internalType: "address";
|
|
123
|
+
readonly name: "spender";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
}, {
|
|
126
|
+
readonly internalType: "uint256";
|
|
127
|
+
readonly name: "allowance";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}, {
|
|
130
|
+
readonly internalType: "uint256";
|
|
131
|
+
readonly name: "needed";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}];
|
|
134
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
135
|
+
readonly type: "error";
|
|
136
|
+
}, {
|
|
137
|
+
readonly inputs: readonly [{
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
readonly name: "sender";
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
}, {
|
|
142
|
+
readonly internalType: "uint256";
|
|
143
|
+
readonly name: "balance";
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
}, {
|
|
146
|
+
readonly internalType: "uint256";
|
|
147
|
+
readonly name: "needed";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
}];
|
|
150
|
+
readonly name: "ERC20InsufficientBalance";
|
|
151
|
+
readonly type: "error";
|
|
152
|
+
}, {
|
|
153
|
+
readonly inputs: readonly [{
|
|
154
|
+
readonly internalType: "address";
|
|
155
|
+
readonly name: "approver";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
}];
|
|
158
|
+
readonly name: "ERC20InvalidApprover";
|
|
159
|
+
readonly type: "error";
|
|
160
|
+
}, {
|
|
161
|
+
readonly inputs: readonly [{
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
readonly name: "receiver";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
}];
|
|
166
|
+
readonly name: "ERC20InvalidReceiver";
|
|
167
|
+
readonly type: "error";
|
|
168
|
+
}, {
|
|
169
|
+
readonly inputs: readonly [{
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
readonly name: "sender";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}];
|
|
174
|
+
readonly name: "ERC20InvalidSender";
|
|
175
|
+
readonly type: "error";
|
|
176
|
+
}, {
|
|
177
|
+
readonly inputs: readonly [{
|
|
178
|
+
readonly internalType: "address";
|
|
179
|
+
readonly name: "spender";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
}];
|
|
182
|
+
readonly name: "ERC20InvalidSpender";
|
|
183
|
+
readonly type: "error";
|
|
184
|
+
}, {
|
|
185
|
+
readonly inputs: readonly [];
|
|
186
|
+
readonly name: "InvalidDelegate";
|
|
187
|
+
readonly type: "error";
|
|
188
|
+
}, {
|
|
189
|
+
readonly inputs: readonly [];
|
|
190
|
+
readonly name: "InvalidEndpointCall";
|
|
191
|
+
readonly type: "error";
|
|
192
|
+
}, {
|
|
193
|
+
readonly inputs: readonly [];
|
|
194
|
+
readonly name: "InvalidLocalDecimals";
|
|
195
|
+
readonly type: "error";
|
|
196
|
+
}, {
|
|
197
|
+
readonly inputs: readonly [{
|
|
198
|
+
readonly internalType: "bytes";
|
|
199
|
+
readonly name: "options";
|
|
200
|
+
readonly type: "bytes";
|
|
201
|
+
}];
|
|
202
|
+
readonly name: "InvalidOptions";
|
|
203
|
+
readonly type: "error";
|
|
204
|
+
}, {
|
|
205
|
+
readonly inputs: readonly [];
|
|
206
|
+
readonly name: "LzTokenUnavailable";
|
|
207
|
+
readonly type: "error";
|
|
208
|
+
}, {
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly internalType: "uint32";
|
|
211
|
+
readonly name: "eid";
|
|
212
|
+
readonly type: "uint32";
|
|
213
|
+
}];
|
|
214
|
+
readonly name: "NoPeer";
|
|
215
|
+
readonly type: "error";
|
|
216
|
+
}, {
|
|
217
|
+
readonly inputs: readonly [{
|
|
218
|
+
readonly internalType: "uint256";
|
|
219
|
+
readonly name: "msgValue";
|
|
220
|
+
readonly type: "uint256";
|
|
221
|
+
}];
|
|
222
|
+
readonly name: "NotEnoughNative";
|
|
223
|
+
readonly type: "error";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
readonly name: "addr";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "OnlyEndpoint";
|
|
231
|
+
readonly type: "error";
|
|
232
|
+
}, {
|
|
233
|
+
readonly inputs: readonly [{
|
|
234
|
+
readonly internalType: "uint32";
|
|
235
|
+
readonly name: "eid";
|
|
236
|
+
readonly type: "uint32";
|
|
237
|
+
}, {
|
|
238
|
+
readonly internalType: "bytes32";
|
|
239
|
+
readonly name: "sender";
|
|
240
|
+
readonly type: "bytes32";
|
|
241
|
+
}];
|
|
242
|
+
readonly name: "OnlyPeer";
|
|
243
|
+
readonly type: "error";
|
|
244
|
+
}, {
|
|
245
|
+
readonly inputs: readonly [];
|
|
246
|
+
readonly name: "OnlySelf";
|
|
247
|
+
readonly type: "error";
|
|
248
|
+
}, {
|
|
249
|
+
readonly inputs: readonly [{
|
|
250
|
+
readonly internalType: "address";
|
|
251
|
+
readonly name: "owner";
|
|
252
|
+
readonly type: "address";
|
|
253
|
+
}];
|
|
254
|
+
readonly name: "OwnableInvalidOwner";
|
|
255
|
+
readonly type: "error";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [{
|
|
258
|
+
readonly internalType: "address";
|
|
259
|
+
readonly name: "account";
|
|
260
|
+
readonly type: "address";
|
|
261
|
+
}];
|
|
262
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
263
|
+
readonly type: "error";
|
|
264
|
+
}, {
|
|
265
|
+
readonly inputs: readonly [{
|
|
266
|
+
readonly internalType: "address";
|
|
267
|
+
readonly name: "token";
|
|
268
|
+
readonly type: "address";
|
|
269
|
+
}];
|
|
270
|
+
readonly name: "SafeERC20FailedOperation";
|
|
271
|
+
readonly type: "error";
|
|
272
|
+
}, {
|
|
273
|
+
readonly inputs: readonly [{
|
|
274
|
+
readonly internalType: "bytes";
|
|
275
|
+
readonly name: "result";
|
|
276
|
+
readonly type: "bytes";
|
|
277
|
+
}];
|
|
278
|
+
readonly name: "SimulationResult";
|
|
279
|
+
readonly type: "error";
|
|
280
|
+
}, {
|
|
281
|
+
readonly inputs: readonly [{
|
|
282
|
+
readonly internalType: "uint256";
|
|
283
|
+
readonly name: "amountLD";
|
|
284
|
+
readonly type: "uint256";
|
|
285
|
+
}, {
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
readonly name: "minAmountLD";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "SlippageExceeded";
|
|
291
|
+
readonly type: "error";
|
|
292
|
+
}, {
|
|
293
|
+
readonly anonymous: false;
|
|
294
|
+
readonly inputs: readonly [{
|
|
295
|
+
readonly indexed: true;
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
readonly name: "owner";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}, {
|
|
300
|
+
readonly indexed: true;
|
|
301
|
+
readonly internalType: "address";
|
|
302
|
+
readonly name: "spender";
|
|
303
|
+
readonly type: "address";
|
|
304
|
+
}, {
|
|
305
|
+
readonly indexed: false;
|
|
306
|
+
readonly internalType: "uint256";
|
|
307
|
+
readonly name: "value";
|
|
308
|
+
readonly type: "uint256";
|
|
309
|
+
}];
|
|
310
|
+
readonly name: "Approval";
|
|
311
|
+
readonly type: "event";
|
|
312
|
+
}, {
|
|
313
|
+
readonly anonymous: false;
|
|
314
|
+
readonly inputs: readonly [{
|
|
315
|
+
readonly components: readonly [{
|
|
316
|
+
readonly internalType: "uint32";
|
|
317
|
+
readonly name: "eid";
|
|
318
|
+
readonly type: "uint32";
|
|
319
|
+
}, {
|
|
320
|
+
readonly internalType: "uint16";
|
|
321
|
+
readonly name: "msgType";
|
|
322
|
+
readonly type: "uint16";
|
|
323
|
+
}, {
|
|
324
|
+
readonly internalType: "bytes";
|
|
325
|
+
readonly name: "options";
|
|
326
|
+
readonly type: "bytes";
|
|
327
|
+
}];
|
|
328
|
+
readonly indexed: false;
|
|
329
|
+
readonly internalType: "struct EnforcedOptionParam[]";
|
|
330
|
+
readonly name: "_enforcedOptions";
|
|
331
|
+
readonly type: "tuple[]";
|
|
332
|
+
}];
|
|
333
|
+
readonly name: "EnforcedOptionSet";
|
|
334
|
+
readonly type: "event";
|
|
335
|
+
}, {
|
|
336
|
+
readonly anonymous: false;
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly indexed: true;
|
|
339
|
+
readonly internalType: "address";
|
|
340
|
+
readonly name: "account";
|
|
341
|
+
readonly type: "address";
|
|
342
|
+
}, {
|
|
343
|
+
readonly indexed: false;
|
|
344
|
+
readonly internalType: "bool";
|
|
345
|
+
readonly name: "value";
|
|
346
|
+
readonly type: "bool";
|
|
347
|
+
}];
|
|
348
|
+
readonly name: "MinterUpdated";
|
|
349
|
+
readonly type: "event";
|
|
350
|
+
}, {
|
|
351
|
+
readonly anonymous: false;
|
|
352
|
+
readonly inputs: readonly [{
|
|
353
|
+
readonly indexed: false;
|
|
354
|
+
readonly internalType: "address";
|
|
355
|
+
readonly name: "inspector";
|
|
356
|
+
readonly type: "address";
|
|
357
|
+
}];
|
|
358
|
+
readonly name: "MsgInspectorSet";
|
|
359
|
+
readonly type: "event";
|
|
360
|
+
}, {
|
|
361
|
+
readonly anonymous: false;
|
|
362
|
+
readonly inputs: readonly [{
|
|
363
|
+
readonly indexed: true;
|
|
364
|
+
readonly internalType: "bytes32";
|
|
365
|
+
readonly name: "guid";
|
|
366
|
+
readonly type: "bytes32";
|
|
367
|
+
}, {
|
|
368
|
+
readonly indexed: false;
|
|
369
|
+
readonly internalType: "uint32";
|
|
370
|
+
readonly name: "srcEid";
|
|
371
|
+
readonly type: "uint32";
|
|
372
|
+
}, {
|
|
373
|
+
readonly indexed: true;
|
|
374
|
+
readonly internalType: "address";
|
|
375
|
+
readonly name: "toAddress";
|
|
376
|
+
readonly type: "address";
|
|
377
|
+
}, {
|
|
378
|
+
readonly indexed: false;
|
|
379
|
+
readonly internalType: "uint256";
|
|
380
|
+
readonly name: "amountReceivedLD";
|
|
381
|
+
readonly type: "uint256";
|
|
382
|
+
}];
|
|
383
|
+
readonly name: "OFTReceived";
|
|
384
|
+
readonly type: "event";
|
|
385
|
+
}, {
|
|
386
|
+
readonly anonymous: false;
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly indexed: true;
|
|
389
|
+
readonly internalType: "bytes32";
|
|
390
|
+
readonly name: "guid";
|
|
391
|
+
readonly type: "bytes32";
|
|
392
|
+
}, {
|
|
393
|
+
readonly indexed: false;
|
|
394
|
+
readonly internalType: "uint32";
|
|
395
|
+
readonly name: "dstEid";
|
|
396
|
+
readonly type: "uint32";
|
|
397
|
+
}, {
|
|
398
|
+
readonly indexed: true;
|
|
399
|
+
readonly internalType: "address";
|
|
400
|
+
readonly name: "fromAddress";
|
|
401
|
+
readonly type: "address";
|
|
402
|
+
}, {
|
|
403
|
+
readonly indexed: false;
|
|
404
|
+
readonly internalType: "uint256";
|
|
405
|
+
readonly name: "amountSentLD";
|
|
406
|
+
readonly type: "uint256";
|
|
407
|
+
}, {
|
|
408
|
+
readonly indexed: false;
|
|
409
|
+
readonly internalType: "uint256";
|
|
410
|
+
readonly name: "amountReceivedLD";
|
|
411
|
+
readonly type: "uint256";
|
|
412
|
+
}];
|
|
413
|
+
readonly name: "OFTSent";
|
|
414
|
+
readonly type: "event";
|
|
415
|
+
}, {
|
|
416
|
+
readonly anonymous: false;
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly indexed: true;
|
|
419
|
+
readonly internalType: "address";
|
|
420
|
+
readonly name: "previousOwner";
|
|
421
|
+
readonly type: "address";
|
|
422
|
+
}, {
|
|
423
|
+
readonly indexed: true;
|
|
424
|
+
readonly internalType: "address";
|
|
425
|
+
readonly name: "newOwner";
|
|
426
|
+
readonly type: "address";
|
|
427
|
+
}];
|
|
428
|
+
readonly name: "OwnershipTransferred";
|
|
429
|
+
readonly type: "event";
|
|
430
|
+
}, {
|
|
431
|
+
readonly anonymous: false;
|
|
432
|
+
readonly inputs: readonly [{
|
|
433
|
+
readonly indexed: false;
|
|
434
|
+
readonly internalType: "uint32";
|
|
435
|
+
readonly name: "eid";
|
|
436
|
+
readonly type: "uint32";
|
|
437
|
+
}, {
|
|
438
|
+
readonly indexed: false;
|
|
439
|
+
readonly internalType: "bytes32";
|
|
440
|
+
readonly name: "peer";
|
|
441
|
+
readonly type: "bytes32";
|
|
442
|
+
}];
|
|
443
|
+
readonly name: "PeerSet";
|
|
444
|
+
readonly type: "event";
|
|
445
|
+
}, {
|
|
446
|
+
readonly anonymous: false;
|
|
447
|
+
readonly inputs: readonly [{
|
|
448
|
+
readonly indexed: false;
|
|
449
|
+
readonly internalType: "address";
|
|
450
|
+
readonly name: "preCrimeAddress";
|
|
451
|
+
readonly type: "address";
|
|
452
|
+
}];
|
|
453
|
+
readonly name: "PreCrimeSet";
|
|
454
|
+
readonly type: "event";
|
|
455
|
+
}, {
|
|
456
|
+
readonly anonymous: false;
|
|
457
|
+
readonly inputs: readonly [{
|
|
458
|
+
readonly indexed: true;
|
|
459
|
+
readonly internalType: "address";
|
|
460
|
+
readonly name: "to";
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
}, {
|
|
463
|
+
readonly indexed: false;
|
|
464
|
+
readonly internalType: "uint256";
|
|
465
|
+
readonly name: "amount";
|
|
466
|
+
readonly type: "uint256";
|
|
467
|
+
}];
|
|
468
|
+
readonly name: "TokensMinted";
|
|
469
|
+
readonly type: "event";
|
|
470
|
+
}, {
|
|
471
|
+
readonly anonymous: false;
|
|
472
|
+
readonly inputs: readonly [{
|
|
473
|
+
readonly indexed: true;
|
|
474
|
+
readonly internalType: "address";
|
|
475
|
+
readonly name: "from";
|
|
476
|
+
readonly type: "address";
|
|
477
|
+
}, {
|
|
478
|
+
readonly indexed: true;
|
|
479
|
+
readonly internalType: "address";
|
|
480
|
+
readonly name: "to";
|
|
481
|
+
readonly type: "address";
|
|
482
|
+
}, {
|
|
483
|
+
readonly indexed: false;
|
|
484
|
+
readonly internalType: "uint256";
|
|
485
|
+
readonly name: "value";
|
|
486
|
+
readonly type: "uint256";
|
|
487
|
+
}];
|
|
488
|
+
readonly name: "Transfer";
|
|
489
|
+
readonly type: "event";
|
|
490
|
+
}, {
|
|
491
|
+
readonly anonymous: false;
|
|
492
|
+
readonly inputs: readonly [{
|
|
493
|
+
readonly indexed: false;
|
|
494
|
+
readonly internalType: "uint256";
|
|
495
|
+
readonly name: "newTimestamp";
|
|
496
|
+
readonly type: "uint256";
|
|
497
|
+
}];
|
|
498
|
+
readonly name: "TransferAllowedTimeUpdated";
|
|
499
|
+
readonly type: "event";
|
|
500
|
+
}, {
|
|
501
|
+
readonly anonymous: false;
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly indexed: true;
|
|
504
|
+
readonly internalType: "address";
|
|
505
|
+
readonly name: "account";
|
|
506
|
+
readonly type: "address";
|
|
507
|
+
}, {
|
|
508
|
+
readonly indexed: false;
|
|
509
|
+
readonly internalType: "bool";
|
|
510
|
+
readonly name: "value";
|
|
511
|
+
readonly type: "bool";
|
|
512
|
+
}];
|
|
513
|
+
readonly name: "WhitelistUpdated";
|
|
514
|
+
readonly type: "event";
|
|
515
|
+
}, {
|
|
516
|
+
readonly inputs: readonly [];
|
|
517
|
+
readonly name: "ETA";
|
|
518
|
+
readonly outputs: readonly [{
|
|
519
|
+
readonly internalType: "uint256";
|
|
520
|
+
readonly name: "";
|
|
521
|
+
readonly type: "uint256";
|
|
522
|
+
}];
|
|
523
|
+
readonly stateMutability: "view";
|
|
524
|
+
readonly type: "function";
|
|
525
|
+
}, {
|
|
526
|
+
readonly inputs: readonly [];
|
|
527
|
+
readonly name: "MAX_SUPPLY";
|
|
528
|
+
readonly outputs: readonly [{
|
|
529
|
+
readonly internalType: "uint256";
|
|
530
|
+
readonly name: "";
|
|
531
|
+
readonly type: "uint256";
|
|
532
|
+
}];
|
|
533
|
+
readonly stateMutability: "view";
|
|
534
|
+
readonly type: "function";
|
|
535
|
+
}, {
|
|
536
|
+
readonly inputs: readonly [];
|
|
537
|
+
readonly name: "SEND";
|
|
538
|
+
readonly outputs: readonly [{
|
|
539
|
+
readonly internalType: "uint16";
|
|
540
|
+
readonly name: "";
|
|
541
|
+
readonly type: "uint16";
|
|
542
|
+
}];
|
|
543
|
+
readonly stateMutability: "view";
|
|
544
|
+
readonly type: "function";
|
|
545
|
+
}, {
|
|
546
|
+
readonly inputs: readonly [];
|
|
547
|
+
readonly name: "SEND_AND_CALL";
|
|
548
|
+
readonly outputs: readonly [{
|
|
549
|
+
readonly internalType: "uint16";
|
|
550
|
+
readonly name: "";
|
|
551
|
+
readonly type: "uint16";
|
|
552
|
+
}];
|
|
553
|
+
readonly stateMutability: "view";
|
|
554
|
+
readonly type: "function";
|
|
555
|
+
}, {
|
|
556
|
+
readonly inputs: readonly [{
|
|
557
|
+
readonly components: readonly [{
|
|
558
|
+
readonly internalType: "uint32";
|
|
559
|
+
readonly name: "srcEid";
|
|
560
|
+
readonly type: "uint32";
|
|
561
|
+
}, {
|
|
562
|
+
readonly internalType: "bytes32";
|
|
563
|
+
readonly name: "sender";
|
|
564
|
+
readonly type: "bytes32";
|
|
565
|
+
}, {
|
|
566
|
+
readonly internalType: "uint64";
|
|
567
|
+
readonly name: "nonce";
|
|
568
|
+
readonly type: "uint64";
|
|
569
|
+
}];
|
|
570
|
+
readonly internalType: "struct Origin";
|
|
571
|
+
readonly name: "origin";
|
|
572
|
+
readonly type: "tuple";
|
|
573
|
+
}];
|
|
574
|
+
readonly name: "allowInitializePath";
|
|
575
|
+
readonly outputs: readonly [{
|
|
576
|
+
readonly internalType: "bool";
|
|
577
|
+
readonly name: "";
|
|
578
|
+
readonly type: "bool";
|
|
579
|
+
}];
|
|
580
|
+
readonly stateMutability: "view";
|
|
581
|
+
readonly type: "function";
|
|
582
|
+
}, {
|
|
583
|
+
readonly inputs: readonly [{
|
|
584
|
+
readonly internalType: "address";
|
|
585
|
+
readonly name: "owner";
|
|
586
|
+
readonly type: "address";
|
|
587
|
+
}, {
|
|
588
|
+
readonly internalType: "address";
|
|
589
|
+
readonly name: "spender";
|
|
590
|
+
readonly type: "address";
|
|
591
|
+
}];
|
|
592
|
+
readonly name: "allowance";
|
|
593
|
+
readonly outputs: readonly [{
|
|
594
|
+
readonly internalType: "uint256";
|
|
595
|
+
readonly name: "";
|
|
596
|
+
readonly type: "uint256";
|
|
597
|
+
}];
|
|
598
|
+
readonly stateMutability: "view";
|
|
599
|
+
readonly type: "function";
|
|
600
|
+
}, {
|
|
601
|
+
readonly inputs: readonly [];
|
|
602
|
+
readonly name: "approvalRequired";
|
|
603
|
+
readonly outputs: readonly [{
|
|
604
|
+
readonly internalType: "bool";
|
|
605
|
+
readonly name: "";
|
|
606
|
+
readonly type: "bool";
|
|
607
|
+
}];
|
|
608
|
+
readonly stateMutability: "pure";
|
|
609
|
+
readonly type: "function";
|
|
610
|
+
}, {
|
|
611
|
+
readonly inputs: readonly [{
|
|
612
|
+
readonly internalType: "address";
|
|
613
|
+
readonly name: "spender";
|
|
614
|
+
readonly type: "address";
|
|
615
|
+
}, {
|
|
616
|
+
readonly internalType: "uint256";
|
|
617
|
+
readonly name: "value";
|
|
618
|
+
readonly type: "uint256";
|
|
619
|
+
}];
|
|
620
|
+
readonly name: "approve";
|
|
621
|
+
readonly outputs: readonly [{
|
|
622
|
+
readonly internalType: "bool";
|
|
623
|
+
readonly name: "";
|
|
624
|
+
readonly type: "bool";
|
|
625
|
+
}];
|
|
626
|
+
readonly stateMutability: "nonpayable";
|
|
627
|
+
readonly type: "function";
|
|
628
|
+
}, {
|
|
629
|
+
readonly inputs: readonly [];
|
|
630
|
+
readonly name: "areTransfersAllowed";
|
|
631
|
+
readonly outputs: readonly [{
|
|
632
|
+
readonly internalType: "bool";
|
|
633
|
+
readonly name: "";
|
|
634
|
+
readonly type: "bool";
|
|
635
|
+
}];
|
|
636
|
+
readonly stateMutability: "view";
|
|
637
|
+
readonly type: "function";
|
|
638
|
+
}, {
|
|
639
|
+
readonly inputs: readonly [{
|
|
640
|
+
readonly internalType: "address";
|
|
641
|
+
readonly name: "account";
|
|
642
|
+
readonly type: "address";
|
|
643
|
+
}];
|
|
644
|
+
readonly name: "balanceOf";
|
|
645
|
+
readonly outputs: readonly [{
|
|
646
|
+
readonly internalType: "uint256";
|
|
647
|
+
readonly name: "";
|
|
648
|
+
readonly type: "uint256";
|
|
649
|
+
}];
|
|
650
|
+
readonly stateMutability: "view";
|
|
651
|
+
readonly type: "function";
|
|
652
|
+
}, {
|
|
653
|
+
readonly inputs: readonly [{
|
|
654
|
+
readonly internalType: "uint32";
|
|
655
|
+
readonly name: "_eid";
|
|
656
|
+
readonly type: "uint32";
|
|
657
|
+
}, {
|
|
658
|
+
readonly internalType: "uint16";
|
|
659
|
+
readonly name: "_msgType";
|
|
660
|
+
readonly type: "uint16";
|
|
661
|
+
}, {
|
|
662
|
+
readonly internalType: "bytes";
|
|
663
|
+
readonly name: "_extraOptions";
|
|
664
|
+
readonly type: "bytes";
|
|
665
|
+
}];
|
|
666
|
+
readonly name: "combineOptions";
|
|
667
|
+
readonly outputs: readonly [{
|
|
668
|
+
readonly internalType: "bytes";
|
|
669
|
+
readonly name: "";
|
|
670
|
+
readonly type: "bytes";
|
|
671
|
+
}];
|
|
672
|
+
readonly stateMutability: "view";
|
|
673
|
+
readonly type: "function";
|
|
674
|
+
}, {
|
|
675
|
+
readonly inputs: readonly [];
|
|
676
|
+
readonly name: "decimalConversionRate";
|
|
677
|
+
readonly outputs: readonly [{
|
|
678
|
+
readonly internalType: "uint256";
|
|
679
|
+
readonly name: "";
|
|
680
|
+
readonly type: "uint256";
|
|
681
|
+
}];
|
|
682
|
+
readonly stateMutability: "view";
|
|
683
|
+
readonly type: "function";
|
|
684
|
+
}, {
|
|
685
|
+
readonly inputs: readonly [];
|
|
686
|
+
readonly name: "decimals";
|
|
687
|
+
readonly outputs: readonly [{
|
|
688
|
+
readonly internalType: "uint8";
|
|
689
|
+
readonly name: "";
|
|
690
|
+
readonly type: "uint8";
|
|
691
|
+
}];
|
|
692
|
+
readonly stateMutability: "view";
|
|
693
|
+
readonly type: "function";
|
|
694
|
+
}, {
|
|
695
|
+
readonly inputs: readonly [];
|
|
696
|
+
readonly name: "endpoint";
|
|
697
|
+
readonly outputs: readonly [{
|
|
698
|
+
readonly internalType: "contract ILayerZeroEndpointV2";
|
|
699
|
+
readonly name: "";
|
|
700
|
+
readonly type: "address";
|
|
701
|
+
}];
|
|
702
|
+
readonly stateMutability: "view";
|
|
703
|
+
readonly type: "function";
|
|
704
|
+
}, {
|
|
705
|
+
readonly inputs: readonly [{
|
|
706
|
+
readonly internalType: "uint32";
|
|
707
|
+
readonly name: "eid";
|
|
708
|
+
readonly type: "uint32";
|
|
709
|
+
}, {
|
|
710
|
+
readonly internalType: "uint16";
|
|
711
|
+
readonly name: "msgType";
|
|
712
|
+
readonly type: "uint16";
|
|
713
|
+
}];
|
|
714
|
+
readonly name: "enforcedOptions";
|
|
715
|
+
readonly outputs: readonly [{
|
|
716
|
+
readonly internalType: "bytes";
|
|
717
|
+
readonly name: "enforcedOption";
|
|
718
|
+
readonly type: "bytes";
|
|
719
|
+
}];
|
|
720
|
+
readonly stateMutability: "view";
|
|
721
|
+
readonly type: "function";
|
|
722
|
+
}, {
|
|
723
|
+
readonly inputs: readonly [{
|
|
724
|
+
readonly components: readonly [{
|
|
725
|
+
readonly internalType: "uint32";
|
|
726
|
+
readonly name: "srcEid";
|
|
727
|
+
readonly type: "uint32";
|
|
728
|
+
}, {
|
|
729
|
+
readonly internalType: "bytes32";
|
|
730
|
+
readonly name: "sender";
|
|
731
|
+
readonly type: "bytes32";
|
|
732
|
+
}, {
|
|
733
|
+
readonly internalType: "uint64";
|
|
734
|
+
readonly name: "nonce";
|
|
735
|
+
readonly type: "uint64";
|
|
736
|
+
}];
|
|
737
|
+
readonly internalType: "struct Origin";
|
|
738
|
+
readonly name: "";
|
|
739
|
+
readonly type: "tuple";
|
|
740
|
+
}, {
|
|
741
|
+
readonly internalType: "bytes";
|
|
742
|
+
readonly name: "";
|
|
743
|
+
readonly type: "bytes";
|
|
744
|
+
}, {
|
|
745
|
+
readonly internalType: "address";
|
|
746
|
+
readonly name: "_sender";
|
|
747
|
+
readonly type: "address";
|
|
748
|
+
}];
|
|
749
|
+
readonly name: "isComposeMsgSender";
|
|
750
|
+
readonly outputs: readonly [{
|
|
751
|
+
readonly internalType: "bool";
|
|
752
|
+
readonly name: "";
|
|
753
|
+
readonly type: "bool";
|
|
754
|
+
}];
|
|
755
|
+
readonly stateMutability: "view";
|
|
756
|
+
readonly type: "function";
|
|
757
|
+
}, {
|
|
758
|
+
readonly inputs: readonly [{
|
|
759
|
+
readonly internalType: "address";
|
|
760
|
+
readonly name: "";
|
|
761
|
+
readonly type: "address";
|
|
762
|
+
}];
|
|
763
|
+
readonly name: "isMinter";
|
|
764
|
+
readonly outputs: readonly [{
|
|
765
|
+
readonly internalType: "bool";
|
|
766
|
+
readonly name: "";
|
|
767
|
+
readonly type: "bool";
|
|
768
|
+
}];
|
|
769
|
+
readonly stateMutability: "view";
|
|
770
|
+
readonly type: "function";
|
|
771
|
+
}, {
|
|
772
|
+
readonly inputs: readonly [{
|
|
773
|
+
readonly internalType: "uint32";
|
|
774
|
+
readonly name: "_eid";
|
|
775
|
+
readonly type: "uint32";
|
|
776
|
+
}, {
|
|
777
|
+
readonly internalType: "bytes32";
|
|
778
|
+
readonly name: "_peer";
|
|
779
|
+
readonly type: "bytes32";
|
|
780
|
+
}];
|
|
781
|
+
readonly name: "isPeer";
|
|
782
|
+
readonly outputs: readonly [{
|
|
783
|
+
readonly internalType: "bool";
|
|
784
|
+
readonly name: "";
|
|
785
|
+
readonly type: "bool";
|
|
786
|
+
}];
|
|
787
|
+
readonly stateMutability: "view";
|
|
788
|
+
readonly type: "function";
|
|
789
|
+
}, {
|
|
790
|
+
readonly inputs: readonly [{
|
|
791
|
+
readonly internalType: "address";
|
|
792
|
+
readonly name: "";
|
|
793
|
+
readonly type: "address";
|
|
794
|
+
}];
|
|
795
|
+
readonly name: "isWhitelisted";
|
|
796
|
+
readonly outputs: readonly [{
|
|
797
|
+
readonly internalType: "bool";
|
|
798
|
+
readonly name: "";
|
|
799
|
+
readonly type: "bool";
|
|
800
|
+
}];
|
|
801
|
+
readonly stateMutability: "view";
|
|
802
|
+
readonly type: "function";
|
|
803
|
+
}, {
|
|
804
|
+
readonly inputs: readonly [{
|
|
805
|
+
readonly components: readonly [{
|
|
806
|
+
readonly internalType: "uint32";
|
|
807
|
+
readonly name: "srcEid";
|
|
808
|
+
readonly type: "uint32";
|
|
809
|
+
}, {
|
|
810
|
+
readonly internalType: "bytes32";
|
|
811
|
+
readonly name: "sender";
|
|
812
|
+
readonly type: "bytes32";
|
|
813
|
+
}, {
|
|
814
|
+
readonly internalType: "uint64";
|
|
815
|
+
readonly name: "nonce";
|
|
816
|
+
readonly type: "uint64";
|
|
817
|
+
}];
|
|
818
|
+
readonly internalType: "struct Origin";
|
|
819
|
+
readonly name: "_origin";
|
|
820
|
+
readonly type: "tuple";
|
|
821
|
+
}, {
|
|
822
|
+
readonly internalType: "bytes32";
|
|
823
|
+
readonly name: "_guid";
|
|
824
|
+
readonly type: "bytes32";
|
|
825
|
+
}, {
|
|
826
|
+
readonly internalType: "bytes";
|
|
827
|
+
readonly name: "_message";
|
|
828
|
+
readonly type: "bytes";
|
|
829
|
+
}, {
|
|
830
|
+
readonly internalType: "address";
|
|
831
|
+
readonly name: "_executor";
|
|
832
|
+
readonly type: "address";
|
|
833
|
+
}, {
|
|
834
|
+
readonly internalType: "bytes";
|
|
835
|
+
readonly name: "_extraData";
|
|
836
|
+
readonly type: "bytes";
|
|
837
|
+
}];
|
|
838
|
+
readonly name: "lzReceive";
|
|
839
|
+
readonly outputs: readonly [];
|
|
840
|
+
readonly stateMutability: "payable";
|
|
841
|
+
readonly type: "function";
|
|
842
|
+
}, {
|
|
843
|
+
readonly inputs: readonly [{
|
|
844
|
+
readonly components: readonly [{
|
|
845
|
+
readonly components: readonly [{
|
|
846
|
+
readonly internalType: "uint32";
|
|
847
|
+
readonly name: "srcEid";
|
|
848
|
+
readonly type: "uint32";
|
|
849
|
+
}, {
|
|
850
|
+
readonly internalType: "bytes32";
|
|
851
|
+
readonly name: "sender";
|
|
852
|
+
readonly type: "bytes32";
|
|
853
|
+
}, {
|
|
854
|
+
readonly internalType: "uint64";
|
|
855
|
+
readonly name: "nonce";
|
|
856
|
+
readonly type: "uint64";
|
|
857
|
+
}];
|
|
858
|
+
readonly internalType: "struct Origin";
|
|
859
|
+
readonly name: "origin";
|
|
860
|
+
readonly type: "tuple";
|
|
861
|
+
}, {
|
|
862
|
+
readonly internalType: "uint32";
|
|
863
|
+
readonly name: "dstEid";
|
|
864
|
+
readonly type: "uint32";
|
|
865
|
+
}, {
|
|
866
|
+
readonly internalType: "address";
|
|
867
|
+
readonly name: "receiver";
|
|
868
|
+
readonly type: "address";
|
|
869
|
+
}, {
|
|
870
|
+
readonly internalType: "bytes32";
|
|
871
|
+
readonly name: "guid";
|
|
872
|
+
readonly type: "bytes32";
|
|
873
|
+
}, {
|
|
874
|
+
readonly internalType: "uint256";
|
|
875
|
+
readonly name: "value";
|
|
876
|
+
readonly type: "uint256";
|
|
877
|
+
}, {
|
|
878
|
+
readonly internalType: "address";
|
|
879
|
+
readonly name: "executor";
|
|
880
|
+
readonly type: "address";
|
|
881
|
+
}, {
|
|
882
|
+
readonly internalType: "bytes";
|
|
883
|
+
readonly name: "message";
|
|
884
|
+
readonly type: "bytes";
|
|
885
|
+
}, {
|
|
886
|
+
readonly internalType: "bytes";
|
|
887
|
+
readonly name: "extraData";
|
|
888
|
+
readonly type: "bytes";
|
|
889
|
+
}];
|
|
890
|
+
readonly internalType: "struct InboundPacket[]";
|
|
891
|
+
readonly name: "_packets";
|
|
892
|
+
readonly type: "tuple[]";
|
|
893
|
+
}];
|
|
894
|
+
readonly name: "lzReceiveAndRevert";
|
|
895
|
+
readonly outputs: readonly [];
|
|
896
|
+
readonly stateMutability: "payable";
|
|
897
|
+
readonly type: "function";
|
|
898
|
+
}, {
|
|
899
|
+
readonly inputs: readonly [{
|
|
900
|
+
readonly components: readonly [{
|
|
901
|
+
readonly internalType: "uint32";
|
|
902
|
+
readonly name: "srcEid";
|
|
903
|
+
readonly type: "uint32";
|
|
904
|
+
}, {
|
|
905
|
+
readonly internalType: "bytes32";
|
|
906
|
+
readonly name: "sender";
|
|
907
|
+
readonly type: "bytes32";
|
|
908
|
+
}, {
|
|
909
|
+
readonly internalType: "uint64";
|
|
910
|
+
readonly name: "nonce";
|
|
911
|
+
readonly type: "uint64";
|
|
912
|
+
}];
|
|
913
|
+
readonly internalType: "struct Origin";
|
|
914
|
+
readonly name: "_origin";
|
|
915
|
+
readonly type: "tuple";
|
|
916
|
+
}, {
|
|
917
|
+
readonly internalType: "bytes32";
|
|
918
|
+
readonly name: "_guid";
|
|
919
|
+
readonly type: "bytes32";
|
|
920
|
+
}, {
|
|
921
|
+
readonly internalType: "bytes";
|
|
922
|
+
readonly name: "_message";
|
|
923
|
+
readonly type: "bytes";
|
|
924
|
+
}, {
|
|
925
|
+
readonly internalType: "address";
|
|
926
|
+
readonly name: "_executor";
|
|
927
|
+
readonly type: "address";
|
|
928
|
+
}, {
|
|
929
|
+
readonly internalType: "bytes";
|
|
930
|
+
readonly name: "_extraData";
|
|
931
|
+
readonly type: "bytes";
|
|
932
|
+
}];
|
|
933
|
+
readonly name: "lzReceiveSimulate";
|
|
934
|
+
readonly outputs: readonly [];
|
|
935
|
+
readonly stateMutability: "payable";
|
|
936
|
+
readonly type: "function";
|
|
937
|
+
}, {
|
|
938
|
+
readonly inputs: readonly [{
|
|
939
|
+
readonly internalType: "address";
|
|
940
|
+
readonly name: "_to";
|
|
941
|
+
readonly type: "address";
|
|
942
|
+
}, {
|
|
943
|
+
readonly internalType: "uint256";
|
|
944
|
+
readonly name: "_amount";
|
|
945
|
+
readonly type: "uint256";
|
|
946
|
+
}];
|
|
947
|
+
readonly name: "mint";
|
|
948
|
+
readonly outputs: readonly [];
|
|
949
|
+
readonly stateMutability: "nonpayable";
|
|
950
|
+
readonly type: "function";
|
|
951
|
+
}, {
|
|
952
|
+
readonly inputs: readonly [];
|
|
953
|
+
readonly name: "msgInspector";
|
|
954
|
+
readonly outputs: readonly [{
|
|
955
|
+
readonly internalType: "address";
|
|
956
|
+
readonly name: "";
|
|
957
|
+
readonly type: "address";
|
|
958
|
+
}];
|
|
959
|
+
readonly stateMutability: "view";
|
|
960
|
+
readonly type: "function";
|
|
961
|
+
}, {
|
|
962
|
+
readonly inputs: readonly [];
|
|
963
|
+
readonly name: "multisig";
|
|
964
|
+
readonly outputs: readonly [{
|
|
965
|
+
readonly internalType: "address";
|
|
966
|
+
readonly name: "";
|
|
967
|
+
readonly type: "address";
|
|
968
|
+
}];
|
|
969
|
+
readonly stateMutability: "view";
|
|
970
|
+
readonly type: "function";
|
|
971
|
+
}, {
|
|
972
|
+
readonly inputs: readonly [];
|
|
973
|
+
readonly name: "name";
|
|
974
|
+
readonly outputs: readonly [{
|
|
975
|
+
readonly internalType: "string";
|
|
976
|
+
readonly name: "";
|
|
977
|
+
readonly type: "string";
|
|
978
|
+
}];
|
|
979
|
+
readonly stateMutability: "view";
|
|
980
|
+
readonly type: "function";
|
|
981
|
+
}, {
|
|
982
|
+
readonly inputs: readonly [{
|
|
983
|
+
readonly internalType: "uint32";
|
|
984
|
+
readonly name: "";
|
|
985
|
+
readonly type: "uint32";
|
|
986
|
+
}, {
|
|
987
|
+
readonly internalType: "bytes32";
|
|
988
|
+
readonly name: "";
|
|
989
|
+
readonly type: "bytes32";
|
|
990
|
+
}];
|
|
991
|
+
readonly name: "nextNonce";
|
|
992
|
+
readonly outputs: readonly [{
|
|
993
|
+
readonly internalType: "uint64";
|
|
994
|
+
readonly name: "nonce";
|
|
995
|
+
readonly type: "uint64";
|
|
996
|
+
}];
|
|
997
|
+
readonly stateMutability: "view";
|
|
998
|
+
readonly type: "function";
|
|
999
|
+
}, {
|
|
1000
|
+
readonly inputs: readonly [];
|
|
1001
|
+
readonly name: "oApp";
|
|
1002
|
+
readonly outputs: readonly [{
|
|
1003
|
+
readonly internalType: "address";
|
|
1004
|
+
readonly name: "";
|
|
1005
|
+
readonly type: "address";
|
|
1006
|
+
}];
|
|
1007
|
+
readonly stateMutability: "view";
|
|
1008
|
+
readonly type: "function";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly inputs: readonly [];
|
|
1011
|
+
readonly name: "oAppVersion";
|
|
1012
|
+
readonly outputs: readonly [{
|
|
1013
|
+
readonly internalType: "uint64";
|
|
1014
|
+
readonly name: "senderVersion";
|
|
1015
|
+
readonly type: "uint64";
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly internalType: "uint64";
|
|
1018
|
+
readonly name: "receiverVersion";
|
|
1019
|
+
readonly type: "uint64";
|
|
1020
|
+
}];
|
|
1021
|
+
readonly stateMutability: "pure";
|
|
1022
|
+
readonly type: "function";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly inputs: readonly [];
|
|
1025
|
+
readonly name: "oftVersion";
|
|
1026
|
+
readonly outputs: readonly [{
|
|
1027
|
+
readonly internalType: "bytes4";
|
|
1028
|
+
readonly name: "interfaceId";
|
|
1029
|
+
readonly type: "bytes4";
|
|
1030
|
+
}, {
|
|
1031
|
+
readonly internalType: "uint64";
|
|
1032
|
+
readonly name: "version";
|
|
1033
|
+
readonly type: "uint64";
|
|
1034
|
+
}];
|
|
1035
|
+
readonly stateMutability: "pure";
|
|
1036
|
+
readonly type: "function";
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly inputs: readonly [];
|
|
1039
|
+
readonly name: "owner";
|
|
1040
|
+
readonly outputs: readonly [{
|
|
1041
|
+
readonly internalType: "address";
|
|
1042
|
+
readonly name: "";
|
|
1043
|
+
readonly type: "address";
|
|
1044
|
+
}];
|
|
1045
|
+
readonly stateMutability: "view";
|
|
1046
|
+
readonly type: "function";
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly inputs: readonly [{
|
|
1049
|
+
readonly internalType: "uint32";
|
|
1050
|
+
readonly name: "eid";
|
|
1051
|
+
readonly type: "uint32";
|
|
1052
|
+
}];
|
|
1053
|
+
readonly name: "peers";
|
|
1054
|
+
readonly outputs: readonly [{
|
|
1055
|
+
readonly internalType: "bytes32";
|
|
1056
|
+
readonly name: "peer";
|
|
1057
|
+
readonly type: "bytes32";
|
|
1058
|
+
}];
|
|
1059
|
+
readonly stateMutability: "view";
|
|
1060
|
+
readonly type: "function";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly inputs: readonly [];
|
|
1063
|
+
readonly name: "preCrime";
|
|
1064
|
+
readonly outputs: readonly [{
|
|
1065
|
+
readonly internalType: "address";
|
|
1066
|
+
readonly name: "";
|
|
1067
|
+
readonly type: "address";
|
|
1068
|
+
}];
|
|
1069
|
+
readonly stateMutability: "view";
|
|
1070
|
+
readonly type: "function";
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly inputs: readonly [{
|
|
1073
|
+
readonly components: readonly [{
|
|
1074
|
+
readonly internalType: "uint32";
|
|
1075
|
+
readonly name: "dstEid";
|
|
1076
|
+
readonly type: "uint32";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly internalType: "bytes32";
|
|
1079
|
+
readonly name: "to";
|
|
1080
|
+
readonly type: "bytes32";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly internalType: "uint256";
|
|
1083
|
+
readonly name: "amountLD";
|
|
1084
|
+
readonly type: "uint256";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly internalType: "uint256";
|
|
1087
|
+
readonly name: "minAmountLD";
|
|
1088
|
+
readonly type: "uint256";
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly internalType: "bytes";
|
|
1091
|
+
readonly name: "extraOptions";
|
|
1092
|
+
readonly type: "bytes";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly internalType: "bytes";
|
|
1095
|
+
readonly name: "composeMsg";
|
|
1096
|
+
readonly type: "bytes";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly internalType: "bytes";
|
|
1099
|
+
readonly name: "oftCmd";
|
|
1100
|
+
readonly type: "bytes";
|
|
1101
|
+
}];
|
|
1102
|
+
readonly internalType: "struct SendParam";
|
|
1103
|
+
readonly name: "_sendParam";
|
|
1104
|
+
readonly type: "tuple";
|
|
1105
|
+
}];
|
|
1106
|
+
readonly name: "quoteOFT";
|
|
1107
|
+
readonly outputs: readonly [{
|
|
1108
|
+
readonly components: readonly [{
|
|
1109
|
+
readonly internalType: "uint256";
|
|
1110
|
+
readonly name: "minAmountLD";
|
|
1111
|
+
readonly type: "uint256";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly internalType: "uint256";
|
|
1114
|
+
readonly name: "maxAmountLD";
|
|
1115
|
+
readonly type: "uint256";
|
|
1116
|
+
}];
|
|
1117
|
+
readonly internalType: "struct OFTLimit";
|
|
1118
|
+
readonly name: "oftLimit";
|
|
1119
|
+
readonly type: "tuple";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly components: readonly [{
|
|
1122
|
+
readonly internalType: "int256";
|
|
1123
|
+
readonly name: "feeAmountLD";
|
|
1124
|
+
readonly type: "int256";
|
|
1125
|
+
}, {
|
|
1126
|
+
readonly internalType: "string";
|
|
1127
|
+
readonly name: "description";
|
|
1128
|
+
readonly type: "string";
|
|
1129
|
+
}];
|
|
1130
|
+
readonly internalType: "struct OFTFeeDetail[]";
|
|
1131
|
+
readonly name: "oftFeeDetails";
|
|
1132
|
+
readonly type: "tuple[]";
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly components: readonly [{
|
|
1135
|
+
readonly internalType: "uint256";
|
|
1136
|
+
readonly name: "amountSentLD";
|
|
1137
|
+
readonly type: "uint256";
|
|
1138
|
+
}, {
|
|
1139
|
+
readonly internalType: "uint256";
|
|
1140
|
+
readonly name: "amountReceivedLD";
|
|
1141
|
+
readonly type: "uint256";
|
|
1142
|
+
}];
|
|
1143
|
+
readonly internalType: "struct OFTReceipt";
|
|
1144
|
+
readonly name: "oftReceipt";
|
|
1145
|
+
readonly type: "tuple";
|
|
1146
|
+
}];
|
|
1147
|
+
readonly stateMutability: "view";
|
|
1148
|
+
readonly type: "function";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly inputs: readonly [{
|
|
1151
|
+
readonly components: readonly [{
|
|
1152
|
+
readonly internalType: "uint32";
|
|
1153
|
+
readonly name: "dstEid";
|
|
1154
|
+
readonly type: "uint32";
|
|
1155
|
+
}, {
|
|
1156
|
+
readonly internalType: "bytes32";
|
|
1157
|
+
readonly name: "to";
|
|
1158
|
+
readonly type: "bytes32";
|
|
1159
|
+
}, {
|
|
1160
|
+
readonly internalType: "uint256";
|
|
1161
|
+
readonly name: "amountLD";
|
|
1162
|
+
readonly type: "uint256";
|
|
1163
|
+
}, {
|
|
1164
|
+
readonly internalType: "uint256";
|
|
1165
|
+
readonly name: "minAmountLD";
|
|
1166
|
+
readonly type: "uint256";
|
|
1167
|
+
}, {
|
|
1168
|
+
readonly internalType: "bytes";
|
|
1169
|
+
readonly name: "extraOptions";
|
|
1170
|
+
readonly type: "bytes";
|
|
1171
|
+
}, {
|
|
1172
|
+
readonly internalType: "bytes";
|
|
1173
|
+
readonly name: "composeMsg";
|
|
1174
|
+
readonly type: "bytes";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly internalType: "bytes";
|
|
1177
|
+
readonly name: "oftCmd";
|
|
1178
|
+
readonly type: "bytes";
|
|
1179
|
+
}];
|
|
1180
|
+
readonly internalType: "struct SendParam";
|
|
1181
|
+
readonly name: "_sendParam";
|
|
1182
|
+
readonly type: "tuple";
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly internalType: "bool";
|
|
1185
|
+
readonly name: "_payInLzToken";
|
|
1186
|
+
readonly type: "bool";
|
|
1187
|
+
}];
|
|
1188
|
+
readonly name: "quoteSend";
|
|
1189
|
+
readonly outputs: readonly [{
|
|
1190
|
+
readonly components: readonly [{
|
|
1191
|
+
readonly internalType: "uint256";
|
|
1192
|
+
readonly name: "nativeFee";
|
|
1193
|
+
readonly type: "uint256";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly internalType: "uint256";
|
|
1196
|
+
readonly name: "lzTokenFee";
|
|
1197
|
+
readonly type: "uint256";
|
|
1198
|
+
}];
|
|
1199
|
+
readonly internalType: "struct MessagingFee";
|
|
1200
|
+
readonly name: "msgFee";
|
|
1201
|
+
readonly type: "tuple";
|
|
1202
|
+
}];
|
|
1203
|
+
readonly stateMutability: "view";
|
|
1204
|
+
readonly type: "function";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly inputs: readonly [];
|
|
1207
|
+
readonly name: "renounceOwnership";
|
|
1208
|
+
readonly outputs: readonly [];
|
|
1209
|
+
readonly stateMutability: "nonpayable";
|
|
1210
|
+
readonly type: "function";
|
|
1211
|
+
}, {
|
|
1212
|
+
readonly inputs: readonly [{
|
|
1213
|
+
readonly components: readonly [{
|
|
1214
|
+
readonly internalType: "uint32";
|
|
1215
|
+
readonly name: "dstEid";
|
|
1216
|
+
readonly type: "uint32";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly internalType: "bytes32";
|
|
1219
|
+
readonly name: "to";
|
|
1220
|
+
readonly type: "bytes32";
|
|
1221
|
+
}, {
|
|
1222
|
+
readonly internalType: "uint256";
|
|
1223
|
+
readonly name: "amountLD";
|
|
1224
|
+
readonly type: "uint256";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly internalType: "uint256";
|
|
1227
|
+
readonly name: "minAmountLD";
|
|
1228
|
+
readonly type: "uint256";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly internalType: "bytes";
|
|
1231
|
+
readonly name: "extraOptions";
|
|
1232
|
+
readonly type: "bytes";
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly internalType: "bytes";
|
|
1235
|
+
readonly name: "composeMsg";
|
|
1236
|
+
readonly type: "bytes";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly internalType: "bytes";
|
|
1239
|
+
readonly name: "oftCmd";
|
|
1240
|
+
readonly type: "bytes";
|
|
1241
|
+
}];
|
|
1242
|
+
readonly internalType: "struct SendParam";
|
|
1243
|
+
readonly name: "_sendParam";
|
|
1244
|
+
readonly type: "tuple";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly components: readonly [{
|
|
1247
|
+
readonly internalType: "uint256";
|
|
1248
|
+
readonly name: "nativeFee";
|
|
1249
|
+
readonly type: "uint256";
|
|
1250
|
+
}, {
|
|
1251
|
+
readonly internalType: "uint256";
|
|
1252
|
+
readonly name: "lzTokenFee";
|
|
1253
|
+
readonly type: "uint256";
|
|
1254
|
+
}];
|
|
1255
|
+
readonly internalType: "struct MessagingFee";
|
|
1256
|
+
readonly name: "_fee";
|
|
1257
|
+
readonly type: "tuple";
|
|
1258
|
+
}, {
|
|
1259
|
+
readonly internalType: "address";
|
|
1260
|
+
readonly name: "_refundAddress";
|
|
1261
|
+
readonly type: "address";
|
|
1262
|
+
}];
|
|
1263
|
+
readonly name: "send";
|
|
1264
|
+
readonly outputs: readonly [{
|
|
1265
|
+
readonly components: readonly [{
|
|
1266
|
+
readonly internalType: "bytes32";
|
|
1267
|
+
readonly name: "guid";
|
|
1268
|
+
readonly type: "bytes32";
|
|
1269
|
+
}, {
|
|
1270
|
+
readonly internalType: "uint64";
|
|
1271
|
+
readonly name: "nonce";
|
|
1272
|
+
readonly type: "uint64";
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly components: readonly [{
|
|
1275
|
+
readonly internalType: "uint256";
|
|
1276
|
+
readonly name: "nativeFee";
|
|
1277
|
+
readonly type: "uint256";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly internalType: "uint256";
|
|
1280
|
+
readonly name: "lzTokenFee";
|
|
1281
|
+
readonly type: "uint256";
|
|
1282
|
+
}];
|
|
1283
|
+
readonly internalType: "struct MessagingFee";
|
|
1284
|
+
readonly name: "fee";
|
|
1285
|
+
readonly type: "tuple";
|
|
1286
|
+
}];
|
|
1287
|
+
readonly internalType: "struct MessagingReceipt";
|
|
1288
|
+
readonly name: "msgReceipt";
|
|
1289
|
+
readonly type: "tuple";
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly components: readonly [{
|
|
1292
|
+
readonly internalType: "uint256";
|
|
1293
|
+
readonly name: "amountSentLD";
|
|
1294
|
+
readonly type: "uint256";
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly internalType: "uint256";
|
|
1297
|
+
readonly name: "amountReceivedLD";
|
|
1298
|
+
readonly type: "uint256";
|
|
1299
|
+
}];
|
|
1300
|
+
readonly internalType: "struct OFTReceipt";
|
|
1301
|
+
readonly name: "oftReceipt";
|
|
1302
|
+
readonly type: "tuple";
|
|
1303
|
+
}];
|
|
1304
|
+
readonly stateMutability: "payable";
|
|
1305
|
+
readonly type: "function";
|
|
1306
|
+
}, {
|
|
1307
|
+
readonly inputs: readonly [{
|
|
1308
|
+
readonly internalType: "address";
|
|
1309
|
+
readonly name: "_delegate";
|
|
1310
|
+
readonly type: "address";
|
|
1311
|
+
}];
|
|
1312
|
+
readonly name: "setDelegate";
|
|
1313
|
+
readonly outputs: readonly [];
|
|
1314
|
+
readonly stateMutability: "nonpayable";
|
|
1315
|
+
readonly type: "function";
|
|
1316
|
+
}, {
|
|
1317
|
+
readonly inputs: readonly [{
|
|
1318
|
+
readonly components: readonly [{
|
|
1319
|
+
readonly internalType: "uint32";
|
|
1320
|
+
readonly name: "eid";
|
|
1321
|
+
readonly type: "uint32";
|
|
1322
|
+
}, {
|
|
1323
|
+
readonly internalType: "uint16";
|
|
1324
|
+
readonly name: "msgType";
|
|
1325
|
+
readonly type: "uint16";
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly internalType: "bytes";
|
|
1328
|
+
readonly name: "options";
|
|
1329
|
+
readonly type: "bytes";
|
|
1330
|
+
}];
|
|
1331
|
+
readonly internalType: "struct EnforcedOptionParam[]";
|
|
1332
|
+
readonly name: "_enforcedOptions";
|
|
1333
|
+
readonly type: "tuple[]";
|
|
1334
|
+
}];
|
|
1335
|
+
readonly name: "setEnforcedOptions";
|
|
1336
|
+
readonly outputs: readonly [];
|
|
1337
|
+
readonly stateMutability: "nonpayable";
|
|
1338
|
+
readonly type: "function";
|
|
1339
|
+
}, {
|
|
1340
|
+
readonly inputs: readonly [{
|
|
1341
|
+
readonly internalType: "address";
|
|
1342
|
+
readonly name: "_address";
|
|
1343
|
+
readonly type: "address";
|
|
1344
|
+
}];
|
|
1345
|
+
readonly name: "setMinter";
|
|
1346
|
+
readonly outputs: readonly [];
|
|
1347
|
+
readonly stateMutability: "nonpayable";
|
|
1348
|
+
readonly type: "function";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly inputs: readonly [{
|
|
1351
|
+
readonly internalType: "address";
|
|
1352
|
+
readonly name: "_msgInspector";
|
|
1353
|
+
readonly type: "address";
|
|
1354
|
+
}];
|
|
1355
|
+
readonly name: "setMsgInspector";
|
|
1356
|
+
readonly outputs: readonly [];
|
|
1357
|
+
readonly stateMutability: "nonpayable";
|
|
1358
|
+
readonly type: "function";
|
|
1359
|
+
}, {
|
|
1360
|
+
readonly inputs: readonly [{
|
|
1361
|
+
readonly internalType: "uint32";
|
|
1362
|
+
readonly name: "_eid";
|
|
1363
|
+
readonly type: "uint32";
|
|
1364
|
+
}, {
|
|
1365
|
+
readonly internalType: "bytes32";
|
|
1366
|
+
readonly name: "_peer";
|
|
1367
|
+
readonly type: "bytes32";
|
|
1368
|
+
}];
|
|
1369
|
+
readonly name: "setPeer";
|
|
1370
|
+
readonly outputs: readonly [];
|
|
1371
|
+
readonly stateMutability: "nonpayable";
|
|
1372
|
+
readonly type: "function";
|
|
1373
|
+
}, {
|
|
1374
|
+
readonly inputs: readonly [{
|
|
1375
|
+
readonly internalType: "address";
|
|
1376
|
+
readonly name: "_preCrime";
|
|
1377
|
+
readonly type: "address";
|
|
1378
|
+
}];
|
|
1379
|
+
readonly name: "setPreCrime";
|
|
1380
|
+
readonly outputs: readonly [];
|
|
1381
|
+
readonly stateMutability: "nonpayable";
|
|
1382
|
+
readonly type: "function";
|
|
1383
|
+
}, {
|
|
1384
|
+
readonly inputs: readonly [{
|
|
1385
|
+
readonly internalType: "uint256";
|
|
1386
|
+
readonly name: "newTimestamp";
|
|
1387
|
+
readonly type: "uint256";
|
|
1388
|
+
}];
|
|
1389
|
+
readonly name: "setTransferAllowedTime";
|
|
1390
|
+
readonly outputs: readonly [];
|
|
1391
|
+
readonly stateMutability: "nonpayable";
|
|
1392
|
+
readonly type: "function";
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly inputs: readonly [{
|
|
1395
|
+
readonly internalType: "address";
|
|
1396
|
+
readonly name: "_address";
|
|
1397
|
+
readonly type: "address";
|
|
1398
|
+
}];
|
|
1399
|
+
readonly name: "setWhitelisted";
|
|
1400
|
+
readonly outputs: readonly [];
|
|
1401
|
+
readonly stateMutability: "nonpayable";
|
|
1402
|
+
readonly type: "function";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly inputs: readonly [];
|
|
1405
|
+
readonly name: "sharedDecimals";
|
|
1406
|
+
readonly outputs: readonly [{
|
|
1407
|
+
readonly internalType: "uint8";
|
|
1408
|
+
readonly name: "";
|
|
1409
|
+
readonly type: "uint8";
|
|
1410
|
+
}];
|
|
1411
|
+
readonly stateMutability: "view";
|
|
1412
|
+
readonly type: "function";
|
|
1413
|
+
}, {
|
|
1414
|
+
readonly inputs: readonly [];
|
|
1415
|
+
readonly name: "supplyAllChains";
|
|
1416
|
+
readonly outputs: readonly [{
|
|
1417
|
+
readonly internalType: "uint256";
|
|
1418
|
+
readonly name: "";
|
|
1419
|
+
readonly type: "uint256";
|
|
1420
|
+
}];
|
|
1421
|
+
readonly stateMutability: "view";
|
|
1422
|
+
readonly type: "function";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly inputs: readonly [];
|
|
1425
|
+
readonly name: "symbol";
|
|
1426
|
+
readonly outputs: readonly [{
|
|
1427
|
+
readonly internalType: "string";
|
|
1428
|
+
readonly name: "";
|
|
1429
|
+
readonly type: "string";
|
|
1430
|
+
}];
|
|
1431
|
+
readonly stateMutability: "view";
|
|
1432
|
+
readonly type: "function";
|
|
1433
|
+
}, {
|
|
1434
|
+
readonly inputs: readonly [{
|
|
1435
|
+
readonly internalType: "uint256";
|
|
1436
|
+
readonly name: "_newSupply";
|
|
1437
|
+
readonly type: "uint256";
|
|
1438
|
+
}];
|
|
1439
|
+
readonly name: "syncSupplyAllChains";
|
|
1440
|
+
readonly outputs: readonly [];
|
|
1441
|
+
readonly stateMutability: "nonpayable";
|
|
1442
|
+
readonly type: "function";
|
|
1443
|
+
}, {
|
|
1444
|
+
readonly inputs: readonly [];
|
|
1445
|
+
readonly name: "token";
|
|
1446
|
+
readonly outputs: readonly [{
|
|
1447
|
+
readonly internalType: "address";
|
|
1448
|
+
readonly name: "";
|
|
1449
|
+
readonly type: "address";
|
|
1450
|
+
}];
|
|
1451
|
+
readonly stateMutability: "view";
|
|
1452
|
+
readonly type: "function";
|
|
1453
|
+
}, {
|
|
1454
|
+
readonly inputs: readonly [];
|
|
1455
|
+
readonly name: "totalSupply";
|
|
1456
|
+
readonly outputs: readonly [{
|
|
1457
|
+
readonly internalType: "uint256";
|
|
1458
|
+
readonly name: "";
|
|
1459
|
+
readonly type: "uint256";
|
|
1460
|
+
}];
|
|
1461
|
+
readonly stateMutability: "view";
|
|
1462
|
+
readonly type: "function";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly inputs: readonly [{
|
|
1465
|
+
readonly internalType: "address";
|
|
1466
|
+
readonly name: "to";
|
|
1467
|
+
readonly type: "address";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly internalType: "uint256";
|
|
1470
|
+
readonly name: "value";
|
|
1471
|
+
readonly type: "uint256";
|
|
1472
|
+
}];
|
|
1473
|
+
readonly name: "transfer";
|
|
1474
|
+
readonly outputs: readonly [{
|
|
1475
|
+
readonly internalType: "bool";
|
|
1476
|
+
readonly name: "";
|
|
1477
|
+
readonly type: "bool";
|
|
1478
|
+
}];
|
|
1479
|
+
readonly stateMutability: "nonpayable";
|
|
1480
|
+
readonly type: "function";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly inputs: readonly [];
|
|
1483
|
+
readonly name: "transferAllowedTime";
|
|
1484
|
+
readonly outputs: readonly [{
|
|
1485
|
+
readonly internalType: "uint256";
|
|
1486
|
+
readonly name: "";
|
|
1487
|
+
readonly type: "uint256";
|
|
1488
|
+
}];
|
|
1489
|
+
readonly stateMutability: "view";
|
|
1490
|
+
readonly type: "function";
|
|
1491
|
+
}, {
|
|
1492
|
+
readonly inputs: readonly [{
|
|
1493
|
+
readonly internalType: "address";
|
|
1494
|
+
readonly name: "from";
|
|
1495
|
+
readonly type: "address";
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly internalType: "address";
|
|
1498
|
+
readonly name: "to";
|
|
1499
|
+
readonly type: "address";
|
|
1500
|
+
}, {
|
|
1501
|
+
readonly internalType: "uint256";
|
|
1502
|
+
readonly name: "value";
|
|
1503
|
+
readonly type: "uint256";
|
|
1504
|
+
}];
|
|
1505
|
+
readonly name: "transferFrom";
|
|
1506
|
+
readonly outputs: readonly [{
|
|
1507
|
+
readonly internalType: "bool";
|
|
1508
|
+
readonly name: "";
|
|
1509
|
+
readonly type: "bool";
|
|
1510
|
+
}];
|
|
1511
|
+
readonly stateMutability: "nonpayable";
|
|
1512
|
+
readonly type: "function";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly inputs: readonly [{
|
|
1515
|
+
readonly internalType: "address";
|
|
1516
|
+
readonly name: "newOwner";
|
|
1517
|
+
readonly type: "address";
|
|
1518
|
+
}];
|
|
1519
|
+
readonly name: "transferOwnership";
|
|
1520
|
+
readonly outputs: readonly [];
|
|
1521
|
+
readonly stateMutability: "nonpayable";
|
|
1522
|
+
readonly type: "function";
|
|
1523
|
+
}];
|
|
1524
|
+
/**
|
|
1525
|
+
* Type-safe ABI for PieverseOFT
|
|
1526
|
+
*/
|
|
1527
|
+
export type PieverseOFTAbi = typeof PieverseOFTAbi;
|
|
1528
|
+
/**
|
|
1529
|
+
* Contract instance type for PieverseOFT
|
|
1530
|
+
*/
|
|
1531
|
+
export type PieverseOFTContract = any;
|
|
1532
|
+
/**
|
|
1533
|
+
* PieverseOFT Contract Class
|
|
1534
|
+
*
|
|
1535
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1536
|
+
*
|
|
1537
|
+
* @example
|
|
1538
|
+
* ```typescript
|
|
1539
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1540
|
+
* import { mainnet } from 'viem/chains';
|
|
1541
|
+
* import { PieverseOFT } from 'PieverseOFT';
|
|
1542
|
+
*
|
|
1543
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1544
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1545
|
+
*
|
|
1546
|
+
* const contract = new PieverseOFT('0x...', { publicClient, walletClient });
|
|
1547
|
+
*
|
|
1548
|
+
* // Read functions
|
|
1549
|
+
* const result = await contract.balanceOf('0x...');
|
|
1550
|
+
*
|
|
1551
|
+
* // Write functions
|
|
1552
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1553
|
+
*
|
|
1554
|
+
* // Simulate transactions (dry-run)
|
|
1555
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1556
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1557
|
+
*
|
|
1558
|
+
* // Watch events
|
|
1559
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1560
|
+
* console.log('Transfer event:', event);
|
|
1561
|
+
* });
|
|
1562
|
+
* ```
|
|
1563
|
+
*/
|
|
1564
|
+
export declare class PieverseOFT {
|
|
1565
|
+
private contract;
|
|
1566
|
+
private contractAddress;
|
|
1567
|
+
private publicClient;
|
|
1568
|
+
constructor(address: Address, clients: {
|
|
1569
|
+
publicClient: PublicClient;
|
|
1570
|
+
walletClient?: WalletClient;
|
|
1571
|
+
});
|
|
1572
|
+
/**
|
|
1573
|
+
* Get the contract address
|
|
1574
|
+
*/
|
|
1575
|
+
get address(): Address;
|
|
1576
|
+
/**
|
|
1577
|
+
* Get the underlying viem contract instance.
|
|
1578
|
+
*/
|
|
1579
|
+
getContract(): PieverseOFTContract;
|
|
1580
|
+
/**
|
|
1581
|
+
* ETA
|
|
1582
|
+
* view
|
|
1583
|
+
*/
|
|
1584
|
+
ETA(): Promise<bigint>;
|
|
1585
|
+
/**
|
|
1586
|
+
* MAX_SUPPLY
|
|
1587
|
+
* view
|
|
1588
|
+
*/
|
|
1589
|
+
MAX_SUPPLY(): Promise<bigint>;
|
|
1590
|
+
/**
|
|
1591
|
+
* SEND
|
|
1592
|
+
* view
|
|
1593
|
+
*/
|
|
1594
|
+
SEND(): Promise<bigint>;
|
|
1595
|
+
/**
|
|
1596
|
+
* SEND_AND_CALL
|
|
1597
|
+
* view
|
|
1598
|
+
*/
|
|
1599
|
+
SEND_AND_CALL(): Promise<bigint>;
|
|
1600
|
+
/**
|
|
1601
|
+
* allowInitializePath
|
|
1602
|
+
* view
|
|
1603
|
+
*/
|
|
1604
|
+
allowInitializePath(origin: Origin): Promise<boolean>;
|
|
1605
|
+
/**
|
|
1606
|
+
* allowance
|
|
1607
|
+
* view
|
|
1608
|
+
*/
|
|
1609
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
1610
|
+
/**
|
|
1611
|
+
* approvalRequired
|
|
1612
|
+
* pure
|
|
1613
|
+
*/
|
|
1614
|
+
approvalRequired(): Promise<boolean>;
|
|
1615
|
+
/**
|
|
1616
|
+
* areTransfersAllowed
|
|
1617
|
+
* view
|
|
1618
|
+
*/
|
|
1619
|
+
areTransfersAllowed(): Promise<boolean>;
|
|
1620
|
+
/**
|
|
1621
|
+
* balanceOf
|
|
1622
|
+
* view
|
|
1623
|
+
*/
|
|
1624
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
1625
|
+
/**
|
|
1626
|
+
* combineOptions
|
|
1627
|
+
* view
|
|
1628
|
+
*/
|
|
1629
|
+
combineOptions(_eid: bigint, _msgType: bigint, _extraOptions: `0x${string}`): Promise<`0x${string}`>;
|
|
1630
|
+
/**
|
|
1631
|
+
* decimalConversionRate
|
|
1632
|
+
* view
|
|
1633
|
+
*/
|
|
1634
|
+
decimalConversionRate(): Promise<bigint>;
|
|
1635
|
+
/**
|
|
1636
|
+
* decimals
|
|
1637
|
+
* view
|
|
1638
|
+
*/
|
|
1639
|
+
decimals(): Promise<bigint>;
|
|
1640
|
+
/**
|
|
1641
|
+
* endpoint
|
|
1642
|
+
* view
|
|
1643
|
+
*/
|
|
1644
|
+
endpoint(): Promise<`0x${string}`>;
|
|
1645
|
+
/**
|
|
1646
|
+
* enforcedOptions
|
|
1647
|
+
* view
|
|
1648
|
+
*/
|
|
1649
|
+
enforcedOptions(eid: bigint, msgType: bigint): Promise<`0x${string}`>;
|
|
1650
|
+
/**
|
|
1651
|
+
* isComposeMsgSender
|
|
1652
|
+
* view
|
|
1653
|
+
*/
|
|
1654
|
+
isComposeMsgSender(arg0: Origin, arg1: `0x${string}`, _sender: `0x${string}`): Promise<boolean>;
|
|
1655
|
+
/**
|
|
1656
|
+
* isMinter
|
|
1657
|
+
* view
|
|
1658
|
+
*/
|
|
1659
|
+
isMinter(arg0: `0x${string}`): Promise<boolean>;
|
|
1660
|
+
/**
|
|
1661
|
+
* isPeer
|
|
1662
|
+
* view
|
|
1663
|
+
*/
|
|
1664
|
+
isPeer(_eid: bigint, _peer: `0x${string}`): Promise<boolean>;
|
|
1665
|
+
/**
|
|
1666
|
+
* isWhitelisted
|
|
1667
|
+
* view
|
|
1668
|
+
*/
|
|
1669
|
+
isWhitelisted(arg0: `0x${string}`): Promise<boolean>;
|
|
1670
|
+
/**
|
|
1671
|
+
* msgInspector
|
|
1672
|
+
* view
|
|
1673
|
+
*/
|
|
1674
|
+
msgInspector(): Promise<`0x${string}`>;
|
|
1675
|
+
/**
|
|
1676
|
+
* multisig
|
|
1677
|
+
* view
|
|
1678
|
+
*/
|
|
1679
|
+
multisig(): Promise<`0x${string}`>;
|
|
1680
|
+
/**
|
|
1681
|
+
* name
|
|
1682
|
+
* view
|
|
1683
|
+
*/
|
|
1684
|
+
name(): Promise<string>;
|
|
1685
|
+
/**
|
|
1686
|
+
* nextNonce
|
|
1687
|
+
* view
|
|
1688
|
+
*/
|
|
1689
|
+
nextNonce(arg0: bigint, arg1: `0x${string}`): Promise<bigint>;
|
|
1690
|
+
/**
|
|
1691
|
+
* oApp
|
|
1692
|
+
* view
|
|
1693
|
+
*/
|
|
1694
|
+
oApp(): Promise<`0x${string}`>;
|
|
1695
|
+
/**
|
|
1696
|
+
* oAppVersion
|
|
1697
|
+
* pure
|
|
1698
|
+
*/
|
|
1699
|
+
oAppVersion(): Promise<[bigint, bigint]>;
|
|
1700
|
+
/**
|
|
1701
|
+
* oftVersion
|
|
1702
|
+
* pure
|
|
1703
|
+
*/
|
|
1704
|
+
oftVersion(): Promise<[`0x${string}`, bigint]>;
|
|
1705
|
+
/**
|
|
1706
|
+
* owner
|
|
1707
|
+
* view
|
|
1708
|
+
*/
|
|
1709
|
+
owner(): Promise<`0x${string}`>;
|
|
1710
|
+
/**
|
|
1711
|
+
* peers
|
|
1712
|
+
* view
|
|
1713
|
+
*/
|
|
1714
|
+
peers(eid: bigint): Promise<`0x${string}`>;
|
|
1715
|
+
/**
|
|
1716
|
+
* preCrime
|
|
1717
|
+
* view
|
|
1718
|
+
*/
|
|
1719
|
+
preCrime(): Promise<`0x${string}`>;
|
|
1720
|
+
/**
|
|
1721
|
+
* quoteOFT
|
|
1722
|
+
* view
|
|
1723
|
+
*/
|
|
1724
|
+
quoteOFT(_sendParam: SendParam): Promise<[OFTLimit, OFTFeeDetail[], OFTReceipt]>;
|
|
1725
|
+
/**
|
|
1726
|
+
* quoteSend
|
|
1727
|
+
* view
|
|
1728
|
+
*/
|
|
1729
|
+
quoteSend(_sendParam: SendParam, _payInLzToken: boolean): Promise<MessagingFee>;
|
|
1730
|
+
/**
|
|
1731
|
+
* sharedDecimals
|
|
1732
|
+
* view
|
|
1733
|
+
*/
|
|
1734
|
+
sharedDecimals(): Promise<bigint>;
|
|
1735
|
+
/**
|
|
1736
|
+
* supplyAllChains
|
|
1737
|
+
* view
|
|
1738
|
+
*/
|
|
1739
|
+
supplyAllChains(): Promise<bigint>;
|
|
1740
|
+
/**
|
|
1741
|
+
* symbol
|
|
1742
|
+
* view
|
|
1743
|
+
*/
|
|
1744
|
+
symbol(): Promise<string>;
|
|
1745
|
+
/**
|
|
1746
|
+
* token
|
|
1747
|
+
* view
|
|
1748
|
+
*/
|
|
1749
|
+
token(): Promise<`0x${string}`>;
|
|
1750
|
+
/**
|
|
1751
|
+
* totalSupply
|
|
1752
|
+
* view
|
|
1753
|
+
*/
|
|
1754
|
+
totalSupply(): Promise<bigint>;
|
|
1755
|
+
/**
|
|
1756
|
+
* transferAllowedTime
|
|
1757
|
+
* view
|
|
1758
|
+
*/
|
|
1759
|
+
transferAllowedTime(): Promise<bigint>;
|
|
1760
|
+
/**
|
|
1761
|
+
* approve
|
|
1762
|
+
* nonpayable
|
|
1763
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1764
|
+
*/
|
|
1765
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
1766
|
+
accessList?: import('viem').AccessList;
|
|
1767
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1768
|
+
chain?: import('viem').Chain | null;
|
|
1769
|
+
dataSuffix?: `0x${string}`;
|
|
1770
|
+
gas?: bigint;
|
|
1771
|
+
gasPrice?: bigint;
|
|
1772
|
+
maxFeePerGas?: bigint;
|
|
1773
|
+
maxPriorityFeePerGas?: bigint;
|
|
1774
|
+
nonce?: number;
|
|
1775
|
+
value?: bigint;
|
|
1776
|
+
}): Promise<`0x${string}`>;
|
|
1777
|
+
/**
|
|
1778
|
+
* lzReceive
|
|
1779
|
+
* payable
|
|
1780
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1781
|
+
*/
|
|
1782
|
+
lzReceive(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
|
|
1783
|
+
accessList?: import('viem').AccessList;
|
|
1784
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1785
|
+
chain?: import('viem').Chain | null;
|
|
1786
|
+
dataSuffix?: `0x${string}`;
|
|
1787
|
+
gas?: bigint;
|
|
1788
|
+
gasPrice?: bigint;
|
|
1789
|
+
maxFeePerGas?: bigint;
|
|
1790
|
+
maxPriorityFeePerGas?: bigint;
|
|
1791
|
+
nonce?: number;
|
|
1792
|
+
value?: bigint;
|
|
1793
|
+
}): Promise<`0x${string}`>;
|
|
1794
|
+
/**
|
|
1795
|
+
* lzReceiveAndRevert
|
|
1796
|
+
* payable
|
|
1797
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1798
|
+
*/
|
|
1799
|
+
lzReceiveAndRevert(_packets: InboundPacket[], options?: {
|
|
1800
|
+
accessList?: import('viem').AccessList;
|
|
1801
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1802
|
+
chain?: import('viem').Chain | null;
|
|
1803
|
+
dataSuffix?: `0x${string}`;
|
|
1804
|
+
gas?: bigint;
|
|
1805
|
+
gasPrice?: bigint;
|
|
1806
|
+
maxFeePerGas?: bigint;
|
|
1807
|
+
maxPriorityFeePerGas?: bigint;
|
|
1808
|
+
nonce?: number;
|
|
1809
|
+
value?: bigint;
|
|
1810
|
+
}): Promise<`0x${string}`>;
|
|
1811
|
+
/**
|
|
1812
|
+
* lzReceiveSimulate
|
|
1813
|
+
* payable
|
|
1814
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1815
|
+
*/
|
|
1816
|
+
lzReceiveSimulate(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
|
|
1817
|
+
accessList?: import('viem').AccessList;
|
|
1818
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1819
|
+
chain?: import('viem').Chain | null;
|
|
1820
|
+
dataSuffix?: `0x${string}`;
|
|
1821
|
+
gas?: bigint;
|
|
1822
|
+
gasPrice?: bigint;
|
|
1823
|
+
maxFeePerGas?: bigint;
|
|
1824
|
+
maxPriorityFeePerGas?: bigint;
|
|
1825
|
+
nonce?: number;
|
|
1826
|
+
value?: bigint;
|
|
1827
|
+
}): Promise<`0x${string}`>;
|
|
1828
|
+
/**
|
|
1829
|
+
* mint
|
|
1830
|
+
* nonpayable
|
|
1831
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1832
|
+
*/
|
|
1833
|
+
mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
1834
|
+
accessList?: import('viem').AccessList;
|
|
1835
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1836
|
+
chain?: import('viem').Chain | null;
|
|
1837
|
+
dataSuffix?: `0x${string}`;
|
|
1838
|
+
gas?: bigint;
|
|
1839
|
+
gasPrice?: bigint;
|
|
1840
|
+
maxFeePerGas?: bigint;
|
|
1841
|
+
maxPriorityFeePerGas?: bigint;
|
|
1842
|
+
nonce?: number;
|
|
1843
|
+
value?: bigint;
|
|
1844
|
+
}): Promise<`0x${string}`>;
|
|
1845
|
+
/**
|
|
1846
|
+
* renounceOwnership
|
|
1847
|
+
* nonpayable
|
|
1848
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1849
|
+
*/
|
|
1850
|
+
renounceOwnership(options?: {
|
|
1851
|
+
accessList?: import('viem').AccessList;
|
|
1852
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1853
|
+
chain?: import('viem').Chain | null;
|
|
1854
|
+
dataSuffix?: `0x${string}`;
|
|
1855
|
+
gas?: bigint;
|
|
1856
|
+
gasPrice?: bigint;
|
|
1857
|
+
maxFeePerGas?: bigint;
|
|
1858
|
+
maxPriorityFeePerGas?: bigint;
|
|
1859
|
+
nonce?: number;
|
|
1860
|
+
value?: bigint;
|
|
1861
|
+
}): Promise<`0x${string}`>;
|
|
1862
|
+
/**
|
|
1863
|
+
* send
|
|
1864
|
+
* payable
|
|
1865
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1866
|
+
*/
|
|
1867
|
+
send(_sendParam: SendParam, _fee: MessagingFee, _refundAddress: `0x${string}`, options?: {
|
|
1868
|
+
accessList?: import('viem').AccessList;
|
|
1869
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1870
|
+
chain?: import('viem').Chain | null;
|
|
1871
|
+
dataSuffix?: `0x${string}`;
|
|
1872
|
+
gas?: bigint;
|
|
1873
|
+
gasPrice?: bigint;
|
|
1874
|
+
maxFeePerGas?: bigint;
|
|
1875
|
+
maxPriorityFeePerGas?: bigint;
|
|
1876
|
+
nonce?: number;
|
|
1877
|
+
value?: bigint;
|
|
1878
|
+
}): Promise<`0x${string}`>;
|
|
1879
|
+
/**
|
|
1880
|
+
* setDelegate
|
|
1881
|
+
* nonpayable
|
|
1882
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1883
|
+
*/
|
|
1884
|
+
setDelegate(_delegate: `0x${string}`, options?: {
|
|
1885
|
+
accessList?: import('viem').AccessList;
|
|
1886
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1887
|
+
chain?: import('viem').Chain | null;
|
|
1888
|
+
dataSuffix?: `0x${string}`;
|
|
1889
|
+
gas?: bigint;
|
|
1890
|
+
gasPrice?: bigint;
|
|
1891
|
+
maxFeePerGas?: bigint;
|
|
1892
|
+
maxPriorityFeePerGas?: bigint;
|
|
1893
|
+
nonce?: number;
|
|
1894
|
+
value?: bigint;
|
|
1895
|
+
}): Promise<`0x${string}`>;
|
|
1896
|
+
/**
|
|
1897
|
+
* setEnforcedOptions
|
|
1898
|
+
* nonpayable
|
|
1899
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1900
|
+
*/
|
|
1901
|
+
setEnforcedOptions(_enforcedOptions: EnforcedOptionParam[], options?: {
|
|
1902
|
+
accessList?: import('viem').AccessList;
|
|
1903
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1904
|
+
chain?: import('viem').Chain | null;
|
|
1905
|
+
dataSuffix?: `0x${string}`;
|
|
1906
|
+
gas?: bigint;
|
|
1907
|
+
gasPrice?: bigint;
|
|
1908
|
+
maxFeePerGas?: bigint;
|
|
1909
|
+
maxPriorityFeePerGas?: bigint;
|
|
1910
|
+
nonce?: number;
|
|
1911
|
+
value?: bigint;
|
|
1912
|
+
}): Promise<`0x${string}`>;
|
|
1913
|
+
/**
|
|
1914
|
+
* setMinter
|
|
1915
|
+
* nonpayable
|
|
1916
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1917
|
+
*/
|
|
1918
|
+
setMinter(_address: `0x${string}`, options?: {
|
|
1919
|
+
accessList?: import('viem').AccessList;
|
|
1920
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1921
|
+
chain?: import('viem').Chain | null;
|
|
1922
|
+
dataSuffix?: `0x${string}`;
|
|
1923
|
+
gas?: bigint;
|
|
1924
|
+
gasPrice?: bigint;
|
|
1925
|
+
maxFeePerGas?: bigint;
|
|
1926
|
+
maxPriorityFeePerGas?: bigint;
|
|
1927
|
+
nonce?: number;
|
|
1928
|
+
value?: bigint;
|
|
1929
|
+
}): Promise<`0x${string}`>;
|
|
1930
|
+
/**
|
|
1931
|
+
* setMsgInspector
|
|
1932
|
+
* nonpayable
|
|
1933
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1934
|
+
*/
|
|
1935
|
+
setMsgInspector(_msgInspector: `0x${string}`, options?: {
|
|
1936
|
+
accessList?: import('viem').AccessList;
|
|
1937
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1938
|
+
chain?: import('viem').Chain | null;
|
|
1939
|
+
dataSuffix?: `0x${string}`;
|
|
1940
|
+
gas?: bigint;
|
|
1941
|
+
gasPrice?: bigint;
|
|
1942
|
+
maxFeePerGas?: bigint;
|
|
1943
|
+
maxPriorityFeePerGas?: bigint;
|
|
1944
|
+
nonce?: number;
|
|
1945
|
+
value?: bigint;
|
|
1946
|
+
}): Promise<`0x${string}`>;
|
|
1947
|
+
/**
|
|
1948
|
+
* setPeer
|
|
1949
|
+
* nonpayable
|
|
1950
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1951
|
+
*/
|
|
1952
|
+
setPeer(_eid: bigint, _peer: `0x${string}`, options?: {
|
|
1953
|
+
accessList?: import('viem').AccessList;
|
|
1954
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1955
|
+
chain?: import('viem').Chain | null;
|
|
1956
|
+
dataSuffix?: `0x${string}`;
|
|
1957
|
+
gas?: bigint;
|
|
1958
|
+
gasPrice?: bigint;
|
|
1959
|
+
maxFeePerGas?: bigint;
|
|
1960
|
+
maxPriorityFeePerGas?: bigint;
|
|
1961
|
+
nonce?: number;
|
|
1962
|
+
value?: bigint;
|
|
1963
|
+
}): Promise<`0x${string}`>;
|
|
1964
|
+
/**
|
|
1965
|
+
* setPreCrime
|
|
1966
|
+
* nonpayable
|
|
1967
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1968
|
+
*/
|
|
1969
|
+
setPreCrime(_preCrime: `0x${string}`, options?: {
|
|
1970
|
+
accessList?: import('viem').AccessList;
|
|
1971
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1972
|
+
chain?: import('viem').Chain | null;
|
|
1973
|
+
dataSuffix?: `0x${string}`;
|
|
1974
|
+
gas?: bigint;
|
|
1975
|
+
gasPrice?: bigint;
|
|
1976
|
+
maxFeePerGas?: bigint;
|
|
1977
|
+
maxPriorityFeePerGas?: bigint;
|
|
1978
|
+
nonce?: number;
|
|
1979
|
+
value?: bigint;
|
|
1980
|
+
}): Promise<`0x${string}`>;
|
|
1981
|
+
/**
|
|
1982
|
+
* setTransferAllowedTime
|
|
1983
|
+
* nonpayable
|
|
1984
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1985
|
+
*/
|
|
1986
|
+
setTransferAllowedTime(newTimestamp: bigint, options?: {
|
|
1987
|
+
accessList?: import('viem').AccessList;
|
|
1988
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1989
|
+
chain?: import('viem').Chain | null;
|
|
1990
|
+
dataSuffix?: `0x${string}`;
|
|
1991
|
+
gas?: bigint;
|
|
1992
|
+
gasPrice?: bigint;
|
|
1993
|
+
maxFeePerGas?: bigint;
|
|
1994
|
+
maxPriorityFeePerGas?: bigint;
|
|
1995
|
+
nonce?: number;
|
|
1996
|
+
value?: bigint;
|
|
1997
|
+
}): Promise<`0x${string}`>;
|
|
1998
|
+
/**
|
|
1999
|
+
* setWhitelisted
|
|
2000
|
+
* nonpayable
|
|
2001
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2002
|
+
*/
|
|
2003
|
+
setWhitelisted(_address: `0x${string}`, options?: {
|
|
2004
|
+
accessList?: import('viem').AccessList;
|
|
2005
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2006
|
+
chain?: import('viem').Chain | null;
|
|
2007
|
+
dataSuffix?: `0x${string}`;
|
|
2008
|
+
gas?: bigint;
|
|
2009
|
+
gasPrice?: bigint;
|
|
2010
|
+
maxFeePerGas?: bigint;
|
|
2011
|
+
maxPriorityFeePerGas?: bigint;
|
|
2012
|
+
nonce?: number;
|
|
2013
|
+
value?: bigint;
|
|
2014
|
+
}): Promise<`0x${string}`>;
|
|
2015
|
+
/**
|
|
2016
|
+
* syncSupplyAllChains
|
|
2017
|
+
* nonpayable
|
|
2018
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2019
|
+
*/
|
|
2020
|
+
syncSupplyAllChains(_newSupply: bigint, options?: {
|
|
2021
|
+
accessList?: import('viem').AccessList;
|
|
2022
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2023
|
+
chain?: import('viem').Chain | null;
|
|
2024
|
+
dataSuffix?: `0x${string}`;
|
|
2025
|
+
gas?: bigint;
|
|
2026
|
+
gasPrice?: bigint;
|
|
2027
|
+
maxFeePerGas?: bigint;
|
|
2028
|
+
maxPriorityFeePerGas?: bigint;
|
|
2029
|
+
nonce?: number;
|
|
2030
|
+
value?: bigint;
|
|
2031
|
+
}): Promise<`0x${string}`>;
|
|
2032
|
+
/**
|
|
2033
|
+
* transfer
|
|
2034
|
+
* nonpayable
|
|
2035
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2036
|
+
*/
|
|
2037
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
2038
|
+
accessList?: import('viem').AccessList;
|
|
2039
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2040
|
+
chain?: import('viem').Chain | null;
|
|
2041
|
+
dataSuffix?: `0x${string}`;
|
|
2042
|
+
gas?: bigint;
|
|
2043
|
+
gasPrice?: bigint;
|
|
2044
|
+
maxFeePerGas?: bigint;
|
|
2045
|
+
maxPriorityFeePerGas?: bigint;
|
|
2046
|
+
nonce?: number;
|
|
2047
|
+
value?: bigint;
|
|
2048
|
+
}): Promise<`0x${string}`>;
|
|
2049
|
+
/**
|
|
2050
|
+
* transferFrom
|
|
2051
|
+
* nonpayable
|
|
2052
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2053
|
+
*/
|
|
2054
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
2055
|
+
accessList?: import('viem').AccessList;
|
|
2056
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2057
|
+
chain?: import('viem').Chain | null;
|
|
2058
|
+
dataSuffix?: `0x${string}`;
|
|
2059
|
+
gas?: bigint;
|
|
2060
|
+
gasPrice?: bigint;
|
|
2061
|
+
maxFeePerGas?: bigint;
|
|
2062
|
+
maxPriorityFeePerGas?: bigint;
|
|
2063
|
+
nonce?: number;
|
|
2064
|
+
value?: bigint;
|
|
2065
|
+
}): Promise<`0x${string}`>;
|
|
2066
|
+
/**
|
|
2067
|
+
* transferOwnership
|
|
2068
|
+
* nonpayable
|
|
2069
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2070
|
+
*/
|
|
2071
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
2072
|
+
accessList?: import('viem').AccessList;
|
|
2073
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2074
|
+
chain?: import('viem').Chain | null;
|
|
2075
|
+
dataSuffix?: `0x${string}`;
|
|
2076
|
+
gas?: bigint;
|
|
2077
|
+
gasPrice?: bigint;
|
|
2078
|
+
maxFeePerGas?: bigint;
|
|
2079
|
+
maxPriorityFeePerGas?: bigint;
|
|
2080
|
+
nonce?: number;
|
|
2081
|
+
value?: bigint;
|
|
2082
|
+
}): Promise<`0x${string}`>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2085
|
+
*
|
|
2086
|
+
* @example
|
|
2087
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2088
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2089
|
+
* console.log('Would succeed:', result.result);
|
|
2090
|
+
*/
|
|
2091
|
+
get simulate(): {
|
|
2092
|
+
/**
|
|
2093
|
+
* Simulate approve
|
|
2094
|
+
* Returns gas estimate and result without sending transaction
|
|
2095
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2096
|
+
*/
|
|
2097
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
2098
|
+
accessList?: import("viem").AccessList;
|
|
2099
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2100
|
+
chain?: import("viem").Chain | null;
|
|
2101
|
+
dataSuffix?: `0x${string}`;
|
|
2102
|
+
gas?: bigint;
|
|
2103
|
+
gasPrice?: bigint;
|
|
2104
|
+
maxFeePerGas?: bigint;
|
|
2105
|
+
maxPriorityFeePerGas?: bigint;
|
|
2106
|
+
nonce?: number;
|
|
2107
|
+
value?: bigint;
|
|
2108
|
+
}): Promise<boolean>;
|
|
2109
|
+
/**
|
|
2110
|
+
* Simulate lzReceive
|
|
2111
|
+
* Returns gas estimate and result without sending transaction
|
|
2112
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2113
|
+
*/
|
|
2114
|
+
lzReceive(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
|
|
2115
|
+
accessList?: import("viem").AccessList;
|
|
2116
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2117
|
+
chain?: import("viem").Chain | null;
|
|
2118
|
+
dataSuffix?: `0x${string}`;
|
|
2119
|
+
gas?: bigint;
|
|
2120
|
+
gasPrice?: bigint;
|
|
2121
|
+
maxFeePerGas?: bigint;
|
|
2122
|
+
maxPriorityFeePerGas?: bigint;
|
|
2123
|
+
nonce?: number;
|
|
2124
|
+
value?: bigint;
|
|
2125
|
+
}): Promise<void>;
|
|
2126
|
+
/**
|
|
2127
|
+
* Simulate lzReceiveAndRevert
|
|
2128
|
+
* Returns gas estimate and result without sending transaction
|
|
2129
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2130
|
+
*/
|
|
2131
|
+
lzReceiveAndRevert(_packets: InboundPacket[], options?: {
|
|
2132
|
+
accessList?: import("viem").AccessList;
|
|
2133
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2134
|
+
chain?: import("viem").Chain | null;
|
|
2135
|
+
dataSuffix?: `0x${string}`;
|
|
2136
|
+
gas?: bigint;
|
|
2137
|
+
gasPrice?: bigint;
|
|
2138
|
+
maxFeePerGas?: bigint;
|
|
2139
|
+
maxPriorityFeePerGas?: bigint;
|
|
2140
|
+
nonce?: number;
|
|
2141
|
+
value?: bigint;
|
|
2142
|
+
}): Promise<void>;
|
|
2143
|
+
/**
|
|
2144
|
+
* Simulate lzReceiveSimulate
|
|
2145
|
+
* Returns gas estimate and result without sending transaction
|
|
2146
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2147
|
+
*/
|
|
2148
|
+
lzReceiveSimulate(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
|
|
2149
|
+
accessList?: import("viem").AccessList;
|
|
2150
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2151
|
+
chain?: import("viem").Chain | null;
|
|
2152
|
+
dataSuffix?: `0x${string}`;
|
|
2153
|
+
gas?: bigint;
|
|
2154
|
+
gasPrice?: bigint;
|
|
2155
|
+
maxFeePerGas?: bigint;
|
|
2156
|
+
maxPriorityFeePerGas?: bigint;
|
|
2157
|
+
nonce?: number;
|
|
2158
|
+
value?: bigint;
|
|
2159
|
+
}): Promise<void>;
|
|
2160
|
+
/**
|
|
2161
|
+
* Simulate mint
|
|
2162
|
+
* Returns gas estimate and result without sending transaction
|
|
2163
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2164
|
+
*/
|
|
2165
|
+
mint(_to: `0x${string}`, _amount: bigint, options?: {
|
|
2166
|
+
accessList?: import("viem").AccessList;
|
|
2167
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2168
|
+
chain?: import("viem").Chain | null;
|
|
2169
|
+
dataSuffix?: `0x${string}`;
|
|
2170
|
+
gas?: bigint;
|
|
2171
|
+
gasPrice?: bigint;
|
|
2172
|
+
maxFeePerGas?: bigint;
|
|
2173
|
+
maxPriorityFeePerGas?: bigint;
|
|
2174
|
+
nonce?: number;
|
|
2175
|
+
value?: bigint;
|
|
2176
|
+
}): Promise<void>;
|
|
2177
|
+
/**
|
|
2178
|
+
* Simulate renounceOwnership
|
|
2179
|
+
* Returns gas estimate and result without sending transaction
|
|
2180
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2181
|
+
*/
|
|
2182
|
+
renounceOwnership(options?: {
|
|
2183
|
+
accessList?: import("viem").AccessList;
|
|
2184
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2185
|
+
chain?: import("viem").Chain | null;
|
|
2186
|
+
dataSuffix?: `0x${string}`;
|
|
2187
|
+
gas?: bigint;
|
|
2188
|
+
gasPrice?: bigint;
|
|
2189
|
+
maxFeePerGas?: bigint;
|
|
2190
|
+
maxPriorityFeePerGas?: bigint;
|
|
2191
|
+
nonce?: number;
|
|
2192
|
+
value?: bigint;
|
|
2193
|
+
}): Promise<void>;
|
|
2194
|
+
/**
|
|
2195
|
+
* Simulate send
|
|
2196
|
+
* Returns gas estimate and result without sending transaction
|
|
2197
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2198
|
+
*/
|
|
2199
|
+
send(_sendParam: SendParam, _fee: MessagingFee, _refundAddress: `0x${string}`, options?: {
|
|
2200
|
+
accessList?: import("viem").AccessList;
|
|
2201
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2202
|
+
chain?: import("viem").Chain | null;
|
|
2203
|
+
dataSuffix?: `0x${string}`;
|
|
2204
|
+
gas?: bigint;
|
|
2205
|
+
gasPrice?: bigint;
|
|
2206
|
+
maxFeePerGas?: bigint;
|
|
2207
|
+
maxPriorityFeePerGas?: bigint;
|
|
2208
|
+
nonce?: number;
|
|
2209
|
+
value?: bigint;
|
|
2210
|
+
}): Promise<[MessagingReceipt, OFTReceipt]>;
|
|
2211
|
+
/**
|
|
2212
|
+
* Simulate setDelegate
|
|
2213
|
+
* Returns gas estimate and result without sending transaction
|
|
2214
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2215
|
+
*/
|
|
2216
|
+
setDelegate(_delegate: `0x${string}`, options?: {
|
|
2217
|
+
accessList?: import("viem").AccessList;
|
|
2218
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2219
|
+
chain?: import("viem").Chain | null;
|
|
2220
|
+
dataSuffix?: `0x${string}`;
|
|
2221
|
+
gas?: bigint;
|
|
2222
|
+
gasPrice?: bigint;
|
|
2223
|
+
maxFeePerGas?: bigint;
|
|
2224
|
+
maxPriorityFeePerGas?: bigint;
|
|
2225
|
+
nonce?: number;
|
|
2226
|
+
value?: bigint;
|
|
2227
|
+
}): Promise<void>;
|
|
2228
|
+
/**
|
|
2229
|
+
* Simulate setEnforcedOptions
|
|
2230
|
+
* Returns gas estimate and result without sending transaction
|
|
2231
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2232
|
+
*/
|
|
2233
|
+
setEnforcedOptions(_enforcedOptions: EnforcedOptionParam[], options?: {
|
|
2234
|
+
accessList?: import("viem").AccessList;
|
|
2235
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2236
|
+
chain?: import("viem").Chain | null;
|
|
2237
|
+
dataSuffix?: `0x${string}`;
|
|
2238
|
+
gas?: bigint;
|
|
2239
|
+
gasPrice?: bigint;
|
|
2240
|
+
maxFeePerGas?: bigint;
|
|
2241
|
+
maxPriorityFeePerGas?: bigint;
|
|
2242
|
+
nonce?: number;
|
|
2243
|
+
value?: bigint;
|
|
2244
|
+
}): Promise<void>;
|
|
2245
|
+
/**
|
|
2246
|
+
* Simulate setMinter
|
|
2247
|
+
* Returns gas estimate and result without sending transaction
|
|
2248
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2249
|
+
*/
|
|
2250
|
+
setMinter(_address: `0x${string}`, options?: {
|
|
2251
|
+
accessList?: import("viem").AccessList;
|
|
2252
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2253
|
+
chain?: import("viem").Chain | null;
|
|
2254
|
+
dataSuffix?: `0x${string}`;
|
|
2255
|
+
gas?: bigint;
|
|
2256
|
+
gasPrice?: bigint;
|
|
2257
|
+
maxFeePerGas?: bigint;
|
|
2258
|
+
maxPriorityFeePerGas?: bigint;
|
|
2259
|
+
nonce?: number;
|
|
2260
|
+
value?: bigint;
|
|
2261
|
+
}): Promise<void>;
|
|
2262
|
+
/**
|
|
2263
|
+
* Simulate setMsgInspector
|
|
2264
|
+
* Returns gas estimate and result without sending transaction
|
|
2265
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2266
|
+
*/
|
|
2267
|
+
setMsgInspector(_msgInspector: `0x${string}`, options?: {
|
|
2268
|
+
accessList?: import("viem").AccessList;
|
|
2269
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2270
|
+
chain?: import("viem").Chain | null;
|
|
2271
|
+
dataSuffix?: `0x${string}`;
|
|
2272
|
+
gas?: bigint;
|
|
2273
|
+
gasPrice?: bigint;
|
|
2274
|
+
maxFeePerGas?: bigint;
|
|
2275
|
+
maxPriorityFeePerGas?: bigint;
|
|
2276
|
+
nonce?: number;
|
|
2277
|
+
value?: bigint;
|
|
2278
|
+
}): Promise<void>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Simulate setPeer
|
|
2281
|
+
* Returns gas estimate and result without sending transaction
|
|
2282
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2283
|
+
*/
|
|
2284
|
+
setPeer(_eid: bigint, _peer: `0x${string}`, options?: {
|
|
2285
|
+
accessList?: import("viem").AccessList;
|
|
2286
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2287
|
+
chain?: import("viem").Chain | null;
|
|
2288
|
+
dataSuffix?: `0x${string}`;
|
|
2289
|
+
gas?: bigint;
|
|
2290
|
+
gasPrice?: bigint;
|
|
2291
|
+
maxFeePerGas?: bigint;
|
|
2292
|
+
maxPriorityFeePerGas?: bigint;
|
|
2293
|
+
nonce?: number;
|
|
2294
|
+
value?: bigint;
|
|
2295
|
+
}): Promise<void>;
|
|
2296
|
+
/**
|
|
2297
|
+
* Simulate setPreCrime
|
|
2298
|
+
* Returns gas estimate and result without sending transaction
|
|
2299
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2300
|
+
*/
|
|
2301
|
+
setPreCrime(_preCrime: `0x${string}`, options?: {
|
|
2302
|
+
accessList?: import("viem").AccessList;
|
|
2303
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2304
|
+
chain?: import("viem").Chain | null;
|
|
2305
|
+
dataSuffix?: `0x${string}`;
|
|
2306
|
+
gas?: bigint;
|
|
2307
|
+
gasPrice?: bigint;
|
|
2308
|
+
maxFeePerGas?: bigint;
|
|
2309
|
+
maxPriorityFeePerGas?: bigint;
|
|
2310
|
+
nonce?: number;
|
|
2311
|
+
value?: bigint;
|
|
2312
|
+
}): Promise<void>;
|
|
2313
|
+
/**
|
|
2314
|
+
* Simulate setTransferAllowedTime
|
|
2315
|
+
* Returns gas estimate and result without sending transaction
|
|
2316
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2317
|
+
*/
|
|
2318
|
+
setTransferAllowedTime(newTimestamp: bigint, options?: {
|
|
2319
|
+
accessList?: import("viem").AccessList;
|
|
2320
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2321
|
+
chain?: import("viem").Chain | null;
|
|
2322
|
+
dataSuffix?: `0x${string}`;
|
|
2323
|
+
gas?: bigint;
|
|
2324
|
+
gasPrice?: bigint;
|
|
2325
|
+
maxFeePerGas?: bigint;
|
|
2326
|
+
maxPriorityFeePerGas?: bigint;
|
|
2327
|
+
nonce?: number;
|
|
2328
|
+
value?: bigint;
|
|
2329
|
+
}): Promise<void>;
|
|
2330
|
+
/**
|
|
2331
|
+
* Simulate setWhitelisted
|
|
2332
|
+
* Returns gas estimate and result without sending transaction
|
|
2333
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2334
|
+
*/
|
|
2335
|
+
setWhitelisted(_address: `0x${string}`, options?: {
|
|
2336
|
+
accessList?: import("viem").AccessList;
|
|
2337
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2338
|
+
chain?: import("viem").Chain | null;
|
|
2339
|
+
dataSuffix?: `0x${string}`;
|
|
2340
|
+
gas?: bigint;
|
|
2341
|
+
gasPrice?: bigint;
|
|
2342
|
+
maxFeePerGas?: bigint;
|
|
2343
|
+
maxPriorityFeePerGas?: bigint;
|
|
2344
|
+
nonce?: number;
|
|
2345
|
+
value?: bigint;
|
|
2346
|
+
}): Promise<void>;
|
|
2347
|
+
/**
|
|
2348
|
+
* Simulate syncSupplyAllChains
|
|
2349
|
+
* Returns gas estimate and result without sending transaction
|
|
2350
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2351
|
+
*/
|
|
2352
|
+
syncSupplyAllChains(_newSupply: bigint, options?: {
|
|
2353
|
+
accessList?: import("viem").AccessList;
|
|
2354
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2355
|
+
chain?: import("viem").Chain | null;
|
|
2356
|
+
dataSuffix?: `0x${string}`;
|
|
2357
|
+
gas?: bigint;
|
|
2358
|
+
gasPrice?: bigint;
|
|
2359
|
+
maxFeePerGas?: bigint;
|
|
2360
|
+
maxPriorityFeePerGas?: bigint;
|
|
2361
|
+
nonce?: number;
|
|
2362
|
+
value?: bigint;
|
|
2363
|
+
}): Promise<void>;
|
|
2364
|
+
/**
|
|
2365
|
+
* Simulate transfer
|
|
2366
|
+
* Returns gas estimate and result without sending transaction
|
|
2367
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2368
|
+
*/
|
|
2369
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
2370
|
+
accessList?: import("viem").AccessList;
|
|
2371
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2372
|
+
chain?: import("viem").Chain | null;
|
|
2373
|
+
dataSuffix?: `0x${string}`;
|
|
2374
|
+
gas?: bigint;
|
|
2375
|
+
gasPrice?: bigint;
|
|
2376
|
+
maxFeePerGas?: bigint;
|
|
2377
|
+
maxPriorityFeePerGas?: bigint;
|
|
2378
|
+
nonce?: number;
|
|
2379
|
+
value?: bigint;
|
|
2380
|
+
}): Promise<boolean>;
|
|
2381
|
+
/**
|
|
2382
|
+
* Simulate transferFrom
|
|
2383
|
+
* Returns gas estimate and result without sending transaction
|
|
2384
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2385
|
+
*/
|
|
2386
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
2387
|
+
accessList?: import("viem").AccessList;
|
|
2388
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2389
|
+
chain?: import("viem").Chain | null;
|
|
2390
|
+
dataSuffix?: `0x${string}`;
|
|
2391
|
+
gas?: bigint;
|
|
2392
|
+
gasPrice?: bigint;
|
|
2393
|
+
maxFeePerGas?: bigint;
|
|
2394
|
+
maxPriorityFeePerGas?: bigint;
|
|
2395
|
+
nonce?: number;
|
|
2396
|
+
value?: bigint;
|
|
2397
|
+
}): Promise<boolean>;
|
|
2398
|
+
/**
|
|
2399
|
+
* Simulate transferOwnership
|
|
2400
|
+
* Returns gas estimate and result without sending transaction
|
|
2401
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2402
|
+
*/
|
|
2403
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
2404
|
+
accessList?: import("viem").AccessList;
|
|
2405
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2406
|
+
chain?: import("viem").Chain | null;
|
|
2407
|
+
dataSuffix?: `0x${string}`;
|
|
2408
|
+
gas?: bigint;
|
|
2409
|
+
gasPrice?: bigint;
|
|
2410
|
+
maxFeePerGas?: bigint;
|
|
2411
|
+
maxPriorityFeePerGas?: bigint;
|
|
2412
|
+
nonce?: number;
|
|
2413
|
+
value?: bigint;
|
|
2414
|
+
}): Promise<void>;
|
|
2415
|
+
};
|
|
2416
|
+
/**
|
|
2417
|
+
* Watch contract events
|
|
2418
|
+
*
|
|
2419
|
+
* @example
|
|
2420
|
+
* // Watch all Transfer events
|
|
2421
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2422
|
+
* console.log('Transfer:', event);
|
|
2423
|
+
* });
|
|
2424
|
+
*
|
|
2425
|
+
* // Stop watching
|
|
2426
|
+
* unwatch();
|
|
2427
|
+
*/
|
|
2428
|
+
get watch(): {
|
|
2429
|
+
/**
|
|
2430
|
+
* Watch Approval events
|
|
2431
|
+
* @param callback Function to call when event is emitted
|
|
2432
|
+
* @param filter Optional filter for indexed parameters
|
|
2433
|
+
* @returns Unwatch function to stop listening
|
|
2434
|
+
*/
|
|
2435
|
+
Approval: (callback: (event: {
|
|
2436
|
+
owner: `0x${string}`;
|
|
2437
|
+
spender: `0x${string}`;
|
|
2438
|
+
value: bigint;
|
|
2439
|
+
}) => void, filter?: {
|
|
2440
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
2441
|
+
spender?: `0x${string}` | `0x${string}`[] | null;
|
|
2442
|
+
}) => () => void;
|
|
2443
|
+
/**
|
|
2444
|
+
* Watch EnforcedOptionSet events
|
|
2445
|
+
* @param callback Function to call when event is emitted
|
|
2446
|
+
* @param filter Optional filter for indexed parameters
|
|
2447
|
+
* @returns Unwatch function to stop listening
|
|
2448
|
+
*/
|
|
2449
|
+
EnforcedOptionSet: (callback: (event: {
|
|
2450
|
+
_enforcedOptions: EnforcedOptionParam[];
|
|
2451
|
+
}) => void) => () => void;
|
|
2452
|
+
/**
|
|
2453
|
+
* Watch MinterUpdated events
|
|
2454
|
+
* @param callback Function to call when event is emitted
|
|
2455
|
+
* @param filter Optional filter for indexed parameters
|
|
2456
|
+
* @returns Unwatch function to stop listening
|
|
2457
|
+
*/
|
|
2458
|
+
MinterUpdated: (callback: (event: {
|
|
2459
|
+
account: `0x${string}`;
|
|
2460
|
+
value: boolean;
|
|
2461
|
+
}) => void, filter?: {
|
|
2462
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
2463
|
+
}) => () => void;
|
|
2464
|
+
/**
|
|
2465
|
+
* Watch MsgInspectorSet events
|
|
2466
|
+
* @param callback Function to call when event is emitted
|
|
2467
|
+
* @param filter Optional filter for indexed parameters
|
|
2468
|
+
* @returns Unwatch function to stop listening
|
|
2469
|
+
*/
|
|
2470
|
+
MsgInspectorSet: (callback: (event: {
|
|
2471
|
+
inspector: `0x${string}`;
|
|
2472
|
+
}) => void) => () => void;
|
|
2473
|
+
/**
|
|
2474
|
+
* Watch OFTReceived events
|
|
2475
|
+
* @param callback Function to call when event is emitted
|
|
2476
|
+
* @param filter Optional filter for indexed parameters
|
|
2477
|
+
* @returns Unwatch function to stop listening
|
|
2478
|
+
*/
|
|
2479
|
+
OFTReceived: (callback: (event: {
|
|
2480
|
+
guid: `0x${string}`;
|
|
2481
|
+
srcEid: bigint;
|
|
2482
|
+
toAddress: `0x${string}`;
|
|
2483
|
+
amountReceivedLD: bigint;
|
|
2484
|
+
}) => void, filter?: {
|
|
2485
|
+
guid?: `0x${string}` | `0x${string}`[] | null;
|
|
2486
|
+
toAddress?: `0x${string}` | `0x${string}`[] | null;
|
|
2487
|
+
}) => () => void;
|
|
2488
|
+
/**
|
|
2489
|
+
* Watch OFTSent events
|
|
2490
|
+
* @param callback Function to call when event is emitted
|
|
2491
|
+
* @param filter Optional filter for indexed parameters
|
|
2492
|
+
* @returns Unwatch function to stop listening
|
|
2493
|
+
*/
|
|
2494
|
+
OFTSent: (callback: (event: {
|
|
2495
|
+
guid: `0x${string}`;
|
|
2496
|
+
dstEid: bigint;
|
|
2497
|
+
fromAddress: `0x${string}`;
|
|
2498
|
+
amountSentLD: bigint;
|
|
2499
|
+
amountReceivedLD: bigint;
|
|
2500
|
+
}) => void, filter?: {
|
|
2501
|
+
guid?: `0x${string}` | `0x${string}`[] | null;
|
|
2502
|
+
fromAddress?: `0x${string}` | `0x${string}`[] | null;
|
|
2503
|
+
}) => () => void;
|
|
2504
|
+
/**
|
|
2505
|
+
* Watch OwnershipTransferred events
|
|
2506
|
+
* @param callback Function to call when event is emitted
|
|
2507
|
+
* @param filter Optional filter for indexed parameters
|
|
2508
|
+
* @returns Unwatch function to stop listening
|
|
2509
|
+
*/
|
|
2510
|
+
OwnershipTransferred: (callback: (event: {
|
|
2511
|
+
previousOwner: `0x${string}`;
|
|
2512
|
+
newOwner: `0x${string}`;
|
|
2513
|
+
}) => void, filter?: {
|
|
2514
|
+
previousOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2515
|
+
newOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2516
|
+
}) => () => void;
|
|
2517
|
+
/**
|
|
2518
|
+
* Watch PeerSet events
|
|
2519
|
+
* @param callback Function to call when event is emitted
|
|
2520
|
+
* @param filter Optional filter for indexed parameters
|
|
2521
|
+
* @returns Unwatch function to stop listening
|
|
2522
|
+
*/
|
|
2523
|
+
PeerSet: (callback: (event: {
|
|
2524
|
+
eid: bigint;
|
|
2525
|
+
peer: `0x${string}`;
|
|
2526
|
+
}) => void) => () => void;
|
|
2527
|
+
/**
|
|
2528
|
+
* Watch PreCrimeSet events
|
|
2529
|
+
* @param callback Function to call when event is emitted
|
|
2530
|
+
* @param filter Optional filter for indexed parameters
|
|
2531
|
+
* @returns Unwatch function to stop listening
|
|
2532
|
+
*/
|
|
2533
|
+
PreCrimeSet: (callback: (event: {
|
|
2534
|
+
preCrimeAddress: `0x${string}`;
|
|
2535
|
+
}) => void) => () => void;
|
|
2536
|
+
/**
|
|
2537
|
+
* Watch TokensMinted events
|
|
2538
|
+
* @param callback Function to call when event is emitted
|
|
2539
|
+
* @param filter Optional filter for indexed parameters
|
|
2540
|
+
* @returns Unwatch function to stop listening
|
|
2541
|
+
*/
|
|
2542
|
+
TokensMinted: (callback: (event: {
|
|
2543
|
+
to: `0x${string}`;
|
|
2544
|
+
amount: bigint;
|
|
2545
|
+
}) => void, filter?: {
|
|
2546
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
2547
|
+
}) => () => void;
|
|
2548
|
+
/**
|
|
2549
|
+
* Watch Transfer events
|
|
2550
|
+
* @param callback Function to call when event is emitted
|
|
2551
|
+
* @param filter Optional filter for indexed parameters
|
|
2552
|
+
* @returns Unwatch function to stop listening
|
|
2553
|
+
*/
|
|
2554
|
+
Transfer: (callback: (event: {
|
|
2555
|
+
from: `0x${string}`;
|
|
2556
|
+
to: `0x${string}`;
|
|
2557
|
+
value: bigint;
|
|
2558
|
+
}) => void, filter?: {
|
|
2559
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
2560
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
2561
|
+
}) => () => void;
|
|
2562
|
+
/**
|
|
2563
|
+
* Watch TransferAllowedTimeUpdated events
|
|
2564
|
+
* @param callback Function to call when event is emitted
|
|
2565
|
+
* @param filter Optional filter for indexed parameters
|
|
2566
|
+
* @returns Unwatch function to stop listening
|
|
2567
|
+
*/
|
|
2568
|
+
TransferAllowedTimeUpdated: (callback: (event: {
|
|
2569
|
+
newTimestamp: bigint;
|
|
2570
|
+
}) => void) => () => void;
|
|
2571
|
+
/**
|
|
2572
|
+
* Watch WhitelistUpdated events
|
|
2573
|
+
* @param callback Function to call when event is emitted
|
|
2574
|
+
* @param filter Optional filter for indexed parameters
|
|
2575
|
+
* @returns Unwatch function to stop listening
|
|
2576
|
+
*/
|
|
2577
|
+
WhitelistUpdated: (callback: (event: {
|
|
2578
|
+
account: `0x${string}`;
|
|
2579
|
+
value: boolean;
|
|
2580
|
+
}) => void, filter?: {
|
|
2581
|
+
account?: `0x${string}` | `0x${string}`[] | null;
|
|
2582
|
+
}) => () => void;
|
|
2583
|
+
};
|
|
2584
|
+
}
|