@1stdex/first-sdk 1.0.82 → 1.0.84

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.
Files changed (28) hide show
  1. package/dist/cjs/calls/batch/index.js +4 -1
  2. package/dist/cjs/calls/batch/index.js.map +1 -1
  3. package/dist/cjs/calls/batch/prepare-claim-real-tokens.js +188 -0
  4. package/dist/cjs/calls/batch/prepare-claim-real-tokens.js.map +1 -0
  5. package/dist/cjs/constants/abis/core/first_oft.js +1680 -0
  6. package/dist/cjs/constants/abis/core/first_oft.js.map +1 -0
  7. package/dist/cjs/constants/chain-configs/eids.js +11 -0
  8. package/dist/cjs/constants/chain-configs/eids.js.map +1 -0
  9. package/dist/cjs/views/balance.js +2 -2
  10. package/dist/esm/calls/batch/index.js +1 -0
  11. package/dist/esm/calls/batch/index.js.map +1 -1
  12. package/dist/esm/calls/batch/prepare-claim-real-tokens.js +255 -0
  13. package/dist/esm/calls/batch/prepare-claim-real-tokens.js.map +1 -0
  14. package/dist/esm/constants/abis/core/first_oft.js +1677 -0
  15. package/dist/esm/constants/abis/core/first_oft.js.map +1 -0
  16. package/dist/esm/constants/chain-configs/eids.js +11 -0
  17. package/dist/esm/constants/chain-configs/eids.js.map +1 -0
  18. package/dist/esm/views/balance.js +2 -2
  19. package/dist/tsconfig.build.tsbuildinfo +1 -1
  20. package/dist/types/calls/batch/index.d.ts +1 -0
  21. package/dist/types/calls/batch/index.d.ts.map +1 -1
  22. package/dist/types/calls/batch/prepare-claim-real-tokens.d.ts +85 -0
  23. package/dist/types/calls/batch/prepare-claim-real-tokens.d.ts.map +1 -0
  24. package/dist/types/constants/abis/core/first_oft.d.ts +1286 -0
  25. package/dist/types/constants/abis/core/first_oft.d.ts.map +1 -0
  26. package/dist/types/constants/chain-configs/eids.d.ts +8 -0
  27. package/dist/types/constants/chain-configs/eids.d.ts.map +1 -0
  28. package/package.json +1 -1
