@pendle/core-v2 0.11.7-testnet → 0.11.9-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.
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +20 -2
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +185 -0
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +180 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +169 -0
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +150 -56
- package/contracts/core/PendleRouter.sol +8 -0
- package/contracts/core/actions/ActionCallback.sol +39 -0
- package/contracts/core/actions/ActionSwapPTYT.sol +86 -0
- package/contracts/core/actions/base/CallbackHelper.sol +49 -1
- package/contracts/interfaces/IPActionSwapPTYT.sol +31 -0
- package/contracts/interfaces/IPAllAction.sol +2 -0
- package/contracts/libraries/math/MarketApproxLib.sol +116 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +53 -0
- package/contracts/offchain-helpers/RouterStatic.sol +24 -0
- package/deployments/43113-core.json +1 -1
- package/package.json +1 -3
- package/typechain-types/ActionSwapPTYT.ts +233 -0
- package/typechain-types/IPActionSwapPTYT.ts +233 -0
- package/typechain-types/IPAllAction.ts +138 -0
- package/typechain-types/PendleRouter.ts +19 -0
- package/typechain-types/RouterStatic.ts +92 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +238 -0
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/IPActionSwapPTYT__factory.ts +195 -0
- package/typechain-types/factories/IPAllAction__factory.ts +169 -0
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +23 -1
- package/typechain-types/factories/RouterStatic__factory.ts +79 -1
- package/typechain-types/hardhat.d.ts +18 -198
- package/typechain-types/index.ts +4 -44
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
17
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "./common";
|
|
24
|
+
|
|
25
|
+
export type ApproxParamsStruct = {
|
|
26
|
+
guessMin: BigNumberish;
|
|
27
|
+
guessMax: BigNumberish;
|
|
28
|
+
guessOffchain: BigNumberish;
|
|
29
|
+
maxIteration: BigNumberish;
|
|
30
|
+
eps: BigNumberish;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type ApproxParamsStructOutput = [
|
|
34
|
+
BigNumber,
|
|
35
|
+
BigNumber,
|
|
36
|
+
BigNumber,
|
|
37
|
+
BigNumber,
|
|
38
|
+
BigNumber
|
|
39
|
+
] & {
|
|
40
|
+
guessMin: BigNumber;
|
|
41
|
+
guessMax: BigNumber;
|
|
42
|
+
guessOffchain: BigNumber;
|
|
43
|
+
maxIteration: BigNumber;
|
|
44
|
+
eps: BigNumber;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export interface ActionSwapPTYTInterface extends utils.Interface {
|
|
48
|
+
contractName: "ActionSwapPTYT";
|
|
49
|
+
functions: {
|
|
50
|
+
"swapExactPtForYt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
51
|
+
"swapExactYtForPt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
encodeFunctionData(
|
|
55
|
+
functionFragment: "swapExactPtForYt",
|
|
56
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
57
|
+
): string;
|
|
58
|
+
encodeFunctionData(
|
|
59
|
+
functionFragment: "swapExactYtForPt",
|
|
60
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
61
|
+
): string;
|
|
62
|
+
|
|
63
|
+
decodeFunctionResult(
|
|
64
|
+
functionFragment: "swapExactPtForYt",
|
|
65
|
+
data: BytesLike
|
|
66
|
+
): Result;
|
|
67
|
+
decodeFunctionResult(
|
|
68
|
+
functionFragment: "swapExactYtForPt",
|
|
69
|
+
data: BytesLike
|
|
70
|
+
): Result;
|
|
71
|
+
|
|
72
|
+
events: {
|
|
73
|
+
"SwapPtAndYt(address,address,address,int256,int256)": EventFragment;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
getEvent(nameOrSignatureOrTopic: "SwapPtAndYt"): EventFragment;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type SwapPtAndYtEvent = TypedEvent<
|
|
80
|
+
[string, string, string, BigNumber, BigNumber],
|
|
81
|
+
{
|
|
82
|
+
caller: string;
|
|
83
|
+
market: string;
|
|
84
|
+
receiver: string;
|
|
85
|
+
netPtToAccount: BigNumber;
|
|
86
|
+
netYtToAccount: BigNumber;
|
|
87
|
+
}
|
|
88
|
+
>;
|
|
89
|
+
|
|
90
|
+
export type SwapPtAndYtEventFilter = TypedEventFilter<SwapPtAndYtEvent>;
|
|
91
|
+
|
|
92
|
+
export interface ActionSwapPTYT extends BaseContract {
|
|
93
|
+
contractName: "ActionSwapPTYT";
|
|
94
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
95
|
+
attach(addressOrName: string): this;
|
|
96
|
+
deployed(): Promise<this>;
|
|
97
|
+
|
|
98
|
+
interface: ActionSwapPTYTInterface;
|
|
99
|
+
|
|
100
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
101
|
+
event: TypedEventFilter<TEvent>,
|
|
102
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
103
|
+
toBlock?: string | number | undefined
|
|
104
|
+
): Promise<Array<TEvent>>;
|
|
105
|
+
|
|
106
|
+
listeners<TEvent extends TypedEvent>(
|
|
107
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
108
|
+
): Array<TypedListener<TEvent>>;
|
|
109
|
+
listeners(eventName?: string): Array<Listener>;
|
|
110
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
111
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
112
|
+
): this;
|
|
113
|
+
removeAllListeners(eventName?: string): this;
|
|
114
|
+
off: OnEvent<this>;
|
|
115
|
+
on: OnEvent<this>;
|
|
116
|
+
once: OnEvent<this>;
|
|
117
|
+
removeListener: OnEvent<this>;
|
|
118
|
+
|
|
119
|
+
functions: {
|
|
120
|
+
swapExactPtForYt(
|
|
121
|
+
receiver: string,
|
|
122
|
+
market: string,
|
|
123
|
+
exactPtIn: BigNumberish,
|
|
124
|
+
minYtOut: BigNumberish,
|
|
125
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
126
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
127
|
+
): Promise<ContractTransaction>;
|
|
128
|
+
|
|
129
|
+
swapExactYtForPt(
|
|
130
|
+
receiver: string,
|
|
131
|
+
market: string,
|
|
132
|
+
exactYtIn: BigNumberish,
|
|
133
|
+
minPtOut: BigNumberish,
|
|
134
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
135
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
136
|
+
): Promise<ContractTransaction>;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
swapExactPtForYt(
|
|
140
|
+
receiver: string,
|
|
141
|
+
market: string,
|
|
142
|
+
exactPtIn: BigNumberish,
|
|
143
|
+
minYtOut: BigNumberish,
|
|
144
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
145
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
146
|
+
): Promise<ContractTransaction>;
|
|
147
|
+
|
|
148
|
+
swapExactYtForPt(
|
|
149
|
+
receiver: string,
|
|
150
|
+
market: string,
|
|
151
|
+
exactYtIn: BigNumberish,
|
|
152
|
+
minPtOut: BigNumberish,
|
|
153
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
154
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
155
|
+
): Promise<ContractTransaction>;
|
|
156
|
+
|
|
157
|
+
callStatic: {
|
|
158
|
+
swapExactPtForYt(
|
|
159
|
+
receiver: string,
|
|
160
|
+
market: string,
|
|
161
|
+
exactPtIn: BigNumberish,
|
|
162
|
+
minYtOut: BigNumberish,
|
|
163
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
164
|
+
overrides?: CallOverrides
|
|
165
|
+
): Promise<BigNumber>;
|
|
166
|
+
|
|
167
|
+
swapExactYtForPt(
|
|
168
|
+
receiver: string,
|
|
169
|
+
market: string,
|
|
170
|
+
exactYtIn: BigNumberish,
|
|
171
|
+
minPtOut: BigNumberish,
|
|
172
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
173
|
+
overrides?: CallOverrides
|
|
174
|
+
): Promise<BigNumber>;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
filters: {
|
|
178
|
+
"SwapPtAndYt(address,address,address,int256,int256)"(
|
|
179
|
+
caller?: string | null,
|
|
180
|
+
market?: string | null,
|
|
181
|
+
receiver?: string | null,
|
|
182
|
+
netPtToAccount?: null,
|
|
183
|
+
netYtToAccount?: null
|
|
184
|
+
): SwapPtAndYtEventFilter;
|
|
185
|
+
SwapPtAndYt(
|
|
186
|
+
caller?: string | null,
|
|
187
|
+
market?: string | null,
|
|
188
|
+
receiver?: string | null,
|
|
189
|
+
netPtToAccount?: null,
|
|
190
|
+
netYtToAccount?: null
|
|
191
|
+
): SwapPtAndYtEventFilter;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
estimateGas: {
|
|
195
|
+
swapExactPtForYt(
|
|
196
|
+
receiver: string,
|
|
197
|
+
market: string,
|
|
198
|
+
exactPtIn: BigNumberish,
|
|
199
|
+
minYtOut: BigNumberish,
|
|
200
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
201
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
202
|
+
): Promise<BigNumber>;
|
|
203
|
+
|
|
204
|
+
swapExactYtForPt(
|
|
205
|
+
receiver: string,
|
|
206
|
+
market: string,
|
|
207
|
+
exactYtIn: BigNumberish,
|
|
208
|
+
minPtOut: BigNumberish,
|
|
209
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
210
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
211
|
+
): Promise<BigNumber>;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
populateTransaction: {
|
|
215
|
+
swapExactPtForYt(
|
|
216
|
+
receiver: string,
|
|
217
|
+
market: string,
|
|
218
|
+
exactPtIn: BigNumberish,
|
|
219
|
+
minYtOut: BigNumberish,
|
|
220
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
221
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
222
|
+
): Promise<PopulatedTransaction>;
|
|
223
|
+
|
|
224
|
+
swapExactYtForPt(
|
|
225
|
+
receiver: string,
|
|
226
|
+
market: string,
|
|
227
|
+
exactYtIn: BigNumberish,
|
|
228
|
+
minPtOut: BigNumberish,
|
|
229
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
230
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
231
|
+
): Promise<PopulatedTransaction>;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
17
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "./common";
|
|
24
|
+
|
|
25
|
+
export type ApproxParamsStruct = {
|
|
26
|
+
guessMin: BigNumberish;
|
|
27
|
+
guessMax: BigNumberish;
|
|
28
|
+
guessOffchain: BigNumberish;
|
|
29
|
+
maxIteration: BigNumberish;
|
|
30
|
+
eps: BigNumberish;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type ApproxParamsStructOutput = [
|
|
34
|
+
BigNumber,
|
|
35
|
+
BigNumber,
|
|
36
|
+
BigNumber,
|
|
37
|
+
BigNumber,
|
|
38
|
+
BigNumber
|
|
39
|
+
] & {
|
|
40
|
+
guessMin: BigNumber;
|
|
41
|
+
guessMax: BigNumber;
|
|
42
|
+
guessOffchain: BigNumber;
|
|
43
|
+
maxIteration: BigNumber;
|
|
44
|
+
eps: BigNumber;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export interface IPActionSwapPTYTInterface extends utils.Interface {
|
|
48
|
+
contractName: "IPActionSwapPTYT";
|
|
49
|
+
functions: {
|
|
50
|
+
"swapExactPtForYt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
51
|
+
"swapExactYtForPt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
encodeFunctionData(
|
|
55
|
+
functionFragment: "swapExactPtForYt",
|
|
56
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
57
|
+
): string;
|
|
58
|
+
encodeFunctionData(
|
|
59
|
+
functionFragment: "swapExactYtForPt",
|
|
60
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
61
|
+
): string;
|
|
62
|
+
|
|
63
|
+
decodeFunctionResult(
|
|
64
|
+
functionFragment: "swapExactPtForYt",
|
|
65
|
+
data: BytesLike
|
|
66
|
+
): Result;
|
|
67
|
+
decodeFunctionResult(
|
|
68
|
+
functionFragment: "swapExactYtForPt",
|
|
69
|
+
data: BytesLike
|
|
70
|
+
): Result;
|
|
71
|
+
|
|
72
|
+
events: {
|
|
73
|
+
"SwapPtAndYt(address,address,address,int256,int256)": EventFragment;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
getEvent(nameOrSignatureOrTopic: "SwapPtAndYt"): EventFragment;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type SwapPtAndYtEvent = TypedEvent<
|
|
80
|
+
[string, string, string, BigNumber, BigNumber],
|
|
81
|
+
{
|
|
82
|
+
caller: string;
|
|
83
|
+
market: string;
|
|
84
|
+
receiver: string;
|
|
85
|
+
netPtToAccount: BigNumber;
|
|
86
|
+
netYtToAccount: BigNumber;
|
|
87
|
+
}
|
|
88
|
+
>;
|
|
89
|
+
|
|
90
|
+
export type SwapPtAndYtEventFilter = TypedEventFilter<SwapPtAndYtEvent>;
|
|
91
|
+
|
|
92
|
+
export interface IPActionSwapPTYT extends BaseContract {
|
|
93
|
+
contractName: "IPActionSwapPTYT";
|
|
94
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
95
|
+
attach(addressOrName: string): this;
|
|
96
|
+
deployed(): Promise<this>;
|
|
97
|
+
|
|
98
|
+
interface: IPActionSwapPTYTInterface;
|
|
99
|
+
|
|
100
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
101
|
+
event: TypedEventFilter<TEvent>,
|
|
102
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
103
|
+
toBlock?: string | number | undefined
|
|
104
|
+
): Promise<Array<TEvent>>;
|
|
105
|
+
|
|
106
|
+
listeners<TEvent extends TypedEvent>(
|
|
107
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
108
|
+
): Array<TypedListener<TEvent>>;
|
|
109
|
+
listeners(eventName?: string): Array<Listener>;
|
|
110
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
111
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
112
|
+
): this;
|
|
113
|
+
removeAllListeners(eventName?: string): this;
|
|
114
|
+
off: OnEvent<this>;
|
|
115
|
+
on: OnEvent<this>;
|
|
116
|
+
once: OnEvent<this>;
|
|
117
|
+
removeListener: OnEvent<this>;
|
|
118
|
+
|
|
119
|
+
functions: {
|
|
120
|
+
swapExactPtForYt(
|
|
121
|
+
receiver: string,
|
|
122
|
+
market: string,
|
|
123
|
+
exactPtIn: BigNumberish,
|
|
124
|
+
minYtOut: BigNumberish,
|
|
125
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
126
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
127
|
+
): Promise<ContractTransaction>;
|
|
128
|
+
|
|
129
|
+
swapExactYtForPt(
|
|
130
|
+
receiver: string,
|
|
131
|
+
market: string,
|
|
132
|
+
exactYtIn: BigNumberish,
|
|
133
|
+
minPtOut: BigNumberish,
|
|
134
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
135
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
136
|
+
): Promise<ContractTransaction>;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
swapExactPtForYt(
|
|
140
|
+
receiver: string,
|
|
141
|
+
market: string,
|
|
142
|
+
exactPtIn: BigNumberish,
|
|
143
|
+
minYtOut: BigNumberish,
|
|
144
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
145
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
146
|
+
): Promise<ContractTransaction>;
|
|
147
|
+
|
|
148
|
+
swapExactYtForPt(
|
|
149
|
+
receiver: string,
|
|
150
|
+
market: string,
|
|
151
|
+
exactYtIn: BigNumberish,
|
|
152
|
+
minPtOut: BigNumberish,
|
|
153
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
154
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
155
|
+
): Promise<ContractTransaction>;
|
|
156
|
+
|
|
157
|
+
callStatic: {
|
|
158
|
+
swapExactPtForYt(
|
|
159
|
+
receiver: string,
|
|
160
|
+
market: string,
|
|
161
|
+
exactPtIn: BigNumberish,
|
|
162
|
+
minYtOut: BigNumberish,
|
|
163
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
164
|
+
overrides?: CallOverrides
|
|
165
|
+
): Promise<BigNumber>;
|
|
166
|
+
|
|
167
|
+
swapExactYtForPt(
|
|
168
|
+
receiver: string,
|
|
169
|
+
market: string,
|
|
170
|
+
exactYtIn: BigNumberish,
|
|
171
|
+
minPtOut: BigNumberish,
|
|
172
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
173
|
+
overrides?: CallOverrides
|
|
174
|
+
): Promise<BigNumber>;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
filters: {
|
|
178
|
+
"SwapPtAndYt(address,address,address,int256,int256)"(
|
|
179
|
+
caller?: string | null,
|
|
180
|
+
market?: string | null,
|
|
181
|
+
receiver?: string | null,
|
|
182
|
+
netPtToAccount?: null,
|
|
183
|
+
netYtToAccount?: null
|
|
184
|
+
): SwapPtAndYtEventFilter;
|
|
185
|
+
SwapPtAndYt(
|
|
186
|
+
caller?: string | null,
|
|
187
|
+
market?: string | null,
|
|
188
|
+
receiver?: string | null,
|
|
189
|
+
netPtToAccount?: null,
|
|
190
|
+
netYtToAccount?: null
|
|
191
|
+
): SwapPtAndYtEventFilter;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
estimateGas: {
|
|
195
|
+
swapExactPtForYt(
|
|
196
|
+
receiver: string,
|
|
197
|
+
market: string,
|
|
198
|
+
exactPtIn: BigNumberish,
|
|
199
|
+
minYtOut: BigNumberish,
|
|
200
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
201
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
202
|
+
): Promise<BigNumber>;
|
|
203
|
+
|
|
204
|
+
swapExactYtForPt(
|
|
205
|
+
receiver: string,
|
|
206
|
+
market: string,
|
|
207
|
+
exactYtIn: BigNumberish,
|
|
208
|
+
minPtOut: BigNumberish,
|
|
209
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
210
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
211
|
+
): Promise<BigNumber>;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
populateTransaction: {
|
|
215
|
+
swapExactPtForYt(
|
|
216
|
+
receiver: string,
|
|
217
|
+
market: string,
|
|
218
|
+
exactPtIn: BigNumberish,
|
|
219
|
+
minYtOut: BigNumberish,
|
|
220
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
221
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
222
|
+
): Promise<PopulatedTransaction>;
|
|
223
|
+
|
|
224
|
+
swapExactYtForPt(
|
|
225
|
+
receiver: string,
|
|
226
|
+
market: string,
|
|
227
|
+
exactYtIn: BigNumberish,
|
|
228
|
+
minPtOut: BigNumberish,
|
|
229
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
230
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
231
|
+
): Promise<PopulatedTransaction>;
|
|
232
|
+
};
|
|
233
|
+
}
|