@gearbox-protocol/sdk 1.8.8 → 1.8.10
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/lib/contracts/contractsRegister.js +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -3
- package/lib/pathfinder/pathOptions.d.ts +4 -0
- package/lib/pathfinder/pathOptions.js +68 -11
- package/lib/pathfinder/pathOptions.spec.js +53 -0
- package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay.d.ts +66 -0
- package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
- package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/index.js +2 -0
- package/lib/types/contracts/integrations/lido/index.d.ts +2 -0
- package/lib/types/contracts/interfaces/adapters/lido/IwstETHV1Adapter.d.ts +9 -1
- package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +0 -11
- package/lib/types/contracts/pathfinder/interfaces/IWrapper.d.ts +152 -0
- package/lib/types/contracts/pathfinder/interfaces/IWrapper.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/index.d.ts +1 -0
- package/lib/types/contracts/test/suites/live/ITokenTestSuite.d.ts +1 -49
- package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +28 -0
- package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.js +74 -0
- package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/index.js +8 -0
- package/lib/types/factories/contracts/integrations/lido/index.d.ts +1 -0
- package/lib/types/factories/contracts/integrations/lido/index.js +2 -1
- package/lib/types/factories/contracts/interfaces/adapters/lido/IwstETHV1Adapter__factory.js +13 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +0 -13
- package/lib/types/factories/contracts/pathfinder/interfaces/IWrapper__factory.d.ts +61 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWrapper__factory.js +296 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +1 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/index.js +3 -1
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
- package/lib/types/factories/contracts/test/suites/live/ITokenTestSuite__factory.js +0 -69
- package/lib/types/index.d.ts +4 -0
- package/lib/types/index.js +7 -3
- package/package.json +1 -1
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IWrapper__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "getComponentId",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "enum PathFinderComponent",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [
|
|
24
|
+
{
|
|
25
|
+
components: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "enum SwapOperation",
|
|
28
|
+
name: "swapOperation",
|
|
29
|
+
type: "uint8",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "creditAccount",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "tokenIn",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "tokenOut",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "address[]",
|
|
48
|
+
name: "connectors",
|
|
49
|
+
type: "address[]",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "amount",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "slippage",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "bool",
|
|
63
|
+
name: "externalSlippage",
|
|
64
|
+
type: "bool",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
internalType: "struct SwapTask",
|
|
68
|
+
name: "swapTask",
|
|
69
|
+
type: "tuple",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
internalType: "address",
|
|
73
|
+
name: "adapter",
|
|
74
|
+
type: "address",
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
name: "unwrap",
|
|
78
|
+
outputs: [
|
|
79
|
+
{
|
|
80
|
+
components: [
|
|
81
|
+
{
|
|
82
|
+
components: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "target",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
internalType: "bytes",
|
|
90
|
+
name: "callData",
|
|
91
|
+
type: "bytes",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
internalType: "struct MultiCall",
|
|
95
|
+
name: "multiCall",
|
|
96
|
+
type: "tuple",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
internalType: "uint256",
|
|
100
|
+
name: "amount",
|
|
101
|
+
type: "uint256",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
internalType: "bool",
|
|
105
|
+
name: "found",
|
|
106
|
+
type: "bool",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
internalType: "uint256",
|
|
110
|
+
name: "gasUsage",
|
|
111
|
+
type: "uint256",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
internalType: "struct SwapQuote",
|
|
115
|
+
name: "quote",
|
|
116
|
+
type: "tuple",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
stateMutability: "nonpayable",
|
|
120
|
+
type: "function",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
inputs: [
|
|
124
|
+
{
|
|
125
|
+
internalType: "address",
|
|
126
|
+
name: "token",
|
|
127
|
+
type: "address",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
internalType: "address",
|
|
131
|
+
name: "adapter",
|
|
132
|
+
type: "address",
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
name: "unwrapsTo",
|
|
136
|
+
outputs: [
|
|
137
|
+
{
|
|
138
|
+
internalType: "address",
|
|
139
|
+
name: "",
|
|
140
|
+
type: "address",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
stateMutability: "view",
|
|
144
|
+
type: "function",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [],
|
|
148
|
+
name: "version",
|
|
149
|
+
outputs: [
|
|
150
|
+
{
|
|
151
|
+
internalType: "uint256",
|
|
152
|
+
name: "",
|
|
153
|
+
type: "uint256",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
stateMutability: "view",
|
|
157
|
+
type: "function",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
inputs: [
|
|
161
|
+
{
|
|
162
|
+
components: [
|
|
163
|
+
{
|
|
164
|
+
internalType: "enum SwapOperation",
|
|
165
|
+
name: "swapOperation",
|
|
166
|
+
type: "uint8",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
internalType: "address",
|
|
170
|
+
name: "creditAccount",
|
|
171
|
+
type: "address",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
internalType: "address",
|
|
175
|
+
name: "tokenIn",
|
|
176
|
+
type: "address",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
internalType: "address",
|
|
180
|
+
name: "tokenOut",
|
|
181
|
+
type: "address",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
internalType: "address[]",
|
|
185
|
+
name: "connectors",
|
|
186
|
+
type: "address[]",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
internalType: "uint256",
|
|
190
|
+
name: "amount",
|
|
191
|
+
type: "uint256",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
name: "slippage",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
internalType: "bool",
|
|
200
|
+
name: "externalSlippage",
|
|
201
|
+
type: "bool",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
internalType: "struct SwapTask",
|
|
205
|
+
name: "swapTask",
|
|
206
|
+
type: "tuple",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
internalType: "address",
|
|
210
|
+
name: "adapter",
|
|
211
|
+
type: "address",
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
name: "wrap",
|
|
215
|
+
outputs: [
|
|
216
|
+
{
|
|
217
|
+
components: [
|
|
218
|
+
{
|
|
219
|
+
components: [
|
|
220
|
+
{
|
|
221
|
+
internalType: "address",
|
|
222
|
+
name: "target",
|
|
223
|
+
type: "address",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
internalType: "bytes",
|
|
227
|
+
name: "callData",
|
|
228
|
+
type: "bytes",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
internalType: "struct MultiCall",
|
|
232
|
+
name: "multiCall",
|
|
233
|
+
type: "tuple",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
internalType: "uint256",
|
|
237
|
+
name: "amount",
|
|
238
|
+
type: "uint256",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
internalType: "bool",
|
|
242
|
+
name: "found",
|
|
243
|
+
type: "bool",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
internalType: "uint256",
|
|
247
|
+
name: "gasUsage",
|
|
248
|
+
type: "uint256",
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
internalType: "struct SwapQuote",
|
|
252
|
+
name: "quote",
|
|
253
|
+
type: "tuple",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
stateMutability: "nonpayable",
|
|
257
|
+
type: "function",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
inputs: [
|
|
261
|
+
{
|
|
262
|
+
internalType: "address",
|
|
263
|
+
name: "token",
|
|
264
|
+
type: "address",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
internalType: "address",
|
|
268
|
+
name: "adapter",
|
|
269
|
+
type: "address",
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
name: "wrapsTo",
|
|
273
|
+
outputs: [
|
|
274
|
+
{
|
|
275
|
+
internalType: "address",
|
|
276
|
+
name: "",
|
|
277
|
+
type: "address",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
stateMutability: "view",
|
|
281
|
+
type: "function",
|
|
282
|
+
},
|
|
283
|
+
];
|
|
284
|
+
var IWrapper__factory = /** @class */ (function () {
|
|
285
|
+
function IWrapper__factory() {
|
|
286
|
+
}
|
|
287
|
+
IWrapper__factory.createInterface = function () {
|
|
288
|
+
return new ethers_1.utils.Interface(_abi);
|
|
289
|
+
};
|
|
290
|
+
IWrapper__factory.connect = function (address, signerOrProvider) {
|
|
291
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
292
|
+
};
|
|
293
|
+
IWrapper__factory.abi = _abi;
|
|
294
|
+
return IWrapper__factory;
|
|
295
|
+
}());
|
|
296
|
+
exports.IWrapper__factory = IWrapper__factory;
|
|
@@ -8,3 +8,4 @@ export { IPathFinderComponent__factory } from "./IPathFinderComponent__factory";
|
|
|
8
8
|
export { IPathResolver__factory } from "./IPathResolver__factory";
|
|
9
9
|
export { ISwapAggregator__factory } from "./ISwapAggregator__factory";
|
|
10
10
|
export { ISwapper__factory } from "./ISwapper__factory";
|
|
11
|
+
export { IWrapper__factory } from "./IWrapper__factory";
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinderComponent__factory = exports.IPathFinder__factory = exports.IGasPricer__factory = exports.IClosePathResolver__factory = exports.iWithdrawerSol = exports.ilpWorkerSol = exports.iDepositorSol = void 0;
|
|
26
|
+
exports.IWrapper__factory = exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinderComponent__factory = exports.IPathFinder__factory = exports.IGasPricer__factory = exports.IClosePathResolver__factory = exports.iWithdrawerSol = exports.ilpWorkerSol = exports.iDepositorSol = void 0;
|
|
27
27
|
/* Autogenerated file. Do not edit manually. */
|
|
28
28
|
/* tslint:disable */
|
|
29
29
|
/* eslint-disable */
|
|
@@ -44,3 +44,5 @@ var ISwapAggregator__factory_1 = require("./ISwapAggregator__factory");
|
|
|
44
44
|
Object.defineProperty(exports, "ISwapAggregator__factory", { enumerable: true, get: function () { return ISwapAggregator__factory_1.ISwapAggregator__factory; } });
|
|
45
45
|
var ISwapper__factory_1 = require("./ISwapper__factory");
|
|
46
46
|
Object.defineProperty(exports, "ISwapper__factory", { enumerable: true, get: function () { return ISwapper__factory_1.ISwapper__factory; } });
|
|
47
|
+
var IWrapper__factory_1 = require("./IWrapper__factory");
|
|
48
|
+
Object.defineProperty(exports, "IWrapper__factory", { enumerable: true, get: function () { return IWrapper__factory_1.IWrapper__factory; } });
|
|
@@ -12,7 +12,7 @@ export declare class Multicall2__factory extends ContractFactory {
|
|
|
12
12
|
}): TransactionRequest;
|
|
13
13
|
attach(address: string): Multicall2;
|
|
14
14
|
connect(signer: Signer): Multicall2__factory;
|
|
15
|
-
static readonly bytecode = "
|
|
15
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea26469706673582212202c69e970f479545d7be246c48610ba0d642f18252c98dea6e14ebbeeb819c8f864736f6c634300080a0033";
|
|
16
16
|
static readonly abi: {
|
|
17
17
|
inputs: ({
|
|
18
18
|
internalType: string;
|
|
@@ -333,7 +333,7 @@ var _abi = [
|
|
|
333
333
|
type: "function",
|
|
334
334
|
},
|
|
335
335
|
];
|
|
336
|
-
var _bytecode = "
|
|
336
|
+
var _bytecode = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea26469706673582212202c69e970f479545d7be246c48610ba0d642f18252c98dea6e14ebbeeb819c8f864736f6c634300080a0033";
|
|
337
337
|
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
338
338
|
var Multicall2__factory = /** @class */ (function (_super) {
|
|
339
339
|
__extends(Multicall2__factory, _super);
|
|
@@ -99,29 +99,6 @@ var _abi = [
|
|
|
99
99
|
stateMutability: "nonpayable",
|
|
100
100
|
type: "function",
|
|
101
101
|
},
|
|
102
|
-
{
|
|
103
|
-
inputs: [
|
|
104
|
-
{
|
|
105
|
-
internalType: "enum Tokens[]",
|
|
106
|
-
name: "tokensToApprove",
|
|
107
|
-
type: "uint8[]",
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
internalType: "address",
|
|
111
|
-
name: "holder",
|
|
112
|
-
type: "address",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
internalType: "enum Contracts",
|
|
116
|
-
name: "targetContract",
|
|
117
|
-
type: "uint8",
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
name: "approveMany",
|
|
121
|
-
outputs: [],
|
|
122
|
-
stateMutability: "nonpayable",
|
|
123
|
-
type: "function",
|
|
124
|
-
},
|
|
125
102
|
{
|
|
126
103
|
inputs: [
|
|
127
104
|
{
|
|
@@ -192,52 +169,6 @@ var _abi = [
|
|
|
192
169
|
stateMutability: "nonpayable",
|
|
193
170
|
type: "function",
|
|
194
171
|
},
|
|
195
|
-
{
|
|
196
|
-
inputs: [
|
|
197
|
-
{
|
|
198
|
-
internalType: "address",
|
|
199
|
-
name: "token",
|
|
200
|
-
type: "address",
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
internalType: "address",
|
|
204
|
-
name: "to",
|
|
205
|
-
type: "address",
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
internalType: "uint256",
|
|
209
|
-
name: "amount",
|
|
210
|
-
type: "uint256",
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
name: "mintWithTotalSupply",
|
|
214
|
-
outputs: [],
|
|
215
|
-
stateMutability: "nonpayable",
|
|
216
|
-
type: "function",
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
inputs: [
|
|
220
|
-
{
|
|
221
|
-
internalType: "enum Tokens",
|
|
222
|
-
name: "t",
|
|
223
|
-
type: "uint8",
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
internalType: "address",
|
|
227
|
-
name: "to",
|
|
228
|
-
type: "address",
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
internalType: "uint256",
|
|
232
|
-
name: "amount",
|
|
233
|
-
type: "uint256",
|
|
234
|
-
},
|
|
235
|
-
],
|
|
236
|
-
name: "mintWithTotalSupply",
|
|
237
|
-
outputs: [],
|
|
238
|
-
stateMutability: "nonpayable",
|
|
239
|
-
type: "function",
|
|
240
|
-
},
|
|
241
172
|
{
|
|
242
173
|
inputs: [
|
|
243
174
|
{
|
package/lib/types/index.d.ts
CHANGED
|
@@ -87,6 +87,8 @@ export type { IwstETH } from "./contracts/integrations/lido/IwstETH.sol/IwstETH"
|
|
|
87
87
|
export { IwstETH__factory } from "./factories/contracts/integrations/lido/IwstETH.sol/IwstETH__factory";
|
|
88
88
|
export type { IwstETHGetters } from "./contracts/integrations/lido/IwstETH.sol/IwstETHGetters";
|
|
89
89
|
export { IwstETHGetters__factory } from "./factories/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory";
|
|
90
|
+
export type { IwstETHGateWay } from "./contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay";
|
|
91
|
+
export { IwstETHGateWay__factory } from "./factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory";
|
|
90
92
|
export type { IQuoter } from "./contracts/integrations/uniswap/IQuoter";
|
|
91
93
|
export { IQuoter__factory } from "./factories/contracts/integrations/uniswap/IQuoter__factory";
|
|
92
94
|
export type { IUniswapV2Router01 } from "./contracts/integrations/uniswap/IUniswapV2Router01";
|
|
@@ -263,6 +265,8 @@ export type { IWithdrawer } from "./contracts/pathfinder/interfaces/IWithdrawer.
|
|
|
263
265
|
export { IWithdrawer__factory } from "./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory";
|
|
264
266
|
export type { IWithdrawerOptions } from "./contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions";
|
|
265
267
|
export { IWithdrawerOptions__factory } from "./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory";
|
|
268
|
+
export type { IWrapper } from "./contracts/pathfinder/interfaces/IWrapper";
|
|
269
|
+
export { IWrapper__factory } from "./factories/contracts/pathfinder/interfaces/IWrapper__factory";
|
|
266
270
|
export type { ILidoMockEvents } from "./contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents";
|
|
267
271
|
export { ILidoMockEvents__factory } from "./factories/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory";
|
|
268
272
|
export type { ILockedCvx } from "./contracts/test/sigp/interfaces/ILockedCvx";
|
package/lib/types/index.js
CHANGED
|
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.Multicall2__factory = exports.AggregatorV3Interface__factory = exports.IToken__factory = exports.ISupportedContracts__factory = exports.ITokenTestSuite__factory = exports.ILockedCvx__factory = exports.ILidoMockEvents__factory = exports.IWithdrawerOptions__factory = exports.IWithdrawer__factory = exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinderComponent__factory = exports.IPathFinder__factory = exports.ILPWorkerOptions__factory = exports.ILPWorker__factory = exports.IGasPricer__factory = exports.IDepositorOptions__factory = exports.IDepositor__factory = exports.IClosePathResolver__factory = exports.IPriceOracle__factory = exports.ICreditManager__factory = exports.ICreditFilter__factory = exports.IWETHGateway__factory = exports.IVersion__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__factory = exports.IPriceFeedType__factory = exports.IPriceFeedAddress__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPhantomERC20__factory = exports.IMerkleDistributor__factory = exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = void 0;
|
|
26
|
+
exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IYVault__factory = exports.IUniswapV3SwapCallback__factory = exports.ISwapRouter__factory = exports.IUniswapV2Router02__factory = exports.IUniswapV2Router01__factory = exports.IQuoter__factory = exports.IwstETHGateWay__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.IstETHGetters__factory = exports.IstETH__factory = exports.ILidoOracle__factory = exports.ICurveRegistry__factory = exports.ICurvePoolStETH__factory = exports.ICurvePool__factory = exports.ICurvePool4Assets__factory = exports.ICurvePool3Assets__factory = exports.ICurvePool2Assets__factory = exports.ICRVToken__factory = exports.IBasicRewards__factory = exports.IWalletChecker__factory = exports.IVoting__factory = exports.IVestedEscrow__factory = exports.ITokenMinter__factory = exports.ITokenFactory__factory = exports.IStashFactory__factory = exports.IStash__factory = exports.IStaker__factory = exports.IRewards__factory = exports.IRewardFactory__factory = exports.IRegistry__factory = exports.IPools__factory = exports.IMinter__factory = exports.IFeeDistro__factory = exports.IDeposit__factory = exports.ICurveVoteEscrow__factory = exports.ICurveGauge__factory = exports.ICrvDeposit__factory = exports.IConvexToken__factory = exports.IClaimZap__factory = exports.IBooster__factory = exports.IBaseRewardPool__factory = exports.IERC165__factory = exports.IERC721Receiver__factory = exports.IERC721__factory = exports.IERC721Metadata__factory = exports.IERC20__factory = exports.IERC20Metadata__factory = exports.factories = void 0;
|
|
27
|
+
exports.IInterestRateModel__factory = exports.IGearToken__factory = exports.IDieselTokenExceptions__factory = exports.IDieselToken__factory = exports.IDegenNFTExceptions__factory = exports.IDegenNFT__factory = exports.IDataCompressorExceptions__factory = exports.IDataCompressor__factory = exports.ICreditManagerV2Exceptions__factory = exports.ICreditManagerV2Events__factory = exports.ICreditManagerV2__factory = exports.ICreditFacadeExtended__factory = exports.ICreditFacadeExceptions__factory = exports.ICreditFacadeEvents__factory = exports.ICreditFacade__factory = exports.ICreditConfiguratorExceptions__factory = exports.ICreditConfiguratorEvents__factory = exports.ICreditConfigurator__factory = exports.ICreditAccount__factory = exports.ICrediAccountExceptions__factory = exports.IContractsRegisterEvents__factory = exports.IContractsRegister__factory = exports.IAddressProviderEvents__factory = exports.IAddressProvider__factory = exports.IACLExceptions__factory = exports.IACLEvents__factory = exports.IACL__factory = exports.IAccountFactoryGetters__factory = exports.IAccountFactoryEvents__factory = exports.IAccountFactory__factory = exports.IWETH__factory = exports.IYearnV2Adapter__factory = exports.IUniswapV3AdapterExceptions__factory = exports.IUniswapV3Adapter__factory = exports.IUniswapV2Adapter__factory = exports.IwstETHV1Adapter__factory = exports.ILidoV1AdapterExceptions__factory = exports.ILidoV1AdapterEvents__factory = exports.ILidoV1Adapter__factory = exports.IUniversalAdapterExceptions__factory = exports.IUniversalAdapter__factory = exports.IAdapterExceptions__factory = exports.IAdapter__factory = exports.ICurveV1AdapterExceptions__factory = exports.ICurveV1Adapter__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.IConvexV1BoosterAdapter__factory = exports.IConvexV1BaseRewardPoolAdapterErrors__factory = void 0;
|
|
28
|
+
exports.Multicall2__factory = exports.AggregatorV3Interface__factory = exports.IToken__factory = exports.ISupportedContracts__factory = exports.ITokenTestSuite__factory = exports.ILockedCvx__factory = exports.ILidoMockEvents__factory = exports.IWrapper__factory = exports.IWithdrawerOptions__factory = exports.IWithdrawer__factory = exports.ISwapper__factory = exports.ISwapAggregator__factory = exports.IPathResolver__factory = exports.IPathFinderComponent__factory = exports.IPathFinder__factory = exports.ILPWorkerOptions__factory = exports.ILPWorker__factory = exports.IGasPricer__factory = exports.IDepositorOptions__factory = exports.IDepositor__factory = exports.IClosePathResolver__factory = exports.IPriceOracle__factory = exports.ICreditManager__factory = exports.ICreditFilter__factory = exports.IWETHGateway__factory = exports.IVersion__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__factory = exports.IPriceFeedType__factory = exports.IPriceFeedAddress__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPhantomERC20__factory = exports.IMerkleDistributor__factory = exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = exports.ILPPriceFeed__factory = void 0;
|
|
29
29
|
exports.factories = __importStar(require("./factories"));
|
|
30
30
|
var IERC20Metadata__factory_1 = require("./factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory");
|
|
31
31
|
Object.defineProperty(exports, "IERC20Metadata__factory", { enumerable: true, get: function () { return IERC20Metadata__factory_1.IERC20Metadata__factory; } });
|
|
@@ -109,6 +109,8 @@ var IwstETH__factory_1 = require("./factories/contracts/integrations/lido/IwstET
|
|
|
109
109
|
Object.defineProperty(exports, "IwstETH__factory", { enumerable: true, get: function () { return IwstETH__factory_1.IwstETH__factory; } });
|
|
110
110
|
var IwstETHGetters__factory_1 = require("./factories/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory");
|
|
111
111
|
Object.defineProperty(exports, "IwstETHGetters__factory", { enumerable: true, get: function () { return IwstETHGetters__factory_1.IwstETHGetters__factory; } });
|
|
112
|
+
var IwstETHGateWay__factory_1 = require("./factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory");
|
|
113
|
+
Object.defineProperty(exports, "IwstETHGateWay__factory", { enumerable: true, get: function () { return IwstETHGateWay__factory_1.IwstETHGateWay__factory; } });
|
|
112
114
|
var IQuoter__factory_1 = require("./factories/contracts/integrations/uniswap/IQuoter__factory");
|
|
113
115
|
Object.defineProperty(exports, "IQuoter__factory", { enumerable: true, get: function () { return IQuoter__factory_1.IQuoter__factory; } });
|
|
114
116
|
var IUniswapV2Router01__factory_1 = require("./factories/contracts/integrations/uniswap/IUniswapV2Router01__factory");
|
|
@@ -285,6 +287,8 @@ var IWithdrawer__factory_1 = require("./factories/contracts/pathfinder/interface
|
|
|
285
287
|
Object.defineProperty(exports, "IWithdrawer__factory", { enumerable: true, get: function () { return IWithdrawer__factory_1.IWithdrawer__factory; } });
|
|
286
288
|
var IWithdrawerOptions__factory_1 = require("./factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory");
|
|
287
289
|
Object.defineProperty(exports, "IWithdrawerOptions__factory", { enumerable: true, get: function () { return IWithdrawerOptions__factory_1.IWithdrawerOptions__factory; } });
|
|
290
|
+
var IWrapper__factory_1 = require("./factories/contracts/pathfinder/interfaces/IWrapper__factory");
|
|
291
|
+
Object.defineProperty(exports, "IWrapper__factory", { enumerable: true, get: function () { return IWrapper__factory_1.IWrapper__factory; } });
|
|
288
292
|
var ILidoMockEvents__factory_1 = require("./factories/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory");
|
|
289
293
|
Object.defineProperty(exports, "ILidoMockEvents__factory", { enumerable: true, get: function () { return ILidoMockEvents__factory_1.ILidoMockEvents__factory; } });
|
|
290
294
|
var ILockedCvx__factory_1 = require("./factories/contracts/test/sigp/interfaces/ILockedCvx__factory");
|