diff --git a/packages/relay/config/config.yaml b/packages/relay/config/config.yaml index 33f10172..7ce2f3d5 100644 --- a/packages/relay/config/config.yaml +++ b/packages/relay/config/config.yaml @@ -86,7 +86,7 @@ relay: contracts: sideChain: - network: "production_net" + network: "production_side" ledgerAddress : "${LEDGER_CONTRACT_ADDRESS}" phoneLinkerAddress : "${PHONE_LINKER_CONTRACT_ADDRESS}" shopAddress : "${SHOP_CONTRACT_ADDRESS}" @@ -99,7 +99,7 @@ contracts: loyaltyBridgeAddress: "${LOYALTY_BRIDGE_CONTRACT_ADDRESS}" bridgeAddress: "${SIDE_CHAIN_BRIDGE_CONTRACT_ADDRESS}" mainChain: - network: "bosagora_testnet" + network: "production_main" tokenAddress : "${MAIN_CHAIN_TOKEN_CONTRACT_ADDRESS}" loyaltyBridgeAddress: "${MAIN_CHAIN_LOYALTY_BRIDGE_CONTRACT_ADDRESS}" bridgeAddress: "${MAIN_CHAIN_BRIDGE_CONTRACT_ADDRESS}" diff --git a/packages/relay/env/.env.sample b/packages/relay/env/.env.sample index d8f239a9..170df7ab 100644 --- a/packages/relay/env/.env.sample +++ b/packages/relay/env/.env.sample @@ -5,8 +5,11 @@ HOST_PORT=7070 # CHAIN URL MAIN_NET_URL=https://mainnet.bosagora.org TEST_NET_URL=https://testnet.bosagora.org -PRODUCTION_NET_URL=http://localhost:8545 -PRODUCTION_CHAIN_ID=24680 + +PRODUCTION_MAIN_URL=https://mainnet.bosagora.org +PRODUCTION_MAIN_CHAIN_ID=2151 +PRODUCTION_SIDE_URL=https://rpc.kios.bosagora.org +PRODUCTION_SIDE_CHAIN_ID=215110 # DATABASE INFO DATABASE_HOST=127.0.0.1 diff --git a/packages/relay/hardhat.config.ts b/packages/relay/hardhat.config.ts index f4b87005..9e465b9e 100644 --- a/packages/relay/hardhat.config.ts +++ b/packages/relay/hardhat.config.ts @@ -508,9 +508,14 @@ const config = { chainId: 24680, accounts: getAccounts(), }, - production_net: { - url: process.env.PRODUCTION_NET_URL || "", - chainId: Number(process.env.PRODUCTION_CHAIN_ID || "2151"), + production_main: { + url: process.env.PRODUCTION_MAIN_URL || "", + chainId: Number(process.env.PRODUCTION_MAIN_CHAIN_ID || "2151"), + accounts: getAccounts(), + }, + production_side: { + url: process.env.PRODUCTION_SIDE_URL || "", + chainId: Number(process.env.PRODUCTION_SIDE_CHAIN_ID || "215110"), accounts: getAccounts(), }, }, diff --git a/packages/relay/package.json b/packages/relay/package.json index bcfd5b94..bea8cb92 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -10,12 +10,7 @@ "test": "TESTING=true hardhat test", "clean": "hardhat clean", "build": "hardhat compile", - "start:hardhat": "TESTING=false NODE_ENV=production hardhat run src/main.ts", - "start:mainnet": "TESTING=false NODE_ENV=production hardhat run src/main.ts --network bosagora_mainnet", - "start:testnet": "TESTING=false NODE_ENV=production hardhat run src/main.ts --network bosagora_testnet", - "start:devnet": "TESTING=false NODE_ENV=production hardhat run src/main.ts --network bosagora_devnet", - "start:localhost": "TESTING=false NODE_ENV=production hardhat run src/main.ts --network localhost", - "start": "TESTING=false NODE_ENV=production hardhat run src/main.ts --network production_net", + "start": "TESTING=false NODE_ENV=production hardhat run src/main.ts", "formatting:check": "prettier '**/*.{json,sol,ts,js}' -c", "formatting:write": "prettier '**/*.{json,sol,ts,js}' --write", "test:Endpoints": "TESTING=true hardhat test test/Endpoints.test.ts",