@gearbox-protocol/sdk 3.0.0-next.164 → 3.0.0-next.166

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 (37) hide show
  1. package/contracts/index.sol +3 -0
  2. package/lib/types/CompositePriceFeed.d.ts +162 -0
  3. package/lib/types/ContractsRegisterTrait.d.ts +42 -0
  4. package/lib/types/ContractsRegisterTrait.js +2 -0
  5. package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.d.ts +86 -0
  6. package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.js +2 -0
  7. package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.d.ts +110 -0
  8. package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.js +2 -0
  9. package/lib/types/ICreditAccountV3.sol/index.d.ts +2 -0
  10. package/lib/types/ICreditAccountV3.sol/index.js +2 -0
  11. package/lib/types/IPartialLiquidationBotV3.d.ts +163 -0
  12. package/lib/types/IPartialLiquidationBotV3.js +2 -0
  13. package/lib/types/PartialLiquidationBotV3.d.ts +171 -0
  14. package/lib/types/PartialLiquidationBotV3.js +2 -0
  15. package/lib/types/factories/CompositePriceFeed__factory.d.ts +202 -0
  16. package/lib/types/factories/CompositePriceFeed__factory.js +277 -0
  17. package/lib/types/factories/ContractsRegisterTrait__factory.d.ts +22 -0
  18. package/lib/types/factories/ContractsRegisterTrait__factory.js +37 -0
  19. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.d.ts +64 -0
  20. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.js +92 -0
  21. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.d.ts +88 -0
  22. package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.js +123 -0
  23. package/lib/types/factories/ICreditAccountV3.sol/index.d.ts +2 -0
  24. package/lib/types/factories/ICreditAccountV3.sol/index.js +10 -0
  25. package/lib/types/factories/IPartialLiquidationBotV3__factory.d.ts +217 -0
  26. package/lib/types/factories/IPartialLiquidationBotV3__factory.js +287 -0
  27. package/lib/types/factories/PartialLiquidationBotV3__factory.d.ts +284 -0
  28. package/lib/types/factories/PartialLiquidationBotV3__factory.js +379 -0
  29. package/lib/types/factories/index.d.ts +5 -1
  30. package/lib/types/factories/index.js +11 -4
  31. package/lib/types/index.d.ts +14 -2
  32. package/lib/types/index.js +15 -5
  33. package/package.json +2 -1
  34. package/lib/types/SafeERC20.d.ts +0 -27
  35. package/lib/types/factories/SafeERC20__factory.d.ts +0 -49
  36. package/lib/types/factories/SafeERC20__factory.js +0 -77
  37. /package/lib/types/{SafeERC20.js → CompositePriceFeed.js} +0 -0
