@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
@@ -83,6 +83,7 @@ var addresses = {
83
83
  "gravity-mainnet": "0x8e8539e4CcD69123c623a106773F2b0cbbc58746",
84
84
  "hedera-mainnet": "0x0e81579B25C9c458A2030824B7fdBd0194900803",
85
85
  "hemi-mainnet": "0x45A01E4e04F14f7A4a6702c74187c5F6222033cd",
86
+ "horizen-mainnet": "0xbbA60da06c2c5424f03f7434542280FCAd453d10",
86
87
  "ink-mainnet": "0xAF54BE5B6eEc24d6BFACf1cce4eaF680A8239398",
87
88
  "iota-mainnet": "0x45d417612e177672958dC0537C45a8f8d754Ac2E",
88
89
  "islander-mainnet": "0x224D8Fd7aB6AD4c6eb4611Ce56EF35Dec2277F03",
@@ -94,6 +95,7 @@ var addresses = {
94
95
  "mantle-mainnet": "0x4141Eb977a8646EC60C4c2891AEA645118183221",
95
96
  "mantlesep-testnet": "0x824D8FcDC36E81618377D140BEC12c3B7E4e4cbA",
96
97
  "metis-mainnet": "0xA45B5130f36CDcA45667738e2a258AB09f4A5f7F",
98
+ "moderato-testnet": "0x783129E4d7bA0Af0C896c239E57C06DF379aAE8c",
97
99
  "monad-testnet": "0x1343994e136B6b15CBB2eB4075e0E73b8c4Ebce0",
98
100
  "nibiru-mainnet": "0xc7616B08FfEC8B4ba47188bfd1A814316F3E3d79",
99
101
  "odyssey-testnet": "0x28E0f0eed8d6A6a96033feEe8b2D7F32EB5CCc48",
@@ -122,6 +124,7 @@ var addresses = {
122
124
  "swell-mainnet": "0x28BEc7E30E6faee657a03e19Bf1128AaD7632A00",
123
125
  "taiko-mainnet": "0x0dB9afb4C33be43a0a0e396Fd1383B4ea97aB10a",
124
126
  "telos-mainnet": "0xbbA60da06c2c5424f03f7434542280FCAd453d10",
127
+ "tempo-mainnet": "0x0CDab740d1aA2f8ED0055C69769Ee2ac48554140",
125
128
  "unichain-mainnet": "0xAf368c91793CB22739386DFCbBb2F1A9e4bCBeBf",
126
129
  "xdc-mainnet": "0xef9ec60e186c8A1a0439AF0AedB6dEb9f34A2c88",
127
130
  "zkconsensys-mainnet": "0x138EB30f73BC423c6455C53df6D89CB01d9eBc63"
@@ -159,6 +162,7 @@ var transactionHashes = {
159
162
  "gravity-mainnet": "0xb941d8e4399ca216e2372b8a09b7c508d4c2fa6cf1bcf7f05d7d4078c6d48f93",
160
163
  "hedera-mainnet": "0xf31b86403a6b4b281284bd6df151a5c03c3c85b43066983d9bcfb5c53a42490b",
161
164
  "hemi-mainnet": "0x01e0eb15e105b244d6841ffb59ac30182e0aefbaf6e102cf94bd1103f61e2325",
165
+ "horizen-mainnet": "0xb7fe19825f0315ccbd22919e34617e01d342ed31bfa8bc0286e2e2d4a544bd3a",
162
166
  "ink-mainnet": "0xd2a2d79a94618f83e09bfc021de0a9858b09a6b200dcd7e331f51ec3d42b1f69",
163
167
  "iota-mainnet": "0x3db89adab57462824ac87835d13cb04cf99ef59334b8f752c54fa3db43519c53",
164
168
  "islander-mainnet": "0x2763dbb531ba41e2f8b6fae1d07a77cf27255d9aabed20a35a76094448f63e1c",
@@ -170,6 +174,7 @@ var transactionHashes = {
170
174
  "mantle-mainnet": "0x040989b9c604595617000dab15f1c163d65783925285d29ac20598d8a984b6cc",
171
175
  "mantlesep-testnet": "0xc2cb2fef587716ac0a6864ad165defb3130a5604769ca33ff2583bf35cd8889f",
172
176
  "metis-mainnet": "0x03d09f06d19f29eade6a75d20ac5e4ff1bd6e233824419bc868977825277353a",
177
+ "moderato-testnet": "0x8d7ad66cda682588ce025440e5f93ebe98a127f3a2fdc7ded3734ad6db31cff5",
173
178
  "monad-testnet": "0x267d1a4079f2c29c2f4b8503b81fc1494b27164e78375295f7dfc6c4a142cf43",
174
179
  "nibiru-mainnet": "0x3df85b1481d292dd3c62c73b395f82830a364d4aee094cca0f3cc0a6c3c5788f",
175
180
  "odyssey-testnet": "0x86617be30889bc39cdda7a574b1ad6c1be7506c0377a35e2f8d6635b54105bde",
@@ -197,11 +202,13 @@ var transactionHashes = {
197
202
  "swell-mainnet": "0x9e5f6834b2b5a9e5cd2d292e762a5bcb1a879800901ebf08a5c1ec5aa23b3ce7",
198
203
  "taiko-mainnet": "0x6cbe2e4159135d923787224dbc6f1b5386a4cab21e345caefe137f4572cc5d16",
199
204
  "telos-mainnet": "0x9ad28676114dd5f4ec08f71a609732e702d248284b5427c14bd09d1280838d1b",
205
+ "tempo-mainnet": "0xf2649ac9e02a99e9fd431eef3ced9e079bd4875c154af6e5125049874fa1c0f1",
200
206
  "unichain-mainnet": "0x2348b4502d2a359aa3c5c241e646695ecb229f2ef02db7dd448e9e39cae98bbb",
201
207
  "xdc-mainnet": "0x50113dc263ecccb45e6df2474cc907ad158c9fc178fa60fc28e6022497fb6a24",
202
208
  "zkconsensys-mainnet": "0x6742fcfa893d1064e87d0d4e6cf03ee07d8a616d5770752ef49a0cd690f2b66b"
203
209
  };
204
210
  var abi0 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreditMsgCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "stateMutability": "view", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "quoteSendCredits", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "sendCredits", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
211
+ var abi1 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreditMessaging_NotAnAltEndpoint", "type": "error" }, { "inputs": [], "name": "CreditMessaging_OnlyAltToken", "type": "error" }, { "inputs": [], "name": "CreditMsgCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "quoteSendCredits", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "sendCredits", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
205
212
  var abis = {
206
213
  "abstract-mainnet": abi0,
207
214
  "ape-mainnet": abi0,
@@ -236,6 +243,7 @@ var abis = {
236
243
  "gravity-mainnet": abi0,
237
244
  "hedera-mainnet": abi0,
238
245
  "hemi-mainnet": abi0,
246
+ "horizen-mainnet": abi0,
239
247
  "ink-mainnet": abi0,
240
248
  "iota-mainnet": abi0,
241
249
  "islander-mainnet": abi0,
@@ -247,6 +255,7 @@ var abis = {
247
255
  "mantle-mainnet": abi0,
248
256
  "mantlesep-testnet": abi0,
249
257
  "metis-mainnet": abi0,
258
+ "moderato-testnet": abi1,
250
259
  "monad-testnet": abi0,
251
260
  "nibiru-mainnet": abi0,
252
261
  "odyssey-testnet": abi0,
@@ -275,6 +284,7 @@ var abis = {
275
284
  "swell-mainnet": abi0,
276
285
  "taiko-mainnet": abi0,
277
286
  "telos-mainnet": abi0,
287
+ "tempo-mainnet": abi1,
278
288
  "unichain-mainnet": abi0,
279
289
  "xdc-mainnet": abi0,
280
290
  "zkconsensys-mainnet": abi0
@@ -481,8 +491,10 @@ var addresses3 = {
481
491
  "base-mainnet": "0x93819FfD972Fd57b1AAf42ba85e6B437D60FC807",
482
492
  "bera-mainnet": "0x87Dd5A7481726a53C5Ac6b0D296F5846f95a72f2",
483
493
  "ethereum-mainnet": "0x0F3273eA5d8B182CD87C8630Dc436a6133b9bE39",
494
+ "moderato-testnet": "0x0829F361A05D993d5CEb035cA6DF3446b060970b",
484
495
  "plumephoenix-mainnet": "0xf2d112B3b88Cff0F011Cef9BaB2Ec64a69403C1B",
485
- "sepolia-testnet": "0xA4272ad93AC5d2FF048DD6419c88Eb4C1002Ec6b"
496
+ "sepolia-testnet": "0xA4272ad93AC5d2FF048DD6419c88Eb4C1002Ec6b",
497
+ "tempo-mainnet": "0x007eb5a054cE1099b4C3e5bAB9C91302F9eabC15"
486
498
  };
487
499
  var transactionHashes3 = {
488
500
  "arbsep-testnet": "0xbebbc37d8e1cbe686ec7e7110eb93aca63efbd821c82bc787b8c9044236b2de0",
@@ -491,8 +503,10 @@ var transactionHashes3 = {
491
503
  "base-mainnet": "0xa288015160a3cba8fb8e7fd5a5eebff8a00420c61d2d0076e7e0b3579bfcc835",
492
504
  "bera-mainnet": "0xaeab245d4cb7ffcddc0975629224d6560d96c5daf3ee39e4e85a2cc60a31ff74",
493
505
  "ethereum-mainnet": "0x8be2d8d053490034cb6892ff6dfff032e66bacd2cc19ee21ed8581d25e70cf6b",
506
+ "moderato-testnet": "0x912c839f9f3f47944cadee0a9bf5ad9b975204db91de5c72cfea2f7692d93239",
494
507
  "plumephoenix-mainnet": "0x1b44eff45c5581c865d525a4d954c6b12ad10b0e88e6a7c2b59e69f72f857ad7",
495
- "sepolia-testnet": "0xf99055f50b0e9f1fda634487a67c3a4bf587727b89f3246e6591dcef58be92bf"
508
+ "sepolia-testnet": "0xf99055f50b0e9f1fda634487a67c3a4bf587727b89f3246e6591dcef58be92bf",
509
+ "tempo-mainnet": "0xf8e411d44160db4b8302b0a4b54900968eeb6e845b1b53daa9ab0ac1f9a696ab"
496
510
  };
497
511
  var abi03 = [{ "inputs": [{ "internalType": "address", "name": "_stargate", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "FeeLib_InvalidFeeConfiguration", "type": "error" }, { "inputs": [], "name": "FeeLib_Paused", "type": "error" }, { "inputs": [], "name": "FeeLib_Unauthorized", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "components": [{ "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "uint64", "name": "zone1UpperBound", "type": "uint64" }, { "internalType": "uint64", "name": "zone2UpperBound", "type": "uint64" }, { "internalType": "uint24", "name": "zone1FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone2FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone3FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "rewardMillionth", "type": "uint24" }], "indexed": false, "internalType": "struct FeeConfig", "name": "config", "type": "tuple" }], "name": "FeeConfigSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bool", "name": "isPaused", "type": "bool" }], "name": "PausedSet", "type": "event" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "uint64", "name": "amountInSD", "type": "uint64" }, { "internalType": "uint64", "name": "deficitSD", "type": "uint64" }, { "internalType": "bool", "name": "toOFT", "type": "bool" }, { "internalType": "bool", "name": "isTaxi", "type": "bool" }], "internalType": "struct FeeParams", "name": "_params", "type": "tuple" }], "name": "applyFee", "outputs": [{ "internalType": "uint64", "name": "amountOutSD", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "uint64", "name": "amountInSD", "type": "uint64" }, { "internalType": "uint64", "name": "deficitSD", "type": "uint64" }, { "internalType": "bool", "name": "toOFT", "type": "bool" }, { "internalType": "bool", "name": "isTaxi", "type": "bool" }], "internalType": "struct FeeParams", "name": "_params", "type": "tuple" }], "name": "applyFeeView", "outputs": [{ "internalType": "uint64", "name": "amountOutSD", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "feeConfigs", "outputs": [{ "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "uint64", "name": "zone1UpperBound", "type": "uint64" }, { "internalType": "uint64", "name": "zone2UpperBound", "type": "uint64" }, { "internalType": "uint24", "name": "zone1FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone2FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone3FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "rewardMillionth", "type": "uint24" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint64", "name": "_zone1UpperBound", "type": "uint64" }, { "internalType": "uint64", "name": "_zone2UpperBound", "type": "uint64" }, { "internalType": "uint24", "name": "_zone1FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "_zone2FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "_zone3FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "_rewardMillionth", "type": "uint24" }], "name": "setFeeConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_isPaused", "type": "bool" }], "name": "setPaused", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "stargate", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stargateType", "outputs": [{ "internalType": "enum StargateType", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
498
512
  var abis3 = {
@@ -502,8 +516,10 @@ var abis3 = {
502
516
  "base-mainnet": abi03,
503
517
  "bera-mainnet": abi03,
504
518
  "ethereum-mainnet": abi03,
519
+ "moderato-testnet": abi03,
505
520
  "plumephoenix-mainnet": abi03,
506
- "sepolia-testnet": abi03
521
+ "sepolia-testnet": abi03,
522
+ "tempo-mainnet": abi03
507
523
  };
508
524
 
509
525
  // deployed/FeeLibV1METIS.ts
@@ -565,6 +581,7 @@ var addresses5 = {
565
581
  "goat-mainnet": "0x2d93FbcE4CffC15DD385A80B3f4CC1D4E76C38b3",
566
582
  "gravity-mainnet": "0x1C10CC06DC6D35970d1D53B2A23c76ef370d4135",
567
583
  "hemi-mainnet": "0x808d7c71ad2ba3FA531b068a2417C63106BC0949",
584
+ "horizen-mainnet": "0x549943e04f40284185054145c6E4e9568C1D3241",
568
585
  "ink-mainnet": "0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6",
569
586
  "iota-mainnet": "0xCd4302D950e7e6606b6910Cd232758b5ad423311",
570
587
  "islander-mainnet": "0x296F55F8Fb28E498B858d0BcDA06D955B2Cb3f97",
@@ -573,6 +590,7 @@ var addresses5 = {
573
590
  "lightlink-mainnet": "0x6D5E6657ef23f3636Af84EE9Db5B51b4AD2CF129",
574
591
  "mantle-mainnet": "0x288968ffF40543F168eAf29A54D5C0affD3C8df7",
575
592
  "mantlesep-testnet": "0x40461291347e1eCbb09499F3371D3f17f10d7159",
593
+ "moderato-testnet": "0x31EEf89D5215C305304a2fA5376a1f1b6C5dc477",
576
594
  "monad-testnet": "0xda6087E69C51E7D31b6DBAD276a3c44703DFdCAd",
577
595
  "nibiru-mainnet": "0x6BebD4BDDff9478cf8ddDfc54278F805bE9c51b6",
578
596
  "odyssey-testnet": "0xEb8d955d8Ae221E5b502851ddd78E6C4498dB4f6",
@@ -599,6 +617,7 @@ var addresses5 = {
599
617
  "superposition-mainnet": "0xAfB39384cd5B7d84ed4D569b7ceC294eb1Dc5EE5",
600
618
  "taiko-mainnet": "0xCd4302D950e7e6606b6910Cd232758b5ad423311",
601
619
  "telos-mainnet": "0xB0B2391a32E066FDf354ef7f4199300f920789F0",
620
+ "tempo-mainnet": "0x9F317BB668b0cd87b300420Be022b891f96B7145",
602
621
  "xdc-mainnet": "0x29eE6138DD4C9815f46D34a4A1ed48F46758A402"
603
622
  };
604
623
  var transactionHashes5 = {
@@ -631,6 +650,7 @@ var transactionHashes5 = {
631
650
  "goat-mainnet": "0x7e14c732b10c7412b90a9ababde9f5041e6b6ca42e293edb0c3a05f193c0ec54",
632
651
  "gravity-mainnet": "0x6c1d47ed71663438316a02dab2e78bb75a74020a1745ac4e510c68870b57d29c",
633
652
  "hemi-mainnet": "0x9ead8adf6d63bc528e802f3b9927e99e257c88ac10582df72b79b72641780515",
653
+ "horizen-mainnet": "0xfd847831e12210da3abf5928caa15b034413214c56f5513066a2e4567828fb9a",
634
654
  "ink-mainnet": "0xc040f6b1a9516be3c09e0a3a2ac9b4e19b00b5833d03fcaf00a63b9acf28031d",
635
655
  "iota-mainnet": "0xa460ad739b056249ed796f3d8e89ed0ca0d2ce81867be2cb2ab01f15ec1534d2",
636
656
  "islander-mainnet": "0x103aff74093912d2f5854fe981d21effc3080a8479afaf5cc0680bf224471707",
@@ -639,6 +659,7 @@ var transactionHashes5 = {
639
659
  "lightlink-mainnet": "0x370cff128d0ea8045b70375fe4171ed0bbd64c8dcddb08fb7bb3b8344486dad2",
640
660
  "mantle-mainnet": "0x3e47710de854a7fd96765f15d7f55641a836c967183de9d20ad44328f2505204",
641
661
  "mantlesep-testnet": "0xd668aff1d96dde13f4cf556be67f3e01bd49f0a003a39d246ac5113fb91dbfca",
662
+ "moderato-testnet": "0x454ff3e23b614013ff7688be0d74cca0cd335f198f217095a3ffed4098a06f81",
642
663
  "monad-testnet": "0xa5062b22733900297b639acbe3d5d1fe1f5139c89735256782ffef4b950b6670",
643
664
  "nibiru-mainnet": "0x3ede3f48767b15335939a483c657983f12a6b7f5eb4e1b85498b8c578d98e096",
644
665
  "odyssey-testnet": "0xa25d7e43f6818319b669b5372ff4db6c3270a116d80552852c7852d8aadce0cd",
@@ -664,6 +685,7 @@ var transactionHashes5 = {
664
685
  "superposition-mainnet": "0x5d548d1caa4c9847b7031ccaad9052cbb2fe49ecdf7b4979ea0748addcf7ec14",
665
686
  "taiko-mainnet": "0x5a53a5b40f675e4b2ccfbca78f6c9b238a4628e03d04bb2b38e0e02f8165986c",
666
687
  "telos-mainnet": "0x218abddc7db21a6b8b000316b7a0c79382098783d21f41cd64d3aeaea8039b4f",
688
+ "tempo-mainnet": "0xdebab7b00edccd554139896540aca8429ceda204aedecb6a7083aed4cb235f27",
667
689
  "xdc-mainnet": "0x74e2ff07f09fd66642db577be797a97c3860b8c8aef4d5dc0c7d62e31250cab4"
668
690
  };
669
691
  var abi05 = [{ "inputs": [{ "internalType": "address", "name": "_stargate", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "FeeLib_InvalidFeeConfiguration", "type": "error" }, { "inputs": [], "name": "FeeLib_Paused", "type": "error" }, { "inputs": [], "name": "FeeLib_Unauthorized", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "components": [{ "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "uint64", "name": "zone1UpperBound", "type": "uint64" }, { "internalType": "uint64", "name": "zone2UpperBound", "type": "uint64" }, { "internalType": "uint24", "name": "zone1FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone2FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone3FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "rewardMillionth", "type": "uint24" }], "indexed": false, "internalType": "struct FeeConfig", "name": "config", "type": "tuple" }], "name": "FeeConfigSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bool", "name": "isPaused", "type": "bool" }], "name": "PausedSet", "type": "event" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "uint64", "name": "amountInSD", "type": "uint64" }, { "internalType": "uint64", "name": "deficitSD", "type": "uint64" }, { "internalType": "bool", "name": "toOFT", "type": "bool" }, { "internalType": "bool", "name": "isTaxi", "type": "bool" }], "internalType": "struct FeeParams", "name": "_params", "type": "tuple" }], "name": "applyFee", "outputs": [{ "internalType": "uint64", "name": "amountOutSD", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "uint64", "name": "amountInSD", "type": "uint64" }, { "internalType": "uint64", "name": "deficitSD", "type": "uint64" }, { "internalType": "bool", "name": "toOFT", "type": "bool" }, { "internalType": "bool", "name": "isTaxi", "type": "bool" }], "internalType": "struct FeeParams", "name": "_params", "type": "tuple" }], "name": "applyFeeView", "outputs": [{ "internalType": "uint64", "name": "amountOutSD", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "feeConfigs", "outputs": [{ "internalType": "bool", "name": "paused", "type": "bool" }, { "internalType": "uint64", "name": "zone1UpperBound", "type": "uint64" }, { "internalType": "uint64", "name": "zone2UpperBound", "type": "uint64" }, { "internalType": "uint24", "name": "zone1FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone2FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "zone3FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "rewardMillionth", "type": "uint24" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint64", "name": "_zone1UpperBound", "type": "uint64" }, { "internalType": "uint64", "name": "_zone2UpperBound", "type": "uint64" }, { "internalType": "uint24", "name": "_zone1FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "_zone2FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "_zone3FeeMillionth", "type": "uint24" }, { "internalType": "uint24", "name": "_rewardMillionth", "type": "uint24" }], "name": "setFeeConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_isPaused", "type": "bool" }], "name": "setPaused", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "stargate", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stargateType", "outputs": [{ "internalType": "enum StargateType", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
@@ -698,6 +720,7 @@ var abis5 = {
698
720
  "goat-mainnet": abi05,
699
721
  "gravity-mainnet": abi05,
700
722
  "hemi-mainnet": abi05,
723
+ "horizen-mainnet": abi05,
701
724
  "ink-mainnet": abi05,
702
725
  "iota-mainnet": abi05,
703
726
  "islander-mainnet": abi05,
@@ -706,6 +729,7 @@ var abis5 = {
706
729
  "lightlink-mainnet": abi05,
707
730
  "mantle-mainnet": abi05,
708
731
  "mantlesep-testnet": abi05,
732
+ "moderato-testnet": abi05,
709
733
  "monad-testnet": abi05,
710
734
  "nibiru-mainnet": abi05,
711
735
  "odyssey-testnet": abi05,
@@ -732,6 +756,7 @@ var abis5 = {
732
756
  "superposition-mainnet": abi05,
733
757
  "taiko-mainnet": abi05,
734
758
  "telos-mainnet": abi05,
759
+ "tempo-mainnet": abi05,
735
760
  "xdc-mainnet": abi05
736
761
  };
737
762
 
@@ -1080,6 +1105,7 @@ var addresses9 = {
1080
1105
  "gravity-mainnet": "0x523ECb0D73976935bc105fD7dCebc8abB17177c4",
1081
1106
  "hedera-mainnet": "0x783129E4d7bA0Af0C896c239E57C06DF379aAE8c",
1082
1107
  "hemi-mainnet": "0x296F55F8Fb28E498B858d0BcDA06D955B2Cb3f97",
1108
+ "horizen-mainnet": "0x164A2dE1bc5dc56F329909F7c97Bae929CaE557B",
1083
1109
  "ink-mainnet": "0x9d1B1669c73b033DFe47ae5a0164Ab96df25B944",
1084
1110
  "iota-mainnet": "0xf9A525D48fAbFe41c7e81295F08CdEFB8087309B",
1085
1111
  "islander-mainnet": "0xB0D502E938ed5f4df2E681fE6E419ff29631d62b",
@@ -1092,6 +1118,7 @@ var addresses9 = {
1092
1118
  "mantlesep-testnet": "0xBAb93B7ad7fE8692A878B95a8e689423437cc500",
1093
1119
  "metis-mainnet": "0xfCcB355647cD13051eDa808Da7E524d5baD90615",
1094
1120
  "mode-mainnet": "0xE520D724f0C4B72FaEB9C0580281f6FE1F3E79F6",
1121
+ "moderato-testnet": "0x9FBBAFC2Ad79af2b57eD23C60DfF79eF5c2b0FB5",
1095
1122
  "monad-testnet": "0x60219C44E146BAf36002eA73767820238Ebc1db6",
1096
1123
  "moonbeam-mainnet": "0xE520D724f0C4B72FaEB9C0580281f6FE1F3E79F6",
1097
1124
  "moonriver-mainnet": "0xE520D724f0C4B72FaEB9C0580281f6FE1F3E79F6",
@@ -1124,6 +1151,7 @@ var addresses9 = {
1124
1151
  "swell-mainnet": "0x8ebB731185773Dc7eC7A98cF3b3363d9A5a2D539",
1125
1152
  "taiko-mainnet": "0xcc0Ee4232fb1dc01F016b2f3bB3728Acdf7A3563",
1126
1153
  "telos-mainnet": "0xA4BbDdefaEE27cd778C4CED30C0535ec06a8502e",
1154
+ "tempo-mainnet": "0xaFCC50D1338762BF3DaC7627D0b1Ac9AFcec514d",
1127
1155
  "unichain-mainnet": "0xd9492653457A69E9f4987DB43D7fa0112E620Cb4",
1128
1156
  "xdc-mainnet": "0x936Ab8C674bcb567CD5dEB85D8A216494704E9D8",
1129
1157
  "zkatana-mainnet": "0xE520D724f0C4B72FaEB9C0580281f6FE1F3E79F6",
@@ -1168,6 +1196,7 @@ var transactionHashes9 = {
1168
1196
  "gravity-mainnet": "0x281e8f4ea1c32dd305146d2d2333712bcb4bc05ea4043ae9caef4312fa6f7b9c",
1169
1197
  "hedera-mainnet": "0x5efc319442f1344d6260667e7fc2f9fc258269c646544a5fcaed8fe89f88a745",
1170
1198
  "hemi-mainnet": "0x937d66b0b8b77e3fce703e87bc34fc326bb0e1513b5838980a41a3390557154a",
1199
+ "horizen-mainnet": "0x1c4a1ad074fbc1b8854ae89c889c5e0dec52736b767e395fe526f3406303b538",
1171
1200
  "ink-mainnet": "0xb253e65eaf80b8e618a0a37444c5923c3e62942b63609a6dcb79caee84d0ebcd",
1172
1201
  "iota-mainnet": "0xa96b276b1ac17b64b7b94ace4546d517c62aad2f2bb5d3f80188699b6b30c21f",
1173
1202
  "islander-mainnet": "0x7fb566f69327dc724830909370cfa3d188ef63002a504a1ed915ea9655ff322b",
@@ -1180,6 +1209,7 @@ var transactionHashes9 = {
1180
1209
  "mantlesep-testnet": "0xd7b370aba0adda2f32dc1c645e73bc1dfad08aebc1872131bf99601d770d942f",
1181
1210
  "metis-mainnet": "0xea5d5694feed07553793773aec1cc7c1bd0170e2899dee4f4bb0ca28bce246ab",
1182
1211
  "mode-mainnet": "0x78cbafd8e20fcd58dcc6bc1a4604aa0cc6f0b4dc37070b33f808cdad14d53cf4",
1212
+ "moderato-testnet": "0x7ba292ba1e0affded105c532da24569bb174e61c9e88f7f97059d372e738f0a3",
1183
1213
  "monad-testnet": "0xe1baa9a0cbef5c900ca4663f4d5ec0154fd2b7b794b2c9331e26494cd0c1810d",
1184
1214
  "moonbeam-mainnet": "0xc67041f8ed7443d3701358d57bf3483acad0b1b077f4cce4afe8dc6e5e62892f",
1185
1215
  "moonriver-mainnet": "0x39f085a7d6bdd389bdd89a9c0bedaa0d16e8af2a871a317da4a36356557086c9",
@@ -1211,6 +1241,7 @@ var transactionHashes9 = {
1211
1241
  "swell-mainnet": "0x04a240fbbced1999634df659be7e3401ea3fc2c46498d672a3a264d9572c1f92",
1212
1242
  "taiko-mainnet": "0xa054927ca4fb6432f81f12e5a3f8c32abcc4a5d3a5875c76e7d4e4a54efddf2d",
1213
1243
  "telos-mainnet": "0xfca6eaf86e381cabaad6889b28161084ddf05451a1ab0ff4a7de915e169ec88a",
1244
+ "tempo-mainnet": "0x958d8819c86e856f0715e106c83cf8a10bfdd39712cef142bbd4430c93bc8104",
1214
1245
  "unichain-mainnet": "0xc58e9fabf17f3fa52866e67557d4ddd249dcf91eff761e2b0782bc0701faf8f5",
1215
1246
  "xdc-mainnet": "0x0a322cd585ac327482edb2e80800e2d458c4e5ff9e4301fc16deb0a9b882a9f8",
1216
1247
  "zkatana-mainnet": "0x0abecd493cb5c65a1b2a54a1bda7745fa177aee91caeb6f9d76ccd0796fcd159",
@@ -1257,6 +1288,7 @@ var abis9 = {
1257
1288
  "gravity-mainnet": abi09,
1258
1289
  "hedera-mainnet": abi09,
1259
1290
  "hemi-mainnet": abi09,
1291
+ "horizen-mainnet": abi09,
1260
1292
  "ink-mainnet": abi09,
1261
1293
  "iota-mainnet": abi09,
1262
1294
  "islander-mainnet": abi09,
@@ -1269,6 +1301,7 @@ var abis9 = {
1269
1301
  "mantlesep-testnet": abi09,
1270
1302
  "metis-mainnet": abi09,
1271
1303
  "mode-mainnet": abi09,
1304
+ "moderato-testnet": abi09,
1272
1305
  "monad-testnet": abi09,
1273
1306
  "moonbeam-mainnet": abi09,
1274
1307
  "moonriver-mainnet": abi09,
@@ -1301,6 +1334,7 @@ var abis9 = {
1301
1334
  "swell-mainnet": abi09,
1302
1335
  "taiko-mainnet": abi09,
1303
1336
  "telos-mainnet": abi09,
1337
+ "tempo-mainnet": abi09,
1304
1338
  "unichain-mainnet": abi09,
1305
1339
  "xdc-mainnet": abi09,
1306
1340
  "zkatana-mainnet": abi09,
@@ -1769,7 +1803,7 @@ var transactionHashes14 = {
1769
1803
  "xdc-mainnet": "0x13d1f47a4ac77538bf5f46f808bb2590159fd913a7353a38c56a9fb9a91e0d39"
1770
1804
  };
1771
1805
  var abi014 = [{ "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" }];
1772
- 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_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": [], "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" }];
1806
+ var abi12 = [{ "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": [], "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" }];
1773
1807
  var abis14 = {
1774
1808
  "ape-mainnet": abi014,
1775
1809
  "bera-mainnet": abi014,
@@ -1778,28 +1812,28 @@ var abis14 = {
1778
1812
  "camp-mainnet": abi014,
1779
1813
  "cronosevm-mainnet": abi014,
1780
1814
  "degen-mainnet": abi014,
1781
- "flare-mainnet": abi1,
1815
+ "flare-mainnet": abi12,
1782
1816
  "flow-mainnet": abi014,
1783
1817
  "fuse-mainnet": abi014,
1784
1818
  "gatelayer-mainnet": abi014,
1785
1819
  "glue-mainnet": abi014,
1786
1820
  "goat-mainnet": abi014,
1787
- "gravity-mainnet": abi1,
1821
+ "gravity-mainnet": abi12,
1788
1822
  "hedera-mainnet": abi014,
1789
- "iota-mainnet": abi1,
1823
+ "iota-mainnet": abi12,
1790
1824
  "islander-mainnet": abi014,
1791
- "klaytn-mainnet": abi1,
1792
- "klaytn-testnet": abi1,
1825
+ "klaytn-mainnet": abi12,
1826
+ "klaytn-testnet": abi12,
1793
1827
  "nibiru-mainnet": abi014,
1794
1828
  "odyssey-testnet": abi014,
1795
1829
  "og-mainnet": abi014,
1796
- "peaq-mainnet": abi1,
1830
+ "peaq-mainnet": abi12,
1797
1831
  "plasma-mainnet": abi014,
1798
1832
  "plumephoenix-mainnet": abi014,
1799
- "polygon-sandbox-local": abi1,
1833
+ "polygon-sandbox-local": abi12,
1800
1834
  "redbelly-mainnet": abi014,
1801
1835
  "rootstock-mainnet": abi014,
1802
- "sei-mainnet": abi1,
1836
+ "sei-mainnet": abi12,
1803
1837
  "somnia-mainnet": abi014,
1804
1838
  "stable-mainnet": abi014,
1805
1839
  "story-mainnet": abi014,
@@ -1817,18 +1851,26 @@ __export(StargateOFTEURC_exports, {
1817
1851
  var addresses15 = {
1818
1852
  "arbsep-testnet": "0x29eE6138DD4C9815f46D34a4A1ed48F46758A402",
1819
1853
  "bera-mainnet": "0x28BEc7E30E6faee657a03e19Bf1128AaD7632A00",
1820
- "plumephoenix-mainnet": "0x5e2519045B5e38863c879c694fb0811dba333a60"
1854
+ "moderato-testnet": "0x3d7882273E5410E981a470924fBA5DF3EA0dc14a",
1855
+ "plumephoenix-mainnet": "0x5e2519045B5e38863c879c694fb0811dba333a60",
1856
+ "tempo-mainnet": "0x7753Dc8d4bd48Db599Da21E08b1Ab1D6FDFfdC71"
1821
1857
  };
1822
1858
  var transactionHashes15 = {
1823
1859
  "arbsep-testnet": "0x5036b62614736ecad02b339fe51a1bfdc3495de8e6b4446e0cb11bb9024338f2",
1824
1860
  "bera-mainnet": "0x61a684bbcde0927af8aac1b12338ac2d397a848c25ce57096eb9037e99d46f92",
1825
- "plumephoenix-mainnet": "0x2af0e44104890b51a0aaf53a305cb0b5f2f7bf5a316659e8b6c3e80106c6d716"
1861
+ "moderato-testnet": "0x1c4e1dd5b84b1e928e2c334a7051874676cd461ae431f23b405faefd00deb5a1",
1862
+ "plumephoenix-mainnet": "0x2af0e44104890b51a0aaf53a305cb0b5f2f7bf5a316659e8b6c3e80106c6d716",
1863
+ "tempo-mainnet": "0x9871c5246f3c6c65f224c505e39d259584fc2c4a1fd91b11e84d772c687bfe09"
1826
1864
  };
1827
1865
  var abi015 = [{ "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" }];
1866
+ var abi13 = [{ "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" }];
1867
+ 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" }];
1828
1868
  var abis15 = {
1829
1869
  "arbsep-testnet": abi015,
1830
1870
  "bera-mainnet": abi015,
1831
- "plumephoenix-mainnet": abi015
1871
+ "moderato-testnet": abi13,
1872
+ "plumephoenix-mainnet": abi015,
1873
+ "tempo-mainnet": abi2
1832
1874
  };
1833
1875
 
1834
1876
  // deployed/StargateOFTUSDC.ts
@@ -1859,12 +1901,14 @@ var addresses16 = {
1859
1901
  "goat-mainnet": "0xbbA60da06c2c5424f03f7434542280FCAd453d10",
1860
1902
  "gravity-mainnet": "0xC1B8045A6ef2934Cf0f78B0dbD489969Fa9Be7E4",
1861
1903
  "hemi-mainnet": "0x45f1A95A4D3f3836523F5c83673c797f4d4d263B",
1904
+ "horizen-mainnet": "0x3a1293Bdb83bBbDd5Ebf4fAc96605aD2021BbC0f",
1862
1905
  "ink-mainnet": "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590",
1863
1906
  "iota-mainnet": "0x8e8539e4CcD69123c623a106773F2b0cbbc58746",
1864
1907
  "islander-mainnet": "0x45A01E4e04F14f7A4a6702c74187c5F6222033cd",
1865
1908
  "klaytn-mainnet": "0x01A7c805cc47AbDB254CD8AaD29dE5e447F59224",
1866
1909
  "klaytn-testnet": "0xf626Acea3FfBe6228149A651Aa8a8DF0c0e7A575",
1867
1910
  "lightlink-mainnet": "0x8EE21165Ecb7562BA716c9549C1dE751282b9B33",
1911
+ "moderato-testnet": "0xc8D5b106fb3dB1140cfa12a94666de02A1d26183",
1868
1912
  "nibiru-mainnet": "0x12a272A581feE5577A5dFa371afEB4b2F3a8C2F8",
1869
1913
  "odyssey-testnet": "0xCD9A74e5fe451025E92b5b8F74117c6E275Aa7c8",
1870
1914
  "og-mainnet": "0x5d46805BBFAcA875a96Ebbd22Aaa3DE4A81180f5",
@@ -1881,6 +1925,7 @@ var addresses16 = {
1881
1925
  "superposition-mainnet": "0x8EE21165Ecb7562BA716c9549C1dE751282b9B33",
1882
1926
  "taiko-mainnet": "0x77C71633C34C3784ede189d74223122422492a0f",
1883
1927
  "telos-mainnet": "0x2086f755A6d9254045C257ea3d382ef854849B0f",
1928
+ "tempo-mainnet": "0x8c76e2F6C5ceDA9AA7772e7efF30280226c44392",
1884
1929
  "xdc-mainnet": "0x8E2E38711080bF8AAb9C74f434d2bae70e67ae44"
1885
1930
  };
1886
1931
  var transactionHashes16 = {
@@ -1903,12 +1948,14 @@ var transactionHashes16 = {
1903
1948
  "goat-mainnet": "0x2392932f926a7f441a21f58928cd3460c405758c7ee58b93135639547ed884c3",
1904
1949
  "gravity-mainnet": "0xf093faaf0f59dcd24d98aa0df857e4f8fa3a7cef6a29cd3ce6873df08f2305bf",
1905
1950
  "hemi-mainnet": "0x9e821b7fb88ef662e2b375fcbe9f1891dd2b964029c84dafac6046784e06ec2a",
1951
+ "horizen-mainnet": "0xf0d2918ce68861c4b8aeaad2f687dcb4530ee822f3d6c592c78ce84fac82fae9",
1906
1952
  "ink-mainnet": "0xf7f1d2db41db3573b8c3f7e54ca9097712c73256771165a5fd987e72819c94c1",
1907
1953
  "iota-mainnet": "0x0ecb6e912bdeaacb31b7a5e78b900cdb09eb05626db7fe2b910586e74f3a74d0",
1908
1954
  "islander-mainnet": "0x4e4e0fe50ee78d246eefb031ae2f6719b6b3eb834000fee6d9dc8970fe9cee71",
1909
1955
  "klaytn-mainnet": "0x7f198d23225a137fd5e590378175bf2a420f707fa62c7a50191cb9a3b60a0774",
1910
1956
  "klaytn-testnet": "0x4c9a9f1b08200cbcd55c2cfc87d6f1c7fa21f4e2984d38c3a7dc45fa7ed17e50",
1911
1957
  "lightlink-mainnet": "0x7711fece4dea404e6407a2a7d07dea94311eebcb10927c7c8349ebb9316614ec",
1958
+ "moderato-testnet": "0x2902aa71d24742809832b280d436aca1f0e000f6cf0c20663595695948eaa2dc",
1912
1959
  "nibiru-mainnet": "0x935f0d7553a34c2ac810411c3bbfa399524e0060dcaa45b702dec6c3bc2eda14",
1913
1960
  "odyssey-testnet": "0x3b2651c4d97f806d88c0911323bcf214af4844c0766552fa224c4c944168ad38",
1914
1961
  "og-mainnet": "0xe6d01e8fd0133567d1c0d91066c9f693f2aa4e1369df15bab6d800fe24451649",
@@ -1925,10 +1972,13 @@ var transactionHashes16 = {
1925
1972
  "superposition-mainnet": "0x787861ff02160a6172e96d7f4b064a016a39179b0886842b5f3e0d8266062419",
1926
1973
  "taiko-mainnet": "0x850187f5dc8c40aee5265bd9eff929e329dac20a0943d4cf2981b77db9de27f1",
1927
1974
  "telos-mainnet": "0x56fce4f5ab8243e01b8a4972c913e22549a450db69da3e8482b45038b1cece29",
1975
+ "tempo-mainnet": "0x1aa94df9901367cdc3669b873892d859ebd3c9c5d24a4a5d89ade5c08e54fa3b",
1928
1976
  "xdc-mainnet": "0x3f3a8d1953ea9b5109fcd53e03ca94bc61463c07e3ae67836a4bc16a87fe5070"
1929
1977
  };
1930
1978
  var abi016 = [{ "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" }];
1931
- var abi12 = [{ "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": [], "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" }];
1979
+ var abi14 = [{ "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": [], "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" }];
1980
+ var abi22 = [{ "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" }];
1981
+ var abi3 = [{ "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" }];
1932
1982
  var abis16 = {
1933
1983
  "abstract-mainnet": abi016,
1934
1984
  "ape-mainnet": abi016,
@@ -1936,42 +1986,45 @@ var abis16 = {
1936
1986
  "bera-mainnet": abi016,
1937
1987
  "bl3-testnet": abi016,
1938
1988
  "botanix-mainnet": abi016,
1939
- "bsc-sandbox-local": abi12,
1989
+ "bsc-sandbox-local": abi14,
1940
1990
  "camp-mainnet": abi016,
1941
1991
  "cronosevm-mainnet": abi016,
1942
1992
  "degen-mainnet": abi016,
1943
1993
  "doma-mainnet": abi016,
1944
1994
  "edu-mainnet": abi016,
1945
- "flare-mainnet": abi12,
1995
+ "flare-mainnet": abi14,
1946
1996
  "flow-mainnet": abi016,
1947
1997
  "fuse-mainnet": abi016,
1948
1998
  "gatelayer-mainnet": abi016,
1949
1999
  "glue-mainnet": abi016,
1950
2000
  "goat-mainnet": abi016,
1951
- "gravity-mainnet": abi12,
2001
+ "gravity-mainnet": abi14,
1952
2002
  "hemi-mainnet": abi016,
2003
+ "horizen-mainnet": abi016,
1953
2004
  "ink-mainnet": abi016,
1954
- "iota-mainnet": abi12,
2005
+ "iota-mainnet": abi14,
1955
2006
  "islander-mainnet": abi016,
1956
- "klaytn-mainnet": abi12,
1957
- "klaytn-testnet": abi12,
1958
- "lightlink-mainnet": abi12,
2007
+ "klaytn-mainnet": abi14,
2008
+ "klaytn-testnet": abi14,
2009
+ "lightlink-mainnet": abi14,
2010
+ "moderato-testnet": abi22,
1959
2011
  "nibiru-mainnet": abi016,
1960
2012
  "odyssey-testnet": abi016,
1961
2013
  "og-mainnet": abi016,
1962
2014
  "orderly-mainnet": abi016,
1963
- "peaq-mainnet": abi12,
2015
+ "peaq-mainnet": abi14,
1964
2016
  "plumephoenix-mainnet": abi016,
1965
- "polygon-sandbox-local": abi12,
1966
- "rarible-mainnet": abi12,
2017
+ "polygon-sandbox-local": abi14,
2018
+ "rarible-mainnet": abi14,
1967
2019
  "redbelly-mainnet": abi016,
1968
2020
  "rootstock-mainnet": abi016,
1969
2021
  "somnia-mainnet": abi016,
1970
2022
  "stable-mainnet": abi016,
1971
2023
  "story-mainnet": abi016,
1972
2024
  "superposition-mainnet": abi016,
1973
- "taiko-mainnet": abi12,
2025
+ "taiko-mainnet": abi14,
1974
2026
  "telos-mainnet": abi016,
2027
+ "tempo-mainnet": abi3,
1975
2028
  "xdc-mainnet": abi016
1976
2029
  };
1977
2030
 
@@ -2044,35 +2097,35 @@ var transactionHashes17 = {
2044
2097
  "xdc-mainnet": "0x6d5184c2091966c1b1bd48f4e27b25124e7f926cc79e1442ec5e201fbc2b506a"
2045
2098
  };
2046
2099
  var abi017 = [{ "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" }];
2047
- var abi13 = [{ "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": [], "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" }];
2100
+ var abi15 = [{ "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": [], "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" }];
2048
2101
  var abis17 = {
2049
2102
  "abstract-mainnet": abi017,
2050
2103
  "ape-mainnet": abi017,
2051
2104
  "bl3-testnet": abi017,
2052
- "bsc-sandbox-local": abi13,
2105
+ "bsc-sandbox-local": abi15,
2053
2106
  "degen-mainnet": abi017,
2054
- "flare-mainnet": abi13,
2107
+ "flare-mainnet": abi15,
2055
2108
  "flow-mainnet": abi017,
2056
2109
  "fuse-mainnet": abi017,
2057
2110
  "glue-mainnet": abi017,
2058
2111
  "goat-mainnet": abi017,
2059
- "gravity-mainnet": abi13,
2112
+ "gravity-mainnet": abi15,
2060
2113
  "hemi-mainnet": abi017,
2061
- "iota-mainnet": abi13,
2114
+ "iota-mainnet": abi15,
2062
2115
  "islander-mainnet": abi017,
2063
- "klaytn-mainnet": abi13,
2064
- "klaytn-testnet": abi13,
2065
- "lightlink-mainnet": abi13,
2116
+ "klaytn-mainnet": abi15,
2117
+ "klaytn-testnet": abi15,
2118
+ "lightlink-mainnet": abi15,
2066
2119
  "nibiru-mainnet": abi017,
2067
2120
  "odyssey-testnet": abi017,
2068
2121
  "og-mainnet": abi017,
2069
2122
  "peaq-mainnet": abi017,
2070
2123
  "plumephoenix-mainnet": abi017,
2071
- "rarible-mainnet": abi13,
2124
+ "rarible-mainnet": abi15,
2072
2125
  "rootstock-mainnet": abi017,
2073
2126
  "somnia-mainnet": abi017,
2074
2127
  "story-mainnet": abi017,
2075
- "taiko-mainnet": abi13,
2128
+ "taiko-mainnet": abi15,
2076
2129
  "telos-mainnet": abi017,
2077
2130
  "xdc-mainnet": abi017
2078
2131
  };
@@ -2557,6 +2610,7 @@ var addresses26 = {
2557
2610
  "gravity-mainnet": "0x9c2dc7377717603eB92b2655c5f2E7997a4945BD",
2558
2611
  "hedera-mainnet": "0x8a2B28364102Bea189D99A475C494330Ef2bDD0B",
2559
2612
  "hemi-mainnet": "0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6",
2613
+ "horizen-mainnet": "0x88853D410299BCBfE5fCC9Eef93c03115E908279",
2560
2614
  "ink-mainnet": "0x45f1A95A4D3f3836523F5c83673c797f4d4d263B",
2561
2615
  "iota-mainnet": "0x1C10CC06DC6D35970d1D53B2A23c76ef370d4135",
2562
2616
  "islander-mainnet": "0x808d7c71ad2ba3FA531b068a2417C63106BC0949",
@@ -2568,6 +2622,7 @@ var addresses26 = {
2568
2622
  "mantle-mainnet": "0x41B491285A4f888F9f636cEc8a363AB9770a0AEF",
2569
2623
  "mantlesep-testnet": "0xF1815bd50389c46847f0Bda824eC8da914045D14",
2570
2624
  "metis-mainnet": "0xcbE78230CcA58b9EF4c3c5D1bC0D7E4b3206588a",
2625
+ "moderato-testnet": "0x60219C44E146BAf36002eA73767820238Ebc1db6",
2571
2626
  "monad-testnet": "0x43F2376D5D03553aE72F4A8093bbe9de4336EB08",
2572
2627
  "nibiru-mainnet": "0x08C49257767c1f92634A9cDbF0663Af0356a472A",
2573
2628
  "odyssey-testnet": "0xf4D9235269a96aaDaFc9aDAe454a0618eBE37949",
@@ -2596,6 +2651,7 @@ var addresses26 = {
2596
2651
  "swell-mainnet": "0x851C9D74BF5cfAEB4a0082A55a65A8F2718b337F",
2597
2652
  "taiko-mainnet": "0x45d417612e177672958dC0537C45a8f8d754Ac2E",
2598
2653
  "telos-mainnet": "0x88853D410299BCBfE5fCC9Eef93c03115E908279",
2654
+ "tempo-mainnet": "0x19Ff94Fe4C93D546e4DB3E1FB124D45366B0b9F5",
2599
2655
  "unichain-mainnet": "0xB1EeAD6959cb5bB9B20417d6689922523B2B86C3",
2600
2656
  "xdc-mainnet": "0x2761c39102BCF7fc6365580d94cd1882F9cc2650",
2601
2657
  "zkconsensys-mainnet": "0x5f688F563Dc16590e570f97b542FA87931AF2feD"
@@ -2633,6 +2689,7 @@ var transactionHashes26 = {
2633
2689
  "gravity-mainnet": "0xd817c9f51782f326707974d92c41d64444dfc34b848fecd4a3ef044558d3456b",
2634
2690
  "hedera-mainnet": "0xf299ebdeb1187a42d8c86f5238772489335540499084e0d8addcd327d49561d4",
2635
2691
  "hemi-mainnet": "0x0a42c1ba9dae5a54366083824587eda117e56d5135e4010ebc1ab9fba1131eb4",
2692
+ "horizen-mainnet": "0x196152d134461fc95a87d55d94621af86bf8f932746abd68ecbdb537563ae3e6",
2636
2693
  "ink-mainnet": "0x88c09ca4533e0711aa59c4eb8ce82ce2a402a561975a40822918244cca015133",
2637
2694
  "iota-mainnet": "0x8d8d71e6620f16e3d21da01aff8590531c15f0a3639283437aa5cf81081245c4",
2638
2695
  "islander-mainnet": "0xc449519259930b36073d3699ce0b6f7419ece1e35827afccca4906fb7af4b49d",
@@ -2644,6 +2701,7 @@ var transactionHashes26 = {
2644
2701
  "mantle-mainnet": "0x778e33a4ab167019fed9215b07dd79ee0e5fd39d1f13e8439b7a932f1433cdd9",
2645
2702
  "mantlesep-testnet": "0xfccddd244ae5059f75bed8c4df25c68757451db037444d811de3b703fa624dd1",
2646
2703
  "metis-mainnet": "0x0444fdf3d5b1a49ddb05319f26c368ed5d508f41a31e9bddd339ca14c2414f50",
2704
+ "moderato-testnet": "0x6bfeb0bc7ad884972482accb9d444c14ce2540abf90523544393ffe7b82fdd23",
2647
2705
  "monad-testnet": "0x6c6deef6c38dc7cfb68f5c73826f594987fa607c874b24e1e61c60e12da678c1",
2648
2706
  "nibiru-mainnet": "0xa2bd96d48c61455850142cb2498656a989ca010c6b58aabe90695d2380109c8f",
2649
2707
  "odyssey-testnet": "0x283495091b82614ee6ff98f333309d8fae3e81dbc6127e5fea6779e049f5954d",
@@ -2671,11 +2729,13 @@ var transactionHashes26 = {
2671
2729
  "swell-mainnet": "0x15efb795d18d92ed02681e380ac4b952bb6ae595a8844f558ba279cbfd3f13e1",
2672
2730
  "taiko-mainnet": "0x8e3284393f7b4b8c42d7f5a7341b8b37edcb39268ab797720867a1a5768a2349",
2673
2731
  "telos-mainnet": "0x4fdb7ee7f263bda17296c408bd5ab9c40cd870a2c76aacdbe57aad19e3806f87",
2732
+ "tempo-mainnet": "0x0bdee3348a9e89bca28478975e43e652422aa45acbecb3fafe66d2b6c8676110",
2674
2733
  "unichain-mainnet": "0x615ce6efe0118e25f19d1c32712b764b51154e69f480af1716bb981ec7999a71",
2675
2734
  "xdc-mainnet": "0x96433e60dee0257efc761a4590c5a0bb32ceb2acdd6a1a3ac52bcbd5d286e756",
2676
2735
  "zkconsensys-mainnet": "0xb2cebe8a3e8b60dc2da92c6d16bb88f1e1550f110dd64a3274030cda08cc494e"
2677
2736
  };
2678
2737
  var abi026 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "uint16", "name": "_queueCapacity", "type": "uint16" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "BusCodec_InvalidBusBytesLength", "type": "error" }, { "inputs": [], "name": "BusCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "BusCodec_InvalidPassengersBytesLength", "type": "error" }, { "inputs": [{ "internalType": "bool", "name": "nativeDrop", "type": "bool" }], "name": "Bus_InvalidFare", "type": "error" }, { "inputs": [{ "internalType": "uint8", "name": "numPassengers", "type": "uint8" }], "name": "Bus_InvalidNumPassengers", "type": "error" }, { "inputs": [], "name": "Bus_InvalidPassenger", "type": "error" }, { "inputs": [], "name": "Bus_QueueFull", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidEid", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidMsgValue", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidQueueCapacity", "type": "error" }, { "inputs": [], "name": "Messaging_MaxNumPassengersExceedsQueueCapacity", "type": "error" }, { "inputs": [], "name": "Messaging_NotEnoughPassengers", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "inputs": [], "name": "TaxiCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint72", "name": "startTicketId", "type": "uint72" }, { "indexed": false, "internalType": "uint8", "name": "numPassengers", "type": "uint8" }, { "indexed": false, "internalType": "bytes32", "name": "guid", "type": "bytes32" }], "name": "BusDriven", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint16", "name": "startSlot", "type": "uint16" }, { "indexed": false, "internalType": "uint16", "name": "endSlot", "type": "uint16" }], "name": "BusQueueStorageInitialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "indexed": false, "internalType": "uint80", "name": "fare", "type": "uint80" }, { "indexed": false, "internalType": "bytes", "name": "passenger", "type": "bytes" }], "name": "BusRode", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint80", "name": "busFare", "type": "uint80" }, { "indexed": false, "internalType": "uint80", "name": "busAndNativeDropFare", "type": "uint80" }], "name": "FaresSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }, { "indexed": false, "internalType": "uint128", "name": "nativeDropGasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint8", "name": "maxNumPassengers", "type": "uint8" }], "name": "MaxNumPassengersSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "nativeDropAmount", "type": "uint128" }], "name": "NativeDropAmountSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" }], "name": "NativeDropApplied", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" }], "name": "NativeDropFailed", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "inputs": [], "name": "MSG_TYPE_BUS", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MSG_TYPE_TAXI", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }], "name": "busQueues", "outputs": [{ "internalType": "uint8", "name": "maxNumPassengers", "type": "uint8" }, { "internalType": "uint80", "name": "busFare", "type": "uint80" }, { "internalType": "uint80", "name": "busAndNativeDropFare", "type": "uint80" }, { "internalType": "uint16", "name": "qLength", "type": "uint16" }, { "internalType": "uint72", "name": "nextTicketId", "type": "uint72" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bytes", "name": "_passengers", "type": "bytes" }], "name": "driveBus", "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": "receipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }, { "internalType": "uint128", "name": "nativeDropGasLimit", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint16", "name": "_index", "type": "uint16" }], "name": "getPassengerHash", "outputs": [{ "internalType": "bytes32", "name": "hash", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32[]", "name": "_dstEids", "type": "uint32[]" }, { "internalType": "uint16", "name": "_startSlot", "type": "uint16" }, { "internalType": "uint16", "name": "_endSlot", "type": "uint16" }], "name": "initializeBusQueueStorage", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }], "name": "nativeDropAmounts", "outputs": [{ "internalType": "uint128", "name": "nativeDropAmount", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "queueCapacity", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bytes", "name": "_passengers", "type": "bytes" }], "name": "quoteDriveBus", "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": "_dstEid", "type": "uint32" }, { "internalType": "uint8", "name": "_numPassengers", "type": "uint8" }], "name": "quoteFares", "outputs": [{ "internalType": "uint256", "name": "busFare", "type": "uint256" }, { "internalType": "uint256", "name": "busAndNativeDropFare", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_airdrop", "type": "bool" }], "name": "quoteRideBus", "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": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "receiver", "type": "bytes32" }, { "internalType": "uint64", "name": "amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }], "internalType": "struct TaxiParams", "name": "_params", "type": "tuple" }, { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }], "name": "quoteTaxi", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "receiver", "type": "bytes32" }, { "internalType": "uint64", "name": "amountSD", "type": "uint64" }, { "internalType": "bool", "name": "nativeDrop", "type": "bool" }], "internalType": "struct RideBusParams", "name": "_params", "type": "tuple" }], "name": "rideBus", "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": "receipt", "type": "tuple" }, { "components": [{ "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "internalType": "bytes", "name": "passengerBytes", "type": "bytes" }], "internalType": "struct Ticket", "name": "ticket", "type": "tuple" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint80", "name": "_busFare", "type": "uint80" }, { "internalType": "uint80", "name": "_busAndNativeDropFare", "type": "uint80" }], "name": "setFares", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }, { "internalType": "uint128", "name": "_nativeDropGasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint8", "name": "_maxNumPassengers", "type": "uint8" }], "name": "setMaxNumPassengers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint128", "name": "_nativeDropAmount", "type": "uint128" }], "name": "setNativeDropAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "receiver", "type": "bytes32" }, { "internalType": "uint64", "name": "amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }], "internalType": "struct TaxiParams", "name": "_params", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_messagingFee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "taxi", "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": "receipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
2738
+ var abi16 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "uint16", "name": "_queueCapacity", "type": "uint16" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "BusCodec_InvalidBusBytesLength", "type": "error" }, { "inputs": [], "name": "BusCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "BusCodec_InvalidPassengersBytesLength", "type": "error" }, { "inputs": [{ "internalType": "bool", "name": "nativeDrop", "type": "bool" }], "name": "Bus_InvalidFare", "type": "error" }, { "inputs": [{ "internalType": "uint8", "name": "numPassengers", "type": "uint8" }], "name": "Bus_InvalidNumPassengers", "type": "error" }, { "inputs": [], "name": "Bus_InvalidPassenger", "type": "error" }, { "inputs": [], "name": "Bus_QueueFull", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidEid", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidMsgValue", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidQueueCapacity", "type": "error" }, { "inputs": [], "name": "Messaging_MaxNumPassengersExceedsQueueCapacity", "type": "error" }, { "inputs": [], "name": "Messaging_NotEnoughPassengers", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "inputs": [], "name": "TaxiCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "TokenMessaging_OnlyAltToken", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint72", "name": "startTicketId", "type": "uint72" }, { "indexed": false, "internalType": "uint8", "name": "numPassengers", "type": "uint8" }, { "indexed": false, "internalType": "bytes32", "name": "guid", "type": "bytes32" }], "name": "BusDriven", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint16", "name": "startSlot", "type": "uint16" }, { "indexed": false, "internalType": "uint16", "name": "endSlot", "type": "uint16" }], "name": "BusQueueStorageInitialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "indexed": false, "internalType": "uint80", "name": "fare", "type": "uint80" }, { "indexed": false, "internalType": "bytes", "name": "passenger", "type": "bytes" }], "name": "BusRode", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint80", "name": "busFare", "type": "uint80" }, { "indexed": false, "internalType": "uint80", "name": "busAndNativeDropFare", "type": "uint80" }], "name": "FaresSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }, { "indexed": false, "internalType": "uint128", "name": "nativeDropGasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint8", "name": "maxNumPassengers", "type": "uint8" }], "name": "MaxNumPassengersSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "nativeDropAmount", "type": "uint128" }], "name": "NativeDropAmountSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" }], "name": "NativeDropApplied", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" }], "name": "NativeDropFailed", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "inputs": [], "name": "MSG_TYPE_BUS", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MSG_TYPE_TAXI", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }], "name": "busQueues", "outputs": [{ "internalType": "uint8", "name": "maxNumPassengers", "type": "uint8" }, { "internalType": "uint80", "name": "busFare", "type": "uint80" }, { "internalType": "uint80", "name": "busAndNativeDropFare", "type": "uint80" }, { "internalType": "uint16", "name": "qLength", "type": "uint16" }, { "internalType": "uint72", "name": "nextTicketId", "type": "uint72" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bytes", "name": "_passengers", "type": "bytes" }], "name": "driveBus", "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": "receipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }, { "internalType": "uint128", "name": "nativeDropGasLimit", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint16", "name": "_index", "type": "uint16" }], "name": "getPassengerHash", "outputs": [{ "internalType": "bytes32", "name": "hash", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32[]", "name": "_dstEids", "type": "uint32[]" }, { "internalType": "uint16", "name": "_startSlot", "type": "uint16" }, { "internalType": "uint16", "name": "_endSlot", "type": "uint16" }], "name": "initializeBusQueueStorage", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }], "name": "nativeDropAmounts", "outputs": [{ "internalType": "uint128", "name": "nativeDropAmount", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "queueCapacity", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bytes", "name": "_passengers", "type": "bytes" }], "name": "quoteDriveBus", "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": "_dstEid", "type": "uint32" }, { "internalType": "uint8", "name": "_numPassengers", "type": "uint8" }], "name": "quoteFares", "outputs": [{ "internalType": "uint256", "name": "busFare", "type": "uint256" }, { "internalType": "uint256", "name": "busAndNativeDropFare", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_airdrop", "type": "bool" }], "name": "quoteRideBus", "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": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "receiver", "type": "bytes32" }, { "internalType": "uint64", "name": "amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }], "internalType": "struct TaxiParams", "name": "_params", "type": "tuple" }, { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }], "name": "quoteTaxi", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "receiver", "type": "bytes32" }, { "internalType": "uint64", "name": "amountSD", "type": "uint64" }, { "internalType": "bool", "name": "nativeDrop", "type": "bool" }], "internalType": "struct RideBusParams", "name": "_params", "type": "tuple" }], "name": "rideBus", "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": "receipt", "type": "tuple" }, { "components": [{ "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "internalType": "bytes", "name": "passengerBytes", "type": "bytes" }], "internalType": "struct Ticket", "name": "ticket", "type": "tuple" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint80", "name": "_busFare", "type": "uint80" }, { "internalType": "uint80", "name": "_busAndNativeDropFare", "type": "uint80" }], "name": "setFares", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }, { "internalType": "uint128", "name": "_nativeDropGasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint8", "name": "_maxNumPassengers", "type": "uint8" }], "name": "setMaxNumPassengers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "uint128", "name": "_nativeDropAmount", "type": "uint128" }], "name": "setNativeDropAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "receiver", "type": "bytes32" }, { "internalType": "uint64", "name": "amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }], "internalType": "struct TaxiParams", "name": "_params", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_messagingFee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "taxi", "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": "receipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
2679
2739
  var abis26 = {
2680
2740
  "abstract-mainnet": abi026,
2681
2741
  "ape-mainnet": abi026,
@@ -2710,6 +2770,7 @@ var abis26 = {
2710
2770
  "gravity-mainnet": abi026,
2711
2771
  "hedera-mainnet": abi026,
2712
2772
  "hemi-mainnet": abi026,
2773
+ "horizen-mainnet": abi026,
2713
2774
  "ink-mainnet": abi026,
2714
2775
  "iota-mainnet": abi026,
2715
2776
  "islander-mainnet": abi026,
@@ -2721,6 +2782,7 @@ var abis26 = {
2721
2782
  "mantle-mainnet": abi026,
2722
2783
  "mantlesep-testnet": abi026,
2723
2784
  "metis-mainnet": abi026,
2785
+ "moderato-testnet": abi16,
2724
2786
  "monad-testnet": abi026,
2725
2787
  "nibiru-mainnet": abi026,
2726
2788
  "odyssey-testnet": abi026,
@@ -2749,6 +2811,7 @@ var abis26 = {
2749
2811
  "swell-mainnet": abi026,
2750
2812
  "taiko-mainnet": abi026,
2751
2813
  "telos-mainnet": abi026,
2814
+ "tempo-mainnet": abi026,
2752
2815
  "unichain-mainnet": abi026,
2753
2816
  "xdc-mainnet": abi026,
2754
2817
  "zkconsensys-mainnet": abi026
@@ -2795,6 +2858,7 @@ var addresses27 = {
2795
2858
  "gravity-mainnet": "0x0dB9afb4C33be43a0a0e396Fd1383B4ea97aB10a",
2796
2859
  "hedera-mainnet": "0xc8D5b106fb3dB1140cfa12a94666de02A1d26183",
2797
2860
  "hemi-mainnet": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
2861
+ "horizen-mainnet": "0xB0B2391a32E066FDf354ef7f4199300f920789F0",
2798
2862
  "ink-mainnet": "0x45A01E4e04F14f7A4a6702c74187c5F6222033cd",
2799
2863
  "iota-mainnet": "0x8c1014B5936dD88BAA5F4DB0423C3003615E03a0",
2800
2864
  "islander-mainnet": "0x693604E757AC7e2c4A8263594A18d69c35562341",
@@ -2806,6 +2870,7 @@ var addresses27 = {
2806
2870
  "mantle-mainnet": "0x4e8c9BaC25CEF251352aCe831270D564615b9Ce1",
2807
2871
  "mantlesep-testnet": "0x674843C06FF83502ddb4D37c2E09C01cdA38cbc8",
2808
2872
  "metis-mainnet": "0x3da4f8E456AC648c489c286B99Ca37B666be7C4C",
2873
+ "moderato-testnet": "0xd027aFcc69ffA2bCB288BA68da6B71EC90d7B1d2",
2809
2874
  "monad-testnet": "0xc8D5b106fb3dB1140cfa12a94666de02A1d26183",
2810
2875
  "nibiru-mainnet": "0x851C9D74BF5cfAEB4a0082A55a65A8F2718b337F",
2811
2876
  "odyssey-testnet": "0x99e799CBD972362a84145D98498Db4430A66a734",
@@ -2834,6 +2899,7 @@ var addresses27 = {
2834
2899
  "swell-mainnet": "0x93819FfD972Fd57b1AAf42ba85e6B437D60FC807",
2835
2900
  "taiko-mainnet": "0x8c1014B5936dD88BAA5F4DB0423C3003615E03a0",
2836
2901
  "telos-mainnet": "0xa7F3e26df31Abcb20a6Fe6bE35DdC60702a32455",
2902
+ "tempo-mainnet": "0x8F90F13463231F7FB6148077b0d989d2eeb956aD",
2837
2903
  "unichain-mainnet": "0x6D205337F45D6850c3c3006e28d5b52c8a432c35",
2838
2904
  "xdc-mainnet": "0x67B302E35Aef5EEE8c32D934F5856869EF428330",
2839
2905
  "zkconsensys-mainnet": "0xf5F74d2508e97A3a7CCA2ccb75c8325D66b46152"
@@ -2871,6 +2937,7 @@ var transactionHashes27 = {
2871
2937
  "gravity-mainnet": "0xc51128e1a0da862343fe0c5238740b73ff9bbc514f4ad40fb0f127afb81e9965",
2872
2938
  "hedera-mainnet": "0x4d15bfc718e15d8fcca2b4429adee42c4556ddfc3e46a99179c38a276e0b24db",
2873
2939
  "hemi-mainnet": "0x2e80159d36c83f0bf6b82024a380b50143a283e35dc234a040bf6890540f3d6a",
2940
+ "horizen-mainnet": "0x424978266c6c2de412511500ad8a31386f4431e659240a01286d8398af4d8ce3",
2874
2941
  "ink-mainnet": "0x093ea14517788278432ec700404fc441c848c4af55f4e1ba6bc5f0217732adfc",
2875
2942
  "iota-mainnet": "0x5eaf7ec9da82638a2a5ace19e27d0289996b63229cd3b1deebf3d237c85890fc",
2876
2943
  "islander-mainnet": "0xd56828bb08fd00cf46167d95598472020865d23f5b7cb4ca86a516d709d6d38b",
@@ -2882,6 +2949,7 @@ var transactionHashes27 = {
2882
2949
  "mantle-mainnet": "0x1b801bbd019b08cfd1fe52267f9994d9d364ed7813baabd429a2940ea86673c7",
2883
2950
  "mantlesep-testnet": "0x081e3cdf6aa8c00924de3f8208bceeea3b63cec608ac63e2089c652a8db6218d",
2884
2951
  "metis-mainnet": "0xc06e2557441e92a050e438936b43c5e44e5eda0b3d2c3be8867ec8900e4a5172",
2952
+ "moderato-testnet": "0xe6c90e6fbea951f7ca9d7e62249bb47641a16534a13da23a3ec4432f3c598712",
2885
2953
  "monad-testnet": "0x56af3a4f4dbfd85d9ddffb8e091a1a0ab25ac78a374147fd162c40dc9f1ca348",
2886
2954
  "nibiru-mainnet": "0x482a3b44e425cfb8982d13acb3111f336fe7d0f6c76f6a30eaf77a6f1d98a622",
2887
2955
  "odyssey-testnet": "0xa3a891de786dc274776b9c06d052e1717990e46c69b5e6e5de872d68e4529250",
@@ -2909,6 +2977,7 @@ var transactionHashes27 = {
2909
2977
  "swell-mainnet": "0xab6d5e17117e1955d7b621635fb59c9ef984572420572d0b3915302e1f0306ea",
2910
2978
  "taiko-mainnet": "0x68764a18b669f644f0eadc0110979079a1f7af5d251639f7dc1c948c76c0eb28",
2911
2979
  "telos-mainnet": "0x75a469e6993c6687e9cb5ae636328b66855604c2ebde8258a7faa6a28bbeeecd",
2980
+ "tempo-mainnet": "0x9cdf5dcafe5754616b74cbb919849155faa68f4e066bb0d9490bdff354e94096",
2912
2981
  "unichain-mainnet": "0x2bdd21924441a2d0072a66733969b8dbec7c2b872da5eaff06ed252e42f7910e",
2913
2982
  "xdc-mainnet": "0x3787355174b56d26ce240943c8e99712e5c227f238b1d3a56a603fb89691dcbe",
2914
2983
  "zkconsensys-mainnet": "0x26a6acdc3c158680401ad46327df0396257319403fafa87cc2454514b94f304e"
@@ -2948,6 +3017,7 @@ var abis27 = {
2948
3017
  "gravity-mainnet": abi027,
2949
3018
  "hedera-mainnet": abi027,
2950
3019
  "hemi-mainnet": abi027,
3020
+ "horizen-mainnet": abi027,
2951
3021
  "ink-mainnet": abi027,
2952
3022
  "iota-mainnet": abi027,
2953
3023
  "islander-mainnet": abi027,
@@ -2959,6 +3029,7 @@ var abis27 = {
2959
3029
  "mantle-mainnet": abi027,
2960
3030
  "mantlesep-testnet": abi027,
2961
3031
  "metis-mainnet": abi027,
3032
+ "moderato-testnet": abi027,
2962
3033
  "monad-testnet": abi027,
2963
3034
  "nibiru-mainnet": abi027,
2964
3035
  "odyssey-testnet": abi027,
@@ -2987,6 +3058,7 @@ var abis27 = {
2987
3058
  "swell-mainnet": abi027,
2988
3059
  "taiko-mainnet": abi027,
2989
3060
  "telos-mainnet": abi027,
3061
+ "tempo-mainnet": abi027,
2990
3062
  "unichain-mainnet": abi027,
2991
3063
  "xdc-mainnet": abi027,
2992
3064
  "zkconsensys-mainnet": abi027
@@ -3178,23 +3250,23 @@ var transactionHashes31 = {
3178
3250
  "taiko-mainnet": "0xa7545d266337e5e72aa8b2c14f9f0c4983c1266bf52673c0a721a3c9d53f1950"
3179
3251
  };
3180
3252
  var abi031 = [{ "inputs": [{ "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "burnFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" }], "name": "decreaseAllowance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" }], "name": "increaseAllowance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }];
3181
- var abi14 = [{ "inputs": [{ "internalType": "address", "name": "caller", "type": "address" }], "name": "OnlyMinter", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "minter", "type": "address" }], "name": "MinterAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "minter", "type": "address" }], "name": "MinterRemoved", "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": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "_minter", "type": "address" }], "name": "addMinter", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }, { "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "burnFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" }], "name": "decreaseAllowance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" }], "name": "increaseAllowance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "minters", "outputs": [{ "internalType": "bool", "name": "canMint", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_minter", "type": "address" }], "name": "removeMinter", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
3253
+ var abi17 = [{ "inputs": [{ "internalType": "address", "name": "caller", "type": "address" }], "name": "OnlyMinter", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "minter", "type": "address" }], "name": "MinterAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "minter", "type": "address" }], "name": "MinterRemoved", "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": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "_minter", "type": "address" }], "name": "addMinter", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }, { "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "burnFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" }], "name": "decreaseAllowance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" }], "name": "increaseAllowance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "minters", "outputs": [{ "internalType": "bool", "name": "canMint", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_minter", "type": "address" }], "name": "removeMinter", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
3182
3254
  var abis31 = {
3183
3255
  "arbsep-testnet": abi031,
3184
3256
  "avalanche-testnet": abi031,
3185
- "bsc-sandbox-local": abi14,
3257
+ "bsc-sandbox-local": abi17,
3186
3258
  "ethereum-sandbox-local": abi031,
3187
- "flare-mainnet": abi14,
3188
- "gravity-mainnet": abi14,
3189
- "iota-mainnet": abi14,
3190
- "klaytn-mainnet": abi14,
3191
- "klaytn-testnet": abi14,
3192
- "lightlink-mainnet": abi14,
3259
+ "flare-mainnet": abi17,
3260
+ "gravity-mainnet": abi17,
3261
+ "iota-mainnet": abi17,
3262
+ "klaytn-mainnet": abi17,
3263
+ "klaytn-testnet": abi17,
3264
+ "lightlink-mainnet": abi17,
3193
3265
  "optsep-testnet": abi031,
3194
3266
  "polygon-sandbox-local": abi031,
3195
- "rarible-mainnet": abi14,
3267
+ "rarible-mainnet": abi17,
3196
3268
  "sepolia-testnet": abi031,
3197
- "taiko-mainnet": abi14
3269
+ "taiko-mainnet": abi17
3198
3270
  };
3199
3271
 
3200
3272
  // deployed/index.ts