chore: move aptos contract metadata view to ccip/view/aptos#22659
Conversation
This struct is only used by CCIP, so it makes sense to move it to the `ccip/view/aptos` package.
|
✅ No conflicts with other open PRs targeting |
|
|
There was a problem hiding this comment.
Pull request overview
Relocates the Aptos ContractMetaData struct from deployment/common/view/aptos into deployment/ccip/view/aptos since it is only consumed by CCIP views, and updates all embedding sites and constructor calls to use the new local type.
Changes:
- Adds
contract_metadata.godefiningContractMetaDatain theccip/view/aptospackage. - Removes the
aptosCommonimport and replaces embedded/constructedaptosCommon.ContractMetaDatareferences with the localContractMetaDataacross CCIP Aptos view files.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| deployment/ccip/view/aptos/contract_metadata.go | New file defining the relocated ContractMetaData struct. |
| deployment/ccip/view/aptos/ccip.go | Drops aptosCommon import; updates embeds and struct literals to local type. |
| deployment/ccip/view/aptos/mcms.go | Same migration to local ContractMetaData. |
| deployment/ccip/view/aptos/offramp.go | Same migration to local ContractMetaData. |
| deployment/ccip/view/aptos/onramp.go | Same migration to local ContractMetaData. |
| deployment/ccip/view/aptos/router.go | Same migration to local ContractMetaData. |
| deployment/ccip/view/aptos/token.go | Same migration to local ContractMetaData. |
| deployment/ccip/view/aptos/token_pool.go | Same migration to local ContractMetaData. |
Risk Rating: LOW — mechanical refactor moving a small struct between packages; no behavior change. The old deployment/common/view/aptos directory has been fully removed and no remaining references to it exist in the repo.





This struct is only used by CCIP, so it makes sense to move it to the
ccip/view/aptospackage.