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

CCIP-3416 paginate token admin registry get all tokens call #14514

Conversation

ogtownsend
Copy link
Collaborator

CCIP-3416
Paginate call to GetAllConfiguredTokens since this can theoretically grow pretty large

@ogtownsend ogtownsend changed the title paginate token admin registry get all tokens call CCIP-3416 paginate token admin registry get all tokens call Sep 20, 2024
@ogtownsend ogtownsend marked this pull request as ready for review September 20, 2024 22:17
@ogtownsend ogtownsend requested a review from a team as a code owner September 20, 2024 22:17
@ogtownsend ogtownsend force-pushed the CCIP-3416-token-admin-registry-get-all-configured-tokens-handling branch 2 times, most recently from 70bc529 to 852c40e Compare September 20, 2024 22:36
type TokenAdminRegistryView struct {
types.ContractMetaData
Tokens []common.Address `json:"tokens"`
}

func GenerateTokenAdminRegistryView(taContract *token_admin_registry.TokenAdminRegistry) (TokenAdminRegistryView, error) {
tokens, err := taContract.GetAllConfiguredTokens(nil, 0, 10)
if taContract == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice! should have this in every view

@ogtownsend ogtownsend force-pushed the CCIP-3416-token-admin-registry-get-all-configured-tokens-handling branch from 852c40e to bcf7e07 Compare September 23, 2024 16:13
@cl-sonarqube-production
Copy link

@ogtownsend ogtownsend added this pull request to the merge queue Sep 23, 2024
Merged via the queue into develop with commit c7a16eb Sep 23, 2024
147 checks passed
@ogtownsend ogtownsend deleted the CCIP-3416-token-admin-registry-get-all-configured-tokens-handling branch September 23, 2024 18:23
momentmaker added a commit that referenced this pull request Sep 24, 2024
…develop

* origin/develop: (233 commits)
  update Smoke Test TestAutomationBasic to load pre-deployed contracts if given (#14537)
  CCIP-2881  USDC Reader integration tests  (#14516)
  [TT-1624] link PR to solidity review issue (#14521)
  Fix skipped notification in E2E test workflow (#14538)
  Add regression testing for pruning bug (#14454)
  Bump owner dep (#14531)
  Fix state view (#14532)
  Deployment tooling (#14533)
  CCIP 3388 - add offramp generation (#14526)
  CCIP-3416 paginate token admin registry get all tokens call (#14514)
  Change Polygon zkEVM to use FeeHistory estimator (#14161)
  [TT-1747] fix core changeset (#14524)
  TT-1459 Use CTF actions from .github repo (#14522)
  [TT-1693] try more universal Solidity scripts (#14436)
  Remove unused workflow for e2e tests (#14520)
  BCI-3668 Optimise HeadTracker's memory usage (#14130)
  BCFR-888 LP support chains that have not reached finality yet (#14366)
  support new heads polling over http rpc client (#14373)
  Bump CTF (#14518)
  TT-1550 Migrate remaining E2E workflows to the reusable workflow (#14403)
  ...
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