@pendle/core-v2 0.19.0-testnet → 0.20.1-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 (51) hide show
  1. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  3. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  6. package/deployments/43113-helper.json +1 -1
  7. package/deployments/80001-helper.json +3 -0
  8. package/package.json +1 -1
  9. package/typechain-types/ComposableStablePreview.ts +217 -0
  10. package/typechain-types/IBalancerFees.ts +89 -0
  11. package/typechain-types/IBalancerStablePreview.ts +217 -0
  12. package/typechain-types/IBasePool.ts +482 -0
  13. package/typechain-types/IComposableStable.ts +730 -0
  14. package/typechain-types/IGauge.ts +160 -0
  15. package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
  16. package/typechain-types/IMetaStablePool.ts +619 -0
  17. package/typechain-types/IRateProvider.ts +81 -0
  18. package/typechain-types/IVault.ts +410 -0
  19. package/typechain-types/MetaStableMath.ts +113 -0
  20. package/typechain-types/MetaStablePreview.ts +501 -0
  21. package/typechain-types/Multicall2.ts +437 -0
  22. package/typechain-types/PendleAura3EthSY.ts +1639 -0
  23. package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
  24. package/typechain-types/PendleAuraCbethWstethSY.ts +1626 -0
  25. package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
  26. package/typechain-types/PendleAuraWethWstethSY.ts +1562 -0
  27. package/typechain-types/StEthHelper.ts +107 -0
  28. package/typechain-types/StablePreviewBase.ts +217 -0
  29. package/typechain-types/factories/ComposableStablePreview__factory.ts +190 -0
  30. package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
  31. package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
  32. package/typechain-types/factories/IBasePool__factory.ts +340 -0
  33. package/typechain-types/factories/IComposableStable__factory.ts +482 -0
  34. package/typechain-types/factories/IGauge__factory.ts +70 -0
  35. package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
  36. package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
  37. package/typechain-types/factories/IRateProvider__factory.ts +36 -0
  38. package/typechain-types/factories/IVault__factory.ts +287 -0
  39. package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
  40. package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
  41. package/typechain-types/factories/Multicall2__factory.ts +372 -0
  42. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1365 -0
  43. package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
  44. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1356 -0
  45. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
  46. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1304 -0
  47. package/typechain-types/factories/StEthHelper__factory.ts +62 -0
  48. package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
  49. package/typechain-types/hardhat.d.ts +180 -9
  50. package/typechain-types/index.ts +40 -2
  51. package/deployments/1-markets/APE-JUNE-29.json +0 -8
