@pendle/core-v2 3.0.0-beta-5 → 3.0.0-beta-7

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.
@@ -0,0 +1,394 @@
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
+ PayableOverrides,
13
+ PopulatedTransaction,
14
+ Signer,
15
+ utils,
16
+ } from "ethers";
17
+ import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
18
+ import { Listener, Provider } from "@ethersproject/providers";
19
+ import type {
20
+ TypedEventFilter,
21
+ TypedEvent,
22
+ TypedListener,
23
+ OnEvent,
24
+ } from "./common";
25
+
26
+ export declare namespace IAggregationExecutorOptimistic {
27
+ export type SwapStruct = { data: BytesLike; functionSelector: BytesLike };
28
+
29
+ export type SwapStructOutput = [string, string] & {
30
+ data: string;
31
+ functionSelector: string;
32
+ };
33
+ }
34
+
35
+ export interface IAggregationExecutorOptimisticInterface
36
+ extends utils.Interface {
37
+ contractName: "IAggregationExecutorOptimistic";
38
+ functions: {
39
+ "callBytes(bytes)": FunctionFragment;
40
+ "finalTransactionProcessing(address,address,address,bytes)": FunctionFragment;
41
+ "multihopBatchSwapExactIn((bytes,bytes4)[][],address,address,address,uint256,bytes)": FunctionFragment;
42
+ "rescueFunds(address,uint256)": FunctionFragment;
43
+ "swapSingleSequence(bytes)": FunctionFragment;
44
+ "updateBatchExecutors(bytes4[],address[])": FunctionFragment;
45
+ "updateExecutor(bytes4,address)": FunctionFragment;
46
+ };
47
+
48
+ encodeFunctionData(
49
+ functionFragment: "callBytes",
50
+ values: [BytesLike]
51
+ ): string;
52
+ encodeFunctionData(
53
+ functionFragment: "finalTransactionProcessing",
54
+ values: [string, string, string, BytesLike]
55
+ ): string;
56
+ encodeFunctionData(
57
+ functionFragment: "multihopBatchSwapExactIn",
58
+ values: [
59
+ IAggregationExecutorOptimistic.SwapStruct[],
60
+ string,
61
+ string,
62
+ string,
63
+ BigNumberish,
64
+ BytesLike
65
+ ]
66
+ ): string;
67
+ encodeFunctionData(
68
+ functionFragment: "rescueFunds",
69
+ values: [string, BigNumberish]
70
+ ): string;
71
+ encodeFunctionData(
72
+ functionFragment: "swapSingleSequence",
73
+ values: [BytesLike]
74
+ ): string;
75
+ encodeFunctionData(
76
+ functionFragment: "updateBatchExecutors",
77
+ values: [BytesLike[], string[]]
78
+ ): string;
79
+ encodeFunctionData(
80
+ functionFragment: "updateExecutor",
81
+ values: [BytesLike, string]
82
+ ): string;
83
+
84
+ decodeFunctionResult(functionFragment: "callBytes", data: BytesLike): Result;
85
+ decodeFunctionResult(
86
+ functionFragment: "finalTransactionProcessing",
87
+ data: BytesLike
88
+ ): Result;
89
+ decodeFunctionResult(
90
+ functionFragment: "multihopBatchSwapExactIn",
91
+ data: BytesLike
92
+ ): Result;
93
+ decodeFunctionResult(
94
+ functionFragment: "rescueFunds",
95
+ data: BytesLike
96
+ ): Result;
97
+ decodeFunctionResult(
98
+ functionFragment: "swapSingleSequence",
99
+ data: BytesLike
100
+ ): Result;
101
+ decodeFunctionResult(
102
+ functionFragment: "updateBatchExecutors",
103
+ data: BytesLike
104
+ ): Result;
105
+ decodeFunctionResult(
106
+ functionFragment: "updateExecutor",
107
+ data: BytesLike
108
+ ): Result;
109
+
110
+ events: {
111
+ "Exchange(address,uint256,address)": EventFragment;
112
+ };
113
+
114
+ getEvent(nameOrSignatureOrTopic: "Exchange"): EventFragment;
115
+ }
116
+
117
+ export type ExchangeEvent = TypedEvent<
118
+ [string, BigNumber, string],
119
+ { pair: string; amountOut: BigNumber; output: string }
120
+ >;
121
+
122
+ export type ExchangeEventFilter = TypedEventFilter<ExchangeEvent>;
123
+
124
+ export interface IAggregationExecutorOptimistic extends BaseContract {
125
+ contractName: "IAggregationExecutorOptimistic";
126
+ connect(signerOrProvider: Signer | Provider | string): this;
127
+ attach(addressOrName: string): this;
128
+ deployed(): Promise<this>;
129
+
130
+ interface: IAggregationExecutorOptimisticInterface;
131
+
132
+ queryFilter<TEvent extends TypedEvent>(
133
+ event: TypedEventFilter<TEvent>,
134
+ fromBlockOrBlockhash?: string | number | undefined,
135
+ toBlock?: string | number | undefined
136
+ ): Promise<Array<TEvent>>;
137
+
138
+ listeners<TEvent extends TypedEvent>(
139
+ eventFilter?: TypedEventFilter<TEvent>
140
+ ): Array<TypedListener<TEvent>>;
141
+ listeners(eventName?: string): Array<Listener>;
142
+ removeAllListeners<TEvent extends TypedEvent>(
143
+ eventFilter: TypedEventFilter<TEvent>
144
+ ): this;
145
+ removeAllListeners(eventName?: string): this;
146
+ off: OnEvent<this>;
147
+ on: OnEvent<this>;
148
+ once: OnEvent<this>;
149
+ removeListener: OnEvent<this>;
150
+
151
+ functions: {
152
+ callBytes(
153
+ data: BytesLike,
154
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
155
+ ): Promise<ContractTransaction>;
156
+
157
+ finalTransactionProcessing(
158
+ tokenIn: string,
159
+ tokenOut: string,
160
+ to: string,
161
+ destTokenFeeData: BytesLike,
162
+ overrides?: Overrides & { from?: string | Promise<string> }
163
+ ): Promise<ContractTransaction>;
164
+
165
+ multihopBatchSwapExactIn(
166
+ swapSequences: IAggregationExecutorOptimistic.SwapStruct[],
167
+ tokenIn: string,
168
+ tokenOut: string,
169
+ to: string,
170
+ deadline: BigNumberish,
171
+ positiveSlippageData: BytesLike,
172
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
173
+ ): Promise<ContractTransaction>;
174
+
175
+ rescueFunds(
176
+ token: string,
177
+ amount: BigNumberish,
178
+ overrides?: Overrides & { from?: string | Promise<string> }
179
+ ): Promise<ContractTransaction>;
180
+
181
+ swapSingleSequence(
182
+ data: BytesLike,
183
+ overrides?: Overrides & { from?: string | Promise<string> }
184
+ ): Promise<ContractTransaction>;
185
+
186
+ updateBatchExecutors(
187
+ functionSelectors: BytesLike[],
188
+ executors: string[],
189
+ overrides?: Overrides & { from?: string | Promise<string> }
190
+ ): Promise<ContractTransaction>;
191
+
192
+ updateExecutor(
193
+ functionSelector: BytesLike,
194
+ executor: string,
195
+ overrides?: Overrides & { from?: string | Promise<string> }
196
+ ): Promise<ContractTransaction>;
197
+ };
198
+
199
+ callBytes(
200
+ data: BytesLike,
201
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
202
+ ): Promise<ContractTransaction>;
203
+
204
+ finalTransactionProcessing(
205
+ tokenIn: string,
206
+ tokenOut: string,
207
+ to: string,
208
+ destTokenFeeData: BytesLike,
209
+ overrides?: Overrides & { from?: string | Promise<string> }
210
+ ): Promise<ContractTransaction>;
211
+
212
+ multihopBatchSwapExactIn(
213
+ swapSequences: IAggregationExecutorOptimistic.SwapStruct[],
214
+ tokenIn: string,
215
+ tokenOut: string,
216
+ to: string,
217
+ deadline: BigNumberish,
218
+ positiveSlippageData: BytesLike,
219
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
220
+ ): Promise<ContractTransaction>;
221
+
222
+ rescueFunds(
223
+ token: string,
224
+ amount: BigNumberish,
225
+ overrides?: Overrides & { from?: string | Promise<string> }
226
+ ): Promise<ContractTransaction>;
227
+
228
+ swapSingleSequence(
229
+ data: BytesLike,
230
+ overrides?: Overrides & { from?: string | Promise<string> }
231
+ ): Promise<ContractTransaction>;
232
+
233
+ updateBatchExecutors(
234
+ functionSelectors: BytesLike[],
235
+ executors: string[],
236
+ overrides?: Overrides & { from?: string | Promise<string> }
237
+ ): Promise<ContractTransaction>;
238
+
239
+ updateExecutor(
240
+ functionSelector: BytesLike,
241
+ executor: string,
242
+ overrides?: Overrides & { from?: string | Promise<string> }
243
+ ): Promise<ContractTransaction>;
244
+
245
+ callStatic: {
246
+ callBytes(data: BytesLike, overrides?: CallOverrides): Promise<void>;
247
+
248
+ finalTransactionProcessing(
249
+ tokenIn: string,
250
+ tokenOut: string,
251
+ to: string,
252
+ destTokenFeeData: BytesLike,
253
+ overrides?: CallOverrides
254
+ ): Promise<void>;
255
+
256
+ multihopBatchSwapExactIn(
257
+ swapSequences: IAggregationExecutorOptimistic.SwapStruct[],
258
+ tokenIn: string,
259
+ tokenOut: string,
260
+ to: string,
261
+ deadline: BigNumberish,
262
+ positiveSlippageData: BytesLike,
263
+ overrides?: CallOverrides
264
+ ): Promise<void>;
265
+
266
+ rescueFunds(
267
+ token: string,
268
+ amount: BigNumberish,
269
+ overrides?: CallOverrides
270
+ ): Promise<void>;
271
+
272
+ swapSingleSequence(
273
+ data: BytesLike,
274
+ overrides?: CallOverrides
275
+ ): Promise<void>;
276
+
277
+ updateBatchExecutors(
278
+ functionSelectors: BytesLike[],
279
+ executors: string[],
280
+ overrides?: CallOverrides
281
+ ): Promise<void>;
282
+
283
+ updateExecutor(
284
+ functionSelector: BytesLike,
285
+ executor: string,
286
+ overrides?: CallOverrides
287
+ ): Promise<void>;
288
+ };
289
+
290
+ filters: {
291
+ "Exchange(address,uint256,address)"(
292
+ pair?: null,
293
+ amountOut?: null,
294
+ output?: null
295
+ ): ExchangeEventFilter;
296
+ Exchange(pair?: null, amountOut?: null, output?: null): ExchangeEventFilter;
297
+ };
298
+
299
+ estimateGas: {
300
+ callBytes(
301
+ data: BytesLike,
302
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
303
+ ): Promise<BigNumber>;
304
+
305
+ finalTransactionProcessing(
306
+ tokenIn: string,
307
+ tokenOut: string,
308
+ to: string,
309
+ destTokenFeeData: BytesLike,
310
+ overrides?: Overrides & { from?: string | Promise<string> }
311
+ ): Promise<BigNumber>;
312
+
313
+ multihopBatchSwapExactIn(
314
+ swapSequences: IAggregationExecutorOptimistic.SwapStruct[],
315
+ tokenIn: string,
316
+ tokenOut: string,
317
+ to: string,
318
+ deadline: BigNumberish,
319
+ positiveSlippageData: BytesLike,
320
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
321
+ ): Promise<BigNumber>;
322
+
323
+ rescueFunds(
324
+ token: string,
325
+ amount: BigNumberish,
326
+ overrides?: Overrides & { from?: string | Promise<string> }
327
+ ): Promise<BigNumber>;
328
+
329
+ swapSingleSequence(
330
+ data: BytesLike,
331
+ overrides?: Overrides & { from?: string | Promise<string> }
332
+ ): Promise<BigNumber>;
333
+
334
+ updateBatchExecutors(
335
+ functionSelectors: BytesLike[],
336
+ executors: string[],
337
+ overrides?: Overrides & { from?: string | Promise<string> }
338
+ ): Promise<BigNumber>;
339
+
340
+ updateExecutor(
341
+ functionSelector: BytesLike,
342
+ executor: string,
343
+ overrides?: Overrides & { from?: string | Promise<string> }
344
+ ): Promise<BigNumber>;
345
+ };
346
+
347
+ populateTransaction: {
348
+ callBytes(
349
+ data: BytesLike,
350
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
351
+ ): Promise<PopulatedTransaction>;
352
+
353
+ finalTransactionProcessing(
354
+ tokenIn: string,
355
+ tokenOut: string,
356
+ to: string,
357
+ destTokenFeeData: BytesLike,
358
+ overrides?: Overrides & { from?: string | Promise<string> }
359
+ ): Promise<PopulatedTransaction>;
360
+
361
+ multihopBatchSwapExactIn(
362
+ swapSequences: IAggregationExecutorOptimistic.SwapStruct[],
363
+ tokenIn: string,
364
+ tokenOut: string,
365
+ to: string,
366
+ deadline: BigNumberish,
367
+ positiveSlippageData: BytesLike,
368
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
369
+ ): Promise<PopulatedTransaction>;
370
+
371
+ rescueFunds(
372
+ token: string,
373
+ amount: BigNumberish,
374
+ overrides?: Overrides & { from?: string | Promise<string> }
375
+ ): Promise<PopulatedTransaction>;
376
+
377
+ swapSingleSequence(
378
+ data: BytesLike,
379
+ overrides?: Overrides & { from?: string | Promise<string> }
380
+ ): Promise<PopulatedTransaction>;
381
+
382
+ updateBatchExecutors(
383
+ functionSelectors: BytesLike[],
384
+ executors: string[],
385
+ overrides?: Overrides & { from?: string | Promise<string> }
386
+ ): Promise<PopulatedTransaction>;
387
+
388
+ updateExecutor(
389
+ functionSelector: BytesLike,
390
+ executor: string,
391
+ overrides?: Overrides & { from?: string | Promise<string> }
392
+ ): Promise<PopulatedTransaction>;
393
+ };
394
+ }