dappconnect-vote-poll-sdk/packages/vote-react-hooks
Franck Royer bddbd1359a
Release 0.4.0
2022-01-20 11:40:28 +11:00
..
src Fix lint/core functions and decimals 2022-01-20 01:19:47 +01:00
test Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +11:00
.eslintrc.json Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +11:00
.mocharc.json Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +11:00
README.md Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +11:00
package.json Release 0.4.0 2022-01-20 11:40:28 +11:00
prettier.config.js Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +11:00
tsconfig.json Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +11:00

README.md

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