diff --git a/docs/developer/centrifuge-sdk/buying-or-selling-defi-assets/index.md b/docs/developer/centrifuge-sdk/buying-or-selling-defi-assets/index.md index ec320dcc..b4b8d830 100644 --- a/docs/developer/centrifuge-sdk/buying-or-selling-defi-assets/index.md +++ b/docs/developer/centrifuge-sdk/buying-or-selling-defi-assets/index.md @@ -40,12 +40,12 @@ For testing purposes, you can connect to testnet instead by setting environment: const poolId = new PoolId(1); const pool = await centrifuge.pool(poolId); const scId = ShareClassId.from(poolId, 1); -const chainId = 11155111; // Ethereum Sepolia +const centrifugeId = 1; // Centrifuge network ID const poolNetworks = await pool.activeNetworks(); const poolNetwork = poolNetworks.filter( - (activeNetwork) => activeNetwork.chainId === chainId + (activeNetwork) => activeNetwork.centrifugeId === centrifugeId ); await poolNetwork.deployMerkleProofManager(); @@ -57,7 +57,7 @@ Retrieve the deployed Merkle Proof Manager and set it as a BalanceSheet manager: ```typescript const merkleProofManager = await poolNetwork.merkleProofManager(); -await poolNetwork.updateBalanceSheetManagers([{ chainId, address: merkleProofManager.address, canManage: true }]), +await poolNetwork.updateBalanceSheetManagers([{ centrifugeId, address: merkleProofManager.address, canManage: true }]), ``` ## 4. Setup policies @@ -65,7 +65,7 @@ await poolNetwork.updateBalanceSheetManagers([{ chainId, address: merkleProofMan Policies define specific contract methods that strategists are authorized to execute for managing pool assets. The Merkle Proof Manager controls access to balance sheet functions and enables whitelisting of strategists, allowing them to perform approved operations securely: ```typescript -const addresses = await centrifuge._protocolAddresses(chainId); +const addresses = await centrifuge._protocolAddresses(centrifugeId); const strategist = "0xStrategistAddress"; const vaultDepositPolicy = { diff --git a/docs/developer/centrifuge-sdk/invest-into-a-vault/index.md b/docs/developer/centrifuge-sdk/invest-into-a-vault/index.md index e76220d4..85ffecd1 100644 --- a/docs/developer/centrifuge-sdk/invest-into-a-vault/index.md +++ b/docs/developer/centrifuge-sdk/invest-into-a-vault/index.md @@ -53,7 +53,7 @@ If you’re using a private key or server-side setup, you can also provide a [Vi ## 3. Get a pool and vault Each pool can contain multiple share classes and each share class can have multiple vaults issuing tokens against an deposit asset. -You need the pool ID, share class ID, chain ID, and asset address. +You need the pool ID, share class ID, centrifuge ID, and asset address. ```typescript // Get a pool by ID @@ -61,9 +61,9 @@ const poolId = new PoolId(1); const pool = await centrifuge.pool(poolId); const scId = ShareClassId.from(poolId, 1); const assetId = AssetId.from(centId, 1); -const chainId = 11155111; // Ethereum Sepolia +const centrifugeId = 1; // Centrifuge network ID // Get a vault -const vault = await pool.vault(chainId, scId, assetId); +const vault = await pool.vault(centrifugeId, scId, assetId); ``` ## 4. Deposit into the vault diff --git a/docs/developer/centrifuge-sdk/query-data-of-a-pool/index.md b/docs/developer/centrifuge-sdk/query-data-of-a-pool/index.md index 4060ead7..39119c78 100644 --- a/docs/developer/centrifuge-sdk/query-data-of-a-pool/index.md +++ b/docs/developer/centrifuge-sdk/query-data-of-a-pool/index.md @@ -70,15 +70,15 @@ console.log(metadata); ## 5. Query a vault Each pool can contain multiple tokens and each token can have multiple vaults. -You can query a single vault using pool ID, token ID, chain ID, and asset address: +You can query a single vault using pool ID, token ID, centrifuge ID, and asset address: ```typescript // Get tokenId based on previously defined poolId const tokenId = ShareClassId.from(poolId, 1); const assetId = AssetId.from(centId, 1); -const chainId = 11155111; // Ethereum Sepolia +const centrifugeId = 1; // Centrifuge network ID // Get a vault -const vault = await pool.vault(chainId, tokenId, assetId); +const vault = await pool.vault(centrifugeId, tokenId, assetId); ``` or if you do not know token ID and asset ID you can do: @@ -97,7 +97,7 @@ const vaults = await poolNetwork.vaults(tokenId); // OR -const vaults = await shareClass.vaults(chainId); +const vaults = await shareClass.vaults(centrifugeId); // OR if we do have asset address