@@ -0,0 +1,1680 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FIRST_OFT_ABI = void 0;
4
+ exports.FIRST_OFT_ABI = [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: 'string',
9
+ name: '_name',
10
+ type: 'string',
11
+ },
12
+ {
13
+ internalType: 'string',
14
+ name: '_symbol',
15
+ type: 'string',
16
+ },
17
+ {
18
+ internalType: 'address',
19
+ name: '_lzEndpoint',
20
+ type: 'address',
21
+ },
22
+ {
23
+ internalType: 'address',
24
+ name: '_owner',
25
+ type: 'address',
26
+ },
27
+ ],
28
+ stateMutability: 'nonpayable',
29
+ type: 'constructor',
30
+ },
31
+ {
32
+ inputs: [
33
+ {
34
+ internalType: 'uint256',
35
+ name: 'amountSD',
36
+ type: 'uint256',
37
+ },
38
+ ],
39
+ name: 'AmountSDOverflowed',
40
+ type: 'error',
41
+ },
42
+ {
43
+ inputs: [
44
+ {
45
+ internalType: 'address',
46
+ name: 'spender',
47
+ type: 'address',
48
+ },
49
+ {
50
+ internalType: 'uint256',
51
+ name: 'allowance',
52
+ type: 'uint256',
53
+ },
54
+ {
55
+ internalType: 'uint256',
56
+ name: 'needed',
57
+ type: 'uint256',
58
+ },
59
+ ],
60
+ name: 'ERC20InsufficientAllowance',
61
+ type: 'error',
62
+ },
63
+ {
64
+ inputs: [
65
+ {
66
+ internalType: 'address',
67
+ name: 'sender',
68
+ type: 'address',
69
+ },
70
+ {
71
+ internalType: 'uint256',
72
+ name: 'balance',
73
+ type: 'uint256',
74
+ },
75
+ {
76
+ internalType: 'uint256',
77
+ name: 'needed',
78
+ type: 'uint256',
79
+ },
80
+ ],
81
+ name: 'ERC20InsufficientBalance',
82
+ type: 'error',
83
+ },
84
+ {
85
+ inputs: [
86
+ {
87
+ internalType: 'address',
88
+ name: 'approver',
89
+ type: 'address',
90
+ },
91
+ ],
92
+ name: 'ERC20InvalidApprover',
93
+ type: 'error',
94
+ },
95
+ {
96
+ inputs: [
97
+ {
98
+ internalType: 'address',
99
+ name: 'receiver',
100
+ type: 'address',
101
+ },
102
+ ],
103
+ name: 'ERC20InvalidReceiver',
104
+ type: 'error',
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: 'address',
110
+ name: 'sender',
111
+ type: 'address',
112
+ },
113
+ ],
114
+ name: 'ERC20InvalidSender',
115
+ type: 'error',
116
+ },
117
+ {
118
+ inputs: [
119
+ {
120
+ internalType: 'address',
121
+ name: 'spender',
122
+ type: 'address',
123
+ },
124
+ ],
125
+ name: 'ERC20InvalidSpender',
126
+ type: 'error',
127
+ },
128
+ {
129
+ inputs: [],
130
+ name: 'EnforcedPause',
131
+ type: 'error',
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: 'ExpectedPause',
136
+ type: 'error',
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: 'InvalidDelegate',
141
+ type: 'error',
142
+ },
143
+ {
144
+ inputs: [],
145
+ name: 'InvalidEndpointCall',
146
+ type: 'error',
147
+ },
148
+ {
149
+ inputs: [],
150
+ name: 'InvalidLocalDecimals',
151
+ type: 'error',
152
+ },
153
+ {
154
+ inputs: [
155
+ {
156
+ internalType: 'bytes',
157
+ name: 'options',
158
+ type: 'bytes',
159
+ },
160
+ ],
161
+ name: 'InvalidOptions',
162
+ type: 'error',
163
+ },
164
+ {
165
+ inputs: [],
166
+ name: 'LzTokenUnavailable',
167
+ type: 'error',
168
+ },
169
+ {
170
+ inputs: [
171
+ {
172
+ internalType: 'uint32',
173
+ name: 'eid',
174
+ type: 'uint32',
175
+ },
176
+ ],
177
+ name: 'NoPeer',
178
+ type: 'error',
179
+ },
180
+ {
181
+ inputs: [
182
+ {
183
+ internalType: 'uint256',
184
+ name: 'msgValue',
185
+ type: 'uint256',
186
+ },
187
+ ],
188
+ name: 'NotEnoughNative',
189
+ type: 'error',
190
+ },
191
+ {
192
+ inputs: [
193
+ {
194
+ internalType: 'address',
195
+ name: 'addr',
196
+ type: 'address',
197
+ },
198
+ ],
199
+ name: 'OnlyEndpoint',
200
+ type: 'error',
201
+ },
202
+ {
203
+ inputs: [
204
+ {
205
+ internalType: 'uint32',
206
+ name: 'eid',
207
+ type: 'uint32',
208
+ },
209
+ {
210
+ internalType: 'bytes32',
211
+ name: 'sender',
212
+ type: 'bytes32',
213
+ },
214
+ ],
215
+ name: 'OnlyPeer',
216
+ type: 'error',
217
+ },
218
+ {
219
+ inputs: [],
220
+ name: 'OnlySelf',
221
+ type: 'error',
222
+ },
223
+ {
224
+ inputs: [
225
+ {
226
+ internalType: 'address',
227
+ name: 'owner',
228
+ type: 'address',
229
+ },
230
+ ],
231
+ name: 'OwnableInvalidOwner',
232
+ type: 'error',
233
+ },
234
+ {
235
+ inputs: [
236
+ {
237
+ internalType: 'address',
238
+ name: 'account',
239
+ type: 'address',
240
+ },
241
+ ],
242
+ name: 'OwnableUnauthorizedAccount',
243
+ type: 'error',
244
+ },
245
+ {
246
+ inputs: [
247
+ {
248
+ internalType: 'address',
249
+ name: 'token',
250
+ type: 'address',
251
+ },
252
+ ],
253
+ name: 'SafeERC20FailedOperation',
254
+ type: 'error',
255
+ },
256
+ {
257
+ inputs: [
258
+ {
259
+ internalType: 'bytes',
260
+ name: 'result',
261
+ type: 'bytes',
262
+ },
263
+ ],
264
+ name: 'SimulationResult',
265
+ type: 'error',
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: 'uint256',
271
+ name: 'amountLD',
272
+ type: 'uint256',
273
+ },
274
+ {
275
+ internalType: 'uint256',
276
+ name: 'minAmountLD',
277
+ type: 'uint256',
278
+ },
279
+ ],
280
+ name: 'SlippageExceeded',
281
+ type: 'error',
282
+ },
283
+ {
284
+ anonymous: false,
285
+ inputs: [
286
+ {
287
+ indexed: true,
288
+ internalType: 'address',
289
+ name: 'owner',
290
+ type: 'address',
291
+ },
292
+ {
293
+ indexed: true,
294
+ internalType: 'address',
295
+ name: 'spender',
296
+ type: 'address',
297
+ },
298
+ {
299
+ indexed: false,
300
+ internalType: 'uint256',
301
+ name: 'value',
302
+ type: 'uint256',
303
+ },
304
+ ],
305
+ name: 'Approval',
306
+ type: 'event',
307
+ },
308
+ {
309
+ anonymous: false,
310
+ inputs: [
311
+ {
312
+ components: [
313
+ {
314
+ internalType: 'uint32',
315
+ name: 'eid',
316
+ type: 'uint32',
317
+ },
318
+ {
319
+ internalType: 'uint16',
320
+ name: 'msgType',
321
+ type: 'uint16',
322
+ },
323
+ {
324
+ internalType: 'bytes',
325
+ name: 'options',
326
+ type: 'bytes',
327
+ },
328
+ ],
329
+ indexed: false,
330
+ internalType: 'struct EnforcedOptionParam[]',
331
+ name: '_enforcedOptions',
332
+ type: 'tuple[]',
333
+ },
334
+ ],
335
+ name: 'EnforcedOptionSet',
336
+ type: 'event',
337
+ },
338
+ {
339
+ anonymous: false,
340
+ inputs: [
341
+ {
342
+ indexed: false,
343
+ internalType: 'address',
344
+ name: 'inspector',
345
+ type: 'address',
346
+ },
347
+ ],
348
+ name: 'MsgInspectorSet',
349
+ type: 'event',
350
+ },
351
+ {
352
+ anonymous: false,
353
+ inputs: [
354
+ {
355
+ indexed: true,
356
+ internalType: 'bytes32',
357
+ name: 'guid',
358
+ type: 'bytes32',
359
+ },
360
+ {
361
+ indexed: false,
362
+ internalType: 'uint32',
363
+ name: 'srcEid',
364
+ type: 'uint32',
365
+ },
366
+ {
367
+ indexed: true,
368
+ internalType: 'address',
369
+ name: 'toAddress',
370
+ type: 'address',
371
+ },
372
+ {
373
+ indexed: false,
374
+ internalType: 'uint256',
375
+ name: 'amountReceivedLD',
376
+ type: 'uint256',
377
+ },
378
+ ],
379
+ name: 'OFTReceived',
380
+ type: 'event',
381
+ },
382
+ {
383
+ anonymous: false,
384
+ inputs: [
385
+ {
386
+ indexed: true,
387
+ internalType: 'bytes32',
388
+ name: 'guid',
389
+ type: 'bytes32',
390
+ },
391
+ {
392
+ indexed: false,
393
+ internalType: 'uint32',
394
+ name: 'dstEid',
395
+ type: 'uint32',
396
+ },
397
+ {
398
+ indexed: true,
399
+ internalType: 'address',
400
+ name: 'fromAddress',
401
+ type: 'address',
402
+ },
403
+ {
404
+ indexed: false,
405
+ internalType: 'uint256',
406
+ name: 'amountSentLD',
407
+ type: 'uint256',
408
+ },
409
+ {
410
+ indexed: false,
411
+ internalType: 'uint256',
412
+ name: 'amountReceivedLD',
413
+ type: 'uint256',
414
+ },
415
+ ],
416
+ name: 'OFTSent',
417
+ type: 'event',
418
+ },
419
+ {
420
+ anonymous: false,
421
+ inputs: [
422
+ {
423
+ indexed: true,
424
+ internalType: 'address',
425
+ name: 'previousOwner',
426
+ type: 'address',
427
+ },
428
+ {
429
+ indexed: true,
430
+ internalType: 'address',
431
+ name: 'newOwner',
432
+ type: 'address',
433
+ },
434
+ ],
435
+ name: 'OwnershipTransferred',
436
+ type: 'event',
437
+ },
438
+ {
439
+ anonymous: false,
440
+ inputs: [
441
+ {
442
+ indexed: false,
443
+ internalType: 'address',
444
+ name: 'account',
445
+ type: 'address',
446
+ },
447
+ ],
448
+ name: 'Paused',
449
+ type: 'event',
450
+ },
451
+ {
452
+ anonymous: false,
453
+ inputs: [
454
+ {
455
+ indexed: false,
456
+ internalType: 'uint32',
457
+ name: 'eid',
458
+ type: 'uint32',
459
+ },
460
+ {
461
+ indexed: false,
462
+ internalType: 'bytes32',
463
+ name: 'peer',
464
+ type: 'bytes32',
465
+ },
466
+ ],
467
+ name: 'PeerSet',
468
+ type: 'event',
469
+ },
470
+ {
471
+ anonymous: false,
472
+ inputs: [
473
+ {
474
+ indexed: false,
475
+ internalType: 'address',
476
+ name: 'preCrimeAddress',
477
+ type: 'address',
478
+ },
479
+ ],
480
+ name: 'PreCrimeSet',
481
+ type: 'event',
482
+ },
483
+ {
484
+ anonymous: false,
485
+ inputs: [
486
+ {
487
+ indexed: true,
488
+ internalType: 'address',
489
+ name: 'from',
490
+ type: 'address',
491
+ },
492
+ {
493
+ indexed: true,
494
+ internalType: 'address',
495
+ name: 'to',
496
+ type: 'address',
497
+ },
498
+ {
499
+ indexed: false,
500
+ internalType: 'uint256',
501
+ name: 'value',
502
+ type: 'uint256',
503
+ },
504
+ ],
505
+ name: 'Transfer',
506
+ type: 'event',
507
+ },
508
+ {
509
+ anonymous: false,
510
+ inputs: [
511
+ {
512
+ indexed: false,
513
+ internalType: 'address',
514
+ name: 'account',
515
+ type: 'address',
516
+ },
517
+ ],
518
+ name: 'Unpaused',
519
+ type: 'event',
520
+ },
521
+ {
522
+ inputs: [],
523
+ name: 'SEND',
524
+ outputs: [
525
+ {
526
+ internalType: 'uint16',
527
+ name: '',
528
+ type: 'uint16',
529
+ },
530
+ ],
531
+ stateMutability: 'view',
532
+ type: 'function',
533
+ },
534
+ {
535
+ inputs: [],
536
+ name: 'SEND_AND_CALL',
537
+ outputs: [
538
+ {
539
+ internalType: 'uint16',
540
+ name: '',
541
+ type: 'uint16',
542
+ },
543
+ ],
544
+ stateMutability: 'view',
545
+ type: 'function',
546
+ },
547
+ {
548
+ inputs: [
549
+ {
550
+ components: [
551
+ {
552
+ internalType: 'uint32',
553
+ name: 'srcEid',
554
+ type: 'uint32',
555
+ },
556
+ {
557
+ internalType: 'bytes32',
558
+ name: 'sender',
559
+ type: 'bytes32',
560
+ },
561
+ {
562
+ internalType: 'uint64',
563
+ name: 'nonce',
564
+ type: 'uint64',
565
+ },
566
+ ],
567
+ internalType: 'struct Origin',
568
+ name: 'origin',
569
+ type: 'tuple',
570
+ },
571
+ ],
572
+ name: 'allowInitializePath',
573
+ outputs: [
574
+ {
575
+ internalType: 'bool',
576
+ name: '',
577
+ type: 'bool',
578
+ },
579
+ ],
580
+ stateMutability: 'view',
581
+ type: 'function',
582
+ },
583
+ {
584
+ inputs: [
585
+ {
586
+ internalType: 'address',
587
+ name: 'owner',
588
+ type: 'address',
589
+ },
590
+ {
591
+ internalType: 'address',
592
+ name: 'spender',
593
+ type: 'address',
594
+ },
595
+ ],
596
+ name: 'allowance',
597
+ outputs: [
598
+ {
599
+ internalType: 'uint256',
600
+ name: '',
601
+ type: 'uint256',
602
+ },
603
+ ],
604
+ stateMutability: 'view',
605
+ type: 'function',
606
+ },
607
+ {
608
+ inputs: [],
609
+ name: 'approvalRequired',
610
+ outputs: [
611
+ {
612
+ internalType: 'bool',
613
+ name: '',
614
+ type: 'bool',
615
+ },
616
+ ],
617
+ stateMutability: 'pure',
618
+ type: 'function',
619
+ },
620
+ {
621
+ inputs: [
622
+ {
623
+ internalType: 'address',
624
+ name: 'spender',
625
+ type: 'address',
626
+ },
627
+ {
628
+ internalType: 'uint256',
629
+ name: 'value',
630
+ type: 'uint256',
631
+ },
632
+ ],
633
+ name: 'approve',
634
+ outputs: [
635
+ {
636
+ internalType: 'bool',
637
+ name: '',
638
+ type: 'bool',
639
+ },
640
+ ],
641
+ stateMutability: 'nonpayable',
642
+ type: 'function',
643
+ },
644
+ {
645
+ inputs: [
646
+ {
647
+ internalType: 'address',
648
+ name: 'account',
649
+ type: 'address',
650
+ },
651
+ ],
652
+ name: 'balanceOf',
653
+ outputs: [
654
+ {
655
+ internalType: 'uint256',
656
+ name: '',
657
+ type: 'uint256',
658
+ },
659
+ ],
660
+ stateMutability: 'view',
661
+ type: 'function',
662
+ },
663
+ {
664
+ inputs: [
665
+ {
666
+ internalType: 'uint32',
667
+ name: '_eid',
668
+ type: 'uint32',
669
+ },
670
+ {
671
+ internalType: 'uint16',
672
+ name: '_msgType',
673
+ type: 'uint16',
674
+ },
675
+ {
676
+ internalType: 'bytes',
677
+ name: '_extraOptions',
678
+ type: 'bytes',
679
+ },
680
+ ],
681
+ name: 'combineOptions',
682
+ outputs: [
683
+ {
684
+ internalType: 'bytes',
685
+ name: '',
686
+ type: 'bytes',
687
+ },
688
+ ],
689
+ stateMutability: 'view',
690
+ type: 'function',
691
+ },
692
+ {
693
+ inputs: [],
694
+ name: 'decimalConversionRate',
695
+ outputs: [
696
+ {
697
+ internalType: 'uint256',
698
+ name: '',
699
+ type: 'uint256',
700
+ },
701
+ ],
702
+ stateMutability: 'view',
703
+ type: 'function',
704
+ },
705
+ {
706
+ inputs: [],
707
+ name: 'decimals',
708
+ outputs: [
709
+ {
710
+ internalType: 'uint8',
711
+ name: '',
712
+ type: 'uint8',
713
+ },
714
+ ],
715
+ stateMutability: 'view',
716
+ type: 'function',
717
+ },
718
+ {
719
+ inputs: [],
720
+ name: 'endpoint',
721
+ outputs: [
722
+ {
723
+ internalType: 'contract ILayerZeroEndpointV2',
724
+ name: '',
725
+ type: 'address',
726
+ },
727
+ ],
728
+ stateMutability: 'view',
729
+ type: 'function',
730
+ },
731
+ {
732
+ inputs: [
733
+ {
734
+ internalType: 'uint32',
735
+ name: 'eid',
736
+ type: 'uint32',
737
+ },
738
+ {
739
+ internalType: 'uint16',
740
+ name: 'msgType',
741
+ type: 'uint16',
742
+ },
743
+ ],
744
+ name: 'enforcedOptions',
745
+ outputs: [
746
+ {
747
+ internalType: 'bytes',
748
+ name: 'enforcedOption',
749
+ type: 'bytes',
750
+ },
751
+ ],
752
+ stateMutability: 'view',
753
+ type: 'function',
754
+ },
755
+ {
756
+ inputs: [
757
+ {
758
+ components: [
759
+ {
760
+ internalType: 'uint32',
761
+ name: 'srcEid',
762
+ type: 'uint32',
763
+ },
764
+ {
765
+ internalType: 'bytes32',
766
+ name: 'sender',
767
+ type: 'bytes32',
768
+ },
769
+ {
770
+ internalType: 'uint64',
771
+ name: 'nonce',
772
+ type: 'uint64',
773
+ },
774
+ ],
775
+ internalType: 'struct Origin',
776
+ name: '',
777
+ type: 'tuple',
778
+ },
779
+ {
780
+ internalType: 'bytes',
781
+ name: '',
782
+ type: 'bytes',
783
+ },
784
+ {
785
+ internalType: 'address',
786
+ name: '_sender',
787
+ type: 'address',
788
+ },
789
+ ],
790
+ name: 'isComposeMsgSender',
791
+ outputs: [
792
+ {
793
+ internalType: 'bool',
794
+ name: '',
795
+ type: 'bool',
796
+ },
797
+ ],
798
+ stateMutability: 'view',
799
+ type: 'function',
800
+ },
801
+ {
802
+ inputs: [
803
+ {
804
+ internalType: 'uint32',
805
+ name: '_eid',
806
+ type: 'uint32',
807
+ },
808
+ {
809
+ internalType: 'bytes32',
810
+ name: '_peer',
811
+ type: 'bytes32',
812
+ },
813
+ ],
814
+ name: 'isPeer',
815
+ outputs: [
816
+ {
817
+ internalType: 'bool',
818
+ name: '',
819
+ type: 'bool',
820
+ },
821
+ ],
822
+ stateMutability: 'view',
823
+ type: 'function',
824
+ },
825
+ {
826
+ inputs: [
827
+ {
828
+ components: [
829
+ {
830
+ internalType: 'uint32',
831
+ name: 'srcEid',
832
+ type: 'uint32',
833
+ },
834
+ {
835
+ internalType: 'bytes32',
836
+ name: 'sender',
837
+ type: 'bytes32',
838
+ },
839
+ {
840
+ internalType: 'uint64',
841
+ name: 'nonce',
842
+ type: 'uint64',
843
+ },
844
+ ],
845
+ internalType: 'struct Origin',
846
+ name: '_origin',
847
+ type: 'tuple',
848
+ },
849
+ {
850
+ internalType: 'bytes32',
851
+ name: '_guid',
852
+ type: 'bytes32',
853
+ },
854
+ {
855
+ internalType: 'bytes',
856
+ name: '_message',
857
+ type: 'bytes',
858
+ },
859
+ {
860
+ internalType: 'address',
861
+ name: '_executor',
862
+ type: 'address',
863
+ },
864
+ {
865
+ internalType: 'bytes',
866
+ name: '_extraData',
867
+ type: 'bytes',
868
+ },
869
+ ],
870
+ name: 'lzReceive',
871
+ outputs: [],
872
+ stateMutability: 'payable',
873
+ type: 'function',
874
+ },
875
+ {
876
+ inputs: [
877
+ {
878
+ components: [
879
+ {
880
+ components: [
881
+ {
882
+ internalType: 'uint32',
883
+ name: 'srcEid',
884
+ type: 'uint32',
885
+ },
886
+ {
887
+ internalType: 'bytes32',
888
+ name: 'sender',
889
+ type: 'bytes32',
890
+ },
891
+ {
892
+ internalType: 'uint64',
893
+ name: 'nonce',
894
+ type: 'uint64',
895
+ },
896
+ ],
897
+ internalType: 'struct Origin',
898
+ name: 'origin',
899
+ type: 'tuple',
900
+ },
901
+ {
902
+ internalType: 'uint32',
903
+ name: 'dstEid',
904
+ type: 'uint32',
905
+ },
906
+ {
907
+ internalType: 'address',
908
+ name: 'receiver',
909
+ type: 'address',
910
+ },
911
+ {
912
+ internalType: 'bytes32',
913
+ name: 'guid',
914
+ type: 'bytes32',
915
+ },
916
+ {
917
+ internalType: 'uint256',
918
+ name: 'value',
919
+ type: 'uint256',
920
+ },
921
+ {
922
+ internalType: 'address',
923
+ name: 'executor',
924
+ type: 'address',
925
+ },
926
+ {
927
+ internalType: 'bytes',
928
+ name: 'message',
929
+ type: 'bytes',
930
+ },
931
+ {
932
+ internalType: 'bytes',
933
+ name: 'extraData',
934
+ type: 'bytes',
935
+ },
936
+ ],
937
+ internalType: 'struct InboundPacket[]',
938
+ name: '_packets',
939
+ type: 'tuple[]',
940
+ },
941
+ ],
942
+ name: 'lzReceiveAndRevert',
943
+ outputs: [],
944
+ stateMutability: 'payable',
945
+ type: 'function',
946
+ },
947
+ {
948
+ inputs: [
949
+ {
950
+ components: [
951
+ {
952
+ internalType: 'uint32',
953
+ name: 'srcEid',
954
+ type: 'uint32',
955
+ },
956
+ {
957
+ internalType: 'bytes32',
958
+ name: 'sender',
959
+ type: 'bytes32',
960
+ },
961
+ {
962
+ internalType: 'uint64',
963
+ name: 'nonce',
964
+ type: 'uint64',
965
+ },
966
+ ],
967
+ internalType: 'struct Origin',
968
+ name: '_origin',
969
+ type: 'tuple',
970
+ },
971
+ {
972
+ internalType: 'bytes32',
973
+ name: '_guid',
974
+ type: 'bytes32',
975
+ },
976
+ {
977
+ internalType: 'bytes',
978
+ name: '_message',
979
+ type: 'bytes',
980
+ },
981
+ {
982
+ internalType: 'address',
983
+ name: '_executor',
984
+ type: 'address',
985
+ },
986
+ {
987
+ internalType: 'bytes',
988
+ name: '_extraData',
989
+ type: 'bytes',
990
+ },
991
+ ],
992
+ name: 'lzReceiveSimulate',
993
+ outputs: [],
994
+ stateMutability: 'payable',
995
+ type: 'function',
996
+ },
997
+ {
998
+ inputs: [],
999
+ name: 'msgInspector',
1000
+ outputs: [
1001
+ {
1002
+ internalType: 'address',
1003
+ name: '',
1004
+ type: 'address',
1005
+ },
1006
+ ],
1007
+ stateMutability: 'view',
1008
+ type: 'function',
1009
+ },
1010
+ {
1011
+ inputs: [],
1012
+ name: 'name',
1013
+ outputs: [
1014
+ {
1015
+ internalType: 'string',
1016
+ name: '',
1017
+ type: 'string',
1018
+ },
1019
+ ],
1020
+ stateMutability: 'view',
1021
+ type: 'function',
1022
+ },
1023
+ {
1024
+ inputs: [
1025
+ {
1026
+ internalType: 'uint32',
1027
+ name: '',
1028
+ type: 'uint32',
1029
+ },
1030
+ {
1031
+ internalType: 'bytes32',
1032
+ name: '',
1033
+ type: 'bytes32',
1034
+ },
1035
+ ],
1036
+ name: 'nextNonce',
1037
+ outputs: [
1038
+ {
1039
+ internalType: 'uint64',
1040
+ name: 'nonce',
1041
+ type: 'uint64',
1042
+ },
1043
+ ],
1044
+ stateMutability: 'view',
1045
+ type: 'function',
1046
+ },
1047
+ {
1048
+ inputs: [],
1049
+ name: 'oApp',
1050
+ outputs: [
1051
+ {
1052
+ internalType: 'address',
1053
+ name: '',
1054
+ type: 'address',
1055
+ },
1056
+ ],
1057
+ stateMutability: 'view',
1058
+ type: 'function',
1059
+ },
1060
+ {
1061
+ inputs: [],
1062
+ name: 'oAppVersion',
1063
+ outputs: [
1064
+ {
1065
+ internalType: 'uint64',
1066
+ name: 'senderVersion',
1067
+ type: 'uint64',
1068
+ },
1069
+ {
1070
+ internalType: 'uint64',
1071
+ name: 'receiverVersion',
1072
+ type: 'uint64',
1073
+ },
1074
+ ],
1075
+ stateMutability: 'pure',
1076
+ type: 'function',
1077
+ },
1078
+ {
1079
+ inputs: [],
1080
+ name: 'oftVersion',
1081
+ outputs: [
1082
+ {
1083
+ internalType: 'bytes4',
1084
+ name: 'interfaceId',
1085
+ type: 'bytes4',
1086
+ },
1087
+ {
1088
+ internalType: 'uint64',
1089
+ name: 'version',
1090
+ type: 'uint64',
1091
+ },
1092
+ ],
1093
+ stateMutability: 'pure',
1094
+ type: 'function',
1095
+ },
1096
+ {
1097
+ inputs: [],
1098
+ name: 'owner',
1099
+ outputs: [
1100
+ {
1101
+ internalType: 'address',
1102
+ name: '',
1103
+ type: 'address',
1104
+ },
1105
+ ],
1106
+ stateMutability: 'view',
1107
+ type: 'function',
1108
+ },
1109
+ {
1110
+ inputs: [],
1111
+ name: 'pause',
1112
+ outputs: [],
1113
+ stateMutability: 'nonpayable',
1114
+ type: 'function',
1115
+ },
1116
+ {
1117
+ inputs: [],
1118
+ name: 'paused',
1119
+ outputs: [
1120
+ {
1121
+ internalType: 'bool',
1122
+ name: '',
1123
+ type: 'bool',
1124
+ },
1125
+ ],
1126
+ stateMutability: 'view',
1127
+ type: 'function',
1128
+ },
1129
+ {
1130
+ inputs: [
1131
+ {
1132
+ internalType: 'uint32',
1133
+ name: 'eid',
1134
+ type: 'uint32',
1135
+ },
1136
+ ],
1137
+ name: 'peers',
1138
+ outputs: [
1139
+ {
1140
+ internalType: 'bytes32',
1141
+ name: 'peer',
1142
+ type: 'bytes32',
1143
+ },
1144
+ ],
1145
+ stateMutability: 'view',
1146
+ type: 'function',
1147
+ },
1148
+ {
1149
+ inputs: [],
1150
+ name: 'preCrime',
1151
+ outputs: [
1152
+ {
1153
+ internalType: 'address',
1154
+ name: '',
1155
+ type: 'address',
1156
+ },
1157
+ ],
1158
+ stateMutability: 'view',
1159
+ type: 'function',
1160
+ },
1161
+ {
1162
+ inputs: [
1163
+ {
1164
+ components: [
1165
+ {
1166
+ internalType: 'uint32',
1167
+ name: 'dstEid',
1168
+ type: 'uint32',
1169
+ },
1170
+ {
1171
+ internalType: 'bytes32',
1172
+ name: 'to',
1173
+ type: 'bytes32',
1174
+ },
1175
+ {
1176
+ internalType: 'uint256',
1177
+ name: 'amountLD',
1178
+ type: 'uint256',
1179
+ },
1180
+ {
1181
+ internalType: 'uint256',
1182
+ name: 'minAmountLD',
1183
+ type: 'uint256',
1184
+ },
1185
+ {
1186
+ internalType: 'bytes',
1187
+ name: 'extraOptions',
1188
+ type: 'bytes',
1189
+ },
1190
+ {
1191
+ internalType: 'bytes',
1192
+ name: 'composeMsg',
1193
+ type: 'bytes',
1194
+ },
1195
+ {
1196
+ internalType: 'bytes',
1197
+ name: 'oftCmd',
1198
+ type: 'bytes',
1199
+ },
1200
+ ],
1201
+ internalType: 'struct SendParam',
1202
+ name: '_sendParam',
1203
+ type: 'tuple',
1204
+ },
1205
+ ],
1206
+ name: 'quoteOFT',
1207
+ outputs: [
1208
+ {
1209
+ components: [
1210
+ {
1211
+ internalType: 'uint256',
1212
+ name: 'minAmountLD',
1213
+ type: 'uint256',
1214
+ },
1215
+ {
1216
+ internalType: 'uint256',
1217
+ name: 'maxAmountLD',
1218
+ type: 'uint256',
1219
+ },
1220
+ ],
1221
+ internalType: 'struct OFTLimit',
1222
+ name: 'oftLimit',
1223
+ type: 'tuple',
1224
+ },
1225
+ {
1226
+ components: [
1227
+ {
1228
+ internalType: 'int256',
1229
+ name: 'feeAmountLD',
1230
+ type: 'int256',
1231
+ },
1232
+ {
1233
+ internalType: 'string',
1234
+ name: 'description',
1235
+ type: 'string',
1236
+ },
1237
+ ],
1238
+ internalType: 'struct OFTFeeDetail[]',
1239
+ name: 'oftFeeDetails',
1240
+ type: 'tuple[]',
1241
+ },
1242
+ {
1243
+ components: [
1244
+ {
1245
+ internalType: 'uint256',
1246
+ name: 'amountSentLD',
1247
+ type: 'uint256',
1248
+ },
1249
+ {
1250
+ internalType: 'uint256',
1251
+ name: 'amountReceivedLD',
1252
+ type: 'uint256',
1253
+ },
1254
+ ],
1255
+ internalType: 'struct OFTReceipt',
1256
+ name: 'oftReceipt',
1257
+ type: 'tuple',
1258
+ },
1259
+ ],
1260
+ stateMutability: 'view',
1261
+ type: 'function',
1262
+ },
1263
+ {
1264
+ inputs: [
1265
+ {
1266
+ components: [
1267
+ {
1268
+ internalType: 'uint32',
1269
+ name: 'dstEid',
1270
+ type: 'uint32',
1271
+ },
1272
+ {
1273
+ internalType: 'bytes32',
1274
+ name: 'to',
1275
+ type: 'bytes32',
1276
+ },
1277
+ {
1278
+ internalType: 'uint256',
1279
+ name: 'amountLD',
1280
+ type: 'uint256',
1281
+ },
1282
+ {
1283
+ internalType: 'uint256',
1284
+ name: 'minAmountLD',
1285
+ type: 'uint256',
1286
+ },
1287
+ {
1288
+ internalType: 'bytes',
1289
+ name: 'extraOptions',
1290
+ type: 'bytes',
1291
+ },
1292
+ {
1293
+ internalType: 'bytes',
1294
+ name: 'composeMsg',
1295
+ type: 'bytes',
1296
+ },
1297
+ {
1298
+ internalType: 'bytes',
1299
+ name: 'oftCmd',
1300
+ type: 'bytes',
1301
+ },
1302
+ ],
1303
+ internalType: 'struct SendParam',
1304
+ name: '_sendParam',
1305
+ type: 'tuple',
1306
+ },
1307
+ {
1308
+ internalType: 'bool',
1309
+ name: '_payInLzToken',
1310
+ type: 'bool',
1311
+ },
1312
+ ],
1313
+ name: 'quoteSend',
1314
+ outputs: [
1315
+ {
1316
+ components: [
1317
+ {
1318
+ internalType: 'uint256',
1319
+ name: 'nativeFee',
1320
+ type: 'uint256',
1321
+ },
1322
+ {
1323
+ internalType: 'uint256',
1324
+ name: 'lzTokenFee',
1325
+ type: 'uint256',
1326
+ },
1327
+ ],
1328
+ internalType: 'struct MessagingFee',
1329
+ name: 'msgFee',
1330
+ type: 'tuple',
1331
+ },
1332
+ ],
1333
+ stateMutability: 'view',
1334
+ type: 'function',
1335
+ },
1336
+ {
1337
+ inputs: [],
1338
+ name: 'renounceOwnership',
1339
+ outputs: [],
1340
+ stateMutability: 'nonpayable',
1341
+ type: 'function',
1342
+ },
1343
+ {
1344
+ inputs: [
1345
+ {
1346
+ components: [
1347
+ {
1348
+ internalType: 'uint32',
1349
+ name: 'dstEid',
1350
+ type: 'uint32',
1351
+ },
1352
+ {
1353
+ internalType: 'bytes32',
1354
+ name: 'to',
1355
+ type: 'bytes32',
1356
+ },
1357
+ {
1358
+ internalType: 'uint256',
1359
+ name: 'amountLD',
1360
+ type: 'uint256',
1361
+ },
1362
+ {
1363
+ internalType: 'uint256',
1364
+ name: 'minAmountLD',
1365
+ type: 'uint256',
1366
+ },
1367
+ {
1368
+ internalType: 'bytes',
1369
+ name: 'extraOptions',
1370
+ type: 'bytes',
1371
+ },
1372
+ {
1373
+ internalType: 'bytes',
1374
+ name: 'composeMsg',
1375
+ type: 'bytes',
1376
+ },
1377
+ {
1378
+ internalType: 'bytes',
1379
+ name: 'oftCmd',
1380
+ type: 'bytes',
1381
+ },
1382
+ ],
1383
+ internalType: 'struct SendParam',
1384
+ name: '_sendParam',
1385
+ type: 'tuple',
1386
+ },
1387
+ {
1388
+ components: [
1389
+ {
1390
+ internalType: 'uint256',
1391
+ name: 'nativeFee',
1392
+ type: 'uint256',
1393
+ },
1394
+ {
1395
+ internalType: 'uint256',
1396
+ name: 'lzTokenFee',
1397
+ type: 'uint256',
1398
+ },
1399
+ ],
1400
+ internalType: 'struct MessagingFee',
1401
+ name: '_fee',
1402
+ type: 'tuple',
1403
+ },
1404
+ {
1405
+ internalType: 'address',
1406
+ name: '_refundAddress',
1407
+ type: 'address',
1408
+ },
1409
+ ],
1410
+ name: 'send',
1411
+ outputs: [
1412
+ {
1413
+ components: [
1414
+ {
1415
+ internalType: 'bytes32',
1416
+ name: 'guid',
1417
+ type: 'bytes32',
1418
+ },
1419
+ {
1420
+ internalType: 'uint64',
1421
+ name: 'nonce',
1422
+ type: 'uint64',
1423
+ },
1424
+ {
1425
+ components: [
1426
+ {
1427
+ internalType: 'uint256',
1428
+ name: 'nativeFee',
1429
+ type: 'uint256',
1430
+ },
1431
+ {
1432
+ internalType: 'uint256',
1433
+ name: 'lzTokenFee',
1434
+ type: 'uint256',
1435
+ },
1436
+ ],
1437
+ internalType: 'struct MessagingFee',
1438
+ name: 'fee',
1439
+ type: 'tuple',
1440
+ },
1441
+ ],
1442
+ internalType: 'struct MessagingReceipt',
1443
+ name: 'msgReceipt',
1444
+ type: 'tuple',
1445
+ },
1446
+ {
1447
+ components: [
1448
+ {
1449
+ internalType: 'uint256',
1450
+ name: 'amountSentLD',
1451
+ type: 'uint256',
1452
+ },
1453
+ {
1454
+ internalType: 'uint256',
1455
+ name: 'amountReceivedLD',
1456
+ type: 'uint256',
1457
+ },
1458
+ ],
1459
+ internalType: 'struct OFTReceipt',
1460
+ name: 'oftReceipt',
1461
+ type: 'tuple',
1462
+ },
1463
+ ],
1464
+ stateMutability: 'payable',
1465
+ type: 'function',
1466
+ },
1467
+ {
1468
+ inputs: [
1469
+ {
1470
+ internalType: 'address',
1471
+ name: '_delegate',
1472
+ type: 'address',
1473
+ },
1474
+ ],
1475
+ name: 'setDelegate',
1476
+ outputs: [],
1477
+ stateMutability: 'nonpayable',
1478
+ type: 'function',
1479
+ },
1480
+ {
1481
+ inputs: [
1482
+ {
1483
+ components: [
1484
+ {
1485
+ internalType: 'uint32',
1486
+ name: 'eid',
1487
+ type: 'uint32',
1488
+ },
1489
+ {
1490
+ internalType: 'uint16',
1491
+ name: 'msgType',
1492
+ type: 'uint16',
1493
+ },
1494
+ {
1495
+ internalType: 'bytes',
1496
+ name: 'options',
1497
+ type: 'bytes',
1498
+ },
1499
+ ],
1500
+ internalType: 'struct EnforcedOptionParam[]',
1501
+ name: '_enforcedOptions',
1502
+ type: 'tuple[]',
1503
+ },
1504
+ ],
1505
+ name: 'setEnforcedOptions',
1506
+ outputs: [],
1507
+ stateMutability: 'nonpayable',
1508
+ type: 'function',
1509
+ },
1510
+ {
1511
+ inputs: [
1512
+ {
1513
+ internalType: 'address',
1514
+ name: '_msgInspector',
1515
+ type: 'address',
1516
+ },
1517
+ ],
1518
+ name: 'setMsgInspector',
1519
+ outputs: [],
1520
+ stateMutability: 'nonpayable',
1521
+ type: 'function',
1522
+ },
1523
+ {
1524
+ inputs: [
1525
+ {
1526
+ internalType: 'uint32',
1527
+ name: '_eid',
1528
+ type: 'uint32',
1529
+ },
1530
+ {
1531
+ internalType: 'bytes32',
1532
+ name: '_peer',
1533
+ type: 'bytes32',
1534
+ },
1535
+ ],
1536
+ name: 'setPeer',
1537
+ outputs: [],
1538
+ stateMutability: 'nonpayable',
1539
+ type: 'function',
1540
+ },
1541
+ {
1542
+ inputs: [
1543
+ {
1544
+ internalType: 'address',
1545
+ name: '_preCrime',
1546
+ type: 'address',
1547
+ },
1548
+ ],
1549
+ name: 'setPreCrime',
1550
+ outputs: [],
1551
+ stateMutability: 'nonpayable',
1552
+ type: 'function',
1553
+ },
1554
+ {
1555
+ inputs: [],
1556
+ name: 'sharedDecimals',
1557
+ outputs: [
1558
+ {
1559
+ internalType: 'uint8',
1560
+ name: '',
1561
+ type: 'uint8',
1562
+ },
1563
+ ],
1564
+ stateMutability: 'view',
1565
+ type: 'function',
1566
+ },
1567
+ {
1568
+ inputs: [],
1569
+ name: 'symbol',
1570
+ outputs: [
1571
+ {
1572
+ internalType: 'string',
1573
+ name: '',
1574
+ type: 'string',
1575
+ },
1576
+ ],
1577
+ stateMutability: 'view',
1578
+ type: 'function',
1579
+ },
1580
+ {
1581
+ inputs: [],
1582
+ name: 'token',
1583
+ outputs: [
1584
+ {
1585
+ internalType: 'address',
1586
+ name: '',
1587
+ type: 'address',
1588
+ },
1589
+ ],
1590
+ stateMutability: 'view',
1591
+ type: 'function',
1592
+ },
1593
+ {
1594
+ inputs: [],
1595
+ name: 'totalSupply',
1596
+ outputs: [
1597
+ {
1598
+ internalType: 'uint256',
1599
+ name: '',
1600
+ type: 'uint256',
1601
+ },
1602
+ ],
1603
+ stateMutability: 'view',
1604
+ type: 'function',
1605
+ },
1606
+ {
1607
+ inputs: [
1608
+ {
1609
+ internalType: 'address',
1610
+ name: 'to',
1611
+ type: 'address',
1612
+ },
1613
+ {
1614
+ internalType: 'uint256',
1615
+ name: 'value',
1616
+ type: 'uint256',
1617
+ },
1618
+ ],
1619
+ name: 'transfer',
1620
+ outputs: [
1621
+ {
1622
+ internalType: 'bool',
1623
+ name: '',
1624
+ type: 'bool',
1625
+ },
1626
+ ],
1627
+ stateMutability: 'nonpayable',
1628
+ type: 'function',
1629
+ },
1630
+ {
1631
+ inputs: [
1632
+ {
1633
+ internalType: 'address',
1634
+ name: 'from',
1635
+ type: 'address',
1636
+ },
1637
+ {
1638
+ internalType: 'address',
1639
+ name: 'to',
1640
+ type: 'address',
1641
+ },
1642
+ {
1643
+ internalType: 'uint256',
1644
+ name: 'value',
1645
+ type: 'uint256',
1646
+ },
1647
+ ],
1648
+ name: 'transferFrom',
1649
+ outputs: [
1650
+ {
1651
+ internalType: 'bool',
1652
+ name: '',
1653
+ type: 'bool',
1654
+ },
1655
+ ],
1656
+ stateMutability: 'nonpayable',
1657
+ type: 'function',
1658
+ },
1659
+ {
1660
+ inputs: [
1661
+ {
1662
+ internalType: 'address',
1663
+ name: 'newOwner',
1664
+ type: 'address',
1665
+ },
1666
+ ],
1667
+ name: 'transferOwnership',
1668
+ outputs: [],
1669
+ stateMutability: 'nonpayable',
1670
+ type: 'function',
1671
+ },
1672
+ {
1673
+ inputs: [],
1674
+ name: 'unpause',
1675
+ outputs: [],
1676
+ stateMutability: 'nonpayable',
1677
+ type: 'function',
1678
+ },
1679
+ ];
1680
+ //# sourceMappingURL=first_oft.js.map