dappconnect-voting-sdk/packages/vote-react-hooks
Franck 7bbbf573bb
Rename voting-hooks to vote-react-hooks
2021-12-07 13:21:03 +11:00
..
src Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +11: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 Rename voting-hooks to vote-react-hooks 2021-12-07 13:21:03 +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