@semaphore-protocol/contracts 3.0.0-beta.7 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,29 +92,26 @@ yarn test:report-gas
|
|
|
92
92
|
|
|
93
93
|
### Deploy contracts
|
|
94
94
|
|
|
95
|
-
Deploy
|
|
95
|
+
Deploy the `Semaphore.sol` contract without any parameter:
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
yarn deploy:
|
|
98
|
+
yarn deploy:semaphore
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
or deploy it by providing the addresses of the contracts/libraries on which it depends:
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
yarn deploy:semaphore --
|
|
104
|
+
yarn deploy:semaphore --semaphoreVerifier <address>
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
> **Note**
|
|
108
|
+
> Run `yarn deploy:semaphore --help` to see the complete list.
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
yarn deploy:all
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
If you want to deploy contracts in a specific network you can set up the `DEFAULT_NETWORK` variable in your `.env` file with the name of one of our supported networks (hardhat, localhost, goerli, arbitrum). Or you can specify it as option:
|
|
110
|
+
If you want to deploy your contract in a specific network you can set up the `DEFAULT_NETWORK` variable in your `.env` file with the name of one of our supported networks (hardhat, localhost, goerli, arbitrum). Or you can specify it as an option:
|
|
114
111
|
|
|
115
112
|
```bash
|
|
116
|
-
yarn deploy:
|
|
117
|
-
yarn deploy:
|
|
113
|
+
yarn deploy:semaphore --network goerli
|
|
114
|
+
yarn deploy:semaphore --network arbitrum
|
|
118
115
|
```
|
|
119
116
|
|
|
120
117
|
If you want to deploy contracts on Goerli or Arbitrum, remember to provide a valid private key and an Infura API in your `.env` file.
|