@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.
Files changed (155) hide show
  1. package/dist/cjs/dev/AccountOpener.js +5 -45
  2. package/dist/cjs/dev/logSplitterTransport.js +10 -1
  3. package/dist/cjs/plugins/adapters/abi/actionAbi.js +1 -1
  4. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +1 -1
  5. package/dist/cjs/plugins/adapters/createAdapter.js +1 -1
  6. package/dist/cjs/plugins/adapters/types.js +1 -1
  7. package/dist/cjs/plugins/apy/ApyPlugin.js +266 -0
  8. package/dist/cjs/plugins/apy/apy-cache.js +120 -0
  9. package/dist/cjs/plugins/apy/apy-parser.js +169 -0
  10. package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/constants.js +6 -3
  11. package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/index.js +14 -6
  12. package/dist/cjs/{sdk/market/kyc/securitize/types.js → plugins/apy/pool-apy-types.js} +2 -2
  13. package/dist/cjs/plugins/apy/pool-apy-utils.js +141 -0
  14. package/dist/cjs/rewards/rewards/extra-apy.js +10 -8
  15. package/dist/cjs/sdk/GearboxSDK.js +5 -52
  16. package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +16 -324
  17. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +1 -7
  18. package/dist/cjs/sdk/base/TokensMeta.js +43 -32
  19. package/dist/cjs/sdk/base/token-types.js +0 -9
  20. package/dist/cjs/sdk/chain/chains.js +32 -17
  21. package/dist/cjs/sdk/constants/address-provider.js +0 -3
  22. package/dist/cjs/sdk/market/MarketRegister.js +116 -70
  23. package/dist/cjs/sdk/market/MarketSuite.js +0 -3
  24. package/dist/cjs/sdk/market/index.js +0 -2
  25. package/dist/cjs/sdk/market/pool/PoolSuite.js +0 -3
  26. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -11
  27. package/dist/cjs/sdk/market/pool/index.js +0 -2
  28. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  29. package/dist/cjs/sdk/options.js +1 -7
  30. package/dist/cjs/sdk/pools/PoolService.js +12 -104
  31. package/dist/cjs/sdk/utils/viem/index.js +0 -2
  32. package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +39 -2
  33. package/dist/esm/dev/AccountOpener.js +6 -47
  34. package/dist/esm/dev/logSplitterTransport.js +10 -1
  35. package/dist/esm/plugins/adapters/abi/actionAbi.js +1 -1
  36. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +1 -1
  37. package/dist/esm/plugins/adapters/createAdapter.js +1 -1
  38. package/dist/esm/plugins/adapters/types.js +1 -1
  39. package/dist/esm/plugins/apy/ApyPlugin.js +255 -0
  40. package/dist/esm/plugins/apy/apy-cache.js +86 -0
  41. package/dist/esm/plugins/apy/apy-parser.js +143 -0
  42. package/dist/esm/plugins/apy/constants.js +6 -0
  43. package/dist/esm/plugins/apy/index.js +7 -0
  44. package/dist/esm/plugins/apy/pool-apy-utils.js +113 -0
  45. package/dist/esm/rewards/rewards/extra-apy.js +10 -8
  46. package/dist/esm/sdk/GearboxSDK.js +6 -56
  47. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +17 -328
  48. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -7
  49. package/dist/esm/sdk/base/TokensMeta.js +45 -32
  50. package/dist/esm/sdk/base/token-types.js +0 -6
  51. package/dist/esm/sdk/chain/chains.js +32 -17
  52. package/dist/esm/sdk/constants/address-provider.js +0 -2
  53. package/dist/esm/sdk/market/MarketRegister.js +118 -74
  54. package/dist/esm/sdk/market/MarketSuite.js +0 -3
  55. package/dist/esm/sdk/market/index.js +0 -1
  56. package/dist/esm/sdk/market/pool/PoolSuite.js +0 -3
  57. package/dist/esm/sdk/market/pool/PoolV310Contract.js +2 -11
  58. package/dist/esm/sdk/market/pool/index.js +0 -1
  59. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  60. package/dist/esm/sdk/options.js +1 -7
  61. package/dist/esm/sdk/pools/PoolService.js +13 -109
  62. package/dist/esm/sdk/utils/viem/index.js +0 -1
  63. package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +41 -2
  64. package/dist/types/dev/logSplitterTransport.d.ts +3 -1
  65. package/dist/types/plugins/adapters/types.d.ts +2 -2
  66. package/dist/types/plugins/apy/ApyPlugin.d.ts +46 -0
  67. package/dist/types/plugins/apy/apy-cache.d.ts +28 -0
  68. package/dist/types/plugins/apy/apy-parser.d.ts +5 -0
  69. package/dist/types/plugins/apy/constants.d.ts +2 -0
  70. package/dist/types/plugins/apy/index.d.ts +7 -0
  71. package/dist/types/plugins/apy/pool-apy-types.d.ts +41 -0
  72. package/dist/types/plugins/apy/pool-apy-utils.d.ts +73 -0
  73. package/dist/types/plugins/apy/types.d.ts +37 -0
  74. package/dist/types/rewards/rewards/api.d.ts +10 -1
  75. package/dist/types/rewards/rewards/common.d.ts +0 -10
  76. package/dist/types/rewards/rewards/extra-apy.d.ts +4 -6
  77. package/dist/types/sdk/GearboxSDK.d.ts +0 -7
  78. package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +2 -52
  79. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
  80. package/dist/types/sdk/accounts/types.d.ts +13 -93
  81. package/dist/types/sdk/base/TokensMeta.d.ts +3 -14
  82. package/dist/types/sdk/base/token-types.d.ts +4 -44
  83. package/dist/types/sdk/base/types.d.ts +11 -116
  84. package/dist/types/sdk/chain/chains.d.ts +5 -5
  85. package/dist/types/sdk/constants/address-provider.d.ts +0 -1
  86. package/dist/types/sdk/market/MarketRegister.d.ts +9 -6
  87. package/dist/types/sdk/market/MarketSuite.d.ts +0 -2
  88. package/dist/types/sdk/market/index.d.ts +0 -1
  89. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +2 -3
  90. package/dist/types/sdk/market/oracle/types.d.ts +10 -3
  91. package/dist/types/sdk/market/pool/PoolSuite.d.ts +0 -2
  92. package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +2 -6
  93. package/dist/types/sdk/market/pool/index.d.ts +0 -1
  94. package/dist/types/sdk/market/pricefeeds/PriceFeedsRegister.d.ts +1 -1
  95. package/dist/types/sdk/market/types.d.ts +1 -1
  96. package/dist/types/sdk/options.d.ts +0 -1
  97. package/dist/types/sdk/pools/PoolService.d.ts +8 -8
  98. package/dist/types/sdk/pools/types.d.ts +1 -1
  99. package/dist/types/sdk/types/state-human.d.ts +0 -2
  100. package/dist/types/sdk/types/state.d.ts +0 -5
  101. package/dist/types/sdk/utils/viem/index.d.ts +0 -1
  102. package/package.json +2 -3
  103. package/dist/cjs/abi/kyc/iDSRegistryService.js +0 -70
  104. package/dist/cjs/abi/kyc/iDSToken.js +0 -71
  105. package/dist/cjs/abi/kyc/iKYCCompressor.js +0 -196
  106. package/dist/cjs/abi/kyc/iKYCFactory.js +0 -122
  107. package/dist/cjs/abi/kyc/iKYCUnderlying.js +0 -401
  108. package/dist/cjs/abi/kyc/iSecuritizeDegenNFT.js +0 -326
  109. package/dist/cjs/abi/kyc/iSecuritizeKYCFactory.js +0 -319
  110. package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +0 -108
  111. package/dist/cjs/plugins/pools-history/index.js +0 -24
  112. package/dist/cjs/sdk/market/kyc/KYCRegistry.js +0 -269
  113. package/dist/cjs/sdk/market/kyc/index.js +0 -26
  114. package/dist/cjs/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -244
  115. package/dist/cjs/sdk/market/kyc/types.js +0 -34
  116. package/dist/cjs/sdk/utils/viem/executeDelegatedMulticalls.js +0 -38
  117. package/dist/esm/abi/kyc/iDSRegistryService.js +0 -46
  118. package/dist/esm/abi/kyc/iDSToken.js +0 -47
  119. package/dist/esm/abi/kyc/iKYCCompressor.js +0 -172
  120. package/dist/esm/abi/kyc/iKYCFactory.js +0 -98
  121. package/dist/esm/abi/kyc/iKYCUnderlying.js +0 -377
  122. package/dist/esm/abi/kyc/iSecuritizeDegenNFT.js +0 -302
  123. package/dist/esm/abi/kyc/iSecuritizeKYCFactory.js +0 -295
  124. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +0 -90
  125. package/dist/esm/plugins/pools-history/index.js +0 -2
  126. package/dist/esm/sdk/market/kyc/KYCRegistry.js +0 -253
  127. package/dist/esm/sdk/market/kyc/index.js +0 -3
  128. package/dist/esm/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -220
  129. package/dist/esm/sdk/market/kyc/securitize/constants.js +0 -4
  130. package/dist/esm/sdk/market/kyc/securitize/index.js +0 -3
  131. package/dist/esm/sdk/market/kyc/types.js +0 -9
  132. package/dist/esm/sdk/utils/viem/executeDelegatedMulticalls.js +0 -14
  133. package/dist/types/abi/kyc/iDSRegistryService.d.ts +0 -71
  134. package/dist/types/abi/kyc/iDSToken.d.ts +0 -67
  135. package/dist/types/abi/kyc/iKYCCompressor.d.ts +0 -228
  136. package/dist/types/abi/kyc/iKYCFactory.d.ts +0 -139
  137. package/dist/types/abi/kyc/iKYCUnderlying.d.ts +0 -548
  138. package/dist/types/abi/kyc/iSecuritizeDegenNFT.d.ts +0 -404
  139. package/dist/types/abi/kyc/iSecuritizeKYCFactory.d.ts +0 -376
  140. package/dist/types/plugins/pools-history/Pools7DAgoPlugin.d.ts +0 -20
  141. package/dist/types/plugins/pools-history/index.d.ts +0 -2
  142. package/dist/types/plugins/pools-history/types.d.ts +0 -9
  143. package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +0 -52
  144. package/dist/types/sdk/market/kyc/index.d.ts +0 -3
  145. package/dist/types/sdk/market/kyc/securitize/SecuritizeKYCFactory.d.ts +0 -428
  146. package/dist/types/sdk/market/kyc/securitize/constants.d.ts +0 -1
  147. package/dist/types/sdk/market/kyc/securitize/index.d.ts +0 -3
  148. package/dist/types/sdk/market/kyc/securitize/types.d.ts +0 -127
  149. package/dist/types/sdk/market/kyc/types.d.ts +0 -170
  150. package/dist/types/sdk/utils/viem/executeDelegatedMulticalls.d.ts +0 -28
  151. /package/dist/cjs/plugins/{pools-history → apy}/package.json +0 -0
  152. /package/dist/cjs/plugins/{pools-history → apy}/types.js +0 -0
  153. /package/dist/esm/plugins/{pools-history → apy}/package.json +0 -0
  154. /package/dist/esm/plugins/{pools-history/types.js → apy/pool-apy-types.js} +0 -0
  155. /package/dist/esm/{sdk/market/kyc/securitize → plugins/apy}/types.js +0 -0
