@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.
Files changed (2) hide show
  1. package/README.md +9 -12
  2. 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 a verifier contract with depth = 20:
95
+ Deploy the `Semaphore.sol` contract without any parameter:
96
96
 
97
97
  ```bash
98
- yarn deploy:verifier --depth 20
98
+ yarn deploy:semaphore
99
99
  ```
100
100
 
101
- Deploy the `Semaphore.sol` contract with one verifier:
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 --verifiers '[{"merkleTreeDepth": 20, "contractAddress": "0x06bcD633988c1CE7Bd134DbE2C12119b6f3E4bD1"}]'
104
+ yarn deploy:semaphore --semaphoreVerifier <address>
105
105
  ```
106
106
 
107
- Deploy all verifiers and Semaphore contract:
107
+ > **Note**
108
+ > Run `yarn deploy:semaphore --help` to see the complete list.
108
109
 
109
- ```bash
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:all --network goerli
117
- yarn deploy:all --network localhost
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/contracts",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0",
4
4
  "description": "Semaphore contracts to manage groups and broadcast anonymous signals.",
5
5
  "license": "MIT",
6
6
  "files": [