Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
feat: configuring testnet environment
Browse files Browse the repository at this point in the history
  • Loading branch information
yahortsaryk committed Sep 12, 2023
1 parent 663457f commit f7c1427
Showing 1 changed file with 92 additions and 87 deletions.
179 changes: 92 additions & 87 deletions scripts/ddc-setup/ddcConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,97 +50,102 @@ module.exports = {
],
},
testnet: {
ws_provider: "wss://archive.devnet.cere.network/ws",
// contract_address: "6R2PF5gzKYbNkNLymTr8YNeQgWqNkE6azspwaMLZF2UHc1sg",
contract_address: "6UWDf6rEgSDFRr1h2pMdCbifowTDK64yRkDR6nc3C1cjL82e",
cluster: {
1n: {
storage_nodes: [1n, 2n, 3n],
vnodes: [ [0n], [GEN / 3n], [GEN * 2n / 3n] ],
param: { replicationFactor: 3 },
},
2n: {
storage_nodes: [4n, 5n, 6n],
vnodes: [ [0n], [GEN / 3n], [GEN * 2n / 3n] ],
param: { replicationFactor: 3 },
},
},
storage_node_params: [
{ url: `https://node-0.v2.us.storage.testnet.cere.network` },
{ url: `https://node-1.v2.us.storage.testnet.cere.network` },
{ url: `https://node-2.v2.us.storage.testnet.cere.network` },
{ url: `https://node-0.v2.eu.storage.testnet.cere.network` },
{ url: `https://node-1.v2.eu.storage.testnet.cere.network` },
{ url: `https://node-2.v2.eu.storage.testnet.cere.network` },
],
cdn_cluster: {
0n: {
cdn_nodes: [1n, 2n],
},
1n: {
cdn_nodes: [3n, 4n],
},
2n: {
cdn_nodes: [5n, 6n],
},
},
cdn_node_params: [
{
url: `https://node-0.v2.us.cdn.testnet.cere.network`,
publicKey: "0x089522cee0567ff8e072c9efbd5cb4e05fe47cdab8340816be9d6f60538e8645",
},
{
url: `https://node-1.v2.us.cdn.testnet.cere.network`,
publicKey: "0x7693cbc6a6f3fff67d4eb29bb07bc018e1eee43618d03e6c0a91b0b3e79f272d",
},
{
url: `https://node-0.v2.eu.cdn.testnet.cere.network`,
publicKey: "0xdce47cdd1da69c19261b72e3c58e93d78e49d1ac20a566b535cb9bcf9d197958",
},
{
url: `https://node-1.v2.eu.cdn.testnet.cere.network`,
publicKey: "0xb8541743735ffba6877b214925a9ec07c813369bb36b49ee5849b1fea0f9dd55",
},
blockchainUrl: "wss://archive.testnet.cere.network/ws",
clusters: [
{
url: `https://node-0.unmarshal.v2.us.cdn.testnet.cere.network`,
publicKey: "0x685168b78deb42eebf01e38d18c9302f032c50e544d56c1c4f86b13b0a2ad40a",
params: { replicationFactor: 3 },
storageNodes: [
{
pubKey: "0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d",
vNodes: [0n],
params: { url: `https://node-0.v2.us.storage.testnet.cere.network` },
},
{
pubKey: "0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48",
vNodes: [GEN / 3n],
params: { url: `https://node-1.v2.us.storage.testnet.cere.network` },
},
{
pubKey: "0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22",
vNodes: [GEN * 2n / 3n],
params: { url: `https://node-2.v2.us.storage.testnet.cere.network` },
}
],
cdnNodes: [
{
pubKey: "0xfe65717dad0447d715f660a0a58411de509b42e6efb8375f562f58a554d5860e",
params: { url: `https://node-0.v2.us.cdn.testnet.cere.network` },
},
{
pubKey: "0x1e07379407fecc4b89eb7dbd287c2c781cfb1907a96947a3eb18e4f8e7198625",
params: { url: `https://node-1.v2.us.cdn.testnet.cere.network` },
}
]
},
{
url: `https://node-1.unmarshal.v2.us.cdn.testnet.cere.network`,
publicKey: "0xeeb3683dcd43e9c7f8759b1dce2440d767ae1c51dec05b584d785e24997cb947",
},
params: { replicationFactor: 3 },
storageNodes: [
{
pubKey: "0x306721211d5404bd9da88e0204360a1a9ab8b87c66c1bc2fcdd37f3c2222cc20",
vNodes: [0n],
params: { url: `https://node-0.v2.eu.storage.testnet.cere.network` },
},
{
pubKey: "0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e",
vNodes: [GEN / 3n],
params: { url: `https://node-1.v2.eu.storage.testnet.cere.network` },
},
{
pubKey: "0x1cbd2d43530a44705ad088af313e18f80b53ef16b36177cd4b77b846f2a5f07c",
vNodes: [GEN * 2n / 3n],
params: { url: `https://node-2.v2.eu.storage.testnet.cere.network` },
}
],
cdnNodes: [
{
pubKey: "0xe860f1b1c7227f7c22602f53f15af80747814dffd839719731ee3bba6edc126c",
params: { url: `https://node-0.v2.eu.cdn.testnet.cere.network` },
},
{
pubKey: "0x8ac59e11963af19174d0b94d5d78041c233f55d2e19324665bafdfb62925af2d",
params: { url: `https://node-1.v2.eu.cdn.testnet.cere.network` },
}
]
}
],
},

