damm-sdk 1.1.30-alpha.21 → 1.1.30-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +732 -1
- package/dist/index.cjs.map +6 -3
- package/dist/index.js +732 -1
- package/dist/index.js.map +6 -3
- package/dist/integrations/cctp/cctp.v2.d.ts +28 -0
- package/dist/integrations/cctp/cctp.v2.d.ts.map +1 -0
- package/dist/integrations/cctp/index.d.ts +4 -0
- package/dist/integrations/cctp/index.d.ts.map +1 -0
- package/dist/integrations/cctp/message.transmitter.v2.abi.d.ts +556 -0
- package/dist/integrations/cctp/message.transmitter.v2.abi.d.ts.map +1 -0
- package/dist/integrations/cctp/token.messenger.v2.abi.d.ts +640 -0
- package/dist/integrations/cctp/token.messenger.v2.abi.d.ts.map +1 -0
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/integrations/cctp/cctp.v2.ts +94 -0
- package/src/integrations/cctp/index.ts +3 -0
- package/src/integrations/cctp/message.transmitter.v2.abi.ts +323 -0
- package/src/integrations/cctp/token.messenger.v2.abi.ts +351 -0
- package/src/integrations/index.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -44343,6 +44343,7 @@ __export(exports_src, {
|
|
|
44343
44343
|
repayToLendleTrx: () => repayToLendleTrx,
|
|
44344
44344
|
repayToAaveV3Trx: () => repayToAaveV3Trx,
|
|
44345
44345
|
repayMorphoBlueTrx: () => repayMorphoBlueTrx,
|
|
44346
|
+
receiveMessageFromCctpTrx: () => receiveMessageFromCctpTrx,
|
|
44346
44347
|
merklClaimTrx: () => merklClaimTrx,
|
|
44347
44348
|
merklClaimCalldata: () => merklClaimCalldata,
|
|
44348
44349
|
merklAbi: () => merkl_distributor_abi_default,
|
|
@@ -44362,6 +44363,7 @@ __export(exports_src, {
|
|
|
44362
44363
|
execTransactionFromModuleTrx: () => execTransactionFromModuleTrx,
|
|
44363
44364
|
depositToLendleTrx: () => depositToLendleTrx,
|
|
44364
44365
|
depositMorphoVaultTrx: () => depositMorphoVaultTrx,
|
|
44366
|
+
depositForBurnToCctpTrx: () => depositForBurnToCctpTrx,
|
|
44365
44367
|
createVaultProxyTrx: () => createVaultProxyTrx,
|
|
44366
44368
|
createOrderTrx: () => createOrderTrx,
|
|
44367
44369
|
createCall: () => createCall,
|
|
@@ -44436,6 +44438,7 @@ __export(exports_src, {
|
|
|
44436
44438
|
RepayToLendleCalldata: () => RepayToLendleCalldata,
|
|
44437
44439
|
RepayToAaveV3L1Calldata: () => RepayToAaveV3L1Calldata,
|
|
44438
44440
|
RepayMorphoBlueCalldata: () => RepayMorphoBlueCalldata,
|
|
44441
|
+
ReceiveMessageCalldata: () => ReceiveMessageCalldata,
|
|
44439
44442
|
QuoteSendTrx: () => QuoteSendTrx,
|
|
44440
44443
|
QuoteSendCalldata: () => QuoteSendCalldata,
|
|
44441
44444
|
Permit2Abi: () => permit2_abi_default,
|
|
@@ -44453,6 +44456,7 @@ __export(exports_src, {
|
|
|
44453
44456
|
ERC721: () => erc721_abi_default,
|
|
44454
44457
|
DepositToLendleCalldata: () => DepositToLendleCalldata,
|
|
44455
44458
|
DepositMorphoVaultCalldata: () => DepositMorphoVaultCalldata,
|
|
44459
|
+
DepositForBurnCalldata: () => DepositForBurnCalldata,
|
|
44456
44460
|
DelayedTransactionCalldata: () => DelayedTransactionCalldata,
|
|
44457
44461
|
DecreasePositionSwapType: () => DecreasePositionSwapType,
|
|
44458
44462
|
DELEGATE_CALL_OP_CODE: () => DELEGATE_CALL_OP_CODE,
|
|
@@ -44461,6 +44465,8 @@ __export(exports_src, {
|
|
|
44461
44465
|
CreateOrderCalldata: () => CreateOrderCalldata,
|
|
44462
44466
|
Commands: () => Commands,
|
|
44463
44467
|
ClaimFundingFeesCalldata: () => ClaimFundingFeesCalldata,
|
|
44468
|
+
CctpTokenMessengerV2Abi: () => token_messenger_v2_abi_default,
|
|
44469
|
+
CctpMessageTransmitterV2Abi: () => message_transmitter_v2_abi_default,
|
|
44464
44470
|
CancelOrderCalldata: () => CancelOrderCalldata,
|
|
44465
44471
|
CALL_OP_CODE: () => CALL_OP_CODE,
|
|
44466
44472
|
BorrowMorphoBlueCalldata: () => BorrowMorphoBlueCalldata,
|
|
@@ -92438,6 +92444,731 @@ var sendOFTTrx = ({
|
|
|
92438
92444
|
value: args.nativeFee
|
|
92439
92445
|
});
|
|
92440
92446
|
};
|
|
92447
|
+
// src/integrations/cctp/message.transmitter.v2.abi.ts
|
|
92448
|
+
var message_transmitter_v2_abi_default = [
|
|
92449
|
+
{
|
|
92450
|
+
inputs: [
|
|
92451
|
+
{ internalType: "uint32", name: "_localDomain", type: "uint32" },
|
|
92452
|
+
{ internalType: "uint32", name: "_version", type: "uint32" }
|
|
92453
|
+
],
|
|
92454
|
+
stateMutability: "nonpayable",
|
|
92455
|
+
type: "constructor"
|
|
92456
|
+
},
|
|
92457
|
+
{
|
|
92458
|
+
anonymous: false,
|
|
92459
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
92460
|
+
name: "AttesterDisabled",
|
|
92461
|
+
type: "event"
|
|
92462
|
+
},
|
|
92463
|
+
{
|
|
92464
|
+
anonymous: false,
|
|
92465
|
+
inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
|
|
92466
|
+
name: "AttesterEnabled",
|
|
92467
|
+
type: "event"
|
|
92468
|
+
},
|
|
92469
|
+
{
|
|
92470
|
+
anonymous: false,
|
|
92471
|
+
inputs: [
|
|
92472
|
+
{ indexed: true, internalType: "address", name: "previousAttesterManager", type: "address" },
|
|
92473
|
+
{ indexed: true, internalType: "address", name: "newAttesterManager", type: "address" }
|
|
92474
|
+
],
|
|
92475
|
+
name: "AttesterManagerUpdated",
|
|
92476
|
+
type: "event"
|
|
92477
|
+
},
|
|
92478
|
+
{
|
|
92479
|
+
anonymous: false,
|
|
92480
|
+
inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
|
|
92481
|
+
name: "Initialized",
|
|
92482
|
+
type: "event"
|
|
92483
|
+
},
|
|
92484
|
+
{
|
|
92485
|
+
anonymous: false,
|
|
92486
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
92487
|
+
name: "MaxMessageBodySizeUpdated",
|
|
92488
|
+
type: "event"
|
|
92489
|
+
},
|
|
92490
|
+
{
|
|
92491
|
+
anonymous: false,
|
|
92492
|
+
inputs: [
|
|
92493
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
92494
|
+
{ indexed: false, internalType: "uint32", name: "sourceDomain", type: "uint32" },
|
|
92495
|
+
{ indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" },
|
|
92496
|
+
{ indexed: false, internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
92497
|
+
{ indexed: true, internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
92498
|
+
{ indexed: false, internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
92499
|
+
],
|
|
92500
|
+
name: "MessageReceived",
|
|
92501
|
+
type: "event"
|
|
92502
|
+
},
|
|
92503
|
+
{
|
|
92504
|
+
anonymous: false,
|
|
92505
|
+
inputs: [{ indexed: false, internalType: "bytes", name: "message", type: "bytes" }],
|
|
92506
|
+
name: "MessageSent",
|
|
92507
|
+
type: "event"
|
|
92508
|
+
},
|
|
92509
|
+
{
|
|
92510
|
+
anonymous: false,
|
|
92511
|
+
inputs: [
|
|
92512
|
+
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
92513
|
+
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
92514
|
+
],
|
|
92515
|
+
name: "OwnershipTransferStarted",
|
|
92516
|
+
type: "event"
|
|
92517
|
+
},
|
|
92518
|
+
{
|
|
92519
|
+
anonymous: false,
|
|
92520
|
+
inputs: [
|
|
92521
|
+
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
92522
|
+
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
92523
|
+
],
|
|
92524
|
+
name: "OwnershipTransferred",
|
|
92525
|
+
type: "event"
|
|
92526
|
+
},
|
|
92527
|
+
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
92528
|
+
{
|
|
92529
|
+
anonymous: false,
|
|
92530
|
+
inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }],
|
|
92531
|
+
name: "PauserChanged",
|
|
92532
|
+
type: "event"
|
|
92533
|
+
},
|
|
92534
|
+
{
|
|
92535
|
+
anonymous: false,
|
|
92536
|
+
inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
|
|
92537
|
+
name: "RescuerChanged",
|
|
92538
|
+
type: "event"
|
|
92539
|
+
},
|
|
92540
|
+
{
|
|
92541
|
+
anonymous: false,
|
|
92542
|
+
inputs: [
|
|
92543
|
+
{ indexed: false, internalType: "uint256", name: "oldSignatureThreshold", type: "uint256" },
|
|
92544
|
+
{ indexed: false, internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }
|
|
92545
|
+
],
|
|
92546
|
+
name: "SignatureThresholdUpdated",
|
|
92547
|
+
type: "event"
|
|
92548
|
+
},
|
|
92549
|
+
{ anonymous: false, inputs: [], name: "Unpause", type: "event" },
|
|
92550
|
+
{
|
|
92551
|
+
inputs: [],
|
|
92552
|
+
name: "NONCE_USED",
|
|
92553
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
92554
|
+
stateMutability: "view",
|
|
92555
|
+
type: "function"
|
|
92556
|
+
},
|
|
92557
|
+
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
92558
|
+
{
|
|
92559
|
+
inputs: [],
|
|
92560
|
+
name: "attesterManager",
|
|
92561
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92562
|
+
stateMutability: "view",
|
|
92563
|
+
type: "function"
|
|
92564
|
+
},
|
|
92565
|
+
{
|
|
92566
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
92567
|
+
name: "disableAttester",
|
|
92568
|
+
outputs: [],
|
|
92569
|
+
stateMutability: "nonpayable",
|
|
92570
|
+
type: "function"
|
|
92571
|
+
},
|
|
92572
|
+
{
|
|
92573
|
+
inputs: [{ internalType: "address", name: "newAttester", type: "address" }],
|
|
92574
|
+
name: "enableAttester",
|
|
92575
|
+
outputs: [],
|
|
92576
|
+
stateMutability: "nonpayable",
|
|
92577
|
+
type: "function"
|
|
92578
|
+
},
|
|
92579
|
+
{
|
|
92580
|
+
inputs: [{ internalType: "uint256", name: "index", type: "uint256" }],
|
|
92581
|
+
name: "getEnabledAttester",
|
|
92582
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92583
|
+
stateMutability: "view",
|
|
92584
|
+
type: "function"
|
|
92585
|
+
},
|
|
92586
|
+
{
|
|
92587
|
+
inputs: [],
|
|
92588
|
+
name: "getNumEnabledAttesters",
|
|
92589
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
92590
|
+
stateMutability: "view",
|
|
92591
|
+
type: "function"
|
|
92592
|
+
},
|
|
92593
|
+
{
|
|
92594
|
+
inputs: [
|
|
92595
|
+
{ internalType: "address", name: "owner_", type: "address" },
|
|
92596
|
+
{ internalType: "address", name: "pauser_", type: "address" },
|
|
92597
|
+
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
92598
|
+
{ internalType: "address", name: "attesterManager_", type: "address" },
|
|
92599
|
+
{ internalType: "address[]", name: "attesters_", type: "address[]" },
|
|
92600
|
+
{ internalType: "uint256", name: "signatureThreshold_", type: "uint256" },
|
|
92601
|
+
{ internalType: "uint256", name: "maxMessageBodySize_", type: "uint256" }
|
|
92602
|
+
],
|
|
92603
|
+
name: "initialize",
|
|
92604
|
+
outputs: [],
|
|
92605
|
+
stateMutability: "nonpayable",
|
|
92606
|
+
type: "function"
|
|
92607
|
+
},
|
|
92608
|
+
{
|
|
92609
|
+
inputs: [],
|
|
92610
|
+
name: "initializedVersion",
|
|
92611
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
92612
|
+
stateMutability: "view",
|
|
92613
|
+
type: "function"
|
|
92614
|
+
},
|
|
92615
|
+
{
|
|
92616
|
+
inputs: [{ internalType: "address", name: "attester", type: "address" }],
|
|
92617
|
+
name: "isEnabledAttester",
|
|
92618
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
92619
|
+
stateMutability: "view",
|
|
92620
|
+
type: "function"
|
|
92621
|
+
},
|
|
92622
|
+
{
|
|
92623
|
+
inputs: [],
|
|
92624
|
+
name: "localDomain",
|
|
92625
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
92626
|
+
stateMutability: "view",
|
|
92627
|
+
type: "function"
|
|
92628
|
+
},
|
|
92629
|
+
{
|
|
92630
|
+
inputs: [],
|
|
92631
|
+
name: "maxMessageBodySize",
|
|
92632
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
92633
|
+
stateMutability: "view",
|
|
92634
|
+
type: "function"
|
|
92635
|
+
},
|
|
92636
|
+
{
|
|
92637
|
+
inputs: [],
|
|
92638
|
+
name: "owner",
|
|
92639
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92640
|
+
stateMutability: "view",
|
|
92641
|
+
type: "function"
|
|
92642
|
+
},
|
|
92643
|
+
{ inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
92644
|
+
{
|
|
92645
|
+
inputs: [],
|
|
92646
|
+
name: "paused",
|
|
92647
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
92648
|
+
stateMutability: "view",
|
|
92649
|
+
type: "function"
|
|
92650
|
+
},
|
|
92651
|
+
{
|
|
92652
|
+
inputs: [],
|
|
92653
|
+
name: "pauser",
|
|
92654
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92655
|
+
stateMutability: "view",
|
|
92656
|
+
type: "function"
|
|
92657
|
+
},
|
|
92658
|
+
{
|
|
92659
|
+
inputs: [],
|
|
92660
|
+
name: "pendingOwner",
|
|
92661
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92662
|
+
stateMutability: "view",
|
|
92663
|
+
type: "function"
|
|
92664
|
+
},
|
|
92665
|
+
{
|
|
92666
|
+
inputs: [
|
|
92667
|
+
{ internalType: "bytes", name: "message", type: "bytes" },
|
|
92668
|
+
{ internalType: "bytes", name: "attestation", type: "bytes" }
|
|
92669
|
+
],
|
|
92670
|
+
name: "receiveMessage",
|
|
92671
|
+
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
92672
|
+
stateMutability: "nonpayable",
|
|
92673
|
+
type: "function"
|
|
92674
|
+
},
|
|
92675
|
+
{
|
|
92676
|
+
inputs: [
|
|
92677
|
+
{ internalType: "contract IERC20", name: "tokenContract", type: "address" },
|
|
92678
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
92679
|
+
{ internalType: "uint256", name: "amount", type: "uint256" }
|
|
92680
|
+
],
|
|
92681
|
+
name: "rescueERC20",
|
|
92682
|
+
outputs: [],
|
|
92683
|
+
stateMutability: "nonpayable",
|
|
92684
|
+
type: "function"
|
|
92685
|
+
},
|
|
92686
|
+
{
|
|
92687
|
+
inputs: [],
|
|
92688
|
+
name: "rescuer",
|
|
92689
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92690
|
+
stateMutability: "view",
|
|
92691
|
+
type: "function"
|
|
92692
|
+
},
|
|
92693
|
+
{
|
|
92694
|
+
inputs: [
|
|
92695
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
92696
|
+
{ internalType: "bytes32", name: "recipient", type: "bytes32" },
|
|
92697
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
92698
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
92699
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
92700
|
+
],
|
|
92701
|
+
name: "sendMessage",
|
|
92702
|
+
outputs: [],
|
|
92703
|
+
stateMutability: "nonpayable",
|
|
92704
|
+
type: "function"
|
|
92705
|
+
},
|
|
92706
|
+
{
|
|
92707
|
+
inputs: [{ internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
|
|
92708
|
+
name: "setMaxMessageBodySize",
|
|
92709
|
+
outputs: [],
|
|
92710
|
+
stateMutability: "nonpayable",
|
|
92711
|
+
type: "function"
|
|
92712
|
+
},
|
|
92713
|
+
{
|
|
92714
|
+
inputs: [{ internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }],
|
|
92715
|
+
name: "setSignatureThreshold",
|
|
92716
|
+
outputs: [],
|
|
92717
|
+
stateMutability: "nonpayable",
|
|
92718
|
+
type: "function"
|
|
92719
|
+
},
|
|
92720
|
+
{
|
|
92721
|
+
inputs: [],
|
|
92722
|
+
name: "signatureThreshold",
|
|
92723
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
92724
|
+
stateMutability: "view",
|
|
92725
|
+
type: "function"
|
|
92726
|
+
},
|
|
92727
|
+
{
|
|
92728
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
92729
|
+
name: "transferOwnership",
|
|
92730
|
+
outputs: [],
|
|
92731
|
+
stateMutability: "nonpayable",
|
|
92732
|
+
type: "function"
|
|
92733
|
+
},
|
|
92734
|
+
{ inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
92735
|
+
{
|
|
92736
|
+
inputs: [{ internalType: "address", name: "newAttesterManager", type: "address" }],
|
|
92737
|
+
name: "updateAttesterManager",
|
|
92738
|
+
outputs: [],
|
|
92739
|
+
stateMutability: "nonpayable",
|
|
92740
|
+
type: "function"
|
|
92741
|
+
},
|
|
92742
|
+
{
|
|
92743
|
+
inputs: [{ internalType: "address", name: "_newPauser", type: "address" }],
|
|
92744
|
+
name: "updatePauser",
|
|
92745
|
+
outputs: [],
|
|
92746
|
+
stateMutability: "nonpayable",
|
|
92747
|
+
type: "function"
|
|
92748
|
+
},
|
|
92749
|
+
{
|
|
92750
|
+
inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
|
|
92751
|
+
name: "updateRescuer",
|
|
92752
|
+
outputs: [],
|
|
92753
|
+
stateMutability: "nonpayable",
|
|
92754
|
+
type: "function"
|
|
92755
|
+
},
|
|
92756
|
+
{
|
|
92757
|
+
inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
92758
|
+
name: "usedNonces",
|
|
92759
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
92760
|
+
stateMutability: "view",
|
|
92761
|
+
type: "function"
|
|
92762
|
+
},
|
|
92763
|
+
{
|
|
92764
|
+
inputs: [],
|
|
92765
|
+
name: "version",
|
|
92766
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
92767
|
+
stateMutability: "view",
|
|
92768
|
+
type: "function"
|
|
92769
|
+
}
|
|
92770
|
+
];
|
|
92771
|
+
|
|
92772
|
+
// src/integrations/cctp/token.messenger.v2.abi.ts
|
|
92773
|
+
var token_messenger_v2_abi_default = [
|
|
92774
|
+
{
|
|
92775
|
+
inputs: [
|
|
92776
|
+
{ internalType: "address", name: "_messageTransmitter", type: "address" },
|
|
92777
|
+
{ internalType: "uint32", name: "_messageBodyVersion", type: "uint32" }
|
|
92778
|
+
],
|
|
92779
|
+
stateMutability: "nonpayable",
|
|
92780
|
+
type: "constructor"
|
|
92781
|
+
},
|
|
92782
|
+
{
|
|
92783
|
+
anonymous: false,
|
|
92784
|
+
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
92785
|
+
name: "Denylisted",
|
|
92786
|
+
type: "event"
|
|
92787
|
+
},
|
|
92788
|
+
{
|
|
92789
|
+
anonymous: false,
|
|
92790
|
+
inputs: [
|
|
92791
|
+
{ indexed: true, internalType: "address", name: "oldDenylister", type: "address" },
|
|
92792
|
+
{ indexed: true, internalType: "address", name: "newDenylister", type: "address" }
|
|
92793
|
+
],
|
|
92794
|
+
name: "DenylisterChanged",
|
|
92795
|
+
type: "event"
|
|
92796
|
+
},
|
|
92797
|
+
{
|
|
92798
|
+
anonymous: false,
|
|
92799
|
+
inputs: [
|
|
92800
|
+
{ indexed: true, internalType: "address", name: "burnToken", type: "address" },
|
|
92801
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
92802
|
+
{ indexed: true, internalType: "address", name: "depositor", type: "address" },
|
|
92803
|
+
{ indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
92804
|
+
{ indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
92805
|
+
{ indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
|
|
92806
|
+
{ indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
92807
|
+
{ indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
92808
|
+
{ indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
92809
|
+
{ indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
|
|
92810
|
+
],
|
|
92811
|
+
name: "DepositForBurn",
|
|
92812
|
+
type: "event"
|
|
92813
|
+
},
|
|
92814
|
+
{
|
|
92815
|
+
anonymous: false,
|
|
92816
|
+
inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
|
|
92817
|
+
name: "FeeRecipientSet",
|
|
92818
|
+
type: "event"
|
|
92819
|
+
},
|
|
92820
|
+
{
|
|
92821
|
+
anonymous: false,
|
|
92822
|
+
inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
|
|
92823
|
+
name: "Initialized",
|
|
92824
|
+
type: "event"
|
|
92825
|
+
},
|
|
92826
|
+
{
|
|
92827
|
+
anonymous: false,
|
|
92828
|
+
inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
|
|
92829
|
+
name: "LocalMinterAdded",
|
|
92830
|
+
type: "event"
|
|
92831
|
+
},
|
|
92832
|
+
{
|
|
92833
|
+
anonymous: false,
|
|
92834
|
+
inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
|
|
92835
|
+
name: "LocalMinterRemoved",
|
|
92836
|
+
type: "event"
|
|
92837
|
+
},
|
|
92838
|
+
{
|
|
92839
|
+
anonymous: false,
|
|
92840
|
+
inputs: [
|
|
92841
|
+
{ indexed: true, internalType: "address", name: "mintRecipient", type: "address" },
|
|
92842
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
|
|
92843
|
+
{ indexed: true, internalType: "address", name: "mintToken", type: "address" },
|
|
92844
|
+
{ indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
|
|
92845
|
+
],
|
|
92846
|
+
name: "MintAndWithdraw",
|
|
92847
|
+
type: "event"
|
|
92848
|
+
},
|
|
92849
|
+
{
|
|
92850
|
+
anonymous: false,
|
|
92851
|
+
inputs: [
|
|
92852
|
+
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
92853
|
+
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
92854
|
+
],
|
|
92855
|
+
name: "OwnershipTransferStarted",
|
|
92856
|
+
type: "event"
|
|
92857
|
+
},
|
|
92858
|
+
{
|
|
92859
|
+
anonymous: false,
|
|
92860
|
+
inputs: [
|
|
92861
|
+
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
92862
|
+
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
92863
|
+
],
|
|
92864
|
+
name: "OwnershipTransferred",
|
|
92865
|
+
type: "event"
|
|
92866
|
+
},
|
|
92867
|
+
{
|
|
92868
|
+
anonymous: false,
|
|
92869
|
+
inputs: [
|
|
92870
|
+
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
92871
|
+
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
92872
|
+
],
|
|
92873
|
+
name: "RemoteTokenMessengerAdded",
|
|
92874
|
+
type: "event"
|
|
92875
|
+
},
|
|
92876
|
+
{
|
|
92877
|
+
anonymous: false,
|
|
92878
|
+
inputs: [
|
|
92879
|
+
{ indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
|
|
92880
|
+
{ indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
92881
|
+
],
|
|
92882
|
+
name: "RemoteTokenMessengerRemoved",
|
|
92883
|
+
type: "event"
|
|
92884
|
+
},
|
|
92885
|
+
{
|
|
92886
|
+
anonymous: false,
|
|
92887
|
+
inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
|
|
92888
|
+
name: "RescuerChanged",
|
|
92889
|
+
type: "event"
|
|
92890
|
+
},
|
|
92891
|
+
{
|
|
92892
|
+
anonymous: false,
|
|
92893
|
+
inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
|
|
92894
|
+
name: "UnDenylisted",
|
|
92895
|
+
type: "event"
|
|
92896
|
+
},
|
|
92897
|
+
{ inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
92898
|
+
{
|
|
92899
|
+
inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
|
|
92900
|
+
name: "addLocalMinter",
|
|
92901
|
+
outputs: [],
|
|
92902
|
+
stateMutability: "nonpayable",
|
|
92903
|
+
type: "function"
|
|
92904
|
+
},
|
|
92905
|
+
{
|
|
92906
|
+
inputs: [
|
|
92907
|
+
{ internalType: "uint32", name: "domain", type: "uint32" },
|
|
92908
|
+
{ internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
|
|
92909
|
+
],
|
|
92910
|
+
name: "addRemoteTokenMessenger",
|
|
92911
|
+
outputs: [],
|
|
92912
|
+
stateMutability: "nonpayable",
|
|
92913
|
+
type: "function"
|
|
92914
|
+
},
|
|
92915
|
+
{
|
|
92916
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
92917
|
+
name: "denylist",
|
|
92918
|
+
outputs: [],
|
|
92919
|
+
stateMutability: "nonpayable",
|
|
92920
|
+
type: "function"
|
|
92921
|
+
},
|
|
92922
|
+
{
|
|
92923
|
+
inputs: [],
|
|
92924
|
+
name: "denylister",
|
|
92925
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92926
|
+
stateMutability: "view",
|
|
92927
|
+
type: "function"
|
|
92928
|
+
},
|
|
92929
|
+
{
|
|
92930
|
+
inputs: [
|
|
92931
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
92932
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
92933
|
+
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
92934
|
+
{ internalType: "address", name: "burnToken", type: "address" },
|
|
92935
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
92936
|
+
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
92937
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
|
|
92938
|
+
],
|
|
92939
|
+
name: "depositForBurn",
|
|
92940
|
+
outputs: [],
|
|
92941
|
+
stateMutability: "nonpayable",
|
|
92942
|
+
type: "function"
|
|
92943
|
+
},
|
|
92944
|
+
{
|
|
92945
|
+
inputs: [
|
|
92946
|
+
{ internalType: "uint256", name: "amount", type: "uint256" },
|
|
92947
|
+
{ internalType: "uint32", name: "destinationDomain", type: "uint32" },
|
|
92948
|
+
{ internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
|
|
92949
|
+
{ internalType: "address", name: "burnToken", type: "address" },
|
|
92950
|
+
{ internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
|
|
92951
|
+
{ internalType: "uint256", name: "maxFee", type: "uint256" },
|
|
92952
|
+
{ internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
|
|
92953
|
+
{ internalType: "bytes", name: "hookData", type: "bytes" }
|
|
92954
|
+
],
|
|
92955
|
+
name: "depositForBurnWithHook",
|
|
92956
|
+
outputs: [],
|
|
92957
|
+
stateMutability: "nonpayable",
|
|
92958
|
+
type: "function"
|
|
92959
|
+
},
|
|
92960
|
+
{
|
|
92961
|
+
inputs: [],
|
|
92962
|
+
name: "feeRecipient",
|
|
92963
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
92964
|
+
stateMutability: "view",
|
|
92965
|
+
type: "function"
|
|
92966
|
+
},
|
|
92967
|
+
{
|
|
92968
|
+
inputs: [
|
|
92969
|
+
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
92970
|
+
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
92971
|
+
{ internalType: "uint32", name: "", type: "uint32" },
|
|
92972
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
92973
|
+
],
|
|
92974
|
+
name: "handleReceiveFinalizedMessage",
|
|
92975
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
92976
|
+
stateMutability: "nonpayable",
|
|
92977
|
+
type: "function"
|
|
92978
|
+
},
|
|
92979
|
+
{
|
|
92980
|
+
inputs: [
|
|
92981
|
+
{ internalType: "uint32", name: "remoteDomain", type: "uint32" },
|
|
92982
|
+
{ internalType: "bytes32", name: "sender", type: "bytes32" },
|
|
92983
|
+
{ internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
|
|
92984
|
+
{ internalType: "bytes", name: "messageBody", type: "bytes" }
|
|
92985
|
+
],
|
|
92986
|
+
name: "handleReceiveUnfinalizedMessage",
|
|
92987
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
92988
|
+
stateMutability: "nonpayable",
|
|
92989
|
+
type: "function"
|
|
92990
|
+
},
|
|
92991
|
+
{
|
|
92992
|
+
inputs: [
|
|
92993
|
+
{ internalType: "address", name: "owner_", type: "address" },
|
|
92994
|
+
{ internalType: "address", name: "rescuer_", type: "address" },
|
|
92995
|
+
{ internalType: "address", name: "feeRecipient_", type: "address" },
|
|
92996
|
+
{ internalType: "address", name: "denylister_", type: "address" },
|
|
92997
|
+
{ internalType: "address", name: "tokenMinter_", type: "address" },
|
|
92998
|
+
{ internalType: "uint32[]", name: "remoteDomains_", type: "uint32[]" },
|
|
92999
|
+
{ internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
|
|
93000
|
+
],
|
|
93001
|
+
name: "initialize",
|
|
93002
|
+
outputs: [],
|
|
93003
|
+
stateMutability: "nonpayable",
|
|
93004
|
+
type: "function"
|
|
93005
|
+
},
|
|
93006
|
+
{
|
|
93007
|
+
inputs: [],
|
|
93008
|
+
name: "initializedVersion",
|
|
93009
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
93010
|
+
stateMutability: "view",
|
|
93011
|
+
type: "function"
|
|
93012
|
+
},
|
|
93013
|
+
{
|
|
93014
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
93015
|
+
name: "isDenylisted",
|
|
93016
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
93017
|
+
stateMutability: "view",
|
|
93018
|
+
type: "function"
|
|
93019
|
+
},
|
|
93020
|
+
{
|
|
93021
|
+
inputs: [],
|
|
93022
|
+
name: "localMessageTransmitter",
|
|
93023
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
93024
|
+
stateMutability: "view",
|
|
93025
|
+
type: "function"
|
|
93026
|
+
},
|
|
93027
|
+
{
|
|
93028
|
+
inputs: [],
|
|
93029
|
+
name: "localMinter",
|
|
93030
|
+
outputs: [{ internalType: "contract ITokenMinterV2", name: "", type: "address" }],
|
|
93031
|
+
stateMutability: "view",
|
|
93032
|
+
type: "function"
|
|
93033
|
+
},
|
|
93034
|
+
{
|
|
93035
|
+
inputs: [],
|
|
93036
|
+
name: "messageBodyVersion",
|
|
93037
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
93038
|
+
stateMutability: "view",
|
|
93039
|
+
type: "function"
|
|
93040
|
+
},
|
|
93041
|
+
{
|
|
93042
|
+
inputs: [],
|
|
93043
|
+
name: "owner",
|
|
93044
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
93045
|
+
stateMutability: "view",
|
|
93046
|
+
type: "function"
|
|
93047
|
+
},
|
|
93048
|
+
{
|
|
93049
|
+
inputs: [],
|
|
93050
|
+
name: "pendingOwner",
|
|
93051
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
93052
|
+
stateMutability: "view",
|
|
93053
|
+
type: "function"
|
|
93054
|
+
},
|
|
93055
|
+
{
|
|
93056
|
+
inputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
93057
|
+
name: "remoteTokenMessengers",
|
|
93058
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
93059
|
+
stateMutability: "view",
|
|
93060
|
+
type: "function"
|
|
93061
|
+
},
|
|
93062
|
+
{ inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
93063
|
+
{
|
|
93064
|
+
inputs: [{ internalType: "uint32", name: "domain", type: "uint32" }],
|
|
93065
|
+
name: "removeRemoteTokenMessenger",
|
|
93066
|
+
outputs: [],
|
|
93067
|
+
stateMutability: "nonpayable",
|
|
93068
|
+
type: "function"
|
|
93069
|
+
},
|
|
93070
|
+
{
|
|
93071
|
+
inputs: [
|
|
93072
|
+
{ internalType: "contract IERC20", name: "tokenContract", type: "address" },
|
|
93073
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
93074
|
+
{ internalType: "uint256", name: "amount", type: "uint256" }
|
|
93075
|
+
],
|
|
93076
|
+
name: "rescueERC20",
|
|
93077
|
+
outputs: [],
|
|
93078
|
+
stateMutability: "nonpayable",
|
|
93079
|
+
type: "function"
|
|
93080
|
+
},
|
|
93081
|
+
{
|
|
93082
|
+
inputs: [],
|
|
93083
|
+
name: "rescuer",
|
|
93084
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
93085
|
+
stateMutability: "view",
|
|
93086
|
+
type: "function"
|
|
93087
|
+
},
|
|
93088
|
+
{
|
|
93089
|
+
inputs: [{ internalType: "address", name: "_feeRecipient", type: "address" }],
|
|
93090
|
+
name: "setFeeRecipient",
|
|
93091
|
+
outputs: [],
|
|
93092
|
+
stateMutability: "nonpayable",
|
|
93093
|
+
type: "function"
|
|
93094
|
+
},
|
|
93095
|
+
{
|
|
93096
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
93097
|
+
name: "transferOwnership",
|
|
93098
|
+
outputs: [],
|
|
93099
|
+
stateMutability: "nonpayable",
|
|
93100
|
+
type: "function"
|
|
93101
|
+
},
|
|
93102
|
+
{
|
|
93103
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
93104
|
+
name: "unDenylist",
|
|
93105
|
+
outputs: [],
|
|
93106
|
+
stateMutability: "nonpayable",
|
|
93107
|
+
type: "function"
|
|
93108
|
+
},
|
|
93109
|
+
{
|
|
93110
|
+
inputs: [{ internalType: "address", name: "newDenylister", type: "address" }],
|
|
93111
|
+
name: "updateDenylister",
|
|
93112
|
+
outputs: [],
|
|
93113
|
+
stateMutability: "nonpayable",
|
|
93114
|
+
type: "function"
|
|
93115
|
+
},
|
|
93116
|
+
{
|
|
93117
|
+
inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
|
|
93118
|
+
name: "updateRescuer",
|
|
93119
|
+
outputs: [],
|
|
93120
|
+
stateMutability: "nonpayable",
|
|
93121
|
+
type: "function"
|
|
93122
|
+
}
|
|
93123
|
+
];
|
|
93124
|
+
|
|
93125
|
+
// src/integrations/cctp/cctp.v2.ts
|
|
93126
|
+
var messageTransmitterAbi = new exports_ethers.utils.Interface(message_transmitter_v2_abi_default);
|
|
93127
|
+
var tokenMessengerAbi = new exports_ethers.utils.Interface(token_messenger_v2_abi_default);
|
|
93128
|
+
var DepositForBurnCalldata = ({
|
|
93129
|
+
amount,
|
|
93130
|
+
destinationDomain,
|
|
93131
|
+
mintRecipient,
|
|
93132
|
+
burnToken,
|
|
93133
|
+
destinationCaller,
|
|
93134
|
+
maxFee,
|
|
93135
|
+
minFinalityThreshold
|
|
93136
|
+
}) => {
|
|
93137
|
+
return tokenMessengerAbi.encodeFunctionData("depositForBurn", [
|
|
93138
|
+
amount,
|
|
93139
|
+
destinationDomain,
|
|
93140
|
+
mintRecipient,
|
|
93141
|
+
burnToken,
|
|
93142
|
+
destinationCaller,
|
|
93143
|
+
maxFee,
|
|
93144
|
+
minFinalityThreshold
|
|
93145
|
+
]);
|
|
93146
|
+
};
|
|
93147
|
+
var depositForBurnToCctpTrx = ({
|
|
93148
|
+
args,
|
|
93149
|
+
tokenMessengerAddress
|
|
93150
|
+
}) => {
|
|
93151
|
+
return createCall({
|
|
93152
|
+
operation: 0,
|
|
93153
|
+
to: tokenMessengerAddress,
|
|
93154
|
+
value: 0n,
|
|
93155
|
+
data: DepositForBurnCalldata(args)
|
|
93156
|
+
});
|
|
93157
|
+
};
|
|
93158
|
+
var ReceiveMessageCalldata = ({ message, attestation }) => {
|
|
93159
|
+
return messageTransmitterAbi.encodeFunctionData("receiveMessage", [message, attestation]);
|
|
93160
|
+
};
|
|
93161
|
+
var receiveMessageFromCctpTrx = ({
|
|
93162
|
+
args,
|
|
93163
|
+
messageTransmitterAddress
|
|
93164
|
+
}) => {
|
|
93165
|
+
return createCall({
|
|
93166
|
+
operation: 0,
|
|
93167
|
+
to: messageTransmitterAddress,
|
|
93168
|
+
value: 0n,
|
|
93169
|
+
data: ReceiveMessageCalldata(args)
|
|
93170
|
+
});
|
|
93171
|
+
};
|
|
92441
93172
|
// src/lib/utils.ts
|
|
92442
93173
|
var executeTrx = ({
|
|
92443
93174
|
client,
|
|
@@ -92532,4 +93263,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
92532
93263
|
};
|
|
92533
93264
|
};
|
|
92534
93265
|
|
|
92535
|
-
//# debugId=
|
|
93266
|
+
//# debugId=D986F1F87BA9A50864756E2164756E21
|