Build, test, and rapidly iterate with Wasm smart contracts.

CosmWasm is a smart contract framework built to make appchain development and maintenance a breeze.

bg

A modern smart contract development workflow

Provides the power and performance of native Cosmos SDK modules with a simpler developer experience

Unit tests, integration tests, and full backtraces are first-class citizens in CosmWasm

Smart contract upgrades are dead simple with CosmWasm's built-in permissioned, per-contract migrate function

Rust language performance and safety guarantees fast and memory-safe dapps

Unlock the power of composable contracts

CosmWasm provides the DeFi lego experience needed for complex cross-chain applications, with unparalleled security.

Prevents proxy, library conract, and reentrancy attacks

Create a bonding curve

CosmWasm's standard library offers a variety of specific functions and types to build secure DeFi protocols.

CosmWasm has already been used to build many DeFi protocols, like astroport's constant product pool smart contract, which utilizes the compute_swap function in this snippet.

Check out the standard library docs and more at CosmWasm for a complete explanation of the pull potentiality.

    
      
            
use cosmwasm_std::{
    //...
    Addr, Decimal, Uint128, Coin,
    //...
};

//...

pub fn compute_swap(
    offer_pool: Uint128,
    ask_pool: Uint128,
    offer_amount: Uint128,
    commission_rate: Decimal,
) -> StdResult<(Uint128, Uint128, Uint128)> { 
          
    
  

Deploy and upgrade new features — without coordinating a validator vote

Upload new code with a single transaction, no chain versioning required, or design your own approval workflow.

bg

Easily customize approval workflows

Multisig Permissions

Semi-permissioned sign-off

Permissionless Deploys

Configurable deployment permissions

Validator Vote

Require validator approval to upgrade

Write once,
deploy anywhere

You don't need to run your own blockchain just to launch a DEX or try out a new mechanism. Building with CosmWasm means you can deploy on Neutron or any CosmWasm-enabled smart contract platform.

An ecosystem of developer tools, giving you all that you need to build your chain

Governance

Build best-in-class governance experiences with DAODAO

Explore DAODAO

Testing

Build test environments for CosmWasm smart contracts with Test Tube

Explore Test Tube

Unsubscribe at any time. Privacy policy