Skip to content

Commit

Permalink
Update hardhat network
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Mar 29, 2024
1 parent a1211f6 commit 5ab09fe
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/validator/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ scheduler:

bridge:
networkAContractAddress: "0x10Da82287982A7e3E718F9adE892a566F92C1Be2"
networkAName: "hardhat"
networkAName: "production_main"
networkBContractAddress: "0x10Da82287982A7e3E718F9adE892a566F92C1Be2"
networkBName: "hardhat"
networkBName: "production_side"
validators:
- "${BRIDGE_VALIDATOR1}"
- "${BRIDGE_VALIDATOR2}"
Expand Down
7 changes: 5 additions & 2 deletions packages/validator/env/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ HOST_PORT=7500
# 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
Expand Down
10 changes: 10 additions & 0 deletions packages/validator/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ const config = {
chainId: 24680,
accounts: getAccounts(),
},
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(),
},
chain1: {
url: "http://localhost:8541",
chainId: 215191,
Expand Down
7 changes: 1 addition & 6 deletions packages/validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,yaml}' -c",
"formatting:write": "prettier '**/*.{json,sol,ts,js,yaml}' --write",
"test:local": "test-local/start-test.sh",
Expand Down

0 comments on commit 5ab09fe

Please sign in to comment.