11 lines
444 B
Markdown
Raw Normal View History

2021-09-24 00:08:32 +02:00
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