dappconnect-voting-sdk/packages/voting-hooks
Franck 55a8d6adfc
Rename core package
2021-12-07 12:18:34 +11:00
..
src Rename core package 2021-12-07 12:18:34 +11: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 Rename core package 2021-12-07 12:18:34 +11: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