@pendle/core-v2 0.5.0 → 0.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/contracts/core/RouterStatic.sol +128 -1
- package/contracts/interfaces/IPRouterStatic.sol +27 -0
- package/package.json +1 -1
- package/typechain-types/ActionStatic.ts +0 -399
- package/typechain-types/IPActionAll.ts +0 -1431
- package/typechain-types/IPActionStatic.ts +0 -359
- package/typechain-types/factories/ActionStatic__factory.ts +0 -308
- package/typechain-types/factories/IPActionAll__factory.ts +0 -983
- package/typechain-types/factories/IPActionStatic__factory.ts +0 -219
|
@@ -1,219 +0,0 @@
|
|
|
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
|
-
IPActionStatic,
|
|
9
|
-
IPActionStaticInterface,
|
|
10
|
-
} from "../IPActionStatic";
|
|
11
|
-
|
|
12
|
-
const _abi = [
|
|
13
|
-
{
|
|
14
|
-
inputs: [
|
|
15
|
-
{
|
|
16
|
-
internalType: "address",
|
|
17
|
-
name: "market",
|
|
18
|
-
type: "address",
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
internalType: "uint256",
|
|
22
|
-
name: "scyDesired",
|
|
23
|
-
type: "uint256",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
internalType: "uint256",
|
|
27
|
-
name: "otDesired",
|
|
28
|
-
type: "uint256",
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
name: "addLiquidityStatic",
|
|
32
|
-
outputs: [
|
|
33
|
-
{
|
|
34
|
-
internalType: "uint256",
|
|
35
|
-
name: "netLpOut",
|
|
36
|
-
type: "uint256",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
internalType: "uint256",
|
|
40
|
-
name: "scyUsed",
|
|
41
|
-
type: "uint256",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
internalType: "uint256",
|
|
45
|
-
name: "otUsed",
|
|
46
|
-
type: "uint256",
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
stateMutability: "nonpayable",
|
|
50
|
-
type: "function",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
inputs: [
|
|
54
|
-
{
|
|
55
|
-
internalType: "address",
|
|
56
|
-
name: "market",
|
|
57
|
-
type: "address",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
name: "getOtImpliedYield",
|
|
61
|
-
outputs: [
|
|
62
|
-
{
|
|
63
|
-
internalType: "int256",
|
|
64
|
-
name: "",
|
|
65
|
-
type: "int256",
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
stateMutability: "view",
|
|
69
|
-
type: "function",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
inputs: [
|
|
73
|
-
{
|
|
74
|
-
internalType: "address",
|
|
75
|
-
name: "token",
|
|
76
|
-
type: "address",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
name: "getPendleTokenType",
|
|
80
|
-
outputs: [
|
|
81
|
-
{
|
|
82
|
-
internalType: "bool",
|
|
83
|
-
name: "isOT",
|
|
84
|
-
type: "bool",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
internalType: "bool",
|
|
88
|
-
name: "isYT",
|
|
89
|
-
type: "bool",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
internalType: "bool",
|
|
93
|
-
name: "isMarket",
|
|
94
|
-
type: "bool",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
stateMutability: "view",
|
|
98
|
-
type: "function",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
inputs: [
|
|
102
|
-
{
|
|
103
|
-
internalType: "address",
|
|
104
|
-
name: "market",
|
|
105
|
-
type: "address",
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
internalType: "uint256",
|
|
109
|
-
name: "lpToRemove",
|
|
110
|
-
type: "uint256",
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
name: "removeLiquidityStatic",
|
|
114
|
-
outputs: [
|
|
115
|
-
{
|
|
116
|
-
internalType: "uint256",
|
|
117
|
-
name: "netScyOut",
|
|
118
|
-
type: "uint256",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
internalType: "uint256",
|
|
122
|
-
name: "netOtOut",
|
|
123
|
-
type: "uint256",
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
stateMutability: "view",
|
|
127
|
-
type: "function",
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
inputs: [
|
|
131
|
-
{
|
|
132
|
-
internalType: "address",
|
|
133
|
-
name: "market",
|
|
134
|
-
type: "address",
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
name: "scyIndex",
|
|
138
|
-
outputs: [
|
|
139
|
-
{
|
|
140
|
-
internalType: "SCYIndex",
|
|
141
|
-
name: "index",
|
|
142
|
-
type: "uint256",
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
stateMutability: "nonpayable",
|
|
146
|
-
type: "function",
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
inputs: [
|
|
150
|
-
{
|
|
151
|
-
internalType: "address",
|
|
152
|
-
name: "market",
|
|
153
|
-
type: "address",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
internalType: "uint256",
|
|
157
|
-
name: "exactOtIn",
|
|
158
|
-
type: "uint256",
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
name: "swapOtForScyStatic",
|
|
162
|
-
outputs: [
|
|
163
|
-
{
|
|
164
|
-
internalType: "uint256",
|
|
165
|
-
name: "netScyOut",
|
|
166
|
-
type: "uint256",
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
internalType: "uint256",
|
|
170
|
-
name: "netScyFee",
|
|
171
|
-
type: "uint256",
|
|
172
|
-
},
|
|
173
|
-
],
|
|
174
|
-
stateMutability: "nonpayable",
|
|
175
|
-
type: "function",
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
inputs: [
|
|
179
|
-
{
|
|
180
|
-
internalType: "address",
|
|
181
|
-
name: "market",
|
|
182
|
-
type: "address",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
internalType: "uint256",
|
|
186
|
-
name: "exactOtOut",
|
|
187
|
-
type: "uint256",
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
name: "swapScyForOtStatic",
|
|
191
|
-
outputs: [
|
|
192
|
-
{
|
|
193
|
-
internalType: "uint256",
|
|
194
|
-
name: "netScyIn",
|
|
195
|
-
type: "uint256",
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
internalType: "uint256",
|
|
199
|
-
name: "netScyFee",
|
|
200
|
-
type: "uint256",
|
|
201
|
-
},
|
|
202
|
-
],
|
|
203
|
-
stateMutability: "nonpayable",
|
|
204
|
-
type: "function",
|
|
205
|
-
},
|
|
206
|
-
];
|
|
207
|
-
|
|
208
|
-
export class IPActionStatic__factory {
|
|
209
|
-
static readonly abi = _abi;
|
|
210
|
-
static createInterface(): IPActionStaticInterface {
|
|
211
|
-
return new utils.Interface(_abi) as IPActionStaticInterface;
|
|
212
|
-
}
|
|
213
|
-
static connect(
|
|
214
|
-
address: string,
|
|
215
|
-
signerOrProvider: Signer | Provider
|
|
216
|
-
): IPActionStatic {
|
|
217
|
-
return new Contract(address, _abi, signerOrProvider) as IPActionStatic;
|
|
218
|
-
}
|
|
219
|
-
}
|