@gearbox-protocol/sdk 13.2.0-next.1 → 13.2.0
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/dev/AccountOpener.js +5 -45
- package/dist/cjs/dev/index.js +13 -0
- package/dist/cjs/dev/isTransientError.js +5 -1
- package/dist/cjs/dev/logSplitterTransport.js +154 -0
- package/dist/cjs/plugins/zappers/ZappersPlugin.js +144 -0
- package/dist/cjs/{sdk/market/ZapperRegister.js → plugins/zappers/extraZappers.js} +6 -110
- package/dist/cjs/plugins/zappers/index.js +26 -0
- package/dist/cjs/plugins/zappers/package.json +1 -0
- package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +104 -462
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +5 -16
- package/dist/cjs/sdk/base/ChainContractsRegister.js +1 -1
- package/dist/cjs/sdk/base/TokensMeta.js +32 -255
- package/dist/cjs/sdk/base/index.js +0 -2
- package/dist/cjs/sdk/chain/chains.js +1 -2
- package/dist/cjs/sdk/constants/index.js +2 -0
- package/dist/cjs/sdk/{base/token-types.js → constants/phantom-tokens.js} +3 -9
- package/dist/cjs/sdk/market/MarketRegister.js +2 -2
- package/dist/cjs/sdk/market/MarketSuite.js +0 -6
- package/dist/cjs/sdk/market/index.js +1 -3
- package/dist/cjs/sdk/market/pool/PoolSuite.js +0 -3
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -17
- package/dist/cjs/sdk/market/pool/index.js +0 -4
- package/dist/cjs/sdk/pools/AbstractPoolService.js +137 -0
- package/dist/cjs/{abi/iStateSerializer.js → sdk/pools/PoolServiceV310.js} +8 -14
- package/dist/cjs/sdk/pools/createPoolService.js +35 -0
- package/dist/cjs/sdk/pools/index.js +4 -2
- package/dist/cjs/sdk/utils/AddressMap.js +1 -1
- package/dist/cjs/sdk/utils/viem/sendRawTx.js +0 -16
- package/dist/esm/dev/AccountOpener.js +6 -47
- package/dist/esm/dev/index.js +10 -0
- package/dist/esm/dev/isTransientError.js +5 -1
- package/dist/esm/dev/logSplitterTransport.js +131 -0
- package/dist/esm/plugins/zappers/ZappersPlugin.js +126 -0
- package/dist/esm/{sdk/market/ZapperRegister.js → plugins/zappers/extraZappers.js} +2 -109
- package/dist/esm/plugins/zappers/index.js +3 -0
- package/dist/esm/plugins/zappers/package.json +1 -0
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +104 -462
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +5 -16
- package/dist/esm/sdk/base/ChainContractsRegister.js +1 -1
- package/dist/esm/sdk/base/TokensMeta.js +32 -261
- package/dist/esm/sdk/base/index.js +0 -1
- package/dist/esm/sdk/chain/chains.js +1 -2
- package/dist/esm/sdk/constants/index.js +1 -0
- package/dist/esm/sdk/{base/token-types.js → constants/phantom-tokens.js} +0 -4
- package/dist/esm/sdk/market/MarketRegister.js +2 -2
- package/dist/esm/sdk/market/MarketSuite.js +0 -6
- package/dist/esm/sdk/market/index.js +0 -1
- package/dist/esm/sdk/market/pool/PoolSuite.js +0 -3
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +2 -17
- package/dist/esm/sdk/market/pool/index.js +0 -2
- package/dist/esm/sdk/pools/AbstractPoolService.js +113 -0
- package/dist/esm/sdk/pools/PoolServiceV310.js +6 -0
- package/dist/esm/sdk/pools/createPoolService.js +11 -0
- package/dist/esm/sdk/pools/index.js +2 -1
- package/dist/esm/sdk/utils/AddressMap.js +1 -1
- package/dist/esm/sdk/utils/viem/sendRawTx.js +1 -19
- package/dist/types/dev/index.d.ts +1 -0
- package/dist/types/dev/logSplitterTransport.d.ts +118 -0
- package/dist/types/plugins/zappers/ZappersPlugin.d.ts +18 -0
- package/dist/types/plugins/zappers/extraZappers.d.ts +6 -0
- package/dist/types/plugins/zappers/index.d.ts +3 -0
- package/dist/types/plugins/zappers/types.d.ts +12 -0
- package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +27 -123
- package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
- package/dist/types/sdk/accounts/types.d.ts +8 -108
- package/dist/types/sdk/base/TokensMeta.d.ts +18 -34
- package/dist/types/sdk/base/index.d.ts +0 -1
- package/dist/types/sdk/base/types.d.ts +1 -0
- package/dist/types/sdk/chain/chains.d.ts +1 -1
- package/dist/types/sdk/constants/index.d.ts +1 -0
- package/dist/types/sdk/constants/phantom-tokens.d.ts +2 -0
- package/dist/types/sdk/market/MarketRegister.d.ts +2 -2
- package/dist/types/sdk/market/MarketSuite.d.ts +0 -3
- package/dist/types/sdk/market/credit/CreditFacadeV310BaseContract.d.ts +1 -1
- package/dist/types/sdk/market/index.d.ts +0 -1
- package/dist/types/sdk/market/pool/PoolSuite.d.ts +0 -2
- package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +2 -6
- package/dist/types/sdk/market/pool/index.d.ts +0 -2
- package/dist/types/sdk/pools/AbstractPoolService.d.ts +9 -0
- package/dist/types/sdk/pools/PoolServiceV310.d.ts +4 -0
- package/dist/types/sdk/pools/createPoolService.d.ts +3 -0
- package/dist/types/sdk/pools/index.d.ts +2 -1
- package/dist/types/sdk/pools/types.d.ts +63 -84
- package/dist/types/sdk/utils/AddressMap.d.ts +1 -1
- package/dist/types/sdk/utils/viem/sendRawTx.d.ts +1 -5
- package/package.json +5 -3
- package/dist/cjs/abi/310/iSecuritizeDegenNFT.js +0 -263
- package/dist/cjs/abi/310/iSecuritizeKYCFactory.js +0 -278
- package/dist/cjs/sdk/market/pool/SecuritizeKYCFactory.js +0 -97
- package/dist/cjs/sdk/pools/PoolService.js +0 -391
- package/dist/esm/abi/310/iSecuritizeDegenNFT.js +0 -239
- package/dist/esm/abi/310/iSecuritizeKYCFactory.js +0 -254
- package/dist/esm/abi/iStateSerializer.js +0 -12
- package/dist/esm/sdk/market/pool/SecuritizeKYCFactory.js +0 -73
- package/dist/esm/sdk/pools/PoolService.js +0 -371
- package/dist/types/abi/310/iSecuritizeDegenNFT.d.ts +0 -324
- package/dist/types/abi/310/iSecuritizeKYCFactory.d.ts +0 -322
- package/dist/types/abi/iStateSerializer.d.ts +0 -11
- package/dist/types/sdk/base/token-types.d.ts +0 -33
- package/dist/types/sdk/market/ZapperRegister.d.ts +0 -17
- package/dist/types/sdk/market/pool/SecuritizeKYCFactory.d.ts +0 -345
- package/dist/types/sdk/market/types.d.ts +0 -10
- package/dist/types/sdk/pools/PoolService.d.ts +0 -14
- /package/dist/cjs/{sdk/market → plugins/zappers}/types.js +0 -0
- /package/dist/esm/{sdk/market → plugins/zappers}/types.js +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
2
|
-
import { SDKConstruct } from "../base/index.js";
|
|
3
|
-
import { AddressMap } from "../utils/index.js";
|
|
4
|
-
import type { ZapperData } from "./types.js";
|
|
5
|
-
export declare class ZapperRegister extends SDKConstruct {
|
|
6
|
-
#private;
|
|
7
|
-
/**
|
|
8
|
-
* Load zappers for all pools using periphery compressor, adds hardcoded zappers
|
|
9
|
-
*/
|
|
10
|
-
loadZappers(force?: boolean): Promise<void>;
|
|
11
|
-
get zappers(): AddressMap<ZapperData[]>;
|
|
12
|
-
poolZappers(pool: Address): ZapperData[];
|
|
13
|
-
/**
|
|
14
|
-
* Can return multiple zappers if there are multiple zappers for the same tokenIn and tokenOut
|
|
15
|
-
*/
|
|
16
|
-
getZapper(pool: Address, tokenIn: Address, tokenOut: Address): Array<ZapperData> | undefined;
|
|
17
|
-
}
|
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
2
|
-
import type { ConstructOptions } from "../../base/index.js";
|
|
3
|
-
import { BaseContract } from "../../base/index.js";
|
|
4
|
-
import type { MultiCall, RawTx } from "../../types/index.js";
|
|
5
|
-
declare const abi: readonly [{
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly name: "contractType";
|
|
8
|
-
readonly inputs: readonly [];
|
|
9
|
-
readonly outputs: readonly [{
|
|
10
|
-
readonly name: "";
|
|
11
|
-
readonly type: "bytes32";
|
|
12
|
-
readonly internalType: "bytes32";
|
|
13
|
-
}];
|
|
14
|
-
readonly stateMutability: "view";
|
|
15
|
-
}, {
|
|
16
|
-
readonly type: "function";
|
|
17
|
-
readonly name: "getCreditAccounts";
|
|
18
|
-
readonly inputs: readonly [{
|
|
19
|
-
readonly name: "investor";
|
|
20
|
-
readonly type: "address";
|
|
21
|
-
readonly internalType: "address";
|
|
22
|
-
}];
|
|
23
|
-
readonly outputs: readonly [{
|
|
24
|
-
readonly name: "";
|
|
25
|
-
readonly type: "address[]";
|
|
26
|
-
readonly internalType: "address[]";
|
|
27
|
-
}];
|
|
28
|
-
readonly stateMutability: "view";
|
|
29
|
-
}, {
|
|
30
|
-
readonly type: "function";
|
|
31
|
-
readonly name: "getDegenNFT";
|
|
32
|
-
readonly inputs: readonly [];
|
|
33
|
-
readonly outputs: readonly [{
|
|
34
|
-
readonly name: "";
|
|
35
|
-
readonly type: "address";
|
|
36
|
-
readonly internalType: "address";
|
|
37
|
-
}];
|
|
38
|
-
readonly stateMutability: "view";
|
|
39
|
-
}, {
|
|
40
|
-
readonly type: "function";
|
|
41
|
-
readonly name: "getInvestor";
|
|
42
|
-
readonly inputs: readonly [{
|
|
43
|
-
readonly name: "creditAccount";
|
|
44
|
-
readonly type: "address";
|
|
45
|
-
readonly internalType: "address";
|
|
46
|
-
}];
|
|
47
|
-
readonly outputs: readonly [{
|
|
48
|
-
readonly name: "";
|
|
49
|
-
readonly type: "address";
|
|
50
|
-
readonly internalType: "address";
|
|
51
|
-
}];
|
|
52
|
-
readonly stateMutability: "view";
|
|
53
|
-
}, {
|
|
54
|
-
readonly type: "function";
|
|
55
|
-
readonly name: "getWallet";
|
|
56
|
-
readonly inputs: readonly [{
|
|
57
|
-
readonly name: "creditAccount";
|
|
58
|
-
readonly type: "address";
|
|
59
|
-
readonly internalType: "address";
|
|
60
|
-
}];
|
|
61
|
-
readonly outputs: readonly [{
|
|
62
|
-
readonly name: "";
|
|
63
|
-
readonly type: "address";
|
|
64
|
-
readonly internalType: "address";
|
|
65
|
-
}];
|
|
66
|
-
readonly stateMutability: "view";
|
|
67
|
-
}, {
|
|
68
|
-
readonly type: "function";
|
|
69
|
-
readonly name: "isCreditAccount";
|
|
70
|
-
readonly inputs: readonly [{
|
|
71
|
-
readonly name: "creditAccount";
|
|
72
|
-
readonly type: "address";
|
|
73
|
-
readonly internalType: "address";
|
|
74
|
-
}];
|
|
75
|
-
readonly outputs: readonly [{
|
|
76
|
-
readonly name: "";
|
|
77
|
-
readonly type: "bool";
|
|
78
|
-
readonly internalType: "bool";
|
|
79
|
-
}];
|
|
80
|
-
readonly stateMutability: "view";
|
|
81
|
-
}, {
|
|
82
|
-
readonly type: "function";
|
|
83
|
-
readonly name: "isFrozen";
|
|
84
|
-
readonly inputs: readonly [{
|
|
85
|
-
readonly name: "creditAccount";
|
|
86
|
-
readonly type: "address";
|
|
87
|
-
readonly internalType: "address";
|
|
88
|
-
}];
|
|
89
|
-
readonly outputs: readonly [{
|
|
90
|
-
readonly name: "";
|
|
91
|
-
readonly type: "bool";
|
|
92
|
-
readonly internalType: "bool";
|
|
93
|
-
}];
|
|
94
|
-
readonly stateMutability: "view";
|
|
95
|
-
}, {
|
|
96
|
-
readonly type: "function";
|
|
97
|
-
readonly name: "multicall";
|
|
98
|
-
readonly inputs: readonly [{
|
|
99
|
-
readonly name: "creditAccount";
|
|
100
|
-
readonly type: "address";
|
|
101
|
-
readonly internalType: "address";
|
|
102
|
-
}, {
|
|
103
|
-
readonly name: "calls";
|
|
104
|
-
readonly type: "tuple[]";
|
|
105
|
-
readonly internalType: "struct MultiCall[]";
|
|
106
|
-
readonly components: readonly [{
|
|
107
|
-
readonly name: "target";
|
|
108
|
-
readonly type: "address";
|
|
109
|
-
readonly internalType: "address";
|
|
110
|
-
}, {
|
|
111
|
-
readonly name: "callData";
|
|
112
|
-
readonly type: "bytes";
|
|
113
|
-
readonly internalType: "bytes";
|
|
114
|
-
}];
|
|
115
|
-
}, {
|
|
116
|
-
readonly name: "tokensToRegister";
|
|
117
|
-
readonly type: "address[]";
|
|
118
|
-
readonly internalType: "address[]";
|
|
119
|
-
}];
|
|
120
|
-
readonly outputs: readonly [];
|
|
121
|
-
readonly stateMutability: "nonpayable";
|
|
122
|
-
}, {
|
|
123
|
-
readonly type: "function";
|
|
124
|
-
readonly name: "openCreditAccount";
|
|
125
|
-
readonly inputs: readonly [{
|
|
126
|
-
readonly name: "creditManager";
|
|
127
|
-
readonly type: "address";
|
|
128
|
-
readonly internalType: "address";
|
|
129
|
-
}, {
|
|
130
|
-
readonly name: "calls";
|
|
131
|
-
readonly type: "tuple[]";
|
|
132
|
-
readonly internalType: "struct MultiCall[]";
|
|
133
|
-
readonly components: readonly [{
|
|
134
|
-
readonly name: "target";
|
|
135
|
-
readonly type: "address";
|
|
136
|
-
readonly internalType: "address";
|
|
137
|
-
}, {
|
|
138
|
-
readonly name: "callData";
|
|
139
|
-
readonly type: "bytes";
|
|
140
|
-
readonly internalType: "bytes";
|
|
141
|
-
}];
|
|
142
|
-
}, {
|
|
143
|
-
readonly name: "tokensToRegister";
|
|
144
|
-
readonly type: "address[]";
|
|
145
|
-
readonly internalType: "address[]";
|
|
146
|
-
}];
|
|
147
|
-
readonly outputs: readonly [{
|
|
148
|
-
readonly name: "creditAccount";
|
|
149
|
-
readonly type: "address";
|
|
150
|
-
readonly internalType: "address";
|
|
151
|
-
}, {
|
|
152
|
-
readonly name: "wallet";
|
|
153
|
-
readonly type: "address";
|
|
154
|
-
readonly internalType: "address";
|
|
155
|
-
}];
|
|
156
|
-
readonly stateMutability: "nonpayable";
|
|
157
|
-
}, {
|
|
158
|
-
readonly type: "function";
|
|
159
|
-
readonly name: "precomputeWalletAddress";
|
|
160
|
-
readonly inputs: readonly [{
|
|
161
|
-
readonly name: "creditManager";
|
|
162
|
-
readonly type: "address";
|
|
163
|
-
readonly internalType: "address";
|
|
164
|
-
}, {
|
|
165
|
-
readonly name: "investor";
|
|
166
|
-
readonly type: "address";
|
|
167
|
-
readonly internalType: "address";
|
|
168
|
-
}];
|
|
169
|
-
readonly outputs: readonly [{
|
|
170
|
-
readonly name: "";
|
|
171
|
-
readonly type: "address";
|
|
172
|
-
readonly internalType: "address";
|
|
173
|
-
}];
|
|
174
|
-
readonly stateMutability: "view";
|
|
175
|
-
}, {
|
|
176
|
-
readonly type: "function";
|
|
177
|
-
readonly name: "serialize";
|
|
178
|
-
readonly inputs: readonly [];
|
|
179
|
-
readonly outputs: readonly [{
|
|
180
|
-
readonly name: "serializedData";
|
|
181
|
-
readonly type: "bytes";
|
|
182
|
-
readonly internalType: "bytes";
|
|
183
|
-
}];
|
|
184
|
-
readonly stateMutability: "view";
|
|
185
|
-
}, {
|
|
186
|
-
readonly type: "function";
|
|
187
|
-
readonly name: "setFrozenStatus";
|
|
188
|
-
readonly inputs: readonly [{
|
|
189
|
-
readonly name: "creditAccount";
|
|
190
|
-
readonly type: "address";
|
|
191
|
-
readonly internalType: "address";
|
|
192
|
-
}, {
|
|
193
|
-
readonly name: "frozen";
|
|
194
|
-
readonly type: "bool";
|
|
195
|
-
readonly internalType: "bool";
|
|
196
|
-
}];
|
|
197
|
-
readonly outputs: readonly [];
|
|
198
|
-
readonly stateMutability: "nonpayable";
|
|
199
|
-
}, {
|
|
200
|
-
readonly type: "function";
|
|
201
|
-
readonly name: "setInvestor";
|
|
202
|
-
readonly inputs: readonly [{
|
|
203
|
-
readonly name: "creditAccount";
|
|
204
|
-
readonly type: "address";
|
|
205
|
-
readonly internalType: "address";
|
|
206
|
-
}, {
|
|
207
|
-
readonly name: "investor";
|
|
208
|
-
readonly type: "address";
|
|
209
|
-
readonly internalType: "address";
|
|
210
|
-
}];
|
|
211
|
-
readonly outputs: readonly [];
|
|
212
|
-
readonly stateMutability: "nonpayable";
|
|
213
|
-
}, {
|
|
214
|
-
readonly type: "function";
|
|
215
|
-
readonly name: "version";
|
|
216
|
-
readonly inputs: readonly [];
|
|
217
|
-
readonly outputs: readonly [{
|
|
218
|
-
readonly name: "";
|
|
219
|
-
readonly type: "uint256";
|
|
220
|
-
readonly internalType: "uint256";
|
|
221
|
-
}];
|
|
222
|
-
readonly stateMutability: "view";
|
|
223
|
-
}, {
|
|
224
|
-
readonly type: "event";
|
|
225
|
-
readonly name: "CreateWallet";
|
|
226
|
-
readonly inputs: readonly [{
|
|
227
|
-
readonly name: "creditAccount";
|
|
228
|
-
readonly type: "address";
|
|
229
|
-
readonly indexed: true;
|
|
230
|
-
readonly internalType: "address";
|
|
231
|
-
}, {
|
|
232
|
-
readonly name: "wallet";
|
|
233
|
-
readonly type: "address";
|
|
234
|
-
readonly indexed: true;
|
|
235
|
-
readonly internalType: "address";
|
|
236
|
-
}, {
|
|
237
|
-
readonly name: "investor";
|
|
238
|
-
readonly type: "address";
|
|
239
|
-
readonly indexed: true;
|
|
240
|
-
readonly internalType: "address";
|
|
241
|
-
}];
|
|
242
|
-
readonly anonymous: false;
|
|
243
|
-
}, {
|
|
244
|
-
readonly type: "event";
|
|
245
|
-
readonly name: "SetFrozenStatus";
|
|
246
|
-
readonly inputs: readonly [{
|
|
247
|
-
readonly name: "creditAccount";
|
|
248
|
-
readonly type: "address";
|
|
249
|
-
readonly indexed: true;
|
|
250
|
-
readonly internalType: "address";
|
|
251
|
-
}, {
|
|
252
|
-
readonly name: "frozen";
|
|
253
|
-
readonly type: "bool";
|
|
254
|
-
readonly indexed: false;
|
|
255
|
-
readonly internalType: "bool";
|
|
256
|
-
}];
|
|
257
|
-
readonly anonymous: false;
|
|
258
|
-
}, {
|
|
259
|
-
readonly type: "event";
|
|
260
|
-
readonly name: "SetInvestor";
|
|
261
|
-
readonly inputs: readonly [{
|
|
262
|
-
readonly name: "creditAccount";
|
|
263
|
-
readonly type: "address";
|
|
264
|
-
readonly indexed: true;
|
|
265
|
-
readonly internalType: "address";
|
|
266
|
-
}, {
|
|
267
|
-
readonly name: "oldInvestor";
|
|
268
|
-
readonly type: "address";
|
|
269
|
-
readonly indexed: true;
|
|
270
|
-
readonly internalType: "address";
|
|
271
|
-
}, {
|
|
272
|
-
readonly name: "newInvestor";
|
|
273
|
-
readonly type: "address";
|
|
274
|
-
readonly indexed: true;
|
|
275
|
-
readonly internalType: "address";
|
|
276
|
-
}];
|
|
277
|
-
readonly anonymous: false;
|
|
278
|
-
}, {
|
|
279
|
-
readonly type: "error";
|
|
280
|
-
readonly name: "CallerIsNotInvestorException";
|
|
281
|
-
readonly inputs: readonly [{
|
|
282
|
-
readonly name: "caller";
|
|
283
|
-
readonly type: "address";
|
|
284
|
-
readonly internalType: "address";
|
|
285
|
-
}, {
|
|
286
|
-
readonly name: "creditAccount";
|
|
287
|
-
readonly type: "address";
|
|
288
|
-
readonly internalType: "address";
|
|
289
|
-
}];
|
|
290
|
-
}, {
|
|
291
|
-
readonly type: "error";
|
|
292
|
-
readonly name: "FrozenCreditAccountException";
|
|
293
|
-
readonly inputs: readonly [{
|
|
294
|
-
readonly name: "creditAccount";
|
|
295
|
-
readonly type: "address";
|
|
296
|
-
readonly internalType: "address";
|
|
297
|
-
}];
|
|
298
|
-
}, {
|
|
299
|
-
readonly type: "error";
|
|
300
|
-
readonly name: "InvalidCreditManagerException";
|
|
301
|
-
readonly inputs: readonly [{
|
|
302
|
-
readonly name: "creditManager";
|
|
303
|
-
readonly type: "address";
|
|
304
|
-
readonly internalType: "address";
|
|
305
|
-
}];
|
|
306
|
-
}, {
|
|
307
|
-
readonly type: "error";
|
|
308
|
-
readonly name: "InvalidUnderlyingTokenException";
|
|
309
|
-
readonly inputs: readonly [{
|
|
310
|
-
readonly name: "underlying";
|
|
311
|
-
readonly type: "address";
|
|
312
|
-
readonly internalType: "address";
|
|
313
|
-
}];
|
|
314
|
-
}, {
|
|
315
|
-
readonly type: "error";
|
|
316
|
-
readonly name: "UnknownCreditAccountException";
|
|
317
|
-
readonly inputs: readonly [{
|
|
318
|
-
readonly name: "creditAccount";
|
|
319
|
-
readonly type: "address";
|
|
320
|
-
readonly internalType: "address";
|
|
321
|
-
}];
|
|
322
|
-
}, {
|
|
323
|
-
readonly type: "error";
|
|
324
|
-
readonly name: "ZeroAddressException";
|
|
325
|
-
readonly inputs: readonly [];
|
|
326
|
-
}];
|
|
327
|
-
type abi = typeof abi;
|
|
328
|
-
export declare class SecuritizeKYCFactory extends BaseContract<abi> {
|
|
329
|
-
#private;
|
|
330
|
-
private investorCache;
|
|
331
|
-
constructor(options: ConstructOptions, address: Address);
|
|
332
|
-
precomputeWalletAddress(creditManager: Address, investor: Address): Promise<Address>;
|
|
333
|
-
getWallet(creditAccount: Address): Promise<Address>;
|
|
334
|
-
/**
|
|
335
|
-
* Returns the investor address for a credit account.
|
|
336
|
-
* @param creditAccount - Credit account address
|
|
337
|
-
* @param fromCache - If true, use and update an in-memory cache (creditAccount -> investor). On cache miss, loads from contract and stores the result for future calls.
|
|
338
|
-
*/
|
|
339
|
-
getInvestor(creditAccount: Address, fromCache?: boolean): Promise<Address>;
|
|
340
|
-
getDSTokens(): Promise<Address[]>;
|
|
341
|
-
multicall(creditAccount: Address, calls: MultiCall[], tokensToRegister: Address[]): RawTx;
|
|
342
|
-
openCreditAccount(creditManager: Address, calls: MultiCall[], tokensToRegister: Address[]): RawTx;
|
|
343
|
-
getDegenNFT(): Promise<Address>;
|
|
344
|
-
}
|
|
345
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
|
|
2
|
-
import type { Address } from "viem";
|
|
3
|
-
import type { peripheryCompressorAbi } from "../../abi/compressors/peripheryCompressor.js";
|
|
4
|
-
import type { Unarray } from "../base/index.js";
|
|
5
|
-
type CompressorZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof peripheryCompressorAbi, "getZappers">["outputs"]>>;
|
|
6
|
-
export interface ZapperData extends CompressorZapperData {
|
|
7
|
-
pool: Address;
|
|
8
|
-
type: "migration" | "kyc" | "base";
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
2
|
-
import { SDKConstruct } from "../base/index.js";
|
|
3
|
-
import type { AddLiquidityProps, DepositMetadata, IPoolsService, PoolServiceCall, RemoveLiquidityProps, WithdrawalMetadata } from "./types.js";
|
|
4
|
-
export declare class PoolService extends SDKConstruct implements IPoolsService {
|
|
5
|
-
#private;
|
|
6
|
-
getDepositTokensIn(pool: Address): Address[];
|
|
7
|
-
getDepositTokensOut(pool: Address, tokenIn: Address): Address[];
|
|
8
|
-
getDepositMetadata(pool: Address, tokenIn: Address, tokenOut?: Address): DepositMetadata;
|
|
9
|
-
addLiquidity(props: AddLiquidityProps): PoolServiceCall | undefined;
|
|
10
|
-
getWithdrawalTokensIn(pool: Address): Address[];
|
|
11
|
-
getWithdrawalTokensOut(pool: Address, tokenIn: Address): Address[];
|
|
12
|
-
removeLiquidity(props: RemoveLiquidityProps): PoolServiceCall;
|
|
13
|
-
getWithdrawalMetadata(pool: Address, tokenIn: Address, tokenOut?: Address): WithdrawalMetadata;
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|