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