@stargatefinance/stg-evm-sdk-v2 1.2.7 → 1.3.1

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 (159) hide show
  1. package/artifacts/src/StargateOFT.sol/StargateOFT.json +2 -2
  2. package/artifacts/src/StargateOFTAlt.sol/StargateOFTAlt.json +1584 -0
  3. package/artifacts/src/StargatePool.sol/StargatePool.json +2 -2
  4. package/artifacts/src/StargatePoolMigratable.sol/StargatePoolMigratable.json +2 -2
  5. package/artifacts/src/StargatePoolNative.sol/StargatePoolNative.json +2 -2
  6. package/artifacts/src/eurc/StargateOFTEURC.sol/StargateOFTEURC.json +2 -2
  7. package/artifacts/src/eurc/StargatePoolEURC.sol/StargatePoolEURC.json +2 -2
  8. package/artifacts/src/interfaces/tip20/ITIP20.sol/ITIP20.json +1065 -0
  9. package/artifacts/src/interfaces/tip20/ITIP20RolesAuth.sol/ITIP20RolesAuth.json +139 -0
  10. package/artifacts/src/messaging/CreditMessagingAlt.sol/CreditMessagingAlt.json +1142 -0
  11. package/artifacts/src/messaging/TokenMessaging.sol/TokenMessaging.json +2 -2
  12. package/artifacts/src/messaging/TokenMessagingAlt.sol/TokenMessagingAlt.json +1907 -0
  13. package/artifacts/src/mocks/tip20/TIP20.sol/TIP20.json +1253 -0
  14. package/artifacts/src/mocks/tip20/TIP403Registry.sol/TIP403Registry.json +335 -0
  15. package/artifacts/src/mocks/tip20/abstracts/TIP20RolesAuth.sol/TIP20RolesAuth.json +163 -0
  16. package/artifacts/src/mocks/tip20/interfaces/ITIP403Registry.sol/ITIP403Registry.json +335 -0
  17. package/artifacts/src/peripheral/Treasurer.sol/Treasurer.json +2 -2
  18. package/artifacts/src/tip20/StargateOFTTIP20.sol/StargateOFTTIP20.json +1595 -0
  19. package/artifacts/src/usdc/StargateOFTUSDC.sol/StargateOFTUSDC.json +2 -2
  20. package/artifacts/src/usdc/StargatePoolUSDC.sol/StargatePoolUSDC.json +2 -2
  21. package/deployments/horizen-mainnet/CreditMessaging.json +1501 -0
  22. package/deployments/horizen-mainnet/FeeLibV1USDC.json +611 -0
  23. package/deployments/horizen-mainnet/OFTWrapper.json +1506 -0
  24. package/deployments/horizen-mainnet/StargateOFTUSDC.json +1978 -0
  25. package/deployments/horizen-mainnet/TokenMessaging.json +2475 -0
  26. package/deployments/horizen-mainnet/Treasurer.json +450 -0
  27. package/deployments/moderato-testnet/CreditMessaging.json +1592 -0
  28. package/deployments/moderato-testnet/FeeLibV1EURC.json +625 -0
  29. package/deployments/moderato-testnet/FeeLibV1USDC.json +625 -0
  30. package/deployments/moderato-testnet/OFTWrapper.json +1520 -0
  31. package/deployments/moderato-testnet/StargateOFTEURC.json +2023 -0
  32. package/deployments/moderato-testnet/StargateOFTUSDC.json +2023 -0
  33. package/deployments/moderato-testnet/TokenMessaging.json +2484 -0
  34. package/deployments/moderato-testnet/Treasurer.json +464 -0
  35. package/deployments/tempo-mainnet/CreditMessaging.json +1592 -0
  36. package/deployments/tempo-mainnet/FeeLibV1EURC.json +625 -0
  37. package/deployments/tempo-mainnet/FeeLibV1USDC.json +625 -0
  38. package/deployments/tempo-mainnet/OFTWrapper.json +1520 -0
  39. package/deployments/tempo-mainnet/StargateOFTEURC.json +2036 -0
  40. package/deployments/tempo-mainnet/StargateOFTUSDC.json +2036 -0
  41. package/deployments/tempo-mainnet/TokenMessaging.json +2481 -0
  42. package/deployments/tempo-mainnet/Treasurer.json +464 -0
  43. package/dist/deployed/CreditMessaging.cjs +10 -0
  44. package/dist/deployed/CreditMessaging.cjs.map +1 -1
  45. package/dist/deployed/CreditMessaging.mjs +10 -0
  46. package/dist/deployed/CreditMessaging.mjs.map +1 -1
  47. package/dist/deployed/FeeLibV1EURC.cjs +9 -3
  48. package/dist/deployed/FeeLibV1EURC.cjs.map +1 -1
  49. package/dist/deployed/FeeLibV1EURC.mjs +9 -3
  50. package/dist/deployed/FeeLibV1EURC.mjs.map +1 -1
  51. package/dist/deployed/FeeLibV1USDC.cjs +9 -0
  52. package/dist/deployed/FeeLibV1USDC.cjs.map +1 -1
  53. package/dist/deployed/FeeLibV1USDC.mjs +9 -0
  54. package/dist/deployed/FeeLibV1USDC.mjs.map +1 -1
  55. package/dist/deployed/OFTWrapper.cjs +9 -0
  56. package/dist/deployed/OFTWrapper.cjs.map +1 -1
  57. package/dist/deployed/OFTWrapper.mjs +9 -0
  58. package/dist/deployed/OFTWrapper.mjs.map +1 -1
  59. package/dist/deployed/StargateOFTEURC.cjs +11 -3
  60. package/dist/deployed/StargateOFTEURC.cjs.map +1 -1
  61. package/dist/deployed/StargateOFTEURC.mjs +11 -3
  62. package/dist/deployed/StargateOFTEURC.mjs.map +1 -1
  63. package/dist/deployed/StargateOFTUSDC-gNoY8tx0.d.mts +4995 -0
  64. package/dist/deployed/StargateOFTUSDC-gNoY8tx0.d.ts +4995 -0
  65. package/dist/deployed/StargateOFTUSDC.cjs +11 -0
  66. package/dist/deployed/StargateOFTUSDC.cjs.map +1 -1
  67. package/dist/deployed/StargateOFTUSDC.d.mts +1 -0
  68. package/dist/deployed/StargateOFTUSDC.d.ts +1 -0
  69. package/dist/deployed/StargateOFTUSDC.mjs +11 -0
  70. package/dist/deployed/StargateOFTUSDC.mjs.map +1 -1
  71. package/dist/deployed/StargateOFTUSDT-n5r6jpXt.d.mts +2492 -0
  72. package/dist/deployed/StargateOFTUSDT-n5r6jpXt.d.ts +2492 -0
  73. package/dist/deployed/StargateOFTUSDT.d.mts +1 -0
  74. package/dist/deployed/StargateOFTUSDT.d.ts +1 -0
  75. package/dist/deployed/StargatePoolETH-lOsiDbJC.d.mts +1530 -0
  76. package/dist/deployed/StargatePoolETH-lOsiDbJC.d.ts +1530 -0
  77. package/dist/deployed/StargatePoolETH.d.mts +1 -0
  78. package/dist/deployed/StargatePoolETH.d.ts +1 -0
  79. package/dist/deployed/StargatePoolEURC-D7GGCfr7.d.mts +1582 -0
  80. package/dist/deployed/StargatePoolEURC-D7GGCfr7.d.ts +1582 -0
  81. package/dist/deployed/StargatePoolEURC.d.mts +1 -0
  82. package/dist/deployed/StargatePoolEURC.d.ts +1 -0
  83. package/dist/deployed/StargatePoolMETIS-CQrZSdA7.d.mts +1519 -0
  84. package/dist/deployed/StargatePoolMETIS-CQrZSdA7.d.ts +1519 -0
  85. package/dist/deployed/StargatePoolMETIS.d.mts +1 -0
  86. package/dist/deployed/StargatePoolMETIS.d.ts +1 -0
  87. package/dist/deployed/StargatePoolNative-BKokoo5S.d.mts +1568 -0
  88. package/dist/deployed/StargatePoolNative-BKokoo5S.d.ts +1568 -0
  89. package/dist/deployed/StargatePoolNative.d.mts +1 -0
  90. package/dist/deployed/StargatePoolNative.d.ts +1 -0
  91. package/dist/deployed/StargatePoolUSDC-gP7LrAIv.d.mts +1632 -0
  92. package/dist/deployed/StargatePoolUSDC-gP7LrAIv.d.ts +1632 -0
  93. package/dist/deployed/StargatePoolUSDC.d.mts +1 -0
  94. package/dist/deployed/StargatePoolUSDC.d.ts +1 -0
  95. package/dist/deployed/StargatePoolUSDT-DkOqtwrh.d.mts +1627 -0
  96. package/dist/deployed/StargatePoolUSDT-DkOqtwrh.d.ts +1627 -0
  97. package/dist/deployed/StargatePoolUSDT.d.mts +1 -0
  98. package/dist/deployed/StargatePoolUSDT.d.ts +1 -0
  99. package/dist/deployed/StargatePoolmETH-C_R3a4-e.d.mts +1519 -0
  100. package/dist/deployed/StargatePoolmETH-C_R3a4-e.d.ts +1519 -0
  101. package/dist/deployed/StargatePoolmETH.d.mts +1 -0
  102. package/dist/deployed/StargatePoolmETH.d.ts +1 -0
  103. package/dist/deployed/StargateStaking-BL9axih_.d.mts +459 -0
  104. package/dist/deployed/StargateStaking-BL9axih_.d.ts +459 -0
  105. package/dist/deployed/StargateStaking.d.mts +1 -0
  106. package/dist/deployed/StargateStaking.d.ts +1 -0
  107. package/dist/deployed/TokenMessaging-BfnD6v53.d.mts +3174 -0
  108. package/dist/deployed/TokenMessaging-BfnD6v53.d.ts +3174 -0
  109. package/dist/deployed/TokenMessaging.cjs +10 -0
  110. package/dist/deployed/TokenMessaging.cjs.map +1 -1
  111. package/dist/deployed/TokenMessaging.d.mts +1 -0
  112. package/dist/deployed/TokenMessaging.d.ts +1 -0
  113. package/dist/deployed/TokenMessaging.mjs +10 -0
  114. package/dist/deployed/TokenMessaging.mjs.map +1 -1
  115. package/dist/deployed/Treasurer-DlA2Gv8f.d.mts +450 -0
  116. package/dist/deployed/Treasurer-DlA2Gv8f.d.ts +450 -0
  117. package/dist/deployed/Treasurer.cjs +9 -0
  118. package/dist/deployed/Treasurer.cjs.map +1 -1
  119. package/dist/deployed/Treasurer.d.mts +1 -0
  120. package/dist/deployed/Treasurer.d.ts +1 -0
  121. package/dist/deployed/Treasurer.mjs +9 -0
  122. package/dist/deployed/Treasurer.mjs.map +1 -1
  123. package/dist/deployed/USDCImpl-DN89Rpdz.d.mts +1124 -0
  124. package/dist/deployed/USDCImpl-DN89Rpdz.d.ts +1124 -0
  125. package/dist/deployed/USDCImpl.d.mts +1 -0
  126. package/dist/deployed/USDCImpl.d.ts +1 -0
  127. package/dist/deployed/USDCProxy-BsrYumZv.d.mts +141 -0
  128. package/dist/deployed/USDCProxy-BsrYumZv.d.ts +141 -0
  129. package/dist/deployed/USDCProxy.d.mts +1 -0
  130. package/dist/deployed/USDCProxy.d.ts +1 -0
  131. package/dist/deployed/USDCSignatureLib-W2-GjRxG.d.mts +73 -0
  132. package/dist/deployed/USDCSignatureLib-W2-GjRxG.d.ts +73 -0
  133. package/dist/deployed/USDCSignatureLib.d.mts +1 -0
  134. package/dist/deployed/USDCSignatureLib.d.ts +1 -0
  135. package/dist/deployed/USDT-DVAQjDdu.d.mts +690 -0
  136. package/dist/deployed/USDT-DVAQjDdu.d.ts +690 -0
  137. package/dist/deployed/USDT.d.mts +1 -0
  138. package/dist/deployed/USDT.d.ts +1 -0
  139. package/dist/deployed/contracts-CwDH7mzf.d.mts +68 -0
  140. package/dist/deployed/contracts-Yg5JhOts.d.ts +68 -0
  141. package/dist/deployed/contracts.cjs +119 -47
  142. package/dist/deployed/contracts.cjs.map +1 -1
  143. package/dist/deployed/contracts.d.mts +31 -0
  144. package/dist/deployed/contracts.d.ts +31 -0
  145. package/dist/deployed/contracts.mjs +119 -47
  146. package/dist/deployed/contracts.mjs.map +1 -1
  147. package/dist/deployed/index.cjs +119 -47
  148. package/dist/deployed/index.cjs.map +1 -1
  149. package/dist/deployed/index.d.mts +36 -0
  150. package/dist/deployed/index.d.ts +36 -0
  151. package/dist/deployed/index.mjs +119 -47
  152. package/dist/deployed/index.mjs.map +1 -1
  153. package/dist/index.cjs +43 -2
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.d.mts +49 -2
  156. package/dist/index.d.ts +49 -2
  157. package/dist/index.mjs +43 -2
  158. package/dist/index.mjs.map +1 -1
  159. package/package.json +2 -2
