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

Roles 0.1.0/decenthats contract #2102

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

adamgall
Copy link
Member

@adamgall adamgall commented Jul 8, 2024

Closes #2099

@adamgall adamgall changed the base branch from develop to roles-0.1.0/root July 8, 2024 19:13
Copy link

netlify bot commented Jul 8, 2024

Deploy Preview for decent-interface-dev ready!

Name Link
🔨 Latest commit ef46722
🔍 Latest deploy log https://app.netlify.com/sites/decent-interface-dev/deploys/668c3ce13083da0008542e3a
😎 Deploy Preview https://deploy-preview-2102.app.dev.decentdao.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adamgall adamgall force-pushed the roles-0.1.0/decenthats-contract branch from 8ee7f6a to ef46722 Compare July 8, 2024 19:24
Copy link
Contributor

@mudrila mudrila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have bunch of questions

hatsProtocol: '0x3bc1A0Ad72417f2d411118085256fC53CBdDd137',
},
constants: {
ha75Address: '0x0000000000000000000000000000000000004a75',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really reasonable to put it on network config if that's a constant for each network? Is there any reason to assume it would be different for some network in the future? Just don't wanna duplicate stuff if there's no reason in foreseeable future

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah true, i'm sure they'll be the same in all networks for the forseeable future.

Where are you suggesting the constant is defined?

@@ -47,6 +47,11 @@ export type NetworkConfig = {
erc721FreezeVotingMasterCopy: string;
votesERC20WrapperMasterCopy: string;
keyValuePairs: string;
decentHatsMasterCopy: string;
hatsProtocol: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not specifying this as Address type given we're putting that as a constant string? From what I'm getting it won't require getAddress call on network config nor as const

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah really just to keep things consistent. On the remove typechain branch these are typed properly.

hatsProtocol: string;
};
constants: {
ha75Address: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here (if we wanna keep it) - why not specifying this as Address type?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same response as above

@adamgall adamgall merged commit b2de6ea into roles-0.1.0/root Jul 9, 2024
7 checks passed
@adamgall adamgall deleted the roles-0.1.0/decenthats-contract branch July 9, 2024 13:43
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.

2 participants