Skip to content

Commit

Permalink
Merge pull request #12 from Nexus-2023/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
RohitAudit authored Jan 8, 2024
2 parents df3f520 + 5f4daeb commit 969e85a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,37 @@ onboarding any rollup. Rollup has 3 choices as of now for bridge design:
- **[Withdrawal](contracts/Withdrawal.sol)**: This is contract that is created for rollups when they
register with Nexus Network. This contract receives rewards that are earned by validators created through
their bridge contract.

### Testing and Deploying
Testing:
- For testing the contracts one would need to enable forking in hardhat config
```
networks: {
hardhat: {
forking: {
enabled: true,
url: process.env.GOERLI_URL || "",
},
}
}
```
- You can run the following command to run the unit test cases
```
npm run test:all
```

Deploying:
- Local network
```
npm run deploy:local
```
- Goerli network
```
npm run deploy:goerli
```
- For verifying the contracts:
```
npm run verify:goerli
```

All the contracts address after deployment are stored in **output_network.json**

0 comments on commit 969e85a

Please sign in to comment.