@centrifuge/sdk 0.0.0-alpha.11 → 0.0.0-alpha.14
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/README.md +7 -7
- package/dist/Centrifuge.d.ts +103 -53
- package/dist/Centrifuge.d.ts.map +1 -1
- package/dist/Centrifuge.js +260 -42
- package/dist/Centrifuge.js.map +1 -1
- package/dist/Centrifuge.test.d.ts +2 -0
- package/dist/Centrifuge.test.d.ts.map +1 -0
- package/dist/Centrifuge.test.js +369 -0
- package/dist/Centrifuge.test.js.map +1 -0
- package/dist/abi/Accounting.abi.d.ts +3 -0
- package/dist/abi/Accounting.abi.d.ts.map +1 -0
- package/dist/abi/Accounting.abi.js +32 -0
- package/dist/abi/Accounting.abi.js.map +1 -0
- package/dist/abi/AsyncRequestManager.abi.d.ts +3 -0
- package/dist/abi/AsyncRequestManager.abi.d.ts.map +1 -0
- package/dist/abi/AsyncRequestManager.abi.js +79 -0
- package/dist/abi/AsyncRequestManager.abi.js.map +1 -0
- package/dist/abi/AsyncVault.abi.d.ts +3 -0
- package/dist/abi/AsyncVault.abi.d.ts.map +1 -0
- package/dist/abi/AsyncVault.abi.js +100 -0
- package/dist/abi/AsyncVault.abi.js.map +1 -0
- package/dist/abi/Currency.abi.d.ts +3 -0
- package/dist/abi/Currency.abi.d.ts.map +1 -0
- package/dist/abi/Currency.abi.js +15 -0
- package/dist/abi/Currency.abi.js.map +1 -0
- package/dist/abi/Holdings.abi.d.ts +3 -0
- package/dist/abi/Holdings.abi.d.ts.map +1 -0
- package/dist/abi/Holdings.abi.js +38 -0
- package/dist/abi/Holdings.abi.js.map +1 -0
- package/dist/abi/Hub.abi.d.ts +3 -0
- package/dist/abi/Hub.abi.d.ts.map +1 -0
- package/dist/abi/Hub.abi.js +82 -0
- package/dist/abi/Hub.abi.js.map +1 -0
- package/dist/abi/HubRegistry.abi.d.ts +3 -0
- package/dist/abi/HubRegistry.abi.d.ts.map +1 -0
- package/dist/abi/HubRegistry.abi.js +39 -0
- package/dist/abi/HubRegistry.abi.js.map +1 -0
- package/dist/abi/IERC7726.abi.d.ts +3 -0
- package/dist/abi/IERC7726.abi.d.ts.map +1 -0
- package/dist/abi/IERC7726.abi.js +2 -0
- package/dist/abi/IERC7726.abi.js.map +1 -0
- package/dist/abi/MessageDispatcher.abi.d.ts +3 -0
- package/dist/abi/MessageDispatcher.abi.d.ts.map +1 -0
- package/dist/abi/MessageDispatcher.abi.js +49 -0
- package/dist/abi/MessageDispatcher.abi.js.map +1 -0
- package/dist/abi/PoolManager.abi.d.ts +3 -0
- package/dist/abi/PoolManager.abi.d.ts.map +1 -0
- package/dist/abi/PoolManager.abi.js +89 -0
- package/dist/abi/PoolManager.abi.js.map +1 -0
- package/dist/abi/RestrictionManager.abi.d.ts +3 -0
- package/dist/abi/RestrictionManager.abi.d.ts.map +1 -0
- package/dist/abi/RestrictionManager.abi.js +23 -0
- package/dist/abi/RestrictionManager.abi.js.map +1 -0
- package/dist/abi/ShareClassManager.abi.d.ts +3 -0
- package/dist/abi/ShareClassManager.abi.d.ts.map +1 -0
- package/dist/abi/ShareClassManager.abi.js +84 -0
- package/dist/abi/ShareClassManager.abi.js.map +1 -0
- package/dist/abi/SyncRequestManager.abi.d.ts +3 -0
- package/dist/abi/SyncRequestManager.abi.d.ts.map +1 -0
- package/dist/abi/SyncRequestManager.abi.js +59 -0
- package/dist/abi/SyncRequestManager.abi.js.map +1 -0
- package/dist/abi/VaultRouter.abi.d.ts +3 -0
- package/dist/abi/VaultRouter.abi.d.ts.map +1 -0
- package/dist/abi/VaultRouter.abi.js +58 -0
- package/dist/abi/VaultRouter.abi.js.map +1 -0
- package/dist/abi/index.d.ts +7703 -8
- package/dist/abi/index.d.ts.map +1 -1
- package/dist/abi/index.js +28 -16
- package/dist/abi/index.js.map +1 -1
- package/dist/config/chains.d.ts +457 -449
- package/dist/config/chains.d.ts.map +1 -1
- package/dist/config/chains.js +9 -1
- package/dist/config/chains.js.map +1 -1
- package/dist/config/protocol.d.ts +3 -0
- package/dist/config/protocol.d.ts.map +1 -0
- package/dist/config/protocol.js +4 -0
- package/dist/config/protocol.js.map +1 -0
- package/dist/{Entity.d.ts → entities/Entity.d.ts} +1 -1
- package/dist/entities/Entity.d.ts.map +1 -0
- package/dist/entities/Entity.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/assetSnapshots.d.ts +14 -14
- package/dist/entities/IndexerQueries/assetSnapshots.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/assetSnapshots.js +15 -17
- package/dist/entities/IndexerQueries/assetSnapshots.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/assetTransactions.d.ts +6 -6
- package/dist/entities/IndexerQueries/assetTransactions.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/assetTransactions.js +7 -7
- package/dist/entities/IndexerQueries/assetTransactions.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/epochs.d.ts +7 -7
- package/dist/entities/IndexerQueries/epochs.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/epochs.js +7 -7
- package/dist/entities/IndexerQueries/epochs.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/index.d.ts +24 -24
- package/dist/entities/IndexerQueries/index.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/index.js +7 -7
- package/dist/entities/IndexerQueries/index.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/investorTransactions.d.ts +4 -4
- package/dist/entities/IndexerQueries/investorTransactions.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/investorTransactions.js +4 -4
- package/dist/entities/IndexerQueries/investorTransactions.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/poolFeeSnapshots.d.ts +8 -8
- package/dist/entities/IndexerQueries/poolFeeSnapshots.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/poolFeeSnapshots.js +8 -8
- package/dist/entities/IndexerQueries/poolFeeSnapshots.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/poolFeeTransactions.d.ts +2 -2
- package/dist/entities/IndexerQueries/poolFeeTransactions.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/poolFeeTransactions.js +3 -3
- package/dist/entities/IndexerQueries/poolFeeTransactions.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/poolSnapshots.d.ts +23 -23
- package/dist/entities/IndexerQueries/poolSnapshots.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/poolSnapshots.js +23 -23
- package/dist/entities/IndexerQueries/poolSnapshots.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/trancheCurrencyBalance.d.ts +15 -15
- package/dist/entities/IndexerQueries/trancheCurrencyBalance.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/trancheCurrencyBalance.js +8 -8
- package/dist/entities/IndexerQueries/trancheCurrencyBalance.js.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/trancheSnapshots.d.ts +6 -6
- package/dist/entities/IndexerQueries/trancheSnapshots.d.ts.map +1 -0
- package/dist/{IndexerQueries → entities/IndexerQueries}/trancheSnapshots.js +6 -6
- package/dist/entities/IndexerQueries/trancheSnapshots.js.map +1 -0
- package/dist/entities/Investor.d.ts +36 -0
- package/dist/entities/Investor.d.ts.map +1 -0
- package/dist/entities/Investor.js +26 -0
- package/dist/entities/Investor.js.map +1 -0
- package/dist/entities/Investor.test.d.ts +2 -0
- package/dist/entities/Investor.test.d.ts.map +1 -0
- package/dist/entities/Investor.test.js +16 -0
- package/dist/entities/Investor.test.js.map +1 -0
- package/dist/entities/Pool.d.ts +65 -0
- package/dist/entities/Pool.d.ts.map +1 -0
- package/dist/entities/Pool.js +173 -0
- package/dist/entities/Pool.js.map +1 -0
- package/dist/entities/Pool.test.d.ts +2 -0
- package/dist/entities/Pool.test.d.ts.map +1 -0
- package/dist/entities/Pool.test.js +67 -0
- package/dist/entities/Pool.test.js.map +1 -0
- package/dist/entities/PoolNetwork.d.ts +39 -0
- package/dist/entities/PoolNetwork.d.ts.map +1 -0
- package/dist/entities/PoolNetwork.js +134 -0
- package/dist/entities/PoolNetwork.js.map +1 -0
- package/dist/entities/PoolNetwork.test.d.ts +2 -0
- package/dist/entities/PoolNetwork.test.d.ts.map +1 -0
- package/dist/entities/PoolNetwork.test.js +64 -0
- package/dist/entities/PoolNetwork.test.js.map +1 -0
- package/dist/{Reports → entities/Reports}/Processor.d.ts +1 -1
- package/dist/entities/Reports/Processor.d.ts.map +1 -0
- package/dist/{Reports → entities/Reports}/Processor.js +15 -14
- package/dist/entities/Reports/Processor.js.map +1 -0
- package/dist/entities/Reports/Processor.test.d.ts +2 -0
- package/dist/entities/Reports/Processor.test.d.ts.map +1 -0
- package/dist/entities/Reports/Processor.test.js +767 -0
- package/dist/entities/Reports/Processor.test.js.map +1 -0
- package/dist/entities/Reports/Reports.test.d.ts +2 -0
- package/dist/entities/Reports/Reports.test.d.ts.map +1 -0
- package/dist/entities/Reports/Reports.test.js +559 -0
- package/dist/entities/Reports/Reports.test.js.map +1 -0
- package/dist/{Reports → entities/Reports}/index.d.ts +2 -2
- package/dist/entities/Reports/index.d.ts.map +1 -0
- package/dist/{Reports → entities/Reports}/index.js +1 -1
- package/dist/entities/Reports/index.js.map +1 -0
- package/dist/entities/ShareClass.d.ts +61 -0
- package/dist/entities/ShareClass.d.ts.map +1 -0
- package/dist/entities/ShareClass.js +420 -0
- package/dist/entities/ShareClass.js.map +1 -0
- package/dist/entities/ShareClass.test.d.ts +2 -0
- package/dist/entities/ShareClass.test.d.ts.map +1 -0
- package/dist/entities/ShareClass.test.js +72 -0
- package/dist/entities/ShareClass.test.js.map +1 -0
- package/dist/entities/Vault.d.ts +85 -0
- package/dist/entities/Vault.d.ts.map +1 -0
- package/dist/{Vault.js → entities/Vault.js} +215 -145
- package/dist/entities/Vault.js.map +1 -0
- package/dist/entities/Vault.test.d.ts +2 -0
- package/dist/entities/Vault.test.d.ts.map +1 -0
- package/dist/entities/Vault.test.js +252 -0
- package/dist/entities/Vault.test.js.map +1 -0
- package/dist/index.d.ts +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/tests/contracts.d.ts +2 -0
- package/dist/tests/contracts.d.ts.map +1 -0
- package/dist/tests/contracts.js +40 -0
- package/dist/tests/contracts.js.map +1 -0
- package/dist/tests/mocks/mockAssetSnapshots.d.ts +1 -1
- package/dist/tests/mocks/mockAssetSnapshots.d.ts.map +1 -1
- package/dist/tests/mocks/mockAssetSnapshots.js +27 -27
- package/dist/tests/mocks/mockAssetSnapshots.js.map +1 -1
- package/dist/tests/mocks/mockAssetTransactions.d.ts +1 -1
- package/dist/tests/mocks/mockAssetTransactions.d.ts.map +1 -1
- package/dist/tests/mocks/mockAssetTransactions.js +12 -12
- package/dist/tests/mocks/mockAssetTransactions.js.map +1 -1
- package/dist/tests/mocks/mockEpochs.d.ts +1 -1
- package/dist/tests/mocks/mockEpochs.d.ts.map +1 -1
- package/dist/tests/mocks/mockEpochs.js +13 -13
- package/dist/tests/mocks/mockEpochs.js.map +1 -1
- package/dist/tests/mocks/mockInvestorCurrencyBalance.d.ts +1 -1
- package/dist/tests/mocks/mockInvestorCurrencyBalance.d.ts.map +1 -1
- package/dist/tests/mocks/mockInvestorCurrencyBalance.js +15 -15
- package/dist/tests/mocks/mockInvestorCurrencyBalance.js.map +1 -1
- package/dist/tests/mocks/mockInvestorTransactions.d.ts +1 -1
- package/dist/tests/mocks/mockInvestorTransactions.d.ts.map +1 -1
- package/dist/tests/mocks/mockInvestorTransactions.js +5 -5
- package/dist/tests/mocks/mockInvestorTransactions.js.map +1 -1
- package/dist/tests/mocks/mockPoolFeeSnapshot.d.ts +1 -1
- package/dist/tests/mocks/mockPoolFeeSnapshot.d.ts.map +1 -1
- package/dist/tests/mocks/mockPoolFeeSnapshot.js +29 -29
- package/dist/tests/mocks/mockPoolFeeSnapshot.js.map +1 -1
- package/dist/tests/mocks/mockPoolFeeTransactions.d.ts +3 -3
- package/dist/tests/mocks/mockPoolFeeTransactions.d.ts.map +1 -1
- package/dist/tests/mocks/mockPoolFeeTransactions.js +3 -3
- package/dist/tests/mocks/mockPoolFeeTransactions.js.map +1 -1
- package/dist/tests/mocks/mockPoolMetadata.d.ts.map +1 -1
- package/dist/tests/mocks/mockPoolMetadata.js +5 -15
- package/dist/tests/mocks/mockPoolMetadata.js.map +1 -1
- package/dist/tests/mocks/mockPoolSnapshots.d.ts +1 -1
- package/dist/tests/mocks/mockPoolSnapshots.d.ts.map +1 -1
- package/dist/tests/mocks/mockPoolSnapshots.js +45 -45
- package/dist/tests/mocks/mockPoolSnapshots.js.map +1 -1
- package/dist/tests/mocks/mockTrancheSnapshots.d.ts +1 -1
- package/dist/tests/mocks/mockTrancheSnapshots.d.ts.map +1 -1
- package/dist/tests/mocks/mockTrancheSnapshots.js +21 -21
- package/dist/tests/mocks/mockTrancheSnapshots.js.map +1 -1
- package/dist/tests/setup.d.ts.map +1 -1
- package/dist/tests/setup.js +2 -1
- package/dist/tests/setup.js.map +1 -1
- package/dist/tests/tenderly.js +1 -1
- package/dist/tests/tenderly.js.map +1 -1
- package/dist/types/holdings.d.ts +9 -0
- package/dist/types/holdings.d.ts.map +1 -0
- package/dist/types/holdings.js +10 -0
- package/dist/types/holdings.js.map +1 -0
- package/dist/types/index.d.ts +46 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/poolInput.d.ts +70 -0
- package/dist/types/poolInput.d.ts.map +1 -0
- package/dist/types/poolInput.js +2 -0
- package/dist/types/poolInput.js.map +1 -0
- package/dist/types/poolMetadata.d.ts +5 -12
- package/dist/types/poolMetadata.d.ts.map +1 -1
- package/dist/types/reports.d.ts +70 -68
- package/dist/types/reports.d.ts.map +1 -1
- package/dist/types/transaction.d.ts +5 -0
- package/dist/types/transaction.d.ts.map +1 -1
- package/dist/utils/BigInt.d.ts +16 -23
- package/dist/utils/BigInt.d.ts.map +1 -1
- package/dist/utils/BigInt.js +12 -25
- package/dist/utils/BigInt.js.map +1 -1
- package/dist/utils/BigInt.test.d.ts +2 -0
- package/dist/utils/BigInt.test.d.ts.map +1 -0
- package/dist/utils/BigInt.test.js +298 -0
- package/dist/utils/BigInt.test.js.map +1 -0
- package/dist/utils/createPinning.d.ts +5 -0
- package/dist/utils/createPinning.d.ts.map +1 -0
- package/dist/utils/createPinning.js +16 -0
- package/dist/utils/createPinning.js.map +1 -0
- package/dist/utils/currencies.d.ts +5 -0
- package/dist/utils/currencies.d.ts.map +1 -0
- package/dist/utils/currencies.js +7 -0
- package/dist/utils/currencies.js.map +1 -0
- package/dist/utils/decimal.d.ts +2 -2
- package/dist/utils/decimal.d.ts.map +1 -1
- package/dist/utils/decimal.js.map +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/pinToApi.d.ts +1 -1
- package/dist/utils/pinToApi.d.ts.map +1 -1
- package/dist/utils/pinToApi.js +6 -7
- package/dist/utils/pinToApi.js.map +1 -1
- package/dist/utils/pinToApi.test.d.ts +2 -0
- package/dist/utils/pinToApi.test.d.ts.map +1 -0
- package/dist/utils/pinToApi.test.js +54 -0
- package/dist/utils/pinToApi.test.js.map +1 -0
- package/dist/utils/rx.d.ts +1 -1
- package/dist/utils/rx.d.ts.map +1 -1
- package/dist/utils/rx.js +4 -0
- package/dist/utils/rx.js.map +1 -1
- package/dist/utils/transaction.d.ts.map +1 -1
- package/dist/utils/transaction.js +21 -5
- package/dist/utils/transaction.js.map +1 -1
- package/dist/utils/types.d.ts +33 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +83 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/types.test.d.ts +2 -0
- package/dist/utils/types.test.d.ts.map +1 -0
- package/dist/utils/types.test.js +89 -0
- package/dist/utils/types.test.js.map +1 -0
- package/package.json +8 -6
- package/dist/Account.d.ts +0 -11
- package/dist/Account.d.ts.map +0 -1
- package/dist/Account.js +0 -46
- package/dist/Account.js.map +0 -1
- package/dist/Entity.d.ts.map +0 -1
- package/dist/Entity.js.map +0 -1
- package/dist/IndexerQueries/assetSnapshots.d.ts.map +0 -1
- package/dist/IndexerQueries/assetSnapshots.js.map +0 -1
- package/dist/IndexerQueries/assetTransactions.d.ts.map +0 -1
- package/dist/IndexerQueries/assetTransactions.js.map +0 -1
- package/dist/IndexerQueries/epochs.d.ts.map +0 -1
- package/dist/IndexerQueries/epochs.js.map +0 -1
- package/dist/IndexerQueries/index.d.ts.map +0 -1
- package/dist/IndexerQueries/index.js.map +0 -1
- package/dist/IndexerQueries/investorTransactions.d.ts.map +0 -1
- package/dist/IndexerQueries/investorTransactions.js.map +0 -1
- package/dist/IndexerQueries/poolFeeSnapshots.d.ts.map +0 -1
- package/dist/IndexerQueries/poolFeeSnapshots.js.map +0 -1
- package/dist/IndexerQueries/poolFeeTransactions.d.ts.map +0 -1
- package/dist/IndexerQueries/poolFeeTransactions.js.map +0 -1
- package/dist/IndexerQueries/poolSnapshots.d.ts.map +0 -1
- package/dist/IndexerQueries/poolSnapshots.js.map +0 -1
- package/dist/IndexerQueries/trancheCurrencyBalance.d.ts.map +0 -1
- package/dist/IndexerQueries/trancheCurrencyBalance.js.map +0 -1
- package/dist/IndexerQueries/trancheSnapshots.d.ts.map +0 -1
- package/dist/IndexerQueries/trancheSnapshots.js.map +0 -1
- package/dist/Pool.d.ts +0 -25
- package/dist/Pool.d.ts.map +0 -1
- package/dist/Pool.js +0 -79
- package/dist/Pool.js.map +0 -1
- package/dist/PoolNetwork.d.ts +0 -54
- package/dist/PoolNetwork.d.ts.map +0 -1
- package/dist/PoolNetwork.js +0 -238
- package/dist/PoolNetwork.js.map +0 -1
- package/dist/Reports/Processor.d.ts.map +0 -1
- package/dist/Reports/Processor.js.map +0 -1
- package/dist/Reports/index.d.ts.map +0 -1
- package/dist/Reports/index.js.map +0 -1
- package/dist/Vault.d.ts +0 -84
- package/dist/Vault.d.ts.map +0 -1
- package/dist/Vault.js.map +0 -1
- package/dist/abi/CentrifugeRouter.abi.json +0 -43
- package/dist/abi/Currency.abi.json +0 -14
- package/dist/abi/Gateway.abi.json +0 -1
- package/dist/abi/InvestmentManager.abi.json +0 -4
- package/dist/abi/LiquidityPool.abi.json +0 -79
- package/dist/abi/PoolManager.abi.json +0 -55
- package/dist/abi/RestrictionManager.abi.json +0 -22
- package/dist/abi/Router.abi.json +0 -1
- package/dist/config/lp.d.ts +0 -17
- package/dist/config/lp.d.ts.map +0 -1
- package/dist/config/lp.js +0 -35
- package/dist/config/lp.js.map +0 -1
- /package/dist/{Entity.js → entities/Entity.js} +0 -0
package/README.md
CHANGED
|
@@ -86,13 +86,13 @@ const subscription = pool.closeEpoch().subscribe(
|
|
|
86
86
|
|
|
87
87
|
## Investments
|
|
88
88
|
|
|
89
|
-
Investments for a pool are done via [ERC-7540 Tokenized Vaults](https://eips.ethereum.org/EIPS/eip-7540). Vaults can be deployed for a
|
|
89
|
+
Investments for a pool are done via [ERC-7540 Tokenized Vaults](https://eips.ethereum.org/EIPS/eip-7540). Vaults can be deployed for a share class on any supported network, for any supported currency
|
|
90
90
|
|
|
91
91
|
Retrieve a vault by querying it from the pool:
|
|
92
92
|
|
|
93
93
|
```js
|
|
94
94
|
const pool = await centrifuge.pool('1')
|
|
95
|
-
const vault = await pool.vault(1, '0xabc...', '0xdef...') // Chain ID,
|
|
95
|
+
const vault = await pool.vault(1, '0xabc...', '0xdef...') // Chain ID, share class ID, investment currency address
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
Query the state of an investment on the vault for an investor:
|
|
@@ -100,18 +100,18 @@ Query the state of an investment on the vault for an investor:
|
|
|
100
100
|
```js
|
|
101
101
|
const investment = await vault.investment('0x123...')
|
|
102
102
|
// Will return an object containing:
|
|
103
|
-
// isAllowedToInvest - Whether an investor is allowed to invest in the
|
|
103
|
+
// isAllowedToInvest - Whether an investor is allowed to invest in the share class
|
|
104
104
|
// investmentCurrency - The ERC20 token that is used to invest in the vault
|
|
105
105
|
// investmentCurrencyBalance - The balance of the investor of the investment currency
|
|
106
106
|
// investmentCurrencyAllowance - The allowance of the vault
|
|
107
|
-
// shareCurrency - The ERC20 token that is issued to investors to account for their share in the
|
|
108
|
-
// shareBalance - The number of shares the investor has in the
|
|
107
|
+
// shareCurrency - The ERC20 token that is issued to investors to account for their share in the share class
|
|
108
|
+
// shareBalance - The number of shares the investor has in the share class
|
|
109
109
|
// claimableInvestShares - The number of shares an investor can claim after their invest order has been processed (partially or not)
|
|
110
110
|
// claimableInvestCurrencyEquivalent - The equivalent value of the claimable shares denominated in the invest currency
|
|
111
111
|
// claimableRedeemCurrency - The amout of money an investor can claim after their redeem order has been processed (partially or not)
|
|
112
112
|
// claimableRedeemSharesEquivalent - The amount of shares that have been redeemed for which the investor can claim money
|
|
113
|
-
// pendingInvestCurrency - The amount of money that the investor wants to invest in the
|
|
114
|
-
// pendingRedeemShares - The amount of shares that the investor wants to redeem from the
|
|
113
|
+
// pendingInvestCurrency - The amount of money that the investor wants to invest in the share class that has not been processed yet
|
|
114
|
+
// pendingRedeemShares - The amount of shares that the investor wants to redeem from the share class that has not been processed yet
|
|
115
115
|
// claimableCancelInvestCurrency - The amount of money an investor can claim after an invest order cancellation has been processed
|
|
116
116
|
// claimableCancelRedeemShares - The amount of shares an investor can claim after a redeem order cancellation has been processed
|
|
117
117
|
// hasPendingCancelInvestRequest - Whether the investor has an invest order that is in the process of being cancelled
|
package/dist/Centrifuge.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { type Abi, type Account as AccountType, type Chain } from 'viem';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
2
|
+
import { Investor } from './entities/Investor.js';
|
|
3
|
+
import { Pool } from './entities/Pool.js';
|
|
4
|
+
import type { CurrencyDetails, DerivedConfig, HexString, UserProvidedConfig } from './types/index.js';
|
|
5
|
+
import { PoolMetadataInput } from './types/poolInput.js';
|
|
6
6
|
import type { Query } from './types/query.js';
|
|
7
|
-
import type { Signer } from './types/transaction.js';
|
|
8
|
-
import {
|
|
7
|
+
import type { Signer, Transaction } from './types/transaction.js';
|
|
8
|
+
import { Balance } from './utils/BigInt.js';
|
|
9
|
+
import { AssetId, PoolId } from './utils/types.js';
|
|
9
10
|
export declare class Centrifuge {
|
|
10
11
|
#private;
|
|
11
12
|
get config(): DerivedConfig;
|
|
12
|
-
getClient(chainId
|
|
13
|
+
getClient(chainId: number): {
|
|
13
14
|
account: undefined;
|
|
14
15
|
batch?: import("viem").ClientConfig["batch"] | undefined;
|
|
15
16
|
cacheTime: number;
|
|
@@ -35,6 +36,7 @@ export declare class Centrifuge {
|
|
|
35
36
|
number: blockTag extends "pending" ? null : bigint;
|
|
36
37
|
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
37
38
|
hash: blockTag extends "pending" ? null : `0x${string}`;
|
|
39
|
+
size: bigint;
|
|
38
40
|
timestamp: bigint;
|
|
39
41
|
logsBloom: blockTag extends "pending" ? null : `0x${string}`;
|
|
40
42
|
baseFeePerGas: bigint | null;
|
|
@@ -51,7 +53,6 @@ export declare class Centrifuge {
|
|
|
51
53
|
receiptsRoot: import("viem").Hex;
|
|
52
54
|
sealFields: import("viem").Hex[];
|
|
53
55
|
sha3Uncles: import("viem").Hash;
|
|
54
|
-
size: bigint;
|
|
55
56
|
stateRoot: import("viem").Hash;
|
|
56
57
|
totalDifficulty: bigint | null;
|
|
57
58
|
transactionsRoot: import("viem").Hash;
|
|
@@ -59,12 +60,15 @@ export declare class Centrifuge {
|
|
|
59
60
|
withdrawals?: import("viem").Withdrawal[] | undefined;
|
|
60
61
|
withdrawalsRoot?: import("viem").Hex | undefined;
|
|
61
62
|
transactions: includeTransactions extends true ? ({
|
|
63
|
+
r: import("viem").Hex;
|
|
64
|
+
s: import("viem").Hex;
|
|
65
|
+
v: bigint;
|
|
66
|
+
value: bigint;
|
|
62
67
|
type: "legacy";
|
|
63
68
|
to: import("viem").Address | null;
|
|
64
69
|
from: import("viem").Address;
|
|
65
70
|
gas: bigint;
|
|
66
71
|
nonce: number;
|
|
67
|
-
value: bigint;
|
|
68
72
|
maxFeePerBlobGas?: undefined;
|
|
69
73
|
gasPrice: bigint;
|
|
70
74
|
maxFeePerGas?: undefined;
|
|
@@ -73,9 +77,6 @@ export declare class Centrifuge {
|
|
|
73
77
|
blobVersionedHashes?: undefined;
|
|
74
78
|
authorizationList?: undefined;
|
|
75
79
|
hash: import("viem").Hash;
|
|
76
|
-
r: import("viem").Hex;
|
|
77
|
-
s: import("viem").Hex;
|
|
78
|
-
v: bigint;
|
|
79
80
|
yParity?: undefined;
|
|
80
81
|
chainId?: number | undefined;
|
|
81
82
|
input: import("viem").Hex;
|
|
@@ -84,12 +85,15 @@ export declare class Centrifuge {
|
|
|
84
85
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
85
86
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
86
87
|
} | {
|
|
88
|
+
r: import("viem").Hex;
|
|
89
|
+
s: import("viem").Hex;
|
|
90
|
+
v: bigint;
|
|
91
|
+
value: bigint;
|
|
87
92
|
type: "eip2930";
|
|
88
93
|
to: import("viem").Address | null;
|
|
89
94
|
from: import("viem").Address;
|
|
90
95
|
gas: bigint;
|
|
91
96
|
nonce: number;
|
|
92
|
-
value: bigint;
|
|
93
97
|
maxFeePerBlobGas?: undefined;
|
|
94
98
|
gasPrice: bigint;
|
|
95
99
|
maxFeePerGas?: undefined;
|
|
@@ -98,9 +102,6 @@ export declare class Centrifuge {
|
|
|
98
102
|
blobVersionedHashes?: undefined;
|
|
99
103
|
authorizationList?: undefined;
|
|
100
104
|
hash: import("viem").Hash;
|
|
101
|
-
r: import("viem").Hex;
|
|
102
|
-
s: import("viem").Hex;
|
|
103
|
-
v: bigint;
|
|
104
105
|
yParity: number;
|
|
105
106
|
chainId: number;
|
|
106
107
|
input: import("viem").Hex;
|
|
@@ -109,12 +110,15 @@ export declare class Centrifuge {
|
|
|
109
110
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
110
111
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
111
112
|
} | {
|
|
113
|
+
r: import("viem").Hex;
|
|
114
|
+
s: import("viem").Hex;
|
|
115
|
+
v: bigint;
|
|
116
|
+
value: bigint;
|
|
112
117
|
type: "eip1559";
|
|
113
118
|
to: import("viem").Address | null;
|
|
114
119
|
from: import("viem").Address;
|
|
115
120
|
gas: bigint;
|
|
116
121
|
nonce: number;
|
|
117
|
-
value: bigint;
|
|
118
122
|
maxFeePerBlobGas?: undefined;
|
|
119
123
|
gasPrice?: undefined;
|
|
120
124
|
maxFeePerGas: bigint;
|
|
@@ -123,9 +127,6 @@ export declare class Centrifuge {
|
|
|
123
127
|
blobVersionedHashes?: undefined;
|
|
124
128
|
authorizationList?: undefined;
|
|
125
129
|
hash: import("viem").Hash;
|
|
126
|
-
r: import("viem").Hex;
|
|
127
|
-
s: import("viem").Hex;
|
|
128
|
-
v: bigint;
|
|
129
130
|
yParity: number;
|
|
130
131
|
chainId: number;
|
|
131
132
|
input: import("viem").Hex;
|
|
@@ -134,12 +135,15 @@ export declare class Centrifuge {
|
|
|
134
135
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
135
136
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
136
137
|
} | {
|
|
138
|
+
r: import("viem").Hex;
|
|
139
|
+
s: import("viem").Hex;
|
|
140
|
+
v: bigint;
|
|
141
|
+
value: bigint;
|
|
137
142
|
type: "eip4844";
|
|
138
143
|
to: import("viem").Address | null;
|
|
139
144
|
from: import("viem").Address;
|
|
140
145
|
gas: bigint;
|
|
141
146
|
nonce: number;
|
|
142
|
-
value: bigint;
|
|
143
147
|
maxFeePerBlobGas: bigint;
|
|
144
148
|
gasPrice?: undefined;
|
|
145
149
|
maxFeePerGas: bigint;
|
|
@@ -148,9 +152,6 @@ export declare class Centrifuge {
|
|
|
148
152
|
blobVersionedHashes: readonly import("viem").Hex[];
|
|
149
153
|
authorizationList?: undefined;
|
|
150
154
|
hash: import("viem").Hash;
|
|
151
|
-
r: import("viem").Hex;
|
|
152
|
-
s: import("viem").Hex;
|
|
153
|
-
v: bigint;
|
|
154
155
|
yParity: number;
|
|
155
156
|
chainId: number;
|
|
156
157
|
input: import("viem").Hex;
|
|
@@ -159,12 +160,15 @@ export declare class Centrifuge {
|
|
|
159
160
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
160
161
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
161
162
|
} | {
|
|
163
|
+
r: import("viem").Hex;
|
|
164
|
+
s: import("viem").Hex;
|
|
165
|
+
v: bigint;
|
|
166
|
+
value: bigint;
|
|
162
167
|
type: "eip7702";
|
|
163
168
|
to: import("viem").Address | null;
|
|
164
169
|
from: import("viem").Address;
|
|
165
170
|
gas: bigint;
|
|
166
171
|
nonce: number;
|
|
167
|
-
value: bigint;
|
|
168
172
|
maxFeePerBlobGas?: undefined;
|
|
169
173
|
gasPrice?: undefined;
|
|
170
174
|
maxFeePerGas: bigint;
|
|
@@ -173,9 +177,6 @@ export declare class Centrifuge {
|
|
|
173
177
|
blobVersionedHashes?: undefined;
|
|
174
178
|
authorizationList: import("viem/experimental").SignedAuthorizationList;
|
|
175
179
|
hash: import("viem").Hash;
|
|
176
|
-
r: import("viem").Hex;
|
|
177
|
-
s: import("viem").Hex;
|
|
178
|
-
v: bigint;
|
|
179
180
|
yParity: number;
|
|
180
181
|
chainId: number;
|
|
181
182
|
input: import("viem").Hex;
|
|
@@ -209,12 +210,15 @@ export declare class Centrifuge {
|
|
|
209
210
|
} | undefined) => Promise<import("viem").EstimateMaxPriorityFeePerGasReturnType>;
|
|
210
211
|
getStorageAt: (args: import("viem").GetStorageAtParameters) => Promise<import("viem").GetStorageAtReturnType>;
|
|
211
212
|
getTransaction: <blockTag extends import("viem").BlockTag = "latest">(args: import("viem").GetTransactionParameters<blockTag>) => Promise<{
|
|
213
|
+
r: import("viem").Hex;
|
|
214
|
+
s: import("viem").Hex;
|
|
215
|
+
v: bigint;
|
|
216
|
+
value: bigint;
|
|
212
217
|
type: "legacy";
|
|
213
218
|
to: import("viem").Address | null;
|
|
214
219
|
from: import("viem").Address;
|
|
215
220
|
gas: bigint;
|
|
216
221
|
nonce: number;
|
|
217
|
-
value: bigint;
|
|
218
222
|
maxFeePerBlobGas?: undefined;
|
|
219
223
|
gasPrice: bigint;
|
|
220
224
|
maxFeePerGas?: undefined;
|
|
@@ -223,9 +227,6 @@ export declare class Centrifuge {
|
|
|
223
227
|
blobVersionedHashes?: undefined;
|
|
224
228
|
authorizationList?: undefined;
|
|
225
229
|
hash: import("viem").Hash;
|
|
226
|
-
r: import("viem").Hex;
|
|
227
|
-
s: import("viem").Hex;
|
|
228
|
-
v: bigint;
|
|
229
230
|
yParity?: undefined;
|
|
230
231
|
chainId?: number | undefined;
|
|
231
232
|
input: import("viem").Hex;
|
|
@@ -234,12 +235,15 @@ export declare class Centrifuge {
|
|
|
234
235
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
235
236
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
236
237
|
} | {
|
|
238
|
+
r: import("viem").Hex;
|
|
239
|
+
s: import("viem").Hex;
|
|
240
|
+
v: bigint;
|
|
241
|
+
value: bigint;
|
|
237
242
|
type: "eip2930";
|
|
238
243
|
to: import("viem").Address | null;
|
|
239
244
|
from: import("viem").Address;
|
|
240
245
|
gas: bigint;
|
|
241
246
|
nonce: number;
|
|
242
|
-
value: bigint;
|
|
243
247
|
maxFeePerBlobGas?: undefined;
|
|
244
248
|
gasPrice: bigint;
|
|
245
249
|
maxFeePerGas?: undefined;
|
|
@@ -248,9 +252,6 @@ export declare class Centrifuge {
|
|
|
248
252
|
blobVersionedHashes?: undefined;
|
|
249
253
|
authorizationList?: undefined;
|
|
250
254
|
hash: import("viem").Hash;
|
|
251
|
-
r: import("viem").Hex;
|
|
252
|
-
s: import("viem").Hex;
|
|
253
|
-
v: bigint;
|
|
254
255
|
yParity: number;
|
|
255
256
|
chainId: number;
|
|
256
257
|
input: import("viem").Hex;
|
|
@@ -259,12 +260,15 @@ export declare class Centrifuge {
|
|
|
259
260
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
260
261
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
261
262
|
} | {
|
|
263
|
+
r: import("viem").Hex;
|
|
264
|
+
s: import("viem").Hex;
|
|
265
|
+
v: bigint;
|
|
266
|
+
value: bigint;
|
|
262
267
|
type: "eip1559";
|
|
263
268
|
to: import("viem").Address | null;
|
|
264
269
|
from: import("viem").Address;
|
|
265
270
|
gas: bigint;
|
|
266
271
|
nonce: number;
|
|
267
|
-
value: bigint;
|
|
268
272
|
maxFeePerBlobGas?: undefined;
|
|
269
273
|
gasPrice?: undefined;
|
|
270
274
|
maxFeePerGas: bigint;
|
|
@@ -273,9 +277,6 @@ export declare class Centrifuge {
|
|
|
273
277
|
blobVersionedHashes?: undefined;
|
|
274
278
|
authorizationList?: undefined;
|
|
275
279
|
hash: import("viem").Hash;
|
|
276
|
-
r: import("viem").Hex;
|
|
277
|
-
s: import("viem").Hex;
|
|
278
|
-
v: bigint;
|
|
279
280
|
yParity: number;
|
|
280
281
|
chainId: number;
|
|
281
282
|
input: import("viem").Hex;
|
|
@@ -284,12 +285,15 @@ export declare class Centrifuge {
|
|
|
284
285
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
285
286
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
286
287
|
} | {
|
|
288
|
+
r: import("viem").Hex;
|
|
289
|
+
s: import("viem").Hex;
|
|
290
|
+
v: bigint;
|
|
291
|
+
value: bigint;
|
|
287
292
|
type: "eip4844";
|
|
288
293
|
to: import("viem").Address | null;
|
|
289
294
|
from: import("viem").Address;
|
|
290
295
|
gas: bigint;
|
|
291
296
|
nonce: number;
|
|
292
|
-
value: bigint;
|
|
293
297
|
maxFeePerBlobGas: bigint;
|
|
294
298
|
gasPrice?: undefined;
|
|
295
299
|
maxFeePerGas: bigint;
|
|
@@ -298,9 +302,6 @@ export declare class Centrifuge {
|
|
|
298
302
|
blobVersionedHashes: readonly import("viem").Hex[];
|
|
299
303
|
authorizationList?: undefined;
|
|
300
304
|
hash: import("viem").Hash;
|
|
301
|
-
r: import("viem").Hex;
|
|
302
|
-
s: import("viem").Hex;
|
|
303
|
-
v: bigint;
|
|
304
305
|
yParity: number;
|
|
305
306
|
chainId: number;
|
|
306
307
|
input: import("viem").Hex;
|
|
@@ -309,12 +310,15 @@ export declare class Centrifuge {
|
|
|
309
310
|
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
310
311
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
311
312
|
} | {
|
|
313
|
+
r: import("viem").Hex;
|
|
314
|
+
s: import("viem").Hex;
|
|
315
|
+
v: bigint;
|
|
316
|
+
value: bigint;
|
|
312
317
|
type: "eip7702";
|
|
313
318
|
to: import("viem").Address | null;
|
|
314
319
|
from: import("viem").Address;
|
|
315
320
|
gas: bigint;
|
|
316
321
|
nonce: number;
|
|
317
|
-
value: bigint;
|
|
318
322
|
maxFeePerBlobGas?: undefined;
|
|
319
323
|
gasPrice?: undefined;
|
|
320
324
|
maxFeePerGas: bigint;
|
|
@@ -323,9 +327,6 @@ export declare class Centrifuge {
|
|
|
323
327
|
blobVersionedHashes?: undefined;
|
|
324
328
|
authorizationList: import("viem/experimental").SignedAuthorizationList;
|
|
325
329
|
hash: import("viem").Hash;
|
|
326
|
-
r: import("viem").Hex;
|
|
327
|
-
s: import("viem").Hex;
|
|
328
|
-
v: bigint;
|
|
329
330
|
yParity: number;
|
|
330
331
|
chainId: number;
|
|
331
332
|
input: import("viem").Hex;
|
|
@@ -6883,25 +6884,74 @@ export declare class Centrifuge {
|
|
|
6883
6884
|
} & import("viem").ExactPartial<Pick<import("viem").PublicActions<any, Chain, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<any, Chain, undefined, import("viem").PublicRpcSchema, import("viem").PublicActions<any, Chain>>) => client) => import("viem").Client<any, Chain, undefined, import("viem").PublicRpcSchema, { [K in keyof client]: client[K]; } & import("viem").PublicActions<any, Chain>>;
|
|
6884
6885
|
} | undefined;
|
|
6885
6886
|
get chains(): number[];
|
|
6886
|
-
getChainConfig(chainId
|
|
6887
|
+
getChainConfig(chainId: number): Chain;
|
|
6887
6888
|
setSigner(signer: Signer | null): void;
|
|
6888
6889
|
get signer(): Signer | null;
|
|
6889
6890
|
constructor(config?: UserProvidedConfig);
|
|
6890
|
-
|
|
6891
|
-
|
|
6891
|
+
/**
|
|
6892
|
+
* Create a new pool on the given chain.
|
|
6893
|
+
* @param metadataInput - The metadata for the pool
|
|
6894
|
+
* @param currencyCode - The currency code for the pool
|
|
6895
|
+
* @param chainId - The chain ID to create the pool on
|
|
6896
|
+
*/
|
|
6897
|
+
createPool(metadataInput: PoolMetadataInput, currencyCode: number | undefined, chainId: number, counter: number): Transaction;
|
|
6898
|
+
id(chainId: number): Query<number>;
|
|
6899
|
+
/**
|
|
6900
|
+
* Get the existing pools on the different chains.
|
|
6901
|
+
*/
|
|
6902
|
+
pools(): Query<Pool[]>;
|
|
6903
|
+
pool(id: PoolId): Query<Pool>;
|
|
6892
6904
|
/**
|
|
6893
6905
|
* Get the metadata for an ERC20 token
|
|
6894
6906
|
* @param address - The token address
|
|
6895
6907
|
* @param chainId - The chain ID
|
|
6896
6908
|
*/
|
|
6897
|
-
currency(address: string, chainId
|
|
6909
|
+
currency(address: string, chainId: number): Query<CurrencyDetails>;
|
|
6910
|
+
investor(address: string): Query<Investor>;
|
|
6898
6911
|
/**
|
|
6899
6912
|
* Get the balance of an ERC20 token for a given owner.
|
|
6900
6913
|
* @param currency - The token address
|
|
6901
6914
|
* @param owner - The owner address
|
|
6902
6915
|
* @param chainId - The chain ID
|
|
6903
6916
|
*/
|
|
6904
|
-
balance(currency: string, owner: string, chainId
|
|
6917
|
+
balance(currency: string, owner: string, chainId: number): Query<{
|
|
6918
|
+
balance: Balance;
|
|
6919
|
+
currency: CurrencyDetails;
|
|
6920
|
+
}>;
|
|
6921
|
+
/**
|
|
6922
|
+
* Get the decimals of asset
|
|
6923
|
+
*/
|
|
6924
|
+
assetDecimals(assetId: AssetId, chainId: number): Query<number>;
|
|
6905
6925
|
_queryIndexer<Result, Return>(query: string, variables: Record<string, any>, postProcess: (data: Result) => Return): Query<Return>;
|
|
6926
|
+
_protocolAddresses(chainId: number): Query<{
|
|
6927
|
+
currencies: `0x${string}`[];
|
|
6928
|
+
root: HexString;
|
|
6929
|
+
adminSafe: HexString;
|
|
6930
|
+
guardian: HexString;
|
|
6931
|
+
gasService: HexString;
|
|
6932
|
+
gateway: HexString;
|
|
6933
|
+
messageProcessor: HexString;
|
|
6934
|
+
messageDispatcher: HexString;
|
|
6935
|
+
hubRegistry: HexString;
|
|
6936
|
+
accounting: HexString;
|
|
6937
|
+
holdings: HexString;
|
|
6938
|
+
shareClassManager: HexString;
|
|
6939
|
+
hub: HexString;
|
|
6940
|
+
identityValuation: HexString;
|
|
6941
|
+
poolEscrowFactory: HexString;
|
|
6942
|
+
routerEscrow: HexString;
|
|
6943
|
+
globalEscrow: HexString;
|
|
6944
|
+
freezeOnlyHook: HexString;
|
|
6945
|
+
redemptionRestrictionsHook: HexString;
|
|
6946
|
+
fullRestrictionsHook: HexString;
|
|
6947
|
+
tokenFactory: HexString;
|
|
6948
|
+
asyncRequestManager: HexString;
|
|
6949
|
+
syncRequestManager: HexString;
|
|
6950
|
+
asyncVaultFactory: HexString;
|
|
6951
|
+
syncDepositVaultFactory: HexString;
|
|
6952
|
+
poolManager: HexString;
|
|
6953
|
+
vaultRouter: HexString;
|
|
6954
|
+
}>;
|
|
6955
|
+
_getQuote(valuationAddress: string, baseAmount: Balance, baseAssetId: AssetId, quoteAssetId: AssetId, chainId: number): Query<Balance>;
|
|
6906
6956
|
}
|
|
6907
6957
|
//# sourceMappingURL=Centrifuge.d.ts.map
|
package/dist/Centrifuge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Centrifuge.d.ts","sourceRoot":"","sources":["../src/Centrifuge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Centrifuge.d.ts","sourceRoot":"","sources":["../src/Centrifuge.ts"],"names":[],"mappings":"AAiBA,OAAO,EASL,KAAK,GAAG,EACR,KAAK,OAAO,IAAI,WAAW,EAC3B,KAAK,KAAK,EAGX,MAAM,MAAM,CAAA;AAKb,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACzC,OAAO,KAAK,EAEV,eAAe,EACf,aAAa,EAEb,SAAS,EAET,kBAAkB,EACnB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,EAA0B,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,KAAK,EAAmB,MAAM,EAAE,WAAW,EAA6B,MAAM,wBAAwB,CAAA;AAC7G,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAK3C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAyClD,qBAAa,UAAU;;IAErB,IAAI,MAAM,kBAET;IAGD,SAAS,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;qrBAoQK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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