Skip to content

charlielye/private_voting_codespace

 
 

Repository files navigation

Private Voting Example Codespace

Start your codespace from the codespace dropdown.

Get and run the sandbox with this command:

/bin/bash -c "$(curl -fsSL 'https://sandbox.aztec.network')"

Install packages

yarn install

Compile

aztec-cli compile . --typescript ./src/artifacts

or

yarn compile

Deploy

Add ADMIN to your environment.

ADMIN=0x1d30d4de97657983408587c7a91ba6587774b30f0e70224a0658f0357092f495
aztec-cli deploy ./target/EasyPrivateVoting.json --args $ADMIN

Test

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.

yarn update

You may need to update permissions with:

chmod +x update_contract.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.7%
  • Rust 40.8%
  • Dockerfile 1.5%