@pendle/core-v2 0.11.9-testnet → 0.11.11-testnet

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 (147) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
  3. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  5. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
  6. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
  7. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
  8. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
  9. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
  10. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
  11. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +1 -1
  12. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
  13. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  14. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  15. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  25. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
  31. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +4 -4
  37. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
  39. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +9 -4
  41. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  44. package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  46. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  48. package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  50. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  51. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  52. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +5 -0
  53. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  54. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  55. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  56. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  57. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +5 -0
  58. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  59. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  60. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
  61. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.json +93 -0
  62. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  63. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
  64. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  65. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  66. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  67. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  68. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  69. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  70. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
  71. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  72. package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  73. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  74. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  75. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  76. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  77. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  78. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  79. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  80. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  81. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
  82. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  83. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
  84. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  85. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +120 -60
  86. package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.dbg.json +1 -1
  87. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +6 -1
  88. package/contracts/core/PendleRouter.sol +2 -1
  89. package/contracts/core/actions/ActionAddRemoveLiq.sol +23 -2
  90. package/contracts/core/actions/ActionMintRedeem.sol +4 -0
  91. package/contracts/interfaces/IPActionMintRedeem.sol +1 -0
  92. package/contracts/interfaces/IPVotingEscrow.sol +1 -1
  93. package/contracts/libraries/math/MarketApproxLib.sol +1 -0
  94. package/contracts/offchain-helpers/MarketMathStatic.sol +16 -8
  95. package/contracts/offchain-helpers/RouterStatic.sol +52 -3
  96. package/package.json +1 -1
  97. package/typechain-types/ActionMintRedeem.ts +9 -2
  98. package/typechain-types/Errors.ts +57 -0
  99. package/typechain-types/ICrvPool.ts +137 -22
  100. package/typechain-types/IPActionMintRedeem.ts +9 -2
  101. package/typechain-types/IPAllAction.ts +9 -2
  102. package/typechain-types/IPBatchSeller.ts +252 -0
  103. package/typechain-types/IPVotingEscrow.ts +131 -0
  104. package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
  105. package/typechain-types/IRewards.ts +25 -10
  106. package/typechain-types/Pendle3CrvAndTokenSCY.ts +1215 -0
  107. package/typechain-types/Pendle3CrvTokenSCY.ts +85 -185
  108. package/typechain-types/PendleBatchSeller.ts +626 -0
  109. package/typechain-types/PendleConvexCurveLP2PoolSCY.ts +185 -220
  110. package/typechain-types/PendleConvexCurveLPSCY.ts +159 -182
  111. package/typechain-types/PendleCvxCRVSCY.ts +0 -34
  112. package/typechain-types/PendleFeeDistributorFactory.ts +97 -8
  113. package/typechain-types/PtAMMArb.ts +587 -0
  114. package/typechain-types/RouterStatic.ts +82 -0
  115. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  116. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  117. package/typechain-types/factories/ActionMintRedeem__factory.ts +6 -1
  118. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  119. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  120. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  121. package/typechain-types/factories/Errors__factory.ts +933 -0
  122. package/typechain-types/factories/ICrvPool__factory.ts +85 -12
  123. package/typechain-types/factories/IPActionMintRedeem__factory.ts +5 -0
  124. package/typechain-types/factories/IPAllAction__factory.ts +5 -0
  125. package/typechain-types/factories/IPBatchSeller__factory.ts +138 -0
  126. package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
  127. package/typechain-types/factories/IPVotingEscrow__factory.ts +93 -0
  128. package/typechain-types/factories/IRewards__factory.ts +14 -1
  129. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  130. package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1130 -0
  131. package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
  132. package/typechain-types/factories/Pendle3CrvTokenSCY__factory.ts +74 -128
  133. package/typechain-types/factories/PendleBatchSeller__factory.ts +558 -0
  134. package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +207 -136
  135. package/typechain-types/factories/PendleConvexCurveLPSCY__factory.ts +170 -95
  136. package/typechain-types/factories/PendleCvxCRVSCY__factory.ts +1 -29
  137. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +97 -8
  138. package/typechain-types/factories/PendleFeeDistributor__factory.ts +6 -1
  139. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +17 -1
  140. package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +11 -0
  141. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +6 -1
  142. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  143. package/typechain-types/factories/PtAMMArb__factory.ts +525 -0
  144. package/typechain-types/factories/RouterStatic__factory.ts +65 -1
  145. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  146. package/typechain-types/hardhat.d.ts +261 -0
  147. package/typechain-types/index.ts +58 -0
