Skip to content

Commit

Permalink
Merge pull request #55 from razor-network/deploy_opbnbtestnet
Browse files Browse the repository at this point in the history
chore: deploy contracts to opBNB Testnet
  • Loading branch information
yohanelly95 authored Nov 24, 2023
2 parents 71121a6 + c062c06 commit bf6f9d4
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DEPLOYER_KEY=
SIGNER_ADDRESS=
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ The above script will perform following operation:
| TransparentForwarder | 0x53Df936a3594777185DF12Cd073d9033cfF348D6 |
| Staking | 0x7f80398840d1be49dd99609abe405034bf97e97a |

### opBNB Testnet

| Contract | Address |
| -------------------- | ------------------------------------------ |
| ResultManager | 0xFEb70E7Ad36b425b698184B3d5b1F856c8132a42 |
| Forwarder | 0xa26232204879C4370806cA56F821b9fe97eAeF5B |
| TransparentForwarder | 0xbF5c5AD799b2245BA36562BebfcbAbc5D508Eb84 |
| Staking | 0x03bD73afB6d3C5B86578010C099E5474aF1aABeF |

## Adding a New Network to Bridge

### 1. Update Hardhat Configuration
Expand Down
9 changes: 9 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ require("@nomicfoundation/hardhat-toolbox");
require("@openzeppelin/hardhat-upgrades");
require("hardhat-abi-exporter");
require("solidity-coverage");
require('dotenv').config();

/** @type import('hardhat/config').HardhatUserConfig */

const { RINKEBY_RPC } = process.env;
Expand Down Expand Up @@ -62,6 +64,13 @@ module.exports = {
xdcTestnet: {
chainId: 51,
url: "https://erpc.apothem.network",
accounts: [process.env.DEPLOYER_KEY || "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"],
timeout: 60000,
},
opBNBTestnet: {
chainId: 5611,
url: "https://opbnb-testnet-rpc.bnbchain.org",
accounts: [process.env.DEPLOYER_KEY || "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"],
timeout: 60000,
},
},
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@openzeppelin/contracts-upgradeable": "^4.7.3",
"@openzeppelin/hardhat-upgrades": "^1.20.0",
"axios": "^1.4.0",
"dotenv": "^16.3.1",
"solhint": "^3.3.7",
"solidity-coverage": "^0.8.2"
}
Expand Down
3 changes: 2 additions & 1 deletion scripts/deployBridge.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const hre = require("hardhat");
require('dotenv').config();

const SIGNER_ADDRESS = "0xa7d37047e2dcfD446c0A0D7263bfA827b6c5C012";
const SIGNER_ADDRESS = process.env.SIGNER_ADDRESS || "0xC68AcC784227DbEaE98Bb6F5aC3C57cCe1aE9B4B";

const COLLECTION_NAME_HASH =
"0x59102b37de83bdda9f38ac8254e596f0d9ac61d2035c07936675e87342817160"; // ETHUSD
Expand Down

0 comments on commit bf6f9d4

Please sign in to comment.