Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions deployment/utils/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ const (
bytes4 public constant CHAIN_FAMILY_SELECTOR_SVM = 0x1e10bdc4;
```
*/
EVMFamilySelector = "2812d52c"
SVMFamilySelector = "1e10bdc4"
AptosFamilySelector = "ac77ffec"
TVMFamilySelector = "647e2ba9"
SuiFamilySelector = "c4e05953"
EVMFamilySelector = "2812d52c"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm I wish we could source these from somewhere else so that we wouldn't have to modify chainlink-ccip.

\cc @tt-cll maybe this can be part of the tooling adapter? adapter.ChainFamilySelector()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm checking with @tt-cll, I think we can remove this method altogether on the 2.0 codepath

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

#1896

Trying to move the selector fetching to the chain adapters. If the only thing that needs it is the FQ dest chain config, then it should be able to be totally encapsulated in a chain package

SVMFamilySelector = "1e10bdc4"
AptosFamilySelector = "ac77ffec"
TVMFamilySelector = "647e2ba9"
SuiFamilySelector = "c4e05953"
CantonFamilySelector = "e8dc1b56"
)

func GetSelectorHex(selector uint64) [4]byte {
Expand All @@ -67,6 +68,8 @@ func GetSelectorHex(selector uint64) [4]byte {
hexStr = TVMFamilySelector
case chain_selectors.FamilySui:
hexStr = SuiFamilySelector
case chain_selectors.FamilyCanton:
hexStr = CantonFamilySelector
default:
panic(fmt.Sprintf("unsupported chain family: %s", destFamily))
}
Expand Down
Loading