Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/critesjosh/test_codespace


https://github.com/critesjosh/test_codespace

Last synced: about 1 month ago
JSON representation

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
```