@gearbox-protocol/sdk 1.8.7 → 1.8.9

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.
Files changed (33) hide show
  1. package/lib/contracts/contractsRegister.d.ts +2 -0
  2. package/lib/contracts/contractsRegister.js +6 -1
  3. package/lib/index.d.ts +1 -1
  4. package/lib/index.js +2 -3
  5. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay.d.ts +66 -0
  6. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
  7. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/index.d.ts +1 -0
  8. package/lib/types/contracts/integrations/lido/IwstETHGateway.sol/index.js +2 -0
  9. package/lib/types/contracts/integrations/lido/index.d.ts +2 -0
  10. package/lib/types/contracts/interfaces/adapters/lido/IwstETHV1Adapter.d.ts +9 -1
  11. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +0 -11
  12. package/lib/types/contracts/pathfinder/interfaces/IWrapper.d.ts +152 -0
  13. package/lib/types/contracts/pathfinder/interfaces/IWrapper.js +2 -0
  14. package/lib/types/contracts/pathfinder/interfaces/index.d.ts +1 -0
  15. package/lib/types/contracts/test/suites/live/ITokenTestSuite.d.ts +1 -49
  16. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +28 -0
  17. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/IwstETHGateWay__factory.js +74 -0
  18. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/index.d.ts +1 -0
  19. package/lib/types/factories/contracts/integrations/lido/IwstETHGateway.sol/index.js +8 -0
  20. package/lib/types/factories/contracts/integrations/lido/index.d.ts +1 -0
  21. package/lib/types/factories/contracts/integrations/lido/index.js +2 -1
  22. package/lib/types/factories/contracts/interfaces/adapters/lido/IwstETHV1Adapter__factory.js +13 -0
  23. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +0 -13
  24. package/lib/types/factories/contracts/pathfinder/interfaces/IWrapper__factory.d.ts +61 -0
  25. package/lib/types/factories/contracts/pathfinder/interfaces/IWrapper__factory.js +296 -0
  26. package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +1 -0
  27. package/lib/types/factories/contracts/pathfinder/interfaces/index.js +3 -1
  28. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
  29. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
  30. package/lib/types/factories/contracts/test/suites/live/ITokenTestSuite__factory.js +0 -69
  31. package/lib/types/index.d.ts +4 -0
  32. package/lib/types/index.js +7 -3
  33. package/package.json +1 -1
@@ -0,0 +1,74 @@
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.IwstETHGateWay__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "NonRegisterPoolException",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [
16
+ {
17
+ internalType: "uint256",
18
+ name: "amount",
19
+ type: "uint256",
20
+ },
21
+ {
22
+ internalType: "address",
23
+ name: "onBehalfOf",
24
+ type: "address",
25
+ },
26
+ {
27
+ internalType: "uint256",
28
+ name: "referralCode",
29
+ type: "uint256",
30
+ },
31
+ ],
32
+ name: "addLiquidity",
33
+ outputs: [],
34
+ stateMutability: "nonpayable",
35
+ type: "function",
36
+ },
37
+ {
38
+ inputs: [
39
+ {
40
+ internalType: "uint256",
41
+ name: "amount",
42
+ type: "uint256",
43
+ },
44
+ {
45
+ internalType: "address",
46
+ name: "to",
47
+ type: "address",
48
+ },
49
+ ],
50
+ name: "removeLiquidity",
51
+ outputs: [
52
+ {
53
+ internalType: "uint256",
54
+ name: "amountGet",
55
+ type: "uint256",
56
+ },
57
+ ],
58
+ stateMutability: "nonpayable",
59
+ type: "function",
60
+ },
61
+ ];
62
+ var IwstETHGateWay__factory = /** @class */ (function () {
63
+ function IwstETHGateWay__factory() {
64
+ }
65
+ IwstETHGateWay__factory.createInterface = function () {
66
+ return new ethers_1.utils.Interface(_abi);
67
+ };
68
+ IwstETHGateWay__factory.connect = function (address, signerOrProvider) {
69
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
70
+ };
71
+ IwstETHGateWay__factory.abi = _abi;
72
+ return IwstETHGateWay__factory;
73
+ }());
74
+ exports.IwstETHGateWay__factory = IwstETHGateWay__factory;
@@ -0,0 +1 @@
1
+ export { IwstETHGateWay__factory } from "./IwstETHGateWay__factory";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IwstETHGateWay__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IwstETHGateWay__factory_1 = require("./IwstETHGateWay__factory");
8
+ Object.defineProperty(exports, "IwstETHGateWay__factory", { enumerable: true, get: function () { return IwstETHGateWay__factory_1.IwstETHGateWay__factory; } });
@@ -1,3 +1,4 @@
1
1
  export * as istEthSol from "./IstETH.sol";
