@pendle/core-v2 5.4.1 → 5.4.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/deployments/10-core.json +5 -5
- package/deployments/42161-core.json +5 -5
- package/deployments/5000-core.json +5 -5
- package/deployments/56-core.json +5 -5
- package/deployments/8453-core.json +5 -5
- package/package.json +1 -1
- package/typechain-types/IOKXDexRouter.ts +429 -0
- package/typechain-types/factories/IOKXDexRouter__factory.ts +419 -0
- package/typechain-types/hardhat.d.ts +9 -0
- package/typechain-types/index.ts +2 -0
package/deployments/10-core.json
CHANGED
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"marketFactory": "0x17F100fB4bE2707675c6439468d38249DD993d58",
|
|
22
22
|
"router": "0x888888888889758F76e7103c6CbF23ABbF58F946",
|
|
23
23
|
"routerFacets": {
|
|
24
|
-
"ActionAddRemoveLiqV3": "
|
|
25
|
-
"ActionSwapPTV3": "
|
|
26
|
-
"ActionSwapYTV3": "
|
|
27
|
-
"ActionMiscV3": "
|
|
28
|
-
"ActionSimple": "
|
|
24
|
+
"ActionAddRemoveLiqV3": "0x663C21103915B68e9dA797CfdF3cAb01a037D5Ff",
|
|
25
|
+
"ActionSwapPTV3": "0xd8D200d9A713A1c71cF1e7F694B14E5F1D948b15",
|
|
26
|
+
"ActionSwapYTV3": "0x4a03Ce0a268951d04E187B1CF48075eE69266e27",
|
|
27
|
+
"ActionMiscV3": "0x373Dba2055Ad40cb4815148bC47cd1DC16e92E44",
|
|
28
|
+
"ActionSimple": "0x852e59252c94716F0df19B52b36512f6C9297a96",
|
|
29
29
|
"ActionCallbackV3": "0x997FBC511a8Ad11F84a400feACD66E2A3fa805d2",
|
|
30
30
|
"ActionStorageV4": "0x6a0Ed0A9193FCBe7ae9B0F3D90F88e365Cca64fC"
|
|
31
31
|
},
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"marketFactory": "0xf5a7De2D276dbda3EEf1b62A9E718EFf4d29dDC8",
|
|
22
22
|
"router": "0x888888888889758F76e7103c6CbF23ABbF58F946",
|
|
23
23
|
"routerFacets": {
|
|
24
|
-
"ActionAddRemoveLiqV3": "
|
|
25
|
-
"ActionSwapPTV3": "
|
|
26
|
-
"ActionSwapYTV3": "
|
|
27
|
-
"ActionMiscV3": "
|
|
28
|
-
"ActionSimple": "
|
|
24
|
+
"ActionAddRemoveLiqV3": "0x663C21103915B68e9dA797CfdF3cAb01a037D5Ff",
|
|
25
|
+
"ActionSwapPTV3": "0xd8D200d9A713A1c71cF1e7F694B14E5F1D948b15",
|
|
26
|
+
"ActionSwapYTV3": "0x4a03Ce0a268951d04E187B1CF48075eE69266e27",
|
|
27
|
+
"ActionMiscV3": "0x373Dba2055Ad40cb4815148bC47cd1DC16e92E44",
|
|
28
|
+
"ActionSimple": "0x852e59252c94716F0df19B52b36512f6C9297a96",
|
|
29
29
|
"ActionCallbackV3": "0x997FBC511a8Ad11F84a400feACD66E2A3fa805d2",
|
|
30
30
|
"ActionStorageV4": "0x6a0Ed0A9193FCBe7ae9B0F3D90F88e365Cca64fC"
|
|
31
31
|
},
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"governanceProxy": "0x2aD631F72fB16d91c4953A7f4260A97C2fE2f31e",
|
|
20
20
|
"router": "0x888888888889758F76e7103c6CbF23ABbF58F946",
|
|
21
21
|
"routerFacets": {
|
|
22
|
-
"ActionAddRemoveLiqV3": "
|
|
23
|
-
"ActionSwapPTV3": "
|
|
24
|
-
"ActionSwapYTV3": "
|
|
25
|
-
"ActionMiscV3": "
|
|
26
|
-
"ActionSimple": "
|
|
22
|
+
"ActionAddRemoveLiqV3": "0x663C21103915B68e9dA797CfdF3cAb01a037D5Ff",
|
|
23
|
+
"ActionSwapPTV3": "0xd8D200d9A713A1c71cF1e7F694B14E5F1D948b15",
|
|
24
|
+
"ActionSwapYTV3": "0x4a03Ce0a268951d04E187B1CF48075eE69266e27",
|
|
25
|
+
"ActionMiscV3": "0x373Dba2055Ad40cb4815148bC47cd1DC16e92E44",
|
|
26
|
+
"ActionSimple": "0x852e59252c94716F0df19B52b36512f6C9297a96",
|
|
27
27
|
"ActionCallbackV3": "0x997FBC511a8Ad11F84a400feACD66E2A3fa805d2",
|
|
28
28
|
"ActionStorageV4": "0x6a0Ed0A9193FCBe7ae9B0F3D90F88e365Cca64fC"
|
|
29
29
|
},
|
package/deployments/56-core.json
CHANGED
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"marketFactory": "0x2bEa6BfD8fbFF45aA2a893EB3B6d85D10EFcC70E",
|
|
22
22
|
"router": "0x888888888889758F76e7103c6CbF23ABbF58F946",
|
|
23
23
|
"routerFacets": {
|
|
24
|
-
"ActionAddRemoveLiqV3": "
|
|
25
|
-
"ActionSwapPTV3": "
|
|
26
|
-
"ActionSwapYTV3": "
|
|
27
|
-
"ActionMiscV3": "
|
|
28
|
-
"ActionSimple": "
|
|
24
|
+
"ActionAddRemoveLiqV3": "0x663C21103915B68e9dA797CfdF3cAb01a037D5Ff",
|
|
25
|
+
"ActionSwapPTV3": "0xd8D200d9A713A1c71cF1e7F694B14E5F1D948b15",
|
|
26
|
+
"ActionSwapYTV3": "0x4a03Ce0a268951d04E187B1CF48075eE69266e27",
|
|
27
|
+
"ActionMiscV3": "0x373Dba2055Ad40cb4815148bC47cd1DC16e92E44",
|
|
28
|
+
"ActionSimple": "0x852e59252c94716F0df19B52b36512f6C9297a96",
|
|
29
29
|
"ActionCallbackV3": "0x997FBC511a8Ad11F84a400feACD66E2A3fa805d2",
|
|
30
30
|
"ActionStorageV4": "0x6a0Ed0A9193FCBe7ae9B0F3D90F88e365Cca64fC"
|
|
31
31
|
},
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"marketFactoryV5": "0x59968008a703dC13E6beaECed644bdCe4ee45d13",
|
|
22
22
|
"router": "0x888888888889758F76e7103c6CbF23ABbF58F946",
|
|
23
23
|
"routerFacets": {
|
|
24
|
-
"ActionAddRemoveLiqV3": "
|
|
25
|
-
"ActionSwapPTV3": "
|
|
26
|
-
"ActionSwapYTV3": "
|
|
27
|
-
"ActionMiscV3": "
|
|
28
|
-
"ActionSimple": "
|
|
24
|
+
"ActionAddRemoveLiqV3": "0x663C21103915B68e9dA797CfdF3cAb01a037D5Ff",
|
|
25
|
+
"ActionSwapPTV3": "0xd8D200d9A713A1c71cF1e7F694B14E5F1D948b15",
|
|
26
|
+
"ActionSwapYTV3": "0x4a03Ce0a268951d04E187B1CF48075eE69266e27",
|
|
27
|
+
"ActionMiscV3": "0x373Dba2055Ad40cb4815148bC47cd1DC16e92E44",
|
|
28
|
+
"ActionSimple": "0x852e59252c94716F0df19B52b36512f6C9297a96",
|
|
29
29
|
"ActionCallbackV3": "0x997FBC511a8Ad11F84a400feACD66E2A3fa805d2",
|
|
30
30
|
"ActionStorageV4": "0x6a0Ed0A9193FCBe7ae9B0F3D90F88e365Cca64fC"
|
|
31
31
|
},
|
package/package.json
CHANGED
|
@@ -0,0 +1,429 @@
|
|
|
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
|
+
PayableOverrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import { FunctionFragment, Result } 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 declare namespace IOKXDexRouter {
|
|
26
|
+
export type BaseRequestStruct = {
|
|
27
|
+
fromToken: BigNumberish;
|
|
28
|
+
toToken: string;
|
|
29
|
+
fromTokenAmount: BigNumberish;
|
|
30
|
+
minReturnAmount: BigNumberish;
|
|
31
|
+
deadLine: BigNumberish;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type BaseRequestStructOutput = [
|
|
35
|
+
BigNumber,
|
|
36
|
+
string,
|
|
37
|
+
BigNumber,
|
|
38
|
+
BigNumber,
|
|
39
|
+
BigNumber
|
|
40
|
+
] & {
|
|
41
|
+
fromToken: BigNumber;
|
|
42
|
+
toToken: string;
|
|
43
|
+
fromTokenAmount: BigNumber;
|
|
44
|
+
minReturnAmount: BigNumber;
|
|
45
|
+
deadLine: BigNumber;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type RouterPathStruct = {
|
|
49
|
+
mixAdapters: string[];
|
|
50
|
+
assetTo: string[];
|
|
51
|
+
rawData: BigNumberish[];
|
|
52
|
+
extraData: BytesLike[];
|
|
53
|
+
fromToken: BigNumberish;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type RouterPathStructOutput = [
|
|
57
|
+
string[],
|
|
58
|
+
string[],
|
|
59
|
+
BigNumber[],
|
|
60
|
+
string[],
|
|
61
|
+
BigNumber
|
|
62
|
+
] & {
|
|
63
|
+
mixAdapters: string[];
|
|
64
|
+
assetTo: string[];
|
|
65
|
+
rawData: BigNumber[];
|
|
66
|
+
extraData: string[];
|
|
67
|
+
fromToken: BigNumber;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type PMMSwapRequestStruct = {
|
|
71
|
+
pathIndex: BigNumberish;
|
|
72
|
+
payer: string;
|
|
73
|
+
fromToken: string;
|
|
74
|
+
toToken: string;
|
|
75
|
+
fromTokenAmountMax: BigNumberish;
|
|
76
|
+
toTokenAmountMax: BigNumberish;
|
|
77
|
+
salt: BigNumberish;
|
|
78
|
+
deadLine: BigNumberish;
|
|
79
|
+
isPushOrder: boolean;
|
|
80
|
+
extension: BytesLike;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type PMMSwapRequestStructOutput = [
|
|
84
|
+
BigNumber,
|
|
85
|
+
string,
|
|
86
|
+
string,
|
|
87
|
+
string,
|
|
88
|
+
BigNumber,
|
|
89
|
+
BigNumber,
|
|
90
|
+
BigNumber,
|
|
91
|
+
BigNumber,
|
|
92
|
+
boolean,
|
|
93
|
+
string
|
|
94
|
+
] & {
|
|
95
|
+
pathIndex: BigNumber;
|
|
96
|
+
payer: string;
|
|
97
|
+
fromToken: string;
|
|
98
|
+
toToken: string;
|
|
99
|
+
fromTokenAmountMax: BigNumber;
|
|
100
|
+
toTokenAmountMax: BigNumber;
|
|
101
|
+
salt: BigNumber;
|
|
102
|
+
deadLine: BigNumber;
|
|
103
|
+
isPushOrder: boolean;
|
|
104
|
+
extension: string;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface IOKXDexRouterInterface extends utils.Interface {
|
|
109
|
+
contractName: "IOKXDexRouter";
|
|
110
|
+
functions: {
|
|
111
|
+
"smartSwapByOrderId(uint256,(uint256,address,uint256,uint256,uint256),uint256[],(address[],address[],uint256[],bytes[],uint256)[][],(uint256,address,address,address,uint256,uint256,uint256,uint256,bool,bytes)[])": FunctionFragment;
|
|
112
|
+
"smartSwapTo(uint256,address,(uint256,address,uint256,uint256,uint256),uint256[],(address[],address[],uint256[],bytes[],uint256)[][],(uint256,address,address,address,uint256,uint256,uint256,uint256,bool,bytes)[])": FunctionFragment;
|
|
113
|
+
"uniswapV3SwapTo(uint256,uint256,uint256,uint256[])": FunctionFragment;
|
|
114
|
+
"unxswapByOrderId(uint256,uint256,uint256,bytes32[])": FunctionFragment;
|
|
115
|
+
"unxswapTo(uint256,uint256,uint256,address,bytes32[])": FunctionFragment;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
encodeFunctionData(
|
|
119
|
+
functionFragment: "smartSwapByOrderId",
|
|
120
|
+
values: [
|
|
121
|
+
BigNumberish,
|
|
122
|
+
IOKXDexRouter.BaseRequestStruct,
|
|
123
|
+
BigNumberish[],
|
|
124
|
+
IOKXDexRouter.RouterPathStruct[],
|
|
125
|
+
IOKXDexRouter.PMMSwapRequestStruct[]
|
|
126
|
+
]
|
|
127
|
+
): string;
|
|
128
|
+
encodeFunctionData(
|
|
129
|
+
functionFragment: "smartSwapTo",
|
|
130
|
+
values: [
|
|
131
|
+
BigNumberish,
|
|
132
|
+
string,
|
|
133
|
+
IOKXDexRouter.BaseRequestStruct,
|
|
134
|
+
BigNumberish[],
|
|
135
|
+
IOKXDexRouter.RouterPathStruct[],
|
|
136
|
+
IOKXDexRouter.PMMSwapRequestStruct[]
|
|
137
|
+
]
|
|
138
|
+
): string;
|
|
139
|
+
encodeFunctionData(
|
|
140
|
+
functionFragment: "uniswapV3SwapTo",
|
|
141
|
+
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish[]]
|
|
142
|
+
): string;
|
|
143
|
+
encodeFunctionData(
|
|
144
|
+
functionFragment: "unxswapByOrderId",
|
|
145
|
+
values: [BigNumberish, BigNumberish, BigNumberish, BytesLike[]]
|
|
146
|
+
): string;
|
|
147
|
+
encodeFunctionData(
|
|
148
|
+
functionFragment: "unxswapTo",
|
|
149
|
+
values: [BigNumberish, BigNumberish, BigNumberish, string, BytesLike[]]
|
|
150
|
+
): string;
|
|
151
|
+
|
|
152
|
+
decodeFunctionResult(
|
|
153
|
+
functionFragment: "smartSwapByOrderId",
|
|
154
|
+
data: BytesLike
|
|
155
|
+
): Result;
|
|
156
|
+
decodeFunctionResult(
|
|
157
|
+
functionFragment: "smartSwapTo",
|
|
158
|
+
data: BytesLike
|
|
159
|
+
): Result;
|
|
160
|
+
decodeFunctionResult(
|
|
161
|
+
functionFragment: "uniswapV3SwapTo",
|
|
162
|
+
data: BytesLike
|
|
163
|
+
): Result;
|
|
164
|
+
decodeFunctionResult(
|
|
165
|
+
functionFragment: "unxswapByOrderId",
|
|
166
|
+
data: BytesLike
|
|
167
|
+
): Result;
|
|
168
|
+
decodeFunctionResult(functionFragment: "unxswapTo", data: BytesLike): Result;
|
|
169
|
+
|
|
170
|
+
events: {};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface IOKXDexRouter extends BaseContract {
|
|
174
|
+
contractName: "IOKXDexRouter";
|
|
175
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
176
|
+
attach(addressOrName: string): this;
|
|
177
|
+
deployed(): Promise<this>;
|
|
178
|
+
|
|
179
|
+
interface: IOKXDexRouterInterface;
|
|
180
|
+
|
|
181
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
182
|
+
event: TypedEventFilter<TEvent>,
|
|
183
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
184
|
+
toBlock?: string | number | undefined
|
|
185
|
+
): Promise<Array<TEvent>>;
|
|
186
|
+
|
|
187
|
+
listeners<TEvent extends TypedEvent>(
|
|
188
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
189
|
+
): Array<TypedListener<TEvent>>;
|
|
190
|
+
listeners(eventName?: string): Array<Listener>;
|
|
191
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
192
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
193
|
+
): this;
|
|
194
|
+
removeAllListeners(eventName?: string): this;
|
|
195
|
+
off: OnEvent<this>;
|
|
196
|
+
on: OnEvent<this>;
|
|
197
|
+
once: OnEvent<this>;
|
|
198
|
+
removeListener: OnEvent<this>;
|
|
199
|
+
|
|
200
|
+
functions: {
|
|
201
|
+
smartSwapByOrderId(
|
|
202
|
+
orderId: BigNumberish,
|
|
203
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
204
|
+
batchesAmount: BigNumberish[],
|
|
205
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
206
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
207
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
208
|
+
): Promise<ContractTransaction>;
|
|
209
|
+
|
|
210
|
+
smartSwapTo(
|
|
211
|
+
orderId: BigNumberish,
|
|
212
|
+
receiver: string,
|
|
213
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
214
|
+
batchesAmount: BigNumberish[],
|
|
215
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
216
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
217
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
218
|
+
): Promise<ContractTransaction>;
|
|
219
|
+
|
|
220
|
+
uniswapV3SwapTo(
|
|
221
|
+
receiver: BigNumberish,
|
|
222
|
+
amount: BigNumberish,
|
|
223
|
+
minReturn: BigNumberish,
|
|
224
|
+
pools: BigNumberish[],
|
|
225
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
226
|
+
): Promise<ContractTransaction>;
|
|
227
|
+
|
|
228
|
+
unxswapByOrderId(
|
|
229
|
+
srcToken: BigNumberish,
|
|
230
|
+
amount: BigNumberish,
|
|
231
|
+
minReturn: BigNumberish,
|
|
232
|
+
pools: BytesLike[],
|
|
233
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
234
|
+
): Promise<ContractTransaction>;
|
|
235
|
+
|
|
236
|
+
unxswapTo(
|
|
237
|
+
srcToken: BigNumberish,
|
|
238
|
+
amount: BigNumberish,
|
|
239
|
+
minReturn: BigNumberish,
|
|
240
|
+
receiver: string,
|
|
241
|
+
pools: BytesLike[],
|
|
242
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
243
|
+
): Promise<ContractTransaction>;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
smartSwapByOrderId(
|
|
247
|
+
orderId: BigNumberish,
|
|
248
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
249
|
+
batchesAmount: BigNumberish[],
|
|
250
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
251
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
252
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
253
|
+
): Promise<ContractTransaction>;
|
|
254
|
+
|
|
255
|
+
smartSwapTo(
|
|
256
|
+
orderId: BigNumberish,
|
|
257
|
+
receiver: string,
|
|
258
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
259
|
+
batchesAmount: BigNumberish[],
|
|
260
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
261
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
262
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
263
|
+
): Promise<ContractTransaction>;
|
|
264
|
+
|
|
265
|
+
uniswapV3SwapTo(
|
|
266
|
+
receiver: BigNumberish,
|
|
267
|
+
amount: BigNumberish,
|
|
268
|
+
minReturn: BigNumberish,
|
|
269
|
+
pools: BigNumberish[],
|
|
270
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
271
|
+
): Promise<ContractTransaction>;
|
|
272
|
+
|
|
273
|
+
unxswapByOrderId(
|
|
274
|
+
srcToken: BigNumberish,
|
|
275
|
+
amount: BigNumberish,
|
|
276
|
+
minReturn: BigNumberish,
|
|
277
|
+
pools: BytesLike[],
|
|
278
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
279
|
+
): Promise<ContractTransaction>;
|
|
280
|
+
|
|
281
|
+
unxswapTo(
|
|
282
|
+
srcToken: BigNumberish,
|
|
283
|
+
amount: BigNumberish,
|
|
284
|
+
minReturn: BigNumberish,
|
|
285
|
+
receiver: string,
|
|
286
|
+
pools: BytesLike[],
|
|
287
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
288
|
+
): Promise<ContractTransaction>;
|
|
289
|
+
|
|
290
|
+
callStatic: {
|
|
291
|
+
smartSwapByOrderId(
|
|
292
|
+
orderId: BigNumberish,
|
|
293
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
294
|
+
batchesAmount: BigNumberish[],
|
|
295
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
296
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
297
|
+
overrides?: CallOverrides
|
|
298
|
+
): Promise<BigNumber>;
|
|
299
|
+
|
|
300
|
+
smartSwapTo(
|
|
301
|
+
orderId: BigNumberish,
|
|
302
|
+
receiver: string,
|
|
303
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
304
|
+
batchesAmount: BigNumberish[],
|
|
305
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
306
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
307
|
+
overrides?: CallOverrides
|
|
308
|
+
): Promise<void>;
|
|
309
|
+
|
|
310
|
+
uniswapV3SwapTo(
|
|
311
|
+
receiver: BigNumberish,
|
|
312
|
+
amount: BigNumberish,
|
|
313
|
+
minReturn: BigNumberish,
|
|
314
|
+
pools: BigNumberish[],
|
|
315
|
+
overrides?: CallOverrides
|
|
316
|
+
): Promise<BigNumber>;
|
|
317
|
+
|
|
318
|
+
unxswapByOrderId(
|
|
319
|
+
srcToken: BigNumberish,
|
|
320
|
+
amount: BigNumberish,
|
|
321
|
+
minReturn: BigNumberish,
|
|
322
|
+
pools: BytesLike[],
|
|
323
|
+
overrides?: CallOverrides
|
|
324
|
+
): Promise<BigNumber>;
|
|
325
|
+
|
|
326
|
+
unxswapTo(
|
|
327
|
+
srcToken: BigNumberish,
|
|
328
|
+
amount: BigNumberish,
|
|
329
|
+
minReturn: BigNumberish,
|
|
330
|
+
receiver: string,
|
|
331
|
+
pools: BytesLike[],
|
|
332
|
+
overrides?: CallOverrides
|
|
333
|
+
): Promise<BigNumber>;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
filters: {};
|
|
337
|
+
|
|
338
|
+
estimateGas: {
|
|
339
|
+
smartSwapByOrderId(
|
|
340
|
+
orderId: BigNumberish,
|
|
341
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
342
|
+
batchesAmount: BigNumberish[],
|
|
343
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
344
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
345
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
346
|
+
): Promise<BigNumber>;
|
|
347
|
+
|
|
348
|
+
smartSwapTo(
|
|
349
|
+
orderId: BigNumberish,
|
|
350
|
+
receiver: string,
|
|
351
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
352
|
+
batchesAmount: BigNumberish[],
|
|
353
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
354
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
355
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
356
|
+
): Promise<BigNumber>;
|
|
357
|
+
|
|
358
|
+
uniswapV3SwapTo(
|
|
359
|
+
receiver: BigNumberish,
|
|
360
|
+
amount: BigNumberish,
|
|
361
|
+
minReturn: BigNumberish,
|
|
362
|
+
pools: BigNumberish[],
|
|
363
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
364
|
+
): Promise<BigNumber>;
|
|
365
|
+
|
|
366
|
+
unxswapByOrderId(
|
|
367
|
+
srcToken: BigNumberish,
|
|
368
|
+
amount: BigNumberish,
|
|
369
|
+
minReturn: BigNumberish,
|
|
370
|
+
pools: BytesLike[],
|
|
371
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
372
|
+
): Promise<BigNumber>;
|
|
373
|
+
|
|
374
|
+
unxswapTo(
|
|
375
|
+
srcToken: BigNumberish,
|
|
376
|
+
amount: BigNumberish,
|
|
377
|
+
minReturn: BigNumberish,
|
|
378
|
+
receiver: string,
|
|
379
|
+
pools: BytesLike[],
|
|
380
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
381
|
+
): Promise<BigNumber>;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
populateTransaction: {
|
|
385
|
+
smartSwapByOrderId(
|
|
386
|
+
orderId: BigNumberish,
|
|
387
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
388
|
+
batchesAmount: BigNumberish[],
|
|
389
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
390
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
391
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
392
|
+
): Promise<PopulatedTransaction>;
|
|
393
|
+
|
|
394
|
+
smartSwapTo(
|
|
395
|
+
orderId: BigNumberish,
|
|
396
|
+
receiver: string,
|
|
397
|
+
baseRequest: IOKXDexRouter.BaseRequestStruct,
|
|
398
|
+
batchesAmount: BigNumberish[],
|
|
399
|
+
batches: IOKXDexRouter.RouterPathStruct[],
|
|
400
|
+
extraData: IOKXDexRouter.PMMSwapRequestStruct[],
|
|
401
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
402
|
+
): Promise<PopulatedTransaction>;
|
|
403
|
+
|
|
404
|
+
uniswapV3SwapTo(
|
|
405
|
+
receiver: BigNumberish,
|
|
406
|
+
amount: BigNumberish,
|
|
407
|
+
minReturn: BigNumberish,
|
|
408
|
+
pools: BigNumberish[],
|
|
409
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
410
|
+
): Promise<PopulatedTransaction>;
|
|
411
|
+
|
|
412
|
+
unxswapByOrderId(
|
|
413
|
+
srcToken: BigNumberish,
|
|
414
|
+
amount: BigNumberish,
|
|
415
|
+
minReturn: BigNumberish,
|
|
416
|
+
pools: BytesLike[],
|
|
417
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
418
|
+
): Promise<PopulatedTransaction>;
|
|
419
|
+
|
|
420
|
+
unxswapTo(
|
|
421
|
+
srcToken: BigNumberish,
|
|
422
|
+
amount: BigNumberish,
|
|
423
|
+
minReturn: BigNumberish,
|
|
424
|
+
receiver: string,
|
|
425
|
+
pools: BytesLike[],
|
|
426
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
427
|
+
): Promise<PopulatedTransaction>;
|
|
428
|
+
};
|
|
429
|
+
}
|
|
@@ -0,0 +1,419 @@
|
|
|
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 { IOKXDexRouter, IOKXDexRouterInterface } from "../IOKXDexRouter";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "uint256",
|
|
14
|
+
name: "orderId",
|
|
15
|
+
type: "uint256",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
components: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "fromToken",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "toToken",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "fromTokenAmount",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint256",
|
|
36
|
+
name: "minReturnAmount",
|
|
37
|
+
type: "uint256",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "deadLine",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
internalType: "struct IOKXDexRouter.BaseRequest",
|
|
46
|
+
name: "baseRequest",
|
|
47
|
+
type: "tuple",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
internalType: "uint256[]",
|
|
51
|
+
name: "batchesAmount",
|
|
52
|
+
type: "uint256[]",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
components: [
|
|
56
|
+
{
|
|
57
|
+
internalType: "address[]",
|
|
58
|
+
name: "mixAdapters",
|
|
59
|
+
type: "address[]",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "address[]",
|
|
63
|
+
name: "assetTo",
|
|
64
|
+
type: "address[]",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
internalType: "uint256[]",
|
|
68
|
+
name: "rawData",
|
|
69
|
+
type: "uint256[]",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
internalType: "bytes[]",
|
|
73
|
+
name: "extraData",
|
|
74
|
+
type: "bytes[]",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "fromToken",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
internalType: "struct IOKXDexRouter.RouterPath[][]",
|
|
83
|
+
name: "batches",
|
|
84
|
+
type: "tuple[][]",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
components: [
|
|
88
|
+
{
|
|
89
|
+
internalType: "uint256",
|
|
90
|
+
name: "pathIndex",
|
|
91
|
+
type: "uint256",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
internalType: "address",
|
|
95
|
+
name: "payer",
|
|
96
|
+
type: "address",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
internalType: "address",
|
|
100
|
+
name: "fromToken",
|
|
101
|
+
type: "address",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
internalType: "address",
|
|
105
|
+
name: "toToken",
|
|
106
|
+
type: "address",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
internalType: "uint256",
|
|
110
|
+
name: "fromTokenAmountMax",
|
|
111
|
+
type: "uint256",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
internalType: "uint256",
|
|
115
|
+
name: "toTokenAmountMax",
|
|
116
|
+
type: "uint256",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
internalType: "uint256",
|
|
120
|
+
name: "salt",
|
|
121
|
+
type: "uint256",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
internalType: "uint256",
|
|
125
|
+
name: "deadLine",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
internalType: "bool",
|
|
130
|
+
name: "isPushOrder",
|
|
131
|
+
type: "bool",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
internalType: "bytes",
|
|
135
|
+
name: "extension",
|
|
136
|
+
type: "bytes",
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
internalType: "struct IOKXDexRouter.PMMSwapRequest[]",
|
|
140
|
+
name: "extraData",
|
|
141
|
+
type: "tuple[]",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
name: "smartSwapByOrderId",
|
|
145
|
+
outputs: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "uint256",
|
|
148
|
+
name: "returnAmount",
|
|
149
|
+
type: "uint256",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
stateMutability: "payable",
|
|
153
|
+
type: "function",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
inputs: [
|
|
157
|
+
{
|
|
158
|
+
internalType: "uint256",
|
|
159
|
+
name: "orderId",
|
|
160
|
+
type: "uint256",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
internalType: "address",
|
|
164
|
+
name: "receiver",
|
|
165
|
+
type: "address",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
components: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "uint256",
|
|
171
|
+
name: "fromToken",
|
|
172
|
+
type: "uint256",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
internalType: "address",
|
|
176
|
+
name: "toToken",
|
|
177
|
+
type: "address",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "fromTokenAmount",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "minReturnAmount",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
internalType: "uint256",
|
|
191
|
+
name: "deadLine",
|
|
192
|
+
type: "uint256",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
internalType: "struct IOKXDexRouter.BaseRequest",
|
|
196
|
+
name: "baseRequest",
|
|
197
|
+
type: "tuple",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "uint256[]",
|
|
201
|
+
name: "batchesAmount",
|
|
202
|
+
type: "uint256[]",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
components: [
|
|
206
|
+
{
|
|
207
|
+
internalType: "address[]",
|
|
208
|
+
name: "mixAdapters",
|
|
209
|
+
type: "address[]",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
internalType: "address[]",
|
|
213
|
+
name: "assetTo",
|
|
214
|
+
type: "address[]",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
internalType: "uint256[]",
|
|
218
|
+
name: "rawData",
|
|
219
|
+
type: "uint256[]",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
internalType: "bytes[]",
|
|
223
|
+
name: "extraData",
|
|
224
|
+
type: "bytes[]",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
internalType: "uint256",
|
|
228
|
+
name: "fromToken",
|
|
229
|
+
type: "uint256",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
internalType: "struct IOKXDexRouter.RouterPath[][]",
|
|
233
|
+
name: "batches",
|
|
234
|
+
type: "tuple[][]",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
components: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "uint256",
|
|
240
|
+
name: "pathIndex",
|
|
241
|
+
type: "uint256",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
internalType: "address",
|
|
245
|
+
name: "payer",
|
|
246
|
+
type: "address",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
internalType: "address",
|
|
250
|
+
name: "fromToken",
|
|
251
|
+
type: "address",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
internalType: "address",
|
|
255
|
+
name: "toToken",
|
|
256
|
+
type: "address",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
internalType: "uint256",
|
|
260
|
+
name: "fromTokenAmountMax",
|
|
261
|
+
type: "uint256",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
internalType: "uint256",
|
|
265
|
+
name: "toTokenAmountMax",
|
|
266
|
+
type: "uint256",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
internalType: "uint256",
|
|
270
|
+
name: "salt",
|
|
271
|
+
type: "uint256",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "deadLine",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
internalType: "bool",
|
|
280
|
+
name: "isPushOrder",
|
|
281
|
+
type: "bool",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
internalType: "bytes",
|
|
285
|
+
name: "extension",
|
|
286
|
+
type: "bytes",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
internalType: "struct IOKXDexRouter.PMMSwapRequest[]",
|
|
290
|
+
name: "extraData",
|
|
291
|
+
type: "tuple[]",
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
name: "smartSwapTo",
|
|
295
|
+
outputs: [],
|
|
296
|
+
stateMutability: "payable",
|
|
297
|
+
type: "function",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
inputs: [
|
|
301
|
+
{
|
|
302
|
+
internalType: "uint256",
|
|
303
|
+
name: "receiver",
|
|
304
|
+
type: "uint256",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
internalType: "uint256",
|
|
308
|
+
name: "amount",
|
|
309
|
+
type: "uint256",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
internalType: "uint256",
|
|
313
|
+
name: "minReturn",
|
|
314
|
+
type: "uint256",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
internalType: "uint256[]",
|
|
318
|
+
name: "pools",
|
|
319
|
+
type: "uint256[]",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
name: "uniswapV3SwapTo",
|
|
323
|
+
outputs: [
|
|
324
|
+
{
|
|
325
|
+
internalType: "uint256",
|
|
326
|
+
name: "returnAmount",
|
|
327
|
+
type: "uint256",
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
stateMutability: "payable",
|
|
331
|
+
type: "function",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
inputs: [
|
|
335
|
+
{
|
|
336
|
+
internalType: "uint256",
|
|
337
|
+
name: "srcToken",
|
|
338
|
+
type: "uint256",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
internalType: "uint256",
|
|
342
|
+
name: "amount",
|
|
343
|
+
type: "uint256",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
internalType: "uint256",
|
|
347
|
+
name: "minReturn",
|
|
348
|
+
type: "uint256",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
internalType: "bytes32[]",
|
|
352
|
+
name: "pools",
|
|
353
|
+
type: "bytes32[]",
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
name: "unxswapByOrderId",
|
|
357
|
+
outputs: [
|
|
358
|
+
{
|
|
359
|
+
internalType: "uint256",
|
|
360
|
+
name: "returnAmount",
|
|
361
|
+
type: "uint256",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
stateMutability: "payable",
|
|
365
|
+
type: "function",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
inputs: [
|
|
369
|
+
{
|
|
370
|
+
internalType: "uint256",
|
|
371
|
+
name: "srcToken",
|
|
372
|
+
type: "uint256",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
internalType: "uint256",
|
|
376
|
+
name: "amount",
|
|
377
|
+
type: "uint256",
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
internalType: "uint256",
|
|
381
|
+
name: "minReturn",
|
|
382
|
+
type: "uint256",
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
internalType: "address",
|
|
386
|
+
name: "receiver",
|
|
387
|
+
type: "address",
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
internalType: "bytes32[]",
|
|
391
|
+
name: "pools",
|
|
392
|
+
type: "bytes32[]",
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
name: "unxswapTo",
|
|
396
|
+
outputs: [
|
|
397
|
+
{
|
|
398
|
+
internalType: "uint256",
|
|
399
|
+
name: "returnAmount",
|
|
400
|
+
type: "uint256",
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
stateMutability: "payable",
|
|
404
|
+
type: "function",
|
|
405
|
+
},
|
|
406
|
+
];
|
|
407
|
+
|
|
408
|
+
export class IOKXDexRouter__factory {
|
|
409
|
+
static readonly abi = _abi;
|
|
410
|
+
static createInterface(): IOKXDexRouterInterface {
|
|
411
|
+
return new utils.Interface(_abi) as IOKXDexRouterInterface;
|
|
412
|
+
}
|
|
413
|
+
static connect(
|
|
414
|
+
address: string,
|
|
415
|
+
signerOrProvider: Signer | Provider
|
|
416
|
+
): IOKXDexRouter {
|
|
417
|
+
return new Contract(address, _abi, signerOrProvider) as IOKXDexRouter;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
@@ -744,6 +744,10 @@ declare module "hardhat/types/runtime" {
|
|
|
744
744
|
name: "IOdosRouterV2",
|
|
745
745
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
746
746
|
): Promise<Contracts.IOdosRouterV2__factory>;
|
|
747
|
+
getContractFactory(
|
|
748
|
+
name: "IOKXDexRouter",
|
|
749
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
750
|
+
): Promise<Contracts.IOKXDexRouter__factory>;
|
|
747
751
|
getContractFactory(
|
|
748
752
|
name: "PendleSwap",
|
|
749
753
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -1664,6 +1668,11 @@ declare module "hardhat/types/runtime" {
|
|
|
1664
1668
|
address: string,
|
|
1665
1669
|
signer?: ethers.Signer
|
|
1666
1670
|
): Promise<Contracts.IOdosRouterV2>;
|
|
1671
|
+
getContractAt(
|
|
1672
|
+
name: "IOKXDexRouter",
|
|
1673
|
+
address: string,
|
|
1674
|
+
signer?: ethers.Signer
|
|
1675
|
+
): Promise<Contracts.IOKXDexRouter>;
|
|
1667
1676
|
getContractAt(
|
|
1668
1677
|
name: "PendleSwap",
|
|
1669
1678
|
address: string,
|
package/typechain-types/index.ts
CHANGED
|
@@ -184,6 +184,7 @@ export type { Reflector } from "./Reflector";
|
|
|
184
184
|
export type { IPSwapAggregator } from "./IPSwapAggregator";
|
|
185
185
|
export type { IKyberScalingHelper } from "./IKyberScalingHelper";
|
|
186
186
|
export type { IOdosRouterV2 } from "./IOdosRouterV2";
|
|
187
|
+
export type { IOKXDexRouter } from "./IOKXDexRouter";
|
|
187
188
|
export type { PendleSwap } from "./PendleSwap";
|
|
188
189
|
|
|
189
190
|
export { AggregatorInterface__factory } from "./factories/AggregatorInterface__factory";
|
|
@@ -369,4 +370,5 @@ export { Reflector__factory } from "./factories/Reflector__factory";
|
|
|
369
370
|
export { IPSwapAggregator__factory } from "./factories/IPSwapAggregator__factory";
|
|
370
371
|
export { IKyberScalingHelper__factory } from "./factories/IKyberScalingHelper__factory";
|
|
371
372
|
export { IOdosRouterV2__factory } from "./factories/IOdosRouterV2__factory";
|
|
373
|
+
export { IOKXDexRouter__factory } from "./factories/IOKXDexRouter__factory";
|
|
372
374
|
export { PendleSwap__factory } from "./factories/PendleSwap__factory";
|