@gearbox-protocol/sdk 13.6.0-kyc.7 → 13.6.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/dev/AccountOpener.js +5 -45
- package/dist/cjs/dev/logSplitterTransport.js +10 -1
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +1 -1
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +1 -1
- package/dist/cjs/plugins/adapters/createAdapter.js +1 -1
- package/dist/cjs/plugins/adapters/types.js +1 -1
- package/dist/cjs/plugins/apy/ApyPlugin.js +266 -0
- package/dist/cjs/plugins/apy/apy-cache.js +120 -0
- package/dist/cjs/plugins/apy/apy-parser.js +169 -0
- package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/constants.js +6 -3
- package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/index.js +14 -6
- package/dist/cjs/{sdk/market/kyc/securitize/types.js → plugins/apy/pool-apy-types.js} +2 -2
- package/dist/cjs/plugins/apy/pool-apy-utils.js +141 -0
- package/dist/cjs/rewards/rewards/extra-apy.js +10 -8
- package/dist/cjs/sdk/GearboxSDK.js +5 -52
- package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +16 -324
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +1 -7
- package/dist/cjs/sdk/base/TokensMeta.js +43 -32
- package/dist/cjs/sdk/base/token-types.js +0 -9
- package/dist/cjs/sdk/chain/chains.js +32 -17
- package/dist/cjs/sdk/constants/address-provider.js +0 -3
- package/dist/cjs/sdk/market/MarketRegister.js +116 -70
- package/dist/cjs/sdk/market/MarketSuite.js +0 -3
- package/dist/cjs/sdk/market/index.js +0 -2
- package/dist/cjs/sdk/market/pool/PoolSuite.js +0 -3
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -11
- package/dist/cjs/sdk/market/pool/index.js +0 -2
- package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/cjs/sdk/options.js +1 -7
- package/dist/cjs/sdk/pools/PoolService.js +12 -104
- package/dist/cjs/sdk/utils/viem/index.js +0 -2
- package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +39 -2
- package/dist/esm/dev/AccountOpener.js +6 -47
- package/dist/esm/dev/logSplitterTransport.js +10 -1
- package/dist/esm/plugins/adapters/abi/actionAbi.js +1 -1
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +1 -1
- package/dist/esm/plugins/adapters/createAdapter.js +1 -1
- package/dist/esm/plugins/adapters/types.js +1 -1
- package/dist/esm/plugins/apy/ApyPlugin.js +255 -0
- package/dist/esm/plugins/apy/apy-cache.js +86 -0
- package/dist/esm/plugins/apy/apy-parser.js +143 -0
- package/dist/esm/plugins/apy/constants.js +6 -0
- package/dist/esm/plugins/apy/index.js +7 -0
- package/dist/esm/plugins/apy/pool-apy-utils.js +113 -0
- package/dist/esm/rewards/rewards/extra-apy.js +10 -8
- package/dist/esm/sdk/GearboxSDK.js +6 -56
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +17 -328
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -7
- package/dist/esm/sdk/base/TokensMeta.js +45 -32
- package/dist/esm/sdk/base/token-types.js +0 -6
- package/dist/esm/sdk/chain/chains.js +32 -17
- package/dist/esm/sdk/constants/address-provider.js +0 -2
- package/dist/esm/sdk/market/MarketRegister.js +118 -74
- package/dist/esm/sdk/market/MarketSuite.js +0 -3
- 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 -11
- package/dist/esm/sdk/market/pool/index.js +0 -1
- package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/esm/sdk/options.js +1 -7
- package/dist/esm/sdk/pools/PoolService.js +13 -109
- package/dist/esm/sdk/utils/viem/index.js +0 -1
- package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +41 -2
- package/dist/types/dev/logSplitterTransport.d.ts +3 -1
- package/dist/types/plugins/adapters/types.d.ts +2 -2
- package/dist/types/plugins/apy/ApyPlugin.d.ts +46 -0
- package/dist/types/plugins/apy/apy-cache.d.ts +28 -0
- package/dist/types/plugins/apy/apy-parser.d.ts +5 -0
- package/dist/types/plugins/apy/constants.d.ts +2 -0
- package/dist/types/plugins/apy/index.d.ts +7 -0
- package/dist/types/plugins/apy/pool-apy-types.d.ts +41 -0
- package/dist/types/plugins/apy/pool-apy-utils.d.ts +73 -0
- package/dist/types/plugins/apy/types.d.ts +37 -0
- package/dist/types/rewards/rewards/api.d.ts +10 -1
- package/dist/types/rewards/rewards/common.d.ts +0 -10
- package/dist/types/rewards/rewards/extra-apy.d.ts +4 -6
- package/dist/types/sdk/GearboxSDK.d.ts +0 -7
- package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +2 -52
- package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
- package/dist/types/sdk/accounts/types.d.ts +13 -93
- package/dist/types/sdk/base/TokensMeta.d.ts +3 -14
- package/dist/types/sdk/base/token-types.d.ts +4 -44
- package/dist/types/sdk/base/types.d.ts +11 -116
- package/dist/types/sdk/chain/chains.d.ts +5 -5
- package/dist/types/sdk/constants/address-provider.d.ts +0 -1
- package/dist/types/sdk/market/MarketRegister.d.ts +9 -6
- package/dist/types/sdk/market/MarketSuite.d.ts +0 -2
- package/dist/types/sdk/market/index.d.ts +0 -1
- package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +2 -3
- package/dist/types/sdk/market/oracle/types.d.ts +10 -3
- 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 -1
- 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 +0 -1
- 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 +0 -2
- package/dist/types/sdk/types/state.d.ts +0 -5
- package/dist/types/sdk/utils/viem/index.d.ts +0 -1
- package/package.json +2 -3
- package/dist/cjs/abi/kyc/iDSRegistryService.js +0 -70
- package/dist/cjs/abi/kyc/iDSToken.js +0 -71
- package/dist/cjs/abi/kyc/iKYCCompressor.js +0 -196
- package/dist/cjs/abi/kyc/iKYCFactory.js +0 -122
- package/dist/cjs/abi/kyc/iKYCUnderlying.js +0 -401
- package/dist/cjs/abi/kyc/iSecuritizeDegenNFT.js +0 -326
- package/dist/cjs/abi/kyc/iSecuritizeKYCFactory.js +0 -319
- package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +0 -108
- package/dist/cjs/plugins/pools-history/index.js +0 -24
- package/dist/cjs/sdk/market/kyc/KYCRegistry.js +0 -269
- package/dist/cjs/sdk/market/kyc/index.js +0 -26
- package/dist/cjs/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -244
- package/dist/cjs/sdk/market/kyc/types.js +0 -34
- package/dist/cjs/sdk/utils/viem/executeDelegatedMulticalls.js +0 -38
- package/dist/esm/abi/kyc/iDSRegistryService.js +0 -46
- package/dist/esm/abi/kyc/iDSToken.js +0 -47
- package/dist/esm/abi/kyc/iKYCCompressor.js +0 -172
- package/dist/esm/abi/kyc/iKYCFactory.js +0 -98
- package/dist/esm/abi/kyc/iKYCUnderlying.js +0 -377
- package/dist/esm/abi/kyc/iSecuritizeDegenNFT.js +0 -302
- package/dist/esm/abi/kyc/iSecuritizeKYCFactory.js +0 -295
- package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +0 -90
- package/dist/esm/plugins/pools-history/index.js +0 -2
- package/dist/esm/sdk/market/kyc/KYCRegistry.js +0 -253
- package/dist/esm/sdk/market/kyc/index.js +0 -3
- package/dist/esm/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -220
- package/dist/esm/sdk/market/kyc/securitize/constants.js +0 -4
- package/dist/esm/sdk/market/kyc/securitize/index.js +0 -3
- package/dist/esm/sdk/market/kyc/types.js +0 -9
- package/dist/esm/sdk/utils/viem/executeDelegatedMulticalls.js +0 -14
- package/dist/types/abi/kyc/iDSRegistryService.d.ts +0 -71
- package/dist/types/abi/kyc/iDSToken.d.ts +0 -67
- package/dist/types/abi/kyc/iKYCCompressor.d.ts +0 -228
- package/dist/types/abi/kyc/iKYCFactory.d.ts +0 -139
- package/dist/types/abi/kyc/iKYCUnderlying.d.ts +0 -548
- package/dist/types/abi/kyc/iSecuritizeDegenNFT.d.ts +0 -404
- package/dist/types/abi/kyc/iSecuritizeKYCFactory.d.ts +0 -376
- package/dist/types/plugins/pools-history/Pools7DAgoPlugin.d.ts +0 -20
- package/dist/types/plugins/pools-history/index.d.ts +0 -2
- package/dist/types/plugins/pools-history/types.d.ts +0 -9
- package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +0 -52
- package/dist/types/sdk/market/kyc/index.d.ts +0 -3
- package/dist/types/sdk/market/kyc/securitize/SecuritizeKYCFactory.d.ts +0 -428
- package/dist/types/sdk/market/kyc/securitize/constants.d.ts +0 -1
- package/dist/types/sdk/market/kyc/securitize/index.d.ts +0 -3
- package/dist/types/sdk/market/kyc/securitize/types.d.ts +0 -127
- package/dist/types/sdk/market/kyc/types.d.ts +0 -170
- package/dist/types/sdk/utils/viem/executeDelegatedMulticalls.d.ts +0 -28
- /package/dist/cjs/plugins/{pools-history → apy}/package.json +0 -0
- /package/dist/cjs/plugins/{pools-history → apy}/types.js +0 -0
- /package/dist/esm/plugins/{pools-history → apy}/package.json +0 -0
- /package/dist/esm/plugins/{pools-history/types.js → apy/pool-apy-types.js} +0 -0
- /package/dist/esm/{sdk/market/kyc/securitize → plugins/apy}/types.js +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
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 types_exports = {};
|
|
20
|
-
__export(types_exports, {
|
|
21
|
-
KYC_FACTORY_TYPES: () => KYC_FACTORY_TYPES,
|
|
22
|
-
isKYCFactory: () => isKYCFactory
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(types_exports);
|
|
25
|
-
var import_securitize = require("./securitize/index.js");
|
|
26
|
-
const KYC_FACTORY_TYPES = [import_securitize.KYC_FACTORY_SECURITIZE];
|
|
27
|
-
function isKYCFactory(factory, type) {
|
|
28
|
-
return factory.contractType === type;
|
|
29
|
-
}
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
KYC_FACTORY_TYPES,
|
|
33
|
-
isKYCFactory
|
|
34
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
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 executeDelegatedMulticalls_exports = {};
|
|
20
|
-
__export(executeDelegatedMulticalls_exports, {
|
|
21
|
-
executeDelegatedMulticalls: () => executeDelegatedMulticalls
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(executeDelegatedMulticalls_exports);
|
|
24
|
-
var import_simulateWithPriceUpdates = require("./simulateWithPriceUpdates.js");
|
|
25
|
-
async function executeDelegatedMulticalls(client, multicalls, opts) {
|
|
26
|
-
if (!multicalls.length) return;
|
|
27
|
-
const results = await (0, import_simulateWithPriceUpdates.simulateWithPriceUpdates)(client, {
|
|
28
|
-
...opts,
|
|
29
|
-
contracts: multicalls.map((d) => d.call)
|
|
30
|
-
});
|
|
31
|
-
for (let i = 0; i < multicalls.length; i++) {
|
|
32
|
-
multicalls[i].onResult(results[i]);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
executeDelegatedMulticalls
|
|
38
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const iDSRegistryServiceAbi = [
|
|
2
|
-
{
|
|
3
|
-
type: "function",
|
|
4
|
-
name: "addWallet",
|
|
5
|
-
inputs: [
|
|
6
|
-
{ name: "wallet", type: "address", internalType: "address" },
|
|
7
|
-
{ name: "investorId", type: "string", internalType: "string" }
|
|
8
|
-
],
|
|
9
|
-
outputs: [],
|
|
10
|
-
stateMutability: "nonpayable"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
type: "function",
|
|
14
|
-
name: "getInvestor",
|
|
15
|
-
inputs: [{ name: "wallet", type: "address", internalType: "address" }],
|
|
16
|
-
outputs: [{ name: "", type: "string", internalType: "string" }],
|
|
17
|
-
stateMutability: "view"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
type: "function",
|
|
21
|
-
name: "isInvestor",
|
|
22
|
-
inputs: [{ name: "investorId", type: "string", internalType: "string" }],
|
|
23
|
-
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
24
|
-
stateMutability: "view"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: "function",
|
|
28
|
-
name: "isWallet",
|
|
29
|
-
inputs: [{ name: "wallet", type: "address", internalType: "address" }],
|
|
30
|
-
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
31
|
-
stateMutability: "view"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
type: "function",
|
|
35
|
-
name: "registerInvestor",
|
|
36
|
-
inputs: [
|
|
37
|
-
{ name: "investorId", type: "string", internalType: "string" },
|
|
38
|
-
{ name: "collisionHash", type: "string", internalType: "string" }
|
|
39
|
-
],
|
|
40
|
-
outputs: [],
|
|
41
|
-
stateMutability: "nonpayable"
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
export {
|
|
45
|
-
iDSRegistryServiceAbi
|
|
46
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
const iDSTokenAbi = [
|
|
2
|
-
{
|
|
3
|
-
type: "function",
|
|
4
|
-
name: "REGISTRY_SERVICE",
|
|
5
|
-
inputs: [],
|
|
6
|
-
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
7
|
-
stateMutability: "view"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
type: "function",
|
|
11
|
-
name: "TRUST_SERVICE",
|
|
12
|
-
inputs: [],
|
|
13
|
-
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
14
|
-
stateMutability: "view"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
type: "function",
|
|
18
|
-
name: "burn",
|
|
19
|
-
inputs: [
|
|
20
|
-
{ name: "from", type: "address", internalType: "address" },
|
|
21
|
-
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
22
|
-
{ name: "reason", type: "string", internalType: "string" }
|
|
23
|
-
],
|
|
24
|
-
outputs: [],
|
|
25
|
-
stateMutability: "nonpayable"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: "function",
|
|
29
|
-
name: "getDSService",
|
|
30
|
-
inputs: [{ name: "serviceId", type: "uint256", internalType: "uint256" }],
|
|
31
|
-
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
32
|
-
stateMutability: "view"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: "function",
|
|
36
|
-
name: "issueTokens",
|
|
37
|
-
inputs: [
|
|
38
|
-
{ name: "to", type: "address", internalType: "address" },
|
|
39
|
-
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
40
|
-
],
|
|
41
|
-
outputs: [],
|
|
42
|
-
stateMutability: "nonpayable"
|
|
43
|
-
}
|
|
44
|
-
];
|
|
45
|
-
export {
|
|
46
|
-
iDSTokenAbi
|
|
47
|
-
};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
const iKYCCompressorAbi = [
|
|
2
|
-
{
|
|
3
|
-
type: "function",
|
|
4
|
-
name: "contractType",
|
|
5
|
-
inputs: [],
|
|
6
|
-
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
7
|
-
stateMutability: "view"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
type: "function",
|
|
11
|
-
name: "getKYCInvestorData",
|
|
12
|
-
inputs: [
|
|
13
|
-
{ name: "investor", type: "address", internalType: "address" },
|
|
14
|
-
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
15
|
-
],
|
|
16
|
-
outputs: [
|
|
17
|
-
{
|
|
18
|
-
name: "",
|
|
19
|
-
type: "tuple[]",
|
|
20
|
-
internalType: "struct IKYCCompressor.KYCInvestorData[]",
|
|
21
|
-
components: [
|
|
22
|
-
{
|
|
23
|
-
name: "creditAccounts",
|
|
24
|
-
type: "tuple[]",
|
|
25
|
-
internalType: "struct IKYCCompressor.KYCCreditAccountData[]",
|
|
26
|
-
components: [
|
|
27
|
-
{
|
|
28
|
-
name: "creditAccount",
|
|
29
|
-
type: "address",
|
|
30
|
-
internalType: "address"
|
|
31
|
-
},
|
|
32
|
-
{ name: "wallet", type: "address", internalType: "address" },
|
|
33
|
-
{ name: "frozen", type: "bool", internalType: "bool" },
|
|
34
|
-
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
stateMutability: "view"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
type: "function",
|
|
45
|
-
name: "getKYCMarketsData",
|
|
46
|
-
inputs: [
|
|
47
|
-
{ name: "configurators", type: "address[]", internalType: "address[]" },
|
|
48
|
-
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
49
|
-
],
|
|
50
|
-
outputs: [
|
|
51
|
-
{
|
|
52
|
-
name: "",
|
|
53
|
-
type: "tuple[]",
|
|
54
|
-
internalType: "struct IKYCCompressor.KYCUnderlyingData[]",
|
|
55
|
-
components: [
|
|
56
|
-
{
|
|
57
|
-
name: "baseParams",
|
|
58
|
-
type: "tuple",
|
|
59
|
-
internalType: "struct BaseParams",
|
|
60
|
-
components: [
|
|
61
|
-
{ name: "addr", type: "address", internalType: "address" },
|
|
62
|
-
{ name: "version", type: "uint256", internalType: "uint256" },
|
|
63
|
-
{
|
|
64
|
-
name: "contractType",
|
|
65
|
-
type: "bytes32",
|
|
66
|
-
internalType: "bytes32"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: "serializedParams",
|
|
70
|
-
type: "bytes",
|
|
71
|
-
internalType: "bytes"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{ name: "asset", type: "address", internalType: "address" },
|
|
76
|
-
{ name: "factory", type: "address", internalType: "address" },
|
|
77
|
-
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: "",
|
|
82
|
-
type: "tuple[]",
|
|
83
|
-
internalType: "struct IKYCCompressor.KYCFactoryData[]",
|
|
84
|
-
components: [
|
|
85
|
-
{
|
|
86
|
-
name: "baseParams",
|
|
87
|
-
type: "tuple",
|
|
88
|
-
internalType: "struct BaseParams",
|
|
89
|
-
components: [
|
|
90
|
-
{ name: "addr", type: "address", internalType: "address" },
|
|
91
|
-
{ name: "version", type: "uint256", internalType: "uint256" },
|
|
92
|
-
{
|
|
93
|
-
name: "contractType",
|
|
94
|
-
type: "bytes32",
|
|
95
|
-
internalType: "bytes32"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "serializedParams",
|
|
99
|
-
type: "bytes",
|
|
100
|
-
internalType: "bytes"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "tokens",
|
|
106
|
-
type: "tuple[]",
|
|
107
|
-
internalType: "struct TokenData[]",
|
|
108
|
-
components: [
|
|
109
|
-
{ name: "addr", type: "address", internalType: "address" },
|
|
110
|
-
{ name: "symbol", type: "string", internalType: "string" },
|
|
111
|
-
{ name: "name", type: "string", internalType: "string" },
|
|
112
|
-
{ name: "decimals", type: "uint8", internalType: "uint8" }
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
{ name: "extraDetails", type: "bytes", internalType: "bytes" }
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
stateMutability: "view"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
type: "function",
|
|
123
|
-
name: "setSubcompressor",
|
|
124
|
-
inputs: [
|
|
125
|
-
{ name: "subcompressor", type: "address", internalType: "address" }
|
|
126
|
-
],
|
|
127
|
-
outputs: [],
|
|
128
|
-
stateMutability: "nonpayable"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
type: "function",
|
|
132
|
-
name: "subcompressors",
|
|
133
|
-
inputs: [
|
|
134
|
-
{ name: "domain", type: "bytes32", internalType: "bytes32" },
|
|
135
|
-
{ name: "postfix", type: "bytes32", internalType: "bytes32" }
|
|
136
|
-
],
|
|
137
|
-
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
138
|
-
stateMutability: "view"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
type: "function",
|
|
142
|
-
name: "version",
|
|
143
|
-
inputs: [],
|
|
144
|
-
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
145
|
-
stateMutability: "view"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
type: "error",
|
|
149
|
-
name: "CallerIsNotInstanceOwnerException",
|
|
150
|
-
inputs: [{ name: "caller", type: "address", internalType: "address" }]
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
type: "error",
|
|
154
|
-
name: "InvalidDomainException",
|
|
155
|
-
inputs: [{ name: "domain", type: "bytes32", internalType: "bytes32" }]
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
type: "error",
|
|
159
|
-
name: "InvalidKYCFactoryException",
|
|
160
|
-
inputs: [{ name: "factory", type: "address", internalType: "address" }]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
type: "error",
|
|
164
|
-
name: "InvalidMarketConfiguratorException",
|
|
165
|
-
inputs: [
|
|
166
|
-
{ name: "marketConfigurator", type: "address", internalType: "address" }
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
];
|
|
170
|
-
export {
|
|
171
|
-
iKYCCompressorAbi
|
|
172
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
const iKYCFactoryAbi = [
|
|
2
|
-
{
|
|
3
|
-
type: "function",
|
|
4
|
-
name: "contractType",
|
|
5
|
-
inputs: [],
|
|
6
|
-
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
7
|
-
stateMutability: "view"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
type: "function",
|
|
11
|
-
name: "getCreditAccounts",
|
|
12
|
-
inputs: [{ name: "investor", type: "address", internalType: "address" }],
|
|
13
|
-
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
14
|
-
stateMutability: "view"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
type: "function",
|
|
18
|
-
name: "getInvestor",
|
|
19
|
-
inputs: [
|
|
20
|
-
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
21
|
-
],
|
|
22
|
-
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
23
|
-
stateMutability: "view"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
type: "function",
|
|
27
|
-
name: "getTokens",
|
|
28
|
-
inputs: [],
|
|
29
|
-
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
30
|
-
stateMutability: "view"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
type: "function",
|
|
34
|
-
name: "getWallet",
|
|
35
|
-
inputs: [
|
|
36
|
-
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
37
|
-
],
|
|
38
|
-
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
39
|
-
stateMutability: "view"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
type: "function",
|
|
43
|
-
name: "isCreditAccount",
|
|
44
|
-
inputs: [
|
|
45
|
-
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
46
|
-
],
|
|
47
|
-
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
48
|
-
stateMutability: "view"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: "function",
|
|
52
|
-
name: "isFrozen",
|
|
53
|
-
inputs: [
|
|
54
|
-
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
55
|
-
],
|
|
56
|
-
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
57
|
-
stateMutability: "view"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
type: "function",
|
|
61
|
-
name: "serialize",
|
|
62
|
-
inputs: [],
|
|
63
|
-
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
64
|
-
stateMutability: "view"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: "function",
|
|
68
|
-
name: "version",
|
|
69
|
-
inputs: [],
|
|
70
|
-
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
71
|
-
stateMutability: "view"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
type: "error",
|
|
75
|
-
name: "CallerIsNotInvestorException",
|
|
76
|
-
inputs: [
|
|
77
|
-
{ name: "caller", type: "address", internalType: "address" },
|
|
78
|
-
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: "error",
|
|
83
|
-
name: "FrozenCreditAccountException",
|
|
84
|
-
inputs: [
|
|
85
|
-
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
type: "error",
|
|
90
|
-
name: "UnknownCreditAccountException",
|
|
91
|
-
inputs: [
|
|
92
|
-
{ name: "creditAccount", type: "address", internalType: "address" }
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
];
|
|
96
|
-
export {
|
|
97
|
-
iKYCFactoryAbi
|
|
98
|
-
};
|