@gearbox-protocol/sdk 14.7.0 → 14.8.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.
- package/dist/cjs/abi/compressors/{kycCompressor.js → rwaCompressor.js} +13 -13
- package/dist/cjs/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.js → rwa/onDemandRWAUnderlyingSubcompressor.js} +6 -6
- package/dist/cjs/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.js → rwa/securitizeRWAFactorySubcompressor.js} +6 -6
- package/dist/cjs/abi/{kyc/iKYCCompressor.js → rwa/iRWACompressor.js} +13 -13
- package/dist/cjs/abi/{kyc/iKYCFactory.js → rwa/iRWAFactory.js} +6 -6
- package/dist/cjs/abi/{kyc/iKYCUnderlying.js → rwa/iRWAUnderlying.js} +7 -7
- package/dist/cjs/abi/{kyc/iSecuritizeKYCFactory.js → rwa/iSecuritizeRWAFactory.js} +7 -7
- package/dist/cjs/dev/claimDSToken.js +4 -4
- package/dist/cjs/sdk/OnchainSDK.js +12 -12
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +59 -59
- package/dist/cjs/sdk/base/TokensMeta.js +6 -6
- package/dist/cjs/sdk/base/token-types.js +11 -11
- package/dist/cjs/sdk/chain/chains.js +16 -16
- package/dist/cjs/sdk/constants/address-provider.js +3 -3
- package/dist/cjs/sdk/market/MarketSuite.js +2 -2
- package/dist/cjs/sdk/market/index.js +2 -2
- package/dist/cjs/sdk/market/pool/PoolSuite.js +2 -2
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +3 -3
- package/dist/cjs/sdk/market/{kyc/KYCRegistry.js → rwa/RWARegistry.js} +48 -48
- package/dist/cjs/sdk/market/{kyc → rwa}/index.js +6 -6
- package/dist/cjs/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.js +1 -1
- package/dist/cjs/sdk/market/{kyc/securitize/SecuritizeKYCFactory.js → rwa/securitize/SecuritizeRWAFactory.js} +20 -20
- package/dist/cjs/sdk/market/{kyc → rwa}/securitize/constants.js +3 -3
- package/dist/cjs/sdk/market/{kyc → rwa}/securitize/index.js +2 -2
- package/dist/cjs/sdk/market/{kyc → rwa}/types.js +6 -6
- package/dist/cjs/sdk/options.js +4 -4
- package/dist/cjs/sdk/pools/PoolService.js +26 -26
- package/dist/esm/abi/compressors/{kycCompressor.js → rwaCompressor.js} +9 -9
- package/dist/esm/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.js → rwa/onDemandRWAUnderlyingSubcompressor.js} +2 -2
- package/dist/esm/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.js → rwa/securitizeRWAFactorySubcompressor.js} +2 -2
- package/dist/esm/abi/{kyc/iKYCCompressor.js → rwa/iRWACompressor.js} +9 -9
- package/dist/esm/abi/{kyc/iKYCFactory.js → rwa/iRWAFactory.js} +2 -2
- package/dist/esm/abi/{kyc/iKYCUnderlying.js → rwa/iRWAUnderlying.js} +3 -3
- package/dist/esm/abi/{kyc/iSecuritizeKYCFactory.js → rwa/iSecuritizeRWAFactory.js} +3 -3
- package/dist/esm/dev/claimDSToken.js +4 -4
- package/dist/esm/sdk/OnchainSDK.js +13 -13
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +59 -59
- package/dist/esm/sdk/base/TokensMeta.js +6 -6
- package/dist/esm/sdk/base/token-types.js +7 -7
- package/dist/esm/sdk/chain/chains.js +16 -16
- package/dist/esm/sdk/constants/address-provider.js +2 -2
- package/dist/esm/sdk/market/MarketSuite.js +2 -2
- package/dist/esm/sdk/market/index.js +1 -1
- package/dist/esm/sdk/market/pool/PoolSuite.js +2 -2
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +3 -3
- package/dist/esm/sdk/market/{kyc/KYCRegistry.js → rwa/RWARegistry.js} +50 -50
- package/dist/esm/sdk/market/{kyc → rwa}/index.js +1 -1
- package/dist/esm/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.js +1 -1
- package/dist/esm/sdk/market/{kyc/securitize/SecuritizeKYCFactory.js → rwa/securitize/SecuritizeRWAFactory.js} +17 -17
- package/dist/esm/sdk/market/rwa/securitize/constants.js +4 -0
- package/dist/esm/sdk/market/{kyc → rwa}/securitize/index.js +1 -1
- package/dist/esm/sdk/market/rwa/types.js +9 -0
- package/dist/esm/sdk/options.js +4 -4
- package/dist/esm/sdk/pools/PoolService.js +28 -28
- package/dist/types/abi/compressors/{kycCompressor.d.ts → rwaCompressor.d.ts} +8 -8
- package/dist/types/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.d.ts → rwa/onDemandRWAUnderlyingSubcompressor.d.ts} +1 -1
- package/dist/types/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.d.ts → rwa/securitizeRWAFactorySubcompressor.d.ts} +1 -1
- package/dist/types/abi/{kyc/iKYCCompressor.d.ts → rwa/iRWACompressor.d.ts} +8 -8
- package/dist/types/abi/{kyc/iKYCFactory.d.ts → rwa/iRWAFactory.d.ts} +1 -1
- package/dist/types/abi/{kyc/iKYCUnderlying.d.ts → rwa/iRWAUnderlying.d.ts} +2 -2
- package/dist/types/abi/{kyc/iSecuritizeKYCFactory.d.ts → rwa/iSecuritizeRWAFactory.d.ts} +2 -2
- package/dist/types/dev/claimDSToken.d.ts +1 -1
- package/dist/types/sdk/OnchainSDK.d.ts +5 -5
- package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +19 -19
- package/dist/types/sdk/accounts/types.d.ts +26 -26
- package/dist/types/sdk/base/TokensMeta.d.ts +5 -5
- package/dist/types/sdk/base/token-types.d.ts +17 -17
- package/dist/types/sdk/base/types.d.ts +2 -2
- package/dist/types/sdk/chain/chains.d.ts +2 -2
- package/dist/types/sdk/constants/address-provider.d.ts +1 -1
- package/dist/types/sdk/market/MarketSuite.d.ts +2 -2
- package/dist/types/sdk/market/index.d.ts +1 -1
- package/dist/types/sdk/market/pool/PoolSuite.d.ts +2 -2
- package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +2 -2
- package/dist/types/sdk/market/rwa/RWARegistry.d.ts +52 -0
- package/dist/types/sdk/market/{kyc → rwa}/index.d.ts +1 -1
- package/dist/types/sdk/market/{kyc/securitize/SecuritizeKYCFactory.d.ts → rwa/securitize/SecuritizeRWAFactory.d.ts} +16 -16
- package/dist/types/sdk/market/rwa/securitize/constants.d.ts +1 -0
- package/dist/types/sdk/market/{kyc → rwa}/securitize/index.d.ts +1 -1
- package/dist/types/sdk/market/{kyc → rwa}/securitize/types.d.ts +12 -12
- package/dist/types/sdk/market/{kyc → rwa}/types.d.ts +48 -48
- package/dist/types/sdk/market/types.d.ts +1 -1
- package/dist/types/sdk/options.d.ts +1 -1
- package/dist/types/sdk/pools/types.d.ts +4 -4
- package/dist/types/sdk/types/state-human.d.ts +2 -2
- package/dist/types/sdk/types/state.d.ts +3 -3
- package/package.json +1 -1
- package/dist/esm/sdk/market/kyc/securitize/constants.js +0 -4
- package/dist/esm/sdk/market/kyc/types.js +0 -9
- package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +0 -52
- package/dist/types/sdk/market/kyc/securitize/constants.d.ts +0 -1
- /package/dist/cjs/abi/{kyc → rwa}/iDSRegistryService.js +0 -0
- /package/dist/cjs/abi/{kyc → rwa}/iDSToken.js +0 -0
- /package/dist/cjs/abi/{kyc → rwa}/iSecuritizeDegenNFT.js +0 -0
- /package/dist/cjs/sdk/market/{kyc → rwa}/securitize/types.js +0 -0
- /package/dist/esm/abi/{kyc → rwa}/iDSRegistryService.js +0 -0
- /package/dist/esm/abi/{kyc → rwa}/iDSToken.js +0 -0
- /package/dist/esm/abi/{kyc → rwa}/iSecuritizeDegenNFT.js +0 -0
- /package/dist/esm/sdk/market/{kyc → rwa}/securitize/types.js +0 -0
- /package/dist/types/abi/{kyc → rwa}/iDSRegistryService.d.ts +0 -0
- /package/dist/types/abi/{kyc → rwa}/iDSToken.d.ts +0 -0
- /package/dist/types/abi/{kyc → rwa}/iSecuritizeDegenNFT.d.ts +0 -0
- /package/dist/types/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const iRWACompressorAbi: readonly [{
|
|
2
2
|
readonly type: "function";
|
|
3
3
|
readonly name: "contractType";
|
|
4
4
|
readonly inputs: readonly [];
|
|
@@ -10,7 +10,7 @@ export declare const iKYCCompressorAbi: readonly [{
|
|
|
10
10
|
readonly stateMutability: "view";
|
|
11
11
|
}, {
|
|
12
12
|
readonly type: "function";
|
|
13
|
-
readonly name: "
|
|
13
|
+
readonly name: "getRWAInvestorData";
|
|
14
14
|
readonly inputs: readonly [{
|
|
15
15
|
readonly name: "investor";
|
|
16
16
|
readonly type: "address";
|
|
@@ -23,11 +23,11 @@ export declare const iKYCCompressorAbi: readonly [{
|
|
|
23
23
|
readonly outputs: readonly [{
|
|
24
24
|
readonly name: "";
|
|
25
25
|
readonly type: "tuple[]";
|
|
26
|
-
readonly internalType: "struct
|
|
26
|
+
readonly internalType: "struct IRWACompressor.RWAInvestorData[]";
|
|
27
27
|
readonly components: readonly [{
|
|
28
28
|
readonly name: "creditAccounts";
|
|
29
29
|
readonly type: "tuple[]";
|
|
30
|
-
readonly internalType: "struct
|
|
30
|
+
readonly internalType: "struct IRWACompressor.RWACreditAccountData[]";
|
|
31
31
|
readonly components: readonly [{
|
|
32
32
|
readonly name: "creditAccount";
|
|
33
33
|
readonly type: "address";
|
|
@@ -54,7 +54,7 @@ export declare const iKYCCompressorAbi: readonly [{
|
|
|
54
54
|
readonly stateMutability: "view";
|
|
55
55
|
}, {
|
|
56
56
|
readonly type: "function";
|
|
57
|
-
readonly name: "
|
|
57
|
+
readonly name: "getRWAMarketsData";
|
|
58
58
|
readonly inputs: readonly [{
|
|
59
59
|
readonly name: "configurators";
|
|
60
60
|
readonly type: "address[]";
|
|
@@ -67,7 +67,7 @@ export declare const iKYCCompressorAbi: readonly [{
|
|
|
67
67
|
readonly outputs: readonly [{
|
|
68
68
|
readonly name: "";
|
|
69
69
|
readonly type: "tuple[]";
|
|
70
|
-
readonly internalType: "struct
|
|
70
|
+
readonly internalType: "struct IRWACompressor.RWAUnderlyingData[]";
|
|
71
71
|
readonly components: readonly [{
|
|
72
72
|
readonly name: "baseParams";
|
|
73
73
|
readonly type: "tuple";
|
|
@@ -105,7 +105,7 @@ export declare const iKYCCompressorAbi: readonly [{
|
|
|
105
105
|
}, {
|
|
106
106
|
readonly name: "";
|
|
107
107
|
readonly type: "tuple[]";
|
|
108
|
-
readonly internalType: "struct
|
|
108
|
+
readonly internalType: "struct IRWACompressor.RWAFactoryData[]";
|
|
109
109
|
readonly components: readonly [{
|
|
110
110
|
readonly name: "baseParams";
|
|
111
111
|
readonly type: "tuple";
|
|
@@ -211,7 +211,7 @@ export declare const iKYCCompressorAbi: readonly [{
|
|
|
211
211
|
}];
|
|
212
212
|
}, {
|
|
213
213
|
readonly type: "error";
|
|
214
|
-
readonly name: "
|
|
214
|
+
readonly name: "InvalidRWAFactoryException";
|
|
215
215
|
readonly inputs: readonly [{
|
|
216
216
|
readonly name: "factory";
|
|
217
217
|
readonly type: "address";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const iRWAUnderlyingAbi: readonly [{
|
|
2
2
|
readonly type: "function";
|
|
3
3
|
readonly name: "allowance";
|
|
4
4
|
readonly inputs: readonly [{
|
|
@@ -539,7 +539,7 @@ export declare const iKYCUnderlyingAbi: readonly [{
|
|
|
539
539
|
}];
|
|
540
540
|
}, {
|
|
541
541
|
readonly type: "error";
|
|
542
|
-
readonly name: "
|
|
542
|
+
readonly name: "InvalidRWAFactoryException";
|
|
543
543
|
readonly inputs: readonly [{
|
|
544
544
|
readonly name: "factory";
|
|
545
545
|
readonly type: "address";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const iSecuritizeRWAFactoryAbi: readonly [{
|
|
2
2
|
readonly type: "function";
|
|
3
3
|
readonly name: "contractType";
|
|
4
4
|
readonly inputs: readonly [];
|
|
@@ -336,7 +336,7 @@ export declare const iSecuritizeKYCFactoryAbi: readonly [{
|
|
|
336
336
|
readonly stateMutability: "view";
|
|
337
337
|
}, {
|
|
338
338
|
readonly type: "event";
|
|
339
|
-
readonly name: "
|
|
339
|
+
readonly name: "OpenRWACreditAccount";
|
|
340
340
|
readonly inputs: readonly [{
|
|
341
341
|
readonly name: "creditAccount";
|
|
342
342
|
readonly type: "address";
|
|
@@ -7,7 +7,7 @@ import { ChainContractsRegister } from "./base/index.js";
|
|
|
7
7
|
import type { GearboxChain, NetworkType } from "./chain/chains.js";
|
|
8
8
|
import type { VersionRange } from "./constants/index.js";
|
|
9
9
|
import type { IAddressProviderContract } from "./core/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { RWARegistry } from "./market/index.js";
|
|
11
11
|
import { MarketRegister } from "./market/MarketRegister.js";
|
|
12
12
|
import { PriceFeedRegister } from "./market/pricefeeds/index.js";
|
|
13
13
|
import type { PythOptions, RedstoneOptions } from "./market/pricefeeds/updates/index.js";
|
|
@@ -94,9 +94,9 @@ export interface AttachOptions {
|
|
|
94
94
|
**/
|
|
95
95
|
marketConfigurators?: Address[];
|
|
96
96
|
/**
|
|
97
|
-
* Addresses of
|
|
97
|
+
* Addresses of RWA factory contracts to load.
|
|
98
98
|
**/
|
|
99
|
-
|
|
99
|
+
rwaFactories?: Address[];
|
|
100
100
|
/**
|
|
101
101
|
* Pin SDK to a specific block number during attach.
|
|
102
102
|
**/
|
|
@@ -261,11 +261,11 @@ export declare class OnchainSDK<const Plugins extends PluginsMap = {}> extends C
|
|
|
261
261
|
*/
|
|
262
262
|
get marketRegister(): MarketRegister;
|
|
263
263
|
/**
|
|
264
|
-
*
|
|
264
|
+
* RWA register for RWA-wrapped underlying tokens and factories.
|
|
265
265
|
*
|
|
266
266
|
* @throws If the SDK has not been attached or hydrated yet.
|
|
267
267
|
**/
|
|
268
|
-
get
|
|
268
|
+
get rwa(): RWARegistry;
|
|
269
269
|
/**
|
|
270
270
|
* @internal
|
|
271
271
|
* Resolves the appropriate router contract for a given credit manager,
|
|
@@ -2,7 +2,7 @@ import type { Address } from "viem";
|
|
|
2
2
|
import type { CreditAccountData } from "../base/index.js";
|
|
3
3
|
import { SDKConstruct } from "../base/index.js";
|
|
4
4
|
import { type PriceUpdate } from "../market/index.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { RWAOpenAccountRequirements } from "../market/rwa/index.js";
|
|
6
6
|
import type { OnchainSDK } from "../OnchainSDK.js";
|
|
7
7
|
import { type RouterCASlice } from "../router/index.js";
|
|
8
8
|
import type { MultiCall, RawTx } from "../types/index.js";
|
|
@@ -115,7 +115,7 @@ export declare class CreditAccountsServiceV310 extends SDKConstruct implements I
|
|
|
115
115
|
/**
|
|
116
116
|
* {@inheritDoc ICreditAccountsService.getOpenAccountRequirements}
|
|
117
117
|
*/
|
|
118
|
-
getOpenAccountRequirements(borrower: Address, creditManager: Address, props: GetOpenAccountRequirementsProps): Promise<
|
|
118
|
+
getOpenAccountRequirements(borrower: Address, creditManager: Address, props: GetOpenAccountRequirementsProps): Promise<RWAOpenAccountRequirements | undefined>;
|
|
119
119
|
/**
|
|
120
120
|
* {@inheritDoc ICreditAccountsService.openCA}
|
|
121
121
|
**/
|
|
@@ -129,39 +129,39 @@ export declare class CreditAccountsServiceV310 extends SDKConstruct implements I
|
|
|
129
129
|
**/
|
|
130
130
|
getOptimalHFForPartialLiquidation(ca: CreditAccountData): bigint;
|
|
131
131
|
/**
|
|
132
|
-
* Returns multicall entries to redeem (unwrap)
|
|
133
|
-
* Used when withdrawing debt from a
|
|
134
|
-
* Only applies when the credit manager's underlying is
|
|
132
|
+
* Returns multicall entries to redeem (unwrap) RWA ERC-4626 vault shares into underlying for the given credit manager.
|
|
133
|
+
* Used when withdrawing debt from a RWA market: redeems adapter vault shares so the underlying can be withdrawn.
|
|
134
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
135
135
|
* @param amount - Number of vault shares (adapter tokens) to redeem
|
|
136
136
|
* @param creditManager - Credit manager address
|
|
137
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
137
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
getRWAUnwrapCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
140
140
|
/**
|
|
141
|
-
* Returns multicall entries to deposit (wrap) underlying into
|
|
142
|
-
* Used when adding debt on a
|
|
143
|
-
* Only applies when the credit manager's underlying is
|
|
141
|
+
* Returns multicall entries to deposit (wrap) underlying into RWA ERC-4626 vault shares for the given credit manager.
|
|
142
|
+
* Used when adding debt on a RWA market: deposits underlying into the adapter vault so shares are minted on the account.
|
|
143
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
144
144
|
* @param amount - Amount of underlying assets to deposit into the vault (in underlying decimals)
|
|
145
145
|
* @param creditManager - Credit manager address
|
|
146
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
146
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
getRWAWrapCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
149
149
|
/**
|
|
150
|
-
* Returns multicall entries to call redeemDiff on the
|
|
151
|
-
* Redeems the leftover vault shares (e.g. after repaying debt) so the account does not hold excess
|
|
152
|
-
* Only applies when the credit manager's underlying is
|
|
150
|
+
* Returns multicall entries to call redeemDiff on the RWA ERC-4626 adapter for the given credit manager.
|
|
151
|
+
* Redeems the leftover vault shares (e.g. after repaying debt) so the account does not hold excess RWA vault tokens.
|
|
152
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
153
153
|
* @param amount - Leftover vault share amount to redeem (in adapter/vault decimals)
|
|
154
154
|
* @param creditManager - Credit manager address
|
|
155
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
155
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
156
156
|
*/
|
|
157
157
|
getRedeemDiffCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
158
158
|
/**
|
|
159
|
-
* Returns multicall entries to call depositDiff on the
|
|
159
|
+
* Returns multicall entries to call depositDiff on the RWA ERC-4626 adapter for the given credit manager.
|
|
160
160
|
* Deposits the leftover underlying (e.g. after decreasing debt) into the vault so the account does not hold excess underlying.
|
|
161
|
-
* Only applies when the credit manager's underlying is
|
|
161
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
162
162
|
* @param amount - Leftover underlying amount to deposit into the vault (in underlying decimals)
|
|
163
163
|
* @param creditManager - Credit manager address
|
|
164
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
164
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
165
165
|
*/
|
|
166
166
|
getDepositDiffCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
167
167
|
/**
|
|
@@ -2,8 +2,8 @@ import type { Address, ContractFunctionArgs, GetContractReturnType, Hex, PublicC
|
|
|
2
2
|
import type { creditAccountCompressorAbi } from "../../abi/compressors/creditAccountCompressor.js";
|
|
3
3
|
import type { iWithdrawalCompressorV310Abi } from "../../abi/IWithdrawalCompressorV310.js";
|
|
4
4
|
import type { ConnectedBotData, Construct, CreditAccountData } from "../base/index.js";
|
|
5
|
-
import type { CreditSuite,
|
|
6
|
-
import type {
|
|
5
|
+
import type { CreditSuite, PriceUpdate, RWAOperationParams } from "../market/index.js";
|
|
6
|
+
import type { RWAOpenAccountRequirements } from "../market/rwa/index.js";
|
|
7
7
|
import type { OnchainSDK } from "../OnchainSDK.js";
|
|
8
8
|
import type { Asset, RouterCASlice, RouterCloseResult } from "../router/index.js";
|
|
9
9
|
import type { MultiCall, RawTx } from "../types/index.js";
|
|
@@ -428,14 +428,14 @@ export interface OpenCAProps extends PrepareUpdateQuotasProps {
|
|
|
428
428
|
*/
|
|
429
429
|
referralCode: bigint;
|
|
430
430
|
/**
|
|
431
|
-
*
|
|
431
|
+
* RWA options to open credit account with, required for RWA factories
|
|
432
432
|
* First we ask for getOpenAccountRequirements,
|
|
433
433
|
* then perform necessary actions (e.g. for Securitize, convert requiredSignatures to signaturesToCache)
|
|
434
|
-
* to produce
|
|
434
|
+
* to produce RWAOperationParams
|
|
435
435
|
* If getOpenAccountRequirements returned undefined, we need to pass undefined here too;
|
|
436
|
-
* It means that no
|
|
436
|
+
* It means that no RWA actions are required (e.g. when we open second credit account)
|
|
437
437
|
*/
|
|
438
|
-
|
|
438
|
+
rwaOptions?: RWAOperationParams;
|
|
439
439
|
}
|
|
440
440
|
export interface ChangeDeptProps {
|
|
441
441
|
/**
|
|
@@ -694,7 +694,7 @@ export interface ICreditAccountsService extends Construct {
|
|
|
694
694
|
getCreditAccounts(options?: GetCreditAccountsOptions, blockNumber?: bigint): Promise<Array<CreditAccountData>>;
|
|
695
695
|
/**
|
|
696
696
|
* Returns all credit accounts for a borrower,
|
|
697
|
-
* both normal and
|
|
697
|
+
* both normal and RWA accounts with investor resolved on each.
|
|
698
698
|
*
|
|
699
699
|
* @param borrower - Actual owner of credit account
|
|
700
700
|
* @param options - Filter options (creditManager, health factor, etc.)
|
|
@@ -815,7 +815,7 @@ export interface ICreditAccountsService extends Construct {
|
|
|
815
815
|
claimDelayed(props: ClaimDelayedProps): Promise<CreditAccountOperationResult>;
|
|
816
816
|
/**
|
|
817
817
|
* Returns address to which approval should be given on collateral token
|
|
818
|
-
* It's credit manager for classical markets and special wallet for
|
|
818
|
+
* It's credit manager for classical markets and special wallet for RWA markets
|
|
819
819
|
* @param props - {@link GetApprovalAddressProps}
|
|
820
820
|
* @returns
|
|
821
821
|
*/
|
|
@@ -827,7 +827,7 @@ export interface ICreditAccountsService extends Construct {
|
|
|
827
827
|
* @param props - {@link GetOpenAccountRequirementsProps} you can pass StrategyConfigPayload here
|
|
828
828
|
* @returns Open account requirements or undefined if the user can open a credit account without any further actions
|
|
829
829
|
*/
|
|
830
|
-
getOpenAccountRequirements(borrower: Address, creditManager: Address, props: GetOpenAccountRequirementsProps): Promise<
|
|
830
|
+
getOpenAccountRequirements(borrower: Address, creditManager: Address, props: GetOpenAccountRequirementsProps): Promise<RWAOpenAccountRequirements | undefined>;
|
|
831
831
|
/**
|
|
832
832
|
* Executes swap specified by given calls, update quotas of affected tokens
|
|
833
833
|
* - Open credit account is executed in the following order: price update -> increase debt -> add collateral ->
|
|
@@ -884,39 +884,39 @@ export interface ICreditAccountsService extends Construct {
|
|
|
884
884
|
ignoreReservePrices?: boolean;
|
|
885
885
|
}): Promise<RawTx>;
|
|
886
886
|
/**
|
|
887
|
-
* Returns multicall entries to redeem (unwrap)
|
|
888
|
-
* Used when withdrawing debt from a
|
|
889
|
-
* Only applies when the credit manager's underlying is
|
|
887
|
+
* Returns multicall entries to redeem (unwrap) RWA ERC-4626 vault shares into underlying for the given credit manager.
|
|
888
|
+
* Used when withdrawing debt from a RWA market: redeems adapter vault shares so the underlying can be withdrawn.
|
|
889
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
890
890
|
* @param amount - Number of vault shares (adapter tokens) to redeem
|
|
891
891
|
* @param creditManager - Credit manager address
|
|
892
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
892
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
893
893
|
*/
|
|
894
|
-
|
|
894
|
+
getRWAUnwrapCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
895
895
|
/**
|
|
896
|
-
* Returns multicall entries to deposit (wrap) underlying into
|
|
897
|
-
* Used when adding debt on a
|
|
898
|
-
* Only applies when the credit manager's underlying is
|
|
896
|
+
* Returns multicall entries to deposit (wrap) underlying into RWA ERC-4626 vault shares for the given credit manager.
|
|
897
|
+
* Used when adding debt on a RWA market: deposits underlying into the adapter vault so shares are minted on the account.
|
|
898
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
899
899
|
* @param amount - Amount of underlying assets to deposit into the vault (in underlying decimals)
|
|
900
900
|
* @param creditManager - Credit manager address
|
|
901
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
901
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
902
902
|
*/
|
|
903
|
-
|
|
903
|
+
getRWAWrapCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
904
904
|
/**
|
|
905
|
-
* Returns multicall entries to call redeemDiff on the
|
|
906
|
-
* Redeems the leftover vault shares (e.g. after repaying debt) so the account does not hold excess
|
|
907
|
-
* Only applies when the credit manager's underlying is
|
|
905
|
+
* Returns multicall entries to call redeemDiff on the RWA ERC-4626 adapter for the given credit manager.
|
|
906
|
+
* Redeems the leftover vault shares (e.g. after repaying debt) so the account does not hold excess RWA vault tokens.
|
|
907
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
908
908
|
* @param amount - Leftover vault share amount to redeem (in adapter/vault decimals)
|
|
909
909
|
* @param creditManager - Credit manager address
|
|
910
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
910
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
911
911
|
*/
|
|
912
912
|
getRedeemDiffCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
913
913
|
/**
|
|
914
|
-
* Returns multicall entries to call depositDiff on the
|
|
914
|
+
* Returns multicall entries to call depositDiff on the RWA ERC-4626 adapter for the given credit manager.
|
|
915
915
|
* Deposits the leftover underlying (e.g. after decreasing debt) into the vault so the account does not hold excess underlying.
|
|
916
|
-
* Only applies when the credit manager's underlying is
|
|
916
|
+
* Only applies when the credit manager's underlying is RWA-gated and has an ERC-4626 adapter configured.
|
|
917
917
|
* @param amount - Leftover underlying amount to deposit into the vault (in underlying decimals)
|
|
918
918
|
* @param creditManager - Credit manager address
|
|
919
|
-
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not
|
|
919
|
+
* @returns Array of MultiCall to pass to credit facade multicall, or undefined if underlying is not RWA or no adapter is configured
|
|
920
920
|
*/
|
|
921
921
|
getDepositDiffCalls(amount: bigint, creditManager: Address): Promise<Array<MultiCall> | undefined>;
|
|
922
922
|
/**
|
|
@@ -2,7 +2,7 @@ import type { Address, Chain, PublicClient, Transport } from "viem";
|
|
|
2
2
|
import type { Asset } from "../router/index.js";
|
|
3
3
|
import type { ILogger } from "../types/logger.js";
|
|
4
4
|
import { AddressMap } from "../utils/index.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { PhantomTokenMeta, RWATokenMeta, TokenMetaData } from "./token-types.js";
|
|
6
6
|
/**
|
|
7
7
|
* Options for {@link TokensMeta.formatBN}.
|
|
8
8
|
**/
|
|
@@ -51,21 +51,21 @@ export declare class TokensMeta extends AddressMap<TokenMetaData> {
|
|
|
51
51
|
*/
|
|
52
52
|
isPhantomToken(t: TokenMetaData): t is PhantomTokenMeta;
|
|
53
53
|
/**
|
|
54
|
-
* Returns true if the token is a
|
|
54
|
+
* Returns true if the token is a RWA underlying token, throws if the token data is not loaded
|
|
55
55
|
* @param t
|
|
56
56
|
* @returns
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
isRWAUnderlying(t: TokenMetaData): t is RWATokenMeta;
|
|
59
59
|
/**
|
|
60
60
|
* Returns a map of all phantom tokens
|
|
61
61
|
* Throws if token data is not loaded
|
|
62
62
|
*/
|
|
63
63
|
get phantomTokens(): AddressMap<PhantomTokenMeta>;
|
|
64
64
|
/**
|
|
65
|
-
* Returns a map of all
|
|
65
|
+
* Returns a map of all RWA underlying tokens
|
|
66
66
|
* Throws if token data is not loaded
|
|
67
67
|
*/
|
|
68
|
-
get
|
|
68
|
+
get rwaUnderlyings(): AddressMap<RWATokenMeta>;
|
|
69
69
|
/**
|
|
70
70
|
* Formats a raw token amount into a human-readable decimal string,
|
|
71
71
|
* dividing by `10^decimals` for the token.
|
|
@@ -2,11 +2,11 @@ import type { Address } from "viem";
|
|
|
2
2
|
import type { MarketData, Unarray } from "./types.js";
|
|
3
3
|
type TokenData = Unarray<MarketData["tokens"]>;
|
|
4
4
|
export declare const PHANTOM_TOKEN_CONTRACT_TYPES: readonly ["PHANTOM_TOKEN::CONVEX", "PHANTOM_TOKEN::INFINIFI_UNWIND", "PHANTOM_TOKEN::INFRARED", "PHANTOM_TOKEN::MELLOW_WITHDRAWAL", "PHANTOM_TOKEN::MIDAS_REDEMPTION", "PHANTOM_TOKEN::STAKING_REWARDS", "PHANTOM_TOKEN::UPSHIFT_WITHDRAW"];
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export type
|
|
8
|
-
export declare const
|
|
9
|
-
export type
|
|
5
|
+
export declare const RWA_UNDERLYING_DEFAULT = "RWA_UNDERLYING::DEFAULT";
|
|
6
|
+
export declare const RWA_UNDERLYING_ON_DEMAND = "RWA_UNDERLYING::ON_DEMAND";
|
|
7
|
+
export type RWAUnderlyingContractType = typeof RWA_UNDERLYING_DEFAULT | typeof RWA_UNDERLYING_ON_DEMAND;
|
|
8
|
+
export declare const RWA_ON_DEMAND_LP_MONOPOLIZED = "ON_DEMAND_LP::MONOPOLIZED";
|
|
9
|
+
export type RWAOnDemandLpContractType = typeof RWA_ON_DEMAND_LP_MONOPOLIZED;
|
|
10
10
|
export type PhantomTokenContractType = (typeof PHANTOM_TOKEN_CONTRACT_TYPES)[number];
|
|
11
11
|
export interface SimpleTokenMeta extends TokenData {
|
|
12
12
|
contractType?: string;
|
|
@@ -14,9 +14,9 @@ export interface SimpleTokenMeta extends TokenData {
|
|
|
14
14
|
export type PhantomTokenMeta = SimpleTokenMeta & {
|
|
15
15
|
contractType: PhantomTokenContractType;
|
|
16
16
|
};
|
|
17
|
-
export interface
|
|
18
|
-
contractType: typeof
|
|
19
|
-
|
|
17
|
+
export interface RWADefaultTokenMeta extends SimpleTokenMeta {
|
|
18
|
+
contractType: typeof RWA_UNDERLYING_DEFAULT;
|
|
19
|
+
rwaFactory: Address;
|
|
20
20
|
asset: Address;
|
|
21
21
|
}
|
|
22
22
|
export interface LPMonopolizedPoolMeta {
|
|
@@ -26,10 +26,10 @@ export interface LPMonopolizedPoolMeta {
|
|
|
26
26
|
depositAllowance: bigint;
|
|
27
27
|
claimableAmount: bigint;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface RWAOnDemandLPMonopolizedMeta {
|
|
30
30
|
addr: Address;
|
|
31
31
|
version: bigint;
|
|
32
|
-
contractType: typeof
|
|
32
|
+
contractType: typeof RWA_ON_DEMAND_LP_MONOPOLIZED;
|
|
33
33
|
marketConfigurator: Address;
|
|
34
34
|
/**
|
|
35
35
|
* Only this user can deposit into the pool and withdraw
|
|
@@ -38,16 +38,16 @@ export interface KYCOnDemandLPMonopolizedMeta {
|
|
|
38
38
|
depositor: Address;
|
|
39
39
|
pools: LPMonopolizedPoolMeta[];
|
|
40
40
|
}
|
|
41
|
-
export type
|
|
42
|
-
export interface
|
|
43
|
-
contractType: typeof
|
|
44
|
-
|
|
41
|
+
export type RWAOnDemandLPMeta = RWAOnDemandLPMonopolizedMeta;
|
|
42
|
+
export interface RWAOnDemandTokenMeta extends SimpleTokenMeta {
|
|
43
|
+
contractType: typeof RWA_UNDERLYING_ON_DEMAND;
|
|
44
|
+
rwaFactory: Address;
|
|
45
45
|
asset: Address;
|
|
46
46
|
pool: Address;
|
|
47
47
|
marketConfigurator: Address;
|
|
48
48
|
allowedDepositors: Address[];
|
|
49
|
-
liquidityProvider:
|
|
49
|
+
liquidityProvider: RWAOnDemandLPMeta;
|
|
50
50
|
}
|
|
51
|
-
export type
|
|
52
|
-
export type TokenMetaData = SimpleTokenMeta | PhantomTokenMeta |
|
|
51
|
+
export type RWATokenMeta = RWADefaultTokenMeta | RWAOnDemandTokenMeta;
|
|
52
|
+
export type TokenMetaData = SimpleTokenMeta | PhantomTokenMeta | RWATokenMeta;
|
|
53
53
|
export {};
|
|
@@ -113,7 +113,7 @@ export interface CreditAccountDataPayload {
|
|
|
113
113
|
**/
|
|
114
114
|
underlying: Address;
|
|
115
115
|
/**
|
|
116
|
-
* Credit account's owner (contract address for
|
|
116
|
+
* Credit account's owner (contract address for RWA accounts, EOA for
|
|
117
117
|
* normal accounts).
|
|
118
118
|
**/
|
|
119
119
|
owner: Address;
|
|
@@ -176,7 +176,7 @@ export interface CreditAccountDataPayload {
|
|
|
176
176
|
export type CreditAccountData<WithInvestor extends boolean = false> = WithInvestor extends true ? CreditAccountDataPayload & {
|
|
177
177
|
/**
|
|
178
178
|
* Investor EOA address (the real person behind the account).
|
|
179
|
-
* -
|
|
179
|
+
* - RWA accounts: resolved from RWA factory, always defined.
|
|
180
180
|
* - Normal accounts: `undefined` (owner IS the investor).
|
|
181
181
|
**/
|
|
182
182
|
investor: Address | undefined;
|
|
@@ -21,9 +21,9 @@ export interface GearboxChain extends Chain {
|
|
|
21
21
|
**/
|
|
22
22
|
defaultMarketConfigurators: Record<Address, Curator>;
|
|
23
23
|
/**
|
|
24
|
-
* Known
|
|
24
|
+
* Known RWA factory addresses on this chain
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
rwaFactories: Address[];
|
|
27
27
|
/**
|
|
28
28
|
* Market configurators used in test/staging environments.
|
|
29
29
|
**/
|
|
@@ -31,7 +31,7 @@ export declare const AP_WETH_GATEWAY = "WETH_GATEWAY";
|
|
|
31
31
|
export declare const AP_WETH_TOKEN = "WETH_TOKEN";
|
|
32
32
|
export declare const AP_ZAPPER_REGISTER = "ZAPPER_REGISTER";
|
|
33
33
|
export declare const AP_ZERO_PRICE_FEED = "ZERO_PRICE_FEED";
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const AP_RWA_COMPRESSOR = "GLOBAL::RWA_COMPRESSOR";
|
|
35
35
|
/**
|
|
36
36
|
* Default address provider address for v3.1.0
|
|
37
37
|
* Is determenistic and does not depend on the network type
|
|
@@ -4,11 +4,11 @@ import { SDKConstruct } from "../base/index.js";
|
|
|
4
4
|
import type { OnchainSDK } from "../OnchainSDK.js";
|
|
5
5
|
import type { MarketStateHuman } from "../types/index.js";
|
|
6
6
|
import { CreditSuite } from "./credit/index.js";
|
|
7
|
-
import type { IKYCFactory } from "./kyc/types.js";
|
|
8
7
|
import { type ILossPolicyContract } from "./loss-policy/index.js";
|
|
9
8
|
import { MarketConfiguratorContract } from "./MarketConfiguratorContract.js";
|
|
10
9
|
import type { IPriceOracleContract } from "./oracle/index.js";
|
|
11
10
|
import { PoolSuite } from "./pool/index.js";
|
|
11
|
+
import type { IRWAFactory } from "./rwa/types.js";
|
|
12
12
|
export declare class MarketSuite extends SDKConstruct {
|
|
13
13
|
readonly acl: Address;
|
|
14
14
|
readonly treasury: Address;
|
|
@@ -23,7 +23,7 @@ export declare class MarketSuite extends SDKConstruct {
|
|
|
23
23
|
readonly state: MarketData;
|
|
24
24
|
constructor(sdk: OnchainSDK, marketData: MarketData);
|
|
25
25
|
get underlying(): Address;
|
|
26
|
-
get
|
|
26
|
+
get rwaFactory(): IRWAFactory | undefined;
|
|
27
27
|
get dirty(): boolean;
|
|
28
28
|
get watchAddresses(): Set<Address>;
|
|
29
29
|
stateHuman(raw?: boolean): MarketStateHuman;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from "./adapters/index.js";
|
|
2
2
|
export * from "./credit/index.js";
|
|
3
|
-
export * from "./kyc/index.js";
|
|
4
3
|
export * from "./MarketRegister.js";
|
|
5
4
|
export * from "./MarketSuite.js";
|
|
6
5
|
export * from "./oracle/index.js";
|
|
7
6
|
export * from "./pool/index.js";
|
|
8
7
|
export * from "./pricefeeds/index.js";
|
|
8
|
+
export * from "./rwa/index.js";
|
|
9
9
|
export * from "./types.js";
|
|
@@ -3,8 +3,8 @@ import type { MarketData } from "../../base/index.js";
|
|
|
3
3
|
import { SDKConstruct } from "../../base/index.js";
|
|
4
4
|
import type { OnchainSDK } from "../../OnchainSDK.js";
|
|
5
5
|
import type { PoolSuiteStateHuman } from "../../types/index.js";
|
|
6
|
-
import type { IKYCFactory } from "../kyc/types.js";
|
|
7
6
|
import type { MarketConfiguratorContract } from "../MarketConfiguratorContract.js";
|
|
7
|
+
import type { IRWAFactory } from "../rwa/types.js";
|
|
8
8
|
import { GaugeContract } from "./GaugeContract.js";
|
|
9
9
|
import { LinearInterestRateModelContract } from "./LinearInterestRateModelContract.js";
|
|
10
10
|
import { TumblerContract } from "./TumblerContract.js";
|
|
@@ -21,7 +21,7 @@ export declare class PoolSuite extends SDKConstruct {
|
|
|
21
21
|
get linearModel(): LinearInterestRateModelContract;
|
|
22
22
|
get marketConfigurator(): MarketConfiguratorContract;
|
|
23
23
|
get underlying(): Address;
|
|
24
|
-
get
|
|
24
|
+
get rwaFactory(): IRWAFactory | undefined;
|
|
25
25
|
get dirty(): boolean;
|
|
26
26
|
get watchAddresses(): Set<Address>;
|
|
27
27
|
stateHuman(raw?: boolean): PoolSuiteStateHuman;
|
|
@@ -4,7 +4,7 @@ import { BaseContract } from "../../base/index.js";
|
|
|
4
4
|
import type { OnchainSDK } from "../../OnchainSDK.js";
|
|
5
5
|
import type { PoolStateHuman } from "../../types/index.js";
|
|
6
6
|
import { AddressMap } from "../../utils/index.js";
|
|
7
|
-
import type {
|
|
7
|
+
import type { IRWAFactory } from "../rwa/types.js";
|
|
8
8
|
declare const abi: readonly [{
|
|
9
9
|
readonly type: "function";
|
|
10
10
|
readonly inputs: readonly [];
|
|
@@ -1135,7 +1135,7 @@ export declare class PoolV310Contract extends BaseContract<abi> {
|
|
|
1135
1135
|
#private;
|
|
1136
1136
|
readonly creditManagerDebtParams: AddressMap<CreditManagerDebtParams>;
|
|
1137
1137
|
constructor(sdk: OnchainSDK, data: PoolState);
|
|
1138
|
-
get
|
|
1138
|
+
get rwaFactory(): IRWAFactory | undefined;
|
|
1139
1139
|
stateHuman(raw?: boolean): PoolStateHuman;
|
|
1140
1140
|
processLog(log: Log<bigint, number, false, undefined, undefined, abi, ContractEventName<abi>>): void;
|
|
1141
1141
|
protected stringifyFunctionParams(params: DecodeFunctionDataReturnType<abi>): string[];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Address } from "abitype";
|
|
2
|
+
import { SDKConstruct } from "../../base/index.js";
|
|
3
|
+
import type { DelegatedMulticall } from "../../utils/viem/index.js";
|
|
4
|
+
import { SecuritizeRWAFactory } from "./securitize/index.js";
|
|
5
|
+
import type { RWACompressorResponse, RWAInvestorData, RWAState, RWAStateHuman } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Registry of RWA underlying tokens and RWA factory contracts.
|
|
8
|
+
*
|
|
9
|
+
* Populated from the on-chain {@link https://github.com/Gearbox-protocol/periphery-v3 RWACompressor}
|
|
10
|
+
* during SDK attach/hydrate. Provides methods to query investor-level data and
|
|
11
|
+
* to resolve RWA factory instances by address.
|
|
12
|
+
**/
|
|
13
|
+
export declare class RWARegistry extends SDKConstruct {
|
|
14
|
+
#private;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*
|
|
18
|
+
* Returns delegated multicalls for loading all RWA underlying tokens from the on-chain RWA compressor.
|
|
19
|
+
* Used by the SDK to compose batched RPC calls.
|
|
20
|
+
*
|
|
21
|
+
* @param configurators - Market configurators to query.
|
|
22
|
+
* @param rwaFactories - RWA factory contracts to query.
|
|
23
|
+
*/
|
|
24
|
+
getLoadMulticalls(configurators: Address[], rwaFactories?: Address[]): DelegatedMulticall[];
|
|
25
|
+
/**
|
|
26
|
+
* Fetches decoded investor data from the on-chain RWA compressor.
|
|
27
|
+
*
|
|
28
|
+
* Each factory produces its own investor data (e.g. registered tokens,
|
|
29
|
+
* cached signatures, EIP-712 messages to sign).
|
|
30
|
+
*
|
|
31
|
+
* @param investor - Investor EOA address.
|
|
32
|
+
* @param factories_ - Optional subset of factory addresses to query.
|
|
33
|
+
* When omitted, all loaded factories are used.
|
|
34
|
+
*/
|
|
35
|
+
getInvestorData(investor: Address, factories_?: Address[]): Promise<RWAInvestorData[]>;
|
|
36
|
+
/** All loaded RWA factory instances. */
|
|
37
|
+
get factories(): SecuritizeRWAFactory[];
|
|
38
|
+
/** Raw RWA compressor response, or `undefined` before attach/hydrate. */
|
|
39
|
+
get state(): RWAState | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Returns a human-readable snapshot of the RWA state.
|
|
42
|
+
*/
|
|
43
|
+
stateHuman(raw?: boolean): RWAStateHuman;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*
|
|
47
|
+
* Replaces the internal state with a new RWA compressor response.
|
|
48
|
+
* Rebuilds token metadata for RWA underlyings and re-instantiates factory
|
|
49
|
+
* wrappers.
|
|
50
|
+
*/
|
|
51
|
+
setState(resp?: RWACompressorResponse): void;
|
|
52
|
+
}
|