@pendle/core-v2 6.6.0 → 6.6.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 (224) hide show
  1. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +4 -0
  2. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +766 -0
  3. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +4 -0
  4. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +99 -0
  5. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +4 -0
  6. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +210 -0
  7. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +4 -0
  8. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +1294 -0
  9. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +4 -0
  10. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +1602 -0
  11. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  19. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  20. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  22. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -88
  23. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  26. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  29. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +4 -0
  30. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.json +85 -0
  31. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +4 -0
  32. package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol → IPFixedPricePTAMMV2.sol}/IPFixedPricePTAMMSwapCallback.json +1 -1
  33. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +4 -0
  34. package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol/IPFixedPricePTAMM.json → IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.json} +285 -93
  35. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  36. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  37. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +156 -0
  38. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  39. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  40. package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +4 -0
  41. package/build/artifacts/contracts/interfaces/{IPActionCrossChain.sol/IPActionCrossChain.json → IPSwapHelper.sol/IPSwapHelper.json} +2 -2
  42. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  43. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  44. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  45. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +258 -1
  46. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  47. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +265 -3
  48. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +4 -0
  49. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.json +156 -0
  50. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  51. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  52. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  53. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  54. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  55. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  56. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  57. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +33 -2
  58. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +4 -0
  59. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +171 -0
  60. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  61. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  62. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  63. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  64. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  65. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  66. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  67. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  68. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  69. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  70. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  71. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  72. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  73. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  74. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  75. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  76. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  77. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  78. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  80. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  81. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  82. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  83. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  84. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  86. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  87. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  88. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  89. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  90. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  91. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  92. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  93. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  94. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  95. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  96. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  97. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  99. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  101. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  103. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  105. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  106. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  107. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  108. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  109. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  110. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  111. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  112. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  113. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  114. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  115. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  116. package/contracts/cross-chain/FixedPricePTAMMV2.sol +162 -0
  117. package/contracts/{router/ActionCrossChain.sol → cross-chain/PendleSwapHelper.sol} +11 -7
  118. package/contracts/cross-chain/funder/BridgeFunder.sol +61 -0
  119. package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +55 -0
  120. package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +64 -0
  121. package/contracts/interfaces/IPAllActionTypeV3.sol +1 -0
  122. package/contracts/interfaces/IPAllActionV3.sol +1 -3
  123. package/contracts/interfaces/IPBridgeFunder.sol +17 -0
  124. package/contracts/interfaces/IPFixedPricePTAMMV2.sol +58 -0
  125. package/contracts/interfaces/IPLimitRouter.sol +22 -0
  126. package/contracts/interfaces/{IPActionCrossChain.sol → IPSwapHelper.sol} +1 -1
  127. package/contracts/limit/LimitRouterBase.sol +101 -47
  128. package/contracts/limit/PendleLimitRouter.sol +1 -1
  129. package/contracts/limit/helpers/MintSyHelper.sol +114 -0
  130. package/contracts/offchain-helpers/PendleFeeSetter.sol +19 -1
  131. package/contracts/offchain-helpers/PendleProxyAdmin.sol +11 -0
  132. package/contracts/router/base/ActionBase.sol +16 -2
  133. package/deployments/1-core.json +1 -0
  134. package/deployments/1-offchain-helper.json +1 -1
  135. package/deployments/10-core.json +1 -0
  136. package/deployments/10-offchain-helper.json +1 -1
  137. package/deployments/130-core.json +1 -0
  138. package/deployments/143-core.json +1 -0
  139. package/deployments/146-core.json +1 -0
  140. package/deployments/146-offchain-helper.json +1 -1
  141. package/deployments/42161-core.json +1 -0
  142. package/deployments/42161-offchain-helper.json +1 -1
  143. package/deployments/4217-core.json +14 -0
  144. package/deployments/43114-core.json +1 -0
  145. package/deployments/5000-core.json +1 -0
  146. package/deployments/5000-offchain-helper.json +1 -1
  147. package/deployments/56-core.json +1 -0
  148. package/deployments/56-offchain-helper.json +1 -1
  149. package/deployments/57073-core.json +1 -0
  150. package/deployments/747474-core.json +1 -0
  151. package/deployments/80094-core.json +1 -0
  152. package/deployments/80094-offchain-helper.json +1 -1
  153. package/deployments/8453-core.json +1 -0
  154. package/deployments/8453-offchain-helper.json +1 -1
  155. package/deployments/9745-core.json +1 -0
  156. package/deployments/9745-offchain-helper.json +1 -1
  157. package/deployments/999-core.json +1 -0
  158. package/deployments/999-offchain-helper.json +1 -1
  159. package/package.json +1 -1
  160. package/typechain-types/BridgeFunder.ts +344 -0
  161. package/typechain-types/FixedPricePTAMMV2.ts +1104 -0
  162. package/typechain-types/IPAllActionV3.ts +0 -54
  163. package/typechain-types/IPBridgeFunder.ts +165 -0
  164. package/typechain-types/IPFixedPricePTAMMV2.ts +864 -0
  165. package/typechain-types/IPLimitRouter.ts +104 -0
  166. package/typechain-types/IPSwapHelper.ts +161 -0
  167. package/typechain-types/LimitRouterBase.ts +233 -5
  168. package/typechain-types/MintSyHelper.ts +230 -0
  169. package/typechain-types/OFTAdapterAltImpl.ts +1350 -0
  170. package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +1708 -0
  171. package/typechain-types/PendleFeeSetter.ts +53 -0
  172. package/typechain-types/PendleLimitRouter.ts +233 -5
  173. package/typechain-types/PendleProxyAdmin.ts +341 -0
  174. package/typechain-types/PendleSwapHelper.ts +161 -0
  175. package/typechain-types/ProxyAdmin.ts +341 -0
  176. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  177. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  178. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  179. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  180. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  181. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  182. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  183. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  184. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  185. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  186. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  187. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  188. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  189. package/typechain-types/factories/BridgeFunder__factory.ts +265 -0
  190. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  191. package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +824 -0
  192. package/typechain-types/factories/IPAllActionV3__factory.ts +0 -88
  193. package/typechain-types/factories/IPBridgeFunder__factory.ts +100 -0
  194. package/typechain-types/factories/IPFixedPricePTAMMV2__factory.ts +621 -0
  195. package/typechain-types/factories/IPLimitRouter__factory.ts +156 -0
  196. package/typechain-types/factories/IPSwapHelper__factory.ts +111 -0
  197. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  198. package/typechain-types/factories/LimitRouterBase__factory.ts +258 -1
  199. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  200. package/typechain-types/factories/MintSyHelper__factory.ts +168 -0
  201. package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1363 -0
  202. package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1702 -0
  203. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  204. package/typechain-types/factories/PendleFeeSetter__factory.ts +36 -1
  205. package/typechain-types/factories/PendleLimitRouter__factory.ts +268 -3
  206. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  207. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  208. package/typechain-types/factories/PendleProxyAdmin__factory.ts +229 -0
  209. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  210. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  211. package/typechain-types/factories/PendleSwapHelper__factory.ts +152 -0
  212. package/typechain-types/factories/ProxyAdmin__factory.ts +210 -0
  213. package/typechain-types/factories/Reflector__factory.ts +1 -1
  214. package/typechain-types/hardhat.d.ts +108 -0
  215. package/typechain-types/index.ts +22 -0
  216. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +0 -4
  217. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +0 -667
  218. package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +0 -4
  219. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +0 -4
  220. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +0 -4
  221. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +0 -4
  222. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +0 -99
  223. package/contracts/cross-chain/FixedPricePTAMM.sol +0 -200
  224. package/contracts/interfaces/IPFixedPricePTAMM.sol +0 -69
