Coder Social home page Coder Social logo

staking todos about moonbeam HOT 4 CLOSED

purestake avatar purestake commented on September 26, 2024
staking todos

from moonbeam.

Comments (4)

4meta5 avatar 4meta5 commented on September 26, 2024 1

Right now, a nominator must call join_nominators for its first nomination and then nominate_new for every subsequent nomination. This is a bad interface -- move both into a nominate function that will choose which path to take based on whether there is an existing nomination associated with the caller.

from moonbeam.

joelamouche avatar joelamouche commented on September 26, 2024

need to use this polkadot-js type in order to make balance fields compact (like in frame/pallet-staking)

what do you mean by that? Mimic the polkadot-js types in the rust code?

from moonbeam.

4meta5 avatar 4meta5 commented on September 26, 2024

@joelamouche The Rust code change requires annotating the struct fields that use Balance type with #[compact]. The corresponding polkadot-js type needs to use bn.js or it isn't decoded correctly.

Let's not prioritize this until we're sure we want to optimize this implementation.

from moonbeam.

4meta5 avatar 4meta5 commented on September 26, 2024

Mostly addressed in #285 and will be tracked elsewhere from now on

from moonbeam.

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.