@@ -4,18 +4,26 @@
4
4
  var addresses = {
5
5
  "arbsep-testnet": "0x29eE6138DD4C9815f46D34a4A1ed48F46758A402",
6
6
  "bera-mainnet": "0x28BEc7E30E6faee657a03e19Bf1128AaD7632A00",
7
- "plumephoenix-mainnet": "0x5e2519045B5e38863c879c694fb0811dba333a60"
7
+ "moderato-testnet": "0x3d7882273E5410E981a470924fBA5DF3EA0dc14a",
8
+ "plumephoenix-mainnet": "0x5e2519045B5e38863c879c694fb0811dba333a60",
9
+ "tempo-mainnet": "0x7753Dc8d4bd48Db599Da21E08b1Ab1D6FDFfdC71"
8
10
  };
9
11
  var transactionHashes = {
10
12
  "arbsep-testnet": "0x5036b62614736ecad02b339fe51a1bfdc3495de8e6b4446e0cb11bb9024338f2",
11
13
  "bera-mainnet": "0x61a684bbcde0927af8aac1b12338ac2d397a848c25ce57096eb9037e99d46f92",
12
- "plumephoenix-mainnet": "0x2af0e44104890b51a0aaf53a305cb0b5f2f7bf5a316659e8b6c3e80106c6d716"
14
+ "moderato-testnet": "0x1c4e1dd5b84b1e928e2c334a7051874676cd461ae431f23b405faefd00deb5a1",
15
+ "plumephoenix-mainnet": "0x2af0e44104890b51a0aaf53a305cb0b5f2f7bf5a316659e8b6c3e80106c6d716",
16
+ "tempo-mainnet": "0x9871c5246f3c6c65f224c505e39d259584fc2c4a1fd91b11e84d772c687bfe09"
13
17
  };
