@centrifuge/sdk 0.0.0-alpha.26 → 0.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Centrifuge.d.ts +1 -164
- package/dist/Centrifuge.d.ts.map +1 -1
- package/dist/Centrifuge.js +90 -188
- package/dist/Centrifuge.js.map +1 -1
- package/dist/Centrifuge.test.js +8 -5
- package/dist/Centrifuge.test.js.map +1 -1
- package/dist/abi/BalanceSheet.abi.d.ts +1 -1
- package/dist/abi/BalanceSheet.abi.js +6 -6
- package/dist/abi/BalanceSheet.abi.js.map +1 -1
- package/dist/abi/ERC6909.abi.d.ts +3 -0
- package/dist/abi/ERC6909.abi.d.ts.map +1 -0
- package/dist/abi/ERC6909.abi.js +19 -0
- package/dist/abi/ERC6909.abi.js.map +1 -0
- package/dist/abi/GasService.abi.d.ts +3 -0
- package/dist/abi/GasService.abi.d.ts.map +1 -0
- package/dist/abi/GasService.abi.js +31 -0
- package/dist/abi/GasService.abi.js.map +1 -0
- package/dist/abi/index.d.ts +229 -0
- package/dist/abi/index.d.ts.map +1 -1
- package/dist/abi/index.js +2 -0
- package/dist/abi/index.js.map +1 -1
- package/dist/config/protocol.js +1 -1
- package/dist/entities/BalanceSheet.d.ts +6 -1
- package/dist/entities/BalanceSheet.d.ts.map +1 -1
- package/dist/entities/BalanceSheet.js +78 -17
- package/dist/entities/BalanceSheet.js.map +1 -1
- package/dist/entities/BalanceSheet.test.js +19 -3
- package/dist/entities/BalanceSheet.test.js.map +1 -1
- package/dist/entities/Pool.d.ts +12 -0
- package/dist/entities/Pool.d.ts.map +1 -1
- package/dist/entities/Pool.js +22 -23
- package/dist/entities/Pool.js.map +1 -1
- package/dist/entities/PoolNetwork.d.ts +2 -0
- package/dist/entities/PoolNetwork.d.ts.map +1 -1
- package/dist/entities/PoolNetwork.js +15 -4
- package/dist/entities/PoolNetwork.js.map +1 -1
- package/dist/entities/PoolNetwork.test.js +1 -1
- package/dist/entities/PoolNetwork.test.js.map +1 -1
- package/dist/entities/ShareClass.d.ts +26 -36
- package/dist/entities/ShareClass.d.ts.map +1 -1
- package/dist/entities/ShareClass.js +83 -27
- package/dist/entities/ShareClass.js.map +1 -1
- package/dist/entities/ShareClass.test.js +3 -3
- package/dist/entities/ShareClass.test.js.map +1 -1
- package/dist/entities/Vault.d.ts.map +1 -1
- package/dist/entities/Vault.js +5 -23
- package/dist/entities/Vault.js.map +1 -1
- package/dist/entities/Vault.test.js +5 -5
- package/dist/entities/Vault.test.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/Centrifuge.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Observable } from 'rxjs';
|
|
2
1
|
import { type Abi, type Account as AccountType, type Chain } from 'viem';
|
|
3
2
|
import { Investor } from './entities/Investor.js';
|
|
4
3
|
import { Pool } from './entities/Pool.js';
|
|
@@ -6901,7 +6900,7 @@ export declare class Centrifuge {
|
|
|
6901
6900
|
/**
|
|
6902
6901
|
* Get the existing pools on the different chains.
|
|
6903
6902
|
*/
|
|
6904
|
-
pools():
|
|
6903
|
+
pools(): Query<Pool[]>;
|
|
6905
6904
|
pool(id: PoolId): Query<Pool>;
|
|
6906
6905
|
/**
|
|
6907
6906
|
* Get the metadata for an ERC20 token
|
|
@@ -6953,166 +6952,4 @@ export declare class Centrifuge {
|
|
|
6953
6952
|
assetDecimals(assetId: AssetId, chainId: number): Query<number>;
|
|
6954
6953
|
_queryIndexer<Result, Return>(query: string, variables: Record<string, any>, postProcess: (data: Result) => Return): Query<Return>;
|
|
6955
6954
|
}
|
|
6956
|
-
export declare const TEMP_DEPLOYMENTS: readonly [{
|
|
6957
|
-
readonly network: {
|
|
6958
|
-
readonly chainId: 11155111;
|
|
6959
|
-
readonly environment: "testnet";
|
|
6960
|
-
readonly centrifugeId: 1;
|
|
6961
|
-
readonly network: "ethereum";
|
|
6962
|
-
readonly etherscanUrl: "https://api-sepolia.etherscan.io/api";
|
|
6963
|
-
readonly connectsTo: readonly ["arbitrum-sepolia", "base-sepolia"];
|
|
6964
|
-
};
|
|
6965
|
-
readonly adapters: {
|
|
6966
|
-
readonly wormhole: {
|
|
6967
|
-
readonly wormholeId: "10002";
|
|
6968
|
-
readonly relayer: "0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470";
|
|
6969
|
-
readonly deploy: true;
|
|
6970
|
-
};
|
|
6971
|
-
readonly axelar: {
|
|
6972
|
-
readonly axelarId: "ethereum-sepolia";
|
|
6973
|
-
readonly gateway: "0xe432150cce91c13a887f7D836923d5597adD8E31";
|
|
6974
|
-
readonly gasService: "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6";
|
|
6975
|
-
readonly deploy: true;
|
|
6976
|
-
};
|
|
6977
|
-
};
|
|
6978
|
-
readonly contracts: {
|
|
6979
|
-
readonly root: "0x6453C75B87852Eec5bDB5257C2fcb6c233F9fd0E";
|
|
6980
|
-
readonly guardian: "0x79419e5a6bDd4b709C3c02b46B20483675099619";
|
|
6981
|
-
readonly gasService: "0x588c02283dd3Ba23C0389480533Cb331C3D72E28";
|
|
6982
|
-
readonly gateway: "0x353a317bB82C69C4f7575879370D63CB372d2B83";
|
|
6983
|
-
readonly multiAdapter: "0x587Ed28F7d5d71A6254848B0870C3b21AABb0dA7";
|
|
6984
|
-
readonly messageProcessor: "0xA659572D933864965351ca84188Df993321aDD98";
|
|
6985
|
-
readonly messageDispatcher: "0x889Df3907f37ba3639432280196fC08CB3aaAD01";
|
|
6986
|
-
readonly hubRegistry: "0xEaAaedd16eD9435E3796340228CEda296F630ef3";
|
|
6987
|
-
readonly accounting: "0x99ec67Edce4058381806029BaCe7005B37F9CfB0";
|
|
6988
|
-
readonly holdings: "0x7b2D7f8f961cdc3718E455899A3779Db1b60EB7C";
|
|
6989
|
-
readonly shareClassManager: "0x7a943883873B46639c3F8FE0B81ED010CF6cEA4b";
|
|
6990
|
-
readonly hub: "0xC4f701841c8d4FC948EDF1658cE800C2790350eb";
|
|
6991
|
-
readonly identityValuation: "0x6Bcb240d3e1f1C4321ECAFFDacB45691DC03bE5D";
|
|
6992
|
-
readonly poolEscrowFactory: "0xE0bf3dAFe2b546aE18608dE988AaE1439868ce4d";
|
|
6993
|
-
readonly routerEscrow: "0xfCa8e874b908B97b034f69A57720B7Ac317eFD4E";
|
|
6994
|
-
readonly globalEscrow: "0xc9C0A8fa02F10D790E47CF7ED17A2C4A8852b15D";
|
|
6995
|
-
readonly freezeOnlyHook: "0x6C37c8536DA3Bd73D7AF4d6dE2371F6c5Bf282a4";
|
|
6996
|
-
readonly redemptionRestrictionsHook: "0xa72ecE5FcB7D559dCe839293D89992Bd20997AeB";
|
|
6997
|
-
readonly fullRestrictionsHook: "0x37FE09A48bBDae5Dbc479DE0D85F3c3D8279FbF9";
|
|
6998
|
-
readonly tokenFactory: "0xa1cbc70C7b45870b403BfF70861f70CC52EdDEAd";
|
|
6999
|
-
readonly asyncRequestManager: "0xefA2aa579b83BC2bc70DE4E84e916B7942A739f1";
|
|
7000
|
-
readonly syncManager: "0x24fB7024B7289322cFd4A03c9dd66Eebc10e4dA7";
|
|
7001
|
-
readonly asyncVaultFactory: "0x1C5F039CBe2d8bc63d9fF9d1bFdE0561a3efA5b5";
|
|
7002
|
-
readonly syncDepositVaultFactory: "0x0394C7f38c0b0e1cC9d835dD166eCB49A53f31e8";
|
|
7003
|
-
readonly spoke: "0x2e5613B4D8275AbdC82249873375EBA353431635";
|
|
7004
|
-
readonly vaultRouter: "0x9ce2423c8d6d0fEbCD596Ec94e5406782345729c";
|
|
7005
|
-
readonly balanceSheet: "0xD9c60d4318Abe64Be4d137CAc08f24B51388A1E3";
|
|
7006
|
-
readonly wormholeAdapter: "0xA77DF260E79fC0E9E2baaf5Fa7c4E8234210cCaD";
|
|
7007
|
-
readonly axelarAdapter: "0x3a10D135D00747e36eBb61Cb1554aF29f59675b5";
|
|
7008
|
-
};
|
|
7009
|
-
}, {
|
|
7010
|
-
readonly network: {
|
|
7011
|
-
readonly chainId: 421614;
|
|
7012
|
-
readonly environment: "testnet";
|
|
7013
|
-
readonly centrifugeId: 3;
|
|
7014
|
-
readonly network: "arbitrum";
|
|
7015
|
-
readonly etherscanUrl: "https://api-sepolia.arbiscan.io/api";
|
|
7016
|
-
readonly catapultaNetwork: "arbitrumSepolia";
|
|
7017
|
-
readonly connectsTo: readonly ["sepolia", "base-sepolia"];
|
|
7018
|
-
};
|
|
7019
|
-
readonly adapters: {
|
|
7020
|
-
readonly wormhole: {
|
|
7021
|
-
readonly wormholeId: "10003";
|
|
7022
|
-
readonly relayer: "0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470";
|
|
7023
|
-
readonly deploy: false;
|
|
7024
|
-
};
|
|
7025
|
-
readonly axelar: {
|
|
7026
|
-
readonly axelarId: "arbitrum-sepolia";
|
|
7027
|
-
readonly gateway: "0xe1cE95479C84e9809269227C7F8524aE051Ae77a";
|
|
7028
|
-
readonly gasService: "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6";
|
|
7029
|
-
readonly deploy: true;
|
|
7030
|
-
};
|
|
7031
|
-
};
|
|
7032
|
-
readonly contracts: {
|
|
7033
|
-
readonly root: "0xD494AE8313Ef5368A4f43BAa963c039984de03B9";
|
|
7034
|
-
readonly guardian: "0x424315e2d5E5F85c6d944D9035Fcefa742E89F49";
|
|
7035
|
-
readonly gasService: "0x02C1A1ff76696FBcaC93450b79F8eEd544A36908";
|
|
7036
|
-
readonly gateway: "0x27dD1C01C57063487d022dB2A094eC7E55Eeb7bA";
|
|
7037
|
-
readonly multiAdapter: "0x4331A86E0E392b0e76752cEc54c2b67eDDCB247F";
|
|
7038
|
-
readonly messageProcessor: "0xb241107eA5a60aa6C1350ce0e531EFE96f60fBc3";
|
|
7039
|
-
readonly messageDispatcher: "0x30D32a13d2f5c0877e46bBC90673A5BEA97c4A9d";
|
|
7040
|
-
readonly hubRegistry: "0x92e20B218Ecfa62DEC6BD7032519f42903b0D051";
|
|
7041
|
-
readonly accounting: "0x7d929848Ca0D31a1bB655AEAc0395E6bf7eE57F4";
|
|
7042
|
-
readonly holdings: "0xCeF47646fc6bD862e74328366159BdE7D0BaCa8f";
|
|
7043
|
-
readonly shareClassManager: "0x8d597136BEC4B3a6399F14C521E06fbaF65621fB";
|
|
7044
|
-
readonly hub: "0x158Aba13c4FaA434F2e98184598873DC8bE062c4";
|
|
7045
|
-
readonly identityValuation: "0x6BF52A347248DA28777CB6cb588ABAc62Ae61e49";
|
|
7046
|
-
readonly poolEscrowFactory: "0x8aA080b9a16b4B08043CDe0dCc42801113dD3203";
|
|
7047
|
-
readonly routerEscrow: "0x47dC1B0fb5303B3498C1e1e5950632bD4a959029";
|
|
7048
|
-
readonly globalEscrow: "0xc7bA990F4B6B7a6B66249EA2046e16EAECd248d2";
|
|
7049
|
-
readonly freezeOnlyHook: "0xe690ba6334cA1F5552354B900E9D02e6Af8f335C";
|
|
7050
|
-
readonly redemptionRestrictionsHook: "0x2c33B751159f08dd6cF471DDCEec82828Cd95dD4";
|
|
7051
|
-
readonly fullRestrictionsHook: "0x1550b00E59cfB128D4076EA8CdE061fcE2806466";
|
|
7052
|
-
readonly tokenFactory: "0xdD0c9D22536DE1b2A9bCfa19EbD167CcA93659D8";
|
|
7053
|
-
readonly asyncRequestManager: "0xa9133c5c04c4211D84976b521a63532A41C31Af6";
|
|
7054
|
-
readonly syncManager: "0xB06889CE8A4f7840eeb8EE79B1f584369fa2Aa7C";
|
|
7055
|
-
readonly asyncVaultFactory: "0x0fC93dc1e66b329E1B50e5251E3Eef707ce15728";
|
|
7056
|
-
readonly syncDepositVaultFactory: "0x1a02aa3258fef51ddD34c60f365205af9b01443B";
|
|
7057
|
-
readonly spoke: "0xBDAB5Cf95e3f3D388aF1417CFf34470864454431";
|
|
7058
|
-
readonly vaultRouter: "0x6c0036c95d27442CBB78c8E8C284B93A7687Cf03";
|
|
7059
|
-
readonly balanceSheet: "0xf0b119b61C30f9EfBF1aB976327a33c601b05917";
|
|
7060
|
-
readonly axelarAdapter: "0x63320C1716F3B598DE9053F0343249a7E43634fe";
|
|
7061
|
-
readonly wormholeAdapter: "0x0";
|
|
7062
|
-
};
|
|
7063
|
-
}, {
|
|
7064
|
-
readonly network: {
|
|
7065
|
-
readonly chainId: 84532;
|
|
7066
|
-
readonly environment: "testnet";
|
|
7067
|
-
readonly centrifugeId: 2;
|
|
7068
|
-
readonly network: "base";
|
|
7069
|
-
readonly catapultaNetwork: "baseSepolia";
|
|
7070
|
-
readonly etherscanUrl: "https://api-sepolia.basescan.org/api";
|
|
7071
|
-
readonly connectsTo: readonly ["sepolia"];
|
|
7072
|
-
};
|
|
7073
|
-
readonly adapters: {
|
|
7074
|
-
readonly wormhole: {
|
|
7075
|
-
readonly wormholeId: "10004";
|
|
7076
|
-
readonly relayer: "0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE";
|
|
7077
|
-
readonly deploy: true;
|
|
7078
|
-
};
|
|
7079
|
-
readonly axelar: {
|
|
7080
|
-
readonly axelarId: "base-sepolia";
|
|
7081
|
-
readonly gateway: "0xe432150cce91c13a887f7D836923d5597adD8E31";
|
|
7082
|
-
readonly gasService: "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6";
|
|
7083
|
-
readonly deploy: true;
|
|
7084
|
-
};
|
|
7085
|
-
};
|
|
7086
|
-
readonly contracts: {
|
|
7087
|
-
readonly root: "0x812D99c0bC8B7a74502871D73c401eb36039a181";
|
|
7088
|
-
readonly guardian: "0xF58d63966BabF0b0EdbD38917418756c4fa27Cca";
|
|
7089
|
-
readonly gasService: "0xBD6f23480DaA1ee28B1acfE51520Bdcf05eA880C";
|
|
7090
|
-
readonly gateway: "0x4d8C9dDB6A1B3C18E381c425d6F12438D472d900";
|
|
7091
|
-
readonly multiAdapter: "0xDd51383595f18577a5760C2726aFB3264d9C078F";
|
|
7092
|
-
readonly messageProcessor: "0x40828083cB78A165690FC81D5D13F3f7C02F1E72";
|
|
7093
|
-
readonly messageDispatcher: "0x54a74682da4A535dee99Ea936a457bF2659cBCBA";
|
|
7094
|
-
readonly hubRegistry: "0x5411368415C09A46624DA0c21af681b5A46E772a";
|
|
7095
|
-
readonly accounting: "0xdC62A9380bab5BB90954086Dc7Bb02ac95385f58";
|
|
7096
|
-
readonly holdings: "0xAEB0B9253fbB32ED05D442A3185eAB36DFCb65dF";
|
|
7097
|
-
readonly shareClassManager: "0xAFf6eB55ea716D9d2AeAA2f92dfa2fB18B6E8E53";
|
|
7098
|
-
readonly hub: "0x901eb3C1bb122C3E44C87597b8A73385e2b0986a";
|
|
7099
|
-
readonly identityValuation: "0x82a6BeC96F48Bf84a6948b1cb8b3Dd56990FC86A";
|
|
7100
|
-
readonly poolEscrowFactory: "0xea0213528de2851a5E9eEB0af41bEd8a1dD5A6ae";
|
|
7101
|
-
readonly routerEscrow: "0x1b376E6e1176dCAf5F1a95b7Fc3C81777a18dFA4";
|
|
7102
|
-
readonly globalEscrow: "0xAE3cf280db45af3Daf3db44f87Cd86F0f9cE8418";
|
|
7103
|
-
readonly freezeOnlyHook: "0xcF429dB019D0E461220f2375aB0a17E738804FA6";
|
|
7104
|
-
readonly redemptionRestrictionsHook: "0xeB38f1568881F5e9aE24Dc6c4cC72aa914A7CFb7";
|
|
7105
|
-
readonly fullRestrictionsHook: "0xF496fB53FF4EEdf402caD77a7C7E3DDDeBb8868e";
|
|
7106
|
-
readonly tokenFactory: "0x2473c4e384B587F8A246166A3f62dD61C7932b21";
|
|
7107
|
-
readonly asyncRequestManager: "0x4dc994F05aa257f34683AC53F5522D2aC80dBAce";
|
|
7108
|
-
readonly syncManager: "0xDf75Af2306f09dfECa802B7640580DE5D5e7C845";
|
|
7109
|
-
readonly asyncVaultFactory: "0x107cFf9bD6888e6D4bc7E3e66E56AE5950D73389";
|
|
7110
|
-
readonly syncDepositVaultFactory: "0x856c7173b6B7E72FaAb744049C9D9755F1c6a910";
|
|
7111
|
-
readonly spoke: "0xE86ba28E67317021ED1668Ac74f6aEcb58204D4a";
|
|
7112
|
-
readonly vaultRouter: "0xeCD41929C8bF8F81162fCDA3b3F7b355F290C8B2";
|
|
7113
|
-
readonly balanceSheet: "0xd2E92E0F3aEe2a267b62F894F652Bd0CafcFD3D8";
|
|
7114
|
-
readonly wormholeAdapter: "0x20476c2Ce241cB411A126E5cb0AA4f5881E1880a";
|
|
7115
|
-
readonly axelarAdapter: "0x7D1418c9074E2C55284Bc98525a4E8A5375DA5df";
|
|
7116
|
-
};
|
|
7117
|
-
}];
|
|
7118
6955
|
//# 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,EAWL,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,EAAsB,MAAM,wBAAwB,CAAA;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAM3C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAgB,MAAM,kBAAkB,CAAA;AAsBhE,qBAAa,UAAU;;IAErB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AE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IA0I3G,EAAE,CAAC,OAAO,EAAE,MAAM;IAclB;;OAEG;IACH,KAAK;IAsBL,IAAI,CAAC,EAAE,EAAE,MAAM;IAYf;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,eAAe,CAAC;IA8BrE,QAAQ,CAAC,OAAO,EAAE,SAAS;IAI3B;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM;;;;IAsC9D;;;;OAIG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,SAAe;;;;;;;;IAkDtD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM;;;IAY1B;;;;;;OAMG;IACH,aAAa,CACX,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,SAAS,EACvB,OAAO,GAAE,MAAM,GAAG,MAAU;IAqB9B;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM;IA4I/C,aAAa,CAAC,MAAM,EAAE,MAAM,EAC1B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GACpC,KAAK,CAAC,MAAM,CAAC;CAiXjB"}
|
package/dist/Centrifuge.js
CHANGED
|
@@ -17,12 +17,12 @@ import { AssetId, PoolId, ShareClassId } from './utils/types.js';
|
|
|
17
17
|
const PINNING_API_DEMO = 'https://europe-central2-peak-vista-185616.cloudfunctions.net/pinning-api-demo';
|
|
18
18
|
const envConfig = {
|
|
19
19
|
mainnet: {
|
|
20
|
-
indexerUrl: 'https://api
|
|
20
|
+
indexerUrl: 'https://api.centrifuge.io',
|
|
21
21
|
ipfsUrl: 'https://centrifuge.mypinata.cloud',
|
|
22
22
|
...createPinning(PINNING_API_DEMO),
|
|
23
23
|
},
|
|
24
24
|
testnet: {
|
|
25
|
-
indexerUrl: 'https://api
|
|
25
|
+
indexerUrl: 'https://api.centrifuge.io',
|
|
26
26
|
ipfsUrl: 'https://centrifuge.mypinata.cloud',
|
|
27
27
|
...createPinning(PINNING_API_DEMO),
|
|
28
28
|
},
|
|
@@ -230,12 +230,12 @@ export class Centrifuge {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
}
|
|
233
|
+
}`, {}, (data) => {
|
|
234
234
|
return data.pools.items.map((pool) => {
|
|
235
235
|
const poolId = new PoolId(pool.id);
|
|
236
236
|
return new Pool(this, poolId.toString(), Number(pool.blockchain.id));
|
|
237
237
|
});
|
|
238
|
-
})
|
|
238
|
+
});
|
|
239
239
|
}
|
|
240
240
|
pool(id) {
|
|
241
241
|
return this._query(null, () => this.pools().pipe(map((pools) => {
|
|
@@ -391,6 +391,46 @@ export class Centrifuge {
|
|
|
391
391
|
args: [assetId.raw],
|
|
392
392
|
}))));
|
|
393
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* Get the allowance of an ERC20 or ERC6909 token.
|
|
396
|
+
* which is the contract that moves funds into the vault on behalf of the investor.
|
|
397
|
+
* @param owner - The address of the owner
|
|
398
|
+
* @param spender - The address of the spender
|
|
399
|
+
* @param chainId - The chain ID where the asset is located
|
|
400
|
+
* @param asset - The address of the asset
|
|
401
|
+
* @param tokenId - Optional token ID for ERC6909 assets
|
|
402
|
+
* @internal
|
|
403
|
+
*/
|
|
404
|
+
_allowance(owner, spender, chainId, asset, tokenId) {
|
|
405
|
+
return this._query(['allowance', owner.toLowerCase(), spender.toLowerCase(), asset.toLowerCase(), chainId, tokenId], () => defer(async () => {
|
|
406
|
+
const client = this.getClient(chainId);
|
|
407
|
+
if (tokenId) {
|
|
408
|
+
return client.readContract({
|
|
409
|
+
address: asset,
|
|
410
|
+
abi: ABI.ERC6909,
|
|
411
|
+
functionName: 'allowance',
|
|
412
|
+
args: [owner, spender, tokenId],
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
return client.readContract({
|
|
416
|
+
address: asset,
|
|
417
|
+
abi: ABI.Currency,
|
|
418
|
+
functionName: 'allowance',
|
|
419
|
+
args: [owner, spender],
|
|
420
|
+
});
|
|
421
|
+
}).pipe(repeatOnEvents(this, {
|
|
422
|
+
address: asset,
|
|
423
|
+
abi: [ABI.Currency, ABI.ERC6909],
|
|
424
|
+
eventName: ['Approval', 'Transfer'],
|
|
425
|
+
filter: (events) => {
|
|
426
|
+
return events.some((event) => {
|
|
427
|
+
return (event.args.owner?.toLowerCase() === owner.toLowerCase() ||
|
|
428
|
+
event.args.spender?.toLowerCase() === owner.toLowerCase() ||
|
|
429
|
+
event.args.from?.toLowerCase() === owner.toLowerCase());
|
|
430
|
+
});
|
|
431
|
+
},
|
|
432
|
+
}, chainId)));
|
|
433
|
+
}
|
|
394
434
|
/**
|
|
395
435
|
* Returns an observable of all events on a given chain.
|
|
396
436
|
* @internal
|
|
@@ -672,29 +712,57 @@ export class Centrifuge {
|
|
|
672
712
|
}
|
|
673
713
|
/** @internal */
|
|
674
714
|
_protocolAddresses(chainId) {
|
|
675
|
-
return this._query(['protocolAddresses'
|
|
715
|
+
return this._query(['protocolAddresses'], () => this._getIndexerObservable(`{
|
|
716
|
+
deployments {
|
|
717
|
+
items {
|
|
718
|
+
accounting
|
|
719
|
+
asyncRequestManager
|
|
720
|
+
asyncVaultFactory
|
|
721
|
+
axelarAdapter
|
|
722
|
+
balanceSheet
|
|
723
|
+
centrifugeId
|
|
724
|
+
chainId
|
|
725
|
+
freezeOnlyHook
|
|
726
|
+
fullRestrictionsHook
|
|
727
|
+
gasService
|
|
728
|
+
gateway
|
|
729
|
+
globalEscrow
|
|
730
|
+
guardian
|
|
731
|
+
holdings
|
|
732
|
+
hub
|
|
733
|
+
hubRegistry
|
|
734
|
+
identityValuation
|
|
735
|
+
messageDispatcher
|
|
736
|
+
messageProcessor
|
|
737
|
+
multiAdapter
|
|
738
|
+
poolEscrowFactory
|
|
739
|
+
redemptionRestrictionsHook
|
|
740
|
+
root
|
|
741
|
+
routerEscrow
|
|
742
|
+
shareClassManager
|
|
743
|
+
spoke
|
|
744
|
+
syncDepositVaultFactory
|
|
745
|
+
syncManager
|
|
746
|
+
wormholeAdapter
|
|
747
|
+
vaultRouter
|
|
748
|
+
tokenFactory
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
}`, { chainId: String(chainId) }).pipe(map((data) => {
|
|
676
752
|
const network = chainIdToNetwork[chainId];
|
|
677
753
|
const chainCurrencies = currencies[chainId];
|
|
678
754
|
if (!network || !chainCurrencies) {
|
|
679
|
-
throw new Error(`No protocol config
|
|
755
|
+
throw new Error(`No protocol config found for chain id ${chainId}`);
|
|
680
756
|
}
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
return
|
|
686
|
-
|
|
687
|
-
return response.json().then(() => {
|
|
688
|
-
// TODO: Replace temp addresses
|
|
689
|
-
return TEMP_DEPLOYMENTS.find((d) => d.network.chainId === chainId);
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
throw new Error(`Error ${response.status}`);
|
|
693
|
-
}), map((data) => ({
|
|
694
|
-
...data.contracts,
|
|
757
|
+
const deployment = data.deployments.items.find((d) => Number(d.chainId) === chainId);
|
|
758
|
+
if (!deployment) {
|
|
759
|
+
throw new Error(`No protocol contracts found for chain id ${chainId}`);
|
|
760
|
+
}
|
|
761
|
+
return {
|
|
762
|
+
...deployment,
|
|
695
763
|
currencies: chainCurrencies,
|
|
696
|
-
}
|
|
697
|
-
});
|
|
764
|
+
};
|
|
765
|
+
})));
|
|
698
766
|
}
|
|
699
767
|
/** @internal */
|
|
700
768
|
_getQuote(valuationAddress, baseAmount, baseAssetId, quoteAssetId, chainId) {
|
|
@@ -734,170 +802,4 @@ export class Centrifuge {
|
|
|
734
802
|
})));
|
|
735
803
|
}
|
|
736
804
|
}
|
|
737
|
-
export const TEMP_DEPLOYMENTS = [
|
|
738
|
-
{
|
|
739
|
-
network: {
|
|
740
|
-
chainId: 11155111,
|
|
741
|
-
environment: 'testnet',
|
|
742
|
-
centrifugeId: 1,
|
|
743
|
-
network: 'ethereum',
|
|
744
|
-
etherscanUrl: 'https://api-sepolia.etherscan.io/api',
|
|
745
|
-
connectsTo: ['arbitrum-sepolia', 'base-sepolia'],
|
|
746
|
-
},
|
|
747
|
-
adapters: {
|
|
748
|
-
wormhole: {
|
|
749
|
-
wormholeId: '10002',
|
|
750
|
-
relayer: '0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470',
|
|
751
|
-
deploy: true,
|
|
752
|
-
},
|
|
753
|
-
axelar: {
|
|
754
|
-
axelarId: 'ethereum-sepolia',
|
|
755
|
-
gateway: '0xe432150cce91c13a887f7D836923d5597adD8E31',
|
|
756
|
-
gasService: '0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6',
|
|
757
|
-
deploy: true,
|
|
758
|
-
},
|
|
759
|
-
},
|
|
760
|
-
contracts: {
|
|
761
|
-
root: '0x6453C75B87852Eec5bDB5257C2fcb6c233F9fd0E',
|
|
762
|
-
guardian: '0x79419e5a6bDd4b709C3c02b46B20483675099619',
|
|
763
|
-
gasService: '0x588c02283dd3Ba23C0389480533Cb331C3D72E28',
|
|
764
|
-
gateway: '0x353a317bB82C69C4f7575879370D63CB372d2B83',
|
|
765
|
-
multiAdapter: '0x587Ed28F7d5d71A6254848B0870C3b21AABb0dA7',
|
|
766
|
-
messageProcessor: '0xA659572D933864965351ca84188Df993321aDD98',
|
|
767
|
-
messageDispatcher: '0x889Df3907f37ba3639432280196fC08CB3aaAD01',
|
|
768
|
-
hubRegistry: '0xEaAaedd16eD9435E3796340228CEda296F630ef3',
|
|
769
|
-
accounting: '0x99ec67Edce4058381806029BaCe7005B37F9CfB0',
|
|
770
|
-
holdings: '0x7b2D7f8f961cdc3718E455899A3779Db1b60EB7C',
|
|
771
|
-
shareClassManager: '0x7a943883873B46639c3F8FE0B81ED010CF6cEA4b',
|
|
772
|
-
hub: '0xC4f701841c8d4FC948EDF1658cE800C2790350eb',
|
|
773
|
-
identityValuation: '0x6Bcb240d3e1f1C4321ECAFFDacB45691DC03bE5D',
|
|
774
|
-
poolEscrowFactory: '0xE0bf3dAFe2b546aE18608dE988AaE1439868ce4d',
|
|
775
|
-
routerEscrow: '0xfCa8e874b908B97b034f69A57720B7Ac317eFD4E',
|
|
776
|
-
globalEscrow: '0xc9C0A8fa02F10D790E47CF7ED17A2C4A8852b15D',
|
|
777
|
-
freezeOnlyHook: '0x6C37c8536DA3Bd73D7AF4d6dE2371F6c5Bf282a4',
|
|
778
|
-
redemptionRestrictionsHook: '0xa72ecE5FcB7D559dCe839293D89992Bd20997AeB',
|
|
779
|
-
fullRestrictionsHook: '0x37FE09A48bBDae5Dbc479DE0D85F3c3D8279FbF9',
|
|
780
|
-
tokenFactory: '0xa1cbc70C7b45870b403BfF70861f70CC52EdDEAd',
|
|
781
|
-
asyncRequestManager: '0xefA2aa579b83BC2bc70DE4E84e916B7942A739f1',
|
|
782
|
-
syncManager: '0x24fB7024B7289322cFd4A03c9dd66Eebc10e4dA7',
|
|
783
|
-
asyncVaultFactory: '0x1C5F039CBe2d8bc63d9fF9d1bFdE0561a3efA5b5',
|
|
784
|
-
syncDepositVaultFactory: '0x0394C7f38c0b0e1cC9d835dD166eCB49A53f31e8',
|
|
785
|
-
spoke: '0x2e5613B4D8275AbdC82249873375EBA353431635',
|
|
786
|
-
vaultRouter: '0x9ce2423c8d6d0fEbCD596Ec94e5406782345729c',
|
|
787
|
-
balanceSheet: '0xD9c60d4318Abe64Be4d137CAc08f24B51388A1E3',
|
|
788
|
-
wormholeAdapter: '0xA77DF260E79fC0E9E2baaf5Fa7c4E8234210cCaD',
|
|
789
|
-
axelarAdapter: '0x3a10D135D00747e36eBb61Cb1554aF29f59675b5',
|
|
790
|
-
},
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
network: {
|
|
794
|
-
chainId: 421614,
|
|
795
|
-
environment: 'testnet',
|
|
796
|
-
centrifugeId: 3,
|
|
797
|
-
network: 'arbitrum',
|
|
798
|
-
etherscanUrl: 'https://api-sepolia.arbiscan.io/api',
|
|
799
|
-
catapultaNetwork: 'arbitrumSepolia',
|
|
800
|
-
connectsTo: ['sepolia', 'base-sepolia'],
|
|
801
|
-
},
|
|
802
|
-
adapters: {
|
|
803
|
-
wormhole: {
|
|
804
|
-
wormholeId: '10003',
|
|
805
|
-
relayer: '0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470',
|
|
806
|
-
deploy: false,
|
|
807
|
-
},
|
|
808
|
-
axelar: {
|
|
809
|
-
axelarId: 'arbitrum-sepolia',
|
|
810
|
-
gateway: '0xe1cE95479C84e9809269227C7F8524aE051Ae77a',
|
|
811
|
-
gasService: '0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6',
|
|
812
|
-
deploy: true,
|
|
813
|
-
},
|
|
814
|
-
},
|
|
815
|
-
contracts: {
|
|
816
|
-
root: '0xD494AE8313Ef5368A4f43BAa963c039984de03B9',
|
|
817
|
-
guardian: '0x424315e2d5E5F85c6d944D9035Fcefa742E89F49',
|
|
818
|
-
gasService: '0x02C1A1ff76696FBcaC93450b79F8eEd544A36908',
|
|
819
|
-
gateway: '0x27dD1C01C57063487d022dB2A094eC7E55Eeb7bA',
|
|
820
|
-
multiAdapter: '0x4331A86E0E392b0e76752cEc54c2b67eDDCB247F',
|
|
821
|
-
messageProcessor: '0xb241107eA5a60aa6C1350ce0e531EFE96f60fBc3',
|
|
822
|
-
messageDispatcher: '0x30D32a13d2f5c0877e46bBC90673A5BEA97c4A9d',
|
|
823
|
-
hubRegistry: '0x92e20B218Ecfa62DEC6BD7032519f42903b0D051',
|
|
824
|
-
accounting: '0x7d929848Ca0D31a1bB655AEAc0395E6bf7eE57F4',
|
|
825
|
-
holdings: '0xCeF47646fc6bD862e74328366159BdE7D0BaCa8f',
|
|
826
|
-
shareClassManager: '0x8d597136BEC4B3a6399F14C521E06fbaF65621fB',
|
|
827
|
-
hub: '0x158Aba13c4FaA434F2e98184598873DC8bE062c4',
|
|
828
|
-
identityValuation: '0x6BF52A347248DA28777CB6cb588ABAc62Ae61e49',
|
|
829
|
-
poolEscrowFactory: '0x8aA080b9a16b4B08043CDe0dCc42801113dD3203',
|
|
830
|
-
routerEscrow: '0x47dC1B0fb5303B3498C1e1e5950632bD4a959029',
|
|
831
|
-
globalEscrow: '0xc7bA990F4B6B7a6B66249EA2046e16EAECd248d2',
|
|
832
|
-
freezeOnlyHook: '0xe690ba6334cA1F5552354B900E9D02e6Af8f335C',
|
|
833
|
-
redemptionRestrictionsHook: '0x2c33B751159f08dd6cF471DDCEec82828Cd95dD4',
|
|
834
|
-
fullRestrictionsHook: '0x1550b00E59cfB128D4076EA8CdE061fcE2806466',
|
|
835
|
-
tokenFactory: '0xdD0c9D22536DE1b2A9bCfa19EbD167CcA93659D8',
|
|
836
|
-
asyncRequestManager: '0xa9133c5c04c4211D84976b521a63532A41C31Af6',
|
|
837
|
-
syncManager: '0xB06889CE8A4f7840eeb8EE79B1f584369fa2Aa7C',
|
|
838
|
-
asyncVaultFactory: '0x0fC93dc1e66b329E1B50e5251E3Eef707ce15728',
|
|
839
|
-
syncDepositVaultFactory: '0x1a02aa3258fef51ddD34c60f365205af9b01443B',
|
|
840
|
-
spoke: '0xBDAB5Cf95e3f3D388aF1417CFf34470864454431',
|
|
841
|
-
vaultRouter: '0x6c0036c95d27442CBB78c8E8C284B93A7687Cf03',
|
|
842
|
-
balanceSheet: '0xf0b119b61C30f9EfBF1aB976327a33c601b05917',
|
|
843
|
-
axelarAdapter: '0x63320C1716F3B598DE9053F0343249a7E43634fe',
|
|
844
|
-
wormholeAdapter: '0x0',
|
|
845
|
-
},
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
network: {
|
|
849
|
-
chainId: 84532,
|
|
850
|
-
environment: 'testnet',
|
|
851
|
-
centrifugeId: 2,
|
|
852
|
-
network: 'base',
|
|
853
|
-
catapultaNetwork: 'baseSepolia',
|
|
854
|
-
etherscanUrl: 'https://api-sepolia.basescan.org/api',
|
|
855
|
-
connectsTo: ['sepolia'],
|
|
856
|
-
},
|
|
857
|
-
adapters: {
|
|
858
|
-
wormhole: {
|
|
859
|
-
wormholeId: '10004',
|
|
860
|
-
relayer: '0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE',
|
|
861
|
-
deploy: true,
|
|
862
|
-
},
|
|
863
|
-
axelar: {
|
|
864
|
-
axelarId: 'base-sepolia',
|
|
865
|
-
gateway: '0xe432150cce91c13a887f7D836923d5597adD8E31',
|
|
866
|
-
gasService: '0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6',
|
|
867
|
-
deploy: true,
|
|
868
|
-
},
|
|
869
|
-
},
|
|
870
|
-
contracts: {
|
|
871
|
-
root: '0x812D99c0bC8B7a74502871D73c401eb36039a181',
|
|
872
|
-
guardian: '0xF58d63966BabF0b0EdbD38917418756c4fa27Cca',
|
|
873
|
-
gasService: '0xBD6f23480DaA1ee28B1acfE51520Bdcf05eA880C',
|
|
874
|
-
gateway: '0x4d8C9dDB6A1B3C18E381c425d6F12438D472d900',
|
|
875
|
-
multiAdapter: '0xDd51383595f18577a5760C2726aFB3264d9C078F',
|
|
876
|
-
messageProcessor: '0x40828083cB78A165690FC81D5D13F3f7C02F1E72',
|
|
877
|
-
messageDispatcher: '0x54a74682da4A535dee99Ea936a457bF2659cBCBA',
|
|
878
|
-
hubRegistry: '0x5411368415C09A46624DA0c21af681b5A46E772a',
|
|
879
|
-
accounting: '0xdC62A9380bab5BB90954086Dc7Bb02ac95385f58',
|
|
880
|
-
holdings: '0xAEB0B9253fbB32ED05D442A3185eAB36DFCb65dF',
|
|
881
|
-
shareClassManager: '0xAFf6eB55ea716D9d2AeAA2f92dfa2fB18B6E8E53',
|
|
882
|
-
hub: '0x901eb3C1bb122C3E44C87597b8A73385e2b0986a',
|
|
883
|
-
identityValuation: '0x82a6BeC96F48Bf84a6948b1cb8b3Dd56990FC86A',
|
|
884
|
-
poolEscrowFactory: '0xea0213528de2851a5E9eEB0af41bEd8a1dD5A6ae',
|
|
885
|
-
routerEscrow: '0x1b376E6e1176dCAf5F1a95b7Fc3C81777a18dFA4',
|
|
886
|
-
globalEscrow: '0xAE3cf280db45af3Daf3db44f87Cd86F0f9cE8418',
|
|
887
|
-
freezeOnlyHook: '0xcF429dB019D0E461220f2375aB0a17E738804FA6',
|
|
888
|
-
redemptionRestrictionsHook: '0xeB38f1568881F5e9aE24Dc6c4cC72aa914A7CFb7',
|
|
889
|
-
fullRestrictionsHook: '0xF496fB53FF4EEdf402caD77a7C7E3DDDeBb8868e',
|
|
890
|
-
tokenFactory: '0x2473c4e384B587F8A246166A3f62dD61C7932b21',
|
|
891
|
-
asyncRequestManager: '0x4dc994F05aa257f34683AC53F5522D2aC80dBAce',
|
|
892
|
-
syncManager: '0xDf75Af2306f09dfECa802B7640580DE5D5e7C845',
|
|
893
|
-
asyncVaultFactory: '0x107cFf9bD6888e6D4bc7E3e66E56AE5950D73389',
|
|
894
|
-
syncDepositVaultFactory: '0x856c7173b6B7E72FaAb744049C9D9755F1c6a910',
|
|
895
|
-
spoke: '0xE86ba28E67317021ED1668Ac74f6aEcb58204D4a',
|
|
896
|
-
vaultRouter: '0xeCD41929C8bF8F81162fCDA3b3F7b355F290C8B2',
|
|
897
|
-
balanceSheet: '0xd2E92E0F3aEe2a267b62F894F652Bd0CafcFD3D8',
|
|
898
|
-
wormholeAdapter: '0x20476c2Ce241cB411A126E5cb0AA4f5881E1880a',
|
|
899
|
-
axelarAdapter: '0x7D1418c9074E2C55284Bc98525a4E8A5375DA5df',
|
|
900
|
-
},
|
|
901
|
-
},
|
|
902
|
-
];
|
|
903
805
|
//# sourceMappingURL=Centrifuge.js.map
|