@gearbox-protocol/sdk 12.1.0 → 12.1.1
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/dist/cjs/abi/IWithdrawalCompressorV310.js +132 -1
- package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +6 -2
- package/dist/esm/abi/IWithdrawalCompressorV310.js +132 -1
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +6 -2
- package/dist/types/abi/IWithdrawalCompressorV310.d.ts +116 -1
- package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,28 @@ __export(IWithdrawalCompressorV310_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(IWithdrawalCompressorV310_exports);
|
|
24
24
|
const iWithdrawalCompressorV310Abi = [
|
|
25
|
+
{
|
|
26
|
+
type: "constructor",
|
|
27
|
+
inputs: [
|
|
28
|
+
{ name: "_owner", internalType: "address", type: "address" },
|
|
29
|
+
{ name: "addressProvider_", internalType: "address", type: "address" }
|
|
30
|
+
],
|
|
31
|
+
stateMutability: "nonpayable"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: "function",
|
|
35
|
+
inputs: [],
|
|
36
|
+
name: "addressProvider",
|
|
37
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
38
|
+
stateMutability: "view"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "function",
|
|
42
|
+
inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
43
|
+
name: "compressorTypeToCompressor",
|
|
44
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
45
|
+
stateMutability: "view"
|
|
46
|
+
},
|
|
25
47
|
{
|
|
26
48
|
type: "function",
|
|
27
49
|
inputs: [],
|
|
@@ -139,7 +161,7 @@ const iWithdrawalCompressorV310Abi = [
|
|
|
139
161
|
name: "getWithdrawalRequestResult",
|
|
140
162
|
outputs: [
|
|
141
163
|
{
|
|
142
|
-
name: "",
|
|
164
|
+
name: "withdrawal",
|
|
143
165
|
internalType: "struct RequestableWithdrawal",
|
|
144
166
|
type: "tuple",
|
|
145
167
|
components: [
|
|
@@ -170,12 +192,121 @@ const iWithdrawalCompressorV310Abi = [
|
|
|
170
192
|
],
|
|
171
193
|
stateMutability: "view"
|
|
172
194
|
},
|
|
195
|
+
// TODO: REMOVE COMMENTS AFTER MIGRATION TO MULTIPLE
|
|
196
|
+
// {
|
|
197
|
+
// type: "function",
|
|
198
|
+
// inputs: [
|
|
199
|
+
// { name: "creditAccount", internalType: "address", type: "address" },
|
|
200
|
+
// { name: "token", internalType: "address", type: "address" },
|
|
201
|
+
// { name: "withdrawalToken", internalType: "address", type: "address" },
|
|
202
|
+
// { name: "amount", internalType: "uint256", type: "uint256" },
|
|
203
|
+
// ],
|
|
204
|
+
// name: "getWithdrawalRequestResult",
|
|
205
|
+
// outputs: [
|
|
206
|
+
// {
|
|
207
|
+
// name: "withdrawal",
|
|
208
|
+
// internalType: "struct RequestableWithdrawal",
|
|
209
|
+
// type: "tuple",
|
|
210
|
+
// components: [
|
|
211
|
+
// { name: "token", internalType: "address", type: "address" },
|
|
212
|
+
// { name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
213
|
+
// {
|
|
214
|
+
// name: "outputs",
|
|
215
|
+
// internalType: "struct WithdrawalOutput[]",
|
|
216
|
+
// type: "tuple[]",
|
|
217
|
+
// components: [
|
|
218
|
+
// { name: "token", internalType: "address", type: "address" },
|
|
219
|
+
// { name: "isDelayed", internalType: "bool", type: "bool" },
|
|
220
|
+
// { name: "amount", internalType: "uint256", type: "uint256" },
|
|
221
|
+
// ],
|
|
222
|
+
// },
|
|
223
|
+
// {
|
|
224
|
+
// name: "requestCalls",
|
|
225
|
+
// internalType: "struct MultiCall[]",
|
|
226
|
+
// type: "tuple[]",
|
|
227
|
+
// components: [
|
|
228
|
+
// { name: "target", internalType: "address", type: "address" },
|
|
229
|
+
// { name: "callData", internalType: "bytes", type: "bytes" },
|
|
230
|
+
// ],
|
|
231
|
+
// },
|
|
232
|
+
// { name: "claimableAt", internalType: "uint256", type: "uint256" },
|
|
233
|
+
// ],
|
|
234
|
+
// },
|
|
235
|
+
// ],
|
|
236
|
+
// stateMutability: "view",
|
|
237
|
+
// },
|
|
238
|
+
{
|
|
239
|
+
type: "function",
|
|
240
|
+
inputs: [],
|
|
241
|
+
name: "owner",
|
|
242
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
243
|
+
stateMutability: "view"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
type: "function",
|
|
247
|
+
inputs: [],
|
|
248
|
+
name: "renounceOwnership",
|
|
249
|
+
outputs: [],
|
|
250
|
+
stateMutability: "nonpayable"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
type: "function",
|
|
254
|
+
inputs: [
|
|
255
|
+
{ name: "subcompressor", internalType: "address", type: "address" }
|
|
256
|
+
],
|
|
257
|
+
name: "setSubcompressor",
|
|
258
|
+
outputs: [],
|
|
259
|
+
stateMutability: "nonpayable"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
type: "function",
|
|
263
|
+
inputs: [
|
|
264
|
+
{ name: "withdrawableType", internalType: "bytes32", type: "bytes32" },
|
|
265
|
+
{ name: "compressorType", internalType: "bytes32", type: "bytes32" }
|
|
266
|
+
],
|
|
267
|
+
name: "setWithdrawableTypeToCompressorType",
|
|
268
|
+
outputs: [],
|
|
269
|
+
stateMutability: "nonpayable"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
type: "function",
|
|
273
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
274
|
+
name: "transferOwnership",
|
|
275
|
+
outputs: [],
|
|
276
|
+
stateMutability: "nonpayable"
|
|
277
|
+
},
|
|
173
278
|
{
|
|
174
279
|
type: "function",
|
|
175
280
|
inputs: [],
|
|
176
281
|
name: "version",
|
|
177
282
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
178
283
|
stateMutability: "view"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
type: "function",
|
|
287
|
+
inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
288
|
+
name: "withdrawableTypeToCompressorType",
|
|
289
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
290
|
+
stateMutability: "view"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
type: "event",
|
|
294
|
+
anonymous: false,
|
|
295
|
+
inputs: [
|
|
296
|
+
{
|
|
297
|
+
name: "previousOwner",
|
|
298
|
+
internalType: "address",
|
|
299
|
+
type: "address",
|
|
300
|
+
indexed: true
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "newOwner",
|
|
304
|
+
internalType: "address",
|
|
305
|
+
type: "address",
|
|
306
|
+
indexed: true
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
name: "OwnershipTransferred"
|
|
179
310
|
}
|
|
180
311
|
];
|
|
181
312
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -31,14 +31,18 @@ var import_IWithdrawalCompressorV310 = require("../../abi/IWithdrawalCompressorV
|
|
|
31
31
|
var import_iBaseRewardPool = require("../../abi/iBaseRewardPool.js");
|
|
32
32
|
var import_v300 = require("../../abi/v300.js");
|
|
33
33
|
var import_base = require("../base/index.js");
|
|
34
|
+
var import_chains = require("../chain/chains.js");
|
|
34
35
|
var import_constants = require("../constants/index.js");
|
|
35
36
|
var import_router = require("../router/index.js");
|
|
36
37
|
var import_sdk_legacy = require("../sdk-legacy/index.js");
|
|
37
38
|
var import_utils = require("../utils/index.js");
|
|
38
39
|
var import_viem2 = require("../utils/viem/index.js");
|
|
40
|
+
const COMPRESSORS = {
|
|
41
|
+
[import_chains.chains.Mainnet.id]: "0xfB79b6713fe214B8748ED7b0db1f93E4f1aC9d29",
|
|
42
|
+
[import_chains.chains.Monad.id]: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023"
|
|
43
|
+
};
|
|
39
44
|
function getWithdrawalCompressorAddress(chainId) {
|
|
40
|
-
|
|
41
|
-
return compressor;
|
|
45
|
+
return COMPRESSORS[chainId];
|
|
42
46
|
}
|
|
43
47
|
class AbstractCreditAccountService extends import_base.SDKConstruct {
|
|
44
48
|
#compressor;
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
const iWithdrawalCompressorV310Abi = [
|
|
2
|
+
{
|
|
3
|
+
type: "constructor",
|
|
4
|
+
inputs: [
|
|
5
|
+
{ name: "_owner", internalType: "address", type: "address" },
|
|
6
|
+
{ name: "addressProvider_", internalType: "address", type: "address" }
|
|
7
|
+
],
|
|
8
|
+
stateMutability: "nonpayable"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
inputs: [],
|
|
13
|
+
name: "addressProvider",
|
|
14
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
15
|
+
stateMutability: "view"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: "function",
|
|
19
|
+
inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
20
|
+
name: "compressorTypeToCompressor",
|
|
21
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
22
|
+
stateMutability: "view"
|
|
23
|
+
},
|
|
2
24
|
{
|
|
3
25
|
type: "function",
|
|
4
26
|
inputs: [],
|
|
@@ -116,7 +138,7 @@ const iWithdrawalCompressorV310Abi = [
|
|
|
116
138
|
name: "getWithdrawalRequestResult",
|
|
117
139
|
outputs: [
|
|
118
140
|
{
|
|
119
|
-
name: "",
|
|
141
|
+
name: "withdrawal",
|
|
120
142
|
internalType: "struct RequestableWithdrawal",
|
|
121
143
|
type: "tuple",
|
|
122
144
|
components: [
|
|
@@ -147,12 +169,121 @@ const iWithdrawalCompressorV310Abi = [
|
|
|
147
169
|
],
|
|
148
170
|
stateMutability: "view"
|
|
149
171
|
},
|
|
172
|
+
// TODO: REMOVE COMMENTS AFTER MIGRATION TO MULTIPLE
|
|
173
|
+
// {
|
|
174
|
+
// type: "function",
|
|
175
|
+
// inputs: [
|
|
176
|
+
// { name: "creditAccount", internalType: "address", type: "address" },
|
|
177
|
+
// { name: "token", internalType: "address", type: "address" },
|
|
178
|
+
// { name: "withdrawalToken", internalType: "address", type: "address" },
|
|
179
|
+
// { name: "amount", internalType: "uint256", type: "uint256" },
|
|
180
|
+
// ],
|
|
181
|
+
// name: "getWithdrawalRequestResult",
|
|
182
|
+
// outputs: [
|
|
183
|
+
// {
|
|
184
|
+
// name: "withdrawal",
|
|
185
|
+
// internalType: "struct RequestableWithdrawal",
|
|
186
|
+
// type: "tuple",
|
|
187
|
+
// components: [
|
|
188
|
+
// { name: "token", internalType: "address", type: "address" },
|
|
189
|
+
// { name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
190
|
+
// {
|
|
191
|
+
// name: "outputs",
|
|
192
|
+
// internalType: "struct WithdrawalOutput[]",
|
|
193
|
+
// type: "tuple[]",
|
|
194
|
+
// components: [
|
|
195
|
+
// { name: "token", internalType: "address", type: "address" },
|
|
196
|
+
// { name: "isDelayed", internalType: "bool", type: "bool" },
|
|
197
|
+
// { name: "amount", internalType: "uint256", type: "uint256" },
|
|
198
|
+
// ],
|
|
199
|
+
// },
|
|
200
|
+
// {
|
|
201
|
+
// name: "requestCalls",
|
|
202
|
+
// internalType: "struct MultiCall[]",
|
|
203
|
+
// type: "tuple[]",
|
|
204
|
+
// components: [
|
|
205
|
+
// { name: "target", internalType: "address", type: "address" },
|
|
206
|
+
// { name: "callData", internalType: "bytes", type: "bytes" },
|
|
207
|
+
// ],
|
|
208
|
+
// },
|
|
209
|
+
// { name: "claimableAt", internalType: "uint256", type: "uint256" },
|
|
210
|
+
// ],
|
|
211
|
+
// },
|
|
212
|
+
// ],
|
|
213
|
+
// stateMutability: "view",
|
|
214
|
+
// },
|
|
215
|
+
{
|
|
216
|
+
type: "function",
|
|
217
|
+
inputs: [],
|
|
218
|
+
name: "owner",
|
|
219
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
220
|
+
stateMutability: "view"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
type: "function",
|
|
224
|
+
inputs: [],
|
|
225
|
+
name: "renounceOwnership",
|
|
226
|
+
outputs: [],
|
|
227
|
+
stateMutability: "nonpayable"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
type: "function",
|
|
231
|
+
inputs: [
|
|
232
|
+
{ name: "subcompressor", internalType: "address", type: "address" }
|
|
233
|
+
],
|
|
234
|
+
name: "setSubcompressor",
|
|
235
|
+
outputs: [],
|
|
236
|
+
stateMutability: "nonpayable"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
type: "function",
|
|
240
|
+
inputs: [
|
|
241
|
+
{ name: "withdrawableType", internalType: "bytes32", type: "bytes32" },
|
|
242
|
+
{ name: "compressorType", internalType: "bytes32", type: "bytes32" }
|
|
243
|
+
],
|
|
244
|
+
name: "setWithdrawableTypeToCompressorType",
|
|
245
|
+
outputs: [],
|
|
246
|
+
stateMutability: "nonpayable"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
type: "function",
|
|
250
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
251
|
+
name: "transferOwnership",
|
|
252
|
+
outputs: [],
|
|
253
|
+
stateMutability: "nonpayable"
|
|
254
|
+
},
|
|
150
255
|
{
|
|
151
256
|
type: "function",
|
|
152
257
|
inputs: [],
|
|
153
258
|
name: "version",
|
|
154
259
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
155
260
|
stateMutability: "view"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
type: "function",
|
|
264
|
+
inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
265
|
+
name: "withdrawableTypeToCompressorType",
|
|
266
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
267
|
+
stateMutability: "view"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: "event",
|
|
271
|
+
anonymous: false,
|
|
272
|
+
inputs: [
|
|
273
|
+
{
|
|
274
|
+
name: "previousOwner",
|
|
275
|
+
internalType: "address",
|
|
276
|
+
type: "address",
|
|
277
|
+
indexed: true
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: "newOwner",
|
|
281
|
+
internalType: "address",
|
|
282
|
+
type: "address",
|
|
283
|
+
indexed: true
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
name: "OwnershipTransferred"
|
|
156
287
|
}
|
|
157
288
|
];
|
|
158
289
|
export {
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
iCreditFacadeV300MulticallAbi
|
|
11
11
|
} from "../../abi/v300.js";
|
|
12
12
|
import { SDKConstruct } from "../base/index.js";
|
|
13
|
+
import { chains } from "../chain/chains.js";
|
|
13
14
|
import {
|
|
14
15
|
ADDRESS_0X0,
|
|
15
16
|
AP_CREDIT_ACCOUNT_COMPRESSOR,
|
|
@@ -26,9 +27,12 @@ import { assetsMap } from "../router/index.js";
|
|
|
26
27
|
import { BigIntMath } from "../sdk-legacy/index.js";
|
|
27
28
|
import { AddressMap } from "../utils/index.js";
|
|
28
29
|
import { simulateWithPriceUpdates } from "../utils/viem/index.js";
|
|
30
|
+
const COMPRESSORS = {
|
|
31
|
+
[chains.Mainnet.id]: "0xfB79b6713fe214B8748ED7b0db1f93E4f1aC9d29",
|
|
32
|
+
[chains.Monad.id]: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023"
|
|
33
|
+
};
|
|
29
34
|
function getWithdrawalCompressorAddress(chainId) {
|
|
30
|
-
|
|
31
|
-
return compressor;
|
|
35
|
+
return COMPRESSORS[chainId];
|
|
32
36
|
}
|
|
33
37
|
class AbstractCreditAccountService extends SDKConstruct {
|
|
34
38
|
#compressor;
|
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
export declare const iWithdrawalCompressorV310Abi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_owner";
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "addressProvider_";
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
13
|
+
}, {
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
readonly inputs: readonly [];
|
|
16
|
+
readonly name: "addressProvider";
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly name: "";
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly type: "address";
|
|
21
|
+
}];
|
|
22
|
+
readonly stateMutability: "view";
|
|
23
|
+
}, {
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
readonly inputs: readonly [{
|
|
26
|
+
readonly name: "";
|
|
27
|
+
readonly internalType: "bytes32";
|
|
28
|
+
readonly type: "bytes32";
|
|
29
|
+
}];
|
|
30
|
+
readonly name: "compressorTypeToCompressor";
|
|
31
|
+
readonly outputs: readonly [{
|
|
32
|
+
readonly name: "";
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}];
|
|
36
|
+
readonly stateMutability: "view";
|
|
37
|
+
}, {
|
|
2
38
|
readonly type: "function";
|
|
3
39
|
readonly inputs: readonly [];
|
|
4
40
|
readonly name: "contractType";
|
|
@@ -147,7 +183,7 @@ export declare const iWithdrawalCompressorV310Abi: readonly [{
|
|
|
147
183
|
}];
|
|
148
184
|
readonly name: "getWithdrawalRequestResult";
|
|
149
185
|
readonly outputs: readonly [{
|
|
150
|
-
readonly name: "";
|
|
186
|
+
readonly name: "withdrawal";
|
|
151
187
|
readonly internalType: "struct RequestableWithdrawal";
|
|
152
188
|
readonly type: "tuple";
|
|
153
189
|
readonly components: readonly [{
|
|
@@ -195,6 +231,56 @@ export declare const iWithdrawalCompressorV310Abi: readonly [{
|
|
|
195
231
|
}];
|
|
196
232
|
}];
|
|
197
233
|
readonly stateMutability: "view";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly name: "owner";
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly internalType: "address";
|
|
241
|
+
readonly type: "address";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "view";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly inputs: readonly [];
|
|
247
|
+
readonly name: "renounceOwnership";
|
|
248
|
+
readonly outputs: readonly [];
|
|
249
|
+
readonly stateMutability: "nonpayable";
|
|
250
|
+
}, {
|
|
251
|
+
readonly type: "function";
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly name: "subcompressor";
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
readonly type: "address";
|
|
256
|
+
}];
|
|
257
|
+
readonly name: "setSubcompressor";
|
|
258
|
+
readonly outputs: readonly [];
|
|
259
|
+
readonly stateMutability: "nonpayable";
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "function";
|
|
262
|
+
readonly inputs: readonly [{
|
|
263
|
+
readonly name: "withdrawableType";
|
|
264
|
+
readonly internalType: "bytes32";
|
|
265
|
+
readonly type: "bytes32";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "compressorType";
|
|
268
|
+
readonly internalType: "bytes32";
|
|
269
|
+
readonly type: "bytes32";
|
|
270
|
+
}];
|
|
271
|
+
readonly name: "setWithdrawableTypeToCompressorType";
|
|
272
|
+
readonly outputs: readonly [];
|
|
273
|
+
readonly stateMutability: "nonpayable";
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
readonly inputs: readonly [{
|
|
277
|
+
readonly name: "newOwner";
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
readonly type: "address";
|
|
280
|
+
}];
|
|
281
|
+
readonly name: "transferOwnership";
|
|
282
|
+
readonly outputs: readonly [];
|
|
283
|
+
readonly stateMutability: "nonpayable";
|
|
198
284
|
}, {
|
|
199
285
|
readonly type: "function";
|
|
200
286
|
readonly inputs: readonly [];
|
|
@@ -205,4 +291,33 @@ export declare const iWithdrawalCompressorV310Abi: readonly [{
|
|
|
205
291
|
readonly type: "uint256";
|
|
206
292
|
}];
|
|
207
293
|
readonly stateMutability: "view";
|
|
294
|
+
}, {
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
readonly inputs: readonly [{
|
|
297
|
+
readonly name: "";
|
|
298
|
+
readonly internalType: "bytes32";
|
|
299
|
+
readonly type: "bytes32";
|
|
300
|
+
}];
|
|
301
|
+
readonly name: "withdrawableTypeToCompressorType";
|
|
302
|
+
readonly outputs: readonly [{
|
|
303
|
+
readonly name: "";
|
|
304
|
+
readonly internalType: "bytes32";
|
|
305
|
+
readonly type: "bytes32";
|
|
306
|
+
}];
|
|
307
|
+
readonly stateMutability: "view";
|
|
308
|
+
}, {
|
|
309
|
+
readonly type: "event";
|
|
310
|
+
readonly anonymous: false;
|
|
311
|
+
readonly inputs: readonly [{
|
|
312
|
+
readonly name: "previousOwner";
|
|
313
|
+
readonly internalType: "address";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
readonly indexed: true;
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "newOwner";
|
|
318
|
+
readonly internalType: "address";
|
|
319
|
+
readonly type: "address";
|
|
320
|
+
readonly indexed: true;
|
|
321
|
+
}];
|
|
322
|
+
readonly name: "OwnershipTransferred";
|
|
208
323
|
}];
|
|
@@ -9,7 +9,7 @@ import type { AccountToCheck, AddCollateralProps, ChangeDeptProps, ClaimDelayedP
|
|
|
9
9
|
export interface CreditAccountServiceOptions {
|
|
10
10
|
batchSize?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare function getWithdrawalCompressorAddress(chainId: number):
|
|
12
|
+
export declare function getWithdrawalCompressorAddress(chainId: number): `0x${string}`;
|
|
13
13
|
export declare abstract class AbstractCreditAccountService extends SDKConstruct {
|
|
14
14
|
#private;
|
|
15
15
|
constructor(sdk: GearboxSDK, options?: CreditAccountServiceOptions);
|