damm-sdk 1.1.30-alpha.9 → 1.1.31-alpha.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 (56) hide show
  1. package/dist/index.cjs +3244 -31
  2. package/dist/index.cjs.map +15 -7
  3. package/dist/index.js +4038 -825
  4. package/dist/index.js.map +15 -7
  5. package/dist/integrations/cctp/cctp.v2.d.ts +28 -0
  6. package/dist/integrations/cctp/cctp.v2.d.ts.map +1 -0
  7. package/dist/integrations/cctp/index.d.ts +4 -0
  8. package/dist/integrations/cctp/index.d.ts.map +1 -0
  9. package/dist/integrations/cctp/message.transmitter.v2.abi.d.ts +556 -0
  10. package/dist/integrations/cctp/message.transmitter.v2.abi.d.ts.map +1 -0
  11. package/dist/integrations/cctp/token.messenger.v2.abi.d.ts +640 -0
  12. package/dist/integrations/cctp/token.messenger.v2.abi.d.ts.map +1 -0
  13. package/dist/integrations/erc721/erc721.abi.d.ts +257 -0
  14. package/dist/integrations/erc721/erc721.abi.d.ts.map +1 -0
  15. package/dist/integrations/erc721/erc721.d.ts +49 -0
  16. package/dist/integrations/erc721/erc721.d.ts.map +1 -0
  17. package/dist/integrations/erc721/index.d.ts +3 -0
  18. package/dist/integrations/erc721/index.d.ts.map +1 -0
  19. package/dist/integrations/index.d.ts +3 -0
  20. package/dist/integrations/index.d.ts.map +1 -1
  21. package/dist/integrations/oft/index.d.ts +3 -0
  22. package/dist/integrations/oft/index.d.ts.map +1 -0
  23. package/dist/integrations/oft/oft.adapter.abi.d.ts +1521 -0
  24. package/dist/integrations/oft/oft.adapter.abi.d.ts.map +1 -0
  25. package/dist/integrations/oft/oft.adapter.d.ts +35 -0
  26. package/dist/integrations/oft/oft.adapter.d.ts.map +1 -0
  27. package/dist/integrations/permit2/permit2.abi.d.ts +0 -27
  28. package/dist/integrations/permit2/permit2.abi.d.ts.map +1 -1
  29. package/dist/integrations/permit2/permit2.d.ts +13 -0
  30. package/dist/integrations/permit2/permit2.d.ts.map +1 -1
  31. package/dist/integrations/slipstream/guage.abi.d.ts +499 -0
  32. package/dist/integrations/slipstream/guage.abi.d.ts.map +1 -0
  33. package/dist/integrations/slipstream/index.d.ts +1 -0
  34. package/dist/integrations/slipstream/index.d.ts.map +1 -1
  35. package/dist/integrations/slipstream/slipstream.d.ts +21 -0
  36. package/dist/integrations/slipstream/slipstream.d.ts.map +1 -1
  37. package/dist/lib/addresses.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/src/integrations/cctp/cctp.v2.ts +94 -0
  40. package/src/integrations/cctp/index.ts +3 -0
  41. package/src/integrations/cctp/message.transmitter.v2.abi.ts +323 -0
  42. package/src/integrations/cctp/token.messenger.v2.abi.ts +351 -0
  43. package/src/integrations/erc721/erc721.abi.ts +200 -0
  44. package/src/integrations/erc721/erc721.ts +151 -0
  45. package/src/integrations/erc721/index.ts +2 -0
  46. package/src/integrations/index.ts +3 -0
  47. package/src/integrations/oft/index.ts +2 -0
  48. package/src/integrations/oft/oft.adapter.abi.ts +1543 -0
  49. package/src/integrations/oft/oft.adapter.ts +97 -0
  50. package/src/integrations/permit2/permit2.abi.ts +0 -19
  51. package/src/integrations/permit2/permit2.ts +35 -0
  52. package/src/integrations/slipstream/guage.abi.ts +421 -0
  53. package/src/integrations/slipstream/index.ts +1 -0
  54. package/src/integrations/slipstream/slipstream.ts +59 -0
  55. package/src/lib/addresses.ts +1 -0
  56. package/src/lib/contractsRegistry.json +109 -10
