Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oraichain/cosmwasm-zero-to-hero
Cosmwasm Notebook with Real chains and Simulation support
https://github.com/oraichain/cosmwasm-zero-to-hero
cosmwasm oraichain
Last synced: about 2 months ago
JSON representation
Cosmwasm Notebook with Real chains and Simulation support
- Host: GitHub
- URL: https://github.com/oraichain/cosmwasm-zero-to-hero
- Owner: oraichain
- License: other
- Created: 2023-10-26T05:26:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-09T10:34:40.000Z (9 months ago)
- Last Synced: 2024-04-11T08:22:32.640Z (9 months ago)
- Topics: cosmwasm, oraichain
- Language: Rust
- Homepage: https://hackathon-cw.web.app
- Size: 5.65 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Cosmwasm Zero to Hero
## The Cosmwasm Tutorial
Hey there, this intends to be a guide on writing your first Cosmwasm contract.
I myself learn by doing so that's what this will cover, I'll provide further pointers below if you want to get deep into the semantics of Cosmwasm.
Other articles:
- [Cosmwasm Tools](https://github.com/oraichain/cosmwasm-tools)
- [Cosmwasm for CTOs by Ethan Frey](https://medium.com/cosmwasm/cosmwasm-for-ctos-f1ffa19cccb8)
- [Cosmwasm Docs](https://docs.cosmwasm.com/docs/1.0/)
- [Cosmwasm Anatomy of a Smart Contract](https://docs.cosmwasm.com/dev-academy/develop-smart-contract/intro)
- [Cosmwasm GitHub](https://github.com/CosmWasm)
- [Interwasm GitHub](https://github.com/InterWasm)## Tools
Build smart contract & gen code
```bash
cwtools build code/cw-starter
cwtools gents code/cw-starter -o src/contracts
```## Step by step how to play with cosmwasm simulation tools
### add cw-simulate module
```bash
yarn add @oraichain/cw-simulate -D
```### Features
- configure multiple host chain environments with chain-specific settings / state
- multiple simultaneous contract instances can exist per chain
- chain modules can be simulated through custom user code
- extensible for further instrumentation via custom middlewares
- load fork state from running blockhain### NoteBooks
1. [Cosmwasm Starter](./public/nb/cw-starter.ipynb)
1. [Cosmwasm CW20 Contract](./public/nb/cw-cw20.ipynb)### Compare to cosmwasm-multitest
| feature | @oraichain/cw-simulate | cw-multitest |
| ------------------------ | -------------------------------------------- | ------------ |
| multiple contract | Yes | Yes |
| blockchain module | bank, wasm, ibc | bank, wasm |
| snapshot | Yes | No |
| production compatibility | compatible with `@cosmjs/cosmwasm-startgate` | Internal use |
| forking networks | Yes | No |### Compare to hardhat
| feature | @oraichain/cw-simulate | hardhat |
| ------------------------ | --------------------------------------- | -------------------------- |
| multiple contract | Yes | Yes |
| blockchain module | bank, wasm, ibc | evm |
| snapshot | Yes | Yes |
| production compatibility | compatible `@cosmjs/cosmwasm-startgate` | compatible `ethers.js` |
| forking networks | Yes | Yes |
| console.log | Using `deps.api.debug` | Yes |
| Typescript codegen | Using `@oraichain/cwtools` | Using `@typechain/hardhat` |