dappconnect-vote-poll-sdk/packages/proposal-hooks
Szymon Szlachtowicz 861feccd67
Update readme (#93)
2021-09-24 00:08:32 +02:00
..
src Update readme (#93) 2021-09-24 00:08:32 +02:00
test Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
.eslintrc.json Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
.mocharc.json Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
README.md Update readme (#93) 2021-09-24 00:08:32 +02:00
package.json Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
prettier.config.js Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
tsconfig.json Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +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