From 502f84682252c5ed29a08653e38e6dce371e1ee1 Mon Sep 17 00:00:00 2001 From: jlaveracll Date: Thu, 21 Nov 2024 14:44:58 -0300 Subject: [PATCH] Tag evm only get selector as deprecated (#78) * Tag evm only get selector as deprecated --- evm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evm.go b/evm.go index 877caf1..d98109e 100644 --- a/evm.go +++ b/evm.go @@ -69,6 +69,7 @@ func EvmChainIdToChainSelector() map[uint64]uint64 { return copyMap } +// Deprecated, this only supports EVM chains, use the chain agnostic `GetChainIDFromSelector` instead func ChainIdFromSelector(chainSelectorId uint64) (uint64, error) { for k, v := range evmChainIdToChainSelector { if v.ChainSelector == chainSelectorId { @@ -78,6 +79,7 @@ func ChainIdFromSelector(chainSelectorId uint64) (uint64, error) { return 0, fmt.Errorf("chain not found for chain selector %d", chainSelectorId) } +// Deprecated, this only supports EVM chains, use the chain agnostic `GetChainDetailsByChainIDAndFamily` instead func SelectorFromChainId(chainId uint64) (uint64, error) { if chainSelectorId, exist := evmChainIdToChainSelector[chainId]; exist { return chainSelectorId.ChainSelector, nil @@ -85,6 +87,7 @@ func SelectorFromChainId(chainId uint64) (uint64, error) { return 0, fmt.Errorf("chain selector not found for chain %d", chainId) } +// Deprecated, this only supports EVM chains, use the chain agnostic `NameFromChainId` instead func NameFromChainId(chainId uint64) (string, error) { details, exist := evmChainIdToChainSelector[chainId] if !exist {