Code Monkey home page Code Monkey logo

Comments (5)

iboss-ptk avatar iboss-ptk commented on September 28, 2024

Hi @vernonjohnson ! Could you provide more context on the use case? I intended to not provide that option in favor of beaker console, let me know if there is any reason against doing that through the console :)

from beaker.

vernonjohnson avatar vernonjohnson commented on September 28, 2024

Hi @iboss-ptk, appreciate the response. The problem with beaker console is that I can't effectively use it in a bash script. I want to deploy my contract via beaker CLI, then add execute messages to load some initial contract state; then finally output the results by querying my contract. And this should be doable in a single bash script. Since queries and arbitrary message execution is missing, I deploy with beaker then resort back to wasm query and execute commands to do the rest. And execute doesn't support dynamic encoding of submessages, which makes executing certain messages a pain. Ideally beaker could be use e2e.

There are several examples where both deployment and initialization are done via bash (e.g., DAODAO, WasmSwap). Would be a very useful to many devs IMO and would make beaker more feature complete.

from beaker.

vernonjohnson avatar vernonjohnson commented on September 28, 2024

@iboss-ptk Happy to help on the dev side with this if given some initial guidance

from beaker.

iboss-ptk avatar iboss-ptk commented on September 28, 2024

@vernonjohnson that was fast! This should make it works for now and this use case is related to #37.

Happy to hear more feedback on this, I'm considering making task script written in either rust, rhai or js. So multistage deployment or any type of automation related to the smart contract is at hand. Pretty much lean towards rust at the moment and having tasks as a cargo project inside beaker workspace since it's easy to just call the existing operations, and can just import contract msgs as dependencies. But that might require some refactoring.

Please let me know your thoughts

from beaker.

iboss-ptk avatar iboss-ptk commented on September 28, 2024

@vernonjohnson merged #103 and prettify json response, now available in v0.0.8! please update

from beaker.

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.