@@ -0,0 +1,277 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CompositePriceFeed__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "constructor",
11
+ inputs: [
12
+ {
13
+ name: "priceFeeds",
14
+ type: "tuple[2]",
15
+ internalType: "struct PriceFeedParams[2]",
16
+ components: [
17
+ {
18
+ name: "priceFeed",
19
+ type: "address",
20
+ internalType: "address",
21
+ },
22
+ {
23
+ name: "stalenessPeriod",
24
+ type: "uint32",
25
+ internalType: "uint32",
26
+ },
27
+ ],
28
+ },
29
+ ],
30
+ stateMutability: "nonpayable",
31
+ },
32
+ {
33
+ type: "function",
34
+ name: "decimals",
35
+ inputs: [],
36
+ outputs: [
37
+ {
38
+ name: "",
39
+ type: "uint8",
40
+ internalType: "uint8",
41
+ },
42
+ ],
43
+ stateMutability: "view",
44
+ },
45
+ {
46
+ type: "function",
47
+ name: "description",
48
+ inputs: [],
49
+ outputs: [
50
+ {
51
+ name: "",
52
+ type: "string",
53
+ internalType: "string",
54
+ },
55
+ ],
56
+ stateMutability: "view",
57
+ },
58
+ {
59
+ type: "function",
60
+ name: "latestRoundData",
61
+ inputs: [],
62
+ outputs: [
63
+ {
64
+ name: "",
65
+ type: "uint80",
66
+ internalType: "uint80",
67
+ },
68
+ {
69
+ name: "answer",
70
+ type: "int256",
71
+ internalType: "int256",
72
+ },
73
+ {
74
+ name: "",
75
+ type: "uint256",
76
+ internalType: "uint256",
77
+ },
78
+ {
79
+ name: "",
80
+ type: "uint256",
81
+ internalType: "uint256",
82
+ },
83
+ {
84
+ name: "",
85
+ type: "uint80",
86
+ internalType: "uint80",
87
+ },
88
+ ],
89
+ stateMutability: "view",
90
+ },
91
+ {
92
+ type: "function",
93
+ name: "priceFeed0",
94
+ inputs: [],
95
+ outputs: [
96
+ {
97
+ name: "",
98
+ type: "address",
99
+ internalType: "address",
100
+ },
101
+ ],
102
+ stateMutability: "view",
103
+ },
104
+ {
105
+ type: "function",
106
+ name: "priceFeed1",
107
+ inputs: [],
108
+ outputs: [
109
+ {
110
+ name: "",
111
+ type: "address",
112
+ internalType: "address",
113
+ },
114
+ ],
115
+ stateMutability: "view",
116
+ },
117
+ {
118
+ type: "function",
119
+ name: "priceFeedType",
120
+ inputs: [],
121
+ outputs: [
122
+ {
123
+ name: "",
124
+ type: "uint8",
125
+ internalType: "enum PriceFeedType",
126
+ },
127
+ ],
128
+ stateMutability: "view",
129
+ },
130
+ {
131
+ type: "function",
132
+ name: "skipCheck1",
133
+ inputs: [],
134
+ outputs: [
135
+ {
136
+ name: "",
137
+ type: "bool",
138
+ internalType: "bool",
139
+ },
140
+ ],
141
+ stateMutability: "view",
142
+ },
143
+ {
144
+ type: "function",
145
+ name: "skipPriceCheck",
146
+ inputs: [],
147
+ outputs: [
148
+ {
149
+ name: "",
150
+ type: "bool",
151
+ internalType: "bool",
152
+ },
153
+ ],
154
+ stateMutability: "view",
155
+ },
156
+ {
157
+ type: "function",
158
+ name: "stalenessPeriod0",
159
+ inputs: [],
160
+ outputs: [
161
+ {
162
+ name: "",
163
+ type: "uint32",
164
+ internalType: "uint32",
165
+ },
166
+ ],
167
+ stateMutability: "view",
168
+ },
169
+ {
170
+ type: "function",
171
+ name: "stalenessPeriod1",
172
+ inputs: [],
173
+ outputs: [
174
+ {
175
+ name: "",
176
+ type: "uint32",
177
+ internalType: "uint32",
178
+ },
179
+ ],
180
+ stateMutability: "view",
181
+ },
182
+ {
183
+ type: "function",
184
+ name: "targetFeedScale",
185
+ inputs: [],
186
+ outputs: [
187
+ {
188
+ name: "",
189
+ type: "int256",
190
+ internalType: "int256",
191
+ },
192
+ ],
193
+ stateMutability: "view",
194
+ },
195
+ {
196
+ type: "function",
197
+ name: "version",
198
+ inputs: [],
199
+ outputs: [
200
+ {
201
+ name: "",
202
+ type: "uint256",
203
+ internalType: "uint256",
204
+ },
205
+ ],
206
+ stateMutability: "view",
207
+ },
208
+ {
209
+ type: "error",
210
+ name: "AddressIsNotContractException",
211
+ inputs: [
212
+ {
213
+ name: "",
214
+ type: "address",
215
+ internalType: "address",
216
+ },
217
+ ],
218
+ },
219
+ {
220
+ type: "error",
221
+ name: "IncorrectParameterException",
222
+ inputs: [],
223
+ },
224
+ {
225
+ type: "error",
226
+ name: "IncorrectPriceException",
227
+ inputs: [],
228
+ },
229
+ {
230
+ type: "error",
231
+ name: "IncorrectPriceFeedException",
232
+ inputs: [],
233
+ },
234
+ {
235
+ type: "error",
236
+ name: "StalePriceException",
237
+ inputs: [],
238
+ },
239
+ {
240
+ type: "error",
241
+ name: "ZeroAddressException",
242
+ inputs: [],
243
+ },
244
+ ];
245
+ const _bytecode = "0x6101406040523480156200001257600080fd5b5060405162001265380380620012658339810160408190526200003591620004a9565b805151620000438162000121565b602082015151620000548162000121565b8251516001600160a01b039081166080819052602080860180515190931660c052855181015163ffffffff90811660a052925181015190921660e0526040805163313ce56760e01b81529051919263313ce567926004808401938290030181865afa158015620000c8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ee919062000565565b620000fb90600a620006a4565b6101205260c05160e0516200011191906200014c565b1515610100525062000761915050565b6001600160a01b0381166200014957604051635919af9760e11b815260040160405180910390fd5b50565b60006200016d836001600160a01b03166200040060201b6200054b1760201c565b6200019a5760405163df4c572d60e01b81526001600160a01b038416600482015260240160405180910390fd5b826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015620001f7575060408051601f3d908101601f19168201909252620001f49181019062000565565b60015b62000215576040516367a7cd4360e01b815260040160405180910390fd5b8060ff166008146200023a576040516367a7cd4360e01b815260040160405180910390fd5b50826001600160a01b031663d62ada116040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801562000298575060408051601f3d908101601f191682019092526200029591810190620006b5565b60015b15620002a15790505b826001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa925050508015620002fe575060408051601f3d908101601f19168201909252620002fb91810190620006f6565b60015b6200031c576040516367a7cd4360e01b815260040160405180910390fd5b85156200034f5763ffffffff87161562000349576040516347fbaa9760e01b815260040160405180910390fd5b620003f4565b8663ffffffff1660000362000377576040516347fbaa9760e01b815260040160405180910390fd5b6000886001600160a01b031663e75aeec86040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015620003d6575060408051601f3d908101601f19168201909252620003d391810190620006b5565b60015b15620003df5790505b80620003f257620003f285848a6200040f565b505b50505050505b92915050565b6001600160a01b03163b151590565b6000831362000431576040516329dbcc7160e11b815260040160405180910390fd5b6200044363ffffffff8216836200074b565b421062000463576040516316dd0ffb60e01b815260040160405180910390fd5b505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620004a357620004a362000468565b60405290565b600060808284031215620004bc57600080fd5b82601f830112620004cc57600080fd5b620004d66200047e565b806080840185811115620004e957600080fd5b845b818110156200055a5760408188031215620005065760008081fd5b620005106200047e565b81516001600160a01b0381168114620005295760008081fd5b815260208281015163ffffffff81168114620005455760008081fd5b828201529085529390930192604001620004eb565b509095945050505050565b6000602082840312156200057857600080fd5b815160ff811681146200058a57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620005e8578160001904821115620005cc57620005cc62000591565b80851615620005da57918102915b93841c9390800290620005ac565b509250929050565b6000826200060157506001620003fa565b816200061057506000620003fa565b8160018114620006295760028114620006345762000654565b6001915050620003fa565b60ff84111562000648576200064862000591565b50506001821b620003fa565b5060208310610133831016604e8410600b841016171562000679575081810a620003fa565b620006858383620005a7565b80600019048211156200069c576200069c62000591565b029392505050565b60006200058a60ff841683620005f0565b600060208284031215620006c857600080fd5b815180151581146200058a57600080fd5b80516001600160501b0381168114620006f157600080fd5b919050565b600080600080600060a086880312156200070f57600080fd5b6200071a86620006d9565b94506020860151935060408601519250606086015191506200073f60808701620006d9565b90509295509295909350565b80820180821115620003fa57620003fa62000591565b60805160a05160c05160e0516101005161012051610a7d620007e86000396000818160de015261050401526000818161021401526104dc0152600081816101ba01526104bb01526000818161024b01528181610369015261049a015260008181610118015261046b01526000818161016e015281816102b8015261044a0152610a7d6000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806354fd4d5011610081578063ab0ca0e11161005b578063ab0ca0e114610246578063d62ada111461026d578063feaf968c1461027557600080fd5b806354fd4d50146101f15780637284e416146101fa5780637ff361ec1461020f57600080fd5b8063385aee1b116100b2578063385aee1b146101695780633e777fd2146101b55780633fd0875f146101dc57600080fd5b80630ff8bdd2146100d9578063178793e814610113578063313ce5671461014f575b600080fd5b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61013a7f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff909116815260200161010a565b610157600881565b60405160ff909116815260200161010a565b6101907f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010a565b61013a7f000000000000000000000000000000000000000000000000000000000000000081565b6101e4600881565b60405161010a9190610683565b61010061012c81565b6102026102b4565b60405161010a91906106e8565b6102367f000000000000000000000000000000000000000000000000000000000000000081565b604051901515815260200161010a565b6101907f000000000000000000000000000000000000000000000000000000000000000081565b610236600181565b61027d61043d565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161010a565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637284e4166040518163ffffffff1660e01b8152600401600060405180830381865afa158015610321573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526103679190810190610768565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637284e4166040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103d2573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526104189190810190610768565b604051602001610429929190610833565b604051602081830303815290604052905090565b60008060008060006104917f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006000610567565b935060006105007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610567565b90507f000000000000000000000000000000000000000000000000000000000000000061052d82876108e4565b6105379190610936565b600097909650879550859450849350915050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b6000808473ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d991906109e4565b509194509092508491506105f49050576105f48282866105fc565b509392505050565b60008313610636576040517f53b798e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61064663ffffffff821683610a34565b421061067e576040517f16dd0ffb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b60208101601383106106be577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60005b838110156106df5781810151838201526020016106c7565b50506000910152565b60208152600082518060208401526107078160408501602087016106c4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561077a57600080fd5b815167ffffffffffffffff8082111561079257600080fd5b818401915084601f8301126107a657600080fd5b8151818111156107b8576107b8610739565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156107fe576107fe610739565b8160405282815287602084870101111561081757600080fd5b6108288360208301602088016106c4565b979650505050505050565b600083516108458184602088016106c4565b7f202a200000000000000000000000000000000000000000000000000000000000908301908152835161087f8160038401602088016106c4565b7f20636f6d706f736974652070726963652066656564000000000000000000000060039290910191820152601801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808202600082127f80000000000000000000000000000000000000000000000000000000000000008414161561091c5761091c6108b5565b8181058314821517610930576109306108b5565b92915050565b60008261096c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83147f8000000000000000000000000000000000000000000000000000000000000000831416156109c0576109c06108b5565b500590565b805169ffffffffffffffffffff811681146109df57600080fd5b919050565b600080600080600060a086880312156109fc57600080fd5b610a05866109c5565b9450602086015193506040860151925060608601519150610a28608087016109c5565b90509295509295909350565b80820180821115610930576109306108b556fea264697066735822122017d09f3ba908f59cd4d31e27f918b97aebb6e7bbd9ff58813df49af79b13f50864736f6c63430008110033";
246
+ const isSuperArgs = (xs) => xs.length > 1;
247
+ class CompositePriceFeed__factory extends ethers_1.ContractFactory {
248
+ constructor(...args) {
249
+ if (isSuperArgs(args)) {
250
+ super(...args);
251
+ }
252
+ else {
253
+ super(_abi, _bytecode, args[0]);
254
+ }
255
+ }
256
+ deploy(priceFeeds, overrides) {
257
+ return super.deploy(priceFeeds, overrides || {});
258
+ }
259
+ getDeployTransaction(priceFeeds, overrides) {
260
+ return super.getDeployTransaction(priceFeeds, overrides || {});
261
+ }
262
+ attach(address) {
263
+ return super.attach(address);
264
+ }
265
+ connect(signer) {
266
+ return super.connect(signer);
267
+ }
268
+ static bytecode = _bytecode;
269
+ static abi = _abi;
270
+ static createInterface() {
271
+ return new ethers_1.utils.Interface(_abi);
272
+ }
273
+ static connect(address, signerOrProvider) {
274
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
275
+ }
276
+ }
277
+ exports.CompositePriceFeed__factory = CompositePriceFeed__factory;
@@ -0,0 +1,22 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { ContractsRegisterTrait, ContractsRegisterTraitInterface } from "../ContractsRegisterTrait";
4
+ export declare class ContractsRegisterTrait__factory {
5
+ static readonly abi: readonly [{
6
+ readonly type: "function";
7
+ readonly name: "contractsRegister";
8
+ readonly inputs: readonly [];
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly type: "address";
12
+ readonly internalType: "address";
13
+ }];
14
+ readonly stateMutability: "view";
15
+ }, {
16
+ readonly type: "error";
17
+ readonly name: "ZeroAddressException";
18
+ readonly inputs: readonly [];
19
+ }];
20
+ static createInterface(): ContractsRegisterTraitInterface;
21
+ static connect(address: string, signerOrProvider: Signer | Provider): ContractsRegisterTrait;
22
+ }
@@ -0,0 +1,37 @@
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.ContractsRegisterTrait__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "function",
11
+ name: "contractsRegister",
12
+ inputs: [],
13
+ outputs: [
14
+ {
15
+ name: "",
16
+ type: "address",
17
+ internalType: "address",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ },
22
+ {
23
+ type: "error",
24
+ name: "ZeroAddressException",
25
+ inputs: [],
26
+ },
27
+ ];
28
+ class ContractsRegisterTrait__factory {
29
+ static abi = _abi;
30
+ static createInterface() {
31
+ return new ethers_1.utils.Interface(_abi);
32
+ }
33
+ static connect(address, signerOrProvider) {
34
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
35
+ }
36
+ }
37
+ exports.ContractsRegisterTrait__factory = ContractsRegisterTrait__factory;
@@ -0,0 +1,64 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { ICreditAccountBase, ICreditAccountBaseInterface } from "../../ICreditAccountV3.sol/ICreditAccountBase";
4
+ export declare class ICreditAccountBase__factory {
5
+ static readonly abi: readonly [{
6
+ readonly type: "function";
7
+ readonly name: "creditManager";
8
+ readonly inputs: readonly [];
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly type: "address";
12
+ readonly internalType: "address";
13
+ }];
14
+ readonly stateMutability: "view";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly name: "execute";
18
+ readonly inputs: readonly [{
19
+ readonly name: "target";
20
+ readonly type: "address";
21
+ readonly internalType: "address";
22
+ }, {
23
+ readonly name: "data";
24
+ readonly type: "bytes";
25
+ readonly internalType: "bytes";
26
+ }];
27
+ readonly outputs: readonly [{
28
+ readonly name: "result";
29
+ readonly type: "bytes";
30
+ readonly internalType: "bytes";
31
+ }];
32
+ readonly stateMutability: "nonpayable";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "safeTransfer";
36
+ readonly inputs: readonly [{
37
+ readonly name: "token";
38
+ readonly type: "address";
39
+ readonly internalType: "address";
40
+ }, {
41
+ readonly name: "to";
42
+ readonly type: "address";
43
+ readonly internalType: "address";
44
+ }, {
45
+ readonly name: "amount";
46
+ readonly type: "uint256";
47
+ readonly internalType: "uint256";
48
+ }];
49
+ readonly outputs: readonly [];
50
+ readonly stateMutability: "nonpayable";
51
+ }, {
52
+ readonly type: "function";
53
+ readonly name: "version";
54
+ readonly inputs: readonly [];
55
+ readonly outputs: readonly [{
56
+ readonly name: "";
57
+ readonly type: "uint256";
58
+ readonly internalType: "uint256";
59
+ }];
60
+ readonly stateMutability: "view";
61
+ }];
62
+ static createInterface(): ICreditAccountBaseInterface;
63
+ static connect(address: string, signerOrProvider: Signer | Provider): ICreditAccountBase;
64
+ }
@@ -0,0 +1,92 @@
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.ICreditAccountBase__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "function",
11
+ name: "creditManager",
12
+ inputs: [],
13
+ outputs: [
14
+ {
15
+ name: "",
16
+ type: "address",
17
+ internalType: "address",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "execute",
25
+ inputs: [
26
+ {
27
+ name: "target",
28
+ type: "address",
29
+ internalType: "address",
30
+ },
31
+ {
32
+ name: "data",
33
+ type: "bytes",
34
+ internalType: "bytes",
35
+ },
36
+ ],
37
+ outputs: [
38
+ {
39
+ name: "result",
40
+ type: "bytes",
41
+ internalType: "bytes",
42
+ },
43
+ ],
44
+ stateMutability: "nonpayable",
45
+ },
46
+ {
47
+ type: "function",
48
+ name: "safeTransfer",
49
+ inputs: [
50
+ {
51
+ name: "token",
52
+ type: "address",
53
+ internalType: "address",
54
+ },
55
+ {
56
+ name: "to",
57
+ type: "address",
58
+ internalType: "address",
59
+ },
60
+ {
61
+ name: "amount",
62
+ type: "uint256",
63
+ internalType: "uint256",
64
+ },
65
+ ],
66
+ outputs: [],
67
+ stateMutability: "nonpayable",
68
+ },
69
+ {
70
+ type: "function",
71
+ name: "version",
72
+ inputs: [],
73
+ outputs: [
74
+ {
75
+ name: "",
76
+ type: "uint256",
77
+ internalType: "uint256",
78
+ },
79
+ ],
80
+ stateMutability: "view",
81
+ },
82
+ ];
83
+ class ICreditAccountBase__factory {
84
+ static abi = _abi;
85
+ static createInterface() {
86
+ return new ethers_1.utils.Interface(_abi);
87
+ }
88
+ static connect(address, signerOrProvider) {
89
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
90
+ }
91
+ }
92
+ exports.ICreditAccountBase__factory = ICreditAccountBase__factory;
@@ -0,0 +1,88 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { ICreditAccountV3, ICreditAccountV3Interface } from "../../ICreditAccountV3.sol/ICreditAccountV3";
4
+ export declare class ICreditAccountV3__factory {
5
+ static readonly abi: readonly [{
6
+ readonly type: "function";
7
+ readonly name: "creditManager";
8
+ readonly inputs: readonly [];
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly type: "address";
12
+ readonly internalType: "address";
13
+ }];
14
+ readonly stateMutability: "view";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly name: "execute";
18
+ readonly inputs: readonly [{
19
+ readonly name: "target";
20
+ readonly type: "address";
21
+ readonly internalType: "address";
22
+ }, {
23
+ readonly name: "data";
24
+ readonly type: "bytes";
25
+ readonly internalType: "bytes";
26
+ }];
27
+ readonly outputs: readonly [{
28
+ readonly name: "result";
29
+ readonly type: "bytes";
30
+ readonly internalType: "bytes";
31
+ }];
32
+ readonly stateMutability: "nonpayable";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "factory";
36
+ readonly inputs: readonly [];
37
+ readonly outputs: readonly [{
38
+ readonly name: "";
39
+ readonly type: "address";
40
+ readonly internalType: "address";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ }, {
44
+ readonly type: "function";
45
+ readonly name: "rescue";
46
+ readonly inputs: readonly [{
47
+ readonly name: "target";
48
+ readonly type: "address";
49
+ readonly internalType: "address";
50
+ }, {
51
+ readonly name: "data";
52
+ readonly type: "bytes";
53
+ readonly internalType: "bytes";
54
+ }];
55
+ readonly outputs: readonly [];
56
+ readonly stateMutability: "nonpayable";
57
+ }, {
58
+ readonly type: "function";
59
+ readonly name: "safeTransfer";
60
+ readonly inputs: readonly [{
61
+ readonly name: "token";
62
+ readonly type: "address";
63
+ readonly internalType: "address";
64
+ }, {
65
+ readonly name: "to";
66
+ readonly type: "address";
67
+ readonly internalType: "address";
68
+ }, {
69
+ readonly name: "amount";
70
+ readonly type: "uint256";
71
+ readonly internalType: "uint256";
72
+ }];
73
+ readonly outputs: readonly [];
74
+ readonly stateMutability: "nonpayable";
75
+ }, {
76
+ readonly type: "function";
77
+ readonly name: "version";
78
+ readonly inputs: readonly [];
79
+ readonly outputs: readonly [{
80
+ readonly name: "";
81
+ readonly type: "uint256";
82
+ readonly internalType: "uint256";
83
+ }];
84
+ readonly stateMutability: "view";
85
+ }];
86
+ static createInterface(): ICreditAccountV3Interface;
87
+ static connect(address: string, signerOrProvider: Signer | Provider): ICreditAccountV3;
88
+ }