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

Implement versioning of EIP-4824 Registration Contracts #186

Open
Rashmi-278 opened this issue Dec 13, 2023 · 10 comments
Open

Implement versioning of EIP-4824 Registration Contracts #186

Rashmi-278 opened this issue Dec 13, 2023 · 10 comments

Comments

@Rashmi-278
Copy link
Member

Rashmi-278 commented Dec 13, 2023

As we progress, we update our smart contracts, it is a good practice to version the smart contracts and get the version information for all the registration instances. The version should be on-chain so that anyone referencing the DAO Registration Instance can be aware of the version.

After that we can get that info from The Graph API and display on our frontend

@Rashmi-278 Rashmi-278 self-assigned this Dec 13, 2023
@crazyyuan
Copy link
Collaborator

Months ago, the EIP-4824 Registration contract had the version feature.

@Rashmi-278
Copy link
Member Author

I worked on this temporary fix for Ethereum DAOs

https://daostar.org/explore

image

@Rashmi-278
Copy link
Member Author

Months ago, the EIP-4824 Registration contract had the version feature.

Do the current contracts have this?
@crazyyuan @thelastjosh @xiaohou77
Could we create a separate Contracts Repo so that we can maintain the versioning of contracts at least on Source Code?
I realise that EIP-4824 registration contract version info might not be relevant info to store on-chain

@thelastjosh
Copy link
Member

thelastjosh commented Jan 25, 2024 via email

@Rashmi-278
Copy link
Member Author

Josh's suggestion: https://semver.org/

@Rashmi-278
Copy link
Member Author

Our Contracts have a function that returns Version of the contract, we need to index this in The Graph so that we can display the version of contract for a registration instance

function version () external pure returns(string memory){ return "1.0.0"; }

@Rashmi-278
Copy link
Member Author

Pinged Kahn to help with how to query the contract to get the version

@Rashmi-278
Copy link
Member Author

WIP: #207

@thelastjosh
Copy link
Member

thelastjosh commented Jun 26, 2024

Hey folks, would like to get an update here! PR above is still in draft mode.

@thelastjosh
Copy link
Member

There's already some light versioning, it would be nice to have a better plan for this but maybe that's medium priority.

@thelastjosh thelastjosh added priority: medium and removed priority: high High priority labels Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants