Skip to content
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

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Conversation

Tanya-atatakai
Copy link
Collaborator

Proposed changes

Migrate Donate page from tokenomics to govern app

  1. Donate

Screen.Recording.2024-08-27.at.13.09.15.mov
  1. 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

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bond ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 0:55am
govern ✅ Ready (Inspect) Visit Preview 1 resolved Aug 27, 2024 0:55am
launch ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 0:55am
operate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 0:55am
registry ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 0:55am
tokenomics ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 0:55am

@@ -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[];
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

@DavidMinarsch DavidMinarsch merged commit 1c7fbb0 into main Aug 27, 2024
10 checks passed
@DavidMinarsch DavidMinarsch deleted the tanya/govern-donate branch August 27, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants