@waku/vote-sdk-react-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Package contains hooks for WakuVoting

hooks

-useVotingRoom(id: number, wakuVoting: WakuVoting) - returns meoized VotingRoom object see core for more info on VotingRoom

-useVotingRoomsId(wakuVoting: WakuVoting) - returns array of all voting rooms on blockchain

-useWakuVoting(appName: string, contractAddress: string, provider: Web3Provider | undefined, multicallAddress: string | undefined) - returns memoized WakuVoting object

Readme

Keywords

none

Package Sidebar

Install

npm i @waku/vote-sdk-react-hooks

Weekly Downloads

0

Version

0.4.0

License

MIT OR Apache-2.0

Unpacked Size

155 kB

Total Files

75

Last publish

Collaborators

  • weboko
  • richard-ramos
  • royerfranck