@@ -1,220 +0,0 @@
1
- import { decodeAbiParameters } from "viem";
2
- import { iSecuritizeKYCFactoryAbi } from "../../../../abi/kyc/iSecuritizeKYCFactory.js";
3
- import { BaseContract } from "../../../base/index.js";
4
- import { AddressMap, AddressSet } from "../../../utils/index.js";
5
- import { KYC_FACTORY_SECURITIZE } from "./constants.js";
6
- const abi = iSecuritizeKYCFactoryAbi;
7
- class SecuritizeKYCFactory extends BaseContract {
8
- #sdk;
9
- #investorCache = new AddressMap();
10
- degenNFT;
11
- owner;
12
- dsTokens;
13
- contractType = KYC_FACTORY_SECURITIZE;
14
- constructor(sdk, data) {
15
- super(sdk, {
16
- ...data.baseParams,
17
- name: "SecuritizeKYCFactory",
18
- abi
19
- });
20
- this.#sdk = sdk;
21
- const decoded = decodeAbiParameters(
22
- [
23
- { name: "owner", type: "address" },
24
- { name: "degenNFT", type: "address" },
25
- {
26
- name: "dsTokensData",
27
- type: "tuple[]",
28
- components: [
29
- { name: "token", type: "address" },
30
- { name: "registrar", type: "address" },
31
- { name: "operators", type: "address[]" }
32
- ]
33
- }
34
- ],
35
- data.baseParams.serializedParams
36
- );
37
- this.owner = decoded[0];
38
- this.degenNFT = decoded[1];
39
- for (const t of data.tokens) {
40
- this.tokensMeta.upsert(t.addr, t);
41
- }
42
- this.dsTokens = decoded[2].map((t) => ({
43
- address: t.token,
44
- registrar: t.registrar,
45
- operators: [...t.operators]
46
- }));
47
- }
48
- /**
49
- * {@inheritDoc IKYCFactory.decodeInvestorData}
50
- */
51
- decodeInvestorData(data) {
52
- const { creditAccounts, extraDetails } = data;
53
- const [registeredTokens, cachedSignatures, registerVaultMessages] = decodeAbiParameters(
54
- [
55
- { name: "registeredTokens", type: "address[]" },
56
- {
57
- name: "cachedSignatures",
58
- type: "tuple[]",
59
- components: [...registerMessageTuple]
60
- },
61
- {
62
- name: "registerVaultMessages",
63
- type: "tuple[]",
64
- components: [...registerVaultMessageTuple]
65
- }
66
- ],
67
- extraDetails
68
- );
69
- return {
70
- factory: this.address,
71
- cachedSignatures: [...cachedSignatures],
72
- registerVaultMessages: [...registerVaultMessages],
73
- registeredTokens: [...registeredTokens],
74
- creditAccounts: creditAccounts.map((ca) => {
75
- const [registeredTokens2] = decodeAbiParameters(
76
- [{ name: "registeredTokens", type: "address[]" }],
77
- ca.extraDetails
78
- );
79
- return {
80
- ...ca,
81
- registeredTokens: [...registeredTokens2]
82
- };
83
- })
84
- };
85
- }
86
- /**
87
- * {@inheritDoc IKYCFactory.getInvestor}
88
- */
89
- async getInvestor(creditAccount, fromCache) {
90
- if (fromCache && this.#investorCache.has(creditAccount)) {
91
- return this.#investorCache.mustGet(creditAccount);
92
- }
93
- const investor = await this.contract.read.getInvestor([creditAccount]);
94
- if (fromCache) {
95
- this.#investorCache.upsert(creditAccount, investor);
96
- }
97
- return investor;
98
- }
99
- /**
100
- * {@inheritDoc IKYCFactory.getApprovalAddress}
101
- */
102
- async getApprovalAddress(options) {
103
- if ("creditAccount" in options) {
104
- return this.getWallet(options.creditAccount);
105
- }
106
- return this.#precomputeWalletAddress(
107
- options.creditManager,
108
- options.borrower
109
- );
110
- }
111
- /**
112
- * {@inheritDoc IKYCFactory.getWallet}
113
- */
114
- async getWallet(creditAccount) {
115
- return this.contract.read.getWallet([creditAccount]);
116
- }
117
- /**
118
- * {@inheritDoc IKYCFactory.multicall}
119
- */
120
- multicall(creditAccount, calls, options) {
121
- const { tokensToRegister = [], signaturesToCache = [] } = options ?? {};
122
- return this.createRawTx({
123
- functionName: "multicall",
124
- args: [creditAccount, calls, tokensToRegister, signaturesToCache]
125
- });
126
- }
127
- /**
128
- * {@inheritDoc IKYCFactory.getOpenAccountRequirements}
129
- */
130
- async getOpenAccountRequirements(investor) {
131
- const [investorData] = await this.#sdk.kyc.getInvestorData(investor, [
132
- this.address
133
- ]);
134
- const dsTokens = new AddressSet(this.dsTokens.map((t) => t.address));
135
- const desiredTokens = dsTokens;
136
- const registredTokens = new AddressSet(investorData.registeredTokens);
137
- const signedTokens = new AddressSet(
138
- investorData.cachedSignatures.map((s) => s.token)
139
- );
140
- const unsignedTokens = desiredTokens.difference(signedTokens);
141
- const tokensToRegister = desiredTokens.difference(registredTokens);
142
- const requiredSignatures = investorData.registerVaultMessages.filter(
143
- (m) => unsignedTokens.has(m.token)
144
- );
145
- if (tokensToRegister.size === 0 && requiredSignatures.length === 0) {
146
- return void 0;
147
- }
148
- return {
149
- type: KYC_FACTORY_SECURITIZE,
150
- tokensToRegister: Array.from(tokensToRegister),
151
- requiredSignatures
152
- };
153
- }
154
- /**
155
- * {@inheritDoc IKYCFactory.openCreditAccount}
156
- */
157
- openCreditAccount(creditManager, calls, options) {
158
- const { tokensToRegister = [], signaturesToCache = [] } = options ?? {};
159
- return this.createRawTx({
160
- functionName: "openCreditAccount",
161
- args: [creditManager, calls, tokensToRegister, signaturesToCache]
162
- });
163
- }
164
- stateHuman(_raw) {
165
- return {
166
- ...super.stateHuman(_raw),
167
- owner: this.labelAddress(this.owner),
168
- degenNFT: this.labelAddress(this.degenNFT),
169
- dsTokens: this.dsTokens.map((t) => ({
170
- ...this.tokensMeta.mustGet(t.address),
171
- registrar: this.labelAddress(t.registrar),
172
- operators: t.operators.map((o) => this.labelAddress(o))
173
- }))
174
- };
175
- }
176
- /**
177
- * Precomputes the wallet address that will own a new credit account
178
- * for the given investor in the given credit manager.
179
- *
180
- * @param creditManager - credit manager address
181
- * @param investor - investor address
182
- **/
183
- async #precomputeWalletAddress(creditManager, investor) {
184
- return this.contract.read.precomputeWalletAddress([
185
- creditManager,
186
- investor
187
- ]);
188
- }
189
- }
190
- const registerMessageTuple = [
191
- { name: "token", type: "address" },
192
- {
193
- name: "signature",
194
- type: "tuple",
195
- components: [
196
- { name: "deadline", type: "uint256" },
197
- { name: "signature", type: "bytes" }
198
- ]
199
- }
200
- ];
201
- const registerVaultMessageTuple = [
202
- {
203
- name: "domain",
204
- type: "tuple",
205
- components: [
206
- { name: "name", type: "string" },
207
- { name: "version", type: "string" },
208
- { name: "chainId", type: "uint256" },
209
- { name: "verifyingContract", type: "address" }
210
- ]
211
- },
212
- { name: "investor", type: "address" },
213
- { name: "operator", type: "address" },
214
- { name: "token", type: "address" },
215
- { name: "nonce", type: "uint256" },
216
- { name: "deadline", type: "uint256" }
217
- ];
218
- export {
219
- SecuritizeKYCFactory
220
- };
@@ -1,4 +0,0 @@
1
- const KYC_FACTORY_SECURITIZE = "KYC_FACTORY::SECURITIZE";
2
- export {
3
- KYC_FACTORY_SECURITIZE
4
- };
@@ -1,3 +0,0 @@
1
- export * from "./constants.js";
2
- export * from "./SecuritizeKYCFactory.js";
3
- export * from "./types.js";
@@ -1,9 +0,0 @@
1
- import { KYC_FACTORY_SECURITIZE } from "./securitize/index.js";
2
- const KYC_FACTORY_TYPES = [KYC_FACTORY_SECURITIZE];
3
- function isKYCFactory(factory, type) {
4
- return factory.contractType === type;
5
- }
6
- export {
7
- KYC_FACTORY_TYPES,
8
- isKYCFactory
9
- };
@@ -1,14 +0,0 @@
1
- import { simulateWithPriceUpdates } from "./simulateWithPriceUpdates.js";
2
- async function executeDelegatedMulticalls(client, multicalls, opts) {
3
- if (!multicalls.length) return;
4
- const results = await simulateWithPriceUpdates(client, {
5
- ...opts,
6
- contracts: multicalls.map((d) => d.call)
7
- });
8
- for (let i = 0; i < multicalls.length; i++) {
9
- multicalls[i].onResult(results[i]);
10
- }
11
- }
12
- export {
13
- executeDelegatedMulticalls
14
- };
@@ -1,71 +0,0 @@
1
- export declare const iDSRegistryServiceAbi: readonly [{
2
- readonly type: "function";
3
- readonly name: "addWallet";
4
- readonly inputs: readonly [{
5
- readonly name: "wallet";
6
- readonly type: "address";
7
- readonly internalType: "address";
8
- }, {
9
- readonly name: "investorId";
10
- readonly type: "string";
11
- readonly internalType: "string";
12
- }];
13
- readonly outputs: readonly [];
14
- readonly stateMutability: "nonpayable";
15
- }, {
16
- readonly type: "function";
17
- readonly name: "getInvestor";
18
- readonly inputs: readonly [{
19
- readonly name: "wallet";
20
- readonly type: "address";
21
- readonly internalType: "address";
22
- }];
23
- readonly outputs: readonly [{
24
- readonly name: "";
25
- readonly type: "string";
26
- readonly internalType: "string";
27
- }];
28
- readonly stateMutability: "view";
29
- }, {
30
- readonly type: "function";
31
- readonly name: "isInvestor";
32
- readonly inputs: readonly [{
33
- readonly name: "investorId";
34
- readonly type: "string";
35
- readonly internalType: "string";
36
- }];
37
- readonly outputs: readonly [{
38
- readonly name: "";
39
- readonly type: "bool";
40
- readonly internalType: "bool";
41
- }];
42
- readonly stateMutability: "view";
43
- }, {
44
- readonly type: "function";
45
- readonly name: "isWallet";
46
- readonly inputs: readonly [{
47
- readonly name: "wallet";
48
- readonly type: "address";
49
- readonly internalType: "address";
50
- }];
51
- readonly outputs: readonly [{
52
- readonly name: "";
53
- readonly type: "bool";
54
- readonly internalType: "bool";
55
- }];
56
- readonly stateMutability: "view";
57
- }, {
58
- readonly type: "function";
59
- readonly name: "registerInvestor";
60
- readonly inputs: readonly [{
61
- readonly name: "investorId";
62
- readonly type: "string";
63
- readonly internalType: "string";
64
- }, {
65
- readonly name: "collisionHash";
66
- readonly type: "string";
67
- readonly internalType: "string";
68
- }];
69
- readonly outputs: readonly [];
70
- readonly stateMutability: "nonpayable";
71
- }];
@@ -1,67 +0,0 @@
1
- export declare const iDSTokenAbi: readonly [{
2
- readonly type: "function";
3
- readonly name: "REGISTRY_SERVICE";
4
- readonly inputs: readonly [];
5
- readonly outputs: readonly [{
6
- readonly name: "";
7
- readonly type: "uint256";
8
- readonly internalType: "uint256";
9
- }];
10
- readonly stateMutability: "view";
11
- }, {
12
- readonly type: "function";
13
- readonly name: "TRUST_SERVICE";
14
- readonly inputs: readonly [];
15
- readonly outputs: readonly [{
16
- readonly name: "";
17
- readonly type: "uint256";
18
- readonly internalType: "uint256";
19
- }];
20
- readonly stateMutability: "view";
21
- }, {
22
- readonly type: "function";
23
- readonly name: "burn";
24
- readonly inputs: readonly [{
25
- readonly name: "from";
26
- readonly type: "address";
27
- readonly internalType: "address";
28
- }, {
29
- readonly name: "amount";
30
- readonly type: "uint256";
31
- readonly internalType: "uint256";
32
- }, {
33
- readonly name: "reason";
34
- readonly type: "string";
35
- readonly internalType: "string";
36
- }];
37
- readonly outputs: readonly [];
38
- readonly stateMutability: "nonpayable";
39
- }, {
40
- readonly type: "function";
41
- readonly name: "getDSService";
42
- readonly inputs: readonly [{
43
- readonly name: "serviceId";
44
- readonly type: "uint256";
45
- readonly internalType: "uint256";
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: "issueTokens";
56
- readonly inputs: readonly [{
57
- readonly name: "to";
58
- readonly type: "address";
59
- readonly internalType: "address";
60
- }, {
61
- readonly name: "amount";
62
- readonly type: "uint256";
63
- readonly internalType: "uint256";
64
- }];
65
- readonly outputs: readonly [];
66
- readonly stateMutability: "nonpayable";
67
- }];
@@ -1,228 +0,0 @@
1
- export declare const iKYCCompressorAbi: readonly [{
2
- readonly type: "function";
3
- readonly name: "contractType";
4
- readonly inputs: readonly [];
5
- readonly outputs: readonly [{
6
- readonly name: "";
7
- readonly type: "bytes32";
8
- readonly internalType: "bytes32";
9
- }];
10
- readonly stateMutability: "view";
11
- }, {
12
- readonly type: "function";
13
- readonly name: "getKYCInvestorData";
14
- readonly inputs: readonly [{
15
- readonly name: "investor";
16
- readonly type: "address";
17
- readonly internalType: "address";
18
- }, {
19
- readonly name: "factories";
20
- readonly type: "address[]";
21
- readonly internalType: "address[]";
22
- }];
23
- readonly outputs: readonly [{
24
- readonly name: "";
25
- readonly type: "tuple[]";
26
- readonly internalType: "struct IKYCCompressor.KYCInvestorData[]";
27
- readonly components: readonly [{
28
- readonly name: "creditAccounts";
29
- readonly type: "tuple[]";
30
- readonly internalType: "struct IKYCCompressor.KYCCreditAccountData[]";
31
- readonly components: readonly [{
32
- readonly name: "creditAccount";
33
- readonly type: "address";
34
- readonly internalType: "address";
35
- }, {
36
- readonly name: "wallet";
37
- readonly type: "address";
38
- readonly internalType: "address";
39
- }, {
40
- readonly name: "frozen";
41
- readonly type: "bool";
42
- readonly internalType: "bool";
43
- }, {
44
- readonly name: "extraDetails";
45
- readonly type: "bytes";
46
- readonly internalType: "bytes";
47
- }];
48
- }, {
49
- readonly name: "extraDetails";
50
- readonly type: "bytes";
51
- readonly internalType: "bytes";
52
- }];
53
- }];
54
- readonly stateMutability: "view";
55
- }, {
56
- readonly type: "function";
57
- readonly name: "getKYCMarketsData";
58
- readonly inputs: readonly [{
59
- readonly name: "configurators";
60
- readonly type: "address[]";
61
- readonly internalType: "address[]";
62
- }, {
63
- readonly name: "factories";
64
- readonly type: "address[]";
65
- readonly internalType: "address[]";
66
- }];
67
- readonly outputs: readonly [{
68
- readonly name: "";
69
- readonly type: "tuple[]";
70
- readonly internalType: "struct IKYCCompressor.KYCUnderlyingData[]";
71
- readonly components: readonly [{
72
- readonly name: "baseParams";
73
- readonly type: "tuple";
74
- readonly internalType: "struct BaseParams";
75
- readonly components: readonly [{
76
- readonly name: "addr";
77
- readonly type: "address";
78
- readonly internalType: "address";
79
- }, {
80
- readonly name: "version";
81
- readonly type: "uint256";
82
- readonly internalType: "uint256";
83
- }, {
84
- readonly name: "contractType";
85
- readonly type: "bytes32";
86
- readonly internalType: "bytes32";
87
- }, {
88
- readonly name: "serializedParams";
89
- readonly type: "bytes";
90
- readonly internalType: "bytes";
91
- }];
92
- }, {
93
- readonly name: "asset";
94
- readonly type: "address";
95
- readonly internalType: "address";
96
- }, {
97
- readonly name: "factory";
98
- readonly type: "address";
99
- readonly internalType: "address";
100
- }, {
101
- readonly name: "extraDetails";
102
- readonly type: "bytes";
103
- readonly internalType: "bytes";
104
- }];
105
- }, {
106
- readonly name: "";
107
- readonly type: "tuple[]";
108
- readonly internalType: "struct IKYCCompressor.KYCFactoryData[]";
109
- readonly components: readonly [{
110
- readonly name: "baseParams";
111
- readonly type: "tuple";
112
- readonly internalType: "struct BaseParams";
113
- readonly components: readonly [{
114
- readonly name: "addr";
115
- readonly type: "address";
116
- readonly internalType: "address";
117
- }, {
118
- readonly name: "version";
119
- readonly type: "uint256";
120
- readonly internalType: "uint256";
121
- }, {
122
- readonly name: "contractType";
123
- readonly type: "bytes32";
124
- readonly internalType: "bytes32";
125
- }, {
126
- readonly name: "serializedParams";
127
- readonly type: "bytes";
128
- readonly internalType: "bytes";
129
- }];
130
- }, {
131
- readonly name: "tokens";
132
- readonly type: "tuple[]";
133
- readonly internalType: "struct TokenData[]";
134
- readonly components: readonly [{
135
- readonly name: "addr";
136
- readonly type: "address";
137
- readonly internalType: "address";
138
- }, {
139
- readonly name: "symbol";
140
- readonly type: "string";
141
- readonly internalType: "string";
142
- }, {
143
- readonly name: "name";
144
- readonly type: "string";
145
- readonly internalType: "string";
146
- }, {
147
- readonly name: "decimals";
148
- readonly type: "uint8";
149
- readonly internalType: "uint8";
150
- }];
151
- }, {
152
- readonly name: "extraDetails";
153
- readonly type: "bytes";
154
- readonly internalType: "bytes";
155
- }];
156
- }];
157
- readonly stateMutability: "view";
158
- }, {
159
- readonly type: "function";
160
- readonly name: "setSubcompressor";
161
- readonly inputs: readonly [{
162
- readonly name: "subcompressor";
163
- readonly type: "address";
164
- readonly internalType: "address";
165
- }];
166
- readonly outputs: readonly [];
167
- readonly stateMutability: "nonpayable";
168
- }, {
169
- readonly type: "function";
170
- readonly name: "subcompressors";
171
- readonly inputs: readonly [{
172
- readonly name: "domain";
173
- readonly type: "bytes32";
174
- readonly internalType: "bytes32";
175
- }, {
176
- readonly name: "postfix";
177
- readonly type: "bytes32";
178
- readonly internalType: "bytes32";
179
- }];
180
- readonly outputs: readonly [{
181
- readonly name: "";
182
- readonly type: "address";
183
- readonly internalType: "address";
184
- }];
185
- readonly stateMutability: "view";
186
- }, {
187
- readonly type: "function";
188
- readonly name: "version";
189
- readonly inputs: readonly [];
190
- readonly outputs: readonly [{
191
- readonly name: "";
192
- readonly type: "uint256";
193
- readonly internalType: "uint256";
194
- }];
195
- readonly stateMutability: "view";
196
- }, {
197
- readonly type: "error";
198
- readonly name: "CallerIsNotInstanceOwnerException";
199
- readonly inputs: readonly [{
200
- readonly name: "caller";
201
- readonly type: "address";
202
- readonly internalType: "address";
203
- }];
204
- }, {
205
- readonly type: "error";
206
- readonly name: "InvalidDomainException";
207
- readonly inputs: readonly [{
208
- readonly name: "domain";
209
- readonly type: "bytes32";
210
- readonly internalType: "bytes32";
211
- }];
212
- }, {
213
- readonly type: "error";
214
- readonly name: "InvalidKYCFactoryException";
215
- readonly inputs: readonly [{
216
- readonly name: "factory";
217
- readonly type: "address";
218
- readonly internalType: "address";
219
- }];
220
- }, {
221
- readonly type: "error";
222
- readonly name: "InvalidMarketConfiguratorException";
223
- readonly inputs: readonly [{
224
- readonly name: "marketConfigurator";
225
- readonly type: "address";
226
- readonly internalType: "address";
227
- }];
228
- }];