package/dist/index.cjs CHANGED
@@ -44318,6 +44318,8 @@ __export(exports_src, {
44318
44318
  uniswapV3CollectFeesTrx: () => uniswapV3CollectFeesTrx,
44319
44319
  uniswapV3BurnPositionTrx: () => uniswapV3BurnPositionTrx,
44320
44320
  transferNativeEth: () => transferNativeEth,
44321
+ transferFromPermit2Trx: () => transferFromPermit2Trx,
44322
+ transferFromErc721Trx: () => transferFromErc721Trx,
44321
44323
  transferFromERC20Trx: () => transferFromERC20Trx,
44322
44324
  transferERC20Trx: () => transferERC20Trx,
44323
44325
  swapOwner: () => swapOwner,
@@ -44328,6 +44330,9 @@ __export(exports_src, {
44328
44330
  slipstreamSwapExactInputSingleTrx: () => slipstreamSwapExactInputSingleTrx,
44329
44331
  slipstreamMintPositionTrx: () => slipstreamMintPositionTrx,
44330
44332
  slipstreamIncreaseLiquidityTrx: () => slipstreamIncreaseLiquidityTrx,
44333
+ slipstreamGuageWithdrawTrx: () => slipstreamGuageWithdrawTrx,
44334
+ slipstreamGuageGetRewardTrx: () => slipstreamGuageGetRewardTrx,
44335
+ slipstreamGuageDepositTrx: () => slipstreamGuageDepositTrx,
44331
44336
  slipstreamDecreaseLiquidityTrx: () => slipstreamDecreaseLiquidityTrx,
44332
44337
  slipstreamCollectFeesTrx: () => slipstreamCollectFeesTrx,
44333
44338
  slipstreamBurnPositionTrx: () => slipstreamBurnPositionTrx,
@@ -44337,11 +44342,16 @@ __export(exports_src, {
44337
44342
  signGnosisTrxWithEOA: () => signGnosisTrxWithEOA,
44338
44343
  setUpTransactionUnwrapperCalldata: () => setUpTransactionUnwrapperCalldata,
44339
44344
  setUpTransactionUnwrapper: () => setUpTransactionUnwrapper,
44345
+ setApprovalForAllErc721Trx: () => setApprovalForAllErc721Trx,
44340
44346
  serializeCall: () => serializeCall,
44347
+ sendOFTTrx: () => sendOFTTrx,
44348
+ safeTransferFromWithDataErc721Trx: () => safeTransferFromWithDataErc721Trx,
44349
+ safeTransferFromErc721Trx: () => safeTransferFromErc721Trx,
44341
44350
  revokeFromVaultWhitelistTrx: () => revokeFromVaultWhitelistTrx,
44342
44351
  repayToLendleTrx: () => repayToLendleTrx,
44343
44352
  repayToAaveV3Trx: () => repayToAaveV3Trx,
44344
44353
  repayMorphoBlueTrx: () => repayMorphoBlueTrx,
44354
+ receiveMessageFromCctpTrx: () => receiveMessageFromCctpTrx,
44345
44355
  merklClaimTrx: () => merklClaimTrx,
44346
44356
  merklClaimCalldata: () => merklClaimCalldata,
44347
44357
  merklAbi: () => merkl_distributor_abi_default,
@@ -44361,6 +44371,7 @@ __export(exports_src, {
44361
44371
  execTransactionFromModuleTrx: () => execTransactionFromModuleTrx,
44362
44372
  depositToLendleTrx: () => depositToLendleTrx,
44363
44373
  depositMorphoVaultTrx: () => depositMorphoVaultTrx,
44374
+ depositForBurnToCctpTrx: () => depositForBurnToCctpTrx,
44364
44375
  createVaultProxyTrx: () => createVaultProxyTrx,
44365
44376
  createOrderTrx: () => createOrderTrx,
44366
44377
  createCall: () => createCall,
@@ -44372,7 +44383,9 @@ __export(exports_src, {
44372
44383
  borrowFromAaveV3Trx: () => borrowFromAaveV3Trx,
44373
44384
  approveTokenThroughPermit2Calldata: () => approveTokenThroughPermit2Calldata,
44374
44385
  approveTokenThroughPermit2: () => approveTokenThroughPermit2,
44386
+ approveErc721Trx: () => approveErc721Trx,
44375
44387
  approveERC20Trx: () => approveERC20Trx,
44388
+ approveAllErc721Trx: () => approveAllErc721Trx,
44376
44389
  addToVaultWhitelistTrx: () => addToVaultWhitelistTrx,
44377
44390
  ZodiacRolesAbi: () => zodiac_roles_abi_default,
44378
44391
  ZodiacDelayAbi: () => zodiac_delay_abi_default,
@@ -44407,6 +44420,8 @@ __export(exports_src, {
44407
44420
  USDT_ARB: () => USDT_ARB,
44408
44421
  USDCe_ARB: () => USDCe_ARB,
44409
44422
  USDC_ARB: () => USDC_ARB,
44423
+ TransferFromPermit2Calldata: () => TransferFromPermit2Calldata,
44424
+ TransferFromErc721CallData: () => TransferFromErc721CallData,
44410
44425
  TransferFromCalldata: () => TransferFromCalldata,
44411
44426
  TransferCalldata: () => TransferCalldata,
44412
44427
  TransactionWithRoleReturnDataCalldata: () => TransactionWithRoleReturnDataCalldata,
@@ -44421,9 +44436,17 @@ __export(exports_src, {
44421
44436
  SlipstreamPositionManagerAbi: () => position_manager_abi_default3,
44422
44437
  SlipstreamMintPositionCalldata: () => SlipstreamMintPositionCalldata,
44423
44438
  SlipstreamIncreaseLiquidityCalldata: () => SlipstreamIncreaseLiquidityCalldata,
44439
+ SlipstreamGuageWithdrawCalldata: () => SlipstreamGuageWithdrawCalldata,
44440
+ SlipstreamGuageGetRewardCalldata: () => SlipstreamGuageGetRewardCalldata,
44441
+ SlipstreamGuageDepositCalldata: () => SlipstreamGuageDepositCalldata,
44442
+ SlipstreamGuageAbi: () => guage_abi_default,
44424
44443
  SlipstreamDecreaseLiquidityCalldata: () => SlipstreamDecreaseLiquidityCalldata,
44425
44444
  SlipstreamCollectFeesCalldata: () => SlipstreamCollectFeesCalldata,
44426
44445
  SlipstreamBurnPositionCalldata: () => SlipstreamBurnPositionCalldata,
44446
+ SetApprovalForAllErc721CallData: () => SetApprovalForAllErc721CallData,
44447
+ SendOFTCalldata: () => SendOFTCalldata,
44448
+ SafeTransferFromWithDataErc721CallData: () => SafeTransferFromWithDataErc721CallData,
44449
+ SafeTransferFromErc721CallData: () => SafeTransferFromErc721CallData,
44427
44450
  SafeMultiSendAbi: () => multisend_abi_default,
44428
44451
  SafeL2Abi: () => safe_L2_abi_default,
44429
44452
  SafeAbi: () => safe_abi_default,
@@ -44434,9 +44457,13 @@ __export(exports_src, {
44434
44457
  RepayToLendleCalldata: () => RepayToLendleCalldata,
44435
44458
  RepayToAaveV3L1Calldata: () => RepayToAaveV3L1Calldata,
44436
44459
  RepayMorphoBlueCalldata: () => RepayMorphoBlueCalldata,
44460
+ ReceiveMessageCalldata: () => ReceiveMessageCalldata,
44461
+ QuoteSendTrx: () => QuoteSendTrx,
44462
+ QuoteSendCalldata: () => QuoteSendCalldata,
44437
44463
  Permit2Abi: () => permit2_abi_default,
44438
44464
  PERMIT2_ADDRESS_CANONICAL: () => PERMIT2_ADDRESS_CANONICAL,
44439
44465
  OrderType: () => OrderType,
44466
+ OFTAdapterAbi: () => oft_adapter_abi_default,
44440
44467
  NextTxCalldata: () => NextTxCalldata,
44441
44468
  MultisendBuilder: () => MultisendBuilder,
44442
44469
  MorphoVaultAbi: () => morpho_vault_abi_default,
@@ -44444,10 +44471,12 @@ __export(exports_src, {
44444
44471
  LendlePoolAbi: () => lendle_pool_abi_default,
44445
44472
  GMX_EXCHANGE_ROUTER_ARB: () => GMX_EXCHANGE_ROUTER_ARB,
44446
44473
  GMXExchangeRouterAbi: () => exchange_router_abi_default,
44474
+ Erc721Abi: () => erc721_abi_default2,
44447
44475
  Erc20Abi: () => erc20_abi_default,
44448
44476
  ERC721: () => erc721_abi_default,
44449
44477
  DepositToLendleCalldata: () => DepositToLendleCalldata,
44450
44478
  DepositMorphoVaultCalldata: () => DepositMorphoVaultCalldata,
44479
+ DepositForBurnCalldata: () => DepositForBurnCalldata,
44451
44480
  DelayedTransactionCalldata: () => DelayedTransactionCalldata,
44452
44481
  DecreasePositionSwapType: () => DecreasePositionSwapType,
44453
44482
  DELEGATE_CALL_OP_CODE: () => DELEGATE_CALL_OP_CODE,
@@ -44456,12 +44485,16 @@ __export(exports_src, {
44456
44485
  CreateOrderCalldata: () => CreateOrderCalldata,
44457
44486
  Commands: () => Commands,
44458
44487
  ClaimFundingFeesCalldata: () => ClaimFundingFeesCalldata,
44488
+ CctpTokenMessengerV2Abi: () => token_messenger_v2_abi_default,
44489
+ CctpMessageTransmitterV2Abi: () => message_transmitter_v2_abi_default,
44459
44490
  CancelOrderCalldata: () => CancelOrderCalldata,
44460
44491
  CALL_OP_CODE: () => CALL_OP_CODE,
44461
44492
  BorrowMorphoBlueCalldata: () => BorrowMorphoBlueCalldata,
44462
44493
  BorrowFromLendleCalldata: () => BorrowFromLendleCalldata,
44463
44494
  BorrowFromAaveV3L1Calldata: () => BorrowFromAaveV3L1Calldata,
44495
+ ApproveErc721CallData: () => ApproveErc721CallData,
44464
44496
  ApproveCalldata: () => ApproveCalldata,
44497
+ ApproveAllErc721CallData: () => ApproveAllErc721CallData,
44465
44498
  AddToVaultWhitelistCalldata: () => AddToVaultWhitelistCalldata,
44466
44499
  Actions: () => Actions2,
44467
44500
  AaveL2PoolAbi: () => aave_pool_L2_abi_default,
@@ -53268,7 +53301,7 @@ var contractsRegistry_default = {
53268
53301
  link: "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4"
53269
53302
  },
53270
53303
  OFTAdapters: {
53271
- "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0x238A52455a1EF6C987CaC94b28B4081aFE50ba06"
53304
+ "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0x14E4A1B13bf7F943c8ff7C51fb60FA964A298D92"
53272
53305
  },
53273
53306
  stargate: {
53274
53307
  feeLibV1ETH: "0xda82A31dF339BfDF0123661134b4DB63Cb1706f5",
@@ -53293,7 +53326,11 @@ var contractsRegistry_default = {
53293
53326
  morphoBlue: "0x6c247b1F6182318877311737BaC0844bAa518F5e",
53294
53327
  vaultV1_0: "0x7c574174DA4b2be3f705c6244B4BfA0815a8B3Ed"
53295
53328
  },
53296
- poster: "0x000000000000cd17345801aa8147b8D3950260FF"
53329
+ poster: "0x000000000000cd17345801aa8147b8D3950260FF",
53330
+ cctp: {
53331
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53332
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53333
+ }
53297
53334
  },
53298
53335
  base: {
53299
53336
  aaveV3: {
@@ -53350,6 +53387,10 @@ var contractsRegistry_default = {
53350
53387
  morpho: {
53351
53388
  morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
53352
53389
  },
53390
+ cctp: {
53391
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53392
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53393
+ },
53353
53394
  stargate: {
53354
53395
  feeLibV1ETH: "0x17E450Be3Ba9557F2378E20d64AD417E59Ef9A34",
53355
53396
  stargateMultiRewarder: "0x9Aa02D4Fae7F58b8E8f34c66E756cC734DAc7fe4",
@@ -53364,6 +53405,9 @@ var contractsRegistry_default = {
53364
53405
  poster: "0x000000000000cd17345801aa8147b8D3950260FF"
53365
53406
  },
53366
53407
  polygon: {
53408
+ aaveV3: {
53409
+ pool: "0x794a61358D6845594F94dc1DB02A252b5b4814aD"
53410
+ },
53367
53411
  uniswapV3: {
53368
53412
  router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
53369
53413
  positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
@@ -53371,6 +53415,23 @@ var contractsRegistry_default = {
53371
53415
  merkl: {
53372
53416
  distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
53373
53417
  },
53418
+ uniswapV4: {
53419
+ universalRouter: "0x1095692A6237d83C6a72F3F5eFEdb9A670C49223",
53420
+ positionManager: "0x1Ec2eBf4F37E7363FDfe3551602425af0B3ceef9",
53421
+ poolManager: "0x67366782805870060151383F4BbFF9daB53e5cD6",
53422
+ stateView: "0x5eA1bD7974c8A611cBAB0bDCAFcB1D9CC9b3BA5a",
53423
+ zodiacVerifiers: {
53424
+ positionMintVerifier: "0x992c4fD5b3b3cbdA08dfE09Bf775D275c5Ff7574",
53425
+ takeAllVerifier: "0xe70e429E6A80d3F093764F1a0f0645535F972A31",
53426
+ settleAllVerifier: "0x4A7801A7e60a75985AF5E23D3E443c7169640b6D",
53427
+ swapExactInSingleVerifier: "0x765b9c658Bc511965a245B95686f11A4868d106F",
53428
+ swapExactOutSingleVerifier: "0x215D0d0C8dE42F22c00F42664e9adEB94729201e",
53429
+ sweepVerifier: "0xD1DdE86E6A0aBF8A1a079881611B550A32421584",
53430
+ takePairVerifier: "0xE294755dD1FFA3a359c3521CD35d045F33f14022",
53431
+ decreaseLiquidityVerifier: "0x005B2b1620f299fA9666D358a19b09a711d0CCe9",
53432
+ settlePairVerifier: "0x01A4c2AAa2e1c2278535D0a7f799B6B30Fa285bC"
53433
+ }
53434
+ },
53374
53435
  gnosisSafe: {
53375
53436
  v1_4_1: {
53376
53437
  safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
@@ -53379,14 +53440,20 @@ var contractsRegistry_default = {
53379
53440
  proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
53380
53441
  }
53381
53442
  },
53443
+ enso: {
53444
+ routerV2: "0xF75584eF6673aD213a685a1B58Cc0330B8eA22Cf"
53445
+ },
53382
53446
  permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
53383
53447
  multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
53384
53448
  tokens: {
53385
53449
  usdce: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
53386
53450
  usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
53387
53451
  usdt: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
53452
+ dai: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
53388
53453
  sand: "0xBbba073C31bF03b8ACf7c28EF0738DeCF3695683",
53389
- weth: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"
53454
+ weth: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
53455
+ comp: "0x8505b9d2254A7Ae468c0E9dd10Ccea3A837aef5c",
53456
+ wpol: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"
53390
53457
  },
53391
53458
  zodiac: {
53392
53459
  rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
@@ -53397,12 +53464,17 @@ var contractsRegistry_default = {
53397
53464
  "1inch": {
53398
53465
  aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
53399
53466
  },
53400
- wrappedNativeToken: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
53467
+ wrappedNativeToken: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
53401
53468
  morpho: {
53402
- morphoBlue: "0x1bF0c2541F820E775182832f06c0B7Fc27A25f67"
53469
+ morphoBlue: "0x1bF0c2541F820E775182832f06c0B7Fc27A25f67",
53470
+ vaultV1_0: "0x781FB7F6d845E3bE129289833b04d43Aa8558c42"
53471
+ },
53472
+ cctp: {
53473
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53474
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53403
53475
  },
53404
53476
  OFTAdapters: {
53405
- "0xc2132D05D31c914a87C6611C10748AEb04B58e8F": "0x6ba10300f0dc58b7a1e4c0e41f5dabb7d7829e13"
53477
+ "0xc2132D05D31c914a87C6611C10748AEb04B58e8F": "0x6BA10300f0DC58B7a1e4c0e41f5daBb7D7829e13"
53406
53478
  },
53407
53479
  stargate: {
53408
53480
  feeLibV1USDC: "0x3Fc69CC4A842838bCDC9499178740226062b14E4",
@@ -53470,7 +53542,7 @@ var contractsRegistry_default = {
53470
53542
  },
53471
53543
  tokens: {
53472
53544
  usdc: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
53473
- usdt: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
53545
+ usdt: "0x01bFF41798a0BcF287b996046Ca68b395DbC1071",
53474
53546
  velo: "0x3c8B650257cFb5f272f799F5e2b4e65093a11a05",
53475
53547
  weth: "0x4200000000000000000000000000000000000006"
53476
53548
  },
@@ -53499,6 +53571,10 @@ var contractsRegistry_default = {
53499
53571
  morpho: {
53500
53572
  morphoBlue: "0xce95AfbB8EA029495c66020883F87aaE8864AF92"
53501
53573
  },
53574
+ cctp: {
53575
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53576
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53577
+ },
53502
53578
  poster: "0x000000000000cd17345801aa8147b8D3950260FF",
53503
53579
  wrappedNativeToken: "0x4200000000000000000000000000000000000006",
53504
53580
  slipstream: {
@@ -53506,7 +53582,9 @@ var contractsRegistry_default = {
53506
53582
  positionManager: "0x416b433906b1B72FA758e166e239c43d68dC6F29",
53507
53583
  guageImpl: "0x7155b84A704F0657975827c65Ff6fe42e3A962bb"
53508
53584
  },
53509
- OFTAdapters: {},
53585
+ OFTAdapters: {
53586
+ "0x01bFF41798a0BcF287b996046Ca68b395DbC1071": "0xF03b4d9AC1D5d1E7c4cEf54C2A313b9fe051A0aD"
53587
+ },
53510
53588
  stargate: {
53511
53589
  feeLibV1ETH: "0x80F755e3091b2Ad99c08Da8D13E9c7635C1b8161",
53512
53590
  feeLibV1USDC: "0x1F605162282570dFa6255D27895587f4117F52FA",
@@ -53558,13 +53636,17 @@ var contractsRegistry_default = {
53558
53636
  morpho: {
53559
53637
  morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
53560
53638
  },
53639
+ cctp: {
53640
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53641
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53642
+ },
53561
53643
  "1inch": {
53562
53644
  aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
53563
53645
  },
53564
53646
  wrappedNativeToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
53565
53647
  poster: "0x000000000000cd17345801aa8147b8D3950260FF",
53566
53648
  OFTAdapters: {
53567
- "0xdAC17F958D2ee523a2206206994597C13D831ec7": "0x6c96de32cea08842dcc4058c14d3aaad7fa41dee"
53649
+ "0xdAC17F958D2ee523a2206206994597C13D831ec7": "0x6C96dE32CEa08842dcc4058c14d3aaAD7Fa41dee"
53568
53650
  },
53569
53651
  stargate: {
53570
53652
  feeLibV1ETH: "0x3E368B6C95c6fEfB7A16dCc0D756389F3c658a06",
@@ -53630,6 +53712,10 @@ var contractsRegistry_default = {
53630
53712
  morpho: {
53631
53713
  morphoBlue: "0x8f5ae9CddB9f68de460C77730b018Ae7E04a140A"
53632
53714
  },
53715
+ cctp: {
53716
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53717
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53718
+ },
53633
53719
  OFTAdapters: {
53634
53720
  "0x9151434b16b9763660705744891fA906F660EcC5": "0xc07be8994d035631c36fb4a89c918cefb2f03ec3"
53635
53721
  },
@@ -53700,7 +53786,7 @@ var contractsRegistry_default = {
53700
53786
  worldchain: {
53701
53787
  tokens: {
53702
53788
  wld: "0x2cFc85d8E48F8EAB294be644d9E25C3030863003",
53703
- usdc: "0x79A02482A880bCe3F13E09da970dC34dB4cD24D1",
53789
+ usdc: "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
53704
53790
  weth: "0x4200000000000000000000000000000000000006",
53705
53791
  wbtc: "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3"
53706
53792
  },
@@ -53728,6 +53814,10 @@ var contractsRegistry_default = {
53728
53814
  morpho: {
53729
53815
  morphoBlue: "0xE741BC7c34758b4caE05062794E8Ae24978AF432"
53730
53816
  },
53817
+ cctp: {
53818
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53819
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53820
+ },
53731
53821
  gnosisSafe: {
53732
53822
  v1_4_1: {
53733
53823
  safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
@@ -53779,6 +53869,10 @@ var contractsRegistry_default = {
53779
53869
  morpho: {
53780
53870
  morphoBlue: "0xd011EE229E7459ba1ddd22631eF7bF528d424A14"
53781
53871
  },
53872
+ cctp: {
53873
+ tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53874
+ messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
53875
+ },
53782
53876
  stargate: {
53783
53877
  feeLibV1USDC: "0xCd4302D950e7e6606b6910Cd232758b5ad423311",
53784
53878
  stargateOFTUSDT: "0x1C10CC06DC6D35970d1D53B2A23c76ef370d4135",
@@ -53788,6 +53882,44 @@ var contractsRegistry_default = {
53788
53882
  stargateOFTUSDC: "0x77C71633C34C3784ede189d74223122422492a0f"
53789
53883
  },
53790
53884
  poster: "0x000000000000cd17345801aa8147b8D3950260FF"
53885
+ },
53886
+ celo: {
53887
+ aaveV3: {
53888
+ pool: "0x3E59A31363E2ad014dcbc521c4a0d5757d9f3402"
53889
+ },
53890
+ uniswapV3: {
53891
+ router: "0x5615CDAb10dc425a742d643d949a7F474C01abc4",
53892
+ positionManager: "0x3d79EdAaBC0EaB6F08ED885C05Fc0B014290D95A"
53893
+ },
53894
+ zodiac: {
53895
+ rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
53896
+ moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
53897
+ delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b",
53898
+ multisendUnwrapper: "0x93B7fCbc63ED8a3a24B59e1C3e6649D50B7427c0"
53899
+ },
53900
+ gnosisSafe: {
53901
+ v1_4_1: {
53902
+ safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
53903
+ multisend: "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
53904
+ safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
53905
+ proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
53906
+ }
53907
+ },
53908
+ merkl: {
53909
+ distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
53910
+ },
53911
+ tokens: {
53912
+ usdt: "0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e",
53913
+ usdc: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
53914
+ celo: "0x471EcE3750Da237f93B8E339c536989b8978a438",
53915
+ uni: "0xeE571697998ec64e32B57D754D700c4dda2f2a0e"
53916
+ },
53917
+ OFTAdapters: {
53918
+ "0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e": "0xf10e161027410128e63e75d0200fb6d34b2db243"
53919
+ },
53920
+ multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
53921
+ permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
53922
+ poster: "0x000000000000cd17345801aa8147b8D3950260FF"
53791
53923
  }
53792
53924
  };
53793
53925
 
@@ -53802,7 +53934,8 @@ var chainIdToName = {
53802
53934
  130: "unichain",
53803
53935
  5000: "mantle",
53804
53936
  480: "worldchain",
53805
- 11155111: "sepolia"
53937
+ 11155111: "sepolia",
53938
+ 42220: "celo"
53806
53939
  };
53807
53940
  function getAddressOrThrow(chainId, key) {
53808
53941
  const chainName = chainIdToName[chainId];
@@ -73846,25 +73979,6 @@ var permit2_abi_default = [
73846
73979
  stateMutability: "nonpayable",
73847
73980
  type: "function"
73848
73981
  },
73849
- {
73850
- inputs: [
73851
- {
73852
- components: [
73853
- { internalType: "address", name: "from", type: "address" },
73854
- { internalType: "address", name: "to", type: "address" },
73855
- { internalType: "uint160", name: "amount", type: "uint160" },
73856
- { internalType: "address", name: "token", type: "address" }
73857
- ],
73858
- internalType: "struct IAllowanceTransfer.AllowanceTransferDetails[]",
73859
- name: "transferDetails",
73860
- type: "tuple[]"
73861
- }
73862
- ],
73863
- name: "transferFrom",
73864
- outputs: [],
73865
- stateMutability: "nonpayable",
73866
- type: "function"
73867
- },
73868
73982
  {
73869
73983
  inputs: [
73870
73984
  { internalType: "address", name: "from", type: "address" },
@@ -73903,6 +74017,28 @@ var approveTokenThroughPermit2 = ({
73903
74017
  operation: 0
73904
74018
  });
73905
74019
  };
74020
+ var TransferFromPermit2Calldata = ({
74021
+ from: from2,
74022
+ to,
74023
+ amount,
74024
+ token
74025
+ }) => {
74026
+ return permit2Interface.encodeFunctionData("transferFrom", [from2, to, amount, token]);
74027
+ };
74028
+ var transferFromPermit2Trx = ({
74029
+ permit2Address,
74030
+ from: from2,
74031
+ to,
74032
+ amount,
74033
+ token
74034
+ }) => {
74035
+ return createCall({
74036
+ to: permit2Address,
74037
+ data: TransferFromPermit2Calldata({ from: from2, to, amount, token }),
74038
+ value: 0n,
74039
+ operation: 0
74040
+ });
74041
+ };
73906
74042
  // src/integrations/lagoonV1/factory.abi.ts
73907
74043
  var factory_abi_default = [
73908
74044
  {
@@ -80771,6 +80907,7 @@ var position_manager_abi_default3 = [
80771
80907
  // src/integrations/slipstream/slipstream.ts
80772
80908
  var swapRouterInterface2 = new exports_ethers.utils.Interface(swap_router_abi_default2);
80773
80909
  var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
80910
+ var guageInterface = new exports_ethers.utils.Interface(guage_abi_default);
80774
80911
  var RouterSwapExactInputSingleCalldata = ({
80775
80912
  tokenIn,
80776
80913
  tokenOut,
@@ -80943,6 +81080,461 @@ var slipstreamCollectFeesTrx = ({
80943
81080
  operation: 0
80944
81081
  });
80945
81082
  };
81083
+ var SlipstreamGuageDepositCalldata = ({ tokenId }) => {
81084
+ return guageInterface.encodeFunctionData("deposit", [tokenId]);
81085
+ };
81086
+ var slipstreamGuageDepositTrx = ({
81087
+ tokenId,
81088
+ guage
81089
+ }) => {
81090
+ return createCall({
81091
+ to: guage,
81092
+ data: SlipstreamGuageDepositCalldata({ tokenId }),
81093
+ value: 0n,
81094
+ operation: 0
81095
+ });
81096
+ };
81097
+ var SlipstreamGuageWithdrawCalldata = ({ tokenId }) => {
81098
+ return guageInterface.encodeFunctionData("withdraw", [tokenId]);
81099
+ };
81100
+ var slipstreamGuageWithdrawTrx = ({
81101
+ tokenId,
81102
+ guage
81103
+ }) => {
81104
+ return createCall({
81105
+ to: guage,
81106
+ data: SlipstreamGuageWithdrawCalldata({ tokenId }),
81107
+ value: 0n,
81108
+ operation: 0
81109
+ });
81110
+ };
81111
+ var SlipstreamGuageGetRewardCalldata = ({ tokenId }) => {
81112
+ return guageInterface.encodeFunctionData("getReward", [tokenId]);
81113
+ };
81114
+ var slipstreamGuageGetRewardTrx = ({
81115
+ tokenId,
81116
+ guage
81117
+ }) => {
81118
+ return createCall({
81119
+ to: guage,
81120
+ data: SlipstreamGuageGetRewardCalldata({ tokenId }),
81121
+ value: 0n,
81122
+ operation: 0
81123
+ });
81124
+ };
81125
+ // src/integrations/slipstream/guage.abi.ts
81126
+ var guage_abi_default = [
81127
+ {
81128
+ name: "ClaimFees",
81129
+ type: "event",
81130
+ inputs: [
81131
+ {
81132
+ name: "from",
81133
+ type: "address",
81134
+ indexed: true,
81135
+ internalType: "address"
81136
+ },
81137
+ {
81138
+ name: "claimed0",
81139
+ type: "uint256",
81140
+ indexed: false,
81141
+ internalType: "uint256"
81142
+ },
81143
+ {
81144
+ name: "claimed1",
81145
+ type: "uint256",
81146
+ indexed: false,
81147
+ internalType: "uint256"
81148
+ }
81149
+ ],
81150
+ anonymous: false
81151
+ },
81152
+ {
81153
+ name: "ClaimRewards",
81154
+ type: "event",
81155
+ inputs: [
81156
+ {
81157
+ name: "from",
81158
+ type: "address",
81159
+ indexed: true,
81160
+ internalType: "address"
81161
+ },
81162
+ {
81163
+ name: "amount",
81164
+ type: "uint256",
81165
+ indexed: false,
81166
+ internalType: "uint256"
81167
+ }
81168
+ ],
81169
+ anonymous: false
81170
+ },
81171
+ {
81172
+ name: "Deposit",
81173
+ type: "event",
81174
+ inputs: [
81175
+ {
81176
+ name: "user",
81177
+ type: "address",
81178
+ indexed: true,
81179
+ internalType: "address"
81180
+ },
81181
+ {
81182
+ name: "tokenId",
81183
+ type: "uint256",
81184
+ indexed: true,
81185
+ internalType: "uint256"
81186
+ },
81187
+ {
81188
+ name: "liquidityToStake",
81189
+ type: "uint128",
81190
+ indexed: true,
81191
+ internalType: "uint128"
81192
+ }
81193
+ ],
81194
+ anonymous: false
81195
+ },
81196
+ {
81197
+ name: "NotifyReward",
81198
+ type: "event",
81199
+ inputs: [
81200
+ {
81201
+ name: "from",
81202
+ type: "address",
81203
+ indexed: true,
81204
+ internalType: "address"
81205
+ },
81206
+ {
81207
+ name: "amount",
81208
+ type: "uint256",
81209
+ indexed: false,
81210
+ internalType: "uint256"
81211
+ }
81212
+ ],
81213
+ anonymous: false
81214
+ },
81215
+ {
81216
+ name: "Withdraw",
81217
+ type: "event",
81218
+ inputs: [
81219
+ {
81220
+ name: "user",
81221
+ type: "address",
81222
+ indexed: true,
81223
+ internalType: "address"
81224
+ },
81225
+ {
81226
+ name: "tokenId",
81227
+ type: "uint256",
81228
+ indexed: true,
81229
+ internalType: "uint256"
81230
+ },
81231
+ {
81232
+ name: "liquidityToStake",
81233
+ type: "uint128",
81234
+ indexed: true,
81235
+ internalType: "uint128"
81236
+ }
81237
+ ],
81238
+ anonymous: false
81239
+ },
81240
+ {
81241
+ name: "deposit",
81242
+ type: "function",
81243
+ inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
81244
+ outputs: [],
81245
+ stateMutability: "nonpayable"
81246
+ },
81247
+ {
81248
+ name: "earned",
81249
+ type: "function",
81250
+ inputs: [
81251
+ { name: "account", type: "address", internalType: "address" },
81252
+ { name: "tokenId", type: "uint256", internalType: "uint256" }
81253
+ ],
81254
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81255
+ stateMutability: "view"
81256
+ },
81257
+ {
81258
+ name: "fees0",
81259
+ type: "function",
81260
+ inputs: [],
81261
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81262
+ stateMutability: "view"
81263
+ },
81264
+ {
81265
+ name: "fees1",
81266
+ type: "function",
81267
+ inputs: [],
81268
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81269
+ stateMutability: "view"
81270
+ },
81271
+ {
81272
+ name: "feesVotingReward",
81273
+ type: "function",
81274
+ inputs: [],
81275
+ outputs: [{ name: "", type: "address", internalType: "address" }],
81276
+ stateMutability: "view"
81277
+ },
81278
+ {
81279
+ name: "gaugeFactory",
81280
+ type: "function",
81281
+ inputs: [],
81282
+ outputs: [
81283
+ {
81284
+ name: "",
81285
+ type: "address",
81286
+ internalType: "contract ICLGaugeFactory"
81287
+ }
81288
+ ],
81289
+ stateMutability: "view"
81290
+ },
81291
+ {
81292
+ name: "getReward",
81293
+ type: "function",
81294
+ inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
81295
+ outputs: [],
81296
+ stateMutability: "nonpayable"
81297
+ },
81298
+ {
81299
+ name: "initialize",
81300
+ type: "function",
81301
+ inputs: [
81302
+ { name: "_pool", type: "address", internalType: "address" },
81303
+ {
81304
+ name: "_feesVotingReward",
81305
+ type: "address",
81306
+ internalType: "address"
81307
+ },
81308
+ {
81309
+ name: "_rewardToken",
81310
+ type: "address",
81311
+ internalType: "address"
81312
+ },
81313
+ { name: "_voter", type: "address", internalType: "address" },
81314
+ { name: "_nft", type: "address", internalType: "address" },
81315
+ { name: "_token0", type: "address", internalType: "address" },
81316
+ { name: "_token1", type: "address", internalType: "address" },
81317
+ {
81318
+ name: "_tickSpacing",
81319
+ type: "int24",
81320
+ internalType: "int24"
81321
+ },
81322
+ { name: "_isPool", type: "bool", internalType: "bool" }
81323
+ ],
81324
+ outputs: [],
81325
+ stateMutability: "nonpayable"
81326
+ },
81327
+ {
81328
+ name: "isPool",
81329
+ type: "function",
81330
+ inputs: [],
81331
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
81332
+ stateMutability: "view"
81333
+ },
81334
+ {
81335
+ name: "lastUpdateTime",
81336
+ type: "function",
81337
+ inputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81338
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81339
+ stateMutability: "view"
81340
+ },
81341
+ {
81342
+ name: "left",
81343
+ type: "function",
81344
+ inputs: [],
81345
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81346
+ stateMutability: "view"
81347
+ },
81348
+ {
81349
+ name: "nft",
81350
+ type: "function",
81351
+ inputs: [],
81352
+ outputs: [
81353
+ {
81354
+ name: "",
81355
+ type: "address",
81356
+ internalType: "contract INonfungiblePositionManager"
81357
+ }
81358
+ ],
81359
+ stateMutability: "view"
81360
+ },
81361
+ {
81362
+ name: "notifyRewardAmount",
81363
+ type: "function",
81364
+ inputs: [{ name: "_amount", type: "uint256", internalType: "uint256" }],
81365
+ outputs: [],
81366
+ stateMutability: "nonpayable"
81367
+ },
81368
+ {
81369
+ name: "notifyRewardWithoutClaim",
81370
+ type: "function",
81371
+ inputs: [{ name: "_amount", type: "uint256", internalType: "uint256" }],
81372
+ outputs: [],
81373
+ stateMutability: "nonpayable"
81374
+ },
81375
+ {
81376
+ name: "onERC721Received",
81377
+ type: "function",
81378
+ inputs: [
81379
+ { name: "", type: "address", internalType: "address" },
81380
+ { name: "", type: "address", internalType: "address" },
81381
+ { name: "", type: "uint256", internalType: "uint256" },
81382
+ { name: "", type: "bytes", internalType: "bytes" }
81383
+ ],
81384
+ outputs: [{ name: "", type: "bytes4", internalType: "bytes4" }],
81385
+ stateMutability: "nonpayable"
81386
+ },
81387
+ {
81388
+ name: "periodFinish",
81389
+ type: "function",
81390
+ inputs: [],
81391
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81392
+ stateMutability: "view"
81393
+ },
81394
+ {
81395
+ name: "pool",
81396
+ type: "function",
81397
+ inputs: [],
81398
+ outputs: [
81399
+ {
81400
+ name: "",
81401
+ type: "address",
81402
+ internalType: "contract ICLPool"
81403
+ }
81404
+ ],
81405
+ stateMutability: "view"
81406
+ },
81407
+ {
81408
+ name: "rewardGrowthInside",
81409
+ type: "function",
81410
+ inputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81411
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81412
+ stateMutability: "view"
81413
+ },
81414
+ {
81415
+ name: "rewardRate",
81416
+ type: "function",
81417
+ inputs: [],
81418
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81419
+ stateMutability: "view"
81420
+ },
81421
+ {
81422
+ name: "rewardRateByEpoch",
81423
+ type: "function",
81424
+ inputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81425
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81426
+ stateMutability: "view"
81427
+ },
81428
+ {
81429
+ name: "rewardToken",
81430
+ type: "function",
81431
+ inputs: [],
81432
+ outputs: [{ name: "", type: "address", internalType: "address" }],
81433
+ stateMutability: "view"
81434
+ },
81435
+ {
81436
+ name: "rewards",
81437
+ type: "function",
81438
+ inputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81439
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81440
+ stateMutability: "view"
81441
+ },
81442
+ {
81443
+ name: "stakedByIndex",
81444
+ type: "function",
81445
+ inputs: [
81446
+ {
81447
+ name: "depositor",
81448
+ type: "address",
81449
+ internalType: "address"
81450
+ },
81451
+ { name: "index", type: "uint256", internalType: "uint256" }
81452
+ ],
81453
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81454
+ stateMutability: "view"
81455
+ },
81456
+ {
81457
+ name: "stakedContains",
81458
+ type: "function",
81459
+ inputs: [
81460
+ {
81461
+ name: "depositor",
81462
+ type: "address",
81463
+ internalType: "address"
81464
+ },
81465
+ { name: "tokenId", type: "uint256", internalType: "uint256" }
81466
+ ],
81467
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
81468
+ stateMutability: "view"
81469
+ },
81470
+ {
81471
+ name: "stakedLength",
81472
+ type: "function",
81473
+ inputs: [
81474
+ {
81475
+ name: "depositor",
81476
+ type: "address",
81477
+ internalType: "address"
81478
+ }
81479
+ ],
81480
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81481
+ stateMutability: "view"
81482
+ },
81483
+ {
81484
+ name: "stakedValues",
81485
+ type: "function",
81486
+ inputs: [
81487
+ {
81488
+ name: "depositor",
81489
+ type: "address",
81490
+ internalType: "address"
81491
+ }
81492
+ ],
81493
+ outputs: [
81494
+ {
81495
+ name: "staked",
81496
+ type: "uint256[]",
81497
+ internalType: "uint256[]"
81498
+ }
81499
+ ],
81500
+ stateMutability: "view"
81501
+ },
81502
+ {
81503
+ name: "tickSpacing",
81504
+ type: "function",
81505
+ inputs: [],
81506
+ outputs: [{ name: "", type: "int24", internalType: "int24" }],
81507
+ stateMutability: "view"
81508
+ },
81509
+ {
81510
+ name: "token0",
81511
+ type: "function",
81512
+ inputs: [],
81513
+ outputs: [{ name: "", type: "address", internalType: "address" }],
81514
+ stateMutability: "view"
81515
+ },
81516
+ {
81517
+ name: "token1",
81518
+ type: "function",
81519
+ inputs: [],
81520
+ outputs: [{ name: "", type: "address", internalType: "address" }],
81521
+ stateMutability: "view"
81522
+ },
81523
+ {
81524
+ name: "voter",
81525
+ type: "function",
81526
+ inputs: [],
81527
+ outputs: [{ name: "", type: "address", internalType: "contract IVoter" }],
81528
+ stateMutability: "view"
81529
+ },
81530
+ {
81531
+ name: "withdraw",
81532
+ type: "function",
81533
+ inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
81534
+ outputs: [],
81535
+ stateMutability: "nonpayable"
81536
+ }
81537
+ ];
80946
81538
  // src/integrations/morphoVault/morpho.vault.abi.ts
80947
81539
  var morpho_vault_abi_default = [
80948
81540
  {
@@ -83053,6 +83645,2627 @@ var merklClaimTrx = ({
83053
83645
  value: 0n
83054
83646
  });
83055
83647
  };
83648
+ // src/integrations/oft/oft.adapter.abi.ts
83649
+ var oft_adapter_abi_default = [
83650
+ {
83651
+ inputs: [
83652
+ {
83653
+ internalType: "uint32",
83654
+ name: "_arbitrumEid",
83655
+ type: "uint32"
83656
+ },
83657
+ { internalType: "uint32", name: "_celoEid", type: "uint32" },
83658
+ { internalType: "uint32", name: "_ethEid", type: "uint32" },
83659
+ { internalType: "uint32", name: "_tonEid", type: "uint32" },
83660
+ { internalType: "uint32", name: "_tronEid", type: "uint32" },
83661
+ { internalType: "address", name: "_token", type: "address" },
83662
+ {
83663
+ internalType: "address",
83664
+ name: "_lzEndpoint",
83665
+ type: "address"
83666
+ },
83667
+ {
83668
+ internalType: "address",
83669
+ name: "_delegate",
83670
+ type: "address"
83671
+ }
83672
+ ],
83673
+ stateMutability: "nonpayable",
83674
+ type: "constructor"
83675
+ },
83676
+ {
83677
+ inputs: [{ internalType: "address", name: "target", type: "address" }],
83678
+ name: "AddressEmptyCode",
83679
+ type: "error"
83680
+ },
83681
+ {
83682
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
83683
+ name: "AddressInsufficientBalance",
83684
+ type: "error"
83685
+ },
83686
+ { inputs: [], name: "ComposeNotSupported", type: "error" },
83687
+ { inputs: [], name: "FailedInnerCall", type: "error" },
83688
+ {
83689
+ inputs: [
83690
+ { internalType: "uint32", name: "eid", type: "uint32" },
83691
+ { internalType: "uint256", name: "credits", type: "uint256" },
83692
+ {
83693
+ internalType: "uint256",
83694
+ name: "amountWithdraw",
83695
+ type: "uint256"
83696
+ }
83697
+ ],
83698
+ name: "InsufficientCredits",
83699
+ type: "error"
83700
+ },
83701
+ { inputs: [], name: "InsufficientFeeBalance", type: "error" },
83702
+ { inputs: [], name: "InvalidAmount", type: "error" },
83703
+ { inputs: [], name: "InvalidDelegate", type: "error" },
83704
+ { inputs: [], name: "InvalidEid", type: "error" },
83705
+ { inputs: [], name: "InvalidEndpointCall", type: "error" },
83706
+ {
83707
+ inputs: [{ internalType: "uint16", name: "feeBps", type: "uint16" }],
83708
+ name: "InvalidFeeBps",
83709
+ type: "error"
83710
+ },
83711
+ { inputs: [], name: "InvalidLocalDecimals", type: "error" },
83712
+ {
83713
+ inputs: [{ internalType: "uint16", name: "msgType", type: "uint16" }],
83714
+ name: "InvalidMsgType",
83715
+ type: "error"
83716
+ },
83717
+ {
83718
+ inputs: [{ internalType: "bytes", name: "options", type: "bytes" }],
83719
+ name: "InvalidOptions",
83720
+ type: "error"
83721
+ },
83722
+ { inputs: [], name: "LzTokenUnavailable", type: "error" },
83723
+ {
83724
+ inputs: [{ internalType: "uint32", name: "eid", type: "uint32" }],
83725
+ name: "NoPeer",
83726
+ type: "error"
83727
+ },
83728
+ {
83729
+ inputs: [{ internalType: "uint256", name: "msgValue", type: "uint256" }],
83730
+ name: "NotEnoughNative",
83731
+ type: "error"
83732
+ },
83733
+ {
83734
+ inputs: [{ internalType: "address", name: "addr", type: "address" }],
83735
+ name: "OnlyEndpoint",
83736
+ type: "error"
83737
+ },
83738
+ { inputs: [], name: "OnlyLpAdminOrOwner", type: "error" },
83739
+ {
83740
+ inputs: [
83741
+ { internalType: "uint32", name: "eid", type: "uint32" },
83742
+ { internalType: "bytes32", name: "sender", type: "bytes32" }
83743
+ ],
83744
+ name: "OnlyPeer",
83745
+ type: "error"
83746
+ },
83747
+ { inputs: [], name: "OnlyPlanner", type: "error" },
83748
+ {
83749
+ inputs: [{ internalType: "address", name: "owner", type: "address" }],
83750
+ name: "OwnableInvalidOwner",
83751
+ type: "error"
83752
+ },
83753
+ {
83754
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
83755
+ name: "OwnableUnauthorizedAccount",
83756
+ type: "error"
83757
+ },
83758
+ {
83759
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
83760
+ name: "SafeERC20FailedOperation",
83761
+ type: "error"
83762
+ },
83763
+ {
83764
+ inputs: [
83765
+ {
83766
+ internalType: "uint256",
83767
+ name: "amountLD",
83768
+ type: "uint256"
83769
+ },
83770
+ {
83771
+ internalType: "uint256",
83772
+ name: "minAmountLD",
83773
+ type: "uint256"
83774
+ }
83775
+ ],
83776
+ name: "SlippageExceeded",
83777
+ type: "error"
83778
+ },
83779
+ {
83780
+ anonymous: false,
83781
+ inputs: [
83782
+ {
83783
+ indexed: false,
83784
+ internalType: "bytes32",
83785
+ name: "guid",
83786
+ type: "bytes32"
83787
+ },
83788
+ {
83789
+ indexed: false,
83790
+ internalType: "uint32",
83791
+ name: "srcEid",
83792
+ type: "uint32"
83793
+ },
83794
+ {
83795
+ indexed: false,
83796
+ internalType: "bytes",
83797
+ name: "message",
83798
+ type: "bytes"
83799
+ }
83800
+ ],
83801
+ name: "CreditsReceived",
83802
+ type: "event"
83803
+ },
83804
+ {
83805
+ anonymous: false,
83806
+ inputs: [
83807
+ {
83808
+ indexed: false,
83809
+ internalType: "uint32",
83810
+ name: "dstEid",
83811
+ type: "uint32"
83812
+ },
83813
+ {
83814
+ indexed: false,
83815
+ internalType: "uint64",
83816
+ name: "creditsArbitrum",
83817
+ type: "uint64"
83818
+ },
83819
+ {
83820
+ indexed: false,
83821
+ internalType: "uint64",
83822
+ name: "creditsCelo",
83823
+ type: "uint64"
83824
+ },
83825
+ {
83826
+ indexed: false,
83827
+ internalType: "uint64",
83828
+ name: "creditsEth",
83829
+ type: "uint64"
83830
+ },
83831
+ {
83832
+ indexed: false,
83833
+ internalType: "uint64",
83834
+ name: "creditsTon",
83835
+ type: "uint64"
83836
+ },
83837
+ {
83838
+ indexed: false,
83839
+ internalType: "uint64",
83840
+ name: "creditsTron",
83841
+ type: "uint64"
83842
+ }
83843
+ ],
83844
+ name: "CreditsSent",
83845
+ type: "event"
83846
+ },
83847
+ {
83848
+ anonymous: false,
83849
+ inputs: [
83850
+ {
83851
+ components: [
83852
+ {
83853
+ internalType: "uint32",
83854
+ name: "eid",
83855
+ type: "uint32"
83856
+ },
83857
+ {
83858
+ internalType: "uint16",
83859
+ name: "msgType",
83860
+ type: "uint16"
83861
+ },
83862
+ {
83863
+ internalType: "bytes",
83864
+ name: "options",
83865
+ type: "bytes"
83866
+ }
83867
+ ],
83868
+ indexed: false,
83869
+ internalType: "struct EnforcedOptionParam[]",
83870
+ name: "_enforcedOptions",
83871
+ type: "tuple[]"
83872
+ }
83873
+ ],
83874
+ name: "EnforcedOptionSet",
83875
+ type: "event"
83876
+ },
83877
+ {
83878
+ anonymous: false,
83879
+ inputs: [
83880
+ {
83881
+ indexed: false,
83882
+ internalType: "uint16",
83883
+ name: "feeBps",
83884
+ type: "uint16"
83885
+ }
83886
+ ],
83887
+ name: "FeeBpsSet",
83888
+ type: "event"
83889
+ },
83890
+ {
83891
+ anonymous: false,
83892
+ inputs: [
83893
+ {
83894
+ indexed: false,
83895
+ internalType: "address",
83896
+ name: "to",
83897
+ type: "address"
83898
+ },
83899
+ {
83900
+ indexed: false,
83901
+ internalType: "uint256",
83902
+ name: "amount",
83903
+ type: "uint256"
83904
+ }
83905
+ ],
83906
+ name: "FeesWithdrawn",
83907
+ type: "event"
83908
+ },
83909
+ {
83910
+ anonymous: false,
83911
+ inputs: [
83912
+ {
83913
+ indexed: false,
83914
+ internalType: "uint256",
83915
+ name: "amount",
83916
+ type: "uint256"
83917
+ }
83918
+ ],
83919
+ name: "LocalDeposit",
83920
+ type: "event"
83921
+ },
83922
+ {
83923
+ anonymous: false,
83924
+ inputs: [
83925
+ {
83926
+ indexed: false,
83927
+ internalType: "address",
83928
+ name: "to",
83929
+ type: "address"
83930
+ },
83931
+ {
83932
+ indexed: false,
83933
+ internalType: "uint256",
83934
+ name: "amount",
83935
+ type: "uint256"
83936
+ }
83937
+ ],
83938
+ name: "LocalWithdrawn",
83939
+ type: "event"
83940
+ },
83941
+ {
83942
+ anonymous: false,
83943
+ inputs: [
83944
+ {
83945
+ indexed: false,
83946
+ internalType: "address",
83947
+ name: "lpAdmin",
83948
+ type: "address"
83949
+ }
83950
+ ],
83951
+ name: "LpAdminSet",
83952
+ type: "event"
83953
+ },
83954
+ {
83955
+ anonymous: false,
83956
+ inputs: [
83957
+ {
83958
+ indexed: true,
83959
+ internalType: "bytes32",
83960
+ name: "guid",
83961
+ type: "bytes32"
83962
+ },
83963
+ {
83964
+ indexed: false,
83965
+ internalType: "uint32",
83966
+ name: "srcEid",
83967
+ type: "uint32"
83968
+ },
83969
+ {
83970
+ indexed: true,
83971
+ internalType: "address",
83972
+ name: "toAddress",
83973
+ type: "address"
83974
+ },
83975
+ {
83976
+ indexed: false,
83977
+ internalType: "uint256",
83978
+ name: "amountReceivedLD",
83979
+ type: "uint256"
83980
+ }
83981
+ ],
83982
+ name: "OFTReceived",
83983
+ type: "event"
83984
+ },
83985
+ {
83986
+ anonymous: false,
83987
+ inputs: [
83988
+ {
83989
+ indexed: true,
83990
+ internalType: "bytes32",
83991
+ name: "guid",
83992
+ type: "bytes32"
83993
+ },
83994
+ {
83995
+ indexed: false,
83996
+ internalType: "uint32",
83997
+ name: "dstEid",
83998
+ type: "uint32"
83999
+ },
84000
+ {
84001
+ indexed: true,
84002
+ internalType: "address",
84003
+ name: "fromAddress",
84004
+ type: "address"
84005
+ },
84006
+ {
84007
+ indexed: false,
84008
+ internalType: "uint256",
84009
+ name: "amountSentLD",
84010
+ type: "uint256"
84011
+ },
84012
+ {
84013
+ indexed: false,
84014
+ internalType: "uint256",
84015
+ name: "amountReceivedLD",
84016
+ type: "uint256"
84017
+ }
84018
+ ],
84019
+ name: "OFTSent",
84020
+ type: "event"
84021
+ },
84022
+ {
84023
+ anonymous: false,
84024
+ inputs: [
84025
+ {
84026
+ indexed: true,
84027
+ internalType: "address",
84028
+ name: "previousOwner",
84029
+ type: "address"
84030
+ },
84031
+ {
84032
+ indexed: true,
84033
+ internalType: "address",
84034
+ name: "newOwner",
84035
+ type: "address"
84036
+ }
84037
+ ],
84038
+ name: "OwnershipTransferred",
84039
+ type: "event"
84040
+ },
84041
+ {
84042
+ anonymous: false,
84043
+ inputs: [
84044
+ {
84045
+ indexed: false,
84046
+ internalType: "uint32",
84047
+ name: "eid",
84048
+ type: "uint32"
84049
+ },
84050
+ {
84051
+ indexed: false,
84052
+ internalType: "bytes32",
84053
+ name: "peer",
84054
+ type: "bytes32"
84055
+ }
84056
+ ],
84057
+ name: "PeerSet",
84058
+ type: "event"
84059
+ },
84060
+ {
84061
+ anonymous: false,
84062
+ inputs: [
84063
+ {
84064
+ indexed: false,
84065
+ internalType: "address",
84066
+ name: "planner",
84067
+ type: "address"
84068
+ }
84069
+ ],
84070
+ name: "PlannerSet",
84071
+ type: "event"
84072
+ },
84073
+ {
84074
+ anonymous: false,
84075
+ inputs: [
84076
+ {
84077
+ indexed: false,
84078
+ internalType: "bytes32",
84079
+ name: "guid",
84080
+ type: "bytes32"
84081
+ },
84082
+ {
84083
+ indexed: false,
84084
+ internalType: "uint32",
84085
+ name: "srcEid",
84086
+ type: "uint32"
84087
+ },
84088
+ {
84089
+ indexed: false,
84090
+ internalType: "address",
84091
+ name: "to",
84092
+ type: "address"
84093
+ },
84094
+ {
84095
+ indexed: false,
84096
+ internalType: "uint256",
84097
+ name: "amount",
84098
+ type: "uint256"
84099
+ }
84100
+ ],
84101
+ name: "RemoteWithdrawReceived",
84102
+ type: "event"
84103
+ },
84104
+ {
84105
+ anonymous: false,
84106
+ inputs: [
84107
+ {
84108
+ indexed: false,
84109
+ internalType: "uint32",
84110
+ name: "dstEid",
84111
+ type: "uint32"
84112
+ },
84113
+ {
84114
+ indexed: false,
84115
+ internalType: "uint256",
84116
+ name: "amount",
84117
+ type: "uint256"
84118
+ }
84119
+ ],
84120
+ name: "RemoteWithdrawn",
84121
+ type: "event"
84122
+ },
84123
+ {
84124
+ inputs: [],
84125
+ name: "ARBITRUM_EID",
84126
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84127
+ stateMutability: "view",
84128
+ type: "function"
84129
+ },
84130
+ {
84131
+ inputs: [],
84132
+ name: "BPS_DENOMINATOR",
84133
+ outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
84134
+ stateMutability: "view",
84135
+ type: "function"
84136
+ },
84137
+ {
84138
+ inputs: [],
84139
+ name: "CELO_EID",
84140
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84141
+ stateMutability: "view",
84142
+ type: "function"
84143
+ },
84144
+ {
84145
+ inputs: [],
84146
+ name: "ETH_EID",
84147
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84148
+ stateMutability: "view",
84149
+ type: "function"
84150
+ },
84151
+ {
84152
+ inputs: [],
84153
+ name: "LOCAL_EID",
84154
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84155
+ stateMutability: "view",
84156
+ type: "function"
84157
+ },
84158
+ {
84159
+ inputs: [],
84160
+ name: "SEND_CREDITS",
84161
+ outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
84162
+ stateMutability: "view",
84163
+ type: "function"
84164
+ },
84165
+ {
84166
+ inputs: [],
84167
+ name: "SEND_OFT",
84168
+ outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
84169
+ stateMutability: "view",
84170
+ type: "function"
84171
+ },
84172
+ {
84173
+ inputs: [],
84174
+ name: "TON_EID",
84175
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84176
+ stateMutability: "view",
84177
+ type: "function"
84178
+ },
84179
+ {
84180
+ inputs: [],
84181
+ name: "TRON_EID",
84182
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84183
+ stateMutability: "view",
84184
+ type: "function"
84185
+ },
84186
+ {
84187
+ inputs: [],
84188
+ name: "WITHDRAW_REMOTE",
84189
+ outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
84190
+ stateMutability: "view",
84191
+ type: "function"
84192
+ },
84193
+ {
84194
+ inputs: [
84195
+ {
84196
+ components: [
84197
+ {
84198
+ internalType: "uint32",
84199
+ name: "srcEid",
84200
+ type: "uint32"
84201
+ },
84202
+ {
84203
+ internalType: "bytes32",
84204
+ name: "sender",
84205
+ type: "bytes32"
84206
+ },
84207
+ {
84208
+ internalType: "uint64",
84209
+ name: "nonce",
84210
+ type: "uint64"
84211
+ }
84212
+ ],
84213
+ internalType: "struct Origin",
84214
+ name: "origin",
84215
+ type: "tuple"
84216
+ }
84217
+ ],
84218
+ name: "allowInitializePath",
84219
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
84220
+ stateMutability: "view",
84221
+ type: "function"
84222
+ },
84223
+ {
84224
+ inputs: [],
84225
+ name: "approvalRequired",
84226
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
84227
+ stateMutability: "pure",
84228
+ type: "function"
84229
+ },
84230
+ {
84231
+ inputs: [
84232
+ { internalType: "uint32", name: "_eid", type: "uint32" },
84233
+ { internalType: "uint16", name: "_msgType", type: "uint16" },
84234
+ {
84235
+ internalType: "bytes",
84236
+ name: "_extraOptions",
84237
+ type: "bytes"
84238
+ }
84239
+ ],
84240
+ name: "combineOptions",
84241
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
84242
+ stateMutability: "view",
84243
+ type: "function"
84244
+ },
84245
+ {
84246
+ inputs: [{ internalType: "uint32", name: "eid", type: "uint32" }],
84247
+ name: "credits",
84248
+ outputs: [{ internalType: "uint256", name: "credits", type: "uint256" }],
84249
+ stateMutability: "view",
84250
+ type: "function"
84251
+ },
84252
+ {
84253
+ inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
84254
+ name: "depositLocal",
84255
+ outputs: [],
84256
+ stateMutability: "nonpayable",
84257
+ type: "function"
84258
+ },
84259
+ {
84260
+ inputs: [],
84261
+ name: "endpoint",
84262
+ outputs: [
84263
+ {
84264
+ internalType: "contract ILayerZeroEndpointV2",
84265
+ name: "",
84266
+ type: "address"
84267
+ }
84268
+ ],
84269
+ stateMutability: "view",
84270
+ type: "function"
84271
+ },
84272
+ {
84273
+ inputs: [
84274
+ { internalType: "uint32", name: "eid", type: "uint32" },
84275
+ { internalType: "uint16", name: "msgType", type: "uint16" }
84276
+ ],
84277
+ name: "enforcedOptions",
84278
+ outputs: [
84279
+ {
84280
+ internalType: "bytes",
84281
+ name: "enforcedOption",
84282
+ type: "bytes"
84283
+ }
84284
+ ],
84285
+ stateMutability: "view",
84286
+ type: "function"
84287
+ },
84288
+ {
84289
+ inputs: [],
84290
+ name: "feeBalance",
84291
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
84292
+ stateMutability: "view",
84293
+ type: "function"
84294
+ },
84295
+ {
84296
+ inputs: [],
84297
+ name: "feeBps",
84298
+ outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
84299
+ stateMutability: "view",
84300
+ type: "function"
84301
+ },
84302
+ {
84303
+ inputs: [
84304
+ {
84305
+ components: [
84306
+ {
84307
+ internalType: "uint32",
84308
+ name: "srcEid",
84309
+ type: "uint32"
84310
+ },
84311
+ {
84312
+ internalType: "bytes32",
84313
+ name: "sender",
84314
+ type: "bytes32"
84315
+ },
84316
+ {
84317
+ internalType: "uint64",
84318
+ name: "nonce",
84319
+ type: "uint64"
84320
+ }
84321
+ ],
84322
+ internalType: "struct Origin",
84323
+ name: "",
84324
+ type: "tuple"
84325
+ },
84326
+ { internalType: "bytes", name: "", type: "bytes" },
84327
+ { internalType: "address", name: "_sender", type: "address" }
84328
+ ],
84329
+ name: "isComposeMsgSender",
84330
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
84331
+ stateMutability: "view",
84332
+ type: "function"
84333
+ },
84334
+ {
84335
+ inputs: [],
84336
+ name: "lpAdmin",
84337
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84338
+ stateMutability: "view",
84339
+ type: "function"
84340
+ },
84341
+ {
84342
+ inputs: [
84343
+ {
84344
+ components: [
84345
+ {
84346
+ internalType: "uint32",
84347
+ name: "srcEid",
84348
+ type: "uint32"
84349
+ },
84350
+ {
84351
+ internalType: "bytes32",
84352
+ name: "sender",
84353
+ type: "bytes32"
84354
+ },
84355
+ {
84356
+ internalType: "uint64",
84357
+ name: "nonce",
84358
+ type: "uint64"
84359
+ }
84360
+ ],
84361
+ internalType: "struct Origin",
84362
+ name: "_origin",
84363
+ type: "tuple"
84364
+ },
84365
+ { internalType: "bytes32", name: "_guid", type: "bytes32" },
84366
+ { internalType: "bytes", name: "_message", type: "bytes" },
84367
+ {
84368
+ internalType: "address",
84369
+ name: "_executor",
84370
+ type: "address"
84371
+ },
84372
+ { internalType: "bytes", name: "_extraData", type: "bytes" }
84373
+ ],
84374
+ name: "lzReceive",
84375
+ outputs: [],
84376
+ stateMutability: "payable",
84377
+ type: "function"
84378
+ },
84379
+ {
84380
+ inputs: [
84381
+ { internalType: "uint32", name: "", type: "uint32" },
84382
+ { internalType: "bytes32", name: "", type: "bytes32" }
84383
+ ],
84384
+ name: "nextNonce",
84385
+ outputs: [{ internalType: "uint64", name: "nonce", type: "uint64" }],
84386
+ stateMutability: "view",
84387
+ type: "function"
84388
+ },
84389
+ {
84390
+ inputs: [],
84391
+ name: "oAppVersion",
84392
+ outputs: [
84393
+ {
84394
+ internalType: "uint64",
84395
+ name: "senderVersion",
84396
+ type: "uint64"
84397
+ },
84398
+ {
84399
+ internalType: "uint64",
84400
+ name: "receiverVersion",
84401
+ type: "uint64"
84402
+ }
84403
+ ],
84404
+ stateMutability: "pure",
84405
+ type: "function"
84406
+ },
84407
+ {
84408
+ inputs: [],
84409
+ name: "oftVersion",
84410
+ outputs: [
84411
+ {
84412
+ internalType: "bytes4",
84413
+ name: "interfaceId",
84414
+ type: "bytes4"
84415
+ },
84416
+ { internalType: "uint64", name: "version", type: "uint64" }
84417
+ ],
84418
+ stateMutability: "pure",
84419
+ type: "function"
84420
+ },
84421
+ {
84422
+ inputs: [],
84423
+ name: "owner",
84424
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84425
+ stateMutability: "view",
84426
+ type: "function"
84427
+ },
84428
+ {
84429
+ inputs: [{ internalType: "uint32", name: "eid", type: "uint32" }],
84430
+ name: "peers",
84431
+ outputs: [{ internalType: "bytes32", name: "peer", type: "bytes32" }],
84432
+ stateMutability: "view",
84433
+ type: "function"
84434
+ },
84435
+ {
84436
+ inputs: [],
84437
+ name: "planner",
84438
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84439
+ stateMutability: "view",
84440
+ type: "function"
84441
+ },
84442
+ {
84443
+ inputs: [
84444
+ {
84445
+ components: [
84446
+ {
84447
+ internalType: "uint32",
84448
+ name: "dstEid",
84449
+ type: "uint32"
84450
+ },
84451
+ {
84452
+ internalType: "bytes32",
84453
+ name: "to",
84454
+ type: "bytes32"
84455
+ },
84456
+ {
84457
+ internalType: "uint256",
84458
+ name: "amountLD",
84459
+ type: "uint256"
84460
+ },
84461
+ {
84462
+ internalType: "uint256",
84463
+ name: "minAmountLD",
84464
+ type: "uint256"
84465
+ },
84466
+ {
84467
+ internalType: "bytes",
84468
+ name: "extraOptions",
84469
+ type: "bytes"
84470
+ },
84471
+ {
84472
+ internalType: "bytes",
84473
+ name: "composeMsg",
84474
+ type: "bytes"
84475
+ },
84476
+ {
84477
+ internalType: "bytes",
84478
+ name: "oftCmd",
84479
+ type: "bytes"
84480
+ }
84481
+ ],
84482
+ internalType: "struct SendParam",
84483
+ name: "_sendParam",
84484
+ type: "tuple"
84485
+ }
84486
+ ],
84487
+ name: "quoteOFT",
84488
+ outputs: [
84489
+ {
84490
+ components: [
84491
+ {
84492
+ internalType: "uint256",
84493
+ name: "minAmountLD",
84494
+ type: "uint256"
84495
+ },
84496
+ {
84497
+ internalType: "uint256",
84498
+ name: "maxAmountLD",
84499
+ type: "uint256"
84500
+ }
84501
+ ],
84502
+ internalType: "struct OFTLimit",
84503
+ name: "oftLimit",
84504
+ type: "tuple"
84505
+ },
84506
+ {
84507
+ components: [
84508
+ {
84509
+ internalType: "int256",
84510
+ name: "feeAmountLD",
84511
+ type: "int256"
84512
+ },
84513
+ {
84514
+ internalType: "string",
84515
+ name: "description",
84516
+ type: "string"
84517
+ }
84518
+ ],
84519
+ internalType: "struct OFTFeeDetail[]",
84520
+ name: "oftFeeDetails",
84521
+ type: "tuple[]"
84522
+ },
84523
+ {
84524
+ components: [
84525
+ {
84526
+ internalType: "uint256",
84527
+ name: "amountSentLD",
84528
+ type: "uint256"
84529
+ },
84530
+ {
84531
+ internalType: "uint256",
84532
+ name: "amountReceivedLD",
84533
+ type: "uint256"
84534
+ }
84535
+ ],
84536
+ internalType: "struct OFTReceipt",
84537
+ name: "oftReceipt",
84538
+ type: "tuple"
84539
+ }
84540
+ ],
84541
+ stateMutability: "view",
84542
+ type: "function"
84543
+ },
84544
+ {
84545
+ inputs: [
84546
+ {
84547
+ components: [
84548
+ {
84549
+ internalType: "uint32",
84550
+ name: "dstEid",
84551
+ type: "uint32"
84552
+ },
84553
+ {
84554
+ internalType: "bytes32",
84555
+ name: "to",
84556
+ type: "bytes32"
84557
+ },
84558
+ {
84559
+ internalType: "uint256",
84560
+ name: "amountLD",
84561
+ type: "uint256"
84562
+ },
84563
+ {
84564
+ internalType: "uint256",
84565
+ name: "minAmountLD",
84566
+ type: "uint256"
84567
+ },
84568
+ {
84569
+ internalType: "bytes",
84570
+ name: "extraOptions",
84571
+ type: "bytes"
84572
+ },
84573
+ {
84574
+ internalType: "bytes",
84575
+ name: "composeMsg",
84576
+ type: "bytes"
84577
+ },
84578
+ {
84579
+ internalType: "bytes",
84580
+ name: "oftCmd",
84581
+ type: "bytes"
84582
+ }
84583
+ ],
84584
+ internalType: "struct SendParam",
84585
+ name: "_sendParam",
84586
+ type: "tuple"
84587
+ },
84588
+ { internalType: "bool", name: "_payInLzToken", type: "bool" }
84589
+ ],
84590
+ name: "quoteSend",
84591
+ outputs: [
84592
+ {
84593
+ components: [
84594
+ {
84595
+ internalType: "uint256",
84596
+ name: "nativeFee",
84597
+ type: "uint256"
84598
+ },
84599
+ {
84600
+ internalType: "uint256",
84601
+ name: "lzTokenFee",
84602
+ type: "uint256"
84603
+ }
84604
+ ],
84605
+ internalType: "struct MessagingFee",
84606
+ name: "msgFee",
84607
+ type: "tuple"
84608
+ }
84609
+ ],
84610
+ stateMutability: "view",
84611
+ type: "function"
84612
+ },
84613
+ {
84614
+ inputs: [
84615
+ { internalType: "uint32", name: "_dstEid", type: "uint32" },
84616
+ {
84617
+ internalType: "uint64",
84618
+ name: "_creditsArbitrum",
84619
+ type: "uint64"
84620
+ },
84621
+ {
84622
+ internalType: "uint64",
84623
+ name: "_creditsCelo",
84624
+ type: "uint64"
84625
+ },
84626
+ {
84627
+ internalType: "uint64",
84628
+ name: "_creditsEth",
84629
+ type: "uint64"
84630
+ },
84631
+ {
84632
+ internalType: "uint64",
84633
+ name: "_creditsTon",
84634
+ type: "uint64"
84635
+ },
84636
+ {
84637
+ internalType: "uint64",
84638
+ name: "_creditsTron",
84639
+ type: "uint64"
84640
+ },
84641
+ {
84642
+ internalType: "bytes",
84643
+ name: "_extraOptions",
84644
+ type: "bytes"
84645
+ },
84646
+ { internalType: "bool", name: "_payInLzToken", type: "bool" }
84647
+ ],
84648
+ name: "quoteSendCredits",
84649
+ outputs: [
84650
+ {
84651
+ components: [
84652
+ {
84653
+ internalType: "uint256",
84654
+ name: "nativeFee",
84655
+ type: "uint256"
84656
+ },
84657
+ {
84658
+ internalType: "uint256",
84659
+ name: "lzTokenFee",
84660
+ type: "uint256"
84661
+ }
84662
+ ],
84663
+ internalType: "struct MessagingFee",
84664
+ name: "msgFee",
84665
+ type: "tuple"
84666
+ }
84667
+ ],
84668
+ stateMutability: "view",
84669
+ type: "function"
84670
+ },
84671
+ {
84672
+ inputs: [
84673
+ {
84674
+ components: [
84675
+ {
84676
+ internalType: "uint32",
84677
+ name: "dstEid",
84678
+ type: "uint32"
84679
+ },
84680
+ {
84681
+ internalType: "bytes32",
84682
+ name: "to",
84683
+ type: "bytes32"
84684
+ },
84685
+ {
84686
+ internalType: "uint256",
84687
+ name: "amountLD",
84688
+ type: "uint256"
84689
+ },
84690
+ {
84691
+ internalType: "uint256",
84692
+ name: "minAmountLD",
84693
+ type: "uint256"
84694
+ },
84695
+ {
84696
+ internalType: "bytes",
84697
+ name: "extraOptions",
84698
+ type: "bytes"
84699
+ },
84700
+ {
84701
+ internalType: "bytes",
84702
+ name: "composeMsg",
84703
+ type: "bytes"
84704
+ },
84705
+ {
84706
+ internalType: "bytes",
84707
+ name: "oftCmd",
84708
+ type: "bytes"
84709
+ }
84710
+ ],
84711
+ internalType: "struct SendParam",
84712
+ name: "_sendParam",
84713
+ type: "tuple"
84714
+ },
84715
+ { internalType: "bool", name: "_payInLzToken", type: "bool" }
84716
+ ],
84717
+ name: "quoteWithdrawRemote",
84718
+ outputs: [
84719
+ {
84720
+ components: [
84721
+ {
84722
+ internalType: "uint256",
84723
+ name: "nativeFee",
84724
+ type: "uint256"
84725
+ },
84726
+ {
84727
+ internalType: "uint256",
84728
+ name: "lzTokenFee",
84729
+ type: "uint256"
84730
+ }
84731
+ ],
84732
+ internalType: "struct MessagingFee",
84733
+ name: "msgFee",
84734
+ type: "tuple"
84735
+ }
84736
+ ],
84737
+ stateMutability: "view",
84738
+ type: "function"
84739
+ },
84740
+ {
84741
+ inputs: [],
84742
+ name: "renounceOwnership",
84743
+ outputs: [],
84744
+ stateMutability: "nonpayable",
84745
+ type: "function"
84746
+ },
84747
+ {
84748
+ inputs: [
84749
+ {
84750
+ components: [
84751
+ {
84752
+ internalType: "uint32",
84753
+ name: "dstEid",
84754
+ type: "uint32"
84755
+ },
84756
+ {
84757
+ internalType: "bytes32",
84758
+ name: "to",
84759
+ type: "bytes32"
84760
+ },
84761
+ {
84762
+ internalType: "uint256",
84763
+ name: "amountLD",
84764
+ type: "uint256"
84765
+ },
84766
+ {
84767
+ internalType: "uint256",
84768
+ name: "minAmountLD",
84769
+ type: "uint256"
84770
+ },
84771
+ {
84772
+ internalType: "bytes",
84773
+ name: "extraOptions",
84774
+ type: "bytes"
84775
+ },
84776
+ {
84777
+ internalType: "bytes",
84778
+ name: "composeMsg",
84779
+ type: "bytes"
84780
+ },
84781
+ {
84782
+ internalType: "bytes",
84783
+ name: "oftCmd",
84784
+ type: "bytes"
84785
+ }
84786
+ ],
84787
+ internalType: "struct SendParam",
84788
+ name: "_sendParam",
84789
+ type: "tuple"
84790
+ },
84791
+ {
84792
+ components: [
84793
+ {
84794
+ internalType: "uint256",
84795
+ name: "nativeFee",
84796
+ type: "uint256"
84797
+ },
84798
+ {
84799
+ internalType: "uint256",
84800
+ name: "lzTokenFee",
84801
+ type: "uint256"
84802
+ }
84803
+ ],
84804
+ internalType: "struct MessagingFee",
84805
+ name: "_fee",
84806
+ type: "tuple"
84807
+ },
84808
+ {
84809
+ internalType: "address",
84810
+ name: "_refundAddress",
84811
+ type: "address"
84812
+ }
84813
+ ],
84814
+ name: "send",
84815
+ outputs: [
84816
+ {
84817
+ components: [
84818
+ {
84819
+ internalType: "bytes32",
84820
+ name: "guid",
84821
+ type: "bytes32"
84822
+ },
84823
+ {
84824
+ internalType: "uint64",
84825
+ name: "nonce",
84826
+ type: "uint64"
84827
+ },
84828
+ {
84829
+ components: [
84830
+ {
84831
+ internalType: "uint256",
84832
+ name: "nativeFee",
84833
+ type: "uint256"
84834
+ },
84835
+ {
84836
+ internalType: "uint256",
84837
+ name: "lzTokenFee",
84838
+ type: "uint256"
84839
+ }
84840
+ ],
84841
+ internalType: "struct MessagingFee",
84842
+ name: "fee",
84843
+ type: "tuple"
84844
+ }
84845
+ ],
84846
+ internalType: "struct MessagingReceipt",
84847
+ name: "msgReceipt",
84848
+ type: "tuple"
84849
+ },
84850
+ {
84851
+ components: [
84852
+ {
84853
+ internalType: "uint256",
84854
+ name: "amountSentLD",
84855
+ type: "uint256"
84856
+ },
84857
+ {
84858
+ internalType: "uint256",
84859
+ name: "amountReceivedLD",
84860
+ type: "uint256"
84861
+ }
84862
+ ],
84863
+ internalType: "struct OFTReceipt",
84864
+ name: "oftReceipt",
84865
+ type: "tuple"
84866
+ }
84867
+ ],
84868
+ stateMutability: "payable",
84869
+ type: "function"
84870
+ },
84871
+ {
84872
+ inputs: [
84873
+ { internalType: "uint32", name: "_dstEid", type: "uint32" },
84874
+ {
84875
+ internalType: "uint64",
84876
+ name: "_creditsArbitrum",
84877
+ type: "uint64"
84878
+ },
84879
+ {
84880
+ internalType: "uint64",
84881
+ name: "_creditsCelo",
84882
+ type: "uint64"
84883
+ },
84884
+ {
84885
+ internalType: "uint64",
84886
+ name: "_creditsEth",
84887
+ type: "uint64"
84888
+ },
84889
+ {
84890
+ internalType: "uint64",
84891
+ name: "_creditsTon",
84892
+ type: "uint64"
84893
+ },
84894
+ {
84895
+ internalType: "uint64",
84896
+ name: "_creditsTron",
84897
+ type: "uint64"
84898
+ },
84899
+ {
84900
+ internalType: "bytes",
84901
+ name: "_extraOptions",
84902
+ type: "bytes"
84903
+ },
84904
+ {
84905
+ components: [
84906
+ {
84907
+ internalType: "uint256",
84908
+ name: "nativeFee",
84909
+ type: "uint256"
84910
+ },
84911
+ {
84912
+ internalType: "uint256",
84913
+ name: "lzTokenFee",
84914
+ type: "uint256"
84915
+ }
84916
+ ],
84917
+ internalType: "struct MessagingFee",
84918
+ name: "_fee",
84919
+ type: "tuple"
84920
+ }
84921
+ ],
84922
+ name: "sendCredits",
84923
+ outputs: [
84924
+ {
84925
+ components: [
84926
+ {
84927
+ internalType: "bytes32",
84928
+ name: "guid",
84929
+ type: "bytes32"
84930
+ },
84931
+ {
84932
+ internalType: "uint64",
84933
+ name: "nonce",
84934
+ type: "uint64"
84935
+ },
84936
+ {
84937
+ components: [
84938
+ {
84939
+ internalType: "uint256",
84940
+ name: "nativeFee",
84941
+ type: "uint256"
84942
+ },
84943
+ {
84944
+ internalType: "uint256",
84945
+ name: "lzTokenFee",
84946
+ type: "uint256"
84947
+ }
84948
+ ],
84949
+ internalType: "struct MessagingFee",
84950
+ name: "fee",
84951
+ type: "tuple"
84952
+ }
84953
+ ],
84954
+ internalType: "struct MessagingReceipt",
84955
+ name: "msgReceipt",
84956
+ type: "tuple"
84957
+ }
84958
+ ],
84959
+ stateMutability: "payable",
84960
+ type: "function"
84961
+ },
84962
+ {
84963
+ inputs: [
84964
+ {
84965
+ internalType: "address",
84966
+ name: "_delegate",
84967
+ type: "address"
84968
+ }
84969
+ ],
84970
+ name: "setDelegate",
84971
+ outputs: [],
84972
+ stateMutability: "nonpayable",
84973
+ type: "function"
84974
+ },
84975
+ {
84976
+ inputs: [
84977
+ {
84978
+ components: [
84979
+ {
84980
+ internalType: "uint32",
84981
+ name: "eid",
84982
+ type: "uint32"
84983
+ },
84984
+ {
84985
+ internalType: "uint16",
84986
+ name: "msgType",
84987
+ type: "uint16"
84988
+ },
84989
+ {
84990
+ internalType: "bytes",
84991
+ name: "options",
84992
+ type: "bytes"
84993
+ }
84994
+ ],
84995
+ internalType: "struct EnforcedOptionParam[]",
84996
+ name: "_enforcedOptions",
84997
+ type: "tuple[]"
84998
+ }
84999
+ ],
85000
+ name: "setEnforcedOptions",
85001
+ outputs: [],
85002
+ stateMutability: "nonpayable",
85003
+ type: "function"
85004
+ },
85005
+ {
85006
+ inputs: [{ internalType: "uint16", name: "_feeBps", type: "uint16" }],
85007
+ name: "setFeeBps",
85008
+ outputs: [],
85009
+ stateMutability: "nonpayable",
85010
+ type: "function"
85011
+ },
85012
+ {
85013
+ inputs: [{ internalType: "address", name: "_lpAdmin", type: "address" }],
85014
+ name: "setLpAdmin",
85015
+ outputs: [],
85016
+ stateMutability: "nonpayable",
85017
+ type: "function"
85018
+ },
85019
+ {
85020
+ inputs: [
85021
+ { internalType: "uint32", name: "_eid", type: "uint32" },
85022
+ { internalType: "bytes32", name: "_peer", type: "bytes32" }
85023
+ ],
85024
+ name: "setPeer",
85025
+ outputs: [],
85026
+ stateMutability: "nonpayable",
85027
+ type: "function"
85028
+ },
85029
+ {
85030
+ inputs: [{ internalType: "address", name: "_planner", type: "address" }],
85031
+ name: "setPlanner",
85032
+ outputs: [],
85033
+ stateMutability: "nonpayable",
85034
+ type: "function"
85035
+ },
85036
+ {
85037
+ inputs: [],
85038
+ name: "sharedDecimals",
85039
+ outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
85040
+ stateMutability: "pure",
85041
+ type: "function"
85042
+ },
85043
+ {
85044
+ inputs: [],
85045
+ name: "token",
85046
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85047
+ stateMutability: "view",
85048
+ type: "function"
85049
+ },
85050
+ {
85051
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
85052
+ name: "transferOwnership",
85053
+ outputs: [],
85054
+ stateMutability: "nonpayable",
85055
+ type: "function"
85056
+ },
85057
+ {
85058
+ inputs: [],
85059
+ name: "tvl",
85060
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
85061
+ stateMutability: "view",
85062
+ type: "function"
85063
+ },
85064
+ {
85065
+ inputs: [
85066
+ { internalType: "address", name: "_to", type: "address" },
85067
+ { internalType: "uint256", name: "_amount", type: "uint256" }
85068
+ ],
85069
+ name: "withdrawFees",
85070
+ outputs: [],
85071
+ stateMutability: "nonpayable",
85072
+ type: "function"
85073
+ },
85074
+ {
85075
+ inputs: [
85076
+ { internalType: "address", name: "_to", type: "address" },
85077
+ { internalType: "uint256", name: "_amount", type: "uint256" }
85078
+ ],
85079
+ name: "withdrawLocal",
85080
+ outputs: [],
85081
+ stateMutability: "nonpayable",
85082
+ type: "function"
85083
+ },
85084
+ {
85085
+ inputs: [
85086
+ {
85087
+ components: [
85088
+ {
85089
+ internalType: "uint32",
85090
+ name: "dstEid",
85091
+ type: "uint32"
85092
+ },
85093
+ {
85094
+ internalType: "bytes32",
85095
+ name: "to",
85096
+ type: "bytes32"
85097
+ },
85098
+ {
85099
+ internalType: "uint256",
85100
+ name: "amountLD",
85101
+ type: "uint256"
85102
+ },
85103
+ {
85104
+ internalType: "uint256",
85105
+ name: "minAmountLD",
85106
+ type: "uint256"
85107
+ },
85108
+ {
85109
+ internalType: "bytes",
85110
+ name: "extraOptions",
85111
+ type: "bytes"
85112
+ },
85113
+ {
85114
+ internalType: "bytes",
85115
+ name: "composeMsg",
85116
+ type: "bytes"
85117
+ },
85118
+ {
85119
+ internalType: "bytes",
85120
+ name: "oftCmd",
85121
+ type: "bytes"
85122
+ }
85123
+ ],
85124
+ internalType: "struct SendParam",
85125
+ name: "_sendParam",
85126
+ type: "tuple"
85127
+ },
85128
+ {
85129
+ components: [
85130
+ {
85131
+ internalType: "uint256",
85132
+ name: "nativeFee",
85133
+ type: "uint256"
85134
+ },
85135
+ {
85136
+ internalType: "uint256",
85137
+ name: "lzTokenFee",
85138
+ type: "uint256"
85139
+ }
85140
+ ],
85141
+ internalType: "struct MessagingFee",
85142
+ name: "_fee",
85143
+ type: "tuple"
85144
+ },
85145
+ {
85146
+ internalType: "address",
85147
+ name: "_refundAddress",
85148
+ type: "address"
85149
+ }
85150
+ ],
85151
+ name: "withdrawRemote",
85152
+ outputs: [
85153
+ {
85154
+ components: [
85155
+ {
85156
+ internalType: "bytes32",
85157
+ name: "guid",
85158
+ type: "bytes32"
85159
+ },
85160
+ {
85161
+ internalType: "uint64",
85162
+ name: "nonce",
85163
+ type: "uint64"
85164
+ },
85165
+ {
85166
+ components: [
85167
+ {
85168
+ internalType: "uint256",
85169
+ name: "nativeFee",
85170
+ type: "uint256"
85171
+ },
85172
+ {
85173
+ internalType: "uint256",
85174
+ name: "lzTokenFee",
85175
+ type: "uint256"
85176
+ }
85177
+ ],
85178
+ internalType: "struct MessagingFee",
85179
+ name: "fee",
85180
+ type: "tuple"
85181
+ }
85182
+ ],
85183
+ internalType: "struct MessagingReceipt",
85184
+ name: "msgReceipt",
85185
+ type: "tuple"
85186
+ }
85187
+ ],
85188
+ stateMutability: "payable",
85189
+ type: "function"
85190
+ }
85191
+ ];
85192
+ // src/integrations/oft/oft.adapter.ts
85193
+ var oftAdapterInterface = new exports_ethers.utils.Interface(oft_adapter_abi_default);
85194
+ var QuoteSendCalldata = (args) => {
85195
+ return oftAdapterInterface.encodeFunctionData("quoteSend", [
85196
+ {
85197
+ dstEid: args.dstEid,
85198
+ to: args.to,
85199
+ amountLD: args.amountLD,
85200
+ minAmountLD: args.minAmountLD,
85201
+ extraOptions: args.extraOptions,
85202
+ composeMsg: args.composeMsg,
85203
+ oftCmd: args.oftCmd
85204
+ },
85205
+ args.payInLzToken
85206
+ ]);
85207
+ };
85208
+ var QuoteSendTrx = ({
85209
+ oftAdapterAddress,
85210
+ args
85211
+ }) => {
85212
+ return createCall({
85213
+ operation: 0,
85214
+ to: oftAdapterAddress,
85215
+ data: QuoteSendCalldata(args),
85216
+ value: 0n
85217
+ });
85218
+ };
85219
+ var SendOFTCalldata = (args) => {
85220
+ return oftAdapterInterface.encodeFunctionData("send", [
85221
+ {
85222
+ dstEid: args.dstEid,
85223
+ to: args.to,
85224
+ amountLD: args.amountLD,
85225
+ minAmountLD: args.minAmountLD,
85226
+ extraOptions: args.extraOptions,
85227
+ composeMsg: args.composeMsg,
85228
+ oftCmd: args.oftCmd
85229
+ },
85230
+ {
85231
+ nativeFee: args.nativeFee,
85232
+ lzTokenFee: args.lzTokenFee
85233
+ },
85234
+ args.refundAddress
85235
+ ]);
85236
+ };
85237
+ var sendOFTTrx = ({
85238
+ oftAdapterAddress,
85239
+ args
85240
+ }) => {
85241
+ return createCall({
85242
+ operation: 0,
85243
+ to: oftAdapterAddress,
85244
+ data: SendOFTCalldata(args),
85245
+ value: args.nativeFee
85246
+ });
85247
+ };
85248
+ // src/integrations/cctp/message.transmitter.v2.abi.ts
85249
+ var message_transmitter_v2_abi_default = [
85250
+ {
85251
+ inputs: [
85252
+ { internalType: "uint32", name: "_localDomain", type: "uint32" },
85253
+ { internalType: "uint32", name: "_version", type: "uint32" }
85254
+ ],
85255
+ stateMutability: "nonpayable",
85256
+ type: "constructor"
85257
+ },
85258
+ {
85259
+ anonymous: false,
85260
+ inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
85261
+ name: "AttesterDisabled",
85262
+ type: "event"
85263
+ },
85264
+ {
85265
+ anonymous: false,
85266
+ inputs: [{ indexed: true, internalType: "address", name: "attester", type: "address" }],
85267
+ name: "AttesterEnabled",
85268
+ type: "event"
85269
+ },
85270
+ {
85271
+ anonymous: false,
85272
+ inputs: [
85273
+ { indexed: true, internalType: "address", name: "previousAttesterManager", type: "address" },
85274
+ { indexed: true, internalType: "address", name: "newAttesterManager", type: "address" }
85275
+ ],
85276
+ name: "AttesterManagerUpdated",
85277
+ type: "event"
85278
+ },
85279
+ {
85280
+ anonymous: false,
85281
+ inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
85282
+ name: "Initialized",
85283
+ type: "event"
85284
+ },
85285
+ {
85286
+ anonymous: false,
85287
+ inputs: [{ indexed: false, internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
85288
+ name: "MaxMessageBodySizeUpdated",
85289
+ type: "event"
85290
+ },
85291
+ {
85292
+ anonymous: false,
85293
+ inputs: [
85294
+ { indexed: true, internalType: "address", name: "caller", type: "address" },
85295
+ { indexed: false, internalType: "uint32", name: "sourceDomain", type: "uint32" },
85296
+ { indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" },
85297
+ { indexed: false, internalType: "bytes32", name: "sender", type: "bytes32" },
85298
+ { indexed: true, internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
85299
+ { indexed: false, internalType: "bytes", name: "messageBody", type: "bytes" }
85300
+ ],
85301
+ name: "MessageReceived",
85302
+ type: "event"
85303
+ },
85304
+ {
85305
+ anonymous: false,
85306
+ inputs: [{ indexed: false, internalType: "bytes", name: "message", type: "bytes" }],
85307
+ name: "MessageSent",
85308
+ type: "event"
85309
+ },
85310
+ {
85311
+ anonymous: false,
85312
+ inputs: [
85313
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
85314
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
85315
+ ],
85316
+ name: "OwnershipTransferStarted",
85317
+ type: "event"
85318
+ },
85319
+ {
85320
+ anonymous: false,
85321
+ inputs: [
85322
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
85323
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
85324
+ ],
85325
+ name: "OwnershipTransferred",
85326
+ type: "event"
85327
+ },
85328
+ { anonymous: false, inputs: [], name: "Pause", type: "event" },
85329
+ {
85330
+ anonymous: false,
85331
+ inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }],
85332
+ name: "PauserChanged",
85333
+ type: "event"
85334
+ },
85335
+ {
85336
+ anonymous: false,
85337
+ inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
85338
+ name: "RescuerChanged",
85339
+ type: "event"
85340
+ },
85341
+ {
85342
+ anonymous: false,
85343
+ inputs: [
85344
+ { indexed: false, internalType: "uint256", name: "oldSignatureThreshold", type: "uint256" },
85345
+ { indexed: false, internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }
85346
+ ],
85347
+ name: "SignatureThresholdUpdated",
85348
+ type: "event"
85349
+ },
85350
+ { anonymous: false, inputs: [], name: "Unpause", type: "event" },
85351
+ {
85352
+ inputs: [],
85353
+ name: "NONCE_USED",
85354
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
85355
+ stateMutability: "view",
85356
+ type: "function"
85357
+ },
85358
+ { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
85359
+ {
85360
+ inputs: [],
85361
+ name: "attesterManager",
85362
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85363
+ stateMutability: "view",
85364
+ type: "function"
85365
+ },
85366
+ {
85367
+ inputs: [{ internalType: "address", name: "attester", type: "address" }],
85368
+ name: "disableAttester",
85369
+ outputs: [],
85370
+ stateMutability: "nonpayable",
85371
+ type: "function"
85372
+ },
85373
+ {
85374
+ inputs: [{ internalType: "address", name: "newAttester", type: "address" }],
85375
+ name: "enableAttester",
85376
+ outputs: [],
85377
+ stateMutability: "nonpayable",
85378
+ type: "function"
85379
+ },
85380
+ {
85381
+ inputs: [{ internalType: "uint256", name: "index", type: "uint256" }],
85382
+ name: "getEnabledAttester",
85383
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85384
+ stateMutability: "view",
85385
+ type: "function"
85386
+ },
85387
+ {
85388
+ inputs: [],
85389
+ name: "getNumEnabledAttesters",
85390
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
85391
+ stateMutability: "view",
85392
+ type: "function"
85393
+ },
85394
+ {
85395
+ inputs: [
85396
+ { internalType: "address", name: "owner_", type: "address" },
85397
+ { internalType: "address", name: "pauser_", type: "address" },
85398
+ { internalType: "address", name: "rescuer_", type: "address" },
85399
+ { internalType: "address", name: "attesterManager_", type: "address" },
85400
+ { internalType: "address[]", name: "attesters_", type: "address[]" },
85401
+ { internalType: "uint256", name: "signatureThreshold_", type: "uint256" },
85402
+ { internalType: "uint256", name: "maxMessageBodySize_", type: "uint256" }
85403
+ ],
85404
+ name: "initialize",
85405
+ outputs: [],
85406
+ stateMutability: "nonpayable",
85407
+ type: "function"
85408
+ },
85409
+ {
85410
+ inputs: [],
85411
+ name: "initializedVersion",
85412
+ outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
85413
+ stateMutability: "view",
85414
+ type: "function"
85415
+ },
85416
+ {
85417
+ inputs: [{ internalType: "address", name: "attester", type: "address" }],
85418
+ name: "isEnabledAttester",
85419
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85420
+ stateMutability: "view",
85421
+ type: "function"
85422
+ },
85423
+ {
85424
+ inputs: [],
85425
+ name: "localDomain",
85426
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
85427
+ stateMutability: "view",
85428
+ type: "function"
85429
+ },
85430
+ {
85431
+ inputs: [],
85432
+ name: "maxMessageBodySize",
85433
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
85434
+ stateMutability: "view",
85435
+ type: "function"
85436
+ },
85437
+ {
85438
+ inputs: [],
85439
+ name: "owner",
85440
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85441
+ stateMutability: "view",
85442
+ type: "function"
85443
+ },
85444
+ { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" },
85445
+ {
85446
+ inputs: [],
85447
+ name: "paused",
85448
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85449
+ stateMutability: "view",
85450
+ type: "function"
85451
+ },
85452
+ {
85453
+ inputs: [],
85454
+ name: "pauser",
85455
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85456
+ stateMutability: "view",
85457
+ type: "function"
85458
+ },
85459
+ {
85460
+ inputs: [],
85461
+ name: "pendingOwner",
85462
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85463
+ stateMutability: "view",
85464
+ type: "function"
85465
+ },
85466
+ {
85467
+ inputs: [
85468
+ { internalType: "bytes", name: "message", type: "bytes" },
85469
+ { internalType: "bytes", name: "attestation", type: "bytes" }
85470
+ ],
85471
+ name: "receiveMessage",
85472
+ outputs: [{ internalType: "bool", name: "success", type: "bool" }],
85473
+ stateMutability: "nonpayable",
85474
+ type: "function"
85475
+ },
85476
+ {
85477
+ inputs: [
85478
+ { internalType: "contract IERC20", name: "tokenContract", type: "address" },
85479
+ { internalType: "address", name: "to", type: "address" },
85480
+ { internalType: "uint256", name: "amount", type: "uint256" }
85481
+ ],
85482
+ name: "rescueERC20",
85483
+ outputs: [],
85484
+ stateMutability: "nonpayable",
85485
+ type: "function"
85486
+ },
85487
+ {
85488
+ inputs: [],
85489
+ name: "rescuer",
85490
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85491
+ stateMutability: "view",
85492
+ type: "function"
85493
+ },
85494
+ {
85495
+ inputs: [
85496
+ { internalType: "uint32", name: "destinationDomain", type: "uint32" },
85497
+ { internalType: "bytes32", name: "recipient", type: "bytes32" },
85498
+ { internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
85499
+ { internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
85500
+ { internalType: "bytes", name: "messageBody", type: "bytes" }
85501
+ ],
85502
+ name: "sendMessage",
85503
+ outputs: [],
85504
+ stateMutability: "nonpayable",
85505
+ type: "function"
85506
+ },
85507
+ {
85508
+ inputs: [{ internalType: "uint256", name: "newMaxMessageBodySize", type: "uint256" }],
85509
+ name: "setMaxMessageBodySize",
85510
+ outputs: [],
85511
+ stateMutability: "nonpayable",
85512
+ type: "function"
85513
+ },
85514
+ {
85515
+ inputs: [{ internalType: "uint256", name: "newSignatureThreshold", type: "uint256" }],
85516
+ name: "setSignatureThreshold",
85517
+ outputs: [],
85518
+ stateMutability: "nonpayable",
85519
+ type: "function"
85520
+ },
85521
+ {
85522
+ inputs: [],
85523
+ name: "signatureThreshold",
85524
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
85525
+ stateMutability: "view",
85526
+ type: "function"
85527
+ },
85528
+ {
85529
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
85530
+ name: "transferOwnership",
85531
+ outputs: [],
85532
+ stateMutability: "nonpayable",
85533
+ type: "function"
85534
+ },
85535
+ { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" },
85536
+ {
85537
+ inputs: [{ internalType: "address", name: "newAttesterManager", type: "address" }],
85538
+ name: "updateAttesterManager",
85539
+ outputs: [],
85540
+ stateMutability: "nonpayable",
85541
+ type: "function"
85542
+ },
85543
+ {
85544
+ inputs: [{ internalType: "address", name: "_newPauser", type: "address" }],
85545
+ name: "updatePauser",
85546
+ outputs: [],
85547
+ stateMutability: "nonpayable",
85548
+ type: "function"
85549
+ },
85550
+ {
85551
+ inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
85552
+ name: "updateRescuer",
85553
+ outputs: [],
85554
+ stateMutability: "nonpayable",
85555
+ type: "function"
85556
+ },
85557
+ {
85558
+ inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
85559
+ name: "usedNonces",
85560
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
85561
+ stateMutability: "view",
85562
+ type: "function"
85563
+ },
85564
+ {
85565
+ inputs: [],
85566
+ name: "version",
85567
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
85568
+ stateMutability: "view",
85569
+ type: "function"
85570
+ }
85571
+ ];
85572
+
85573
+ // src/integrations/cctp/token.messenger.v2.abi.ts
85574
+ var token_messenger_v2_abi_default = [
85575
+ {
85576
+ inputs: [
85577
+ { internalType: "address", name: "_messageTransmitter", type: "address" },
85578
+ { internalType: "uint32", name: "_messageBodyVersion", type: "uint32" }
85579
+ ],
85580
+ stateMutability: "nonpayable",
85581
+ type: "constructor"
85582
+ },
85583
+ {
85584
+ anonymous: false,
85585
+ inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
85586
+ name: "Denylisted",
85587
+ type: "event"
85588
+ },
85589
+ {
85590
+ anonymous: false,
85591
+ inputs: [
85592
+ { indexed: true, internalType: "address", name: "oldDenylister", type: "address" },
85593
+ { indexed: true, internalType: "address", name: "newDenylister", type: "address" }
85594
+ ],
85595
+ name: "DenylisterChanged",
85596
+ type: "event"
85597
+ },
85598
+ {
85599
+ anonymous: false,
85600
+ inputs: [
85601
+ { indexed: true, internalType: "address", name: "burnToken", type: "address" },
85602
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
85603
+ { indexed: true, internalType: "address", name: "depositor", type: "address" },
85604
+ { indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
85605
+ { indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
85606
+ { indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
85607
+ { indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
85608
+ { indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
85609
+ { indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
85610
+ { indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
85611
+ ],
85612
+ name: "DepositForBurn",
85613
+ type: "event"
85614
+ },
85615
+ {
85616
+ anonymous: false,
85617
+ inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
85618
+ name: "FeeRecipientSet",
85619
+ type: "event"
85620
+ },
85621
+ {
85622
+ anonymous: false,
85623
+ inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
85624
+ name: "Initialized",
85625
+ type: "event"
85626
+ },
85627
+ {
85628
+ anonymous: false,
85629
+ inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
85630
+ name: "LocalMinterAdded",
85631
+ type: "event"
85632
+ },
85633
+ {
85634
+ anonymous: false,
85635
+ inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
85636
+ name: "LocalMinterRemoved",
85637
+ type: "event"
85638
+ },
85639
+ {
85640
+ anonymous: false,
85641
+ inputs: [
85642
+ { indexed: true, internalType: "address", name: "mintRecipient", type: "address" },
85643
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
85644
+ { indexed: true, internalType: "address", name: "mintToken", type: "address" },
85645
+ { indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
85646
+ ],
85647
+ name: "MintAndWithdraw",
85648
+ type: "event"
85649
+ },
85650
+ {
85651
+ anonymous: false,
85652
+ inputs: [
85653
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
85654
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
85655
+ ],
85656
+ name: "OwnershipTransferStarted",
85657
+ type: "event"
85658
+ },
85659
+ {
85660
+ anonymous: false,
85661
+ inputs: [
85662
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
85663
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
85664
+ ],
85665
+ name: "OwnershipTransferred",
85666
+ type: "event"
85667
+ },
85668
+ {
85669
+ anonymous: false,
85670
+ inputs: [
85671
+ { indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
85672
+ { indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
85673
+ ],
85674
+ name: "RemoteTokenMessengerAdded",
85675
+ type: "event"
85676
+ },
85677
+ {
85678
+ anonymous: false,
85679
+ inputs: [
85680
+ { indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
85681
+ { indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
85682
+ ],
85683
+ name: "RemoteTokenMessengerRemoved",
85684
+ type: "event"
85685
+ },
85686
+ {
85687
+ anonymous: false,
85688
+ inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
85689
+ name: "RescuerChanged",
85690
+ type: "event"
85691
+ },
85692
+ {
85693
+ anonymous: false,
85694
+ inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
85695
+ name: "UnDenylisted",
85696
+ type: "event"
85697
+ },
85698
+ { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
85699
+ {
85700
+ inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
85701
+ name: "addLocalMinter",
85702
+ outputs: [],
85703
+ stateMutability: "nonpayable",
85704
+ type: "function"
85705
+ },
85706
+ {
85707
+ inputs: [
85708
+ { internalType: "uint32", name: "domain", type: "uint32" },
85709
+ { internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
85710
+ ],
85711
+ name: "addRemoteTokenMessenger",
85712
+ outputs: [],
85713
+ stateMutability: "nonpayable",
85714
+ type: "function"
85715
+ },
85716
+ {
85717
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
85718
+ name: "denylist",
85719
+ outputs: [],
85720
+ stateMutability: "nonpayable",
85721
+ type: "function"
85722
+ },
85723
+ {
85724
+ inputs: [],
85725
+ name: "denylister",
85726
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85727
+ stateMutability: "view",
85728
+ type: "function"
85729
+ },
85730
+ {
85731
+ inputs: [
85732
+ { internalType: "uint256", name: "amount", type: "uint256" },
85733
+ { internalType: "uint32", name: "destinationDomain", type: "uint32" },
85734
+ { internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
85735
+ { internalType: "address", name: "burnToken", type: "address" },
85736
+ { internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
85737
+ { internalType: "uint256", name: "maxFee", type: "uint256" },
85738
+ { internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
85739
+ ],
85740
+ name: "depositForBurn",
85741
+ outputs: [],
85742
+ stateMutability: "nonpayable",
85743
+ type: "function"
85744
+ },
85745
+ {
85746
+ inputs: [
85747
+ { internalType: "uint256", name: "amount", type: "uint256" },
85748
+ { internalType: "uint32", name: "destinationDomain", type: "uint32" },
85749
+ { internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
85750
+ { internalType: "address", name: "burnToken", type: "address" },
85751
+ { internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
85752
+ { internalType: "uint256", name: "maxFee", type: "uint256" },
85753
+ { internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
85754
+ { internalType: "bytes", name: "hookData", type: "bytes" }
85755
+ ],
85756
+ name: "depositForBurnWithHook",
85757
+ outputs: [],
85758
+ stateMutability: "nonpayable",
85759
+ type: "function"
85760
+ },
85761
+ {
85762
+ inputs: [],
85763
+ name: "feeRecipient",
85764
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85765
+ stateMutability: "view",
85766
+ type: "function"
85767
+ },
85768
+ {
85769
+ inputs: [
85770
+ { internalType: "uint32", name: "remoteDomain", type: "uint32" },
85771
+ { internalType: "bytes32", name: "sender", type: "bytes32" },
85772
+ { internalType: "uint32", name: "", type: "uint32" },
85773
+ { internalType: "bytes", name: "messageBody", type: "bytes" }
85774
+ ],
85775
+ name: "handleReceiveFinalizedMessage",
85776
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85777
+ stateMutability: "nonpayable",
85778
+ type: "function"
85779
+ },
85780
+ {
85781
+ inputs: [
85782
+ { internalType: "uint32", name: "remoteDomain", type: "uint32" },
85783
+ { internalType: "bytes32", name: "sender", type: "bytes32" },
85784
+ { internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
85785
+ { internalType: "bytes", name: "messageBody", type: "bytes" }
85786
+ ],
85787
+ name: "handleReceiveUnfinalizedMessage",
85788
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85789
+ stateMutability: "nonpayable",
85790
+ type: "function"
85791
+ },
85792
+ {
85793
+ inputs: [
85794
+ { internalType: "address", name: "owner_", type: "address" },
85795
+ { internalType: "address", name: "rescuer_", type: "address" },
85796
+ { internalType: "address", name: "feeRecipient_", type: "address" },
85797
+ { internalType: "address", name: "denylister_", type: "address" },
85798
+ { internalType: "address", name: "tokenMinter_", type: "address" },
85799
+ { internalType: "uint32[]", name: "remoteDomains_", type: "uint32[]" },
85800
+ { internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
85801
+ ],
85802
+ name: "initialize",
85803
+ outputs: [],
85804
+ stateMutability: "nonpayable",
85805
+ type: "function"
85806
+ },
85807
+ {
85808
+ inputs: [],
85809
+ name: "initializedVersion",
85810
+ outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
85811
+ stateMutability: "view",
85812
+ type: "function"
85813
+ },
85814
+ {
85815
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
85816
+ name: "isDenylisted",
85817
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85818
+ stateMutability: "view",
85819
+ type: "function"
85820
+ },
85821
+ {
85822
+ inputs: [],
85823
+ name: "localMessageTransmitter",
85824
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85825
+ stateMutability: "view",
85826
+ type: "function"
85827
+ },
85828
+ {
85829
+ inputs: [],
85830
+ name: "localMinter",
85831
+ outputs: [{ internalType: "contract ITokenMinterV2", name: "", type: "address" }],
85832
+ stateMutability: "view",
85833
+ type: "function"
85834
+ },
85835
+ {
85836
+ inputs: [],
85837
+ name: "messageBodyVersion",
85838
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
85839
+ stateMutability: "view",
85840
+ type: "function"
85841
+ },
85842
+ {
85843
+ inputs: [],
85844
+ name: "owner",
85845
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85846
+ stateMutability: "view",
85847
+ type: "function"
85848
+ },
85849
+ {
85850
+ inputs: [],
85851
+ name: "pendingOwner",
85852
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85853
+ stateMutability: "view",
85854
+ type: "function"
85855
+ },
85856
+ {
85857
+ inputs: [{ internalType: "uint32", name: "", type: "uint32" }],
85858
+ name: "remoteTokenMessengers",
85859
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
85860
+ stateMutability: "view",
85861
+ type: "function"
85862
+ },
85863
+ { inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
85864
+ {
85865
+ inputs: [{ internalType: "uint32", name: "domain", type: "uint32" }],
85866
+ name: "removeRemoteTokenMessenger",
85867
+ outputs: [],
85868
+ stateMutability: "nonpayable",
85869
+ type: "function"
85870
+ },
85871
+ {
85872
+ inputs: [
85873
+ { internalType: "contract IERC20", name: "tokenContract", type: "address" },
85874
+ { internalType: "address", name: "to", type: "address" },
85875
+ { internalType: "uint256", name: "amount", type: "uint256" }
85876
+ ],
85877
+ name: "rescueERC20",
85878
+ outputs: [],
85879
+ stateMutability: "nonpayable",
85880
+ type: "function"
85881
+ },
85882
+ {
85883
+ inputs: [],
85884
+ name: "rescuer",
85885
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85886
+ stateMutability: "view",
85887
+ type: "function"
85888
+ },
85889
+ {
85890
+ inputs: [{ internalType: "address", name: "_feeRecipient", type: "address" }],
85891
+ name: "setFeeRecipient",
85892
+ outputs: [],
85893
+ stateMutability: "nonpayable",
85894
+ type: "function"
85895
+ },
85896
+ {
85897
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
85898
+ name: "transferOwnership",
85899
+ outputs: [],
85900
+ stateMutability: "nonpayable",
85901
+ type: "function"
85902
+ },
85903
+ {
85904
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
85905
+ name: "unDenylist",
85906
+ outputs: [],
85907
+ stateMutability: "nonpayable",
85908
+ type: "function"
85909
+ },
85910
+ {
85911
+ inputs: [{ internalType: "address", name: "newDenylister", type: "address" }],
85912
+ name: "updateDenylister",
85913
+ outputs: [],
85914
+ stateMutability: "nonpayable",
85915
+ type: "function"
85916
+ },
85917
+ {
85918
+ inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
85919
+ name: "updateRescuer",
85920
+ outputs: [],
85921
+ stateMutability: "nonpayable",
85922
+ type: "function"
85923
+ }
85924
+ ];
85925
+
85926
+ // src/integrations/cctp/cctp.v2.ts
85927
+ var messageTransmitterAbi = new exports_ethers.utils.Interface(message_transmitter_v2_abi_default);
85928
+ var tokenMessengerAbi = new exports_ethers.utils.Interface(token_messenger_v2_abi_default);
85929
+ var DepositForBurnCalldata = ({
85930
+ amount,
85931
+ destinationDomain,
85932
+ mintRecipient,
85933
+ burnToken,
85934
+ destinationCaller,
85935
+ maxFee,
85936
+ minFinalityThreshold
85937
+ }) => {
85938
+ return tokenMessengerAbi.encodeFunctionData("depositForBurn", [
85939
+ amount,
85940
+ destinationDomain,
85941
+ mintRecipient,
85942
+ burnToken,
85943
+ destinationCaller,
85944
+ maxFee,
85945
+ minFinalityThreshold
85946
+ ]);
85947
+ };
85948
+ var depositForBurnToCctpTrx = ({
85949
+ args,
85950
+ tokenMessengerAddress
85951
+ }) => {
85952
+ return createCall({
85953
+ operation: 0,
85954
+ to: tokenMessengerAddress,
85955
+ value: 0n,
85956
+ data: DepositForBurnCalldata(args)
85957
+ });
85958
+ };
85959
+ var ReceiveMessageCalldata = ({ message, attestation }) => {
85960
+ return messageTransmitterAbi.encodeFunctionData("receiveMessage", [message, attestation]);
85961
+ };
85962
+ var receiveMessageFromCctpTrx = ({
85963
+ args,
85964
+ messageTransmitterAddress
85965
+ }) => {
85966
+ return createCall({
85967
+ operation: 0,
85968
+ to: messageTransmitterAddress,
85969
+ value: 0n,
85970
+ data: ReceiveMessageCalldata(args)
85971
+ });
85972
+ };
85973
+ // src/integrations/erc721/erc721.ts
85974
+ var erc721Interface = new exports_ethers.utils.Interface(erc721_abi_default2);
85975
+ var ApproveErc721CallData = ({ tokenId, to }) => {
85976
+ return erc721Interface.encodeFunctionData("approve", [to, tokenId]);
85977
+ };
85978
+ var approveErc721Trx = ({ tokenId, to, token }) => {
85979
+ return createCall({
85980
+ to: token,
85981
+ data: ApproveErc721CallData({ tokenId, to }),
85982
+ value: 0n,
85983
+ operation: 0
85984
+ });
85985
+ };
85986
+ var ApproveAllErc721CallData = ({ operator, approved }) => {
85987
+ return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
85988
+ };
85989
+ var approveAllErc721Trx = ({ operator, approved, token }) => {
85990
+ return createCall({
85991
+ to: token,
85992
+ data: ApproveAllErc721CallData({ operator, approved }),
85993
+ value: 0n,
85994
+ operation: 0
85995
+ });
85996
+ };
85997
+ var TransferFromErc721CallData = ({ from: from2, to, tokenId }) => {
85998
+ return erc721Interface.encodeFunctionData("transferFrom", [from2, to, tokenId]);
85999
+ };
86000
+ var transferFromErc721Trx = ({ from: from2, to, tokenId, token }) => {
86001
+ return createCall({
86002
+ to: token,
86003
+ data: TransferFromErc721CallData({ from: from2, to, tokenId }),
86004
+ value: 0n,
86005
+ operation: 0
86006
+ });
86007
+ };
86008
+ var SafeTransferFromWithDataErc721CallData = ({
86009
+ from: from2,
86010
+ to,
86011
+ tokenId,
86012
+ data
86013
+ }) => {
86014
+ return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId, data]);
86015
+ };
86016
+ var safeTransferFromWithDataErc721Trx = ({
86017
+ from: from2,
86018
+ to,
86019
+ tokenId,
86020
+ data,
86021
+ token
86022
+ }) => {
86023
+ return createCall({
86024
+ to: token,
86025
+ data: SafeTransferFromWithDataErc721CallData({ from: from2, to, tokenId, data }),
86026
+ value: 0n,
86027
+ operation: 0
86028
+ });
86029
+ };
86030
+ var SafeTransferFromErc721CallData = ({
86031
+ from: from2,
86032
+ to,
86033
+ tokenId
86034
+ }) => {
86035
+ return erc721Interface.encodeFunctionData("safeTransferFrom", [from2, to, tokenId]);
86036
+ };
86037
+ var safeTransferFromErc721Trx = ({
86038
+ from: from2,
86039
+ to,
86040
+ tokenId,
86041
+ token
86042
+ }) => {
86043
+ return createCall({
86044
+ to: token,
86045
+ data: SafeTransferFromErc721CallData({ from: from2, to, tokenId }),
86046
+ value: 0n,
86047
+ operation: 0
86048
+ });
86049
+ };
86050
+ var SetApprovalForAllErc721CallData = ({
86051
+ operator,
86052
+ approved
86053
+ }) => {
86054
+ return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
86055
+ };
86056
+ var setApprovalForAllErc721Trx = ({
86057
+ operator,
86058
+ approved,
86059
+ token
86060
+ }) => {
86061
+ return createCall({
86062
+ to: token,
86063
+ data: SetApprovalForAllErc721CallData({ operator, approved }),
86064
+ value: 0n,
86065
+ operation: 0
86066
+ });
86067
+ };
86068
+ // src/integrations/erc721/erc721.abi.ts
86069
+ var erc721_abi_default2 = [
86070
+ {
86071
+ name: "Approval",
86072
+ type: "event",
86073
+ inputs: [
86074
+ {
86075
+ name: "owner",
86076
+ type: "address",
86077
+ indexed: true,
86078
+ internalType: "address"
86079
+ },
86080
+ {
86081
+ name: "approved",
86082
+ type: "address",
86083
+ indexed: true,
86084
+ internalType: "address"
86085
+ },
86086
+ {
86087
+ name: "tokenId",
86088
+ type: "uint256",
86089
+ indexed: true,
86090
+ internalType: "uint256"
86091
+ }
86092
+ ],
86093
+ anonymous: false
86094
+ },
86095
+ {
86096
+ name: "ApprovalForAll",
86097
+ type: "event",
86098
+ inputs: [
86099
+ {
86100
+ name: "owner",
86101
+ type: "address",
86102
+ indexed: true,
86103
+ internalType: "address"
86104
+ },
86105
+ {
86106
+ name: "operator",
86107
+ type: "address",
86108
+ indexed: true,
86109
+ internalType: "address"
86110
+ },
86111
+ {
86112
+ name: "approved",
86113
+ type: "bool",
86114
+ indexed: false,
86115
+ internalType: "bool"
86116
+ }
86117
+ ],
86118
+ anonymous: false
86119
+ },
86120
+ {
86121
+ name: "Transfer",
86122
+ type: "event",
86123
+ inputs: [
86124
+ {
86125
+ name: "from",
86126
+ type: "address",
86127
+ indexed: true,
86128
+ internalType: "address"
86129
+ },
86130
+ {
86131
+ name: "to",
86132
+ type: "address",
86133
+ indexed: true,
86134
+ internalType: "address"
86135
+ },
86136
+ {
86137
+ name: "tokenId",
86138
+ type: "uint256",
86139
+ indexed: true,
86140
+ internalType: "uint256"
86141
+ }
86142
+ ],
86143
+ anonymous: false
86144
+ },
86145
+ {
86146
+ name: "approve",
86147
+ type: "function",
86148
+ inputs: [
86149
+ { name: "to", type: "address", internalType: "address" },
86150
+ { name: "tokenId", type: "uint256", internalType: "uint256" }
86151
+ ],
86152
+ outputs: [],
86153
+ stateMutability: "nonpayable"
86154
+ },
86155
+ {
86156
+ name: "balanceOf",
86157
+ type: "function",
86158
+ inputs: [{ name: "owner", type: "address", internalType: "address" }],
86159
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
86160
+ stateMutability: "view"
86161
+ },
86162
+ {
86163
+ name: "getApproved",
86164
+ type: "function",
86165
+ inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
86166
+ outputs: [{ name: "", type: "address", internalType: "address" }],
86167
+ stateMutability: "view"
86168
+ },
86169
+ {
86170
+ name: "isApprovedForAll",
86171
+ type: "function",
86172
+ inputs: [
86173
+ { name: "owner", type: "address", internalType: "address" },
86174
+ { name: "operator", type: "address", internalType: "address" }
86175
+ ],
86176
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
86177
+ stateMutability: "view"
86178
+ },
86179
+ {
86180
+ name: "name",
86181
+ type: "function",
86182
+ inputs: [],
86183
+ outputs: [{ name: "", type: "string", internalType: "string" }],
86184
+ stateMutability: "view"
86185
+ },
86186
+ {
86187
+ name: "ownerOf",
86188
+ type: "function",
86189
+ inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
86190
+ outputs: [{ name: "", type: "address", internalType: "address" }],
86191
+ stateMutability: "view"
86192
+ },
86193
+ {
86194
+ name: "safeTransferFrom",
86195
+ type: "function",
86196
+ inputs: [
86197
+ { name: "from", type: "address", internalType: "address" },
86198
+ { name: "to", type: "address", internalType: "address" },
86199
+ { name: "tokenId", type: "uint256", internalType: "uint256" }
86200
+ ],
86201
+ outputs: [],
86202
+ stateMutability: "nonpayable"
86203
+ },
86204
+ {
86205
+ name: "safeTransferFrom",
86206
+ type: "function",
86207
+ inputs: [
86208
+ { name: "from", type: "address", internalType: "address" },
86209
+ { name: "to", type: "address", internalType: "address" },
86210
+ { name: "tokenId", type: "uint256", internalType: "uint256" },
86211
+ { name: "_data", type: "bytes", internalType: "bytes" }
86212
+ ],
86213
+ outputs: [],
86214
+ stateMutability: "nonpayable"
86215
+ },
86216
+ {
86217
+ name: "setApprovalForAll",
86218
+ type: "function",
86219
+ inputs: [
86220
+ {
86221
+ name: "operator",
86222
+ type: "address",
86223
+ internalType: "address"
86224
+ },
86225
+ { name: "approved", type: "bool", internalType: "bool" }
86226
+ ],
86227
+ outputs: [],
86228
+ stateMutability: "nonpayable"
86229
+ },
86230
+ {
86231
+ name: "supportsInterface",
86232
+ type: "function",
86233
+ inputs: [
86234
+ {
86235
+ name: "interfaceId",
86236
+ type: "bytes4",
86237
+ internalType: "bytes4"
86238
+ }
86239
+ ],
86240
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
86241
+ stateMutability: "view"
86242
+ },
86243
+ {
86244
+ name: "symbol",
86245
+ type: "function",
86246
+ inputs: [],
86247
+ outputs: [{ name: "", type: "string", internalType: "string" }],
86248
+ stateMutability: "view"
86249
+ },
86250
+ {
86251
+ name: "tokenURI",
86252
+ type: "function",
86253
+ inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
86254
+ outputs: [{ name: "", type: "string", internalType: "string" }],
86255
+ stateMutability: "view"
86256
+ },
86257
+ {
86258
+ name: "transferFrom",
86259
+ type: "function",
86260
+ inputs: [
86261
+ { name: "from", type: "address", internalType: "address" },
86262
+ { name: "to", type: "address", internalType: "address" },
86263
+ { name: "tokenId", type: "uint256", internalType: "uint256" }
86264
+ ],
86265
+ outputs: [],
86266
+ stateMutability: "nonpayable"
86267
+ }
86268
+ ];
83056
86269
  // src/lib/utils.ts
83057
86270
  var executeTrx = ({
83058
86271
  client,
@@ -83147,4 +86360,4 @@ var simulateOrThrow = async (env2) => {
83147
86360
  };
83148
86361
  };
83149
86362
 
83150
- //# debugId=31322C94F611E94764756E2164756E21
86363
+ //# debugId=19A54010AD1CF9C664756E2164756E21