Introduction

This book is a guide for creating CosmWasm smart contracts with the sylvia framework. It will lead you step by step and explain relevant topics from easiest to trickiest.

The idea of the book is not only to tell you about smart contract development but also to show you how to do it clean and maintainable. I will show you some good practices for using sylvia.

This book is not meant to teach you about the CosmWasm. To learn about that, read The CosmWasm Book.

NOTE: This book covers sylvia in version 1.1.x.

Prerequisites

This book explores CosmWasm smart contracts. It is not intended to be a Rust tutorial, and it assumes a basic Rust knowledge. As you will probably learn it alongside this book, I recommend first grasping the language. You can find great resources to start with Rust on Learn Rust page.

CosmWasm API documentation

This is the guide-like documentation. If you are looking for the API documentation, you may be interested in checking one of the following:

Contributing to the book

This book is maintained on GitHub and auto deployed from there. Please create an issue or pull request if you find any mistakes, bugs, or ambiguities.

Warning

This book is still under construction, so be aware that, in some places, it might feel disjointed.