feat(APP-610): Implement ERC20 token voting membership use case#4
Draft
asciiman wants to merge 31 commits into
Draft
feat(APP-610): Implement ERC20 token voting membership use case#4asciiman wants to merge 31 commits into
asciiman wants to merge 31 commits into
Conversation
Adds the GetMemberProfileTextRecordsUseCase along with the supporting infrastructure: MemberProfile domain objects (subdomain + text record value objects), an EnvioMemberProfileStore that resolves the live text records from the indexer, and the AragonController endpoint that fronts the use case.
Adds the GetERC20MembershipUseCase along with its supporting infrastructure: Member, TokenVotingMember and VotingPower domain objects, the EnvioTokenVotingMemberStore that pages delegates by voting power (with the ReverseName ENS join for display), and the AragonController endpoint that fronts the use case.
…ords' into app-610
…ords' into app-610-geterc20membership-end-to-end
Base automatically changed from
app-719-aragon-subdomain-look-up-member-profile-ens-records
to
main
June 4, 2026 07:18
# Conflicts: # .github/workflows/library-snapshot.yml # package.json # pnpm-lock.yaml # src/domain/primitives/blockchain/Address.test.ts # src/domain/primitives/blockchain/Address.ts # src/domain/primitives/math/HexNumber.test.ts # src/domain/primitives/math/HexNumber.ts # src/domain/primitives/pagination/Page.ts # src/domain/primitives/uuid/UUID.test.ts # src/domain/primitives/uuid/UUID.ts # src/infrastructure/controllers/AragonController/AragonController.ts # test/AragonSubdomain.test.ts # vitest.config.ts
# Conflicts: # test/AragonDomain.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the first full Token Voting membership query to
aragon-domain. Callers can now ask for a DAO's token-voting members, scoped to a TokenVoting plugin and its ERC20Votes token, ordered by voting power, and get back a paginated, API-ready list with each member's primary ENS name resolved.What's in this PR
Where to look
Start with
AragonController.ts— the thin wiring point that shows the whole flow and the newload(envioClient, rpcUrls)signature. From there,GetTokenVotingMembershipUseCase.tscomposes member data with ENS resolution,EnvioMemberStore.tsfetches and maps the Envio data, andViemENSStore.tsis worth a careful read for the reverse-resolution safety logic.Notes
AragonDomain.loadnow requires anRpcUrlsmap (mainnet RPC URL keyed by chain id) alongside theEnvioClient. Runtime exports are otherwise unchanged (AragonDomain+EnvioClient); the new membership types are type-only.