Smart Contracts Installation
In this section, we will gear up your workspace for developing, deploying and enjoying smart contracts on Cosmos SDK.
For developing complex smart contracts, you will likely want to run a full node on a testnet. See the validators section under Joining Testnets for more information.

Go

You can setup golang by following the official documentation. The latest versions of junod require go version v1.17.

Rust

Assuming you have never worked with rust, you will first need to install some tooling. The standard approach is to use rustup to maintain dependencies and handle updating multiple versions of cargo and rustc, which you will be using.

Installing Rust on Linux and Mac

Even if you are on Windows, you should use WSL and Linux to develop. It will make life a lot easier.
First, install rustup. Once installed, make sure you have the wasm32 target:
1
rustup default stable
2
cargo version
3
# If this is lower than 1.59.0+, update
4
rustup update stable
5
6
rustup target list --installed
7
rustup target add wasm32-unknown-unknown
Copied!

Building Juno

A testnet running the Juno chain is usually in operation for you to test contracts on. Generally speaking though, it's quicker to work locally. We recommend using Juno in Docker as per the instructions below.
If you have any problems here, check your PATH. make install will copy junod to $HOME/go/bin by default, please make sure that is set up in your PATH as well, which should be the case in general for building Go code from source.

Getting started with writing contracts

There are two tutorials provided here in the docs, which will give you an overview of working with smart contracts and their basic functions. However if you are an experienced programmer wanting to immediately start writing CosmWasm contracts, then we recommend working through their excellent tutorial.