Skip to content

Commit

Permalink
package bumps, dual changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
salieflewis committed Aug 8, 2023
1 parent 35d9508 commit f8c924f
Show file tree
Hide file tree
Showing 10 changed files with 551 additions and 608 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-moons-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@public-assembly/builder-utils': patch
---

Updates `useVote` to accept a `proposalId` rather than a `Proposal` object.
5 changes: 5 additions & 0 deletions .changeset/mighty-foxes-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@public-assembly/builder-utils': patch
---

Bumps viem to ~1.5.4 and wagmi to ^1.3.9, in addition bumps typescript to ^5.1.6.
4 changes: 3 additions & 1 deletion apps/docs/pages/hooks/useTokenMetadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ import { useTokenMetadata } from '@public-assembly/builder-utils'
function App() {
const { tokenName, tokenThumbnail } = useTokenMetadata('1')

return <>
return (
<>
<p>{tokenName}</p>
<img src={tokenThumbnail}></img>
</>
)
}
```

Expand Down
17 changes: 5 additions & 12 deletions apps/docs/pages/hooks/useVote.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,15 @@ import { useVote } from '@public-assembly/builder-utils'
function App() {
const { canVeto, canCancel, canVote } = useVote({
proposalId: '0xaf97d910e87200254e6e9af15e5f22b9ed51a191440218073b86f9954ed0366b',
timeCreated: 17872951,
support: 1,
reason: "Create what's missing"
})

const { address } = useAccount()

return (
<>
<p>
{address} can veto?: {canVeto}
</p>
<p>
{address} can cancel?: {canCancel}
</p>
<p>
{address} can vote: : {canVote}
</p>
<button onClick={() => castVote?.()}>Cast vote</button>
<p>Vote loading?: {castVoteLoading}</p>
<p>Vote successful?: {castVoteSuccess}</p>
</>
)
}
Expand Down
6 changes: 0 additions & 6 deletions apps/docs/pages/tutorials/_meta.json

This file was deleted.

Loading

0 comments on commit f8c924f

Please sign in to comment.