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(collections): indexed map #966

Merged
merged 10 commits into from
Oct 4, 2022
Merged

Conversation

testinginprod
Copy link
Collaborator

@testinginprod testinginprod commented Sep 22, 2022

Description

Adds the indexed map.

Purpose

Required for:

@testinginprod testinginprod requested a review from a team as a code owner September 22, 2022 21:35
panic("invalid index id cannot be equal to 0")
}
ks := NewKeySet[keys.Pair[IK, PK]](cdc, sk, namespace)
ks.prefix = append(ks.prefix, indexID)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is the only part im not happy about tbh... but it would require some more refactoring on how we provide prefixes

collections/indexed_map.go Outdated Show resolved Hide resolved
collections/indexed_map.go Show resolved Hide resolved
collections/indexed_map.go Outdated Show resolved Hide resolved
collections/indexed_map.go Outdated Show resolved Hide resolved
@testinginprod testinginprod enabled auto-merge (squash) October 4, 2022 18:59
@testinginprod testinginprod merged commit 149e82f into master Oct 4, 2022
@testinginprod testinginprod deleted the mercilex/collections-indexes branch October 4, 2022 19:04
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