@gearbox-protocol/sdk 14.0.0-next.9 → 14.1.0-next.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.
Files changed (119) hide show
  1. package/dist/cjs/abi/kyc/iDSRegistryService.js +149 -0
  2. package/dist/cjs/abi/kyc/iDSToken.js +71 -0
  3. package/dist/cjs/abi/kyc/iKYCCompressor.js +196 -0
  4. package/dist/cjs/abi/kyc/iKYCFactory.js +122 -0
  5. package/dist/cjs/abi/kyc/iKYCUnderlying.js +401 -0
  6. package/dist/cjs/abi/kyc/iSecuritizeDegenNFT.js +326 -0
  7. package/dist/cjs/abi/kyc/iSecuritizeKYCFactory.js +319 -0
  8. package/dist/cjs/dev/AccountOpener.js +45 -5
  9. package/dist/cjs/rewards/rewards/extra-apy.js +1 -1
  10. package/dist/cjs/sdk/MultichainSDK.js +5 -0
  11. package/dist/cjs/sdk/OnchainSDK.js +55 -6
  12. package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +335 -21
  13. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +7 -1
  14. package/dist/cjs/sdk/base/TokensMeta.js +22 -42
  15. package/dist/cjs/sdk/base/token-types.js +9 -0
  16. package/dist/cjs/sdk/chain/chains.js +18 -1
  17. package/dist/cjs/sdk/constants/address-provider.js +3 -0
  18. package/dist/cjs/sdk/market/MarketRegister.js +70 -116
  19. package/dist/cjs/sdk/market/MarketSuite.js +3 -0
  20. package/dist/cjs/sdk/market/index.js +2 -0
  21. package/dist/cjs/sdk/market/kyc/KYCRegistry.js +269 -0
  22. package/dist/cjs/sdk/market/kyc/index.js +26 -0
  23. package/dist/cjs/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +242 -0
  24. package/dist/cjs/sdk/market/kyc/securitize/constants.js +28 -0
  25. package/dist/cjs/sdk/market/kyc/securitize/index.js +26 -0
  26. package/dist/cjs/sdk/market/kyc/securitize/types.js +16 -0
  27. package/dist/cjs/sdk/{accounts/utils.js → market/kyc/types.js} +11 -15
  28. package/dist/cjs/sdk/market/pool/PoolSuite.js +3 -0
  29. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +11 -2
  30. package/dist/cjs/sdk/market/pool/index.js +2 -0
  31. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  32. package/dist/cjs/sdk/options.js +6 -0
  33. package/dist/cjs/sdk/pools/PoolService.js +104 -12
  34. package/dist/cjs/sdk/utils/viem/executeDelegatedMulticalls.js +38 -0
  35. package/dist/cjs/sdk/utils/viem/index.js +2 -4
  36. package/dist/esm/abi/kyc/iDSRegistryService.js +125 -0
  37. package/dist/esm/abi/kyc/iDSToken.js +47 -0
  38. package/dist/esm/abi/kyc/iKYCCompressor.js +172 -0
  39. package/dist/esm/abi/kyc/iKYCFactory.js +98 -0
  40. package/dist/esm/abi/kyc/iKYCUnderlying.js +377 -0
  41. package/dist/esm/abi/kyc/iSecuritizeDegenNFT.js +302 -0
  42. package/dist/esm/abi/kyc/iSecuritizeKYCFactory.js +295 -0
  43. package/dist/esm/dev/AccountOpener.js +47 -6
  44. package/dist/esm/rewards/rewards/extra-apy.js +1 -1
  45. package/dist/esm/sdk/MultichainSDK.js +5 -0
  46. package/dist/esm/sdk/OnchainSDK.js +58 -7
  47. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +336 -22
  48. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +7 -1
  49. package/dist/esm/sdk/base/TokensMeta.js +22 -44
  50. package/dist/esm/sdk/base/token-types.js +6 -0
  51. package/dist/esm/sdk/chain/chains.js +18 -1
  52. package/dist/esm/sdk/constants/address-provider.js +2 -0
  53. package/dist/esm/sdk/market/MarketRegister.js +74 -118
  54. package/dist/esm/sdk/market/MarketSuite.js +3 -0
  55. package/dist/esm/sdk/market/index.js +1 -0
  56. package/dist/esm/sdk/market/kyc/KYCRegistry.js +253 -0
  57. package/dist/esm/sdk/market/kyc/index.js +3 -0
  58. package/dist/esm/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +218 -0
  59. package/dist/esm/sdk/market/kyc/securitize/constants.js +4 -0
  60. package/dist/esm/sdk/market/kyc/securitize/index.js +3 -0
  61. package/dist/esm/sdk/market/kyc/securitize/types.js +0 -0
  62. package/dist/esm/sdk/market/kyc/types.js +9 -0
  63. package/dist/esm/sdk/market/pool/PoolSuite.js +3 -0
  64. package/dist/esm/sdk/market/pool/PoolV310Contract.js +11 -2
  65. package/dist/esm/sdk/market/pool/index.js +1 -0
  66. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  67. package/dist/esm/sdk/options.js +6 -0
  68. package/dist/esm/sdk/pools/PoolService.js +109 -13
  69. package/dist/esm/sdk/utils/viem/executeDelegatedMulticalls.js +14 -0
  70. package/dist/esm/sdk/utils/viem/index.js +1 -2
  71. package/dist/types/abi/kyc/iDSRegistryService.d.ts +191 -0
  72. package/dist/types/abi/kyc/iDSToken.d.ts +67 -0
  73. package/dist/types/abi/kyc/iKYCCompressor.d.ts +228 -0
  74. package/dist/types/abi/kyc/iKYCFactory.d.ts +139 -0
  75. package/dist/types/abi/kyc/iKYCUnderlying.d.ts +548 -0
  76. package/dist/types/abi/kyc/iSecuritizeDegenNFT.d.ts +404 -0
  77. package/dist/types/abi/kyc/iSecuritizeKYCFactory.d.ts +376 -0
  78. package/dist/types/sdk/OnchainSDK.d.ts +19 -1
  79. package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +59 -6
  80. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
  81. package/dist/types/sdk/accounts/types.d.ts +114 -14
  82. package/dist/types/sdk/base/TokensMeta.d.ts +14 -3
  83. package/dist/types/sdk/base/token-types.d.ts +44 -4
  84. package/dist/types/sdk/base/types.d.ts +116 -2
  85. package/dist/types/sdk/chain/chains.d.ts +5 -1
  86. package/dist/types/sdk/constants/address-provider.d.ts +1 -0
  87. package/dist/types/sdk/market/MarketRegister.d.ts +6 -9
  88. package/dist/types/sdk/market/MarketSuite.d.ts +2 -0
  89. package/dist/types/sdk/market/index.d.ts +1 -0
  90. package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +52 -0
  91. package/dist/types/sdk/market/kyc/index.d.ts +3 -0
  92. package/dist/types/sdk/market/kyc/securitize/SecuritizeKYCFactory.d.ts +429 -0
  93. package/dist/types/sdk/market/kyc/securitize/constants.d.ts +1 -0
  94. package/dist/types/sdk/market/kyc/securitize/index.d.ts +3 -0
  95. package/dist/types/sdk/market/kyc/securitize/types.d.ts +136 -0
  96. package/dist/types/sdk/market/kyc/types.d.ts +171 -0
  97. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +3 -2
  98. package/dist/types/sdk/market/oracle/types.d.ts +3 -10
  99. package/dist/types/sdk/market/pool/PoolSuite.d.ts +2 -0
  100. package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +6 -2
  101. package/dist/types/sdk/market/pool/index.d.ts +1 -0
  102. package/dist/types/sdk/market/pricefeeds/PriceFeedsRegister.d.ts +1 -1
  103. package/dist/types/sdk/market/types.d.ts +1 -1
  104. package/dist/types/sdk/options.d.ts +1 -0
  105. package/dist/types/sdk/pools/PoolService.d.ts +8 -8
  106. package/dist/types/sdk/pools/types.d.ts +1 -1
  107. package/dist/types/sdk/types/state-human.d.ts +2 -0
  108. package/dist/types/sdk/types/state.d.ts +5 -0
  109. package/dist/types/sdk/utils/viem/executeDelegatedMulticalls.d.ts +28 -0
  110. package/dist/types/sdk/utils/viem/index.d.ts +1 -2
  111. package/package.json +4 -4
  112. package/dist/cjs/sdk/utils/viem/getLogsPaginated.js +0 -62
  113. package/dist/cjs/sdk/utils/viem/getLogsSafe.js +0 -87
  114. package/dist/esm/sdk/accounts/utils.js +0 -14
  115. package/dist/esm/sdk/utils/viem/getLogsPaginated.js +0 -38
  116. package/dist/esm/sdk/utils/viem/getLogsSafe.js +0 -65
  117. package/dist/types/sdk/accounts/utils.d.ts +0 -2
  118. package/dist/types/sdk/utils/viem/getLogsPaginated.d.ts +0 -12
  119. package/dist/types/sdk/utils/viem/getLogsSafe.d.ts +0 -3
