Giter Club home page Giter Club logo

Comments (4)

webmaster128 avatar webmaster128 commented on September 18, 2024

Where/how do you want to write those tests? 0.8.0-alpha.0 is published and can be used from npm

from cosmjs.

ethanfrey avatar ethanfrey commented on September 18, 2024

I was thinking to add them to cosmwasm-js, but I guess that is a bit ugly. But we do have the erc20 and mask contracts in there already. I think a few demo runs on the staking contract like we do with erc20 would be a simple addition.

If you have a better approach, please let me know.

from cosmjs.

webmaster128 avatar webmaster128 commented on September 18, 2024

Which contract are we talking about exactly? This one https://github.com/CosmWasm/cosmwasm/tree/master/contracts/staking?

One ugly thing I see here is that we don't get a source URL. Also this repo is not well suited to host contract specifics. Having the erc20 connection here is just because we use them as a secondary currency implementation to the bank module in @cosmwasm/bcp, which will die sooner or later. Then we have some notes in to CLI package, but those are not tested.

We could create a package with unit tests for one contract here and don't publich the package.

from cosmjs.

ethanfrey avatar ethanfrey commented on September 18, 2024

We could create a package with unit tests for one contract here and don't publich the package.

Sounds like a good solution.

I would just "port" some of the simplest unit tests - init, bond, and unbond and check with a few queries. This is more to demo usage - we already unit tested the contract itself (in cosmwasm), as well as the sdk integrations (in wasmd)

from cosmjs.

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.