@layerzerolabs/lz-evm-oapp-v2 2.0.2

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 (51) hide show
  1. package/artifacts/contracts/oapp/OApp.sol/OApp.json +332 -0
  2. package/artifacts/contracts/oapp/OAppCore.sol/OAppCore.json +195 -0
  3. package/artifacts/contracts/oapp/OAppReceiver.sol/OAppReceiver.json +316 -0
  4. package/artifacts/contracts/oapp/OAppSender.sol/OAppSender.json +211 -0
  5. package/artifacts/contracts/oapp/examples/OmniCounter.sol/MsgCodec.json +10 -0
  6. package/artifacts/contracts/oapp/examples/OmniCounter.sol/OmniCounter.json +874 -0
  7. package/artifacts/contracts/oapp/examples/OmniCounterPreCrime.sol/OmniCounterPreCrime.json +373 -0
  8. package/artifacts/contracts/oapp/interfaces/IOAppComposer.sol/IOAppComposer.json +44 -0
  9. package/artifacts/contracts/oapp/interfaces/IOAppCore.sol/IOAppCore.json +143 -0
  10. package/artifacts/contracts/oapp/interfaces/IOAppMsgInspector.sol/IOAppMsgInspector.json +51 -0
  11. package/artifacts/contracts/oapp/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +111 -0
  12. package/artifacts/contracts/oapp/libs/OAppOptionsType3.sol/OAppOptionsType3.json +187 -0
  13. package/artifacts/contracts/oapp/libs/OptionsBuilder.sol/OptionsBuilder.json +38 -0
  14. package/artifacts/contracts/oft/OFT.sol/OFT.json +1466 -0
  15. package/artifacts/contracts/oft/OFTAdapter.sol/OFTAdapter.json +1204 -0
  16. package/artifacts/contracts/oft/OFTCore.sol/OFTCore.json +1170 -0
  17. package/artifacts/contracts/oft/interfaces/IOFT.sol/IOFT.json +472 -0
  18. package/artifacts/contracts/oft/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
  19. package/artifacts/contracts/oft/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
  20. package/artifacts/contracts/precrime/OAppPreCrimeSimulator.sol/OAppPreCrimeSimulator.json +277 -0
  21. package/artifacts/contracts/precrime/PreCrime.sol/PreCrime.json +352 -0
  22. package/artifacts/contracts/precrime/extensions/PreCrimeE1.sol/PreCrimeE1.json +352 -0
  23. package/artifacts/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol/IOAppPreCrimeSimulator.json +175 -0
  24. package/artifacts/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +188 -0
  25. package/artifacts/contracts/precrime/libs/Packet.sol/PacketDecoder.json +10 -0
  26. package/contracts/oapp/OApp.sol +39 -0
  27. package/contracts/oapp/OAppCore.sol +68 -0
  28. package/contracts/oapp/OAppReceiver.sol +101 -0
  29. package/contracts/oapp/OAppSender.sol +124 -0
  30. package/contracts/oapp/examples/OmniCounter.sol +283 -0
  31. package/contracts/oapp/examples/OmniCounterPreCrime.sol +102 -0
  32. package/contracts/oapp/interfaces/IOAppComposer.sol +12 -0
  33. package/contracts/oapp/interfaces/IOAppCore.sol +51 -0
  34. package/contracts/oapp/interfaces/IOAppMsgInspector.sol +22 -0
  35. package/contracts/oapp/interfaces/IOAppOptionsType3.sol +43 -0
  36. package/contracts/oapp/libs/OAppOptionsType3.sol +82 -0
  37. package/contracts/oapp/libs/OptionsBuilder.sol +200 -0
  38. package/contracts/oft/OFT.sol +116 -0
  39. package/contracts/oft/OFTAdapter.sol +131 -0
  40. package/contracts/oft/OFTCore.sol +456 -0
  41. package/contracts/oft/OFTPrecrime.sol +99 -0
  42. package/contracts/oft/interfaces/IOFT.sol +168 -0
  43. package/contracts/oft/libs/OFTComposeMsgCodec.sol +91 -0
  44. package/contracts/oft/libs/OFTMsgCodec.sol +83 -0
  45. package/contracts/precrime/OAppPreCrimeSimulator.sol +125 -0
  46. package/contracts/precrime/PreCrime.sol +208 -0
  47. package/contracts/precrime/extensions/PreCrimeE1.sol +30 -0
  48. package/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol +55 -0
  49. package/contracts/precrime/interfaces/IPreCrime.sol +40 -0
  50. package/contracts/precrime/libs/Packet.sol +61 -0
  51. package/package.json +35 -0
