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

feat(gno/dao): GovDAO - add T3 members invitations module #1502

Merged
merged 17 commits into from
Feb 16, 2025

Conversation

MikaelVallenet
Copy link
Member

@MikaelVallenet MikaelVallenet commented Feb 13, 2025

Based on this PR: #1501

Add Delegate & Withdrawal method usable from T1, T2 & T3 members
T1 -> 3 delegation point
T2 -> 2 delegation point
T1 -> 1 delegation point
A member can only delegate one point per people
A user need 2 delegation point received to become member T3
A member already tiered T1, T2 cannot become T3 member but can still receive invitation point.
When a withdrawal removed a T3 member, all his invitations are removed meaning it can create a chain recursive effect.

Alice -> dave
Bob -> dave
Carol -> eve
Dave -> eve

if alice remove dave, he will not be a member anymore, so his invitation to eve will be removed too and eve will not be a member anymore too.

I also add limit size of 2 times T1 for T2 membership

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for gno-dapp ready!

Name Link
🔨 Latest commit 5863cd9
🔍 Latest deploy log https://app.netlify.com/sites/gno-dapp/deploys/67b0c16cbe20f10008c47e92
😎 Deploy Preview https://deploy-preview-1502--gno-dapp.netlify.app
📱 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.

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for teritori-dapp ready!

Name Link
🔨 Latest commit 5863cd9
🔍 Latest deploy log https://app.netlify.com/sites/teritori-dapp/deploys/67b0c16c203cef0008a0a7a6
😎 Deploy Preview https://deploy-preview-1502--teritori-dapp.netlify.app
📱 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.

@MikaelVallenet MikaelVallenet self-assigned this Feb 15, 2025
Comment on lines 89 to 91
type AddT2MemberMessage struct {
Address string
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should be removed, the correct type is defined above

Copy link
Member Author

@MikaelVallenet MikaelVallenet Feb 15, 2025

Choose a reason for hiding this comment

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

Comment on lines 304 to 305
SetProfileString: profile.SetStringField,
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
SetProfileString: profile.SetStringField,
})
SetProfileString: profile.SetStringField,
NoDefaultHandlers: true,
})

?

Copy link
Member Author

@MikaelVallenet MikaelVallenet Feb 15, 2025

Choose a reason for hiding this comment

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

@n0izn0iz n0izn0iz merged commit 45badf4 into main Feb 16, 2025
22 of 24 checks passed
@n0izn0iz n0izn0iz deleted the dev/gno/gov-dao-t3-membership branch February 16, 2025 14:27
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.

3 participants