CosmWasm on Osmosis
CosmWasm lets you write smart contracts in Rust and run them on Osmosis. This section covers the full contract lifecycle: scaffolding a project, building and testing, deploying to a local or test network, verifying a deployed contract, and calling contracts from your application.
Beaker is the recommended starting point, a scaffolding tool that wires up contract dependencies, an interactive console, and a sample frontend. From there, CosmWasm & LocalOsmosis covers developing against a local chain, and the testnet deployment and CosmWasm & Beaker guides walk through deploying to a public testnet, with Submit a CosmWasm Governance Proposal for the gov-gated store step. Verifying Smart Contracts covers reproducible builds, cw-orchestrator handles scripting and testing across environments, and the JavaScript guide shows how to call deployed contracts from a JavaScript runtime.
If you are building UIs or SDK integrations rather than contracts, see Frontend.
Beaker
3 items
Cosmwasm & LocalOsmosis
You can now deploy contracts to LocalOsmosis with Beaker. The official tooling to deploy Osmosis Smartcontracts.
Cosmwasm testnet deployment
The following is a quick guide that shows the basics of deploying a contract to an Osmosis Testnet (osmo-test-5). It covers:
Cosmwasm & Beaker
Deploying Cosmwasm Contracts to the testnet with Beaker
Submit a Cosmwasm Governance Proposal
The following is a quick guide to provide a basic example on how submit a wasm binary proposal in Osmosis. This particular example will be with localOsmosis but it can also be used with testnet.
Verifying Smart Contracts
The following are the steps needed to verify any contract from the chain. In this particular example a brand new contract uploaded to the testnet.
Scripts and Tests with cw-orchestrator
Introduction
Javascript & Smart Contracts
This guide describes interacting with Osmosis Smart contracts via JavaScript runtimes such as Node.js and the browser.