Giter VIP home page Giter VIP logo

Comments (2)

vojtechsimetka avatar vojtechsimetka commented on May 30, 2024 1

Thanks @tmm360 this is an issue I wanted to make as well. The idea would be to have a state provider for each Bee node (#40 is the first step) and as an input into this context provider you could have the API and debug API url's.

As for #58, this button is per one node so it can even be implemented now. Simple filter on accounting.filter(r => r.uncashed.toBigNumber.isGreaterThan(0)) gives you list of all peers which have some uncashed balance. Then the Cash all button just triggers cashout on each one of these peers.

Accounting type:

interface UseAccountingHook {
isLoading: boolean
isLoadingUncashed: boolean
error: Error | null
totalsent: Token
totalreceived: Token
accounting: Accounting[] | null
}
export interface Accounting {
peer: string
uncashedAmount: Token
balance: Token
received: Token
sent: Token
total: Token
}

accounting array: https://github.com/ethersphere/bee-dashboard/blob/master/src/pages/accounting/index.tsx#L37

from bee-dashboard.

vojtechsimetka avatar vojtechsimetka commented on May 30, 2024

closing in favour of #135 which is slightly clearer.

from bee-dashboard.

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.