@@ -0,0 +1,1170 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "OFTCore",
4
+ "sourceName": "contracts/oft/OFTCore.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "InvalidEndpointCall",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "InvalidLocalDecimals",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [
18
+ {
19
+ "internalType": "bytes",
20
+ "name": "options",
21
+ "type": "bytes"
22
+ }
23
+ ],
24
+ "name": "InvalidOptions",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "LzTokenUnavailable",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint32",
36
+ "name": "eid",
37
+ "type": "uint32"
38
+ }
39
+ ],
40
+ "name": "NoPeer",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "msgValue",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "name": "NotEnoughNative",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "addr",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "name": "OnlyEndpoint",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "uint32",
69
+ "name": "eid",
70
+ "type": "uint32"
71
+ },
72
+ {
73
+ "internalType": "bytes32",
74
+ "name": "sender",
75
+ "type": "bytes32"
76
+ }
77
+ ],
78
+ "name": "OnlyPeer",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "OnlySelf",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "internalType": "bytes",
90
+ "name": "result",
91
+ "type": "bytes"
92
+ }
93
+ ],
94
+ "name": "SimulationResult",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "amountToCreditLD",
102
+ "type": "uint256"
103
+ },
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "minAmountToCreditLD",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "name": "SlippageExceeded",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "components": [
118
+ {
119
+ "internalType": "uint32",
120
+ "name": "eid",
121
+ "type": "uint32"
122
+ },
123
+ {
124
+ "internalType": "uint16",
125
+ "name": "msgType",
126
+ "type": "uint16"
127
+ },
128
+ {
129
+ "internalType": "bytes",
130
+ "name": "options",
131
+ "type": "bytes"
132
+ }
133
+ ],
134
+ "indexed": false,
135
+ "internalType": "struct EnforcedOptionParam[]",
136
+ "name": "_enforcedOptions",
137
+ "type": "tuple[]"
138
+ }
139
+ ],
140
+ "name": "EnforcedOptionSet",
141
+ "type": "event"
142
+ },
143
+ {
144
+ "anonymous": false,
145
+ "inputs": [
146
+ {
147
+ "indexed": false,
148
+ "internalType": "address",
149
+ "name": "inspector",
150
+ "type": "address"
151
+ }
152
+ ],
153
+ "name": "MsgInspectorSet",
154
+ "type": "event"
155
+ },
156
+ {
157
+ "anonymous": false,
158
+ "inputs": [
159
+ {
160
+ "indexed": true,
161
+ "internalType": "bytes32",
162
+ "name": "guid",
163
+ "type": "bytes32"
164
+ },
165
+ {
166
+ "indexed": true,
167
+ "internalType": "address",
168
+ "name": "toAddress",
169
+ "type": "address"
170
+ },
171
+ {
172
+ "indexed": false,
173
+ "internalType": "uint256",
174
+ "name": "amountToCreditLD",
175
+ "type": "uint256"
176
+ },
177
+ {
178
+ "indexed": false,
179
+ "internalType": "uint256",
180
+ "name": "amountReceivedLD",
181
+ "type": "uint256"
182
+ }
183
+ ],
184
+ "name": "OFTReceived",
185
+ "type": "event"
186
+ },
187
+ {
188
+ "anonymous": false,
189
+ "inputs": [
190
+ {
191
+ "indexed": true,
192
+ "internalType": "bytes32",
193
+ "name": "guid",
194
+ "type": "bytes32"
195
+ },
196
+ {
197
+ "indexed": true,
198
+ "internalType": "address",
199
+ "name": "fromAddress",
200
+ "type": "address"
201
+ },
202
+ {
203
+ "indexed": false,
204
+ "internalType": "uint256",
205
+ "name": "amountDebitedLD",
206
+ "type": "uint256"
207
+ },
208
+ {
209
+ "indexed": false,
210
+ "internalType": "uint256",
211
+ "name": "amountToCreditLD",
212
+ "type": "uint256"
213
+ },
214
+ {
215
+ "indexed": false,
216
+ "internalType": "bytes",
217
+ "name": "composeMsg",
218
+ "type": "bytes"
219
+ }
220
+ ],
221
+ "name": "OFTSent",
222
+ "type": "event"
223
+ },
224
+ {
225
+ "anonymous": false,
226
+ "inputs": [
227
+ {
228
+ "indexed": true,
229
+ "internalType": "address",
230
+ "name": "previousOwner",
231
+ "type": "address"
232
+ },
233
+ {
234
+ "indexed": true,
235
+ "internalType": "address",
236
+ "name": "newOwner",
237
+ "type": "address"
238
+ }
239
+ ],
240
+ "name": "OwnershipTransferred",
241
+ "type": "event"
242
+ },
243
+ {
244
+ "anonymous": false,
245
+ "inputs": [
246
+ {
247
+ "indexed": false,
248
+ "internalType": "uint32",
249
+ "name": "eid",
250
+ "type": "uint32"
251
+ },
252
+ {
253
+ "indexed": false,
254
+ "internalType": "bytes32",
255
+ "name": "peer",
256
+ "type": "bytes32"
257
+ }
258
+ ],
259
+ "name": "PeerSet",
260
+ "type": "event"
261
+ },
262
+ {
263
+ "anonymous": false,
264
+ "inputs": [
265
+ {
266
+ "indexed": false,
267
+ "internalType": "address",
268
+ "name": "preCrimeAddress",
269
+ "type": "address"
270
+ }
271
+ ],
272
+ "name": "PreCrimeSet",
273
+ "type": "event"
274
+ },
275
+ {
276
+ "inputs": [],
277
+ "name": "SEND",
278
+ "outputs": [
279
+ {
280
+ "internalType": "uint16",
281
+ "name": "",
282
+ "type": "uint16"
283
+ }
284
+ ],
285
+ "stateMutability": "view",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [],
290
+ "name": "SEND_AND_CALL",
291
+ "outputs": [
292
+ {
293
+ "internalType": "uint16",
294
+ "name": "",
295
+ "type": "uint16"
296
+ }
297
+ ],
298
+ "stateMutability": "view",
299
+ "type": "function"
300
+ },
301
+ {
302
+ "inputs": [
303
+ {
304
+ "components": [
305
+ {
306
+ "internalType": "uint32",
307
+ "name": "srcEid",
308
+ "type": "uint32"
309
+ },
310
+ {
311
+ "internalType": "bytes32",
312
+ "name": "sender",
313
+ "type": "bytes32"
314
+ },
315
+ {
316
+ "internalType": "uint64",
317
+ "name": "nonce",
318
+ "type": "uint64"
319
+ }
320
+ ],
321
+ "internalType": "struct Origin",
322
+ "name": "origin",
323
+ "type": "tuple"
324
+ }
325
+ ],
326
+ "name": "allowInitializePath",
327
+ "outputs": [
328
+ {
329
+ "internalType": "bool",
330
+ "name": "",
331
+ "type": "bool"
332
+ }
333
+ ],
334
+ "stateMutability": "view",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [
339
+ {
340
+ "internalType": "uint32",
341
+ "name": "_eid",
342
+ "type": "uint32"
343
+ },
344
+ {
345
+ "internalType": "uint16",
346
+ "name": "_msgType",
347
+ "type": "uint16"
348
+ },
349
+ {
350
+ "internalType": "bytes",
351
+ "name": "_extraOptions",
352
+ "type": "bytes"
353
+ }
354
+ ],
355
+ "name": "combineOptions",
356
+ "outputs": [
357
+ {
358
+ "internalType": "bytes",
359
+ "name": "",
360
+ "type": "bytes"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [],
368
+ "name": "decimalConversionRate",
369
+ "outputs": [
370
+ {
371
+ "internalType": "uint256",
372
+ "name": "",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "stateMutability": "view",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [],
381
+ "name": "endpoint",
382
+ "outputs": [
383
+ {
384
+ "internalType": "contract ILayerZeroEndpointV2",
385
+ "name": "",
386
+ "type": "address"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
394
+ {
395
+ "internalType": "uint32",
396
+ "name": "eid",
397
+ "type": "uint32"
398
+ },
399
+ {
400
+ "internalType": "uint16",
401
+ "name": "msgType",
402
+ "type": "uint16"
403
+ }
404
+ ],
405
+ "name": "enforcedOptions",
406
+ "outputs": [
407
+ {
408
+ "internalType": "bytes",
409
+ "name": "enforcedOption",
410
+ "type": "bytes"
411
+ }
412
+ ],
413
+ "stateMutability": "view",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [
418
+ {
419
+ "internalType": "uint32",
420
+ "name": "_eid",
421
+ "type": "uint32"
422
+ },
423
+ {
424
+ "internalType": "bytes32",
425
+ "name": "_peer",
426
+ "type": "bytes32"
427
+ }
428
+ ],
429
+ "name": "isPeer",
430
+ "outputs": [
431
+ {
432
+ "internalType": "bool",
433
+ "name": "",
434
+ "type": "bool"
435
+ }
436
+ ],
437
+ "stateMutability": "view",
438
+ "type": "function"
439
+ },
440
+ {
441
+ "inputs": [
442
+ {
443
+ "components": [
444
+ {
445
+ "internalType": "uint32",
446
+ "name": "srcEid",
447
+ "type": "uint32"
448
+ },
449
+ {
450
+ "internalType": "bytes32",
451
+ "name": "sender",
452
+ "type": "bytes32"
453
+ },
454
+ {
455
+ "internalType": "uint64",
456
+ "name": "nonce",
457
+ "type": "uint64"
458
+ }
459
+ ],
460
+ "internalType": "struct Origin",
461
+ "name": "_origin",
462
+ "type": "tuple"
463
+ },
464
+ {
465
+ "internalType": "bytes32",
466
+ "name": "_guid",
467
+ "type": "bytes32"
468
+ },
469
+ {
470
+ "internalType": "bytes",
471
+ "name": "_message",
472
+ "type": "bytes"
473
+ },
474
+ {
475
+ "internalType": "address",
476
+ "name": "_executor",
477
+ "type": "address"
478
+ },
479
+ {
480
+ "internalType": "bytes",
481
+ "name": "_extraData",
482
+ "type": "bytes"
483
+ }
484
+ ],
485
+ "name": "lzReceive",
486
+ "outputs": [],
487
+ "stateMutability": "payable",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [
492
+ {
493
+ "components": [
494
+ {
495
+ "components": [
496
+ {
497
+ "internalType": "uint32",
498
+ "name": "srcEid",
499
+ "type": "uint32"
500
+ },
501
+ {
502
+ "internalType": "bytes32",
503
+ "name": "sender",
504
+ "type": "bytes32"
505
+ },
506
+ {
507
+ "internalType": "uint64",
508
+ "name": "nonce",
509
+ "type": "uint64"
510
+ }
511
+ ],
512
+ "internalType": "struct Origin",
513
+ "name": "origin",
514
+ "type": "tuple"
515
+ },
516
+ {
517
+ "internalType": "uint32",
518
+ "name": "dstEid",
519
+ "type": "uint32"
520
+ },
521
+ {
522
+ "internalType": "address",
523
+ "name": "receiver",
524
+ "type": "address"
525
+ },
526
+ {
527
+ "internalType": "bytes32",
528
+ "name": "guid",
529
+ "type": "bytes32"
530
+ },
531
+ {
532
+ "internalType": "uint256",
533
+ "name": "value",
534
+ "type": "uint256"
535
+ },
536
+ {
537
+ "internalType": "address",
538
+ "name": "executor",
539
+ "type": "address"
540
+ },
541
+ {
542
+ "internalType": "bytes",
543
+ "name": "message",
544
+ "type": "bytes"
545
+ },
546
+ {
547
+ "internalType": "bytes",
548
+ "name": "extraData",
549
+ "type": "bytes"
550
+ }
551
+ ],
552
+ "internalType": "struct InboundPacket[]",
553
+ "name": "_packets",
554
+ "type": "tuple[]"
555
+ }
556
+ ],
557
+ "name": "lzReceiveAndRevert",
558
+ "outputs": [],
559
+ "stateMutability": "payable",
560
+ "type": "function"
561
+ },
562
+ {
563
+ "inputs": [
564
+ {
565
+ "components": [
566
+ {
567
+ "internalType": "uint32",
568
+ "name": "srcEid",
569
+ "type": "uint32"
570
+ },
571
+ {
572
+ "internalType": "bytes32",
573
+ "name": "sender",
574
+ "type": "bytes32"
575
+ },
576
+ {
577
+ "internalType": "uint64",
578
+ "name": "nonce",
579
+ "type": "uint64"
580
+ }
581
+ ],
582
+ "internalType": "struct Origin",
583
+ "name": "_origin",
584
+ "type": "tuple"
585
+ },
586
+ {
587
+ "internalType": "bytes32",
588
+ "name": "_guid",
589
+ "type": "bytes32"
590
+ },
591
+ {
592
+ "internalType": "bytes",
593
+ "name": "_message",
594
+ "type": "bytes"
595
+ },
596
+ {
597
+ "internalType": "address",
598
+ "name": "_executor",
599
+ "type": "address"
600
+ },
601
+ {
602
+ "internalType": "bytes",
603
+ "name": "_extraData",
604
+ "type": "bytes"
605
+ }
606
+ ],
607
+ "name": "lzReceiveSimulate",
608
+ "outputs": [],
609
+ "stateMutability": "payable",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [],
614
+ "name": "msgInspector",
615
+ "outputs": [
616
+ {
617
+ "internalType": "address",
618
+ "name": "",
619
+ "type": "address"
620
+ }
621
+ ],
622
+ "stateMutability": "view",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [
627
+ {
628
+ "internalType": "uint32",
629
+ "name": "",
630
+ "type": "uint32"
631
+ },
632
+ {
633
+ "internalType": "bytes32",
634
+ "name": "",
635
+ "type": "bytes32"
636
+ }
637
+ ],
638
+ "name": "nextNonce",
639
+ "outputs": [
640
+ {
641
+ "internalType": "uint64",
642
+ "name": "nonce",
643
+ "type": "uint64"
644
+ }
645
+ ],
646
+ "stateMutability": "view",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "inputs": [],
651
+ "name": "oApp",
652
+ "outputs": [
653
+ {
654
+ "internalType": "address",
655
+ "name": "",
656
+ "type": "address"
657
+ }
658
+ ],
659
+ "stateMutability": "view",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [],
664
+ "name": "oAppVersion",
665
+ "outputs": [
666
+ {
667
+ "internalType": "uint64",
668
+ "name": "senderVersion",
669
+ "type": "uint64"
670
+ },
671
+ {
672
+ "internalType": "uint64",
673
+ "name": "receiverVersion",
674
+ "type": "uint64"
675
+ }
676
+ ],
677
+ "stateMutability": "pure",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [],
682
+ "name": "oftVersion",
683
+ "outputs": [
684
+ {
685
+ "internalType": "uint64",
686
+ "name": "major",
687
+ "type": "uint64"
688
+ },
689
+ {
690
+ "internalType": "uint64",
691
+ "name": "minor",
692
+ "type": "uint64"
693
+ }
694
+ ],
695
+ "stateMutability": "view",
696
+ "type": "function"
697
+ },
698
+ {
699
+ "inputs": [],
700
+ "name": "owner",
701
+ "outputs": [
702
+ {
703
+ "internalType": "address",
704
+ "name": "",
705
+ "type": "address"
706
+ }
707
+ ],
708
+ "stateMutability": "view",
709
+ "type": "function"
710
+ },
711
+ {
712
+ "inputs": [
713
+ {
714
+ "internalType": "uint32",
715
+ "name": "eid",
716
+ "type": "uint32"
717
+ }
718
+ ],
719
+ "name": "peers",
720
+ "outputs": [
721
+ {
722
+ "internalType": "bytes32",
723
+ "name": "peer",
724
+ "type": "bytes32"
725
+ }
726
+ ],
727
+ "stateMutability": "view",
728
+ "type": "function"
729
+ },
730
+ {
731
+ "inputs": [],
732
+ "name": "preCrime",
733
+ "outputs": [
734
+ {
735
+ "internalType": "address",
736
+ "name": "",
737
+ "type": "address"
738
+ }
739
+ ],
740
+ "stateMutability": "view",
741
+ "type": "function"
742
+ },
743
+ {
744
+ "inputs": [
745
+ {
746
+ "components": [
747
+ {
748
+ "internalType": "uint32",
749
+ "name": "dstEid",
750
+ "type": "uint32"
751
+ },
752
+ {
753
+ "internalType": "bytes32",
754
+ "name": "to",
755
+ "type": "bytes32"
756
+ },
757
+ {
758
+ "internalType": "uint256",
759
+ "name": "amountToSendLD",
760
+ "type": "uint256"
761
+ },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "minAmountToCreditLD",
765
+ "type": "uint256"
766
+ }
767
+ ],
768
+ "internalType": "struct SendParam",
769
+ "name": "_sendParam",
770
+ "type": "tuple"
771
+ },
772
+ {
773
+ "internalType": "bytes",
774
+ "name": "",
775
+ "type": "bytes"
776
+ }
777
+ ],
778
+ "name": "quoteOFT",
779
+ "outputs": [
780
+ {
781
+ "components": [
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "minAmountLD",
785
+ "type": "uint256"
786
+ },
787
+ {
788
+ "internalType": "uint256",
789
+ "name": "maxAmountLD",
790
+ "type": "uint256"
791
+ }
792
+ ],
793
+ "internalType": "struct OFTLimit",
794
+ "name": "oftLimit",
795
+ "type": "tuple"
796
+ },
797
+ {
798
+ "components": [
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "feeAmountLD",
802
+ "type": "uint256"
803
+ },
804
+ {
805
+ "internalType": "string",
806
+ "name": "description",
807
+ "type": "string"
808
+ }
809
+ ],
810
+ "internalType": "struct OFTFeeDetail[]",
811
+ "name": "oftFeeDetails",
812
+ "type": "tuple[]"
813
+ },
814
+ {
815
+ "components": [
816
+ {
817
+ "internalType": "uint256",
818
+ "name": "amountDebitLD",
819
+ "type": "uint256"
820
+ },
821
+ {
822
+ "internalType": "uint256",
823
+ "name": "amountCreditLD",
824
+ "type": "uint256"
825
+ }
826
+ ],
827
+ "internalType": "struct OFTReceipt",
828
+ "name": "oftReceipt",
829
+ "type": "tuple"
830
+ }
831
+ ],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [
837
+ {
838
+ "components": [
839
+ {
840
+ "internalType": "uint32",
841
+ "name": "dstEid",
842
+ "type": "uint32"
843
+ },
844
+ {
845
+ "internalType": "bytes32",
846
+ "name": "to",
847
+ "type": "bytes32"
848
+ },
849
+ {
850
+ "internalType": "uint256",
851
+ "name": "amountToSendLD",
852
+ "type": "uint256"
853
+ },
854
+ {
855
+ "internalType": "uint256",
856
+ "name": "minAmountToCreditLD",
857
+ "type": "uint256"
858
+ }
859
+ ],
860
+ "internalType": "struct SendParam",
861
+ "name": "_sendParam",
862
+ "type": "tuple"
863
+ },
864
+ {
865
+ "internalType": "bytes",
866
+ "name": "_extraOptions",
867
+ "type": "bytes"
868
+ },
869
+ {
870
+ "internalType": "bool",
871
+ "name": "_payInLzToken",
872
+ "type": "bool"
873
+ },
874
+ {
875
+ "internalType": "bytes",
876
+ "name": "_composeMsg",
877
+ "type": "bytes"
878
+ },
879
+ {
880
+ "internalType": "bytes",
881
+ "name": "",
882
+ "type": "bytes"
883
+ }
884
+ ],
885
+ "name": "quoteSend",
886
+ "outputs": [
887
+ {
888
+ "components": [
889
+ {
890
+ "internalType": "uint256",
891
+ "name": "nativeFee",
892
+ "type": "uint256"
893
+ },
894
+ {
895
+ "internalType": "uint256",
896
+ "name": "lzTokenFee",
897
+ "type": "uint256"
898
+ }
899
+ ],
900
+ "internalType": "struct MessagingFee",
901
+ "name": "msgFee",
902
+ "type": "tuple"
903
+ }
904
+ ],
905
+ "stateMutability": "view",
906
+ "type": "function"
907
+ },
908
+ {
909
+ "inputs": [],
910
+ "name": "renounceOwnership",
911
+ "outputs": [],
912
+ "stateMutability": "nonpayable",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [
917
+ {
918
+ "components": [
919
+ {
920
+ "internalType": "uint32",
921
+ "name": "dstEid",
922
+ "type": "uint32"
923
+ },
924
+ {
925
+ "internalType": "bytes32",
926
+ "name": "to",
927
+ "type": "bytes32"
928
+ },
929
+ {
930
+ "internalType": "uint256",
931
+ "name": "amountToSendLD",
932
+ "type": "uint256"
933
+ },
934
+ {
935
+ "internalType": "uint256",
936
+ "name": "minAmountToCreditLD",
937
+ "type": "uint256"
938
+ }
939
+ ],
940
+ "internalType": "struct SendParam",
941
+ "name": "_sendParam",
942
+ "type": "tuple"
943
+ },
944
+ {
945
+ "internalType": "bytes",
946
+ "name": "_extraOptions",
947
+ "type": "bytes"
948
+ },
949
+ {
950
+ "components": [
951
+ {
952
+ "internalType": "uint256",
953
+ "name": "nativeFee",
954
+ "type": "uint256"
955
+ },
956
+ {
957
+ "internalType": "uint256",
958
+ "name": "lzTokenFee",
959
+ "type": "uint256"
960
+ }
961
+ ],
962
+ "internalType": "struct MessagingFee",
963
+ "name": "_fee",
964
+ "type": "tuple"
965
+ },
966
+ {
967
+ "internalType": "address",
968
+ "name": "_refundAddress",
969
+ "type": "address"
970
+ },
971
+ {
972
+ "internalType": "bytes",
973
+ "name": "_composeMsg",
974
+ "type": "bytes"
975
+ },
976
+ {
977
+ "internalType": "bytes",
978
+ "name": "",
979
+ "type": "bytes"
980
+ }
981
+ ],
982
+ "name": "send",
983
+ "outputs": [
984
+ {
985
+ "components": [
986
+ {
987
+ "internalType": "bytes32",
988
+ "name": "guid",
989
+ "type": "bytes32"
990
+ },
991
+ {
992
+ "internalType": "uint64",
993
+ "name": "nonce",
994
+ "type": "uint64"
995
+ },
996
+ {
997
+ "components": [
998
+ {
999
+ "internalType": "uint256",
1000
+ "name": "nativeFee",
1001
+ "type": "uint256"
1002
+ },
1003
+ {
1004
+ "internalType": "uint256",
1005
+ "name": "lzTokenFee",
1006
+ "type": "uint256"
1007
+ }
1008
+ ],
1009
+ "internalType": "struct MessagingFee",
1010
+ "name": "fee",
1011
+ "type": "tuple"
1012
+ }
1013
+ ],
1014
+ "internalType": "struct MessagingReceipt",
1015
+ "name": "msgReceipt",
1016
+ "type": "tuple"
1017
+ },
1018
+ {
1019
+ "components": [
1020
+ {
1021
+ "internalType": "uint256",
1022
+ "name": "amountDebitLD",
1023
+ "type": "uint256"
1024
+ },
1025
+ {
1026
+ "internalType": "uint256",
1027
+ "name": "amountCreditLD",
1028
+ "type": "uint256"
1029
+ }
1030
+ ],
1031
+ "internalType": "struct OFTReceipt",
1032
+ "name": "oftReceipt",
1033
+ "type": "tuple"
1034
+ }
1035
+ ],
1036
+ "stateMutability": "payable",
1037
+ "type": "function"
1038
+ },
1039
+ {
1040
+ "inputs": [
1041
+ {
1042
+ "internalType": "address",
1043
+ "name": "_delegate",
1044
+ "type": "address"
1045
+ }
1046
+ ],
1047
+ "name": "setDelegate",
1048
+ "outputs": [],
1049
+ "stateMutability": "nonpayable",
1050
+ "type": "function"
1051
+ },
1052
+ {
1053
+ "inputs": [
1054
+ {
1055
+ "components": [
1056
+ {
1057
+ "internalType": "uint32",
1058
+ "name": "eid",
1059
+ "type": "uint32"
1060
+ },
1061
+ {
1062
+ "internalType": "uint16",
1063
+ "name": "msgType",
1064
+ "type": "uint16"
1065
+ },
1066
+ {
1067
+ "internalType": "bytes",
1068
+ "name": "options",
1069
+ "type": "bytes"
1070
+ }
1071
+ ],
1072
+ "internalType": "struct EnforcedOptionParam[]",
1073
+ "name": "_enforcedOptions",
1074
+ "type": "tuple[]"
1075
+ }
1076
+ ],
1077
+ "name": "setEnforcedOptions",
1078
+ "outputs": [],
1079
+ "stateMutability": "nonpayable",
1080
+ "type": "function"
1081
+ },
1082
+ {
1083
+ "inputs": [
1084
+ {
1085
+ "internalType": "address",
1086
+ "name": "_msgInspector",
1087
+ "type": "address"
1088
+ }
1089
+ ],
1090
+ "name": "setMsgInspector",
1091
+ "outputs": [],
1092
+ "stateMutability": "nonpayable",
1093
+ "type": "function"
1094
+ },
1095
+ {
1096
+ "inputs": [
1097
+ {
1098
+ "internalType": "uint32",
1099
+ "name": "_eid",
1100
+ "type": "uint32"
1101
+ },
1102
+ {
1103
+ "internalType": "bytes32",
1104
+ "name": "_peer",
1105
+ "type": "bytes32"
1106
+ }
1107
+ ],
1108
+ "name": "setPeer",
1109
+ "outputs": [],
1110
+ "stateMutability": "nonpayable",
1111
+ "type": "function"
1112
+ },
1113
+ {
1114
+ "inputs": [
1115
+ {
1116
+ "internalType": "address",
1117
+ "name": "_preCrime",
1118
+ "type": "address"
1119
+ }
1120
+ ],
1121
+ "name": "setPreCrime",
1122
+ "outputs": [],
1123
+ "stateMutability": "nonpayable",
1124
+ "type": "function"
1125
+ },
1126
+ {
1127
+ "inputs": [],
1128
+ "name": "sharedDecimals",
1129
+ "outputs": [
1130
+ {
1131
+ "internalType": "uint8",
1132
+ "name": "",
1133
+ "type": "uint8"
1134
+ }
1135
+ ],
1136
+ "stateMutability": "pure",
1137
+ "type": "function"
1138
+ },
1139
+ {
1140
+ "inputs": [],
1141
+ "name": "token",
1142
+ "outputs": [
1143
+ {
1144
+ "internalType": "address",
1145
+ "name": "",
1146
+ "type": "address"
1147
+ }
1148
+ ],
1149
+ "stateMutability": "view",
1150
+ "type": "function"
1151
+ },
1152
+ {
1153
+ "inputs": [
1154
+ {
1155
+ "internalType": "address",
1156
+ "name": "newOwner",
1157
+ "type": "address"
1158
+ }
1159
+ ],
1160
+ "name": "transferOwnership",
1161
+ "outputs": [],
1162
+ "stateMutability": "nonpayable",
1163
+ "type": "function"
1164
+ }
1165
+ ],
1166
+ "bytecode": "0x",
1167
+ "deployedBytecode": "0x",
1168
+ "linkReferences": {},
1169
+ "deployedLinkReferences": {}
1170
+ }