Centralize explorer bridge destination selectors

This commit is contained in:
defiQUG
2026-03-28 15:18:49 -07:00
parent a7624db5f7
commit 96a78eda33
13 changed files with 28 additions and 96 deletions

View File

@@ -36,3 +36,8 @@ ccip_destination_field_by_name() {
'.chains[] | select(.name == $name) | .[$field] // empty' \
"$CCIP_DESTINATION_MATRIX_FILE"
}
ccip_destination_selector_by_name() {
local chain_name="${1:-}"
ccip_destination_field_by_name "$chain_name" selector
}