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