-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(govern) feat: migrate donate to govern #84
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
b090361
to
3d02ea9
Compare
a3e7656
to
0bf812e
Compare
@@ -46,3 +51,17 @@ export const getVeOlasContract = () => { | |||
const contract = getContract(abi, address); | |||
return contract; | |||
}; | |||
|
|||
export const getTokenomicsContract = () => { | |||
const abi = TOKENOMICS.abi as unknown as AbiItem[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add "AbiItem[]" directly in TOKENOMICS
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually not that easy, there are difficulties with providing the correct type for abi. I just realised that if I don't specify the type (I did it for some contracts as Abi
from viem, see libs/util-contracts/src/lib/abiAndAddresses/types.ts), wagmi hooks recognise returned values correctly, e.g. as number or bigint, or string, etc. Ideally would be good to allocate some time to resolve this properly
Proposed changes
Migrate Donate page from tokenomics to govern app
Donate
Screen.Recording.2024-08-27.at.13.09.15.mov
Epoch start
Screen.Recording.2024-08-27.at.13.08.49.mov
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that apply