Skip to content

Commit

Permalink
Deployment on RSK Testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
zhivkoangelov committed Apr 8, 2022
1 parent 7063b6e commit a964278
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Repo for the smart contracts

#### Development
### Development

Clone the repository and install all dependencies

Expand All @@ -24,7 +24,7 @@ Run sanity check
$ npm run test
```

Useful scripts
### Useful scripts (localhost)

```
Deploy protocol with initial data
Expand All @@ -36,3 +36,15 @@ $ npm run script:dev:mint-tokens
Deploy contracts only
$ npm run script:dev:deploy-protocol
```

### Useful scripts (RSK TestNet)
```
Configure private key in hardhat.config.js: networks.rskTestNet.accounts
Deploy protocol on RSK TestNet
$ npx hardhat run --network rskTestNet scripts/dev/deploy-protocol.js
Create tokens
$ npx hardhat run --network rskTestNet scripts/dev/mint-tokens.js
```
9 changes: 5 additions & 4 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ module.exports = {
defaultNetwork: "localhost",
networks: {
hardhat: {
// mining: {
// auto: true,
// interval: 1,
// },
},
localhost: {
url: "http://localhost:8545",
chainId: 31337,
},
rskTestNet: {
url: "https://public-node.testnet.rsk.co",
chainId: 31,
accounts: ["private key"] // Replace with your private key here
}
},
mocha: {
timeout: 40000,
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy/protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const hre = require("hardhat");

const ProtocolHelper = require("../helpers/Protocol");

const WRBTC_ADDRESS = null;
const WRBTC_ADDRESS = "";

async function main() {
const { VerificationRegistry, PondFactory, wrbtcAddress } = await ProtocolHelper.deploy({
Expand Down

0 comments on commit a964278

Please sign in to comment.