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

Commit

Permalink
chore(scripts): QANet configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yahortsaryk committed Jul 13, 2023
1 parent e123fb4 commit 2cc609b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 4 additions & 2 deletions scripts/deployment/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ const SEED = process.env.SUPERADMIN || config.ACTOR_SEED;
const RPC = process.env.ENV == 'devnet'
? config.DEVNET_RPC_ENDPOINT
: process.env.ENV == 'testnet'
? config.TESTNET_RPC_ENDPOINT
: config.LOCAL_RPC_ENDPOINT;
? config.TESTNET_RPC_ENDPOINT
: process.env.ENV == 'qanet'
? config.QANET_RPC_ENDPOINT
: config.LOCAL_RPC_ENDPOINT;

const deployContract = async (
contractName,
Expand Down
6 changes: 4 additions & 2 deletions scripts/examples/ddcBucketDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ const SEED = process.env.SUPERADMIN || config.ACTOR_SEED;
const RPC = process.env.ENV == 'devnet'
? config.DEVNET_RPC_ENDPOINT
: process.env.ENV == 'testnet'
? config.TESTNET_RPC_ENDPOINT
: config.LOCAL_RPC_ENDPOINT;
? config.TESTNET_RPC_ENDPOINT
: process.env.ENV == 'qanet'
? config.QANET_RPC_ENDPOINT
: config.LOCAL_RPC_ENDPOINT;

deploymentRegistry.initDefaultContracts();

Expand Down
8 changes: 8 additions & 0 deletions scripts/sdk/src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const DEVNET_RPC_ENDPOINT = "wss://archive.devnet.cere.network/ws/";
const DEVNET_DDC_BUCKET_ADDR = "";
const DEVNET_CHAIN_NAME = "Cere Devnet";

const QANET_RPC_ENDPOINT = "wss://archive.qanet.cere.network/ws/";
const QANET_DDC_BUCKET_ADDR = "";
const QANET_CHAIN_NAME = "Cere QAnet";

const TESTNET_RPC_ENDPOINT = "wss://archive.testnet.cere.network/ws/";
const TESTNET_DDC_BUCKET_ADDR = "";
const TESTNET_CHAIN_NAME = "Cere Testnet";
Expand All @@ -27,6 +31,10 @@ module.exports = {
DEVNET_DDC_BUCKET_ADDR,
DEVNET_CHAIN_NAME,

QANET_RPC_ENDPOINT,
QANET_DDC_BUCKET_ADDR,
QANET_CHAIN_NAME,

TESTNET_RPC_ENDPOINT,
TESTNET_DDC_BUCKET_ADDR,
TESTNET_CHAIN_NAME,
Expand Down

0 comments on commit 2cc609b

Please sign in to comment.