@gearbox-protocol/sdk 13.5.0 → 13.6.0-kyc.2
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/kyc/iKYCCompressor.js +196 -0
- package/dist/cjs/abi/kyc/iKYCFactory.js +122 -0
- package/dist/cjs/abi/kyc/iKYCUnderlying.js +401 -0
- package/dist/cjs/abi/kyc/iSecuritizeDegenNFT.js +326 -0
- package/dist/cjs/abi/kyc/iSecuritizeKYCFactory.js +319 -0
- package/dist/cjs/dev/AccountOpener.js +45 -5
- package/dist/cjs/sdk/GearboxSDK.js +51 -4
- package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +331 -16
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +7 -1
- package/dist/cjs/sdk/base/TokensMeta.js +32 -43
- package/dist/cjs/sdk/base/token-types.js +9 -0
- package/dist/cjs/sdk/chain/chains.js +2 -1
- package/dist/cjs/sdk/constants/address-provider.js +3 -0
- package/dist/cjs/sdk/market/MarketRegister.js +70 -116
- package/dist/cjs/sdk/market/MarketSuite.js +3 -0
- package/dist/cjs/sdk/market/kyc/KYCRegister.js +255 -0
- package/dist/cjs/sdk/market/kyc/index.js +24 -0
- package/dist/cjs/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +229 -0
- package/dist/cjs/sdk/market/kyc/securitize/constants.js +28 -0
- package/dist/cjs/sdk/market/kyc/securitize/index.js +26 -0
- package/dist/cjs/sdk/market/kyc/securitize/types.js +16 -0
- package/dist/cjs/sdk/market/kyc/types.js +29 -0
- package/dist/cjs/sdk/market/pool/PoolSuite.js +3 -0
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +11 -2
- package/dist/cjs/sdk/market/pool/index.js +2 -0
- package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/cjs/sdk/options.js +6 -0
- package/dist/cjs/sdk/pools/PoolService.js +104 -12
- package/dist/cjs/sdk/utils/viem/executeDelegatedMulticalls.js +38 -0
- package/dist/cjs/sdk/utils/viem/index.js +2 -0
- package/dist/esm/abi/kyc/iKYCCompressor.js +172 -0
- package/dist/esm/abi/kyc/iKYCFactory.js +98 -0
- package/dist/esm/abi/kyc/iKYCUnderlying.js +377 -0
- package/dist/esm/abi/kyc/iSecuritizeDegenNFT.js +302 -0
- package/dist/esm/abi/kyc/iSecuritizeKYCFactory.js +295 -0
- package/dist/esm/dev/AccountOpener.js +47 -6
- package/dist/esm/sdk/GearboxSDK.js +55 -5
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +332 -17
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +7 -1
- package/dist/esm/sdk/base/TokensMeta.js +32 -45
- package/dist/esm/sdk/base/token-types.js +6 -0
- package/dist/esm/sdk/chain/chains.js +2 -1
- package/dist/esm/sdk/constants/address-provider.js +2 -0
- package/dist/esm/sdk/market/MarketRegister.js +74 -118
- package/dist/esm/sdk/market/MarketSuite.js +3 -0
- package/dist/esm/sdk/market/kyc/KYCRegister.js +239 -0
- package/dist/esm/sdk/market/kyc/index.js +2 -0
- package/dist/esm/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +205 -0
- package/dist/esm/sdk/market/kyc/securitize/constants.js +4 -0
- package/dist/esm/sdk/market/kyc/securitize/index.js +3 -0
- package/dist/esm/sdk/market/kyc/securitize/types.js +0 -0
- package/dist/esm/sdk/market/kyc/types.js +5 -0
- package/dist/esm/sdk/market/pool/PoolSuite.js +3 -0
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +11 -2
- package/dist/esm/sdk/market/pool/index.js +1 -0
- package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/esm/sdk/options.js +6 -0
- package/dist/esm/sdk/pools/PoolService.js +109 -13
- package/dist/esm/sdk/utils/viem/executeDelegatedMulticalls.js +14 -0
- package/dist/esm/sdk/utils/viem/index.js +1 -0
- package/dist/types/abi/kyc/iKYCCompressor.d.ts +228 -0
- package/dist/types/abi/kyc/iKYCFactory.d.ts +139 -0
- package/dist/types/abi/kyc/iKYCUnderlying.d.ts +548 -0
- package/dist/types/abi/kyc/iSecuritizeDegenNFT.d.ts +404 -0
- package/dist/types/abi/kyc/iSecuritizeKYCFactory.d.ts +376 -0
- package/dist/types/sdk/GearboxSDK.d.ts +7 -0
- package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +55 -2
- package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
- package/dist/types/sdk/accounts/types.d.ts +93 -13
- package/dist/types/sdk/base/TokensMeta.d.ts +14 -3
- package/dist/types/sdk/base/token-types.d.ts +44 -4
- package/dist/types/sdk/base/types.d.ts +116 -2
- package/dist/types/sdk/chain/chains.d.ts +5 -1
- package/dist/types/sdk/constants/address-provider.d.ts +1 -0
- package/dist/types/sdk/market/MarketRegister.d.ts +6 -9
- package/dist/types/sdk/market/MarketSuite.d.ts +2 -0
- package/dist/types/sdk/market/kyc/KYCRegister.d.ts +31 -0
- package/dist/types/sdk/market/kyc/index.d.ts +2 -0
- package/dist/types/sdk/market/kyc/securitize/SecuritizeKYCFactory.d.ts +420 -0
- package/dist/types/sdk/market/kyc/securitize/constants.d.ts +1 -0
- package/dist/types/sdk/market/kyc/securitize/index.d.ts +3 -0
- package/dist/types/sdk/market/kyc/securitize/types.d.ts +62 -0
- package/dist/types/sdk/market/kyc/types.d.ts +93 -0
- package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +3 -2
- package/dist/types/sdk/market/oracle/types.d.ts +3 -10
- package/dist/types/sdk/market/pool/PoolSuite.d.ts +2 -0
- package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +6 -2
- package/dist/types/sdk/market/pool/index.d.ts +1 -0
- package/dist/types/sdk/market/pricefeeds/PriceFeedsRegister.d.ts +1 -1
- package/dist/types/sdk/market/types.d.ts +1 -1
- package/dist/types/sdk/options.d.ts +1 -0
- package/dist/types/sdk/pools/PoolService.d.ts +8 -8
- package/dist/types/sdk/pools/types.d.ts +1 -1
- package/dist/types/sdk/types/state-human.d.ts +2 -0
- package/dist/types/sdk/types/state.d.ts +5 -0
- package/dist/types/sdk/utils/viem/executeDelegatedMulticalls.d.ts +11 -0
- package/dist/types/sdk/utils/viem/index.d.ts +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var iKYCCompressor_exports = {};
|
|
20
|
+
__export(iKYCCompressor_exports, {
|
|
21
|
+
iKYCCompressorAbi: () => iKYCCompressorAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(iKYCCompressor_exports);
|
|
24
|
+
const iKYCCompressorAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "getKYCInvestorData",
|
|
35
|
+
inputs: [
|
|
36
|
+
{ name: "investor", type: "address", internalType: "address" },
|
|
37
|
+
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
38
|
+
],
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
name: "",
|
|
42
|
+
type: "tuple[]",
|
|
43
|
+
internalType: "struct IKYCCompressor.KYCInvestorData[]",
|
|
44
|
+
components: [
|
|
45
|
+
{
|
|
46
|
+
name: "creditAccounts",
|
|
47
|
+
type: "tuple[]",
|
|
48
|
+
internalType: "struct IKYCCompressor.KYCCreditAccountData[]",
|
|
49
|
+
components: [
|
|
50
|
+
{
|
|
51
|
+
name: "creditAccount",
|
|
52
|
+
type: "address",
|
|
53
|
+
internalType: "address"
|
|
54
|
+
},
|
|
55
|
+
{ name: "wallet", type: "address", internalType: "address" },
|
|
56
|
+
{ name: "frozen", type: "bool", internalType: "bool" },
|
|
57
|
+
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
stateMutability: "view"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: "function",
|
|
68
|
+
name: "getKYCMarketsData",
|
|
69
|
+
inputs: [
|
|
70
|
+
{ name: "configurators", type: "address[]", internalType: "address[]" },
|
|
71
|
+
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
72
|
+
],
|
|
73
|
+
outputs: [
|
|
74
|
+
{
|
|
75
|
+
name: "",
|
|
76
|
+
type: "tuple[]",
|
|
77
|
+
internalType: "struct IKYCCompressor.KYCUnderlyingData[]",
|
|
78
|
+
components: [
|
|
79
|
+
{
|
|
80
|
+
name: "baseParams",
|
|
81
|
+
type: "tuple",
|
|
82
|
+
internalType: "struct BaseParams",
|
|
83
|
+
components: [
|
|
84
|
+
{ name: "addr", type: "address", internalType: "address" },
|
|
85
|
+
{ name: "version", type: "uint256", internalType: "uint256" },
|
|
86
|
+
{
|
|
87
|
+
name: "contractType",
|
|
88
|
+
type: "bytes32",
|
|
89
|
+
internalType: "bytes32"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "serializedParams",
|
|
93
|
+
type: "bytes",
|
|
94
|
+
internalType: "bytes"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{ name: "asset", type: "address", internalType: "address" },
|
|
99
|
+
{ name: "factory", type: "address", internalType: "address" },
|
|
100
|
+
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "",
|
|
105
|
+
type: "tuple[]",
|
|
106
|
+
internalType: "struct IKYCCompressor.KYCFactoryData[]",
|
|
107
|
+
components: [
|
|
108
|
+
{
|
|
109
|
+
name: "baseParams",
|
|
110
|
+
type: "tuple",
|
|
111
|
+
internalType: "struct BaseParams",
|
|
112
|
+
components: [
|
|
113
|
+
{ name: "addr", type: "address", internalType: "address" },
|
|
114
|
+
{ name: "version", type: "uint256", internalType: "uint256" },
|
|
115
|
+
{
|
|
116
|
+
name: "contractType",
|
|
117
|
+
type: "bytes32",
|
|
118
|
+
internalType: "bytes32"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "serializedParams",
|
|
122
|
+
type: "bytes",
|
|
123
|
+
internalType: "bytes"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "tokens",
|
|
129
|
+
type: "tuple[]",
|
|
130
|
+
internalType: "struct TokenData[]",
|
|
131
|
+
components: [
|
|
132
|
+
{ name: "addr", type: "address", internalType: "address" },
|
|
133
|
+
{ name: "symbol", type: "string", internalType: "string" },
|
|
134
|
+
{ name: "name", type: "string", internalType: "string" },
|
|
135
|
+
{ name: "decimals", type: "uint8", internalType: "uint8" }
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
stateMutability: "view"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: "function",
|
|
146
|
+
name: "setSubcompressor",
|
|
147
|
+
inputs: [
|
|
148
|
+
{ name: "subcompressor", type: "address", internalType: "address" }
|
|
149
|
+
],
|
|
150
|
+
outputs: [],
|
|
151
|
+
stateMutability: "nonpayable"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: "function",
|
|
155
|
+
name: "subcompressors",
|
|
156
|
+
inputs: [
|
|
157
|
+
{ name: "domain", type: "bytes32", internalType: "bytes32" },
|
|
158
|
+
{ name: "postfix", type: "bytes32", internalType: "bytes32" }
|
|
159
|
+
],
|
|
160
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
161
|
+
stateMutability: "view"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: "function",
|
|
165
|
+
name: "version",
|
|
166
|
+
inputs: [],
|
|
167
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
168
|
+
stateMutability: "view"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
type: "error",
|
|
172
|
+
name: "CallerIsNotInstanceOwnerException",
|
|
173
|
+
inputs: [{ name: "caller", type: "address", internalType: "address" }]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
type: "error",
|
|
177
|
+
name: "InvalidDomainException",
|
|
178
|
+
inputs: [{ name: "domain", type: "bytes32", internalType: "bytes32" }]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
type: "error",
|
|
182
|
+
name: "InvalidKYCFactoryException",
|
|
183
|
+
inputs: [{ name: "factory", type: "address", internalType: "address" }]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
type: "error",
|
|
187
|
+
name: "InvalidMarketConfiguratorException",
|
|
188
|
+
inputs: [
|
|
189
|
+
{ name: "marketConfigurator", type: "address", internalType: "address" }
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
];
|
|
193
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
194
|
+
0 && (module.exports = {
|
|
195
|
+
iKYCCompressorAbi
|
|
196
|
+
});
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var iKYCFactory_exports = {};
|
|
20
|
+
__export(iKYCFactory_exports, {
|
|
21
|
+
iKYCFactoryAbi: () => iKYCFactoryAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(iKYCFactory_exports);
|
|
24
|
+
const iKYCFactoryAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "getCreditAccounts",
|
|
35
|
+
inputs: [{ name: "investor", type: "address", internalType: "address" }],
|
|
36
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
37
|
+
stateMutability: "view"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "function",
|
|
41
|
+
name: "getInvestor",
|
|
42
|
+
inputs: [
|
|
43
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
44
|
+
],
|
|
45
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
46
|
+
stateMutability: "view"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "function",
|
|
50
|
+
name: "getTokens",
|
|
51
|
+
inputs: [],
|
|
52
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
53
|
+
stateMutability: "view"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: "function",
|
|
57
|
+
name: "getWallet",
|
|
58
|
+
inputs: [
|
|
59
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
60
|
+
],
|
|
61
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
62
|
+
stateMutability: "view"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: "function",
|
|
66
|
+
name: "isCreditAccount",
|
|
67
|
+
inputs: [
|
|
68
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
69
|
+
],
|
|
70
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
71
|
+
stateMutability: "view"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: "function",
|
|
75
|
+
name: "isFrozen",
|
|
76
|
+
inputs: [
|
|
77
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
78
|
+
],
|
|
79
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
80
|
+
stateMutability: "view"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: "function",
|
|
84
|
+
name: "serialize",
|
|
85
|
+
inputs: [],
|
|
86
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
87
|
+
stateMutability: "view"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "function",
|
|
91
|
+
name: "version",
|
|
92
|
+
inputs: [],
|
|
93
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
94
|
+
stateMutability: "view"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: "error",
|
|
98
|
+
name: "CallerIsNotInvestorException",
|
|
99
|
+
inputs: [
|
|
100
|
+
{ name: "caller", type: "address", internalType: "address" },
|
|
101
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "error",
|
|
106
|
+
name: "FrozenCreditAccountException",
|
|
107
|
+
inputs: [
|
|
108
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "error",
|
|
113
|
+
name: "UnknownCreditAccountException",
|
|
114
|
+
inputs: [
|
|
115
|
+
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
120
|
+
0 && (module.exports = {
|
|
121
|
+
iKYCFactoryAbi
|
|
122
|
+
});
|