@pendle/core-v2 0.15.0-mainnet → 0.15.1-mainnet

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 (172) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +97 -48
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +62 -21
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json +26 -0
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +4 -0
  9. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +10 -0
  10. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +4 -0
  11. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +10 -0
  12. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  22. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +33 -2
  24. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +39 -8
  27. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  29. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  32. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  33. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  34. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  35. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  36. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  45. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSY.sol/Pendle3CrvAndTokenSY.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/ConvexCurveLP/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  57. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  59. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  61. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  63. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +37 -6
  66. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +4 -0
  67. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +10 -0
  68. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +4 -0
  71. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +119 -0
  72. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
  73. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +39 -0
  74. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.json +12 -2
  83. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  85. package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.dbg.json +4 -0
  86. package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.json +182 -0
  87. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  88. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
  89. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  90. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +89 -60
  91. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  92. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +20 -4
  93. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  94. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
  95. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  96. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  97. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
  99. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  101. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  103. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  105. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  106. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  107. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  108. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  109. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  110. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  111. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  112. package/deployments/1-markets/STETH_MARCH_30.json +1 -1
  113. package/package.json +1 -1
  114. package/typechain-types/ILayerZeroEndpoint.ts +256 -0
  115. package/typechain-types/ILayerZeroReceiver.ts +117 -0
  116. package/typechain-types/ILooksFeeSharing.ts +102 -0
  117. package/typechain-types/ILooksStaking.ts +162 -0
  118. package/typechain-types/IPMsgSendEndpoint.ts +24 -14
  119. package/typechain-types/ImplicitSwapfeeContract.ts +9 -17
  120. package/typechain-types/PendleConvex2TokensSY.ts +1215 -0
  121. package/typechain-types/PendleLooksStaking.ts +1052 -0
  122. package/typechain-types/PendleMsgReceiveEndpointUpg.ts +126 -68
  123. package/typechain-types/PendleMsgSendEndpointUpg.ts +99 -39
  124. package/typechain-types/PendleMsgSenderAppUpg.ts +55 -0
  125. package/typechain-types/PendleVotingControllerUpg.ts +55 -0
  126. package/typechain-types/RouterStatic.ts +44 -0
  127. package/typechain-types/VotingEscrowPendleMainchain.ts +61 -6
  128. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +17 -1
  129. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  130. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  131. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  132. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  133. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  134. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  135. package/typechain-types/factories/Errors__factory.ts +36 -5
  136. package/typechain-types/factories/ILayerZeroEndpoint__factory.ts +134 -0
  137. package/typechain-types/factories/ILayerZeroReceiver__factory.ts +54 -0
  138. package/typechain-types/factories/ILooksFeeSharing__factory.ts +45 -0
  139. package/typechain-types/factories/ILooksStaking__factory.ts +81 -0
  140. package/typechain-types/factories/IPMsgSendEndpoint__factory.ts +12 -2
  141. package/typechain-types/factories/ImplicitSwapfeeContract__factory.ts +4 -12
  142. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  143. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  144. package/typechain-types/factories/Pendle3CrvAndTokenSY__factory.ts +1 -1
  145. package/typechain-types/factories/PendleConvex2TokensSY__factory.ts +1093 -0
  146. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
  147. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  148. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  149. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  150. package/typechain-types/factories/PendleLooksStaking__factory.ts +933 -0
  151. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  152. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  153. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +100 -51
  154. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +71 -23
  155. package/typechain-types/factories/PendleMsgSenderAppUpg__factory.ts +26 -0
  156. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  157. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  158. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  159. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  160. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +44 -2
  161. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  162. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  163. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  164. package/typechain-types/factories/RouterStatic__factory.ts +30 -1
  165. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +50 -8
  166. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  167. package/typechain-types/hardhat.d.ts +27 -18
  168. package/typechain-types/index.ts +6 -4
  169. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +0 -4
  170. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.json +0 -53
  171. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +0 -4
  172. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.json +0 -45