2
2
  export * as iwstEthSol from "./IwstETH.sol";
3
+ export * as iwstEthGatewaySol from "./IwstETHGateway.sol";
3
4
  export { ILidoOracle__factory } from "./ILidoOracle__factory";
@@ -23,11 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ILidoOracle__factory = exports.iwstEthSol = exports.istEthSol = void 0;
26
+ exports.ILidoOracle__factory = exports.iwstEthGatewaySol = exports.iwstEthSol = exports.istEthSol = void 0;
27
27
  /* Autogenerated file. Do not edit manually. */
28
28
  /* tslint:disable */
29
29
  /* eslint-disable */
30
30
  exports.istEthSol = __importStar(require("./IstETH.sol"));
31
31
  exports.iwstEthSol = __importStar(require("./IwstETH.sol"));
32
+ exports.iwstEthGatewaySol = __importStar(require("./IwstETHGateway.sol"));
32
33
  var ILidoOracle__factory_1 = require("./ILidoOracle__factory");
33
34
  Object.defineProperty(exports, "ILidoOracle__factory", { enumerable: true, get: function () { return ILidoOracle__factory_1.ILidoOracle__factory; } });
@@ -176,6 +176,19 @@ var _abi = [
176
176
  stateMutability: "view",
177
177
  type: "function",
178
178
  },
179
+ {
180
+ inputs: [],
181
+ name: "stETH",
182
+ outputs: [
183
+ {
184
+ internalType: "address",
185
+ name: "",
186
+ type: "address",
187
+ },
188
+ ],
189
+ stateMutability: "view",
190
+ type: "function",
191
+ },
179
192
  {
180
193
  inputs: [],
181
194
  name: "stEthPerToken",
@@ -25,19 +25,6 @@ var _abi = [
25
25
  name: "PathFinderComponentUpdate",
26
26
  type: "event",
27
27
  },
28
- {
29
- anonymous: false,
30
- inputs: [
31
- {
32
- indexed: false,
33
- internalType: "address",
34
- name: "",
35
- type: "address",
36
- },
37
- ],
38
- name: "ResolverComponentUpdateFailed",
39
- type: "event",
40
- },
41
28
  {
42
29
  anonymous: false,
43
30
  inputs: [
@@ -0,0 +1,61 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IWrapper, IWrapperInterface } from "../../../../contracts/pathfinder/interfaces/IWrapper";
4
+ export declare class IWrapper__factory {
5
+ static readonly abi: ({
6
+ inputs: ({
7
+ components: {
8
+ internalType: string;
9
+ name: string;
10
+ type: string;
11
+ }[];
12
+ internalType: string;
13
+ name: string;
14
+ type: string;
15
+ } | {
16
+ internalType: string;
17
+ name: string;
18
+ type: string;
19
+ components?: undefined;
20
+ })[];
21
+ name: string;
22
+ outputs: {
23
+ components: ({
24
+ components: {
25
+ internalType: string;
26
+ name: string;
27
+ type: string;
28
+ }[];
29
+ internalType: string;
30
+ name: string;
31
+ type: string;
32
+ } | {
33
+ internalType: string;
34
+ name: string;
35
+ type: string;
36
+ components?: undefined;
37
+ })[];
38
+ internalType: string;
39
+ name: string;
40
+ type: string;
41
+ }[];
42
+ stateMutability: string;
43
+ type: string;
44
+ } | {
45
+ inputs: {
46
+ internalType: string;
47
+ name: string;
48
+ type: string;
49
+ }[];
50
+ name: string;
51
+ outputs: {
52
+ internalType: string;
53
+ name: string;
54
+ type: string;
55
+ }[];
56
+ stateMutability: string;
57
+ type: string;
58
+ })[];
59
+ static createInterface(): IWrapperInterface;
60
+ static connect(address: string, signerOrProvider: Signer | Provider): IWrapper;
61
+ }
@@ -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 = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea2646970667358221220125df3e1e21b5f72a198b151923a51a6f30c33ef274b23d8593ad64b95e7c91f64736f6c634300080a0033";
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 = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea2646970667358221220125df3e1e21b5f72a198b151923a51a6f30c33ef274b23d8593ad64b95e7c91f64736f6c634300080a0033";
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);