{"id":19777278,"url":"https://github.com/oraichain/cosmwasm-zero-to-hero","last_synced_at":"2025-04-30T19:32:05.360Z","repository":{"id":203884545,"uuid":"710141482","full_name":"oraichain/cosmwasm-zero-to-hero","owner":"oraichain","description":"Cosmwasm Notebook with Real chains and Simulation support","archived":false,"fork":false,"pushed_at":"2024-04-09T10:34:40.000Z","size":5923,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-11T08:22:32.640Z","etag":null,"topics":["cosmwasm","oraichain"],"latest_commit_sha":null,"homepage":"https://hackathon-cw.web.app","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oraichain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-26T05:26:36.000Z","updated_at":"2024-04-15T09:56:06.553Z","dependencies_parsed_at":"2024-03-15T08:24:24.813Z","dependency_job_id":"962c4136-0917-430d-8032-52fe62c055dd","html_url":"https://github.com/oraichain/cosmwasm-zero-to-hero","commit_stats":null,"previous_names":["oraichain/cosmwasm-zero-to-hero"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraichain%2Fcosmwasm-zero-to-hero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraichain%2Fcosmwasm-zero-to-hero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraichain%2Fcosmwasm-zero-to-hero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraichain%2Fcosmwasm-zero-to-hero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oraichain","download_url":"https://codeload.github.com/oraichain/cosmwasm-zero-to-hero/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251769429,"owners_count":21640898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cosmwasm","oraichain"],"created_at":"2024-11-12T05:24:00.586Z","updated_at":"2025-04-30T19:32:03.933Z","avatar_url":"https://github.com/oraichain.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cosmwasm Zero to Hero\n\n## The Cosmwasm Tutorial\n\nHey there, this intends to be a guide on writing your first Cosmwasm contract.\n\nI 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.\n\nOther articles:\n\n- [Cosmwasm Tools](https://github.com/oraichain/cosmwasm-tools)\n- [Cosmwasm for CTOs by Ethan Frey](https://medium.com/cosmwasm/cosmwasm-for-ctos-f1ffa19cccb8)\n- [Cosmwasm Docs](https://docs.cosmwasm.com/docs/1.0/)\n- [Cosmwasm Anatomy of a Smart Contract](https://docs.cosmwasm.com/dev-academy/develop-smart-contract/intro)\n- [Cosmwasm GitHub](https://github.com/CosmWasm)\n- [Interwasm GitHub](https://github.com/InterWasm)\n\n## Tools\n\nBuild smart contract \u0026 gen code\n\n```bash\ncwtools build code/cw-starter\ncwtools gents code/cw-starter -o src/contracts\n```\n\n## Step by step how to play with cosmwasm simulation tools\n\n### add cw-simulate module\n\n```bash\nyarn add @oraichain/cw-simulate -D\n```\n\n### Features\n\n- configure multiple host chain environments with chain-specific settings / state\n- multiple simultaneous contract instances can exist per chain\n- chain modules can be simulated through custom user code\n- extensible for further instrumentation via custom middlewares\n- load fork state from running blockhain\n\n### NoteBooks\n\n1. [Cosmwasm Starter](./public/nb/cw-starter.ipynb)\n1. [Cosmwasm CW20 Contract](./public/nb/cw-cw20.ipynb)\n\n### Compare to cosmwasm-multitest\n\n| feature                  | @oraichain/cw-simulate                       | cw-multitest |\n| ------------------------ | -------------------------------------------- | ------------ |\n| multiple contract        | Yes                                          | Yes          |\n| blockchain module        | bank, wasm, ibc                              | bank, wasm   |\n| snapshot                 | Yes                                          | No           |\n| production compatibility | compatible with `@cosmjs/cosmwasm-startgate` | Internal use |\n| forking networks         | Yes                                          | No           |\n\n### Compare to hardhat\n\n| feature                  | @oraichain/cw-simulate                  | hardhat                    |\n| ------------------------ | --------------------------------------- | -------------------------- |\n| multiple contract        | Yes                                     | Yes                        |\n| blockchain module        | bank, wasm, ibc                         | evm                        |\n| snapshot                 | Yes                                     | Yes                        |\n| production compatibility | compatible `@cosmjs/cosmwasm-startgate` | compatible `ethers.js`     |\n| forking networks         | Yes                                     | Yes                        |\n| console.log              | Using `deps.api.debug`                  | Yes                        |\n| Typescript codegen       | Using `@oraichain/cwtools`              | Using `@typechain/hardhat` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foraichain%2Fcosmwasm-zero-to-hero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foraichain%2Fcosmwasm-zero-to-hero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foraichain%2Fcosmwasm-zero-to-hero/lists"}