@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,1041 @@
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
+ IPBridgePTFactory,
9
+ IPBridgePTFactoryInterface,
10
+ } from "../IPBridgePTFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "InvalidDelegate",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "InvalidEndpointCall",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [
25
+ {
26
+ internalType: "uint32",
27
+ name: "eid",
28
+ type: "uint32",
29
+ },
30
+ ],
31
+ name: "NoPeer",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [
36
+ {
37
+ internalType: "uint32",
38
+ name: "eid",
39
+ type: "uint32",
40
+ },
41
+ {
42
+ internalType: "bytes32",
43
+ name: "sender",
44
+ type: "bytes32",
45
+ },
46
+ ],
47
+ name: "OnlyPeer",
48
+ type: "error",
49
+ },
50
+ {
51
+ anonymous: false,
52
+ inputs: [
53
+ {
54
+ indexed: true,
55
+ internalType: "uint32",
56
+ name: "peerEid",
57
+ type: "uint32",
58
+ },
59
+ {
60
+ indexed: true,
61
+ internalType: "address",
62
+ name: "peer",
63
+ type: "address",
64
+ },
65
+ ],
66
+ name: "FactoryWired",
67
+ type: "event",
68
+ },
69
+ {
70
+ anonymous: false,
71
+ inputs: [
72
+ {
73
+ indexed: true,
74
+ internalType: "uint32",
75
+ name: "lzEid",
76
+ type: "uint32",
77
+ },
78
+ {
79
+ indexed: true,
80
+ internalType: "bytes32",
81
+ name: "originalPt",
82
+ type: "bytes32",
83
+ },
84
+ {
85
+ indexed: true,
86
+ internalType: "address",
87
+ name: "oft",
88
+ type: "address",
89
+ },
90
+ ],
91
+ name: "PTOFTDeployed",
92
+ type: "event",
93
+ },
94
+ {
95
+ anonymous: false,
96
+ inputs: [
97
+ {
98
+ indexed: true,
99
+ internalType: "uint32",
100
+ name: "hubLzEid",
101
+ type: "uint32",
102
+ },
103
+ {
104
+ indexed: true,
105
+ internalType: "address",
106
+ name: "hubPt",
107
+ type: "address",
108
+ },
109
+ {
110
+ indexed: false,
111
+ internalType: "uint32[]",
112
+ name: "toPeerEids",
113
+ type: "uint32[]",
114
+ },
115
+ ],
116
+ name: "PTOFTWired",
117
+ type: "event",
118
+ },
119
+ {
120
+ anonymous: false,
121
+ inputs: [
122
+ {
123
+ indexed: false,
124
+ internalType: "uint32",
125
+ name: "eid",
126
+ type: "uint32",
127
+ },
128
+ {
129
+ indexed: false,
130
+ internalType: "bytes32",
131
+ name: "peer",
132
+ type: "bytes32",
133
+ },
134
+ ],
135
+ name: "PeerSet",
136
+ type: "event",
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: "GOV_PROXY",
141
+ outputs: [
142
+ {
143
+ internalType: "contract IPGovernanceProxy",
144
+ name: "",
145
+ type: "address",
146
+ },
147
+ ],
148
+ stateMutability: "view",
149
+ type: "function",
150
+ },
151
+ {
152
+ inputs: [],
153
+ name: "HUB_PT_OFT_ADAPTER_CREATION_CODE",
154
+ outputs: [
155
+ {
156
+ internalType: "address",
157
+ name: "",
158
+ type: "address",
159
+ },
160
+ ],
161
+ stateMutability: "view",
162
+ type: "function",
163
+ },
164
+ {
165
+ inputs: [],
166
+ name: "LZ_EID",
167
+ outputs: [
168
+ {
169
+ internalType: "uint32",
170
+ name: "",
171
+ type: "uint32",
172
+ },
173
+ ],
174
+ stateMutability: "view",
175
+ type: "function",
176
+ },
177
+ {
178
+ inputs: [],
179
+ name: "OFT_PROXY_ADMIN",
180
+ outputs: [
181
+ {
182
+ internalType: "address",
183
+ name: "",
184
+ type: "address",
185
+ },
186
+ ],
187
+ stateMutability: "view",
188
+ type: "function",
189
+ },
190
+ {
191
+ inputs: [],
192
+ name: "SELF_CHAIN_SHORT_NAME",
193
+ outputs: [
194
+ {
195
+ internalType: "string",
196
+ name: "",
197
+ type: "string",
198
+ },
199
+ ],
200
+ stateMutability: "view",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [],
205
+ name: "SPOKE_PT_OFT_CREATION_CODE",
206
+ outputs: [
207
+ {
208
+ internalType: "address",
209
+ name: "",
210
+ type: "address",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [
218
+ {
219
+ internalType: "address",
220
+ name: "hubPt",
221
+ type: "address",
222
+ },
223
+ ],
224
+ name: "deployHubPtOftAdapter",
225
+ outputs: [
226
+ {
227
+ internalType: "address",
228
+ name: "oft",
229
+ type: "address",
230
+ },
231
+ ],
232
+ stateMutability: "nonpayable",
233
+ type: "function",
234
+ },
235
+ {
236
+ inputs: [
237
+ {
238
+ internalType: "address",
239
+ name: "hubPt",
240
+ type: "address",
241
+ },
242
+ {
243
+ internalType: "uint32",
244
+ name: "toPeerEid",
245
+ type: "uint32",
246
+ },
247
+ {
248
+ internalType: "bytes",
249
+ name: "options",
250
+ type: "bytes",
251
+ },
252
+ {
253
+ components: [
254
+ {
255
+ internalType: "uint256",
256
+ name: "nativeFee",
257
+ type: "uint256",
258
+ },
259
+ {
260
+ internalType: "uint256",
261
+ name: "lzTokenFee",
262
+ type: "uint256",
263
+ },
264
+ ],
265
+ internalType: "struct MessagingFee",
266
+ name: "fee",
267
+ type: "tuple",
268
+ },
269
+ ],
270
+ name: "deploySpokePtOft",
271
+ outputs: [
272
+ {
273
+ components: [
274
+ {
275
+ internalType: "bytes32",
276
+ name: "guid",
277
+ type: "bytes32",
278
+ },
279
+ {
280
+ internalType: "uint64",
281
+ name: "nonce",
282
+ type: "uint64",
283
+ },
284
+ {
285
+ components: [
286
+ {
287
+ internalType: "uint256",
288
+ name: "nativeFee",
289
+ type: "uint256",
290
+ },
291
+ {
292
+ internalType: "uint256",
293
+ name: "lzTokenFee",
294
+ type: "uint256",
295
+ },
296
+ ],
297
+ internalType: "struct MessagingFee",
298
+ name: "fee",
299
+ type: "tuple",
300
+ },
301
+ ],
302
+ internalType: "struct MessagingReceipt",
303
+ name: "msgReceipt",
304
+ type: "tuple",
305
+ },
306
+ ],
307
+ stateMutability: "payable",
308
+ type: "function",
309
+ },
310
+ {
311
+ inputs: [
312
+ {
313
+ internalType: "uint32",
314
+ name: "peerLzEid",
315
+ type: "uint32",
316
+ },
317
+ {
318
+ internalType: "uint32",
319
+ name: "hubLzEid",
320
+ type: "uint32",
321
+ },
322
+ {
323
+ internalType: "address",
324
+ name: "hubPt",
325
+ type: "address",
326
+ },
327
+ ],
328
+ name: "derivePtOftAddress",
329
+ outputs: [
330
+ {
331
+ internalType: "address",
332
+ name: "oft",
333
+ type: "address",
334
+ },
335
+ ],
336
+ stateMutability: "view",
337
+ type: "function",
338
+ },
339
+ {
340
+ inputs: [],
341
+ name: "endpoint",
342
+ outputs: [
343
+ {
344
+ internalType: "contract ILayerZeroEndpointV2",
345
+ name: "iEndpoint",
346
+ type: "address",
347
+ },
348
+ ],
349
+ stateMutability: "view",
350
+ type: "function",
351
+ },
352
+ {
353
+ inputs: [],
354
+ name: "oAppVersion",
355
+ outputs: [
356
+ {
357
+ internalType: "uint64",
358
+ name: "senderVersion",
359
+ type: "uint64",
360
+ },
361
+ {
362
+ internalType: "uint64",
363
+ name: "receiverVersion",
364
+ type: "uint64",
365
+ },
366
+ ],
367
+ stateMutability: "view",
368
+ type: "function",
369
+ },
370
+ {
371
+ inputs: [
372
+ {
373
+ internalType: "uint32",
374
+ name: "_eid",
375
+ type: "uint32",
376
+ },
377
+ ],
378
+ name: "peers",
379
+ outputs: [
380
+ {
381
+ internalType: "bytes32",
382
+ name: "peer",
383
+ type: "bytes32",
384
+ },
385
+ ],
386
+ stateMutability: "view",
387
+ type: "function",
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ internalType: "address",
393
+ name: "hubPt",
394
+ type: "address",
395
+ },
396
+ {
397
+ internalType: "uint32",
398
+ name: "toPeerEid",
399
+ type: "uint32",
400
+ },
401
+ {
402
+ internalType: "bytes",
403
+ name: "options",
404
+ type: "bytes",
405
+ },
406
+ {
407
+ internalType: "bool",
408
+ name: "payInLzToken",
409
+ type: "bool",
410
+ },
411
+ ],
412
+ name: "quoteDeploySpokePtOft",
413
+ outputs: [
414
+ {
415
+ components: [
416
+ {
417
+ internalType: "uint256",
418
+ name: "nativeFee",
419
+ type: "uint256",
420
+ },
421
+ {
422
+ internalType: "uint256",
423
+ name: "lzTokenFee",
424
+ type: "uint256",
425
+ },
426
+ ],
427
+ internalType: "struct MessagingFee",
428
+ name: "fee",
429
+ type: "tuple",
430
+ },
431
+ ],
432
+ stateMutability: "view",
433
+ type: "function",
434
+ },
435
+ {
436
+ inputs: [
437
+ {
438
+ internalType: "uint32",
439
+ name: "peerEid",
440
+ type: "uint32",
441
+ },
442
+ {
443
+ components: [
444
+ {
445
+ internalType: "uint32",
446
+ name: "peerEid",
447
+ type: "uint32",
448
+ },
449
+ {
450
+ internalType: "address",
451
+ name: "peer",
452
+ type: "address",
453
+ },
454
+ {
455
+ components: [
456
+ {
457
+ internalType: "uint32",
458
+ name: "eid",
459
+ type: "uint32",
460
+ },
461
+ {
462
+ internalType: "uint32",
463
+ name: "configType",
464
+ type: "uint32",
465
+ },
466
+ {
467
+ internalType: "bytes",
468
+ name: "config",
469
+ type: "bytes",
470
+ },
471
+ ],
472
+ internalType: "struct SetConfigParam[]",
473
+ name: "sendConfigParam",
474
+ type: "tuple[]",
475
+ },
476
+ {
477
+ components: [
478
+ {
479
+ internalType: "uint32",
480
+ name: "eid",
481
+ type: "uint32",
482
+ },
483
+ {
484
+ internalType: "uint32",
485
+ name: "configType",
486
+ type: "uint32",
487
+ },
488
+ {
489
+ internalType: "bytes",
490
+ name: "config",
491
+ type: "bytes",
492
+ },
493
+ ],
494
+ internalType: "struct SetConfigParam[]",
495
+ name: "receiveConfigParam",
496
+ type: "tuple[]",
497
+ },
498
+ {
499
+ internalType: "bool",
500
+ name: "setSendLib",
501
+ type: "bool",
502
+ },
503
+ {
504
+ internalType: "bool",
505
+ name: "setReceiveLib",
506
+ type: "bool",
507
+ },
508
+ ],
509
+ internalType: "struct IPBridgePTFactory.SelfWireParams",
510
+ name: "wireParams",
511
+ type: "tuple",
512
+ },
513
+ {
514
+ internalType: "bytes",
515
+ name: "options",
516
+ type: "bytes",
517
+ },
518
+ {
519
+ internalType: "bool",
520
+ name: "payInLzToken",
521
+ type: "bool",
522
+ },
523
+ ],
524
+ name: "quoteRemoteSelfWire",
525
+ outputs: [
526
+ {
527
+ components: [
528
+ {
529
+ internalType: "uint256",
530
+ name: "nativeFee",
531
+ type: "uint256",
532
+ },
533
+ {
534
+ internalType: "uint256",
535
+ name: "lzTokenFee",
536
+ type: "uint256",
537
+ },
538
+ ],
539
+ internalType: "struct MessagingFee",
540
+ name: "fee",
541
+ type: "tuple",
542
+ },
543
+ ],
544
+ stateMutability: "view",
545
+ type: "function",
546
+ },
547
+ {
548
+ inputs: [
549
+ {
550
+ internalType: "uint32",
551
+ name: "peerEid",
552
+ type: "uint32",
553
+ },
554
+ {
555
+ components: [
556
+ {
557
+ internalType: "uint32",
558
+ name: "hubLzEid",
559
+ type: "uint32",
560
+ },
561
+ {
562
+ internalType: "address",
563
+ name: "hubPt",
564
+ type: "address",
565
+ },
566
+ {
567
+ internalType: "uint32[]",
568
+ name: "toPeerEids",
569
+ type: "uint32[]",
570
+ },
571
+ {
572
+ internalType: "uint128[]",
573
+ name: "enforcedReceiveGas",
574
+ type: "uint128[]",
575
+ },
576
+ {
577
+ internalType: "bool",
578
+ name: "setSendLib",
579
+ type: "bool",
580
+ },
581
+ {
582
+ internalType: "bool",
583
+ name: "setReceiveLib",
584
+ type: "bool",
585
+ },
586
+ ],
587
+ internalType: "struct IPBridgePTFactory.WirePtOftParams",
588
+ name: "wireParams",
589
+ type: "tuple",
590
+ },
591
+ {
592
+ internalType: "bytes",
593
+ name: "options",
594
+ type: "bytes",
595
+ },
596
+ {
597
+ internalType: "bool",
598
+ name: "payInLzToken",
599
+ type: "bool",
600
+ },
601
+ ],
602
+ name: "quoteRemoteWirePtOft",
603
+ outputs: [
604
+ {
605
+ components: [
606
+ {
607
+ internalType: "uint256",
608
+ name: "nativeFee",
609
+ type: "uint256",
610
+ },
611
+ {
612
+ internalType: "uint256",
613
+ name: "lzTokenFee",
614
+ type: "uint256",
615
+ },
616
+ ],
617
+ internalType: "struct MessagingFee",
618
+ name: "fee",
619
+ type: "tuple",
620
+ },
621
+ ],
622
+ stateMutability: "view",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [
627
+ {
628
+ internalType: "uint32",
629
+ name: "peerEid",
630
+ type: "uint32",
631
+ },
632
+ {
633
+ components: [
634
+ {
635
+ internalType: "uint32",
636
+ name: "peerEid",
637
+ type: "uint32",
638
+ },
639
+ {
640
+ internalType: "address",
641
+ name: "peer",
642
+ type: "address",
643
+ },
644
+ {
645
+ components: [
646
+ {
647
+ internalType: "uint32",
648
+ name: "eid",
649
+ type: "uint32",
650
+ },
651
+ {
652
+ internalType: "uint32",
653
+ name: "configType",
654
+ type: "uint32",
655
+ },
656
+ {
657
+ internalType: "bytes",
658
+ name: "config",
659
+ type: "bytes",
660
+ },
661
+ ],
662
+ internalType: "struct SetConfigParam[]",
663
+ name: "sendConfigParam",
664
+ type: "tuple[]",
665
+ },
666
+ {
667
+ components: [
668
+ {
669
+ internalType: "uint32",
670
+ name: "eid",
671
+ type: "uint32",
672
+ },
673
+ {
674
+ internalType: "uint32",
675
+ name: "configType",
676
+ type: "uint32",
677
+ },
678
+ {
679
+ internalType: "bytes",
680
+ name: "config",
681
+ type: "bytes",
682
+ },
683
+ ],
684
+ internalType: "struct SetConfigParam[]",
685
+ name: "receiveConfigParam",
686
+ type: "tuple[]",
687
+ },
688
+ {
689
+ internalType: "bool",
690
+ name: "setSendLib",
691
+ type: "bool",
692
+ },
693
+ {
694
+ internalType: "bool",
695
+ name: "setReceiveLib",
696
+ type: "bool",
697
+ },
698
+ ],
699
+ internalType: "struct IPBridgePTFactory.SelfWireParams",
700
+ name: "wireParams",
701
+ type: "tuple",
702
+ },
703
+ {
704
+ internalType: "bytes",
705
+ name: "options",
706
+ type: "bytes",
707
+ },
708
+ {
709
+ components: [
710
+ {
711
+ internalType: "uint256",
712
+ name: "nativeFee",
713
+ type: "uint256",
714
+ },
715
+ {
716
+ internalType: "uint256",
717
+ name: "lzTokenFee",
718
+ type: "uint256",
719
+ },
720
+ ],
721
+ internalType: "struct MessagingFee",
722
+ name: "fee",
723
+ type: "tuple",
724
+ },
725
+ ],
726
+ name: "remoteSelfWire",
727
+ outputs: [
728
+ {
729
+ components: [
730
+ {
731
+ internalType: "bytes32",
732
+ name: "guid",
733
+ type: "bytes32",
734
+ },
735
+ {
736
+ internalType: "uint64",
737
+ name: "nonce",
738
+ type: "uint64",
739
+ },
740
+ {
741
+ components: [
742
+ {
743
+ internalType: "uint256",
744
+ name: "nativeFee",
745
+ type: "uint256",
746
+ },
747
+ {
748
+ internalType: "uint256",
749
+ name: "lzTokenFee",
750
+ type: "uint256",
751
+ },
752
+ ],
753
+ internalType: "struct MessagingFee",
754
+ name: "fee",
755
+ type: "tuple",
756
+ },
757
+ ],
758
+ internalType: "struct MessagingReceipt",
759
+ name: "msgReceipt",
760
+ type: "tuple",
761
+ },
762
+ ],
763
+ stateMutability: "payable",
764
+ type: "function",
765
+ },
766
+ {
767
+ inputs: [
768
+ {
769
+ internalType: "uint32",
770
+ name: "peerEid",
771
+ type: "uint32",
772
+ },
773
+ {
774
+ components: [
775
+ {
776
+ internalType: "uint32",
777
+ name: "hubLzEid",
778
+ type: "uint32",
779
+ },
780
+ {
781
+ internalType: "address",
782
+ name: "hubPt",
783
+ type: "address",
784
+ },
785
+ {
786
+ internalType: "uint32[]",
787
+ name: "toPeerEids",
788
+ type: "uint32[]",
789
+ },
790
+ {
791
+ internalType: "uint128[]",
792
+ name: "enforcedReceiveGas",
793
+ type: "uint128[]",
794
+ },
795
+ {
796
+ internalType: "bool",
797
+ name: "setSendLib",
798
+ type: "bool",
799
+ },
800
+ {
801
+ internalType: "bool",
802
+ name: "setReceiveLib",
803
+ type: "bool",
804
+ },
805
+ ],
806
+ internalType: "struct IPBridgePTFactory.WirePtOftParams",
807
+ name: "wireParams",
808
+ type: "tuple",
809
+ },
810
+ {
811
+ internalType: "bytes",
812
+ name: "options",
813
+ type: "bytes",
814
+ },
815
+ {
816
+ components: [
817
+ {
818
+ internalType: "uint256",
819
+ name: "nativeFee",
820
+ type: "uint256",
821
+ },
822
+ {
823
+ internalType: "uint256",
824
+ name: "lzTokenFee",
825
+ type: "uint256",
826
+ },
827
+ ],
828
+ internalType: "struct MessagingFee",
829
+ name: "fee",
830
+ type: "tuple",
831
+ },
832
+ ],
833
+ name: "remoteWirePtOft",
834
+ outputs: [
835
+ {
836
+ components: [
837
+ {
838
+ internalType: "bytes32",
839
+ name: "guid",
840
+ type: "bytes32",
841
+ },
842
+ {
843
+ internalType: "uint64",
844
+ name: "nonce",
845
+ type: "uint64",
846
+ },
847
+ {
848
+ components: [
849
+ {
850
+ internalType: "uint256",
851
+ name: "nativeFee",
852
+ type: "uint256",
853
+ },
854
+ {
855
+ internalType: "uint256",
856
+ name: "lzTokenFee",
857
+ type: "uint256",
858
+ },
859
+ ],
860
+ internalType: "struct MessagingFee",
861
+ name: "fee",
862
+ type: "tuple",
863
+ },
864
+ ],
865
+ internalType: "struct MessagingReceipt",
866
+ name: "msgReceipt",
867
+ type: "tuple",
868
+ },
869
+ ],
870
+ stateMutability: "payable",
871
+ type: "function",
872
+ },
873
+ {
874
+ inputs: [
875
+ {
876
+ components: [
877
+ {
878
+ internalType: "uint32",
879
+ name: "peerEid",
880
+ type: "uint32",
881
+ },
882
+ {
883
+ internalType: "address",
884
+ name: "peer",
885
+ type: "address",
886
+ },
887
+ {
888
+ components: [
889
+ {
890
+ internalType: "uint32",
891
+ name: "eid",
892
+ type: "uint32",
893
+ },
894
+ {
895
+ internalType: "uint32",
896
+ name: "configType",
897
+ type: "uint32",
898
+ },
899
+ {
900
+ internalType: "bytes",
901
+ name: "config",
902
+ type: "bytes",
903
+ },
904
+ ],
905
+ internalType: "struct SetConfigParam[]",
906
+ name: "sendConfigParam",
907
+ type: "tuple[]",
908
+ },
909
+ {
910
+ components: [
911
+ {
912
+ internalType: "uint32",
913
+ name: "eid",
914
+ type: "uint32",
915
+ },
916
+ {
917
+ internalType: "uint32",
918
+ name: "configType",
919
+ type: "uint32",
920
+ },
921
+ {
922
+ internalType: "bytes",
923
+ name: "config",
924
+ type: "bytes",
925
+ },
926
+ ],
927
+ internalType: "struct SetConfigParam[]",
928
+ name: "receiveConfigParam",
929
+ type: "tuple[]",
930
+ },
931
+ {
932
+ internalType: "bool",
933
+ name: "setSendLib",
934
+ type: "bool",
935
+ },
936
+ {
937
+ internalType: "bool",
938
+ name: "setReceiveLib",
939
+ type: "bool",
940
+ },
941
+ ],
942
+ internalType: "struct IPBridgePTFactory.SelfWireParams",
943
+ name: "params",
944
+ type: "tuple",
945
+ },
946
+ ],
947
+ name: "selfWire",
948
+ outputs: [],
949
+ stateMutability: "nonpayable",
950
+ type: "function",
951
+ },
952
+ {
953
+ inputs: [
954
+ {
955
+ internalType: "address",
956
+ name: "_delegate",
957
+ type: "address",
958
+ },
959
+ ],
960
+ name: "setDelegate",
961
+ outputs: [],
962
+ stateMutability: "nonpayable",
963
+ type: "function",
964
+ },
965
+ {
966
+ inputs: [
967
+ {
968
+ internalType: "uint32",
969
+ name: "_eid",
970
+ type: "uint32",
971
+ },
972
+ {
973
+ internalType: "bytes32",
974
+ name: "_peer",
975
+ type: "bytes32",
976
+ },
977
+ ],
978
+ name: "setPeer",
979
+ outputs: [],
980
+ stateMutability: "nonpayable",
981
+ type: "function",
982
+ },
983
+ {
984
+ inputs: [
985
+ {
986
+ components: [
987
+ {
988
+ internalType: "uint32",
989
+ name: "hubLzEid",
990
+ type: "uint32",
991
+ },
992
+ {
993
+ internalType: "address",
994
+ name: "hubPt",
995
+ type: "address",
996
+ },
997
+ {
998
+ internalType: "uint32[]",
999
+ name: "toPeerEids",
1000
+ type: "uint32[]",
1001
+ },
1002
+ {
1003
+ internalType: "uint128[]",
1004
+ name: "enforcedReceiveGas",
1005
+ type: "uint128[]",
1006
+ },
1007
+ {
1008
+ internalType: "bool",
1009
+ name: "setSendLib",
1010
+ type: "bool",
1011
+ },
1012
+ {
1013
+ internalType: "bool",
1014
+ name: "setReceiveLib",
1015
+ type: "bool",
1016
+ },
1017
+ ],
1018
+ internalType: "struct IPBridgePTFactory.WirePtOftParams",
1019
+ name: "params",
1020
+ type: "tuple",
1021
+ },
1022
+ ],
1023
+ name: "wirePtOft",
1024
+ outputs: [],
1025
+ stateMutability: "nonpayable",
1026
+ type: "function",
1027
+ },
1028
+ ];
1029
+
1030
+ export class IPBridgePTFactory__factory {
1031
+ static readonly abi = _abi;
1032
+ static createInterface(): IPBridgePTFactoryInterface {
1033
+ return new utils.Interface(_abi) as IPBridgePTFactoryInterface;
1034
+ }
1035
+ static connect(
1036
+ address: string,
1037
+ signerOrProvider: Signer | Provider
1038
+ ): IPBridgePTFactory {
1039
+ return new Contract(address, _abi, signerOrProvider) as IPBridgePTFactory;
1040
+ }
1041
+ }