@pendle/core-v2 4.5.0 → 4.5.1-beta-2
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.
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +1156 -34
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +1183 -61
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +1158 -36
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/contracts/interfaces/IPActionMiscV3.sol +92 -0
- package/contracts/router/ActionMiscV3.sol +150 -36
- package/contracts/router/ActionSwapYTV3.sol +0 -85
- package/contracts/router/base/ActionBase.sol +106 -1
- package/deployments/merkle-distribution/2024-04-25.json +14930 -0
- package/package.json +1 -1
- package/typechain-types/ActionMiscV3.ts +573 -16
- package/typechain-types/IPActionMiscV3.ts +573 -16
- package/typechain-types/IPAllActionV3.ts +480 -0
- package/typechain-types/ISwellSimpleStakingERC20.ts +289 -0
- package/typechain-types/PendleSwellRswETHStakingSY.ts +1325 -0
- package/typechain-types/PendleSwellStakingERC20SY.ts +1299 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1157 -35
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/IPActionMiscV3__factory.ts +1156 -34
- package/typechain-types/factories/IPAllActionV3__factory.ts +1183 -61
- package/typechain-types/factories/ISwellSimpleStakingERC20__factory.ts +226 -0
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1106 -0
- package/typechain-types/factories/PendleSwellStakingERC20SY__factory.ts +1112 -0
|
@@ -0,0 +1,226 @@
|
|
|
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
|
+
ISwellSimpleStakingERC20,
|
|
9
|
+
ISwellSimpleStakingERC20Interface,
|
|
10
|
+
} from "../ISwellSimpleStakingERC20";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "ADDRESS_NULL",
|
|
16
|
+
type: "error",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: "AMOUNT_NULL",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "INSUFFICIENT_BALANCE",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "token",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "TOKEN_NOT_ALLOWED",
|
|
37
|
+
type: "error",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
indexed: true,
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "token",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "staker",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "amount",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
name: "Deposit",
|
|
62
|
+
type: "event",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
anonymous: false,
|
|
66
|
+
inputs: [
|
|
67
|
+
{
|
|
68
|
+
indexed: true,
|
|
69
|
+
internalType: "address",
|
|
70
|
+
name: "token",
|
|
71
|
+
type: "address",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
components: [
|
|
75
|
+
{
|
|
76
|
+
internalType: "bool",
|
|
77
|
+
name: "deposit",
|
|
78
|
+
type: "bool",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
internalType: "bool",
|
|
82
|
+
name: "withdraw",
|
|
83
|
+
type: "bool",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
indexed: false,
|
|
87
|
+
internalType: "struct ISwellSimpleStakingERC20.Supported",
|
|
88
|
+
name: "supported",
|
|
89
|
+
type: "tuple",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
name: "SupportedToken",
|
|
93
|
+
type: "event",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
anonymous: false,
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
indexed: true,
|
|
100
|
+
internalType: "address",
|
|
101
|
+
name: "token",
|
|
102
|
+
type: "address",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
indexed: true,
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "staker",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
indexed: false,
|
|
112
|
+
internalType: "uint256",
|
|
113
|
+
name: "amount",
|
|
114
|
+
type: "uint256",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
name: "Withdraw",
|
|
118
|
+
type: "event",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
inputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "_token",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
internalType: "uint256",
|
|
129
|
+
name: "_amount",
|
|
130
|
+
type: "uint256",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
internalType: "address",
|
|
134
|
+
name: "_receiver",
|
|
135
|
+
type: "address",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
name: "deposit",
|
|
139
|
+
outputs: [],
|
|
140
|
+
stateMutability: "nonpayable",
|
|
141
|
+
type: "function",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
inputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "_token",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
name: "rescueERC20",
|
|
152
|
+
outputs: [],
|
|
153
|
+
stateMutability: "nonpayable",
|
|
154
|
+
type: "function",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "address",
|
|
160
|
+
name: "_token",
|
|
161
|
+
type: "address",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
components: [
|
|
165
|
+
{
|
|
166
|
+
internalType: "bool",
|
|
167
|
+
name: "deposit",
|
|
168
|
+
type: "bool",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
internalType: "bool",
|
|
172
|
+
name: "withdraw",
|
|
173
|
+
type: "bool",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
internalType: "struct ISwellSimpleStakingERC20.Supported",
|
|
177
|
+
name: "_supported",
|
|
178
|
+
type: "tuple",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
name: "supportToken",
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: "nonpayable",
|
|
184
|
+
type: "function",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "address",
|
|
190
|
+
name: "_token",
|
|
191
|
+
type: "address",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
name: "_amount",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
internalType: "address",
|
|
200
|
+
name: "_receiver",
|
|
201
|
+
type: "address",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
name: "withdraw",
|
|
205
|
+
outputs: [],
|
|
206
|
+
stateMutability: "nonpayable",
|
|
207
|
+
type: "function",
|
|
208
|
+
},
|
|
209
|
+
];
|
|
210
|
+
|
|
211
|
+
export class ISwellSimpleStakingERC20__factory {
|
|
212
|
+
static readonly abi = _abi;
|
|
213
|
+
static createInterface(): ISwellSimpleStakingERC20Interface {
|
|
214
|
+
return new utils.Interface(_abi) as ISwellSimpleStakingERC20Interface;
|
|
215
|
+
}
|
|
216
|
+
static connect(
|
|
217
|
+
address: string,
|
|
218
|
+
signerOrProvider: Signer | Provider
|
|
219
|
+
): ISwellSimpleStakingERC20 {
|
|
220
|
+
return new Contract(
|
|
221
|
+
address,
|
|
222
|
+
_abi,
|
|
223
|
+
signerOrProvider
|
|
224
|
+
) as ISwellSimpleStakingERC20;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -211,7 +211,7 @@ const _abi = [
|
|
|
211
211
|
];
|
|
212
212
|
|
|
213
213
|
const _bytecode =
|
|
214
|
-
"
|
|
214
|
+
"0x60e060405234801561001057600080fd5b5060405161123538038061123583398101604081905261002f91610068565b6001600160a01b0392831660805290821660a0521660c0526100ab565b80516001600160a01b038116811461006357600080fd5b919050565b60008060006060848603121561007d57600080fd5b6100868461004c565b92506100946020850161004c565b91506100a26040850161004c565b90509250925092565b60805160a05160c051611125610110600039600081816061015261024d01526000818160ef01526101b5015260008181610123015281816103a3015281816103e6015281816104100152818161046d0152818161059f015261065c01526111256000f3fe6080604052600436106100435760003560e01c806306ae70951461004f5780634ff780e1146100a057806387a409a2146100dd578063f887ea401461011157600080fd5b3661004a57005b600080fd5b34801561005b57600080fd5b506100837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100b36100ae366004610d9a565b610145565b604080516001600160a01b0394851681529284166020840152921691810191909152606001610097565b3480156100e957600080fd5b506100837f000000000000000000000000000000000000000000000000000000000000000081565b34801561011d57600080fd5b506100837f000000000000000000000000000000000000000000000000000000000000000081565b60008060006101548787610173565b91945092509050610169818885858989610392565b9450945094915050565b80516080820151604051637145345b60e11b81526001600160a01b03858116600483015263ffffffff90931660248201529015156044820152600091829182917f0000000000000000000000000000000000000000000000000000000000000000169063e28a68b69060640160408051808303816000875af11580156101fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102219190610e67565b60408087015160608801516020890151925163f661cf6b60e01b81529497509295506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169363f661cf6b936102ad938993926004016001600160a01b03949094168452602084019290925260408301526001600160501b0316606082015260800190565b6020604051808303816000875af11580156102cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f09190610ea1565b604080516001600160a01b03888116825286811660208084019190915286821683850152885163ffffffff16606080850191909152908901516001600160501b03166080808501919091529389015160a084015288015160c083015291870151151560e08201529192508216907f64548e98bf851c530285483e1870abe9e41d3a7060292802eb888542488f1839906101000160405180910390a29250925092565b61039d82338361072c565b6103c7827f000000000000000000000000000000000000000000000000000000000000000061079d565b846001600160a01b0316826001600160a01b03161461040a5761040a857f000000000000000000000000000000000000000000000000000000000000000061079d565b610434847f000000000000000000000000000000000000000000000000000000000000000061079d565b6000856001600160a01b0316836001600160a01b0316146105905760006001600160a01b03841615610467576000610469565b825b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e071dc682308a60006040518060a001604052808b6001600160a01b031681526020018a81526020018b6001600160a01b0316815260200160006001600160a01b031681526020016040518060800160405280600060038111156104fc576104fc610ec5565b815260006020808301829052604080518381529182018152808401919091526060909201529152516001600160e01b031960e088901b1681526105459493929190600401610f2b565b60206040518083038185885af1158015610563573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105889190610ff3565b915050610593565b50805b60006001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016631a8631b230876105d1600287611022565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152600060648201526084016020604051808303816000875af115801561062c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106509190610ff3565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166397ee279e338a61068e600287611022565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606481018490526000608482015260a4016060604051808303816000875af11580156106f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107149190611036565b505050610722853383610861565b5050505050505050565b6001600160a01b0383166107825780341461077d5760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064015b60405180910390fd5b505050565b801561077d5761077d6001600160a01b03841683308461092b565b6001600160a01b0382166107af575050565b6107c160026001600160601b03611064565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa15801561081a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083e9190610ff3565b101561085d5761085082826000610996565b61085d8282600019610996565b5050565b8060000361086e57505050565b6001600160a01b038316610917576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146108c9576040519150601f19603f3d011682016040523d82523d6000602084013e6108ce565b606091505b50509050806109115760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610774565b50505050565b61077d6001600160a01b0384168383610aaa565b6040516001600160a01b03808516602483015283166044820152606481018290526109119085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ac9565b600080846001600160a01b031663095ea7b360e01b85856040516024016109be92919061108a565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516109fc91906110a3565b6000604051808303816000865af19150503d8060008114610a39576040519150601f19603f3d011682016040523d82523d6000602084013e610a3e565b606091505b5091509150818015610a68575080511580610a68575080806020019051810190610a6891906110bf565b610aa35760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b6044820152606401610774565b5050505050565b61077d8363a9059cbb60e01b848460405160240161095f92919061108a565b6000610b1e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b9050805160001480610b3f575080806020019051810190610b3f91906110bf565b61077d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610774565b6060610bad8484600085610bb5565b949350505050565b606082471015610c165760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610774565b600080866001600160a01b03168587604051610c3291906110a3565b60006040518083038185875af1925050503d8060008114610c6f576040519150601f19603f3d011682016040523d82523d6000602084013e610c74565b606091505b5091509150610c8587838387610c90565b979650505050505050565b60608315610cff578251600003610cf8576001600160a01b0385163b610cf85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610774565b5081610bad565b610bad8383815115610d145781518083602001fd5b8060405162461bcd60e51b815260040161077491906110dc565b6001600160a01b0381168114610d4357600080fd5b50565b8035610d5181610d2e565b919050565b803563ffffffff81168114610d5157600080fd5b80356001600160501b0381168114610d5157600080fd5b8015158114610d4357600080fd5b8035610d5181610d81565b600080600080848603610100811215610db257600080fd5b8535610dbd81610d2e565b945060a0601f1982011215610dd157600080fd5b5060405160a081016001600160401b0381118282101715610e0257634e487b7160e01b600052604160045260246000fd5b604052610e1160208701610d56565b8152610e1f60408701610d6a565b60208201526060860135604082015260808601356060820152610e4460a08701610d8f565b60808201529250610e5760c08601610d46565b9396929550929360e00135925050565b60008060408385031215610e7a57600080fd5b8251610e8581610d2e565b6020840151909250610e9681610d2e565b809150509250929050565b600060208284031215610eb357600080fd5b8151610ebe81610d2e565b9392505050565b634e487b7160e01b600052602160045260246000fd5b60005b83811015610ef6578181015183820152602001610ede565b50506000910152565b60008151808452610f17816020860160208601610edb565b601f01601f19169290920160200192915050565b600060018060a01b038087168352808616602084015284604084015260806060840152808451166080840152602084015160a08401528060408501511660c08401528060608501511660e0840152608084015160a0610100850152805160048110610fa657634e487b7160e01b600052602160045260246000fd5b61012085015260208101519091166101408401526040810151608061016085015290610fd66101a0850183610eff565b915060608101511515610180850152508091505095945050505050565b60006020828403121561100557600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b6000826110315761103161100c565b500490565b60008060006060848603121561104b57600080fd5b8351925060208401519150604084015190509250925092565b60006001600160601b038381168061107e5761107e61100c565b92169190910492915050565b6001600160a01b03929092168252602082015260400190565b600082516110b5818460208701610edb565b9190910192915050565b6000602082840312156110d157600080fd5b8151610ebe81610d81565b602081526000610ebe6020830184610eff56fea2646970667358221220cc64fa61467dc11911f47a50db9ff5f486a28e81780034f6257ec333606c39d164736f6c63430008170033";
|
|
215
215
|
|
|
216
216
|
type PendlePoolDeployHelperConstructorParams =
|
|
217
217
|
| [signer?: Signer]
|