desmos-labs / contracts-bindings Goto Github PK
View Code? Open in Web Editor NEWCustom CosmWasm bindings for the Desmos chain
License: Apache License 2.0
Custom CosmWasm bindings for the Desmos chain
License: Apache License 2.0
At the moment a lot of public methods are not documented making very hard for a developer understand what a function does
Add to ProfilesQuerier
, RelationshipsQuerier
, SubspacesQuerier
the ability to provide paginated data as a sequence of elements using PageIterator
.
I see that we have some MsgBuilder
structs that are empty and are used to easily create msgs that can be sent to the chain.
Since all of the methods exposed from that structures can be converted to static methods I suggest to remove all the MsgBuilder
structs and move their methods to the corrispettive enums.
For example al methods of ProfilesMsgBuilder
can be moved into the ProfilesMsg
enum like this:
impl ProfilesMsg {
pub fn save_profile(
dtag: &str,
creator: Addr,
nickname: &str,
bio: &str,
profile_picture: &str,
cover_picture: &str,
) -> ProfilesMsg {
ProfilesMsg::SaveProfile {
dtag: dtag.to_owned(),
nickname: nickname.to_owned(),
bio: bio.to_owned(),
profile_picture: profile_picture.to_owned(),
cover_picture: cover_picture.to_owned(),
creator,
}
}
// Other functions....
}
Please let me know what you think about this @bragaz @dadamu.
After submitting the crate to crate.io create a template like cw-template to help developers starts creating smart contract that needs to use Desmos messages.
Currently it looks like the MsgUnlinkChainAccount
is not supported in the bindings.
We should implement it as well.
Currently there's some missing bindings and some outdated bindings for the x/subspaces
module.
Missing:
Outdated:
The last week Conf.io released CosmWasm v1.0.0
๐.
I think now we can update the bindings deps towards this version:
https://github.com/CosmWasm/cosmwasm/releases/tag/v1.0.0
Add binding to performs the revers search of app links and chain links.
See Desmos issue: desmos-labs/desmos#793
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.