Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/critesjosh/test_codespace
https://github.com/critesjosh/test_codespace
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/critesjosh/test_codespace
- Owner: critesjosh
- Created: 2023-11-29T19:11:02.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-08T16:44:16.000Z (about 1 year ago)
- Last Synced: 2024-10-29T07:41:11.042Z (3 months ago)
- Language: Rust
- Size: 258 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Private Voting Example Codespace
[Start your codespace from the codespace dropdown](https://docs.github.com/en/codespaces/getting-started/quickstart).
Get and run the sandbox with this command:
```bash
/bin/bash -c "$(curl -fsSL 'https://sandbox.aztec.network')"
```## Install packages
```bash
yarn install
```## Compile
```bash
aztec-cli compile . --typescript ./src/artifacts
```or
```bash
yarn compile
```## Deploy
Add `ADMIN` to your environment.
```bash
ADMIN=0x1d30d4de97657983408587c7a91ba6587774b30f0e70224a0658f0357092f495
``````bash
aztec-cli deploy ./target/EasyPrivateVoting.json --args $ADMIN
```## Test
```bash
yarn test
```## Error resolution
## Update Contract
Get the contract code from the monorepo. The script will look at the versions defined in `./Nargo.toml` and fetch that version of the code from the monorepo.
```bash
yarn update
```You may need to update permissions with:
```bash
chmod +x update_contract.sh
```