@@ -7,6 +7,42 @@ import { Provider } from "@ethersproject/providers";
7
7
  import type { ICrvPool, ICrvPoolInterface } from "../ICrvPool";
8
8
 
9
9
  const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "uint256[2]",
14
+ name: "_deposit_amount",
15
+ type: "uint256[2]",
16
+ },
17
+ {
18
+ internalType: "uint256",
19
+ name: "_min_amount",
20
+ type: "uint256",
21
+ },
22
+ ],
23
+ name: "add_liquidity",
24
+ outputs: [],
25
+ stateMutability: "nonpayable",
26
+ type: "function",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "uint256[3]",
32
+ name: "_deposit_amount",
33
+ type: "uint256[3]",
34
+ },
35
+ {
36
+ internalType: "uint256",
37
+ name: "_min_amount",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ name: "add_liquidity",
42
+ outputs: [],
43
+ stateMutability: "nonpayable",
44
+ type: "function",
45
+ },
10
46
  {
11
47
  inputs: [
12
48
  {
@@ -36,6 +72,30 @@ const _abi = [
36
72
  stateMutability: "nonpayable",
37
73
  type: "function",
38
74
  },
75
+ {
76
+ inputs: [
77
+ {
78
+ internalType: "uint256[3]",
79
+ name: "_amounts",
80
+ type: "uint256[3]",
81
+ },
82
+ {
83
+ internalType: "bool",
84
+ name: "_is_deposit",
85
+ type: "bool",
86
+ },
87
+ ],
88
+ name: "calc_token_amount",
89
+ outputs: [
90
+ {
91
+ internalType: "uint256",
92
+ name: "",
93
+ type: "uint256",
94
+ },
95
+ ],
96
+ stateMutability: "view",
97
+ type: "function",
98
+ },
39
99
  {
40
100
  inputs: [
41
101
  {
@@ -60,6 +120,30 @@ const _abi = [
60
120
  stateMutability: "view",
61
121
  type: "function",
62
122
  },
123
+ {
124
+ inputs: [
125
+ {
126
+ internalType: "uint256[2]",
127
+ name: "_amounts",
128
+ type: "uint256[2]",
129
+ },
130
+ {
131
+ internalType: "bool",
132
+ name: "_is_deposit",
133
+ type: "bool",
134
+ },
135
+ ],
136
+ name: "calc_token_amount",
137
+ outputs: [
138
+ {
139
+ internalType: "uint256",
140
+ name: "",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ stateMutability: "view",
145
+ type: "function",
146
+ },
63
147
  {
64
148
  inputs: [
65
149
  {
@@ -211,20 +295,9 @@ const _abi = [
211
295
  name: "_min_amount",
212
296
  type: "uint256",
213
297
  },
214
- {
215
- internalType: "address",
216
- name: "_receiver",
217
- type: "address",
218
- },
219
298
  ],
220
299
  name: "remove_liquidity_one_coin",
221
- outputs: [
222
- {
223
- internalType: "uint256",
224
- name: "",
225
- type: "uint256",
226
- },
227
- ],
300
+ outputs: [],
228
301
  stateMutability: "nonpayable",
229
302
  type: "function",
230
303
  },
@@ -600,6 +600,11 @@ const _abi = [
600
600
  name: "outputToken",
601
601
  type: "address",
602
602
  },
603
+ {
604
+ internalType: "uint256",
605
+ name: "minTokenOut",
606
+ type: "uint256",
607
+ },
603
608
  ],
604
609
  internalType: "struct IPActionMintRedeem.RouterSwapAllStruct",
605
610
  name: "dataSwap",
@@ -1559,6 +1559,11 @@ const _abi = [
1559
1559
  name: "outputToken",
1560
1560
  type: "address",
1561
1561
  },
1562
+ {
1563
+ internalType: "uint256",
1564
+ name: "minTokenOut",
1565
+ type: "uint256",
1566
+ },
1562
1567
  ],
1563
1568
  internalType: "struct IPActionMintRedeem.RouterSwapAllStruct",
1564
1569
  name: "dataSwap",
@@ -0,0 +1,138 @@
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 { IPBatchSeller, IPBatchSellerInterface } from "../IPBatchSeller";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "address",
14
+ name: "receiver",
15
+ type: "address",
16
+ },
17
+ {
18
+ internalType: "uint256",
19
+ name: "netPtOut",
20
+ type: "uint256",
21
+ },
22
+ {
23
+ internalType: "uint256",
24
+ name: "maxTokenIn",
25
+ type: "uint256",
26
+ },
27
+ ],
28
+ name: "buyExactPt",
29
+ outputs: [
30
+ {
31
+ internalType: "uint256",
32
+ name: "netTokenIn",
33
+ type: "uint256",
34
+ },
35
+ ],
36
+ stateMutability: "nonpayable",
37
+ type: "function",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "address",
43
+ name: "receiver",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "uint256",
48
+ name: "netTokenIn",
49
+ type: "uint256",
50
+ },
51
+ {
52
+ internalType: "uint256",
53
+ name: "minPtOut",
54
+ type: "uint256",
55
+ },
56
+ ],
57
+ name: "buyPtWithExactToken",
58
+ outputs: [
59
+ {
60
+ internalType: "uint256",
61
+ name: "netPtOut",
62
+ type: "uint256",
63
+ },
64
+ ],
65
+ stateMutability: "nonpayable",
66
+ type: "function",
67
+ },
68
+ {
69
+ inputs: [
70
+ {
71
+ internalType: "uint256",
72
+ name: "netTokenIn",
73
+ type: "uint256",
74
+ },
75
+ ],
76
+ name: "calcPtOut",
77
+ outputs: [
78
+ {
79
+ internalType: "uint256",
80
+ name: "netPtOut",
81
+ type: "uint256",
82
+ },
83
+ ],
84
+ stateMutability: "nonpayable",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "uint256",
91
+ name: "netPtOut",
92
+ type: "uint256",
93
+ },
94
+ ],
95
+ name: "calcTokenIn",
96
+ outputs: [
97
+ {
98
+ internalType: "uint256",
99
+ name: "netTokenIn",
100
+ type: "uint256",
101
+ },
102
+ ],
103
+ stateMutability: "nonpayable",
104
+ type: "function",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "uint256",
110
+ name: "netPtOut",
111
+ type: "uint256",
112
+ },
113
+ ],
114
+ name: "getPrice",
115
+ outputs: [
116
+ {
117
+ internalType: "uint256",
118
+ name: "",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ stateMutability: "nonpayable",
123
+ type: "function",
124
+ },
125
+ ];
126
+
127
+ export class IPBatchSeller__factory {
128
+ static readonly abi = _abi;
129
+ static createInterface(): IPBatchSellerInterface {
130
+ return new utils.Interface(_abi) as IPBatchSellerInterface;
131
+ }
132
+ static connect(
133
+ address: string,
134
+ signerOrProvider: Signer | Provider
135
+ ): IPBatchSeller {
136
+ return new Contract(address, _abi, signerOrProvider) as IPBatchSeller;
137
+ }
138
+ }
@@ -0,0 +1,340 @@
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
+ IPVotingEscrowMainchain,
9
+ IPVotingEscrowMainchainInterface,
10
+ } from "../IPVotingEscrowMainchain";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ components: [
18
+ {
19
+ internalType: "uint128",
20
+ name: "bias",
21
+ type: "uint128",
22
+ },
23
+ {
24
+ internalType: "uint128",
25
+ name: "slope",
26
+ type: "uint128",
27
+ },
28
+ ],
29
+ indexed: false,
30
+ internalType: "struct VeBalance",
31
+ name: "newTotalSupply",
32
+ type: "tuple",
33
+ },
34
+ {
35
+ indexed: false,
36
+ internalType: "uint256[]",
37
+ name: "chainIds",
38
+ type: "uint256[]",
39
+ },
40
+ ],
41
+ name: "BroadcastTotalSupply",
42
+ type: "event",
43
+ },
44
+ {
45
+ anonymous: false,
46
+ inputs: [
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "user",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256[]",
56
+ name: "chainIds",
57
+ type: "uint256[]",
58
+ },
59
+ ],
60
+ name: "BroadcastUserPosition",
61
+ type: "event",
62
+ },
63
+ {
64
+ anonymous: false,
65
+ inputs: [
66
+ {
67
+ indexed: true,
68
+ internalType: "address",
69
+ name: "user",
70
+ type: "address",
71
+ },
72
+ {
73
+ indexed: false,
74
+ internalType: "uint128",
75
+ name: "amount",
76
+ type: "uint128",
77
+ },
78
+ {
79
+ indexed: false,
80
+ internalType: "uint128",
81
+ name: "expiry",
82
+ type: "uint128",
83
+ },
84
+ ],
85
+ name: "NewLockPosition",
86
+ type: "event",
87
+ },
88
+ {
89
+ anonymous: false,
90
+ inputs: [
91
+ {
92
+ indexed: true,
93
+ internalType: "address",
94
+ name: "user",
95
+ type: "address",
96
+ },
97
+ {
98
+ indexed: false,
99
+ internalType: "uint128",
100
+ name: "amount",
101
+ type: "uint128",
102
+ },
103
+ ],
104
+ name: "Withdraw",
105
+ type: "event",
106
+ },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: "address",
111
+ name: "user",
112
+ type: "address",
113
+ },
114
+ ],
115
+ name: "balanceOf",
116
+ outputs: [
117
+ {
118
+ internalType: "uint128",
119
+ name: "",
120
+ type: "uint128",
121
+ },
122
+ ],
123
+ stateMutability: "view",
124
+ type: "function",
125
+ },
126
+ {
127
+ inputs: [
128
+ {
129
+ internalType: "address",
130
+ name: "user",
131
+ type: "address",
132
+ },
133
+ {
134
+ internalType: "uint256",
135
+ name: "index",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ name: "getUserHistoryAt",
140
+ outputs: [
141
+ {
142
+ components: [
143
+ {
144
+ internalType: "uint128",
145
+ name: "timestamp",
146
+ type: "uint128",
147
+ },
148
+ {
149
+ components: [
150
+ {
151
+ internalType: "uint128",
152
+ name: "bias",
153
+ type: "uint128",
154
+ },
155
+ {
156
+ internalType: "uint128",
157
+ name: "slope",
158
+ type: "uint128",
159
+ },
160
+ ],
161
+ internalType: "struct VeBalance",
162
+ name: "value",
163
+ type: "tuple",
164
+ },
165
+ ],
166
+ internalType: "struct Checkpoint",
167
+ name: "",
168
+ type: "tuple",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ {
177
+ internalType: "address",
178
+ name: "user",
179
+ type: "address",
180
+ },
181
+ ],
182
+ name: "getUserHistoryLength",
183
+ outputs: [
184
+ {
185
+ internalType: "uint256",
186
+ name: "",
187
+ type: "uint256",
188
+ },
189
+ ],
190
+ stateMutability: "view",
191
+ type: "function",
192
+ },
193
+ {
194
+ inputs: [
195
+ {
196
+ internalType: "uint128",
197
+ name: "additionalAmountToLock",
198
+ type: "uint128",
199
+ },
200
+ {
201
+ internalType: "uint128",
202
+ name: "expiry",
203
+ type: "uint128",
204
+ },
205
+ ],
206
+ name: "increaseLockPosition",
207
+ outputs: [
208
+ {
209
+ internalType: "uint128",
210
+ name: "",
211
+ type: "uint128",
212
+ },
213
+ ],
214
+ stateMutability: "nonpayable",
215
+ type: "function",
216
+ },
217
+ {
218
+ inputs: [
219
+ {
220
+ internalType: "address",
221
+ name: "user",
222
+ type: "address",
223
+ },
224
+ ],
225
+ name: "positionData",
226
+ outputs: [
227
+ {
228
+ internalType: "uint128",
229
+ name: "amount",
230
+ type: "uint128",
231
+ },
232
+ {
233
+ internalType: "uint128",
234
+ name: "expiry",
235
+ type: "uint128",
236
+ },
237
+ ],
238
+ stateMutability: "view",
239
+ type: "function",
240
+ },
241
+ {
242
+ inputs: [
243
+ {
244
+ internalType: "address",
245
+ name: "user",
246
+ type: "address",
247
+ },
248
+ ],
249
+ name: "totalSupplyAndBalanceCurrent",
250
+ outputs: [
251
+ {
252
+ internalType: "uint128",
253
+ name: "",
254
+ type: "uint128",
255
+ },
256
+ {
257
+ internalType: "uint128",
258
+ name: "",
259
+ type: "uint128",
260
+ },
261
+ ],
262
+ stateMutability: "nonpayable",
263
+ type: "function",
264
+ },
265
+ {
266
+ inputs: [
267
+ {
268
+ internalType: "uint128",
269
+ name: "timestamp",
270
+ type: "uint128",
271
+ },
272
+ ],
273
+ name: "totalSupplyAt",
274
+ outputs: [
275
+ {
276
+ internalType: "uint128",
277
+ name: "",
278
+ type: "uint128",
279
+ },
280
+ ],
281
+ stateMutability: "view",
282
+ type: "function",
283
+ },
284
+ {
285
+ inputs: [],
286
+ name: "totalSupplyCurrent",
287
+ outputs: [
288
+ {
289
+ internalType: "uint128",
290
+ name: "",
291
+ type: "uint128",
292
+ },
293
+ ],
294
+ stateMutability: "nonpayable",
295
+ type: "function",
296
+ },
297
+ {
298
+ inputs: [],
299
+ name: "totalSupplyStored",
300
+ outputs: [
301
+ {
302
+ internalType: "uint128",
303
+ name: "",
304
+ type: "uint128",
305
+ },
306
+ ],
307
+ stateMutability: "view",
308
+ type: "function",
309
+ },
310
+ {
311
+ inputs: [],
312
+ name: "withdraw",
313
+ outputs: [
314
+ {
315
+ internalType: "uint128",
316
+ name: "",
317
+ type: "uint128",
318
+ },
319
+ ],
320
+ stateMutability: "nonpayable",
321
+ type: "function",
322
+ },
323
+ ];
324
+
325
+ export class IPVotingEscrowMainchain__factory {
326
+ static readonly abi = _abi;
327
+ static createInterface(): IPVotingEscrowMainchainInterface {
328
+ return new utils.Interface(_abi) as IPVotingEscrowMainchainInterface;
329
+ }
330
+ static connect(
331
+ address: string,
332
+ signerOrProvider: Signer | Provider
333
+ ): IPVotingEscrowMainchain {
334
+ return new Contract(
335
+ address,
336
+ _abi,
337
+ signerOrProvider
338
+ ) as IPVotingEscrowMainchain;
339
+ }
340
+ }