Make sure you've installed and configured a few dependencies.
IMPORTANT: For local installations, you need root access to run
docker. Make sure to follow all the steps with
root access to prevent conflicts and confusions on the deployment process which requires root permission.
- Cargo Generate
- Docker (for Linux users, it's recommended to run the Docker daemon in Rootless Mode)
- Archway Developer CLI
rustc, provided by the Rust project maintainers, is the compiler for the Rust programming language.
rustc takes your Rust source code and produces binary code as a library or an executable.
To install Rust, follow the instructions for your operating system at https://www.rust-lang.org/tools/install.
Cargo is the Rust package manager, like
go get for Golang or
If you didn't install
rustup, or don't have
cargo in your command line path, see the instructions for installing Cargo at https://doc.rust-lang.org/cargo/getting-started/installation.html.
cargo-generate tool creates a new Rust project quickly by leveraging a pre-existing code base.
cargo-run-script to provide and manage project templates for dApp development.
vendored-openssl, and the
cargo-run-script module, run the commands:
cargo install cargo-generate --features vendored-opensslcargo install cargo-run-script
archwayd is an implementation of a Cosmos zone with
wasm smart contracts enabled.
Originally forked from the cosmos/gaia repository,
archwayd adds new modules for developer rewards and for executing
wasm, but otherwise the
archwayd binary functions just like
archwayd, install it from source or use the
archwaynetwork/archwayd Docker container.
Get source code:
git clone email@example.com:archway-network/archway.gitcd archway
Build and install:
Note: Building archwayd from source requires Go 1.17+
For full installation and configuration parameters, see https://github.com/archway-network/archway/blob/main/README.md.
docker build -t archway-network/archwayd:latest
Or pull from Docker Hub:
docker pull archwaynetwork/archwayd:latest
To simplify using the Docker container, set an alias with the home path and the proper image tag (replacing
alias archwayd="docker run --rm -it -v ~/.archway:/root/.archway archwaynetwork/archwayd:<network-name>"
After setting this alias, you can use the other
archwayd commands without typing the verbose Docker run command.
For more information on running
archwayd with the
archway-network/archwayd Docker container, see https://github.com/archway-network/archway#dockerized.
npm for installing and updating the developer CLI.
npm, see instructions for your operating system at https://docs.npmjs.com/downloading-and-installing-node-js-and-npm.
@archwayhq/cli requires Node.js version 14 or higher, but some older versions in the
beta release track required Node.js version 17. You can check which version you have installed using the command
Install the Archway developer CLI using
npm, see Downloading and installing Node.js and npm.
npm install -g @archwayhq/cli