This repo provides the tools, docs and smart contracts to manage the Decentralized Autonomous Collective (DAC) that underpins the structure and inner workings of Agora Labs.
Please refer to the documentation on how to manage the DAC.
Below is a quick outline of the structure of the app:
.
├── cmd # Go apps.
| ├── stinger
| │ └── main.go # Entry point for the app.
│ └── ...
└── internal # A collection of reusable modules.
├── command # A collection of commands.
| └── somecommand.go
| └── ...
└── ...
- Install the Python dependencies
pip install -r requirements.txt
- Install the Go dependencies:
go mod tidy
- Install Algorand private network (optional):
./bin/install_algorand.sh
- To build simply run:
./bin/build.sh
NOTE: This will compile the source code into a binary and move smart contracts to the
.build/
directory.
- To check the CLI compiled correctly:
./build/dac version
Command | Description |
---|---|
./bin/compile.sh |
Compiles the PyTeal contracts into TEAL code into the .build/applications/<application_name>/ directory. |
./bin/build.sh |
Builds the CLI tool and compiles contracts into the .build/ directory. |
./bin/install_algorand.sh |
Installs a private Algorand network. |
./bin/package.sh |
Zips up the build files into a zip file. |
./bin/start_algorand.sh |
Starts up the private Algorand network |
./bin/test.sh |
Starts up the Algorand private network and runs tests against it. |
./bin/version.sh |
Sets the version in the VERSION file. |
Please read the Contributing Guide to learn about the development process.
Please refer to the LICENSE file.