Skip to content

Commit

Permalink
Update the networks info in hardhat.config (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flouse committed Jun 15, 2022
1 parent fb990b6 commit deaf0c7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/betanet_v1.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules-
- name: Run tests
- name: Run tests on gw_testnet_v1
working-directory: contracts
run: npm install ; npm run test:gw_betanet_v1
run: npm install ; npm run test:gw_testnet_v1
17 changes: 12 additions & 5 deletions contracts/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,24 @@ module.exports = {
url: `http://localhost:8024`,
accounts: [`0x${PRIVATE_KEY}`, `0x${PRIVATE_KEY2}`],
},
gw_testnet_v1: {
url: `https://godwoken-testnet-v1.ckbapp.dev`,
accounts: [`0x${PRIVATE_KEY}`, `0x${PRIVATE_KEY2}`],
version: "1.2.0",
chainId: 71401,
},
// TODO: It is the same as gw_testnet_v1 and this name will be deprecated.
gw_betanet_v1: {
url: `https://godwoken-betanet-v1.ckbapp.dev`,
accounts: [`0x${PRIVATE_KEY}`, `0x${PRIVATE_KEY2}`],
version: "1.1.0",
version: "1.2.0",
chainId: 71401,
},
gw_testnet_v1: { // TODO: Deprecate
url: `https://godwoken-testnet-web3-v1-rpc.ckbapp.dev`,
gw_alphanet_v1: { // for internal testing
url: `https://godwoken-alphanet-v1.ckbapp.dev`,
accounts: [`0x${PRIVATE_KEY}`, `0x${PRIVATE_KEY2}`],
version: "1.0.0",
chainId: 868455272153094
version: "1.2.0",
chainId: 202206,
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_PROJECT_ID}`,
Expand Down
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"compile": "hardhat compile",
"test": "hardhat test --network gw_devnet_v1",
"test:gw_betanet_v1": "hardhat test --bail --network gw_betanet_v1"
"test:gw_testnet_v1": "hardhat test --bail --network gw_testnet_v1"
},
"keywords": [
"Solidity",
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/SisyhusGamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ describe("SisyphusGamble", function () {

/**
* How to run this?
* > npx hardhat test test/SisyhusGamble --network gw_betanet_v1
* > npx hardhat test test/SisyhusGamble --network gw_testnet_v1
*/
2 changes: 1 addition & 1 deletion contracts/test/codehash.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ describe("CodeHash test cases", function () {
/**
* How to run this test?
> npx hardhat --network gw_betanet_v1 test test/codehash.js && \
> npx hardhat --network gw_testnet_v1 test test/codehash.js && \
npx hardhat --network hardhat test test/codehash.js
*/

0 comments on commit deaf0c7

Please sign in to comment.