@@ -25,17 +25,17 @@ import type {
25
25
  export interface IPMsgSendEndpointInterface extends utils.Interface {
26
26
  contractName: "IPMsgSendEndpoint";
27
27
  functions: {
28
- "calcFee(address,uint256,bytes)": FunctionFragment;
29
- "sendMessage(address,uint256,bytes)": FunctionFragment;
28
+ "calcFee(address,uint256,bytes,uint256)": FunctionFragment;
29
+ "sendMessage(address,uint256,bytes,uint256)": FunctionFragment;
30
30
  };
31
31
 
32
32
  encodeFunctionData(
33
33
  functionFragment: "calcFee",
34
- values: [string, BigNumberish, BytesLike]
34
+ values: [string, BigNumberish, BytesLike, BigNumberish]
35
35
  ): string;
36
36
  encodeFunctionData(
37
37
  functionFragment: "sendMessage",
38
- values: [string, BigNumberish, BytesLike]
38
+ values: [string, BigNumberish, BytesLike, BigNumberish]
39
39
  ): string;
40
40
 
41
41
  decodeFunctionResult(functionFragment: "calcFee", data: BytesLike): Result;
@@ -78,14 +78,16 @@ export interface IPMsgSendEndpoint extends BaseContract {
78
78
  calcFee(
79
79
  dstAddress: string,
80
80
  dstChainId: BigNumberish,
81
- message: BytesLike,
81
+ payload: BytesLike,
82
+ estimatedGasAmount: BigNumberish,
82
83
  overrides?: CallOverrides
83
84
  ): Promise<[BigNumber]>;
84
85
 
85
86
  sendMessage(
86
87
  dstAddress: string,
87
88
  dstChainId: BigNumberish,
88
- message: BytesLike,
89
+ payload: BytesLike,
90
+ estimatedGasAmount: BigNumberish,
89
91
  overrides?: PayableOverrides & { from?: string | Promise<string> }
90
92
  ): Promise<ContractTransaction>;
91
93
  };
@@ -93,14 +95,16 @@ export interface IPMsgSendEndpoint extends BaseContract {
93
95
  calcFee(
94
96
  dstAddress: string,
95
97
  dstChainId: BigNumberish,
96
- message: BytesLike,
98
+ payload: BytesLike,
99
+ estimatedGasAmount: BigNumberish,
97
100
  overrides?: CallOverrides
98
101
  ): Promise<BigNumber>;
99
102
 
100
103
  sendMessage(
101
104
  dstAddress: string,
102
105
  dstChainId: BigNumberish,
103
- message: BytesLike,
106
+ payload: BytesLike,
107
+ estimatedGasAmount: BigNumberish,
104
108
  overrides?: PayableOverrides & { from?: string | Promise<string> }
105
109
  ): Promise<ContractTransaction>;
106
110
 
@@ -108,14 +112,16 @@ export interface IPMsgSendEndpoint extends BaseContract {
108
112
  calcFee(
109
113
  dstAddress: string,
110
114
  dstChainId: BigNumberish,
111
- message: BytesLike,
115
+ payload: BytesLike,
116
+ estimatedGasAmount: BigNumberish,
112
117
  overrides?: CallOverrides
113
118
  ): Promise<BigNumber>;
114
119
 
115
120
  sendMessage(
116
121
  dstAddress: string,
117
122
  dstChainId: BigNumberish,
118
- message: BytesLike,
123
+ payload: BytesLike,
124
+ estimatedGasAmount: BigNumberish,
119
125
  overrides?: CallOverrides
120
126
  ): Promise<void>;
121
127
  };
@@ -126,14 +132,16 @@ export interface IPMsgSendEndpoint extends BaseContract {
126
132
  calcFee(
127
133
  dstAddress: string,
128
134
  dstChainId: BigNumberish,
129
- message: BytesLike,
135
+ payload: BytesLike,
136
+ estimatedGasAmount: BigNumberish,
130
137
  overrides?: CallOverrides
131
138
  ): Promise<BigNumber>;
132
139
 
133
140
  sendMessage(
134
141
  dstAddress: string,
135
142
  dstChainId: BigNumberish,
136
- message: BytesLike,
143
+ payload: BytesLike,
144
+ estimatedGasAmount: BigNumberish,
137
145
  overrides?: PayableOverrides & { from?: string | Promise<string> }
138
146
  ): Promise<BigNumber>;
139
147
  };
@@ -142,14 +150,16 @@ export interface IPMsgSendEndpoint extends BaseContract {
142
150
  calcFee(
143
151
  dstAddress: string,
144
152
  dstChainId: BigNumberish,
145
- message: BytesLike,
153
+ payload: BytesLike,
154
+ estimatedGasAmount: BigNumberish,
146
155
  overrides?: CallOverrides
147
156
  ): Promise<PopulatedTransaction>;
148
157
 
149
158
  sendMessage(
150
159
  dstAddress: string,
151
160
  dstChainId: BigNumberish,
152
- message: BytesLike,
161
+ payload: BytesLike,
162
+ estimatedGasAmount: BigNumberish,
153
163
  overrides?: PayableOverrides & { from?: string | Promise<string> }
154
164
  ): Promise<PopulatedTransaction>;
155
165
  };
@@ -22,7 +22,7 @@ import type {
22
22
 
23
23
  export type MarketStateStruct = {
24
24
  totalPt: BigNumberish;
25
- totalScy: BigNumberish;
25
+ totalSy: BigNumberish;
26
26
  totalLp: BigNumberish;
27
27
  treasury: string;
28
28
  scalarRoot: BigNumberish;
@@ -44,7 +44,7 @@ export type MarketStateStructOutput = [
44
44
  BigNumber
45
45
  ] & {
46
46
  totalPt: BigNumber;
47
- totalScy: BigNumber;
47
+ totalSy: BigNumber;
48
48
  totalLp: BigNumber;
49
49
  treasury: string;
50
50
  scalarRoot: BigNumber;
@@ -57,17 +57,14 @@ export type MarketStateStructOutput = [
57
57
  export interface ImplicitSwapfeeContractInterface extends utils.Interface {
58
58
  contractName: "ImplicitSwapfeeContract";
59
59
  functions: {
60
- "K()": FunctionFragment;
61
- "execute(address,(int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),int256)": FunctionFragment;
60
+ "execute(int256,address,(int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),int256)": FunctionFragment;
62
61
  };
63
62
 
64
- encodeFunctionData(functionFragment: "K", values?: undefined): string;
65
63
  encodeFunctionData(
66
64
  functionFragment: "execute",
67
- values: [string, MarketStateStruct, BigNumberish]
65
+ values: [BigNumberish, string, MarketStateStruct, BigNumberish]
68
66
  ): string;
69
67
 
70
- decodeFunctionResult(functionFragment: "K", data: BytesLike): Result;
71
68
  decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result;
72
69
 
73
70
  events: {};
@@ -101,9 +98,8 @@ export interface ImplicitSwapfeeContract extends BaseContract {
101
98
  removeListener: OnEvent<this>;
102
99
 
103
100
  functions: {
104
- K(overrides?: CallOverrides): Promise<[BigNumber]>;
105
-
106
101
  execute(
102
+ K: BigNumberish,
107
103
  market: string,
108
104
  prevState: MarketStateStruct,
109
105
  netPtToAccount: BigNumberish,
@@ -111,9 +107,8 @@ export interface ImplicitSwapfeeContract extends BaseContract {
111
107
  ): Promise<[BigNumber] & { netScyToAccount: BigNumber }>;
112
108
  };
113
109
 
114
- K(overrides?: CallOverrides): Promise<BigNumber>;
115
-
116
110
  execute(
111
+ K: BigNumberish,
117
112
  market: string,
118
113
  prevState: MarketStateStruct,
119
114
  netPtToAccount: BigNumberish,
@@ -121,9 +116,8 @@ export interface ImplicitSwapfeeContract extends BaseContract {
121
116
  ): Promise<BigNumber>;
122
117
 
123
118
  callStatic: {
124
- K(overrides?: CallOverrides): Promise<BigNumber>;
125
-
126
119
  execute(
120
+ K: BigNumberish,
127
121
  market: string,
128
122
  prevState: MarketStateStruct,
129
123
  netPtToAccount: BigNumberish,
@@ -134,9 +128,8 @@ export interface ImplicitSwapfeeContract extends BaseContract {
134
128
  filters: {};
135
129
 
136
130
  estimateGas: {
137
- K(overrides?: CallOverrides): Promise<BigNumber>;
138
-
139
131
  execute(
132
+ K: BigNumberish,
140
133
  market: string,
141
134
  prevState: MarketStateStruct,
142
135
  netPtToAccount: BigNumberish,
@@ -145,9 +138,8 @@ export interface ImplicitSwapfeeContract extends BaseContract {
145
138
  };
146
139
 
147
140
  populateTransaction: {
148
- K(overrides?: CallOverrides): Promise<PopulatedTransaction>;
149
-
150
141
  execute(
142
+ K: BigNumberish,
151
143
  market: string,
152
144
  prevState: MarketStateStruct,
153
145
  netPtToAccount: BigNumberish,