Initial setup#
This tutorial uses a ODISEO-specific development suite called ODISEOin.
Terrain will help you:
Scaffold your dApp project
Ease the development and deployment process
Create custom tasks for blockchain and contract interaction with less boilerplate code
Access a console (or REPL) for interacting with the ODISEO blockchain
Create predefined functions used in tasks and in the console
Prerequisites#
1. Set up Rust#
Rust is the main programming language used for CosmWasm smart contracts. While WASM smart contracts can theoretically be written in any programming language, CosmWasm libraries and tooling work best with Rust.
Install the latest version of Rust.
# 1. Set 'stable' as the default release channel:
rustup default stable
# 2. Add WASM as the compilation target:
rustup target add wasm32-unknown-unknown
# 3. Install the following packages to generate the contract:
cargo install cargo-generate --features vendored-openssl
cargo install cargo-run-script
2. Install ODISEOin#
Use npm to install the ODISEOin command-line tool globally:
npm install -g @iboss/ODISEOin
3. Download LocalODISEO or configure the testnet#
LocalTerra is a development environment designed to make it easy for smart contract developers to test their contracts locally.
Caution
LocalODISEO may not work properly on machines with less than 16 GB of RAM. Please use the Bombay testnet if your device does not meet this requirement.
ODISEOin and LocalODISEO
16+ GB of RAM recommended.
Terrain and the testnet
8+ GB of RAM recommended.