@@ -0,0 +1,38 @@
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
+ });
@@ -16,8 +16,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var viem_exports = {};
17
17
  module.exports = __toCommonJS(viem_exports);
18
18
  __reExport(viem_exports, require("./cast.js"), module.exports);
19
- __reExport(viem_exports, require("./getLogsPaginated.js"), module.exports);
20
- __reExport(viem_exports, require("./getLogsSafe.js"), module.exports);
19
+ __reExport(viem_exports, require("./executeDelegatedMulticalls.js"), module.exports);
21
20
  __reExport(viem_exports, require("./sendRawTx.js"), module.exports);
22
21
  __reExport(viem_exports, require("./simulateMulticall.js"), module.exports);
23
22
  __reExport(viem_exports, require("./simulateWithPriceUpdates.js"), module.exports);
@@ -25,8 +24,7 @@ __reExport(viem_exports, require("./watchBlocksAsync.js"), module.exports);
25
24
  // Annotate the CommonJS export names for ESM import in node:
26
25
  0 && (module.exports = {
27
26
  ...require("./cast.js"),
28
- ...require("./getLogsPaginated.js"),
29
- ...require("./getLogsSafe.js"),
27
+ ...require("./executeDelegatedMulticalls.js"),
30
28
  ...require("./sendRawTx.js"),
31
29
  ...require("./simulateMulticall.js"),
32
30
  ...require("./simulateWithPriceUpdates.js"),
@@ -0,0 +1,125 @@
1
+ const iDSRegistryServiceAbi = [
2
+ {
3
+ type: "function",
4
+ name: "ACCREDITED",
5
+ inputs: [],
6
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "APPROVED",
12
+ inputs: [],
13
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
14
+ stateMutability: "view"
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "KYC_APPROVED",
19
+ inputs: [],
20
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
21
+ stateMutability: "view"
22
+ },
23
+ {
24
+ type: "function",
25
+ name: "NONE",
26
+ inputs: [],
27
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
28
+ stateMutability: "view"
29
+ },
30
+ {
31
+ type: "function",
32
+ name: "PENDING",
33
+ inputs: [],
34
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
35
+ stateMutability: "view"
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "PROFESSIONAL",
40
+ inputs: [],
41
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
42
+ stateMutability: "view"
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "QUALIFIED",
47
+ inputs: [],
48
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
49
+ stateMutability: "view"
50
+ },
51
+ {
52
+ type: "function",
53
+ name: "REJECTED",
54
+ inputs: [],
55
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
56
+ stateMutability: "view"
57
+ },
58
+ {
59
+ type: "function",
60
+ name: "addWallet",
61
+ inputs: [
62
+ { name: "wallet", type: "address", internalType: "address" },
63
+ { name: "investorId", type: "string", internalType: "string" }
64
+ ],
65
+ outputs: [],
66
+ stateMutability: "nonpayable"
67
+ },
68
+ {
69
+ type: "function",
70
+ name: "getInvestor",
71
+ inputs: [{ name: "wallet", type: "address", internalType: "address" }],
72
+ outputs: [{ name: "", type: "string", internalType: "string" }],
73
+ stateMutability: "view"
74
+ },
75
+ {
76
+ type: "function",
77
+ name: "isInvestor",
78
+ inputs: [{ name: "investorId", type: "string", internalType: "string" }],
79
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
80
+ stateMutability: "view"
81
+ },
82
+ {
83
+ type: "function",
84
+ name: "isWallet",
85
+ inputs: [{ name: "wallet", type: "address", internalType: "address" }],
86
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
87
+ stateMutability: "view"
88
+ },
89
+ {
90
+ type: "function",
91
+ name: "registerInvestor",
92
+ inputs: [
93
+ { name: "investorId", type: "string", internalType: "string" },
94
+ { name: "collisionHash", type: "string", internalType: "string" }
95
+ ],
96
+ outputs: [],
97
+ stateMutability: "nonpayable"
98
+ },
99
+ {
100
+ type: "function",
101
+ name: "setAttribute",
102
+ inputs: [
103
+ { name: "investorId", type: "string", internalType: "string" },
104
+ { name: "attributeId", type: "uint8", internalType: "uint8" },
105
+ { name: "value", type: "uint256", internalType: "uint256" },
106
+ { name: "expiry", type: "uint256", internalType: "uint256" },
107
+ { name: "proof", type: "string", internalType: "string" }
108
+ ],
109
+ outputs: [],
110
+ stateMutability: "nonpayable"
111
+ },
112
+ {
113
+ type: "function",
114
+ name: "setCountry",
115
+ inputs: [
116
+ { name: "investorId", type: "string", internalType: "string" },
117
+ { name: "country", type: "string", internalType: "string" }
118
+ ],
119
+ outputs: [],
120
+ stateMutability: "nonpayable"
121
+ }
122
+ ];
123
+ export {
124
+ iDSRegistryServiceAbi
125
+ };
@@ -0,0 +1,47 @@
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
+ };
@@ -0,0 +1,172 @@
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
+ };
@@ -0,0 +1,98 @@
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
+ };