Code Monkey home page Code Monkey logo

contracts-bindings's People

Contributors

dadamu avatar dependabot[bot] avatar leobragaz avatar manu0466 avatar riccardom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

contracts-bindings's Issues

Improve the documentation

At the moment a lot of public methods are not documented making very hard for a developer understand what a function does

Update queriers to use the PageIterator

Feature description

Add to ProfilesQuerier, RelationshipsQuerier, SubspacesQuerier the ability to provide paginated data as a sequence of elements using PageIterator.

Remove unnecessary builders

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.

Create a project template

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.

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.