This guide follows the below workflow:
- Create a new project
- Build and test our code
- Request testnet $ARCH
- Produce default and CosmWasm
- Deploy to a testnet
- Query and transact with a deployed contract
- Building a dApp frontend
In the Setup section we learned how to create and configure a new Archway project.
If you haven't created a project yet, or didn't choose the 'Increment' starter template, go back to Setup to complete this step.
Projects created with
archway new are ready-made project templates. Later we'll add code and modify existing behavior, but to get acquainted let's build and test the boilerplate code we have now.
Build your project using the command:
Building project... Updating crates.io index Compiling libc v0.2.99 Compiling typenum v1.13.0 # And so on until ... Compiling my-project v0.1.0 (/home/my-system-path/my-project) Finished dev [unoptimized + debuginfo] target(s) in 31.42s
Test your build like this:
Loading tests... Compiling cosmwasm-schema v0.16.0 Compiling my-project v0.1.0 (/home/my-system-path/my-project) Finished test [unoptimized + debuginfo] target(s) in 1.79s Running target/debug/deps/my-project-713283db92dd8501 running 3 teststest contract::tests::proper_initialization ... oktest contract::tests::increment ... oktest contract::tests::reset ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s