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

Storage lookup pagination #152

Open
ItsNickBarry opened this issue Oct 21, 2022 · 0 comments
Open

Storage lookup pagination #152

ItsNickBarry opened this issue Oct 21, 2022 · 0 comments

Comments

@ItsNickBarry
Copy link
Member

Most of our data structure libraries are represented by arrays internally, and some have a toArray function which returns the underlying data. We need to add a paginated version of toArray which accepts startIndex and length parameters and returns a slice of the underlying array. This will enable partial lookups when a full lookup would be gas-prohibitive.

Apply this to all current and pending data structures (see data-structures branch). Also apply to contracts that use these data structures, such as the Enumerable extensions.

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

No branches or pull requests

1 participant