Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lidangzzz committed Feb 18, 2024
1 parent 6e737c5 commit f41b9b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
32 changes: 24 additions & 8 deletions darc-docs/docs/DARC Protocol/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ sidebar_position: 1

# Getting Started

## What is the DARC Protocol?
### What is the DARC Protocol?

## Building the source
### Building the source

Since Hardhat and OpenZeppelin are used, the project can be built using the following commands:

Expand Down Expand Up @@ -37,12 +37,28 @@ Since Hardhat and OpenZeppelin are used, the project can be built using the foll
4. Test contracts

```shell
npx hardhat test
REPORT_GAS=true npm run test
REPORT_GAS=true npx hardhat test --network localhost
```

5. Deploy contracts
### Deploy

```shell
npm run deploy
```
To deploy the DARC protocol, you can use the following commands:

```shell
npx hardhat run scripts/deploy.js --network <YOUR_NETWORK>
```

If you want to deploy the DARC protocol to the local devnet, you can use the following command:


```shell
npx hardhat run scripts/deploy.js --network localhost
```

Make sure you have a local devnet node running before deploying the DARC protocol.

If you want to deploy the DARC protocol to the Ethereum mainnet, you can use the following command:

```shell
npx hardhat run scripts/deploy.js --network mainnet
```
2 changes: 2 additions & 0 deletions darc-docs/docs/Overview/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ The entire DARC Project ([https://github.com/project-darc](https://github.com/pr
### Community

Telegram: [https://t.me/projectdarc](https://t.me/projectdarc)

Github: [https://github.com/project-darc](https://github.com/project-darc)

Github Discussions: [https://github.com/orgs/Project-DARC/discussions](https://github.com/orgs/Project-DARC/discussions)

0 comments on commit f41b9b1

Please sign in to comment.