mainnet: {
ws_provider: "wss://archive.testnet.cere.network/ws",
contract_address: "6So8eqxMyWAxJ4ZZ2wCcJym7Cy6BYkc4V8GZZD9wgdCqWMQB",
cluster: {
1n: {
param: { replicationFactor: 3 },
vnodes: [ [0n], [GEN / 3n], [GEN * 2n / 3n] ],
storage_nodes: [1n, 2n, 3n],
},
},
storage_node_params: [
{ url: `https://node-0.v2.us.storage.mainnet.cere.network` },
{ url: `https://node-1.v2.us.storage.mainnet.cere.network` },
{ url: `https://node-2.v2.us.storage.mainnet.cere.network` },
],
cdn_cluster: {
0n: {
cdn_nodes: [1n, 2n],
},
},
cdn_node_params: [
{
url: `https://node-0.v2.us.cdn.mainnet.cere.network`,
publicKey: "0x86af4db1e433ad221b6fa3c1a9fc4de694ab59408ca57584e50d8fd420e7b45b",
},
{
url: `https://node-1.v2.us.cdn.mainnet.cere.network`,
publicKey: "0x9a9fb6c479ef7c8f3af54dc0720f08a73d532815d525aa8d69d965e56512440e",
},
],
},
// mainnet: {
// ws_provider: "wss://archive.testnet.cere.network/ws",
// contract_address: "6So8eqxMyWAxJ4ZZ2wCcJym7Cy6BYkc4V8GZZD9wgdCqWMQB",
// cluster: {
// 1n: {
// param: { replicationFactor: 3 },
// vnodes: [ [0n], [GEN / 3n], [GEN * 2n / 3n] ],
// storage_nodes: [1n, 2n, 3n],
// },
// },
// storage_node_params: [
// { url: `https://node-0.v2.us.storage.mainnet.cere.network` },
// { url: `https://node-1.v2.us.storage.mainnet.cere.network` },
// { url: `https://node-2.v2.us.storage.mainnet.cere.network` },
// ],
// cdn_cluster: {
// 0n: {
// cdn_nodes: [1n, 2n],
// },
// },
// cdn_node_params: [
// {
// url: `https://node-0.v2.us.cdn.mainnet.cere.network`,
// publicKey: "0x86af4db1e433ad221b6fa3c1a9fc4de694ab59408ca57584e50d8fd420e7b45b",
// },
// {
// url: `https://node-1.v2.us.cdn.mainnet.cere.network`,
// publicKey: "0x9a9fb6c479ef7c8f3af54dc0720f08a73d532815d525aa8d69d965e56512440e",
// },
// ],
// },


};

0 comments on commit f7c1427

Please sign in to comment.