@@ -0,0 +1,1363 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ OFTAdapterAltImpl,
8
+ OFTAdapterAltImplInterface,
9
+ } from "../OFTAdapterAltImpl";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_token",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "address",
21
+ name: "_endpoint",
22
+ type: "address",
23
+ },
24
+ {
25
+ internalType: "address",
26
+ name: "_delegate",
27
+ type: "address",
28
+ },
29
+ ],
30
+ stateMutability: "nonpayable",
31
+ type: "constructor",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "InvalidDelegate",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "InvalidEndpointCall",
41
+ type: "error",
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: "InvalidLocalDecimals",
46
+ type: "error",
47
+ },
48
+ {
49
+ inputs: [
50
+ {
51
+ internalType: "bytes",
52
+ name: "options",
53
+ type: "bytes",
54
+ },
55
+ ],
56
+ name: "InvalidOptions",
57
+ type: "error",
58
+ },
59
+ {
60
+ inputs: [],
61
+ name: "LzTokenUnavailable",
62
+ type: "error",
63
+ },
64
+ {
65
+ inputs: [
66
+ {
67
+ internalType: "uint256",
68
+ name: "msgValue",
69
+ type: "uint256",
70
+ },
71
+ ],
72
+ name: "MsgValueNotZero",
73
+ type: "error",
74
+ },
75
+ {
76
+ inputs: [],
77
+ name: "NativeTokenUnavailable",
78
+ type: "error",
79
+ },
80
+ {
81
+ inputs: [
82
+ {
83
+ internalType: "uint32",
84
+ name: "eid",
85
+ type: "uint32",
86
+ },
87
+ ],
88
+ name: "NoPeer",
89
+ type: "error",
90
+ },
91
+ {
92
+ inputs: [
93
+ {
94
+ internalType: "uint256",
95
+ name: "msgValue",
96
+ type: "uint256",
97
+ },
98
+ ],
99
+ name: "NotEnoughNative",
100
+ type: "error",
101
+ },
102
+ {
103
+ inputs: [
104
+ {
105
+ internalType: "address",
106
+ name: "addr",
107
+ type: "address",
108
+ },
109
+ ],
110
+ name: "OnlyEndpoint",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [
115
+ {
116
+ internalType: "uint32",
117
+ name: "eid",
118
+ type: "uint32",
119
+ },
120
+ {
121
+ internalType: "bytes32",
122
+ name: "sender",
123
+ type: "bytes32",
124
+ },
125
+ ],
126
+ name: "OnlyPeer",
127
+ type: "error",
128
+ },
129
+ {
130
+ inputs: [],
131
+ name: "OnlySelf",
132
+ type: "error",
133
+ },
134
+ {
135
+ inputs: [
136
+ {
137
+ internalType: "bytes",
138
+ name: "result",
139
+ type: "bytes",
140
+ },
141
+ ],
142
+ name: "SimulationResult",
143
+ type: "error",
144
+ },
145
+ {
146
+ inputs: [
147
+ {
148
+ internalType: "uint256",
149
+ name: "amountLD",
150
+ type: "uint256",
151
+ },
152
+ {
153
+ internalType: "uint256",
154
+ name: "minAmountLD",
155
+ type: "uint256",
156
+ },
157
+ ],
158
+ name: "SlippageExceeded",
159
+ type: "error",
160
+ },
161
+ {
162
+ anonymous: false,
163
+ inputs: [
164
+ {
165
+ components: [
166
+ {
167
+ internalType: "uint32",
168
+ name: "eid",
169
+ type: "uint32",
170
+ },
171
+ {
172
+ internalType: "uint16",
173
+ name: "msgType",
174
+ type: "uint16",
175
+ },
176
+ {
177
+ internalType: "bytes",
178
+ name: "options",
179
+ type: "bytes",
180
+ },
181
+ ],
182
+ indexed: false,
183
+ internalType: "struct EnforcedOptionParam[]",
184
+ name: "_enforcedOptions",
185
+ type: "tuple[]",
186
+ },
187
+ ],
188
+ name: "EnforcedOptionSet",
189
+ type: "event",
190
+ },
191
+ {
192
+ anonymous: false,
193
+ inputs: [
194
+ {
195
+ indexed: false,
196
+ internalType: "address",
197
+ name: "inspector",
198
+ type: "address",
199
+ },
200
+ ],
201
+ name: "MsgInspectorSet",
202
+ type: "event",
203
+ },
204
+ {
205
+ anonymous: false,
206
+ inputs: [
207
+ {
208
+ indexed: true,
209
+ internalType: "bytes32",
210
+ name: "guid",
211
+ type: "bytes32",
212
+ },
213
+ {
214
+ indexed: false,
215
+ internalType: "uint32",
216
+ name: "srcEid",
217
+ type: "uint32",
218
+ },
219
+ {
220
+ indexed: true,
221
+ internalType: "address",
222
+ name: "toAddress",
223
+ type: "address",
224
+ },
225
+ {
226
+ indexed: false,
227
+ internalType: "uint256",
228
+ name: "amountReceivedLD",
229
+ type: "uint256",
230
+ },
231
+ ],
232
+ name: "OFTReceived",
233
+ type: "event",
234
+ },
235
+ {
236
+ anonymous: false,
237
+ inputs: [
238
+ {
239
+ indexed: true,
240
+ internalType: "bytes32",
241
+ name: "guid",
242
+ type: "bytes32",
243
+ },
244
+ {
245
+ indexed: false,
246
+ internalType: "uint32",
247
+ name: "dstEid",
248
+ type: "uint32",
249
+ },
250
+ {
251
+ indexed: true,
252
+ internalType: "address",
253
+ name: "fromAddress",
254
+ type: "address",
255
+ },
256
+ {
257
+ indexed: false,
258
+ internalType: "uint256",
259
+ name: "amountSentLD",
260
+ type: "uint256",
261
+ },
262
+ {
263
+ indexed: false,
264
+ internalType: "uint256",
265
+ name: "amountReceivedLD",
266
+ type: "uint256",
267
+ },
268
+ ],
269
+ name: "OFTSent",
270
+ type: "event",
271
+ },
272
+ {
273
+ anonymous: false,
274
+ inputs: [
275
+ {
276
+ indexed: true,
277
+ internalType: "address",
278
+ name: "previousOwner",
279
+ type: "address",
280
+ },
281
+ {
282
+ indexed: true,
283
+ internalType: "address",
284
+ name: "newOwner",
285
+ type: "address",
286
+ },
287
+ ],
288
+ name: "OwnershipTransferred",
289
+ type: "event",
290
+ },
291
+ {
292
+ anonymous: false,
293
+ inputs: [
294
+ {
295
+ indexed: false,
296
+ internalType: "uint32",
297
+ name: "eid",
298
+ type: "uint32",
299
+ },
300
+ {
301
+ indexed: false,
302
+ internalType: "bytes32",
303
+ name: "peer",
304
+ type: "bytes32",
305
+ },
306
+ ],
307
+ name: "PeerSet",
308
+ type: "event",
309
+ },
310
+ {
311
+ anonymous: false,
312
+ inputs: [
313
+ {
314
+ indexed: false,
315
+ internalType: "address",
316
+ name: "preCrimeAddress",
317
+ type: "address",
318
+ },
319
+ ],
320
+ name: "PreCrimeSet",
321
+ type: "event",
322
+ },
323
+ {
324
+ inputs: [],
325
+ name: "SEND",
326
+ outputs: [
327
+ {
328
+ internalType: "uint16",
329
+ name: "",
330
+ type: "uint16",
331
+ },
332
+ ],
333
+ stateMutability: "view",
334
+ type: "function",
335
+ },
336
+ {
337
+ inputs: [],
338
+ name: "SEND_AND_CALL",
339
+ outputs: [
340
+ {
341
+ internalType: "uint16",
342
+ name: "",
343
+ type: "uint16",
344
+ },
345
+ ],
346
+ stateMutability: "view",
347
+ type: "function",
348
+ },
349
+ {
350
+ inputs: [
351
+ {
352
+ components: [
353
+ {
354
+ internalType: "uint32",
355
+ name: "srcEid",
356
+ type: "uint32",
357
+ },
358
+ {
359
+ internalType: "bytes32",
360
+ name: "sender",
361
+ type: "bytes32",
362
+ },
363
+ {
364
+ internalType: "uint64",
365
+ name: "nonce",
366
+ type: "uint64",
367
+ },
368
+ ],
369
+ internalType: "struct Origin",
370
+ name: "origin",
371
+ type: "tuple",
372
+ },
373
+ ],
374
+ name: "allowInitializePath",
375
+ outputs: [
376
+ {
377
+ internalType: "bool",
378
+ name: "",
379
+ type: "bool",
380
+ },
381
+ ],
382
+ stateMutability: "view",
383
+ type: "function",
384
+ },
385
+ {
386
+ inputs: [],
387
+ name: "approvalRequired",
388
+ outputs: [
389
+ {
390
+ internalType: "bool",
391
+ name: "",
392
+ type: "bool",
393
+ },
394
+ ],
395
+ stateMutability: "pure",
396
+ type: "function",
397
+ },
398
+ {
399
+ inputs: [
400
+ {
401
+ internalType: "uint32",
402
+ name: "_eid",
403
+ type: "uint32",
404
+ },
405
+ {
406
+ internalType: "uint16",
407
+ name: "_msgType",
408
+ type: "uint16",
409
+ },
410
+ {
411
+ internalType: "bytes",
412
+ name: "_extraOptions",
413
+ type: "bytes",
414
+ },
415
+ ],
416
+ name: "combineOptions",
417
+ outputs: [
418
+ {
419
+ internalType: "bytes",
420
+ name: "",
421
+ type: "bytes",
422
+ },
423
+ ],
424
+ stateMutability: "view",
425
+ type: "function",
426
+ },
427
+ {
428
+ inputs: [],
429
+ name: "decimalConversionRate",
430
+ outputs: [
431
+ {
432
+ internalType: "uint256",
433
+ name: "",
434
+ type: "uint256",
435
+ },
436
+ ],
437
+ stateMutability: "view",
438
+ type: "function",
439
+ },
440
+ {
441
+ inputs: [],
442
+ name: "endpoint",
443
+ outputs: [
444
+ {
445
+ internalType: "contract ILayerZeroEndpointV2",
446
+ name: "",
447
+ type: "address",
448
+ },
449
+ ],
450
+ stateMutability: "view",
451
+ type: "function",
452
+ },
453
+ {
454
+ inputs: [
455
+ {
456
+ internalType: "uint32",
457
+ name: "eid",
458
+ type: "uint32",
459
+ },
460
+ {
461
+ internalType: "uint16",
462
+ name: "msgType",
463
+ type: "uint16",
464
+ },
465
+ ],
466
+ name: "enforcedOptions",
467
+ outputs: [
468
+ {
469
+ internalType: "bytes",
470
+ name: "enforcedOption",
471
+ type: "bytes",
472
+ },
473
+ ],
474
+ stateMutability: "view",
475
+ type: "function",
476
+ },
477
+ {
478
+ inputs: [
479
+ {
480
+ components: [
481
+ {
482
+ internalType: "uint32",
483
+ name: "srcEid",
484
+ type: "uint32",
485
+ },
486
+ {
487
+ internalType: "bytes32",
488
+ name: "sender",
489
+ type: "bytes32",
490
+ },
491
+ {
492
+ internalType: "uint64",
493
+ name: "nonce",
494
+ type: "uint64",
495
+ },
496
+ ],
497
+ internalType: "struct Origin",
498
+ name: "",
499
+ type: "tuple",
500
+ },
501
+ {
502
+ internalType: "bytes",
503
+ name: "",
504
+ type: "bytes",
505
+ },
506
+ {
507
+ internalType: "address",
508
+ name: "_sender",
509
+ type: "address",
510
+ },
511
+ ],
512
+ name: "isComposeMsgSender",
513
+ outputs: [
514
+ {
515
+ internalType: "bool",
516
+ name: "",
517
+ type: "bool",
518
+ },
519
+ ],
520
+ stateMutability: "view",
521
+ type: "function",
522
+ },
523
+ {
524
+ inputs: [
525
+ {
526
+ internalType: "uint32",
527
+ name: "_eid",
528
+ type: "uint32",
529
+ },
530
+ {
531
+ internalType: "bytes32",
532
+ name: "_peer",
533
+ type: "bytes32",
534
+ },
535
+ ],
536
+ name: "isPeer",
537
+ outputs: [
538
+ {
539
+ internalType: "bool",
540
+ name: "",
541
+ type: "bool",
542
+ },
543
+ ],
544
+ stateMutability: "view",
545
+ type: "function",
546
+ },
547
+ {
548
+ inputs: [
549
+ {
550
+ components: [
551
+ {
552
+ internalType: "uint32",
553
+ name: "srcEid",
554
+ type: "uint32",
555
+ },
556
+ {
557
+ internalType: "bytes32",
558
+ name: "sender",
559
+ type: "bytes32",
560
+ },
561
+ {
562
+ internalType: "uint64",
563
+ name: "nonce",
564
+ type: "uint64",
565
+ },
566
+ ],
567
+ internalType: "struct Origin",
568
+ name: "_origin",
569
+ type: "tuple",
570
+ },
571
+ {
572
+ internalType: "bytes32",
573
+ name: "_guid",
574
+ type: "bytes32",
575
+ },
576
+ {
577
+ internalType: "bytes",
578
+ name: "_message",
579
+ type: "bytes",
580
+ },
581
+ {
582
+ internalType: "address",
583
+ name: "_executor",
584
+ type: "address",
585
+ },
586
+ {
587
+ internalType: "bytes",
588
+ name: "_extraData",
589
+ type: "bytes",
590
+ },
591
+ ],
592
+ name: "lzReceive",
593
+ outputs: [],
594
+ stateMutability: "payable",
595
+ type: "function",
596
+ },
597
+ {
598
+ inputs: [
599
+ {
600
+ components: [
601
+ {
602
+ components: [
603
+ {
604
+ internalType: "uint32",
605
+ name: "srcEid",
606
+ type: "uint32",
607
+ },
608
+ {
609
+ internalType: "bytes32",
610
+ name: "sender",
611
+ type: "bytes32",
612
+ },
613
+ {
614
+ internalType: "uint64",
615
+ name: "nonce",
616
+ type: "uint64",
617
+ },
618
+ ],
619
+ internalType: "struct Origin",
620
+ name: "origin",
621
+ type: "tuple",
622
+ },
623
+ {
624
+ internalType: "uint32",
625
+ name: "dstEid",
626
+ type: "uint32",
627
+ },
628
+ {
629
+ internalType: "address",
630
+ name: "receiver",
631
+ type: "address",
632
+ },
633
+ {
634
+ internalType: "bytes32",
635
+ name: "guid",
636
+ type: "bytes32",
637
+ },
638
+ {
639
+ internalType: "uint256",
640
+ name: "value",
641
+ type: "uint256",
642
+ },
643
+ {
644
+ internalType: "address",
645
+ name: "executor",
646
+ type: "address",
647
+ },
648
+ {
649
+ internalType: "bytes",
650
+ name: "message",
651
+ type: "bytes",
652
+ },
653
+ {
654
+ internalType: "bytes",
655
+ name: "extraData",
656
+ type: "bytes",
657
+ },
658
+ ],
659
+ internalType: "struct InboundPacket[]",
660
+ name: "_packets",
661
+ type: "tuple[]",
662
+ },
663
+ ],
664
+ name: "lzReceiveAndRevert",
665
+ outputs: [],
666
+ stateMutability: "payable",
667
+ type: "function",
668
+ },
669
+ {
670
+ inputs: [
671
+ {
672
+ components: [
673
+ {
674
+ internalType: "uint32",
675
+ name: "srcEid",
676
+ type: "uint32",
677
+ },
678
+ {
679
+ internalType: "bytes32",
680
+ name: "sender",
681
+ type: "bytes32",
682
+ },
683
+ {
684
+ internalType: "uint64",
685
+ name: "nonce",
686
+ type: "uint64",
687
+ },
688
+ ],
689
+ internalType: "struct Origin",
690
+ name: "_origin",
691
+ type: "tuple",
692
+ },
693
+ {
694
+ internalType: "bytes32",
695
+ name: "_guid",
696
+ type: "bytes32",
697
+ },
698
+ {
699
+ internalType: "bytes",
700
+ name: "_message",
701
+ type: "bytes",
702
+ },
703
+ {
704
+ internalType: "address",
705
+ name: "_executor",
706
+ type: "address",
707
+ },
708
+ {
709
+ internalType: "bytes",
710
+ name: "_extraData",
711
+ type: "bytes",
712
+ },
713
+ ],
714
+ name: "lzReceiveSimulate",
715
+ outputs: [],
716
+ stateMutability: "payable",
717
+ type: "function",
718
+ },
719
+ {
720
+ inputs: [],
721
+ name: "msgInspector",
722
+ outputs: [
723
+ {
724
+ internalType: "address",
725
+ name: "",
726
+ type: "address",
727
+ },
728
+ ],
729
+ stateMutability: "view",
730
+ type: "function",
731
+ },
732
+ {
733
+ inputs: [],
734
+ name: "nativeToken",
735
+ outputs: [
736
+ {
737
+ internalType: "address",
738
+ name: "",
739
+ type: "address",
740
+ },
741
+ ],
742
+ stateMutability: "view",
743
+ type: "function",
744
+ },
745
+ {
746
+ inputs: [
747
+ {
748
+ internalType: "uint32",
749
+ name: "",
750
+ type: "uint32",
751
+ },
752
+ {
753
+ internalType: "bytes32",
754
+ name: "",
755
+ type: "bytes32",
756
+ },
757
+ ],
758
+ name: "nextNonce",
759
+ outputs: [
760
+ {
761
+ internalType: "uint64",
762
+ name: "nonce",
763
+ type: "uint64",
764
+ },
765
+ ],
766
+ stateMutability: "view",
767
+ type: "function",
768
+ },
769
+ {
770
+ inputs: [],
771
+ name: "oApp",
772
+ outputs: [
773
+ {
774
+ internalType: "address",
775
+ name: "",
776
+ type: "address",
777
+ },
778
+ ],
779
+ stateMutability: "view",
780
+ type: "function",
781
+ },
782
+ {
783
+ inputs: [],
784
+ name: "oAppVersion",
785
+ outputs: [
786
+ {
787
+ internalType: "uint64",
788
+ name: "senderVersion",
789
+ type: "uint64",
790
+ },
791
+ {
792
+ internalType: "uint64",
793
+ name: "receiverVersion",
794
+ type: "uint64",
795
+ },
796
+ ],
797
+ stateMutability: "pure",
798
+ type: "function",
799
+ },
800
+ {
801
+ inputs: [],
802
+ name: "oftVersion",
803
+ outputs: [
804
+ {
805
+ internalType: "bytes4",
806
+ name: "interfaceId",
807
+ type: "bytes4",
808
+ },
809
+ {
810
+ internalType: "uint64",
811
+ name: "version",
812
+ type: "uint64",
813
+ },
814
+ ],
815
+ stateMutability: "pure",
816
+ type: "function",
817
+ },
818
+ {
819
+ inputs: [],
820
+ name: "owner",
821
+ outputs: [
822
+ {
823
+ internalType: "address",
824
+ name: "",
825
+ type: "address",
826
+ },
827
+ ],
828
+ stateMutability: "view",
829
+ type: "function",
830
+ },
831
+ {
832
+ inputs: [
833
+ {
834
+ internalType: "uint32",
835
+ name: "eid",
836
+ type: "uint32",
837
+ },
838
+ ],
839
+ name: "peers",
840
+ outputs: [
841
+ {
842
+ internalType: "bytes32",
843
+ name: "peer",
844
+ type: "bytes32",
845
+ },
846
+ ],
847
+ stateMutability: "view",
848
+ type: "function",
849
+ },
850
+ {
851
+ inputs: [],
852
+ name: "preCrime",
853
+ outputs: [
854
+ {
855
+ internalType: "address",
856
+ name: "",
857
+ type: "address",
858
+ },
859
+ ],
860
+ stateMutability: "view",
861
+ type: "function",
862
+ },
863
+ {
864
+ inputs: [
865
+ {
866
+ components: [
867
+ {
868
+ internalType: "uint32",
869
+ name: "dstEid",
870
+ type: "uint32",
871
+ },
872
+ {
873
+ internalType: "bytes32",
874
+ name: "to",
875
+ type: "bytes32",
876
+ },
877
+ {
878
+ internalType: "uint256",
879
+ name: "amountLD",
880
+ type: "uint256",
881
+ },
882
+ {
883
+ internalType: "uint256",
884
+ name: "minAmountLD",
885
+ type: "uint256",
886
+ },
887
+ {
888
+ internalType: "bytes",
889
+ name: "extraOptions",
890
+ type: "bytes",
891
+ },
892
+ {
893
+ internalType: "bytes",
894
+ name: "composeMsg",
895
+ type: "bytes",
896
+ },
897
+ {
898
+ internalType: "bytes",
899
+ name: "oftCmd",
900
+ type: "bytes",
901
+ },
902
+ ],
903
+ internalType: "struct SendParam",
904
+ name: "_sendParam",
905
+ type: "tuple",
906
+ },
907
+ ],
908
+ name: "quoteOFT",
909
+ outputs: [
910
+ {
911
+ components: [
912
+ {
913
+ internalType: "uint256",
914
+ name: "minAmountLD",
915
+ type: "uint256",
916
+ },
917
+ {
918
+ internalType: "uint256",
919
+ name: "maxAmountLD",
920
+ type: "uint256",
921
+ },
922
+ ],
923
+ internalType: "struct OFTLimit",
924
+ name: "oftLimit",
925
+ type: "tuple",
926
+ },
927
+ {
928
+ components: [
929
+ {
930
+ internalType: "int256",
931
+ name: "feeAmountLD",
932
+ type: "int256",
933
+ },
934
+ {
935
+ internalType: "string",
936
+ name: "description",
937
+ type: "string",
938
+ },
939
+ ],
940
+ internalType: "struct OFTFeeDetail[]",
941
+ name: "oftFeeDetails",
942
+ type: "tuple[]",
943
+ },
944
+ {
945
+ components: [
946
+ {
947
+ internalType: "uint256",
948
+ name: "amountSentLD",
949
+ type: "uint256",
950
+ },
951
+ {
952
+ internalType: "uint256",
953
+ name: "amountReceivedLD",
954
+ type: "uint256",
955
+ },
956
+ ],
957
+ internalType: "struct OFTReceipt",
958
+ name: "oftReceipt",
959
+ type: "tuple",
960
+ },
961
+ ],
962
+ stateMutability: "view",
963
+ type: "function",
964
+ },
965
+ {
966
+ inputs: [
967
+ {
968
+ components: [
969
+ {
970
+ internalType: "uint32",
971
+ name: "dstEid",
972
+ type: "uint32",
973
+ },
974
+ {
975
+ internalType: "bytes32",
976
+ name: "to",
977
+ type: "bytes32",
978
+ },
979
+ {
980
+ internalType: "uint256",
981
+ name: "amountLD",
982
+ type: "uint256",
983
+ },
984
+ {
985
+ internalType: "uint256",
986
+ name: "minAmountLD",
987
+ type: "uint256",
988
+ },
989
+ {
990
+ internalType: "bytes",
991
+ name: "extraOptions",
992
+ type: "bytes",
993
+ },
994
+ {
995
+ internalType: "bytes",
996
+ name: "composeMsg",
997
+ type: "bytes",
998
+ },
999
+ {
1000
+ internalType: "bytes",
1001
+ name: "oftCmd",
1002
+ type: "bytes",
1003
+ },
1004
+ ],
1005
+ internalType: "struct SendParam",
1006
+ name: "_sendParam",
1007
+ type: "tuple",
1008
+ },
1009
+ {
1010
+ internalType: "bool",
1011
+ name: "_payInLzToken",
1012
+ type: "bool",
1013
+ },
1014
+ ],
1015
+ name: "quoteSend",
1016
+ outputs: [
1017
+ {
1018
+ components: [
1019
+ {
1020
+ internalType: "uint256",
1021
+ name: "nativeFee",
1022
+ type: "uint256",
1023
+ },
1024
+ {
1025
+ internalType: "uint256",
1026
+ name: "lzTokenFee",
1027
+ type: "uint256",
1028
+ },
1029
+ ],
1030
+ internalType: "struct MessagingFee",
1031
+ name: "msgFee",
1032
+ type: "tuple",
1033
+ },
1034
+ ],
1035
+ stateMutability: "view",
1036
+ type: "function",
1037
+ },
1038
+ {
1039
+ inputs: [],
1040
+ name: "renounceOwnership",
1041
+ outputs: [],
1042
+ stateMutability: "nonpayable",
1043
+ type: "function",
1044
+ },
1045
+ {
1046
+ inputs: [
1047
+ {
1048
+ components: [
1049
+ {
1050
+ internalType: "uint32",
1051
+ name: "dstEid",
1052
+ type: "uint32",
1053
+ },
1054
+ {
1055
+ internalType: "bytes32",
1056
+ name: "to",
1057
+ type: "bytes32",
1058
+ },
1059
+ {
1060
+ internalType: "uint256",
1061
+ name: "amountLD",
1062
+ type: "uint256",
1063
+ },
1064
+ {
1065
+ internalType: "uint256",
1066
+ name: "minAmountLD",
1067
+ type: "uint256",
1068
+ },
1069
+ {
1070
+ internalType: "bytes",
1071
+ name: "extraOptions",
1072
+ type: "bytes",
1073
+ },
1074
+ {
1075
+ internalType: "bytes",
1076
+ name: "composeMsg",
1077
+ type: "bytes",
1078
+ },
1079
+ {
1080
+ internalType: "bytes",
1081
+ name: "oftCmd",
1082
+ type: "bytes",
1083
+ },
1084
+ ],
1085
+ internalType: "struct SendParam",
1086
+ name: "_sendParam",
1087
+ type: "tuple",
1088
+ },
1089
+ {
1090
+ components: [
1091
+ {
1092
+ internalType: "uint256",
1093
+ name: "nativeFee",
1094
+ type: "uint256",
1095
+ },
1096
+ {
1097
+ internalType: "uint256",
1098
+ name: "lzTokenFee",
1099
+ type: "uint256",
1100
+ },
1101
+ ],
1102
+ internalType: "struct MessagingFee",
1103
+ name: "_fee",
1104
+ type: "tuple",
1105
+ },
1106
+ {
1107
+ internalType: "address",
1108
+ name: "_refundAddress",
1109
+ type: "address",
1110
+ },
1111
+ ],
1112
+ name: "send",
1113
+ outputs: [
1114
+ {
1115
+ components: [
1116
+ {
1117
+ internalType: "bytes32",
1118
+ name: "guid",
1119
+ type: "bytes32",
1120
+ },
1121
+ {
1122
+ internalType: "uint64",
1123
+ name: "nonce",
1124
+ type: "uint64",
1125
+ },
1126
+ {
1127
+ components: [
1128
+ {
1129
+ internalType: "uint256",
1130
+ name: "nativeFee",
1131
+ type: "uint256",
1132
+ },
1133
+ {
1134
+ internalType: "uint256",
1135
+ name: "lzTokenFee",
1136
+ type: "uint256",
1137
+ },
1138
+ ],
1139
+ internalType: "struct MessagingFee",
1140
+ name: "fee",
1141
+ type: "tuple",
1142
+ },
1143
+ ],
1144
+ internalType: "struct MessagingReceipt",
1145
+ name: "msgReceipt",
1146
+ type: "tuple",
1147
+ },
1148
+ {
1149
+ components: [
1150
+ {
1151
+ internalType: "uint256",
1152
+ name: "amountSentLD",
1153
+ type: "uint256",
1154
+ },
1155
+ {
1156
+ internalType: "uint256",
1157
+ name: "amountReceivedLD",
1158
+ type: "uint256",
1159
+ },
1160
+ ],
1161
+ internalType: "struct OFTReceipt",
1162
+ name: "oftReceipt",
1163
+ type: "tuple",
1164
+ },
1165
+ ],
1166
+ stateMutability: "payable",
1167
+ type: "function",
1168
+ },
1169
+ {
1170
+ inputs: [
1171
+ {
1172
+ internalType: "address",
1173
+ name: "_delegate",
1174
+ type: "address",
1175
+ },
1176
+ ],
1177
+ name: "setDelegate",
1178
+ outputs: [],
1179
+ stateMutability: "nonpayable",
1180
+ type: "function",
1181
+ },
1182
+ {
1183
+ inputs: [
1184
+ {
1185
+ components: [
1186
+ {
1187
+ internalType: "uint32",
1188
+ name: "eid",
1189
+ type: "uint32",
1190
+ },
1191
+ {
1192
+ internalType: "uint16",
1193
+ name: "msgType",
1194
+ type: "uint16",
1195
+ },
1196
+ {
1197
+ internalType: "bytes",
1198
+ name: "options",
1199
+ type: "bytes",
1200
+ },
1201
+ ],
1202
+ internalType: "struct EnforcedOptionParam[]",
1203
+ name: "_enforcedOptions",
1204
+ type: "tuple[]",
1205
+ },
1206
+ ],
1207
+ name: "setEnforcedOptions",
1208
+ outputs: [],
1209
+ stateMutability: "nonpayable",
1210
+ type: "function",
1211
+ },
1212
+ {
1213
+ inputs: [
1214
+ {
1215
+ internalType: "address",
1216
+ name: "_msgInspector",
1217
+ type: "address",
1218
+ },
1219
+ ],
1220
+ name: "setMsgInspector",
1221
+ outputs: [],
1222
+ stateMutability: "nonpayable",
1223
+ type: "function",
1224
+ },
1225
+ {
1226
+ inputs: [
1227
+ {
1228
+ internalType: "uint32",
1229
+ name: "_eid",
1230
+ type: "uint32",
1231
+ },
1232
+ {
1233
+ internalType: "bytes32",
1234
+ name: "_peer",
1235
+ type: "bytes32",
1236
+ },
1237
+ ],
1238
+ name: "setPeer",
1239
+ outputs: [],
1240
+ stateMutability: "nonpayable",
1241
+ type: "function",
1242
+ },
1243
+ {
1244
+ inputs: [
1245
+ {
1246
+ internalType: "address",
1247
+ name: "_preCrime",
1248
+ type: "address",
1249
+ },
1250
+ ],
1251
+ name: "setPreCrime",
1252
+ outputs: [],
1253
+ stateMutability: "nonpayable",
1254
+ type: "function",
1255
+ },
1256
+ {
1257
+ inputs: [],
1258
+ name: "sharedDecimals",
1259
+ outputs: [
1260
+ {
1261
+ internalType: "uint8",
1262
+ name: "",
1263
+ type: "uint8",
1264
+ },
1265
+ ],
1266
+ stateMutability: "view",
1267
+ type: "function",
1268
+ },
1269
+ {
1270
+ inputs: [],
1271
+ name: "token",
1272
+ outputs: [
1273
+ {
1274
+ internalType: "address",
1275
+ name: "",
1276
+ type: "address",
1277
+ },
1278
+ ],
1279
+ stateMutability: "view",
1280
+ type: "function",
1281
+ },
1282
+ {
1283
+ inputs: [
1284
+ {
1285
+ internalType: "address",
1286
+ name: "newOwner",
1287
+ type: "address",
1288
+ },
1289
+ ],
1290
+ name: "transferOwnership",
1291
+ outputs: [],
1292
+ stateMutability: "nonpayable",
1293
+ type: "function",
1294
+ },
1295
+ ];
1296
+
1297
+ const _bytecode =
1298
+ "0x610100604052348015610010575f5ffd5b506040516130fc3803806130fc83398101604081905261002f91610278565b828282828282826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610071573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061009591906102b8565b8282818181816100a433610209565b6001600160a01b0380831660805281166100d157604051632d618d8160e21b815260040160405180910390fd5b60805160405163ca5eb5e160e01b81526001600160a01b0383811660048301529091169063ca5eb5e1906024015f604051808303815f87803b158015610115575f5ffd5b505af1158015610127573d5f5f3e3d5ffd5b505050505050505061013d61025860201b60201c565b60ff168360ff161015610163576040516301e9714b60e41b815260040160405180910390fd5b61016e6006846102f3565b61017990600a6103f5565b60a0525050506001600160a01b0392831660c052505060805160408051631c2eb17b60e31b8152905191909216945063e1758bd89350600480830193506020928290030181865afa1580156101d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f49190610403565b6001600160a01b031660e0525061041c915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600690565b80516001600160a01b0381168114610273575f5ffd5b919050565b5f5f5f6060848603121561028a575f5ffd5b6102938461025d565b92506102a16020850161025d565b91506102af6040850161025d565b90509250925092565b5f602082840312156102c8575f5ffd5b815160ff811681146102d8575f5ffd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b60ff828116828216039081111561030c5761030c6102df565b92915050565b6001815b600184111561034d57808504811115610331576103316102df565b600184161561033f57908102905b60019390931c928002610316565b935093915050565b5f826103635750600161030c565b8161036f57505f61030c565b8160018114610385576002811461038f576103ab565b600191505061030c565b60ff8411156103a0576103a06102df565b50506001821b61030c565b5060208310610133831016604e8410600b84101617156103ce575081810a61030c565b6103da5f198484610312565b805f19048211156103ed576103ed6102df565b029392505050565b5f6102d860ff841683610355565b5f60208284031215610413575f5ffd5b6102d88261025d565b60805160a05160c05160e051612c446104b85f395f818161059d01528181611a1b0152611a6d01525f81816105ec015281816116b2015261182101525f818161043c015281816115fd01528181611676015261176301525f818161034f015281816107a701528181610d8b01528181611027015281816112c8015281816118a001528181611a9001528181611abc0152611b730152612c445ff3fe608060405260043610610188575f3560e01c80630d35b4151461018c578063111ecdad146101c357806313137d65146101ef578063134d4f2514610204578063156a0d0f1461022b57806317442b70146102515780631f5e1334146102725780633400288b146102865780633b6f743b146102a557806352ae2879146102d15780635535d461146102e35780635a0dfe4d1461030f5780635e280f111461033e5780636fc1b31e14610371578063715018a6146103905780637d25a05e146103a457806382413eac146103dd578063857749b0146103fc5780638da5cb5b14610417578063963efcaa1461042b5780639f68b9641461046c578063b731ea0a1461047f578063b98bd0701461049e578063bb0b6a53146104bd578063bc70b354146104e8578063bd815db014610507578063c7c7f5b31461051a578063ca5eb5e11461053b578063d045a0dc1461055a578063d42438851461056d578063e1758bd81461058c578063f2fde38b146105bf578063fc0c546a146105de578063ff7bd03d14610610575b5f5ffd5b348015610197575f5ffd5b506101ab6101a6366004611dd9565b61062f565b6040516101ba93929190611e66565b60405180910390f35b3480156101ce575f5ffd5b506004546101e2906001600160a01b031681565b6040516101ba9190611ef6565b6102026101fd366004611f72565b6107a5565b005b34801561020f575f5ffd5b50610218600281565b60405161ffff90911681526020016101ba565b348015610236575f5ffd5b506040805162b9270b60e21b815260016020820152016101ba565b34801561025c575f5ffd5b50604080516001815260026020820152016101ba565b34801561027d575f5ffd5b50610218600181565b348015610291575f5ffd5b506102026102a0366004612024565b61085d565b3480156102b0575f5ffd5b506102c46102bf366004612059565b610873565b6040516101ba91906120a7565b3480156102dc575f5ffd5b50306101e2565b3480156102ee575f5ffd5b506103026102fd3660046120c6565b6108ce565b6040516101ba91906120f7565b34801561031a575f5ffd5b5061032e610329366004612024565b610970565b60405190151581526020016101ba565b348015610349575f5ffd5b506101e27f000000000000000000000000000000000000000000000000000000000000000081565b34801561037c575f5ffd5b5061020261038b366004612109565b61098b565b34801561039b575f5ffd5b506102026109e9565b3480156103af575f5ffd5b506103c56103be366004612024565b5f92915050565b6040516001600160401b0390911681526020016101ba565b3480156103e8575f5ffd5b5061032e6103f7366004612124565b6109fc565b348015610407575f5ffd5b50604051600681526020016101ba565b348015610422575f5ffd5b506101e2610a11565b348015610436575f5ffd5b5061045e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101ba565b348015610477575f5ffd5b50600161032e565b34801561048a575f5ffd5b506002546101e2906001600160a01b031681565b3480156104a9575f5ffd5b506102026104b83660046121c6565b610a1f565b3480156104c8575f5ffd5b5061045e6104d7366004612204565b60016020525f908152604090205481565b3480156104f3575f5ffd5b5061030261050236600461221d565b610a39565b6102026105153660046121c6565b610bda565b61052d610528366004612279565b610d44565b6040516101ba9291906122e1565b348015610546575f5ffd5b50610202610555366004612109565b610d6c565b610202610568366004611f72565b610df0565b348015610578575f5ffd5b50610202610587366004612109565b610e1f565b348015610597575f5ffd5b506101e27f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ca575f5ffd5b506102026105d9366004612109565b610e72565b3480156105e9575f5ffd5b507f00000000000000000000000000000000000000000000000000000000000000006101e2565b34801561061b575f5ffd5b5061032e61062a36600461231d565b610eeb565b604080518082019091525f8082526020820152606061064c611d88565b5f5f90505f306001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561068d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106b19190612337565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106ec573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107109190612352565b604080518082018252848152602080820184905282515f80825291810190935290975091925090610763565b604080518082019091525f81526060602082015281526020019060019003908161073c5790505b5093505f80610787604089013560608a013561078260208c018c612204565b610f1f565b60408051808201909152918252602082015296989597505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146107f957336040516391ac5e4f60e01b81526004016107f09190611ef6565b60405180910390fd5b602087018035906108139061080e908a612204565b610f5a565b14610845576108256020880188612204565b876020013560405163309afaf360e21b81526004016107f092919061237d565b61085487878787878787610f95565b50505050505050565b6108656110ec565b61086f828261114b565b5050565b61087b611d88565b5f610896604085013560608601356107826020880188612204565b9150505f5f6108a586846111a0565b90925090506108c26108ba6020880188612204565b8383886112be565b93505050505b92915050565b600360209081525f9283526040808420909152908252902080546108f190612393565b80601f016020809104026020016040519081016040528092919081815260200182805461091d90612393565b80156109685780601f1061093f57610100808354040283529160200191610968565b820191905f5260205f20905b81548152906001019060200180831161094b57829003601f168201915b505050505081565b63ffffffff919091165f908152600160205260409020541490565b6109936110ec565b600480546001600160a01b0319166001600160a01b0383161790556040517ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906109de908390611ef6565b60405180910390a150565b6109f16110ec565b6109fa5f611391565b565b6001600160a01b03811630145b949350505050565b5f546001600160a01b031690565b610a276110ec565b61086f610a348284612465565b6113e0565b63ffffffff84165f90815260036020908152604080832061ffff87168452909152812080546060929190610a6c90612393565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9890612393565b8015610ae35780601f10610aba57610100808354040283529160200191610ae3565b820191905f5260205f20905b815481529060010190602001808311610ac657829003601f168201915b5050505050905080515f03610b315783838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250929450610a099350505050565b5f839003610b40579050610a09565b60028310610bbd57610b8684848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506114e192505050565b80610b948460028188612586565b604051602001610ba6939291906125ad565b604051602081830303815290604052915050610a09565b8383604051639a6d49cd60e01b81526004016107f09291906125fb565b5f5b81811015610cc75736838383818110610bf757610bf761260e565b9050602002810190610c099190612622565b9050610c25610c1b6020830183612204565b6020830135610970565b610c2f5750610cbf565b3063d045a0dc60c08301358360a0810135610c4e610100830183612641565b610c5f610100890160e08a01612109565b610c6d6101208a018a612641565b6040518963ffffffff1660e01b8152600401610c8f9796959493929190612697565b5f604051808303818588803b158015610ca6575f5ffd5b505af1158015610cb8573d5f5f3e3d5ffd5b5050505050505b600101610bdc565b50336001600160a01b0316638e9e70996040518163ffffffff1660e01b81526004015f60405180830381865afa158015610d03573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610d2a919081019061271c565b604051638351eea760e01b81526004016107f091906120f7565b610d4c611da0565b610d54611d88565b610d5f85858561150d565b915091505b935093915050565b610d746110ec565b60405163ca5eb5e160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ca5eb5e190610dc0908490600401611ef6565b5f604051808303815f87803b158015610dd7575f5ffd5b505af1158015610de9573d5f5f3e3d5ffd5b5050505050565b333014610e105760405163029a949d60e31b815260040160405180910390fd5b61085487878787878787610845565b610e276110ec565b600280546001600160a01b0319166001600160a01b0383161790556040517fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c2427760906109de908390611ef6565b610e7a6110ec565b6001600160a01b038116610edf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f0565b610ee881611391565b50565b5f602082018035906001908390610f029086612204565b63ffffffff16815260208101919091526040015f20541492915050565b5f5f610f2a856115fa565b915081905083811015610d64576040516371c4efed60e01b815260048101829052602481018590526044016107f0565b63ffffffff81165f90815260016020526040812054806108c85760405163f6ff4fb760e01b815263ffffffff841660048201526024016107f0565b5f610fa6610fa38787611630565b90565b90505f610fd182610fbf610fba8a8a61164e565b611670565b610fcc60208d018d612204565b6116a4565b90506028861115611091575f61100d610ff060608c0160408d01612784565b610ffd60208d018d612204565b846110088c8c6116e1565b61172b565b604051633e5ac80960e11b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906110629086908d905f90879060040161279f565b5f604051808303815f87803b158015611079575f5ffd5b505af115801561108b573d5f5f3e3d5ffd5b50505050505b6001600160a01b038216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c6110ca60208d018d612204565b846040516110d992919061237d565b60405180910390a3505050505050505050565b336110f5610a11565b6001600160a01b0316146109fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f0565b63ffffffff82165f9081526001602052604090819020829055517f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b90611194908490849061237d565b60405180910390a15050565b6060805f6111fb85602001356111b58661175d565b6111c260a0890189612641565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061178892505050565b90935090505f8161120d576001611210565b60025b90506112306112226020880188612204565b8261050260808a018a612641565b6004549093506001600160a01b031680156112b45760405163043a78eb60e01b81526001600160a01b0382169063043a78eb9061127390889088906004016127cf565b602060405180830381865afa15801561128e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112b291906127f3565b505b5050509250929050565b6112c6611d88565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ddc28c586040518060a001604052808863ffffffff16815260200161131589610f5a565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b815260040161134a92919061280e565b6040805180830381865afa158015611364573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061138891906128b5565b95945050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f5b81518110156114b1576114118282815181106114005761140061260e565b6020026020010151604001516114e1565b8181815181106114235761142361260e565b60200260200101516040015160035f8484815181106114445761144461260e565b60200260200101515f015163ffffffff1663ffffffff1681526020019081526020015f205f84848151811061147b5761147b61260e565b60200260200101516020015161ffff1661ffff1681526020019081526020015f2090816114a89190612913565b506001016113e2565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b674816040516109de91906129cd565b600281015161ffff811660031461086f5781604051639a6d49cd60e01b81526004016107f091906120f7565b611515611da0565b61151d611d88565b5f8061153f33604089013560608a013561153a60208c018c612204565b611802565b915091505f5f61154f89846111a0565b909250905061157b61156460208b018b612204565b8383611575368d90038d018d612a5b565b8b611852565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a906115c9908d018d612204565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b5f7f00000000000000000000000000000000000000000000000000000000000000006116268184612a8c565b6108c89190612aab565b5f61163e6020828486612586565b61164791612ace565b9392505050565b5f61165d602860208486612586565b61166691612aeb565b60c01c9392505050565b5f6108c87f00000000000000000000000000000000000000000000000000000000000000006001600160401b038416612aab565b5f6116d96001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168585611972565b509092915050565b60606116f08260288186612586565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250929695505050505050565b6060848484846040516020016117449493929190612b23565b6040516020818303038152906040529050949350505050565b5f6108c87f000000000000000000000000000000000000000000000000000000000000000083612a8c565b80516060901515806117d15784846040516020016117bd92919091825260c01b6001600160c01b031916602082015260280190565b6040516020818303038152906040526117f8565b848433856040516020016117e89493929190612b74565b6040516020818303038152906040525b9150935093915050565b5f5f61180f858585610f1f565b90925090506118496001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168730856119da565b94509492505050565b61185a611da0565b341561187b57604051637693b46f60e01b81523460048201526024016107f0565b825161188690611a18565b5060208301511561189e5761189e8360200151611ab9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632637a4506040518060a001604052808963ffffffff1681526020016118ed8a610f5a565b81526020018881526020018781526020015f8760200151111515815250846040518363ffffffff1660e01b815260040161192892919061280e565b6080604051808303815f875af1158015611944573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119689190612bb3565b9695505050505050565b6040516001600160a01b0383166024820152604481018290526119d590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b98565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611a129085906323b872dd60e01b9060840161199e565b50505050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611a6057604051638dce522760e01b815260040160405180910390fd5b611ab56001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f0000000000000000000000000000000000000000000000000000000000000000856119da565b5090565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b16573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b3a9190612337565b90506001600160a01b038116611b63576040516329b99a9560e11b815260040160405180910390fd5b61086f6001600160a01b038216337f0000000000000000000000000000000000000000000000000000000000000000856119da565b5f611bec826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c6b9092919063ffffffff16565b905080515f1480611c0c575080806020019051810190611c0c91906127f3565b6119d55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107f0565b6060610a0984845f85855f5f866001600160a01b03168587604051611c909190612bfd565b5f6040518083038185875af1925050503d805f8114611cca576040519150601f19603f3d011682016040523d82523d5f602084013e611ccf565b606091505b5091509150611ce087838387611ceb565b979650505050505050565b60608315611d595782515f03611d52576001600160a01b0385163b611d525760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107f0565b5081610a09565b610a098383815115611d6e5781518083602001fd5b8060405162461bcd60e51b81526004016107f091906120f7565b60405180604001604052805f81526020015f81525090565b604080516060810182525f8082526020820152908101611dbe611d88565b905290565b5f60e08284031215611dd3575f5ffd5b50919050565b5f60208284031215611de9575f5ffd5b81356001600160401b03811115611dfe575f5ffd5b610a0984828501611dc3565b80518252602090810151910152565b5f5b83811015611e33578181015183820152602001611e1b565b50505f910152565b5f8151808452611e52816020860160208601611e19565b601f01601f19169290920160200192915050565b5f60a08201611e758387611e0a565b60a0604084015280855180835260c08501915060c08160051b8601019250602087015f5b82811015611ee15760bf198786030184528151805186526020810151905060406020870152611ecb6040870182611e3b565b9550506020938401939190910190600101611e99565b5050505080915050610a096060830184611e0a565b6001600160a01b0391909116815260200190565b5f60608284031215611dd3575f5ffd5b5f5f83601f840112611f2a575f5ffd5b5081356001600160401b03811115611f40575f5ffd5b602083019150836020828501011115611f57575f5ffd5b9250929050565b6001600160a01b0381168114610ee8575f5ffd5b5f5f5f5f5f5f5f60e0888a031215611f88575f5ffd5b611f928989611f0a565b96506060880135955060808801356001600160401b03811115611fb3575f5ffd5b611fbf8a828b01611f1a565b90965094505060a0880135611fd381611f5e565b925060c08801356001600160401b03811115611fed575f5ffd5b611ff98a828b01611f1a565b989b979a50959850939692959293505050565b803563ffffffff8116811461201f575f5ffd5b919050565b5f5f60408385031215612035575f5ffd5b61203e8361200c565b946020939093013593505050565b8015158114610ee8575f5ffd5b5f5f6040838503121561206a575f5ffd5b82356001600160401b0381111561207f575f5ffd5b61208b85828601611dc3565b925050602083013561209c8161204c565b809150509250929050565b604081016108c88284611e0a565b803561ffff8116811461201f575f5ffd5b5f5f604083850312156120d7575f5ffd5b6120e08361200c565b91506120ee602084016120b5565b90509250929050565b602081525f6116476020830184611e3b565b5f60208284031215612119575f5ffd5b813561164781611f5e565b5f5f5f5f60a08587031215612137575f5ffd5b6121418686611f0a565b935060608501356001600160401b0381111561215b575f5ffd5b61216787828801611f1a565b909450925050608085013561217b81611f5e565b939692955090935050565b5f5f83601f840112612196575f5ffd5b5081356001600160401b038111156121ac575f5ffd5b6020830191508360208260051b8501011115611f57575f5ffd5b5f5f602083850312156121d7575f5ffd5b82356001600160401b038111156121ec575f5ffd5b6121f885828601612186565b90969095509350505050565b5f60208284031215612214575f5ffd5b6116478261200c565b5f5f5f5f60608587031215612230575f5ffd5b6122398561200c565b9350612247602086016120b5565b925060408501356001600160401b03811115612261575f5ffd5b61226d87828801611f1a565b95989497509550505050565b5f5f5f838503608081121561228c575f5ffd5b84356001600160401b038111156122a1575f5ffd5b6122ad87828801611dc3565b9450506040601f19820112156122c1575f5ffd5b5060208401915060608401356122d681611f5e565b809150509250925092565b825181526020808401516001600160401b03169082015260408084015160c083019161230f90840182611e0a565b506116476080830184611e0a565b5f6060828403121561232d575f5ffd5b6116478383611f0a565b5f60208284031215612347575f5ffd5b815161164781611f5e565b5f60208284031215612362575f5ffd5b5051919050565b634e487b7160e01b5f52604160045260245ffd5b63ffffffff929092168252602082015260400190565b600181811c908216806123a757607f821691505b602082108103611dd357634e487b7160e01b5f52602260045260245ffd5b604051606081016001600160401b03811182821017156123e7576123e7612369565b60405290565b604080519081016001600160401b03811182821017156123e7576123e7612369565b604051601f8201601f191681016001600160401b038111828210171561243757612437612369565b604052919050565b5f6001600160401b0382111561245757612457612369565b50601f01601f191660200190565b5f6001600160401b0383111561247d5761247d612369565b8260051b61248d6020820161240f565b848152908301906020810190368311156124a5575f5ffd5b845b8381101561257c5780356001600160401b038111156124c4575f5ffd5b860160603682900312156124d6575f5ffd5b6124de6123c5565b6124e78261200c565b81526124f5602083016120b5565b602082015260408201356001600160401b03811115612512575f5ffd5b919091019036601f830112612525575f5ffd5b81356125386125338261243f565b61240f565b81815236602083860101111561254c575f5ffd5b816020850160208301375f60208383010152806040840152505080855250506020830192506020810190506124a7565b5095945050505050565b5f5f85851115612594575f5ffd5b838611156125a0575f5ffd5b5050820193919092039150565b5f84516125be818460208901611e19565b8201838582375f930192835250909392505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610a096020830184866125d3565b634e487b7160e01b5f52603260045260245ffd5b5f823561013e19833603018112612637575f5ffd5b9190910192915050565b5f5f8335601e19843603018112612656575f5ffd5b8301803591506001600160401b0382111561266f575f5ffd5b602001915036819003821315611f57575f5ffd5b6001600160401b0381168114610ee8575f5ffd5b63ffffffff6126a58961200c565b168152602088810135908201525f60408901356126c181612683565b6001600160401b031660408301526060820188905260e0608083018190526126ec90830187896125d3565b6001600160a01b03861660a084015282810360c084015261270e8185876125d3565b9a9950505050505050505050565b5f6020828403121561272c575f5ffd5b81516001600160401b03811115612741575f5ffd5b8201601f81018413612751575f5ffd5b805161275f6125338261243f565b818152856020838501011115612773575f5ffd5b611388826020830160208601611e19565b5f60208284031215612794575f5ffd5b813561164781612683565b60018060a01b038516815283602082015261ffff83166040820152608060608201525f6119686080830184611e3b565b604081525f6127e16040830185611e3b565b82810360208401526113888185611e3b565b5f60208284031215612803575f5ffd5b81516116478161204c565b6040815263ffffffff8351166040820152602083015160608201525f604084015160a0608084015261284360e0840182611e3b565b90506060850151603f198483030160a08501526128608282611e3b565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b5f60408284031215612896575f5ffd5b61289e6123ed565b825181526020928301519281019290925250919050565b5f604082840312156128c5575f5ffd5b6116478383612886565b601f8211156119d557805f5260205f20601f840160051c810160208510156128f45750805b601f840160051c820191505b81811015610de9575f8155600101612900565b81516001600160401b0381111561292c5761292c612369565b6129408161293a8454612393565b846128cf565b6020601f821160018114612972575f831561295b5750848201515b5f19600385901b1c1916600184901b178455610de9565b5f84815260208120601f198516915b828110156129a15787850151825560209485019460019092019101612981565b50848210156129be57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015612a4f57603f19878603018452815163ffffffff815116865261ffff60208201511660208701526040810151905060606040870152612a396060870182611e3b565b95505060209384019391909101906001016129f3565b50929695505050505050565b5f6040828403128015612a6c575f5ffd5b50612a756123ed565b823581526020928301359281019290925250919050565b5f82612aa657634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176108c857634e487b7160e01b5f52601160045260245ffd5b803560208310156108c8575f19602084900360031b1b1692915050565b80356001600160c01b03198116906008841015612b1c576001600160c01b0319600885900360031b81901b82161691505b5092915050565b60c085901b6001600160c01b031916815260e084901b6001600160e01b0319166008820152600c810183905281515f90612b6481602c850160208701611e19565b91909101602c0195945050505050565b84815260018060c01b03198460c01b1660208201528260288201525f8251612ba3816048850160208701611e19565b9190910160480195945050505050565b5f6080828403128015612bc4575f5ffd5b50612bcd6123c5565b825181526020830151612bdf81612683565b6020820152612bf18460408501612886565b60408201529392505050565b5f8251612637818460208701611e1956fea264697066735822122018d261815c6e0546992a55beabf10db992c07d286f5b0f14474ca28ade8ad96f64736f6c634300081e0033";
1299
+
1300
+ type OFTAdapterAltImplConstructorParams =
1301
+ | [signer?: Signer]
1302
+ | ConstructorParameters<typeof ContractFactory>;
1303
+
1304
+ const isSuperArgs = (
1305
+ xs: OFTAdapterAltImplConstructorParams
1306
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
1307
+
1308
+ export class OFTAdapterAltImpl__factory extends ContractFactory {
1309
+ constructor(...args: OFTAdapterAltImplConstructorParams) {
1310
+ if (isSuperArgs(args)) {
1311
+ super(...args);
1312
+ } else {
1313
+ super(_abi, _bytecode, args[0]);
1314
+ }
1315
+ this.contractName = "OFTAdapterAltImpl";
1316
+ }
1317
+
1318
+ deploy(
1319
+ _token: string,
1320
+ _endpoint: string,
1321
+ _delegate: string,
1322
+ overrides?: Overrides & { from?: string | Promise<string> }
1323
+ ): Promise<OFTAdapterAltImpl> {
1324
+ return super.deploy(
1325
+ _token,
1326
+ _endpoint,
1327
+ _delegate,
1328
+ overrides || {}
1329
+ ) as Promise<OFTAdapterAltImpl>;
1330
+ }
1331
+ getDeployTransaction(
1332
+ _token: string,
1333
+ _endpoint: string,
1334
+ _delegate: string,
1335
+ overrides?: Overrides & { from?: string | Promise<string> }
1336
+ ): TransactionRequest {
1337
+ return super.getDeployTransaction(
1338
+ _token,
1339
+ _endpoint,
1340
+ _delegate,
1341
+ overrides || {}
1342
+ );
1343
+ }
1344
+ attach(address: string): OFTAdapterAltImpl {
1345
+ return super.attach(address) as OFTAdapterAltImpl;
1346
+ }
1347
+ connect(signer: Signer): OFTAdapterAltImpl__factory {
1348
+ return super.connect(signer) as OFTAdapterAltImpl__factory;
1349
+ }
1350
+ static readonly contractName: "OFTAdapterAltImpl";
1351
+ public readonly contractName: "OFTAdapterAltImpl";
1352
+ static readonly bytecode = _bytecode;
1353
+ static readonly abi = _abi;
1354
+ static createInterface(): OFTAdapterAltImplInterface {
1355
+ return new utils.Interface(_abi) as OFTAdapterAltImplInterface;
1356
+ }
1357
+ static connect(
1358
+ address: string,
1359
+ signerOrProvider: Signer | Provider
1360
+ ): OFTAdapterAltImpl {
1361
+ return new Contract(address, _abi, signerOrProvider) as OFTAdapterAltImpl;
1362
+ }
1363
+ }