@centrifuge/sdk 0.55.1 → 1.0.0
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 +2 -2
- package/dist/Centrifuge.d.ts +6910 -22
- package/dist/Centrifuge.d.ts.map +1 -1
- package/dist/Centrifuge.js +139 -160
- package/dist/Centrifuge.js.map +1 -1
- package/dist/Centrifuge.test.js +24 -26
- package/dist/Centrifuge.test.js.map +1 -1
- package/dist/abi/Accounting.abi.d.ts +1 -1
- package/dist/abi/Accounting.abi.d.ts.map +1 -1
- package/dist/abi/Accounting.abi.js +23 -24
- package/dist/abi/Accounting.abi.js.map +1 -1
- package/dist/abi/AsyncRequestManager.abi.d.ts +1 -1
- package/dist/abi/AsyncRequestManager.abi.js +18 -18
- package/dist/abi/AsyncRequestManager.abi.js.map +1 -1
- package/dist/abi/AsyncVault.abi.d.ts +1 -1
- package/dist/abi/AsyncVault.abi.d.ts.map +1 -1
- package/dist/abi/AsyncVault.abi.js +1 -2
- package/dist/abi/AsyncVault.abi.js.map +1 -1
- package/dist/abi/BalanceSheet.abi.d.ts +1 -1
- package/dist/abi/BalanceSheet.abi.d.ts.map +1 -1
- package/dist/abi/BalanceSheet.abi.js +21 -20
- package/dist/abi/BalanceSheet.abi.js.map +1 -1
- package/dist/abi/BatchRequestManager.abi.d.ts +3 -0
- package/dist/abi/BatchRequestManager.abi.d.ts.map +1 -0
- package/dist/abi/BatchRequestManager.abi.js +74 -0
- package/dist/abi/BatchRequestManager.abi.js.map +1 -0
- package/dist/abi/GasService.abi.d.ts +1 -1
- package/dist/abi/GasService.abi.d.ts.map +1 -1
- package/dist/abi/GasService.abi.js +10 -6
- package/dist/abi/GasService.abi.js.map +1 -1
- package/dist/abi/Gateway.abi.d.ts +1 -1
- package/dist/abi/Gateway.abi.d.ts.map +1 -1
- package/dist/abi/Gateway.abi.js +33 -27
- package/dist/abi/Gateway.abi.js.map +1 -1
- package/dist/abi/Holdings.abi.d.ts +1 -1
- package/dist/abi/Holdings.abi.d.ts.map +1 -1
- package/dist/abi/Holdings.abi.js +10 -5
- package/dist/abi/Holdings.abi.js.map +1 -1
- package/dist/abi/Hub.abi.d.ts +1 -1
- package/dist/abi/Hub.abi.d.ts.map +1 -1
- package/dist/abi/Hub.abi.js +40 -38
- package/dist/abi/Hub.abi.js.map +1 -1
- package/dist/abi/HubRegistry.abi.d.ts +1 -1
- package/dist/abi/HubRegistry.abi.d.ts.map +1 -1
- package/dist/abi/HubRegistry.abi.js +22 -19
- package/dist/abi/HubRegistry.abi.js.map +1 -1
- package/dist/abi/MerkleProofManager.abi.d.ts.map +1 -1
- package/dist/abi/MerkleProofManager.abi.js +2 -4
- package/dist/abi/MerkleProofManager.abi.js.map +1 -1
- package/dist/abi/MessageDispatcher.abi.d.ts.map +1 -1
- package/dist/abi/MessageDispatcher.abi.js +44 -38
- package/dist/abi/MessageDispatcher.abi.js.map +1 -1
- package/dist/abi/MultiAdapter.abi.d.ts +1 -1
- package/dist/abi/MultiAdapter.abi.d.ts.map +1 -1
- package/dist/abi/MultiAdapter.abi.js +14 -28
- package/dist/abi/MultiAdapter.abi.js.map +1 -1
- package/dist/abi/NAVManager.abi.d.ts +3 -0
- package/dist/abi/NAVManager.abi.d.ts.map +1 -0
- package/dist/abi/NAVManager.abi.js +41 -0
- package/dist/abi/NAVManager.abi.js.map +1 -0
- package/dist/abi/OnOffRampManager.abi.d.ts +1 -1
- package/dist/abi/OnOffRampManager.abi.d.ts.map +1 -1
- package/dist/abi/OnOffRampManager.abi.js +18 -20
- package/dist/abi/OnOffRampManager.abi.js.map +1 -1
- package/dist/abi/PoolEscrow.abi.d.ts +1 -1
- package/dist/abi/PoolEscrow.abi.d.ts.map +1 -1
- package/dist/abi/PoolEscrow.abi.js +1 -2
- package/dist/abi/PoolEscrow.abi.js.map +1 -1
- package/dist/abi/QueueManager.abi.d.ts +3 -0
- package/dist/abi/QueueManager.abi.d.ts.map +1 -0
- package/dist/abi/QueueManager.abi.js +21 -0
- package/dist/abi/QueueManager.abi.js.map +1 -0
- package/dist/abi/ShareClassManager.abi.d.ts +1 -1
- package/dist/abi/ShareClassManager.abi.d.ts.map +1 -1
- package/dist/abi/ShareClassManager.abi.js +11 -62
- package/dist/abi/ShareClassManager.abi.js.map +1 -1
- package/dist/abi/Spoke.abi.d.ts +1 -1
- package/dist/abi/Spoke.abi.d.ts.map +1 -1
- package/dist/abi/Spoke.abi.js +25 -21
- package/dist/abi/Spoke.abi.js.map +1 -1
- package/dist/abi/SyncManager.abi.d.ts +3 -0
- package/dist/abi/SyncManager.abi.d.ts.map +1 -0
- package/dist/abi/{SyncRequestManager.abi.js → SyncManager.abi.js} +10 -26
- package/dist/abi/SyncManager.abi.js.map +1 -0
- package/dist/abi/Valuation.abi.d.ts +1 -1
- package/dist/abi/Valuation.abi.d.ts.map +1 -1
- package/dist/abi/Valuation.abi.js +4 -1
- package/dist/abi/Valuation.abi.js.map +1 -1
- package/dist/abi/VaultRegistry.abi.d.ts +3 -0
- package/dist/abi/VaultRegistry.abi.d.ts.map +1 -0
- package/dist/abi/VaultRegistry.abi.js +35 -0
- package/dist/abi/VaultRegistry.abi.js.map +1 -0
- package/dist/abi/VaultRouter.abi.d.ts +1 -1
- package/dist/abi/VaultRouter.abi.d.ts.map +1 -1
- package/dist/abi/VaultRouter.abi.js +3 -0
- package/dist/abi/VaultRouter.abi.js.map +1 -1
- package/dist/abi/index.d.ts +1805 -1802
- package/dist/abi/index.d.ts.map +1 -1
- package/dist/abi/index.js +9 -5
- package/dist/abi/index.js.map +1 -1
- package/dist/entities/BalanceSheet.d.ts +8 -8
- package/dist/entities/BalanceSheet.d.ts.map +1 -1
- package/dist/entities/BalanceSheet.js +23 -21
- package/dist/entities/BalanceSheet.js.map +1 -1
- package/dist/entities/BalanceSheet.test.js +9 -4
- package/dist/entities/BalanceSheet.test.js.map +1 -1
- package/dist/entities/Investor.d.ts +11 -9
- package/dist/entities/Investor.d.ts.map +1 -1
- package/dist/entities/Investor.js +28 -35
- package/dist/entities/Investor.js.map +1 -1
- package/dist/entities/Investor.test.js +1 -1
- package/dist/entities/Investor.test.js.map +1 -1
- package/dist/entities/MerkleProofManager.d.ts +1 -2
- package/dist/entities/MerkleProofManager.d.ts.map +1 -1
- package/dist/entities/MerkleProofManager.js +24 -25
- package/dist/entities/MerkleProofManager.js.map +1 -1
- package/dist/entities/MerkleProofManager.test.js +10 -10
- package/dist/entities/MerkleProofManager.test.js.map +1 -1
- package/dist/entities/OnOffRampManager.d.ts.map +1 -1
- package/dist/entities/OnOffRampManager.js +35 -39
- package/dist/entities/OnOffRampManager.js.map +1 -1
- package/dist/entities/OnOffRampManager.test.js +14 -10
- package/dist/entities/OnOffRampManager.test.js.map +1 -1
- package/dist/entities/Pool.d.ts +33 -11
- package/dist/entities/Pool.d.ts.map +1 -1
- package/dist/entities/Pool.js +132 -65
- package/dist/entities/Pool.js.map +1 -1
- package/dist/entities/Pool.test.js +35 -12
- package/dist/entities/Pool.test.js.map +1 -1
- package/dist/entities/PoolNetwork.d.ts +26 -5
- package/dist/entities/PoolNetwork.d.ts.map +1 -1
- package/dist/entities/PoolNetwork.js +154 -115
- package/dist/entities/PoolNetwork.js.map +1 -1
- package/dist/entities/PoolNetwork.test.js +40 -34
- package/dist/entities/PoolNetwork.test.js.map +1 -1
- package/dist/entities/Reports/PoolSharePricesReport.d.ts.map +1 -1
- package/dist/entities/Reports/PoolSharePricesReport.js +3 -2
- package/dist/entities/Reports/PoolSharePricesReport.js.map +1 -1
- package/dist/entities/Reports/PoolSharePricesReport.test.js +1 -1
- package/dist/entities/Reports/PoolSharePricesReport.test.js.map +1 -1
- package/dist/entities/ShareClass.d.ts +61 -49
- package/dist/entities/ShareClass.d.ts.map +1 -1
- package/dist/entities/ShareClass.js +383 -299
- package/dist/entities/ShareClass.js.map +1 -1
- package/dist/entities/ShareClass.test.js +36 -32
- package/dist/entities/ShareClass.test.js.map +1 -1
- package/dist/entities/Vault.d.ts +1 -1
- package/dist/entities/Vault.d.ts.map +1 -1
- package/dist/entities/Vault.js +68 -55
- package/dist/entities/Vault.js.map +1 -1
- package/dist/entities/Vault.test.js +10 -10
- package/dist/entities/Vault.test.js.map +1 -1
- package/dist/tests/mocks/mockPoolMetadata.js +2 -2
- package/dist/tests/mocks/mockPoolMetadata.js.map +1 -1
- package/dist/types/index.d.ts +17 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/transaction.d.ts +24 -32
- package/dist/types/transaction.d.ts.map +1 -1
- package/dist/types/transaction.js +26 -32
- package/dist/types/transaction.js.map +1 -1
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/permit.d.ts +1 -1
- package/dist/utils/permit.d.ts.map +1 -1
- package/dist/utils/permit.js +11 -7
- package/dist/utils/permit.js.map +1 -1
- package/dist/utils/rx.d.ts +2 -1
- package/dist/utils/rx.d.ts.map +1 -1
- package/dist/utils/rx.js +2 -2
- package/dist/utils/rx.js.map +1 -1
- package/dist/utils/transaction.d.ts +2 -1
- package/dist/utils/transaction.d.ts.map +1 -1
- package/dist/utils/transaction.js +4 -3
- package/dist/utils/transaction.js.map +1 -1
- package/dist/utils/types.d.ts +10 -5
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/utils/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/abi/SyncRequestManager.abi.d.ts +0 -3
- package/dist/abi/SyncRequestManager.abi.d.ts.map +0 -1
- package/dist/abi/SyncRequestManager.abi.js.map +0 -1
package/dist/abi/Holdings.abi.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
export default [
|
|
2
|
-
'function accountId(uint64, bytes16, uint128, uint8 kind) view returns (
|
|
2
|
+
'function accountId(uint64, bytes16, uint128, uint8 kind) view returns (uint256)',
|
|
3
3
|
'function amount(uint64 poolId, bytes16 scId, uint128 assetId) view returns (uint128 amount_)',
|
|
4
|
+
'function callOnSyncSnapshot(uint64 poolId, bytes16 scId, uint16 centrifugeId)',
|
|
5
|
+
'function callOnTransferSnapshot(uint64 poolId, bytes16 scId, uint16 originCentrifugeId, uint16 targetCentrifugeId, uint128 amount_)',
|
|
4
6
|
'function decrease(uint64 poolId, bytes16 scId, uint128 assetId, uint128 pricePoolPerAsset, uint128 amount_) returns (uint128 amountValue)',
|
|
5
7
|
'function deny(address user)',
|
|
6
8
|
'function holding(uint64, bytes16, uint128) view returns (uint128 assetAmount, uint128 assetAmountValue, address valuation, bool isLiability)',
|
|
7
9
|
'function hubRegistry() view returns (address)',
|
|
8
10
|
'function increase(uint64 poolId, bytes16 scId, uint128 assetId, uint128 pricePoolPerAsset, uint128 amount_) returns (uint128 amountValue)',
|
|
9
|
-
'function initialize(uint64 poolId, bytes16 scId, uint128 assetId, address valuation_, bool isLiability_, (
|
|
11
|
+
'function initialize(uint64 poolId, bytes16 scId, uint128 assetId, address valuation_, bool isLiability_, (uint256 accountId, uint8 kind)[] accounts)',
|
|
10
12
|
'function isInitialized(uint64 poolId, bytes16 scId, uint128 assetId) view returns (bool)',
|
|
11
13
|
'function isLiability(uint64 poolId, bytes16 scId, uint128 assetId) view returns (bool)',
|
|
12
14
|
'function rely(address user)',
|
|
13
|
-
'function setAccountId(uint64 poolId, bytes16 scId, uint128 assetId, uint8 kind,
|
|
15
|
+
'function setAccountId(uint64 poolId, bytes16 scId, uint128 assetId, uint8 kind, uint256 accountId_)',
|
|
14
16
|
'function setSnapshot(uint64 poolId, bytes16 scId, uint16 centrifugeId, bool isSnapshot, uint64 nonce)',
|
|
15
17
|
'function setSnapshotHook(uint64 poolId, address hook)',
|
|
16
18
|
'function snapshot(uint64, bytes16, uint16 centrifugeId) view returns (bool isSnapshot, uint64 nonce)',
|
|
17
19
|
'function snapshotHook(uint64) view returns (address)',
|
|
18
20
|
'function update(uint64 poolId, bytes16 scId, uint128 assetId) returns (bool isPositive, uint128 diffValue)',
|
|
21
|
+
'function updateIsLiability(uint64 poolId, bytes16 scId, uint128 assetId, bool isLiability_)',
|
|
19
22
|
'function updateValuation(uint64 poolId, bytes16 scId, uint128 assetId, address valuation_)',
|
|
20
23
|
'function valuation(uint64 poolId, bytes16 scId, uint128 assetId) view returns (address)',
|
|
21
24
|
'function value(uint64 poolId, bytes16 scId, uint128 assetId) view returns (uint128 value_)',
|
|
@@ -23,15 +26,17 @@ export default [
|
|
|
23
26
|
'event Decrease(uint64 indexed, bytes16 indexed scId, uint128 indexed assetId, uint128 pricePoolPerAsset, uint128 amount, uint128 decreasedValue)',
|
|
24
27
|
'event Deny(address indexed user)',
|
|
25
28
|
'event Increase(uint64 indexed, bytes16 indexed scId, uint128 indexed assetId, uint128 pricePoolPerAsset, uint128 amount, uint128 increasedValue)',
|
|
26
|
-
'event Initialize(uint64 indexed, bytes16 indexed scId, uint128 indexed assetId, address valuation, bool isLiability, (
|
|
29
|
+
'event Initialize(uint64 indexed, bytes16 indexed scId, uint128 indexed assetId, address valuation, bool isLiability, (uint256 accountId, uint8 kind)[] accounts)',
|
|
27
30
|
'event Rely(address indexed user)',
|
|
28
|
-
'event SetAccountId(uint64 indexed poolId, bytes16 indexed scId, uint128 indexed assetId, uint8 kind,
|
|
31
|
+
'event SetAccountId(uint64 indexed poolId, bytes16 indexed scId, uint128 indexed assetId, uint8 kind, uint256 accountId)',
|
|
29
32
|
'event SetSnapshot(uint64 indexed poolId, bytes16 indexed scId, uint16 indexed centrifugeId, bool isSnapshot, uint64 nonce)',
|
|
30
33
|
'event SetSnapshotHook(uint64 indexed poolId, address hook)',
|
|
31
34
|
'event Update(uint64 indexed poolId, bytes16 indexed scId, uint128 indexed assetId, bool isPositive, uint128 diffValue)',
|
|
35
|
+
'event UpdateIsLiability(uint64 indexed poolId, bytes16 indexed scId, uint128 indexed assetId, bool isLiability)',
|
|
32
36
|
'event UpdateValuation(uint64 indexed poolId, bytes16 indexed scId, uint128 indexed assetId, address valuation)',
|
|
33
37
|
'error AlreadyInitialized()',
|
|
34
38
|
'error HoldingNotFound()',
|
|
39
|
+
'error HoldingNotZero()',
|
|
35
40
|
'error InvalidNonce(uint64 expected, uint64 actual)',
|
|
36
41
|
'error MulDiv_Overflow()',
|
|
37
42
|
'error NotAuthorized()',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Holdings.abi.js","sourceRoot":"","sources":["../../src/abi/Holdings.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,
|
|
1
|
+
{"version":3,"file":"Holdings.abi.js","sourceRoot":"","sources":["../../src/abi/Holdings.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,iFAAiF;IACjF,8FAA8F;IAC9F,+EAA+E;IAC/E,qIAAqI;IACrI,2IAA2I;IAC3I,6BAA6B;IAC7B,8IAA8I;IAC9I,+CAA+C;IAC/C,2IAA2I;IAC3I,sJAAsJ;IACtJ,0FAA0F;IAC1F,wFAAwF;IACxF,6BAA6B;IAC7B,qGAAqG;IACrG,uGAAuG;IACvG,uDAAuD;IACvD,sGAAsG;IACtG,sDAAsD;IACtD,4GAA4G;IAC5G,6FAA6F;IAC7F,4FAA4F;IAC5F,yFAAyF;IACzF,4FAA4F;IAC5F,gDAAgD;IAChD,kJAAkJ;IAClJ,kCAAkC;IAClC,kJAAkJ;IAClJ,kKAAkK;IAClK,kCAAkC;IAClC,yHAAyH;IACzH,4HAA4H;IAC5H,4DAA4D;IAC5D,wHAAwH;IACxH,iHAAiH;IACjH,gHAAgH;IAChH,4BAA4B;IAC5B,yBAAyB;IACzB,wBAAwB;IACxB,oDAAoD;IACpD,yBAAyB;IACzB,uBAAuB;IACvB,0BAA0B;IAC1B,sBAAsB;IACtB,2BAA2B;IAC3B,wBAAwB;CAChB,CAAA"}
|
package/dist/abi/Hub.abi.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: readonly ["function accounting() view returns (address)", "function addShareClass(uint64 poolId, string name, string symbol, bytes32 salt)
|
|
1
|
+
declare const _default: readonly ["function accounting() view returns (address)", "function addShareClass(uint64 poolId, string name, string symbol, bytes32 salt) returns (bytes16 scId)", "function createAccount(uint64 poolId, uint256 account, bool isDebitNormal) payable", "function createPool(uint64 poolId, address admin, uint128 currency) payable", "function deny(address user)", "function executeMulticall(bytes[] data) payable", "function feeHook() view returns (address)", "function file(bytes32 what, address data)", "function gateway() view returns (address)", "function holdingAccounts(uint256 assetAccount, uint256 equityAccount, uint256 gainAccount, uint256 lossAccount) pure returns ((uint256 accountId, uint8 kind)[])", "function holdings() view returns (address)", "function hubRegistry() view returns (address)", "function initializeHolding(uint64 poolId, bytes16 scId, uint128 assetId, address valuation, uint256 assetAccount, uint256 equityAccount, uint256 gainAccount, uint256 lossAccount) payable", "function initializeLiability(uint64 poolId, bytes16 scId, uint128 assetId, address valuation, uint256 expenseAccount, uint256 liabilityAccount) payable", "function liabilityAccounts(uint256 expenseAccount, uint256 liabilityAccount) pure returns ((uint256 accountId, uint8 kind)[])", "function multiAdapter() view returns (address)", "function multicall(bytes[] data) payable", "function notifyAssetPrice(uint64 poolId, bytes16 scId, uint128 assetId, address refund) payable", "function notifyPool(uint64 poolId, uint16 centrifugeId, address refund) payable", "function notifyShareClass(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes32 hook, address refund) payable", "function notifyShareMetadata(uint64 poolId, bytes16 scId, uint16 centrifugeId, address refund) payable", "function notifySharePrice(uint64 poolId, bytes16 scId, uint16 centrifugeId, address refund) payable", "function pricePoolPerAsset(uint64 poolId, bytes16 scId, uint128 assetId) view returns (uint128)", "function recoverTokens(address token, address receiver, uint256 amount)", "function recoverTokens(address token, uint256 tokenId, address receiver, uint256 amount)", "function rely(address user)", "function requestCallback(uint64 poolId, bytes16 scId, uint128 assetId, bytes payload, uint128 extraGasLimit, address refund) payable", "function sender() view returns (address)", "function setAccountMetadata(uint64 poolId, uint256 account, bytes metadata) payable", "function setAdapters(uint64 poolId, uint16 centrifugeId, address[] localAdapters, bytes32[] remoteAdapters, uint8 threshold, uint8 recoveryIndex, address refund) payable", "function setHoldingAccountId(uint64 poolId, bytes16 scId, uint128 assetId, uint8 kind, uint256 accountId) payable", "function setMaxAssetPriceAge(uint64 poolId, bytes16 scId, uint128 assetId, uint64 maxPriceAge, address refund) payable", "function setMaxSharePriceAge(uint64 poolId, bytes16 scId, uint16 centrifugeId, uint64 maxPriceAge, address refund) payable", "function setPoolMetadata(uint64 poolId, bytes metadata) payable", "function setRequestManager(uint64 poolId, uint16 centrifugeId, address hubManager, bytes32 spokeManager, address refund) payable", "function setSnapshotHook(uint64 poolId, address hook) payable", "function shareClassManager() view returns (address)", "function updateAccountingAmount(uint64 poolId, bytes16 scId, uint128 assetId, bool isPositive, uint128 diff) payable", "function updateAccountingValue(uint64 poolId, bytes16 scId, uint128 assetId, bool isPositive, uint128 diff) payable", "function updateBalanceSheetManager(uint64 poolId, uint16 centrifugeId, bytes32 who, bool canManage, address refund) payable", "function updateContract(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes32 target, bytes payload, uint128 extraGasLimit, address refund) payable", "function updateGatewayManager(uint64 poolId, uint16 centrifugeId, bytes32 who, bool canManage, address refund) payable", "function updateHoldingIsLiability(uint64 poolId, bytes16 scId, uint128 assetId, bool isLiability) payable", "function updateHoldingValuation(uint64 poolId, bytes16 scId, uint128 assetId, address valuation) payable", "function updateHoldingValue(uint64 poolId, bytes16 scId, uint128 assetId) payable", "function updateHubManager(uint64 poolId, address who, bool canManage) payable", "function updateJournal(uint64 poolId, (uint128 value, uint256 accountId)[] debits, (uint128 value, uint256 accountId)[] credits) payable", "function updateRestriction(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes payload, uint128 extraGasLimit, address refund) payable", "function updateShareClassMetadata(uint64 poolId, bytes16 scId, string name, string symbol) payable", "function updateShareHook(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes32 hook, address refund) payable", "function updateSharePrice(uint64 poolId, bytes16 scId, uint128 pricePoolPerShare, uint64 computedAt) payable", "function updateVault(uint64 poolId, bytes16 scId, uint128 assetId, bytes32 vaultOrFactory, uint8 kind, uint128 extraGasLimit, address refund) payable", "function wards(address) view returns (uint256)", "event Deny(address indexed user)", "event File(bytes32 what, address addr)", "event ForwardTransferShares(uint16 indexed fromCentrifugeId, uint16 indexed toCentrifugeId, uint64 indexed poolId, bytes16 scId, bytes32 receiver, uint128 amount)", "event NotifyAssetPrice(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, uint128 assetId, uint128 pricePoolPerAsset)", "event NotifyPool(uint16 indexed centrifugeId, uint64 indexed poolId)", "event NotifyShareClass(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId)", "event NotifyShareMetadata(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, string name, string symbol)", "event NotifySharePrice(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, uint128 poolPerShare, uint64 computedAt)", "event Rely(address indexed user)", "event SetMaxAssetPriceAge(uint64 indexed poolId, bytes16 scId, uint128 assetId, uint64 maxPriceAge)", "event SetMaxSharePriceAge(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, uint64 maxPriceAge)", "event SetSpokeRequestManager(uint16 indexed centrifugeId, uint64 indexed poolId, bytes32 indexed manager)", "event UpdateBalanceSheetManager(uint16 indexed centrifugeId, uint64 indexed poolId, bytes32 indexed manager, bool canManage)", "event UpdateContract(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, bytes32 target, bytes payload)", "event UpdateRestriction(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, bytes payload)", "event UpdateShareHook(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, bytes32 hook)", "event UpdateVault(uint64 indexed poolId, bytes16 scId, uint128 assetId, bytes32 vaultOrFactory, uint8 kind)", "error AccountDoesNotExist()", "error AssetNotFound()", "error CallFailedWithEmptyRevert()", "error FileUnrecognizedParam()", "error InvalidAccountCombination()", "error InvalidPoolId()", "error InvalidRequestManager()", "error MulDiv_Overflow()", "error NoCode()", "error NotAuthorized()", "error NotManager()", "error PoolAlreadyUnlocked()", "error RequestManagerCallFailed()", "error SafeTransferEthFailed()", "error ShareClassNotFound()", "error Uint128_Overflow()", "error UnauthorizedSender()", "error WrappedError(address target, bytes4 selector, bytes reason, bytes details)"];
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=Hub.abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hub.abi.d.ts","sourceRoot":"","sources":["../../src/abi/Hub.abi.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"Hub.abi.d.ts","sourceRoot":"","sources":["../../src/abi/Hub.abi.ts"],"names":[],"mappings":";AAAA,wBAyFU"}
|
package/dist/abi/Hub.abi.js
CHANGED
|
@@ -1,72 +1,70 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
'function accounting() view returns (address)',
|
|
3
|
-
'function addShareClass(uint64 poolId, string name, string symbol, bytes32 salt)
|
|
4
|
-
'function
|
|
5
|
-
'function approveRedeems(uint64 poolId, bytes16 scId, uint128 payoutAssetId, uint32 nowRedeemEpochId, uint128 approvedShareAmount) payable returns (uint128 pendingShareAmount)',
|
|
6
|
-
'function createAccount(uint64 poolId, uint32 account, bool isDebitNormal) payable',
|
|
3
|
+
'function addShareClass(uint64 poolId, string name, string symbol, bytes32 salt) returns (bytes16 scId)',
|
|
4
|
+
'function createAccount(uint64 poolId, uint256 account, bool isDebitNormal) payable',
|
|
7
5
|
'function createPool(uint64 poolId, address admin, uint128 currency) payable',
|
|
8
6
|
'function deny(address user)',
|
|
7
|
+
'function executeMulticall(bytes[] data) payable',
|
|
8
|
+
'function feeHook() view returns (address)',
|
|
9
9
|
'function file(bytes32 what, address data)',
|
|
10
|
-
'function forceCancelDepositRequest(uint64 poolId, bytes16 scId, bytes32 investor, uint128 depositAssetId) payable',
|
|
11
|
-
'function forceCancelRedeemRequest(uint64 poolId, bytes16 scId, bytes32 investor, uint128 payoutAssetId) payable',
|
|
12
10
|
'function gateway() view returns (address)',
|
|
11
|
+
'function holdingAccounts(uint256 assetAccount, uint256 equityAccount, uint256 gainAccount, uint256 lossAccount) pure returns ((uint256 accountId, uint8 kind)[])',
|
|
13
12
|
'function holdings() view returns (address)',
|
|
14
|
-
'function hubHelpers() view returns (address)',
|
|
15
13
|
'function hubRegistry() view returns (address)',
|
|
16
|
-
'function initializeHolding(uint64 poolId, bytes16 scId, uint128 assetId, address valuation,
|
|
17
|
-
'function initializeLiability(uint64 poolId, bytes16 scId, uint128 assetId, address valuation,
|
|
18
|
-
'function
|
|
19
|
-
'function
|
|
14
|
+
'function initializeHolding(uint64 poolId, bytes16 scId, uint128 assetId, address valuation, uint256 assetAccount, uint256 equityAccount, uint256 gainAccount, uint256 lossAccount) payable',
|
|
15
|
+
'function initializeLiability(uint64 poolId, bytes16 scId, uint128 assetId, address valuation, uint256 expenseAccount, uint256 liabilityAccount) payable',
|
|
16
|
+
'function liabilityAccounts(uint256 expenseAccount, uint256 liabilityAccount) pure returns ((uint256 accountId, uint8 kind)[])',
|
|
17
|
+
'function multiAdapter() view returns (address)',
|
|
20
18
|
'function multicall(bytes[] data) payable',
|
|
21
|
-
'function notifyAssetPrice(uint64 poolId, bytes16 scId, uint128 assetId) payable',
|
|
22
|
-
'function
|
|
23
|
-
'function
|
|
24
|
-
'function
|
|
25
|
-
'function
|
|
26
|
-
'function
|
|
27
|
-
'function notifySharePrice(uint64 poolId, bytes16 scId, uint16 centrifugeId) payable',
|
|
28
|
-
'function poolEscrowFactory() view returns (address)',
|
|
19
|
+
'function notifyAssetPrice(uint64 poolId, bytes16 scId, uint128 assetId, address refund) payable',
|
|
20
|
+
'function notifyPool(uint64 poolId, uint16 centrifugeId, address refund) payable',
|
|
21
|
+
'function notifyShareClass(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes32 hook, address refund) payable',
|
|
22
|
+
'function notifyShareMetadata(uint64 poolId, bytes16 scId, uint16 centrifugeId, address refund) payable',
|
|
23
|
+
'function notifySharePrice(uint64 poolId, bytes16 scId, uint16 centrifugeId, address refund) payable',
|
|
24
|
+
'function pricePoolPerAsset(uint64 poolId, bytes16 scId, uint128 assetId) view returns (uint128)',
|
|
29
25
|
'function recoverTokens(address token, address receiver, uint256 amount)',
|
|
30
26
|
'function recoverTokens(address token, uint256 tokenId, address receiver, uint256 amount)',
|
|
31
|
-
'function registerAsset(uint128 assetId, uint8 decimals)',
|
|
32
27
|
'function rely(address user)',
|
|
33
|
-
'function
|
|
34
|
-
'function revokeShares(uint64 poolId, bytes16 scId, uint128 payoutAssetId, uint32 nowRevokeEpochId, uint128 navPoolPerShare, uint128 extraGasLimit) payable returns (uint128 revokedShareAmount, uint128 payoutAssetAmount, uint128 payoutPoolAmount)',
|
|
28
|
+
'function requestCallback(uint64 poolId, bytes16 scId, uint128 assetId, bytes payload, uint128 extraGasLimit, address refund) payable',
|
|
35
29
|
'function sender() view returns (address)',
|
|
36
|
-
'function setAccountMetadata(uint64 poolId,
|
|
37
|
-
'function
|
|
38
|
-
'function
|
|
39
|
-
'function
|
|
30
|
+
'function setAccountMetadata(uint64 poolId, uint256 account, bytes metadata) payable',
|
|
31
|
+
'function setAdapters(uint64 poolId, uint16 centrifugeId, address[] localAdapters, bytes32[] remoteAdapters, uint8 threshold, uint8 recoveryIndex, address refund) payable',
|
|
32
|
+
'function setHoldingAccountId(uint64 poolId, bytes16 scId, uint128 assetId, uint8 kind, uint256 accountId) payable',
|
|
33
|
+
'function setMaxAssetPriceAge(uint64 poolId, bytes16 scId, uint128 assetId, uint64 maxPriceAge, address refund) payable',
|
|
34
|
+
'function setMaxSharePriceAge(uint64 poolId, bytes16 scId, uint16 centrifugeId, uint64 maxPriceAge, address refund) payable',
|
|
40
35
|
'function setPoolMetadata(uint64 poolId, bytes metadata) payable',
|
|
41
|
-
'function setRequestManager(uint64 poolId,
|
|
36
|
+
'function setRequestManager(uint64 poolId, uint16 centrifugeId, address hubManager, bytes32 spokeManager, address refund) payable',
|
|
42
37
|
'function setSnapshotHook(uint64 poolId, address hook) payable',
|
|
43
38
|
'function shareClassManager() view returns (address)',
|
|
44
|
-
'function
|
|
45
|
-
'function
|
|
46
|
-
'function
|
|
39
|
+
'function updateAccountingAmount(uint64 poolId, bytes16 scId, uint128 assetId, bool isPositive, uint128 diff) payable',
|
|
40
|
+
'function updateAccountingValue(uint64 poolId, bytes16 scId, uint128 assetId, bool isPositive, uint128 diff) payable',
|
|
41
|
+
'function updateBalanceSheetManager(uint64 poolId, uint16 centrifugeId, bytes32 who, bool canManage, address refund) payable',
|
|
42
|
+
'function updateContract(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes32 target, bytes payload, uint128 extraGasLimit, address refund) payable',
|
|
43
|
+
'function updateGatewayManager(uint64 poolId, uint16 centrifugeId, bytes32 who, bool canManage, address refund) payable',
|
|
47
44
|
'function updateHoldingIsLiability(uint64 poolId, bytes16 scId, uint128 assetId, bool isLiability) payable',
|
|
48
45
|
'function updateHoldingValuation(uint64 poolId, bytes16 scId, uint128 assetId, address valuation) payable',
|
|
49
46
|
'function updateHoldingValue(uint64 poolId, bytes16 scId, uint128 assetId) payable',
|
|
50
47
|
'function updateHubManager(uint64 poolId, address who, bool canManage) payable',
|
|
51
|
-
'function updateJournal(uint64 poolId, (uint128 value,
|
|
52
|
-
'function updateRestriction(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes payload, uint128 extraGasLimit) payable',
|
|
48
|
+
'function updateJournal(uint64 poolId, (uint128 value, uint256 accountId)[] debits, (uint128 value, uint256 accountId)[] credits) payable',
|
|
49
|
+
'function updateRestriction(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes payload, uint128 extraGasLimit, address refund) payable',
|
|
53
50
|
'function updateShareClassMetadata(uint64 poolId, bytes16 scId, string name, string symbol) payable',
|
|
54
|
-
'function updateShareHook(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes32 hook) payable',
|
|
55
|
-
'function updateSharePrice(uint64 poolId, bytes16 scId, uint128
|
|
56
|
-
'function
|
|
57
|
-
'function updateVault(uint64 poolId, bytes16 scId, uint128 assetId, bytes32 vaultOrFactory, uint8 kind, uint128 extraGasLimit) payable',
|
|
51
|
+
'function updateShareHook(uint64 poolId, bytes16 scId, uint16 centrifugeId, bytes32 hook, address refund) payable',
|
|
52
|
+
'function updateSharePrice(uint64 poolId, bytes16 scId, uint128 pricePoolPerShare, uint64 computedAt) payable',
|
|
53
|
+
'function updateVault(uint64 poolId, bytes16 scId, uint128 assetId, bytes32 vaultOrFactory, uint8 kind, uint128 extraGasLimit, address refund) payable',
|
|
58
54
|
'function wards(address) view returns (uint256)',
|
|
59
55
|
'event Deny(address indexed user)',
|
|
60
56
|
'event File(bytes32 what, address addr)',
|
|
61
|
-
'event ForwardTransferShares(uint16 indexed
|
|
57
|
+
'event ForwardTransferShares(uint16 indexed fromCentrifugeId, uint16 indexed toCentrifugeId, uint64 indexed poolId, bytes16 scId, bytes32 receiver, uint128 amount)',
|
|
62
58
|
'event NotifyAssetPrice(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, uint128 assetId, uint128 pricePoolPerAsset)',
|
|
63
59
|
'event NotifyPool(uint16 indexed centrifugeId, uint64 indexed poolId)',
|
|
64
60
|
'event NotifyShareClass(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId)',
|
|
65
61
|
'event NotifyShareMetadata(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, string name, string symbol)',
|
|
66
|
-
'event NotifySharePrice(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, uint128 poolPerShare)',
|
|
62
|
+
'event NotifySharePrice(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, uint128 poolPerShare, uint64 computedAt)',
|
|
67
63
|
'event Rely(address indexed user)',
|
|
68
64
|
'event SetMaxAssetPriceAge(uint64 indexed poolId, bytes16 scId, uint128 assetId, uint64 maxPriceAge)',
|
|
69
65
|
'event SetMaxSharePriceAge(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, uint64 maxPriceAge)',
|
|
66
|
+
'event SetSpokeRequestManager(uint16 indexed centrifugeId, uint64 indexed poolId, bytes32 indexed manager)',
|
|
67
|
+
'event UpdateBalanceSheetManager(uint16 indexed centrifugeId, uint64 indexed poolId, bytes32 indexed manager, bool canManage)',
|
|
70
68
|
'event UpdateContract(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, bytes32 target, bytes payload)',
|
|
71
69
|
'event UpdateRestriction(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, bytes payload)',
|
|
72
70
|
'event UpdateShareHook(uint16 indexed centrifugeId, uint64 indexed poolId, bytes16 scId, bytes32 hook)',
|
|
@@ -77,12 +75,16 @@ export default [
|
|
|
77
75
|
'error FileUnrecognizedParam()',
|
|
78
76
|
'error InvalidAccountCombination()',
|
|
79
77
|
'error InvalidPoolId()',
|
|
78
|
+
'error InvalidRequestManager()',
|
|
79
|
+
'error MulDiv_Overflow()',
|
|
80
80
|
'error NoCode()',
|
|
81
81
|
'error NotAuthorized()',
|
|
82
82
|
'error NotManager()',
|
|
83
83
|
'error PoolAlreadyUnlocked()',
|
|
84
|
+
'error RequestManagerCallFailed()',
|
|
84
85
|
'error SafeTransferEthFailed()',
|
|
85
86
|
'error ShareClassNotFound()',
|
|
87
|
+
'error Uint128_Overflow()',
|
|
86
88
|
'error UnauthorizedSender()',
|
|
87
89
|
'error WrappedError(address target, bytes4 selector, bytes reason, bytes details)',
|
|
88
90
|
];
|
package/dist/abi/Hub.abi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hub.abi.js","sourceRoot":"","sources":["../../src/abi/Hub.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,8CAA8C;IAC9C,
|
|
1
|
+
{"version":3,"file":"Hub.abi.js","sourceRoot":"","sources":["../../src/abi/Hub.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,8CAA8C;IAC9C,wGAAwG;IACxG,oFAAoF;IACpF,6EAA6E;IAC7E,6BAA6B;IAC7B,iDAAiD;IACjD,2CAA2C;IAC3C,2CAA2C;IAC3C,2CAA2C;IAC3C,kKAAkK;IAClK,4CAA4C;IAC5C,+CAA+C;IAC/C,4LAA4L;IAC5L,yJAAyJ;IACzJ,+HAA+H;IAC/H,gDAAgD;IAChD,0CAA0C;IAC1C,iGAAiG;IACjG,iFAAiF;IACjF,mHAAmH;IACnH,wGAAwG;IACxG,qGAAqG;IACrG,iGAAiG;IACjG,yEAAyE;IACzE,0FAA0F;IAC1F,6BAA6B;IAC7B,sIAAsI;IACtI,0CAA0C;IAC1C,qFAAqF;IACrF,2KAA2K;IAC3K,mHAAmH;IACnH,wHAAwH;IACxH,4HAA4H;IAC5H,iEAAiE;IACjE,kIAAkI;IAClI,+DAA+D;IAC/D,qDAAqD;IACrD,sHAAsH;IACtH,qHAAqH;IACrH,6HAA6H;IAC7H,yJAAyJ;IACzJ,wHAAwH;IACxH,2GAA2G;IAC3G,0GAA0G;IAC1G,mFAAmF;IACnF,+EAA+E;IAC/E,0IAA0I;IAC1I,4IAA4I;IAC5I,oGAAoG;IACpG,kHAAkH;IAClH,8GAA8G;IAC9G,uJAAuJ;IACvJ,gDAAgD;IAChD,kCAAkC;IAClC,wCAAwC;IACxC,oKAAoK;IACpK,sIAAsI;IACtI,sEAAsE;IACtE,0FAA0F;IAC1F,yHAAyH;IACzH,mIAAmI;IACnI,kCAAkC;IAClC,qGAAqG;IACrG,iHAAiH;IACjH,2GAA2G;IAC3G,8HAA8H;IAC9H,uHAAuH;IACvH,0GAA0G;IAC1G,uGAAuG;IACvG,6GAA6G;IAC7G,6BAA6B;IAC7B,uBAAuB;IACvB,mCAAmC;IACnC,+BAA+B;IAC/B,mCAAmC;IACnC,uBAAuB;IACvB,+BAA+B;IAC/B,yBAAyB;IACzB,gBAAgB;IAChB,uBAAuB;IACvB,oBAAoB;IACpB,6BAA6B;IAC7B,kCAAkC;IAClC,+BAA+B;IAC/B,4BAA4B;IAC5B,0BAA0B;IAC1B,4BAA4B;IAC5B,kFAAkF;CAC1E,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: readonly ["
|
|
1
|
+
declare const _default: readonly ["function currency(uint64) view returns (uint128)", "function decimals(uint128 assetId) view returns (uint8 decimals_)", "function decimals(uint256 asset_) view returns (uint8 decimals_)", "function decimals(uint64 poolId_) view returns (uint8 decimals_)", "function deny(address user)", "function dependency(uint64, bytes32) view returns (address)", "function exists(uint64 poolId_) view returns (bool)", "function hubRequestManager(uint64, uint16 centrifugeId) view returns (address)", "function isRegistered(uint128 assetId) view returns (bool)", "function manager(uint64, address) view returns (bool)", "function metadata(uint64) view returns (bytes)", "function poolId(uint16 centrifugeId, uint48 postfix) pure returns (uint64 poolId_)", "function registerAsset(uint128 assetId, uint8 decimals_)", "function registerPool(uint64 poolId_, address manager_, uint128 currency_)", "function rely(address user)", "function setHubRequestManager(uint64 poolId_, uint16 centrifugeId, address manager_)", "function setMetadata(uint64 poolId_, bytes metadata_)", "function updateCurrency(uint64 poolId_, uint128 currency_)", "function updateDependency(uint64 poolId_, bytes32 what, address dependency_)", "function updateManager(uint64 poolId_, address manager_, bool canManage)", "function wards(address) view returns (uint256)", "event Deny(address indexed user)", "event NewAsset(uint128 indexed assetId, uint8 decimals)", "event NewPool(uint64 poolId, address indexed manager, uint128 indexed currency)", "event Rely(address indexed user)", "event SetHubRequestManager(uint64 indexed poolId, uint16 indexed centrifugeId, address manager)", "event SetMetadata(uint64 indexed poolId, bytes metadata)", "event UpdateCurrency(uint64 indexed poolId, uint128 currency)", "event UpdateDependency(uint64 indexed poolId, bytes32 indexed what, address dependency)", "event UpdateManager(uint64 indexed poolId, address indexed manager, bool canManage)", "error AssetAlreadyRegistered()", "error AssetNotFound()", "error EmptyAccount()", "error EmptyCurrency()", "error EmptyShareClassManager()", "error NonExistingPool(uint64 id)", "error NotAuthorized()", "error PoolAlreadyRegistered()", "error Uint128_Overflow()"];
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=HubRegistry.abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubRegistry.abi.d.ts","sourceRoot":"","sources":["../../src/abi/HubRegistry.abi.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"HubRegistry.abi.d.ts","sourceRoot":"","sources":["../../src/abi/HubRegistry.abi.ts"],"names":[],"mappings":";AAAA,wBAwCU"}
|
|
@@ -1,28 +1,12 @@
|
|
|
1
1
|
export default [
|
|
2
|
-
'error AssetAlreadyRegistered()',
|
|
3
|
-
'error AssetNotFound()',
|
|
4
|
-
'error EmptyAccount()',
|
|
5
|
-
'error EmptyCurrency()',
|
|
6
|
-
'error EmptyShareClassManager()',
|
|
7
|
-
'error NonExistingPool(uint64 id)',
|
|
8
|
-
'error NotAuthorized()',
|
|
9
|
-
'error PoolAlreadyRegistered()',
|
|
10
|
-
'error Uint128_Overflow()',
|
|
11
|
-
'event Deny(address indexed user)',
|
|
12
|
-
'event NewAsset(uint128 indexed assetId, uint8 decimals)',
|
|
13
|
-
'event NewPool(uint64 poolId, address indexed manager, uint128 indexed currency)',
|
|
14
|
-
'event Rely(address indexed user)',
|
|
15
|
-
'event SetMetadata(uint64 indexed poolId, bytes metadata)',
|
|
16
|
-
'event UpdateCurrency(uint64 indexed poolId, uint128 currency)',
|
|
17
|
-
'event UpdateDependency(bytes32 indexed what, address dependency)',
|
|
18
|
-
'event UpdateManager(uint64 indexed poolId, address indexed manager, bool canManage)',
|
|
19
2
|
'function currency(uint64) view returns (uint128)',
|
|
20
3
|
'function decimals(uint128 assetId) view returns (uint8 decimals_)',
|
|
21
4
|
'function decimals(uint256 asset_) view returns (uint8 decimals_)',
|
|
22
5
|
'function decimals(uint64 poolId_) view returns (uint8 decimals_)',
|
|
23
6
|
'function deny(address user)',
|
|
24
|
-
'function dependency(bytes32) view returns (address)',
|
|
7
|
+
'function dependency(uint64, bytes32) view returns (address)',
|
|
25
8
|
'function exists(uint64 poolId_) view returns (bool)',
|
|
9
|
+
'function hubRequestManager(uint64, uint16 centrifugeId) view returns (address)',
|
|
26
10
|
'function isRegistered(uint128 assetId) view returns (bool)',
|
|
27
11
|
'function manager(uint64, address) view returns (bool)',
|
|
28
12
|
'function metadata(uint64) view returns (bytes)',
|
|
@@ -30,10 +14,29 @@ export default [
|
|
|
30
14
|
'function registerAsset(uint128 assetId, uint8 decimals_)',
|
|
31
15
|
'function registerPool(uint64 poolId_, address manager_, uint128 currency_)',
|
|
32
16
|
'function rely(address user)',
|
|
17
|
+
'function setHubRequestManager(uint64 poolId_, uint16 centrifugeId, address manager_)',
|
|
33
18
|
'function setMetadata(uint64 poolId_, bytes metadata_)',
|
|
34
19
|
'function updateCurrency(uint64 poolId_, uint128 currency_)',
|
|
35
|
-
'function updateDependency(bytes32 what, address dependency_)',
|
|
20
|
+
'function updateDependency(uint64 poolId_, bytes32 what, address dependency_)',
|
|
36
21
|
'function updateManager(uint64 poolId_, address manager_, bool canManage)',
|
|
37
22
|
'function wards(address) view returns (uint256)',
|
|
23
|
+
'event Deny(address indexed user)',
|
|
24
|
+
'event NewAsset(uint128 indexed assetId, uint8 decimals)',
|
|
25
|
+
'event NewPool(uint64 poolId, address indexed manager, uint128 indexed currency)',
|
|
26
|
+
'event Rely(address indexed user)',
|
|
27
|
+
'event SetHubRequestManager(uint64 indexed poolId, uint16 indexed centrifugeId, address manager)',
|
|
28
|
+
'event SetMetadata(uint64 indexed poolId, bytes metadata)',
|
|
29
|
+
'event UpdateCurrency(uint64 indexed poolId, uint128 currency)',
|
|
30
|
+
'event UpdateDependency(uint64 indexed poolId, bytes32 indexed what, address dependency)',
|
|
31
|
+
'event UpdateManager(uint64 indexed poolId, address indexed manager, bool canManage)',
|
|
32
|
+
'error AssetAlreadyRegistered()',
|
|
33
|
+
'error AssetNotFound()',
|
|
34
|
+
'error EmptyAccount()',
|
|
35
|
+
'error EmptyCurrency()',
|
|
36
|
+
'error EmptyShareClassManager()',
|
|
37
|
+
'error NonExistingPool(uint64 id)',
|
|
38
|
+
'error NotAuthorized()',
|
|
39
|
+
'error PoolAlreadyRegistered()',
|
|
40
|
+
'error Uint128_Overflow()',
|
|
38
41
|
];
|
|
39
42
|
//# sourceMappingURL=HubRegistry.abi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubRegistry.abi.js","sourceRoot":"","sources":["../../src/abi/HubRegistry.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,
|
|
1
|
+
{"version":3,"file":"HubRegistry.abi.js","sourceRoot":"","sources":["../../src/abi/HubRegistry.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,kDAAkD;IAClD,mEAAmE;IACnE,kEAAkE;IAClE,kEAAkE;IAClE,6BAA6B;IAC7B,6DAA6D;IAC7D,qDAAqD;IACrD,gFAAgF;IAChF,4DAA4D;IAC5D,uDAAuD;IACvD,gDAAgD;IAChD,oFAAoF;IACpF,0DAA0D;IAC1D,4EAA4E;IAC5E,6BAA6B;IAC7B,sFAAsF;IACtF,uDAAuD;IACvD,4DAA4D;IAC5D,8EAA8E;IAC9E,0EAA0E;IAC1E,gDAAgD;IAChD,kCAAkC;IAClC,yDAAyD;IACzD,iFAAiF;IACjF,kCAAkC;IAClC,iGAAiG;IACjG,0DAA0D;IAC1D,+DAA+D;IAC/D,yFAAyF;IACzF,qFAAqF;IACrF,gCAAgC;IAChC,uBAAuB;IACvB,sBAAsB;IACtB,uBAAuB;IACvB,gCAAgC;IAChC,kCAAkC;IAClC,uBAAuB;IACvB,+BAA+B;IAC/B,0BAA0B;CAClB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerkleProofManager.abi.d.ts","sourceRoot":"","sources":["../../src/abi/MerkleProofManager.abi.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"MerkleProofManager.abi.d.ts","sourceRoot":"","sources":["../../src/abi/MerkleProofManager.abi.ts"],"names":[],"mappings":";AAAA,wBAsBU"}
|
|
@@ -4,7 +4,7 @@ export default [
|
|
|
4
4
|
'function execute((address decoder, address target, bytes targetData, uint256 value, bytes32[] proof)[] calls)',
|
|
5
5
|
'function policy(address strategist) view returns (bytes32 root)',
|
|
6
6
|
// 'function poolId() view returns (uint64)',
|
|
7
|
-
// 'function
|
|
7
|
+
// 'function trustedCall(uint64 poolId_, bytes16, bytes payload)',
|
|
8
8
|
// 'event ExecuteCall(address indexed target, bytes4 indexed selector, bytes targetData, uint256 value)',
|
|
9
9
|
// 'event UpdatePolicy(address indexed strategist, bytes32 oldRoot, bytes32 newRoot)',
|
|
10
10
|
// 'error CallFailed()',
|
|
@@ -18,9 +18,7 @@ export default [
|
|
|
18
18
|
// 'error InvalidValuesLength()',
|
|
19
19
|
// 'error NotAStrategist()',
|
|
20
20
|
// 'error NotAuthorized()',
|
|
21
|
-
// 'error
|
|
22
|
-
// 'error UnknownMessageType()',
|
|
23
|
-
// 'error UnknownUpdateContractType()',
|
|
21
|
+
// 'error PrefixNotZero()',
|
|
24
22
|
// 'error WrappedError(address target, bytes4 selector, bytes reason, bytes details)',
|
|
25
23
|
];
|
|
26
24
|
//# sourceMappingURL=MerkleProofManager.abi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerkleProofManager.abi.js","sourceRoot":"","sources":["../../src/abi/MerkleProofManager.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,gCAAgC;IAChC,uDAAuD;IACvD,+GAA+G;IAC/G,iEAAiE;IACjE,6CAA6C;IAC7C,
|
|
1
|
+
{"version":3,"file":"MerkleProofManager.abi.js","sourceRoot":"","sources":["../../src/abi/MerkleProofManager.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,gCAAgC;IAChC,uDAAuD;IACvD,+GAA+G;IAC/G,iEAAiE;IACjE,6CAA6C;IAC7C,kEAAkE;IAClE,yGAAyG;IACzG,sFAAsF;IACtF,wBAAwB;IACxB,4BAA4B;IAC5B,iCAAiC;IACjC,mCAAmC;IACnC,2BAA2B;IAC3B,sIAAsI;IACtI,gCAAgC;IAChC,qCAAqC;IACrC,iCAAiC;IACjC,4BAA4B;IAC5B,2BAA2B;IAC3B,2BAA2B;IAC3B,sFAAsF;CAC9E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageDispatcher.abi.d.ts","sourceRoot":"","sources":["../../src/abi/MessageDispatcher.abi.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"MessageDispatcher.abi.d.ts","sourceRoot":"","sources":["../../src/abi/MessageDispatcher.abi.ts"],"names":[],"mappings":";AAAA,wBAqDU"}
|
|
@@ -1,49 +1,55 @@
|
|
|
1
1
|
export default [
|
|
2
|
-
// 'error FileUnrecognizedParam()',
|
|
3
|
-
// 'error NotAuthorized()',
|
|
4
|
-
// 'error Uint64_Overflow()',
|
|
5
|
-
// 'event Deny(address indexed user)',
|
|
6
|
-
// 'event File(bytes32 indexed what, address addr)',
|
|
7
|
-
// 'event Rely(address indexed user)',
|
|
8
2
|
// 'function balanceSheet() view returns (address)',
|
|
3
|
+
// 'function contractUpdater() view returns (address)',
|
|
9
4
|
// 'function deny(address user)',
|
|
10
|
-
// 'function estimate(uint16 centrifugeId, bytes payload) view returns (uint256 amount)',
|
|
11
5
|
// 'function file(bytes32 what, address data)',
|
|
12
6
|
// 'function gateway() view returns (address)',
|
|
13
|
-
// 'function
|
|
14
|
-
// 'function investmentManager() view returns (address)',
|
|
7
|
+
// 'function hubHandler() view returns (address)',
|
|
15
8
|
'function localCentrifugeId() view returns (uint16)',
|
|
16
|
-
// 'function
|
|
9
|
+
// 'function multiAdapter() view returns (address)',
|
|
17
10
|
// 'function rely(address user)',
|
|
18
|
-
// 'function
|
|
19
|
-
// 'function
|
|
20
|
-
// 'function
|
|
21
|
-
// 'function
|
|
22
|
-
// 'function
|
|
23
|
-
// 'function
|
|
24
|
-
// 'function
|
|
25
|
-
// 'function
|
|
26
|
-
// 'function
|
|
27
|
-
// 'function
|
|
28
|
-
// 'function
|
|
29
|
-
// 'function
|
|
30
|
-
// 'function
|
|
31
|
-
// 'function
|
|
32
|
-
// 'function
|
|
33
|
-
// 'function
|
|
34
|
-
// 'function
|
|
35
|
-
// 'function
|
|
36
|
-
// 'function
|
|
37
|
-
// 'function
|
|
38
|
-
// 'function
|
|
39
|
-
// 'function
|
|
40
|
-
// 'function
|
|
41
|
-
// 'function
|
|
42
|
-
// 'function
|
|
43
|
-
// 'function
|
|
44
|
-
// 'function
|
|
45
|
-
// 'function
|
|
11
|
+
// 'function scheduleAuth() view returns (address)',
|
|
12
|
+
// 'function sendCancelUpgrade(uint16 centrifugeId, bytes32 target, address refund) payable',
|
|
13
|
+
// 'function sendExecuteTransferShares(uint16 targetCentrifugeId, uint64 poolId, bytes16 scId, bytes32 receiver, uint128 amount, uint128 extraGasLimit, address refund) payable',
|
|
14
|
+
// 'function sendInitiateTransferShares(uint16 targetCentrifugeId, uint64 poolId, bytes16 scId, bytes32 receiver, uint128 amount, uint128 extraGasLimit, uint128 remoteExtraGasLimit, address refund) payable',
|
|
15
|
+
// 'function sendNotifyPool(uint16 centrifugeId, uint64 poolId, address refund) payable',
|
|
16
|
+
// 'function sendNotifyPricePoolPerAsset(uint64 poolId, bytes16 scId, uint128 assetId, uint128 pricePoolPerAsset, address refund) payable',
|
|
17
|
+
// 'function sendNotifyPricePoolPerShare(uint16 chainId, uint64 poolId, bytes16 scId, uint128 pricePoolPerShare, uint64 computedAt, address refund) payable',
|
|
18
|
+
// 'function sendNotifyShareClass(uint16 centrifugeId, uint64 poolId, bytes16 scId, string name, string symbol, uint8 decimals, bytes32 salt, bytes32 hook, address refund) payable',
|
|
19
|
+
// 'function sendNotifyShareMetadata(uint16 centrifugeId, uint64 poolId, bytes16 scId, string name, string symbol, address refund) payable',
|
|
20
|
+
// 'function sendRecoverTokens(uint16 centrifugeId, bytes32 target, bytes32 token, uint256 tokenId, bytes32 to, uint256 amount, address refund) payable',
|
|
21
|
+
// 'function sendRegisterAsset(uint16 centrifugeId, uint128 assetId, uint8 decimals, address refund) payable',
|
|
22
|
+
// 'function sendRequest(uint64 poolId, bytes16 scId, uint128 assetId, bytes payload, address refund) payable',
|
|
23
|
+
// 'function sendRequestCallback(uint64 poolId, bytes16 scId, uint128 assetId, bytes payload, uint128 extraGasLimit, address refund) payable',
|
|
24
|
+
// 'function sendScheduleUpgrade(uint16 centrifugeId, bytes32 target, address refund) payable',
|
|
25
|
+
// 'function sendSetMaxAssetPriceAge(uint64 poolId, bytes16 scId, uint128 assetId, uint64 maxPriceAge, address refund) payable',
|
|
26
|
+
// 'function sendSetMaxSharePriceAge(uint16 centrifugeId, uint64 poolId, bytes16 scId, uint64 maxPriceAge, address refund) payable',
|
|
27
|
+
// 'function sendSetPoolAdapters(uint16 centrifugeId, uint64 poolId, bytes32[] adapters, uint8 threshold, uint8 recoveryIndex, address refund) payable',
|
|
28
|
+
// 'function sendSetRequestManager(uint16 centrifugeId, uint64 poolId, bytes32 manager, address refund) payable',
|
|
29
|
+
// 'function sendTrustedContractUpdate(uint16 centrifugeId, uint64 poolId, bytes16 scId, bytes32 target, bytes payload, uint128 extraGasLimit, address refund) payable',
|
|
30
|
+
// 'function sendUntrustedContractUpdate(uint64 poolId, bytes16 scId, bytes32 target, bytes payload, bytes32 sender, uint128 extraGasLimit, address refund) payable',
|
|
31
|
+
// 'function sendUpdateBalanceSheetManager(uint16 centrifugeId, uint64 poolId, bytes32 who, bool canManage, address refund) payable',
|
|
32
|
+
// 'function sendUpdateGatewayManager(uint16 centrifugeId, uint64 poolId, bytes32 who, bool canManage, address refund) payable',
|
|
33
|
+
// 'function sendUpdateHoldingAmount(uint64 poolId, bytes16 scId, uint128 assetId, (uint128 netAmount, bool isIncrease, bool isSnapshot, uint64 nonce) data, uint128 pricePoolPerAsset, uint128 extraGasLimit, address refund) payable',
|
|
34
|
+
// 'function sendUpdateRestriction(uint16 centrifugeId, uint64 poolId, bytes16 scId, bytes payload, uint128 extraGasLimit, address refund) payable',
|
|
35
|
+
// 'function sendUpdateShareHook(uint16 centrifugeId, uint64 poolId, bytes16 scId, bytes32 hook, address refund) payable',
|
|
36
|
+
// 'function sendUpdateShares(uint64 poolId, bytes16 scId, (uint128 netAmount, bool isIncrease, bool isSnapshot, uint64 nonce) data, uint128 extraGasLimit, address refund) payable',
|
|
37
|
+
// 'function sendUpdateVault(uint64 poolId, bytes16 scId, uint128 assetId, bytes32 vaultOrFactory, uint8 kind, uint128 extraGasLimit, address refund) payable',
|
|
38
|
+
// 'function spoke() view returns (address)',
|
|
46
39
|
// 'function tokenRecoverer() view returns (address)',
|
|
40
|
+
// 'function vaultRegistry() view returns (address)',
|
|
47
41
|
// 'function wards(address) view returns (uint256)',
|
|
42
|
+
// 'event Deny(address indexed user)',
|
|
43
|
+
// 'event File(bytes32 indexed what, address addr)',
|
|
44
|
+
// 'event Rely(address indexed user)',
|
|
45
|
+
// 'error CannotBeSentLocally()',
|
|
46
|
+
// 'error CannotRefund()',
|
|
47
|
+
// 'error FileUnrecognizedParam()',
|
|
48
|
+
// 'error NotAuthorized()',
|
|
49
|
+
// 'error PrefixNotZero()',
|
|
50
|
+
// 'error SliceOutOfBounds()',
|
|
51
|
+
// 'error SliceOverflow()',
|
|
52
|
+
// 'error Uint16_Overflow()',
|
|
53
|
+
// 'error Uint64_Overflow()',
|
|
48
54
|
];
|
|
49
55
|
//# sourceMappingURL=MessageDispatcher.abi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageDispatcher.abi.js","sourceRoot":"","sources":["../../src/abi/MessageDispatcher.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,
|
|
1
|
+
{"version":3,"file":"MessageDispatcher.abi.js","sourceRoot":"","sources":["../../src/abi/MessageDispatcher.abi.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,oDAAoD;IACpD,uDAAuD;IACvD,iCAAiC;IACjC,+CAA+C;IAC/C,+CAA+C;IAC/C,kDAAkD;IAClD,oDAAoD;IACpD,oDAAoD;IACpD,iCAAiC;IACjC,oDAAoD;IACpD,6FAA6F;IAC7F,iLAAiL;IACjL,+MAA+M;IAC/M,yFAAyF;IACzF,2IAA2I;IAC3I,6JAA6J;IAC7J,qLAAqL;IACrL,4IAA4I;IAC5I,yJAAyJ;IACzJ,8GAA8G;IAC9G,+GAA+G;IAC/G,8IAA8I;IAC9I,+FAA+F;IAC/F,gIAAgI;IAChI,oIAAoI;IACpI,wJAAwJ;IACxJ,iHAAiH;IACjH,wKAAwK;IACxK,qKAAqK;IACrK,qIAAqI;IACrI,gIAAgI;IAChI,wOAAwO;IACxO,oJAAoJ;IACpJ,0HAA0H;IAC1H,qLAAqL;IACrL,+JAA+J;IAC/J,6CAA6C;IAC7C,sDAAsD;IACtD,qDAAqD;IACrD,oDAAoD;IACpD,sCAAsC;IACtC,oDAAoD;IACpD,sCAAsC;IACtC,iCAAiC;IACjC,0BAA0B;IAC1B,mCAAmC;IACnC,2BAA2B;IAC3B,2BAA2B;IAC3B,8BAA8B;IAC9B,2BAA2B;IAC3B,6BAA6B;IAC7B,6BAA6B;CACrB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: readonly ["function estimate(uint16 centrifugeId, bytes payload, uint256 gasLimit) view returns (uint256 total)"];
|
|
1
|
+
declare const _default: readonly ["function adapters(uint16 centrifugeId, uint64, uint256) view returns (address)", "function estimate(uint16 centrifugeId, bytes payload, uint256 gasLimit) view returns (uint256 total)", "function quorum(uint16 centrifugeId, uint64 poolId) view returns (uint8)"];
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=MultiAdapter.abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiAdapter.abi.d.ts","sourceRoot":"","sources":["../../src/abi/MultiAdapter.abi.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"MultiAdapter.abi.d.ts","sourceRoot":"","sources":["../../src/abi/MultiAdapter.abi.ts"],"names":[],"mappings":";AAAA,wBAqCU"}
|