Skip to content

Conversation

kylesmartin
Copy link
Contributor

@kylesmartin kylesmartin commented Oct 4, 2025

Base automatically changed from CCIP-7090 to main October 6, 2025 21:00
@kylesmartin kylesmartin marked this pull request as ready for review October 7, 2025 04:24
@kylesmartin kylesmartin requested a review from a team as a code owner October 7, 2025 04:24
m map[tokenAdapterID]TokenAdapter
}

func NewTokenAdapterRegistry() *TokenAdapterRegistry {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there ever a reason we'll want more than one registry in a single runtime instance? It might make sense for this to be a singleton and to just have a GetTokenAdapterRegistry

Copy link
Contributor Author

@kylesmartin kylesmartin Oct 7, 2025

Choose a reason for hiding this comment

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

The issue I had with the singleton approach was testing. Much easier to create a registries in each test, parallel tests have independent registries.

tt-cll
tt-cll previously approved these changes Oct 7, 2025
AnieeG
AnieeG previously approved these changes Oct 7, 2025
Comment on lines 18 to 21
type TokenAdapter interface {
ConfigureTokenForTransfersSequence() *cldf_ops.Sequence[ConfigureTokenForTransfersInput, sequences.OnChainOutput, cldf_chain.BlockChains]
ConvertRefToBytes(ref datastore.AddressRef) ([]byte, error)
DeriveRemoteTokenAddress(e deployment.Environment, chainSelector uint64, poolRef datastore.AddressRef) ([]byte, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

some comment on these func would be great

@kylesmartin kylesmartin added this pull request to the merge queue Oct 7, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 7, 2025
* [CCIP-7090] Move chain family agnostic utilities to deployment module

* Update top level deploy pkg

* Fix, + add test workflows

* Checkout

* Fix

* Fix again

* Workflow

* Add checkout

* OpCount -> GetChainMetadata

* Fix tests

* Use mcms.Input

* Move contract writes back to EVM

* [CCIP-7268-pt-1] Add ConfigureTokensForTransfers to product spec

* Very WIP

* Rm global registry

* Test
@kylesmartin kylesmartin removed this pull request from the merge queue due to a manual request Oct 7, 2025
@kylesmartin kylesmartin dismissed stale reviews from AnieeG and tt-cll October 7, 2025 16:33

Making some changes

@kylesmartin kylesmartin requested review from AnieeG and tt-cll October 7, 2025 16:51
@kylesmartin kylesmartin enabled auto-merge October 7, 2025 17:09
Copy link

github-actions bot commented Oct 7, 2025

Metric CCIP-7268-pt-1 main
Coverage 69.4% 68.7%

@kylesmartin kylesmartin added this pull request to the merge queue Oct 7, 2025
Merged via the queue into main with commit cfd1e49 Oct 7, 2025
51 checks passed
@kylesmartin kylesmartin deleted the CCIP-7268-pt-1 branch October 7, 2025 17:41
RensR added a commit that referenced this pull request Oct 8, 2025
* add owners for deployments (#1239)

* owners

* owners

* add zksync gobinding (#1238)

Co-authored-by: kylesmartin <[email protected]>

* add warning gobindings (#1235)

* Add factory param for LOOPP enabled families (#1231)

* Add factory param for LOOPP enabled families

* add tests for feature flag map for USDC reader

* [CCIP-7090] Move chain family agnostic utilities to deployment module (#1237)

* [CCIP-7090] Move chain family agnostic utilities to deployment module

* Update top level deploy pkg

* Fix, + add test workflows

* Checkout

* Fix

* Fix again

* Workflow

* Add checkout

* OpCount -> GetChainMetadata

* Fix tests

* Use mcms.Input

* Move contract writes back to EVM

* Rm global registry

* update npm release action (#1252)

* CCIP-6698 New USDC Token Pool Proxy for routing USDC messages to the proper token pool (#1134)

* begin migrating files from other PR for phase 2

* initial compilation and tests passing.

* cleanup and wrapper updates

* remove previousPool from the USDC Token Pool as it will be moved to the future proxy

* more cleanup

* checkpointing

* cleanup

* productionize

* comments and proxy updates

* additional comments

* forge fmt

* bump type and version for future release cuts

* wrappers regen

* changeset

* review comment fixes and test cleanup

* formatting and gas optimization

* add expectCall to lockOrBurn tests

* fix CI from merge conflicts

* fix CI from merge conflicts

* code review fixes

* feedback fixes

* comment fix

* resolve CI from merge conflicts in previous commit

* typo fix

* comment fixes and gas optimizations

* add additional branches for direct non-transmitter-proxy upgrades

* better comments and gas optimization

* gobindings and comment fix

* simplify proxy by removing tokenPool dependency

* linter fix

* constructor input sanitization check

* modify lock release pools to be dynamic based on remote chain selector

* fix dependency pathing

* fix comment feedback

* Change source pool data codec

* update encoding schemes for more specific versioning

* cleanup

* fill in coverage test gaps

* comment fixes and PoolV1 interface support for proxy

* productionize codec library

* add cctp fast transfer version tag

* snapshot fix

* remove superfluous constructor checks

* forge fmt

* comment feedback fixes

* fill in coverage gaps and add new tokenPoolProxy helper contract.

* *spiderman voice* let's try this one last time

* deposit hash validation on destination

* more fuzz tests and better message formatting comments

* wrapper and snapshot fix from merge conflict resolution

* add support for legacy source pool data format to prevent breaking changes

* additional library test files, hash collision prevention, and better commenting

* cld ccip api e2e (#1227)

* wip

* flatten

* flatten

* iterate

* iterate

* iterate

* iterate

* iterate

* iterate

* iterate

* seed solana

* move ref

* [CCIP-7268-pt-1] Add ConfigureTokensForTransfers to product spec (#1242)

* [CCIP-7090] Move chain family agnostic utilities to deployment module

* Update top level deploy pkg

* Fix, + add test workflows

* Checkout

* Fix

* Fix again

* Workflow

* Add checkout

* OpCount -> GetChainMetadata

* Fix tests

* Use mcms.Input

* Move contract writes back to EVM

* [CCIP-7268-pt-1] Add ConfigureTokensForTransfers to product spec

* Very WIP

* Rm global registry

* Test

* Comments

* prevent breaking o11y with idl changes (#1247)

* prevent breaking o11y with idl changes

* test change idl

* fix action

* fix

* change in idl

* only ones we need to track

* Revert "change in idl"

This reverts commit 8378c29.

* shouldn't trigger

* should detect multiple

* fix actin

* Revert "should detect multiple"

This reverts commit 1a8fd3d.

* Revert "shouldn't trigger"

This reverts commit c4e8ef2.

* fix some comms

* add unlabeled

* should trigger

* Revert "add unlabeled"

This reverts commit 79a1d6c.

* unlabeled

* Revert "should trigger"

This reverts commit b47dd70.

* fix missing permissions for ID token (#1254)

* fix missing permissions for ID token

* move to job level

* Validate dest pool in FTF pool (#1251)

* add validation for destination pool

* add tests

* update wrapper

* update comment + refactor

* lint fix

* update changesets setup

---------

Co-authored-by: tt-cll <[email protected]>
Co-authored-by: Matthew Romage <[email protected]>
Co-authored-by: kylesmartin <[email protected]>
Co-authored-by: Oliver Townsend <[email protected]>
Co-authored-by: Josh Weintraub <[email protected]>
Co-authored-by: Juan Farber <[email protected]>
Co-authored-by: Suryansh <[email protected]>
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