14
18
  var abi0 = [{ "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint8", "name": "_sharedDecimals", "type": "uint8" }, { "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidLocalDecimals", "type": "error" }, { "inputs": [], "name": "Path_AlreadyHasCredit", "type": "error" }, { "inputs": [], "name": "Path_InsufficientCredit", "type": "error" }, { "inputs": [], "name": "Path_UnlimitedCredit", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }], "name": "SlippageExceeded", "type": "error" }, { "inputs": [], "name": "Stargate_InsufficientFare", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidAmount", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidPath", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidTokenDecimals", "type": "error" }, { "inputs": [], "name": "Stargate_LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "Stargate_OutflowFailed", "type": "error" }, { "inputs": [], "name": "Stargate_Paused", "type": "error" }, { "inputs": [], "name": "Stargate_RecoverTokenUnsupported", "type": "error" }, { "inputs": [], "name": "Stargate_ReentrantCall", "type": "error" }, { "inputs": [], "name": "Stargate_SlippageTooHigh", "type": "error" }, { "inputs": [], "name": "Stargate_Unauthorized", "type": "error" }, { "inputs": [], "name": "Stargate_UnreceivedTokenNotFound", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "indexed": false, "internalType": "struct StargateBase.AddressConfig", "name": "config", "type": "tuple" }], "name": "AddressConfigSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "bool", "name": "oft", "type": "bool" }], "name": "OFTPathSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "toAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "fromAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "paused", "type": "bool" }], "name": "PauseSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "PlannerFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint8", "name": "index", "type": "uint8" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "composeMsg", "type": "bytes" }], "name": "UnreceivedTokenCached", "type": "event" }, { "inputs": [{ "internalType": "uint256", "name": "_amountLD", "type": "uint256" }], "name": "addTreasuryFee", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "approvalRequired", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAddressConfig", "outputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "localEid", "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oftVersion", "outputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }, { "internalType": "uint64", "name": "version", "type": "uint64" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "paths", "outputs": [{ "internalType": "uint64", "name": "credit", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "plannerFee", "outputs": [{ "internalType": "uint256", "name": "available", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }], "name": "quoteOFT", "outputs": [{ "components": [{ "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "uint256", "name": "maxAmountLD", "type": "uint256" }], "internalType": "struct OFTLimit", "name": "limit", "type": "tuple" }, { "components": [{ "internalType": "int256", "name": "feeAmountLD", "type": "int256" }, { "internalType": "string", "name": "description", "type": "string" }], "internalType": "struct OFTFeeDetail[]", "name": "oftFeeDetails", "type": "tuple[]" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "receipt", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }], "name": "quoteSend", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "_credits", "type": "tuple[]" }], "name": "receiveCredits", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_seatNumber", "type": "uint8" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "receiveTokenBus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "receiveTokenTaxi", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "recoverToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_index", "type": "uint8" }, { "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint256", "name": "_amountLD", "type": "uint256" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "retryReceiveToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "send", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }, { "internalType": "uint64", "name": "minAmount", "type": "uint64" }], "internalType": "struct TargetCredit[]", "name": "_credits", "type": "tuple[]" }], "name": "sendCredits", "outputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "", "type": "tuple[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "sendToken", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "internalType": "bytes", "name": "passengerBytes", "type": "bytes" }], "internalType": "struct Ticket", "name": "ticket", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "_config", "type": "tuple" }], "name": "setAddressConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_oft", "type": "bool" }], "name": "setOFTPath", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], "name": "setPause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "sharedDecimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stargateType", "outputs": [{ "internalType": "enum StargateType", "name": "", "type": "uint8" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "status", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "token", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_newOwner", "type": "address" }], "name": "transferTokenOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasuryFee", "outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint8", "name": "index", "type": "uint8" }], "name": "unreceivedTokens", "outputs": [{ "internalType": "bytes32", "name": "hash", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "withdrawPlannerFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "withdrawTreasuryFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
19
+ var abi1 = [{ "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint8", "name": "_sharedDecimals", "type": "uint8" }, { "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidLocalDecimals", "type": "error" }, { "inputs": [], "name": "Path_AlreadyHasCredit", "type": "error" }, { "inputs": [], "name": "Path_InsufficientCredit", "type": "error" }, { "inputs": [], "name": "Path_UnlimitedCredit", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }], "name": "SlippageExceeded", "type": "error" }, { "inputs": [], "name": "Stargate_BusNotAllowedInAlt", "type": "error" }, { "inputs": [], "name": "Stargate_InsufficientFare", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidAmount", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidPath", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidTokenDecimals", "type": "error" }, { "inputs": [], "name": "Stargate_LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "Stargate_NotAnAltEndpoint", "type": "error" }, { "inputs": [], "name": "Stargate_OnlyAltToken", "type": "error" }, { "inputs": [], "name": "Stargate_OutflowFailed", "type": "error" }, { "inputs": [], "name": "Stargate_Paused", "type": "error" }, { "inputs": [], "name": "Stargate_RecoverTokenUnsupported", "type": "error" }, { "inputs": [], "name": "Stargate_ReentrantCall", "type": "error" }, { "inputs": [], "name": "Stargate_SlippageTooHigh", "type": "error" }, { "inputs": [], "name": "Stargate_Unauthorized", "type": "error" }, { "inputs": [], "name": "Stargate_UnreceivedTokenNotFound", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "indexed": false, "internalType": "struct StargateBase.AddressConfig", "name": "config", "type": "tuple" }], "name": "AddressConfigSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "bool", "name": "oft", "type": "bool" }], "name": "OFTPathSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "toAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "fromAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "paused", "type": "bool" }], "name": "PauseSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "PlannerFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint8", "name": "index", "type": "uint8" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "composeMsg", "type": "bytes" }], "name": "UnreceivedTokenCached", "type": "event" }, { "inputs": [{ "internalType": "uint256", "name": "_amountLD", "type": "uint256" }], "name": "addTreasuryFee", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "approvalRequired", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAddressConfig", "outputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "localEid", "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oftVersion", "outputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }, { "internalType": "uint64", "name": "version", "type": "uint64" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "paths", "outputs": [{ "internalType": "uint64", "name": "credit", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "plannerFee", "outputs": [{ "internalType": "uint256", "name": "available", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }], "name": "quoteOFT", "outputs": [{ "components": [{ "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "uint256", "name": "maxAmountLD", "type": "uint256" }], "internalType": "struct OFTLimit", "name": "limit", "type": "tuple" }, { "components": [{ "internalType": "int256", "name": "feeAmountLD", "type": "int256" }, { "internalType": "string", "name": "description", "type": "string" }], "internalType": "struct OFTFeeDetail[]", "name": "oftFeeDetails", "type": "tuple[]" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "receipt", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }], "name": "quoteSend", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "_credits", "type": "tuple[]" }], "name": "receiveCredits", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_seatNumber", "type": "uint8" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "receiveTokenBus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "receiveTokenTaxi", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "recoverToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_index", "type": "uint8" }, { "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint256", "name": "_amountLD", "type": "uint256" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "retryReceiveToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "send", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }, { "internalType": "uint64", "name": "minAmount", "type": "uint64" }], "internalType": "struct TargetCredit[]", "name": "_credits", "type": "tuple[]" }], "name": "sendCredits", "outputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "", "type": "tuple[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "sendToken", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "internalType": "bytes", "name": "passengerBytes", "type": "bytes" }], "internalType": "struct Ticket", "name": "ticket", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "_config", "type": "tuple" }], "name": "setAddressConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_oft", "type": "bool" }], "name": "setOFTPath", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], "name": "setPause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "sharedDecimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stargateType", "outputs": [{ "internalType": "enum StargateType", "name": "", "type": "uint8" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "status", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "token", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_newOwner", "type": "address" }], "name": "transferTokenOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasuryFee", "outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint8", "name": "index", "type": "uint8" }], "name": "unreceivedTokens", "outputs": [{ "internalType": "bytes32", "name": "hash", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "withdrawPlannerFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "withdrawTreasuryFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
20
+ var abi2 = [{ "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint8", "name": "_sharedDecimals", "type": "uint8" }, { "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidLocalDecimals", "type": "error" }, { "inputs": [], "name": "Path_AlreadyHasCredit", "type": "error" }, { "inputs": [], "name": "Path_InsufficientCredit", "type": "error" }, { "inputs": [], "name": "Path_UnlimitedCredit", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }], "name": "SlippageExceeded", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "_newOwner", "type": "address" }], "name": "StargateOFTTIP20_InvalidOwner", "type": "error" }, { "inputs": [], "name": "Stargate_BusNotAllowedInAlt", "type": "error" }, { "inputs": [], "name": "Stargate_InsufficientFare", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidAmount", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidPath", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidTokenDecimals", "type": "error" }, { "inputs": [], "name": "Stargate_LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "Stargate_NotAnAltEndpoint", "type": "error" }, { "inputs": [], "name": "Stargate_OnlyAltToken", "type": "error" }, { "inputs": [], "name": "Stargate_OutflowFailed", "type": "error" }, { "inputs": [], "name": "Stargate_Paused", "type": "error" }, { "inputs": [], "name": "Stargate_RecoverTokenUnsupported", "type": "error" }, { "inputs": [], "name": "Stargate_ReentrantCall", "type": "error" }, { "inputs": [], "name": "Stargate_SlippageTooHigh", "type": "error" }, { "inputs": [], "name": "Stargate_Unauthorized", "type": "error" }, { "inputs": [], "name": "Stargate_UnreceivedTokenNotFound", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "indexed": false, "internalType": "struct StargateBase.AddressConfig", "name": "config", "type": "tuple" }], "name": "AddressConfigSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "bool", "name": "oft", "type": "bool" }], "name": "OFTPathSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "toAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "fromAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "paused", "type": "bool" }], "name": "PauseSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "PlannerFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint8", "name": "index", "type": "uint8" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "composeMsg", "type": "bytes" }], "name": "UnreceivedTokenCached", "type": "event" }, { "inputs": [{ "internalType": "uint256", "name": "_amountLD", "type": "uint256" }], "name": "addTreasuryFee", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "approvalRequired", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAddressConfig", "outputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "localEid", "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oftVersion", "outputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }, { "internalType": "uint64", "name": "version", "type": "uint64" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "paths", "outputs": [{ "internalType": "uint64", "name": "credit", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "plannerFee", "outputs": [{ "internalType": "uint256", "name": "available", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }], "name": "quoteOFT", "outputs": [{ "components": [{ "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "uint256", "name": "maxAmountLD", "type": "uint256" }], "internalType": "struct OFTLimit", "name": "limit", "type": "tuple" }, { "components": [{ "internalType": "int256", "name": "feeAmountLD", "type": "int256" }, { "internalType": "string", "name": "description", "type": "string" }], "internalType": "struct OFTFeeDetail[]", "name": "oftFeeDetails", "type": "tuple[]" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "receipt", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }], "name": "quoteSend", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "_credits", "type": "tuple[]" }], "name": "receiveCredits", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_seatNumber", "type": "uint8" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "receiveTokenBus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "receiveTokenTaxi", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "recoverToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_index", "type": "uint8" }, { "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint256", "name": "_amountLD", "type": "uint256" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "retryReceiveToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "send", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }, { "internalType": "uint64", "name": "minAmount", "type": "uint64" }], "internalType": "struct TargetCredit[]", "name": "_credits", "type": "tuple[]" }], "name": "sendCredits", "outputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "", "type": "tuple[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "sendToken", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "internalType": "bytes", "name": "passengerBytes", "type": "bytes" }], "internalType": "struct Ticket", "name": "ticket", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "_config", "type": "tuple" }], "name": "setAddressConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_oft", "type": "bool" }], "name": "setOFTPath", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], "name": "setPause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "sharedDecimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stargateType", "outputs": [{ "internalType": "enum StargateType", "name": "", "type": "uint8" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "status", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "token", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_newOwner", "type": "address" }], "name": "transferTokenOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasuryFee", "outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint8", "name": "index", "type": "uint8" }], "name": "unreceivedTokens", "outputs": [{ "internalType": "bytes32", "name": "hash", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "withdrawPlannerFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "withdrawTreasuryFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
15
21
  var abis = {
16
22
  "arbsep-testnet": abi0,
17
23
  "bera-mainnet": abi0,
18
- "plumephoenix-mainnet": abi0
24
+ "moderato-testnet": abi1,
25
+ "plumephoenix-mainnet": abi0,
26
+ "tempo-mainnet": abi2
19
27
  };
20
28
 
21
29
  exports.abis = abis;