This folder contains the material to allow third party development of smart contract applications using Rust.
- The
apps-rs
directory contains the Rust contracts source code
$ ./create_new_contract.sh
Then insert the new contract name.
A project with the name provided will be created.
- Note requires
cargo generate
$ ./cargo_broadcast.sh <COMMAND>
Example used to test all the contracts:
$ ./cargo_broadcast.sh test
$ ./build_wasm.sh
- requires:
rust
with targetwasm32-unknown-unknown
- enabling unstable options flag
$ ./build_wasm_docker.sh
- Note: requires
docker
- The
registry
directory contains the .wasm contracts
- The
integration
directory is a rust module that provide an enviroment for testing - Requires (because of the trinci-core dependency):
rust
nightly toolchainclang
libclang-dev
protobuf-compiler