Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement DPoS module API #6719

Closed
Tracked by #6717
mehmetegemen opened this issue Sep 3, 2021 · 0 comments
Closed
Tracked by #6717

Implement DPoS module API #6719

mehmetegemen opened this issue Sep 3, 2021 · 0 comments

Comments

@mehmetegemen
Copy link
Contributor

mehmetegemen commented Sep 3, 2021

Description

Implement DPoSAPI class in api.ts and methods

isNameAvailable(name)
getVoter(address)
getDelegate(address)

in it as they are in the specification(https://research.lisk.com/t/define-state-and-state-transitions-of-dpos-module/320#protocol-logic-for-other-modules-75)

getVoter(address), getDelegate(address), isNameAvailable(name) require access to the voter, delegate and name substores respectively, so the first parameter must be apiContext: APIContext to access those substores.

Acceptance Criteria

  • All functions are implemented as in the specification
  • All functions are fully unit tested
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants