Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/critesjosh/example-private-token
https://github.com/critesjosh/example-private-token
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/critesjosh/example-private-token
- Owner: critesjosh
- Created: 2023-09-11T15:36:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-12T00:44:09.000Z (over 1 year ago)
- Last Synced: 2024-10-29T07:41:09.171Z (2 months ago)
- Language: Roff
- Size: 1.28 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example Project Walkthrough
- importing Aztec.nr in Nargo.toml
## Compiling contracts
### Requirements
#### nargo
[Installation guide](https://noir-lang.org/getting_started/nargo_installation#installation)
#### aztec-cli
```bash
yarn global add @aztec/cli
```### Basic
```bash
aztec-cli compile ./path/to/my_aztec_contract_project
```### With Typescript interfaces
```bash
aztec-cli compile --typescript ./ts .
```### With Noir interfaces
```bash
aztec-cli compile --interface ./path/to/another_aztec_contract_project/src ./path/to/my_aztec_contract_project
```## Deploying
The example contract takes 2 args, an amount and an address.
```bash
aztec-cli deploy target/Example.json --args 1000000 $ADDRESS
```or try
```bash
bun deploy.ts
```## Testing
Start an Ethereum dev net with
```bash
anvil
```Start the Sandbox with
```bash
npx @aztec/aztec-sandbox
```Run tests with
```bash
yarn test
```