Cascadia
  • Welcome to Cascadia
    • Brand Guidelines
    • Official Links
  • Artificial Intelligence
    • Incentives
  • Developers
    • Addresses
    • CosmWasm
      • Smart Contracts
      • Install Requirements
      • Set your Environment
      • Optimization
      • Deployment
      • Multi-Chain Contracts
        • The Actor Model
      • CW1 Subkeys Contract
        • Guide
      • CW20 Base Contract
        • Guide
      • C721 Base Contract
        • Guide
      • Upload Contract
        • Create a WASM File
      • Sign and Verify
        • Guide
    • Solidity
      • Deployment
      • Verification
        • Block Explorer
        • Hardhat
  • Directory
    • Address
    • API
    • Applications
    • Explorer
    • Faucet
    • Genesis
    • Governance
    • GRPC
    • Guide
    • Peers
    • RPC
    • Snapshot
    • State Sync
    • Website
    • Websocket
  • Governance
    • Align
      • Cooldown Period
      • Functions
    • Off-Chain
    • On-Chain
      • Voting
    • Proposals
      • On-Chain Voting via CLI
      • Proposal (Example)
    • VeTokenomics
      • Model
      • Voting Power Calculation
    • Analytics
  • Network
    • ChainID & Address Prefix
    • Configuration
    • Consensus
    • Denomination
    • Distribution
      • Block Rewards
      • Gas Fees
    • ESG
    • Faucet
    • Modules
    • Parameters
    • Peers
  • Security
    • Disclosure Policy
    • Multisignature
  • Staking
    • Claim
    • Delegate
    • Manual
    • Redelegate
    • Undelegate
  • Use Cases
    • Business Development and Marketing
    • Consumer Relationship Management
  • Node
    • Cloud Platforms
      • Amazon Web Services
      • Google Cloud Platform
    • Snapshot
    • State-Sync
    • Upgrade
      • Automated
      • Manual
  • Validators
    • System Requirements
    • Installation
    • Reference
      • Customization
  • Community
    • Discord
    • Telegram
    • Twitter
  • Legal
    • Privacy Policy
    • Terms & Conditions
Powered by GitBook
On this page
Edit on GitHub
  1. Developers
  2. CosmWasm

Install Requirements

PreviousSmart ContractsNextSet your Environment

Last updated 1 year ago

Step 1: Setting Up Your Development Environment

Install Golang

Required for wasmd. Install Go from its . Ensure you have Go version v1.18+.

Install Rust

rustup is used to manage dependencies and seamlessly switch between different versions of cargo and rustc, both crucial for Rust development.

Step 2: Installing Rust (for Linux & Mac):

Begin with rustup installation.

Set up wasm32 target with the following commands:

rustup default stable
cargo version
rustup update stable
rustup target add wasm32-unknown-unknown

Installing Rust (for Windows 10):

Obtain rustup-init.exe from rustup.rs or rust-lang.org.

If needed, download . Ensure "Windows 10 SDK" and ''English language pack'' are selected.

Run the setup for Rust and then install the wasm32 target similarly to the Linux & Mac setup.

Step 3: Install wasmd

git clone https://github.com/CosmWasm/wasmd.git
cd wasmd
git fetch --tags
git checkout v0.27.0  # Replace with stable version if needed.
make install

Step 4: Install the Command-Line Tools:

apt install jq curl

Step 5: Choose your IDE

An Integrated Development Environment (IDE) is needed. Here are two options:

VSCode: Equipped with Rust Language Server (RLS) capabilities. Combine it with the rust-analyzer extension for optimal Rust code support.

IntelliJ IDEA Community Edition: Comes with the IntelliJ Rust plugin, providing swift inline language feature support. Particularly useful for developers familiar with IntelliJ products.

Step 6: Enhance Development

A toolset to boost the lifespan of CosmWasm smart contracts. It consists of three repositories:

Provides a ready-to-use development environment, integrating Rust, VS Code browser, crucial extensions, and Keplr wallet compatibility.

A VS Code extension simplifying the building & deployment of CosmWasm smart contracts.

A React application facilitating Keplr wallet interactions and enabling custom network additions.

official documentation
Visual C++ Build Tools 2019
CosmWasm Gitpod
CosmWasm IDE extension
CosmWasm IDE extension webview