dappconnect-vote-poll-sdk/packages/voting-hooks
Szymon Szlachtowicz 77e242a110
Refactor packages and update readme (#94)
2021-09-24 02:57:44 +02:00
..
src Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02:00
test Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02:00
.eslintrc.json Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02:00
.mocharc.json Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02:00
README.md Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02:00
package.json Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02:00
prettier.config.js Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02:00
tsconfig.json Refactor packages and update readme (#94) 2021-09-24 02:57:44 +02: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