Comments (4)
Where/how do you want to write those tests? 0.8.0-alpha.0 is published and can be used from npm
from cosmjs.
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.
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.
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)
- How to vote with cosmosjs HOT 1
- I canβt write a script for the evm-cosmos network (for example Evmos) HOT 1
- Broadcasting transaction failed with code 7 HOT 3
- Failed to get block time HOT 2
- feature request: add support for comparsion operator to SearchPair
- DirectSecp256k1HdWallet.fromMnemonic error HOT 1
- React Native Expo build error
- Replace most of libsodium with Noble cryptography HOT 1
- Hi help me create code please HOT 2
- Module ctypto issue when vite build
- Can the verification of denom be rolled back?
- How to create correct amino-converter for Duration type HOT 3
- Cannot decode height 1 - Error in parsing for rollapps
- `StargateClient.GetBalanceStaked` for noble never fires the actual query (noble doesnt have staking module, but should still fire query, like neutron)
- cosmos.staking.v1beta1.MsgCancelUnbondingDelegation
- Unable to sign and send a custom message HOT 2
- TextDecoder option fatal unsupported
- Problem with amino signing FeeGrant and SendAuthorization HOT 2
- Issue bridging INJ from OSMOSIS to INJECTIVE
- Tendermint 34 adaptor attempting to base64 decode event attribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmjs.