Git Product home page Git Product logo

Comments (9)

julienrbrt avatar julienrbrt commented on August 16, 2024

Hi, you can scaffold a CosmWasm enabled chain using the ignite wasm app. Tutorials are coming soon, but the gist of it is the following:

ignite s chain myawesomechain
cd myawesomechain
ignite app install github.com/ignite/apps/wasm@wasm/v0.1.1
ignite wasm add
ignite chain build
ignite wasm config

Then you have a cosmwasm enabled chain to which upload contracts. How to develop and deploy contract is explained in depth here: https://book.cosmwasm.com

EDIT: fix typo in command.

from cli.

calibar avatar calibar commented on August 16, 2024

Thank you very much for your help! However, Is it possible that the initialization command is 'ignite chain init' instead of 'ignite wasm init'? I'm asking because when I tried 'ignite wasm init', it told me that the wasm command only accepts 'add' and 'config' arguments.

from cli.

julienrbrt avatar julienrbrt commented on August 16, 2024

My bad, it is indeed warm add

from cli.

calibar avatar calibar commented on August 16, 2024

Hi, I got the following error while I was trying 'ignite wasm add'. It said that "Chain does not support wasm integration (CLI >= v28 and Cosmos SDK >= v0.50).". However, I am using ignite cli 28.2.0 and cosmos-sdk0.50.3.
wasm add response
Ignite   cosmos-sdk version info

from cli.

julienrbrt avatar julienrbrt commented on August 16, 2024

Hi,

Yes you need to use Ignite v28.3.0

from cli.

calibar avatar calibar commented on August 16, 2024

Hi, I have updated my Ignite to v28.3.0, the following screenshot is what I got. Does this mean that the Cosmwasm-embed ignite chain has been successfully built?
28 3 execution result

from cli.

calibar avatar calibar commented on August 16, 2024

Hi, Thank you very much for your help and patience. Regarding deploying contracts, I still have some questions. I briefly went through the Cosmwasm Book and found that it doesn't provide details on deploying contracts. For example, if I use Rust and Wasm to generate a contract called mycontract.wasm, how can I deploy mycontract.wasm to the CosmWasm-embed Ignite chain that I just built? And how can I execute it after the deployment?

from cli.

julienrbrt avatar julienrbrt commented on August 16, 2024

Hi, I have updated my Ignite to v28.3.0, the following screenshot is what I got. Does this mean that the Cosmwasm-embed ignite chain has been successfully built? 28 3 execution result

Correct, your ignite chain has now cosmwasm.

from cli.

julienrbrt avatar julienrbrt commented on August 16, 2024

Hi, Thank you very much for your help and patience. Regarding deploying contracts, I still have some questions. I briefly went through the Cosmwasm Book and found that it doesn't provide details on deploying contracts. For example, if I use Rust and Wasm to generate a contract called mycontract.wasm, how can I deploy mycontract.wasm to the CosmWasm-embed Ignite chain that I just built? And how can I execute it after the deployment?

Here you can find most of the command you need: https://docs.cosmwasm.com/docs/getting-started/interact-with-contract/#go-cli.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.