@pendle/core-v2 5.12.2-cross-chain-pt → 6.0.0

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