@@ -0,0 +1,287 @@
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 { IVault, IVaultInterface } from "../IVault";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "WETH",
13
+ outputs: [
14
+ {
15
+ internalType: "contract IERC20",
16
+ name: "",
17
+ type: "address",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ {
24
+ inputs: [
25
+ {
26
+ internalType: "bytes32",
27
+ name: "poolId",
28
+ type: "bytes32",
29
+ },
30
+ {
31
+ internalType: "address",
32
+ name: "sender",
33
+ type: "address",
34
+ },
35
+ {
36
+ internalType: "address payable",
37
+ name: "recipient",
38
+ type: "address",
39
+ },
40
+ {
41
+ components: [
42
+ {
43
+ internalType: "address[]",
44
+ name: "assets",
45
+ type: "address[]",
46
+ },
47
+ {
48
+ internalType: "uint256[]",
49
+ name: "minAmountsOut",
50
+ type: "uint256[]",
51
+ },
52
+ {
53
+ internalType: "bytes",
54
+ name: "userData",
55
+ type: "bytes",
56
+ },
57
+ {
58
+ internalType: "bool",
59
+ name: "toInternalBalance",
60
+ type: "bool",
61
+ },
62
+ ],
63
+ internalType: "struct IVault.ExitPoolRequest",
64
+ name: "request",
65
+ type: "tuple",
66
+ },
67
+ ],
68
+ name: "exitPool",
69
+ outputs: [],
70
+ stateMutability: "nonpayable",
71
+ type: "function",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "bytes32",
77
+ name: "poolId",
78
+ type: "bytes32",
79
+ },
80
+ ],
81
+ name: "getPool",
82
+ outputs: [
83
+ {
84
+ internalType: "address",
85
+ name: "",
86
+ type: "address",
87
+ },
88
+ {
89
+ internalType: "uint8",
90
+ name: "",
91
+ type: "uint8",
92
+ },
93
+ ],
94
+ stateMutability: "view",
95
+ type: "function",
96
+ },
97
+ {
98
+ inputs: [
99
+ {
100
+ internalType: "bytes32",
101
+ name: "poolId",
102
+ type: "bytes32",
103
+ },
104
+ ],
105
+ name: "getPoolTokens",
106
+ outputs: [
107
+ {
108
+ internalType: "contract IERC20[]",
109
+ name: "tokens",
110
+ type: "address[]",
111
+ },
112
+ {
113
+ internalType: "uint256[]",
114
+ name: "balances",
115
+ type: "uint256[]",
116
+ },
117
+ {
118
+ internalType: "uint256",
119
+ name: "lastChangeBlock",
120
+ type: "uint256",
121
+ },
122
+ ],
123
+ stateMutability: "view",
124
+ type: "function",
125
+ },
126
+ {
127
+ inputs: [],
128
+ name: "getProtocolFeesCollector",
129
+ outputs: [
130
+ {
131
+ internalType: "address",
132
+ name: "",
133
+ type: "address",
134
+ },
135
+ ],
136
+ stateMutability: "view",
137
+ type: "function",
138
+ },
139
+ {
140
+ inputs: [
141
+ {
142
+ internalType: "bytes32",
143
+ name: "poolId",
144
+ type: "bytes32",
145
+ },
146
+ {
147
+ internalType: "address",
148
+ name: "sender",
149
+ type: "address",
150
+ },
151
+ {
152
+ internalType: "address",
153
+ name: "recipient",
154
+ type: "address",
155
+ },
156
+ {
157
+ components: [
158
+ {
159
+ internalType: "address[]",
160
+ name: "assets",
161
+ type: "address[]",
162
+ },
163
+ {
164
+ internalType: "uint256[]",
165
+ name: "maxAmountsIn",
166
+ type: "uint256[]",
167
+ },
168
+ {
169
+ internalType: "bytes",
170
+ name: "userData",
171
+ type: "bytes",
172
+ },
173
+ {
174
+ internalType: "bool",
175
+ name: "fromInternalBalance",
176
+ type: "bool",
177
+ },
178
+ ],
179
+ internalType: "struct IVault.JoinPoolRequest",
180
+ name: "request",
181
+ type: "tuple",
182
+ },
183
+ ],
184
+ name: "joinPool",
185
+ outputs: [],
186
+ stateMutability: "payable",
187
+ type: "function",
188
+ },
189
+ {
190
+ inputs: [
191
+ {
192
+ components: [
193
+ {
194
+ internalType: "bytes32",
195
+ name: "poolId",
196
+ type: "bytes32",
197
+ },
198
+ {
199
+ internalType: "enum IVault.SwapKind",
200
+ name: "kind",
201
+ type: "uint8",
202
+ },
203
+ {
204
+ internalType: "contract IAsset",
205
+ name: "assetIn",
206
+ type: "address",
207
+ },
208
+ {
209
+ internalType: "contract IAsset",
210
+ name: "assetOut",
211
+ type: "address",
212
+ },
213
+ {
214
+ internalType: "uint256",
215
+ name: "amount",
216
+ type: "uint256",
217
+ },
218
+ {
219
+ internalType: "bytes",
220
+ name: "userData",
221
+ type: "bytes",
222
+ },
223
+ ],
224
+ internalType: "struct IVault.SingleSwap",
225
+ name: "singleSwap",
226
+ type: "tuple",
227
+ },
228
+ {
229
+ components: [
230
+ {
231
+ internalType: "address",
232
+ name: "sender",
233
+ type: "address",
234
+ },
235
+ {
236
+ internalType: "bool",
237
+ name: "fromInternalBalance",
238
+ type: "bool",
239
+ },
240
+ {
241
+ internalType: "address payable",
242
+ name: "recipient",
243
+ type: "address",
244
+ },
245
+ {
246
+ internalType: "bool",
247
+ name: "toInternalBalance",
248
+ type: "bool",
249
+ },
250
+ ],
251
+ internalType: "struct IVault.FundManagement",
252
+ name: "funds",
253
+ type: "tuple",
254
+ },
255
+ {
256
+ internalType: "uint256",
257
+ name: "limit",
258
+ type: "uint256",
259
+ },
260
+ {
261
+ internalType: "uint256",
262
+ name: "deadline",
263
+ type: "uint256",
264
+ },
265
+ ],
266
+ name: "swap",
267
+ outputs: [
268
+ {
269
+ internalType: "uint256",
270
+ name: "",
271
+ type: "uint256",
272
+ },
273
+ ],
274
+ stateMutability: "payable",
275
+ type: "function",
276
+ },
277
+ ];
278
+
279
+ export class IVault__factory {
280
+ static readonly abi = _abi;
281
+ static createInterface(): IVaultInterface {
282
+ return new utils.Interface(_abi) as IVaultInterface;
283
+ }
284
+ static connect(address: string, signerOrProvider: Signer | Provider): IVault {
285
+ return new Contract(address, _abi, signerOrProvider) as IVault;
286
+ }
287
+ }
@@ -0,0 +1,93 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ MetaStableMath,
8
+ MetaStableMathInterface,
9
+ } from "../MetaStableMath";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "uint256",
16
+ name: "amplificationParameter",
17
+ type: "uint256",
18
+ },
19
+ {
20
+ internalType: "uint256[]",
21
+ name: "balances",
22
+ type: "uint256[]",
23
+ },
24
+ {
25
+ internalType: "bool",
26
+ name: "roundUp",
27
+ type: "bool",
28
+ },
29
+ ],
30
+ name: "_calculateInvariant",
31
+ outputs: [
32
+ {
33
+ internalType: "uint256",
34
+ name: "",
35
+ type: "uint256",
36
+ },
37
+ ],
38
+ stateMutability: "pure",
39
+ type: "function",
40
+ },
41
+ ];
42
+
43
+ const _bytecode =
44
+ "0x6104a561003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c8063ebf1d2aa1461003a575b600080fd5b61004d610048366004610349565b61005f565b60405190815260200160405180910390f35b81516000908190815b818110156100a65761009c86828151811061008557610085610422565b60200260200101518461025690919063ffffffff16565b9250600101610068565b50816000036100ba5760009250505061024f565b600082878302825b60ff8110156101f8576000858a6000815181106100e1576100e1610422565b60200260200101510290506000600190505b8681101561013b5761013161012a610124848e858151811061011757610117610422565b602002602001015161026b565b8961026b565b868c610294565b91506001016100f3565b508394506101ae61017d61016461015b610155878c61026b565b8561026b565b6103e88d610294565b6101776101718a8961026b565b8861026b565b90610256565b6101a861019b6101916103e888038661026b565b6103e88e15610294565b6101778a6001018961026b565b8b610294565b9350848411156101d6576001858503116101d1578397505050505050505061024f565b6101ef565b6001848603116101ef578397505050505050505061024f565b506001016100c2565b5060405162461bcd60e51b815260206004820152602160248201527f537461626c6520496e76617269616e7420646964206e6f7420636f6e766572676044820152606560f81b606482015260840160405180910390fd5b9392505050565b60006102628284610438565b90505b92915050565b600082820283158061028b57508284828161028857610288610459565b04145b61026257600080fd5b6000816102aa576102a584846102bc565b6102b4565b6102b484846102e2565b949350505050565b6000816000036102cb57600080fd5b8183816102da576102da610459565b049392505050565b6000816000036102f157600080fd5b8260000361030157506000610265565b81600184038161031357610313610459565b046001019050610265565b634e487b7160e01b600052604160045260246000fd5b8035801515811461034457600080fd5b919050565b60008060006060848603121561035e57600080fd5b833592506020808501356001600160401b038082111561037d57600080fd5b818701915087601f83011261039157600080fd5b8135818111156103a3576103a361031e565b8060051b604051601f19603f830116810181811085821117156103c8576103c861031e565b60405291825284820192508381018501918a8311156103e657600080fd5b938501935b82851015610404578435845293850193928501926103eb565b80975050505050505061041960408501610334565b90509250925092565b634e487b7160e01b600052603260045260246000fd5b8082018082111561026557634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fdfea26469706673582212204bd9ddd64dcd3c6a08f7a751026568b3cc08472536da02e5061241073dddeb9964736f6c63430008110033";
45
+
46
+ type MetaStableMathConstructorParams =
47
+ | [signer?: Signer]
48
+ | ConstructorParameters<typeof ContractFactory>;
49
+
50
+ const isSuperArgs = (
51
+ xs: MetaStableMathConstructorParams
52
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
53
+
54
+ export class MetaStableMath__factory extends ContractFactory {
55
+ constructor(...args: MetaStableMathConstructorParams) {
56
+ if (isSuperArgs(args)) {
57
+ super(...args);
58
+ } else {
59
+ super(_abi, _bytecode, args[0]);
60
+ }
61
+ this.contractName = "MetaStableMath";
62
+ }
63
+
64
+ deploy(
65
+ overrides?: Overrides & { from?: string | Promise<string> }
66
+ ): Promise<MetaStableMath> {
67
+ return super.deploy(overrides || {}) as Promise<MetaStableMath>;
68
+ }
69
+ getDeployTransaction(
70
+ overrides?: Overrides & { from?: string | Promise<string> }
71
+ ): TransactionRequest {
72
+ return super.getDeployTransaction(overrides || {});
73
+ }
74
+ attach(address: string): MetaStableMath {
75
+ return super.attach(address) as MetaStableMath;
76
+ }
77
+ connect(signer: Signer): MetaStableMath__factory {
78
+ return super.connect(signer) as MetaStableMath__factory;
79
+ }
80
+ static readonly contractName: "MetaStableMath";
81
+ public readonly contractName: "MetaStableMath";
82
+ static readonly bytecode = _bytecode;
83
+ static readonly abi = _abi;
84
+ static createInterface(): MetaStableMathInterface {
85
+ return new utils.Interface(_abi) as MetaStableMathInterface;
86
+ }
87
+ static connect(
88
+ address: string,
89
+ signerOrProvider: Signer | Provider
90
+ ): MetaStableMath {
91
+ return new Contract(address, _abi, signerOrProvider) as MetaStableMath;
92
+ }
93
+ }