diff --git a/coin/models.go b/coin/models.go index 2a46823..8c4594a 100644 --- a/coin/models.go +++ b/coin/models.go @@ -161,6 +161,8 @@ func GetCoinExploreURL(c Coin, tokenID, tokenType string) (string, error) { return fmt.Sprintf("https://explorer.mantle.xyz/address/%s", tokenID), nil case LINEA: return fmt.Sprintf("https://explorer.linea.build/token/%s", tokenID), nil + case OPBNB: + return fmt.Sprintf("https://opbnbscan.com/token/%s", tokenID), nil } return "", errors.New("no explorer for coin: " + c.Handle) diff --git a/types/chain.go b/types/chain.go index 6c79116..b9bbe1b 100644 --- a/types/chain.go +++ b/types/chain.go @@ -151,7 +151,7 @@ func GetChainFromAssetType(assetType string) (coin.Coin, error) { return coin.Cryptoorg(), nil case COSMOS: return coin.Cosmos(), nil - case OPBNB: + case OBNB: return coin.Opbnb(), nil case LINEA: return coin.Linea(), nil diff --git a/types/token.go b/types/token.go index 1564d74..95f3487 100644 --- a/types/token.go +++ b/types/token.go @@ -111,7 +111,7 @@ const ( CARDANO TokenType = "CARDANO" NEON TokenType = "NEON" IOTEXEVM TokenType = "XRC20" - OPBNB TokenType = "OPBNB" + OBNB TokenType = "OBNB" LINEA TokenType = "LINEA" MANTLE TokenType = "MANTLE" ) @@ -213,7 +213,7 @@ func GetTokenTypes() []TokenType { SEI, CARDANO, NEON, - OPBNB, + OBNB, LINEA, ACALAEVM, MANTLE, @@ -370,12 +370,12 @@ func GetTokenVersion(tokenType string) (TokenVersion, error) { return TokenVersionV11, nil case TON, POLYGONZKEVM, ZKSYNC, SUI: return TokenVersionV12, nil - case BASE, AKASH, AGORIC, AXELAR, JUNO, SEI, OPBNB: + case BASE, AKASH, AGORIC, AXELAR, JUNO, SEI, OBNB: return TokenVersionV13, nil - case KAVAEVM, BOBA, METIS, NEON, LINEA, ACA, ACALAEVM, CONFLUX, IOTEXEVM, KLAYTN, MOONRIVER, MOONBEAM: + case KAVAEVM, BOBA, METIS, NEON, LINEA, ACA, ACALAEVM, CONFLUX, IOTEXEVM, KLAYTN, MOONRIVER, MOONBEAM, MANTLE: return TokenVersionV14, nil case BRC20, ERC721, ERC1155, EOS, NEP5, VET, ONTOLOGY, THETA, TOMO, POA, OASIS, ALGORAND, METER, EVMOS_ERC20, - KIP20, STRIDE, NEUTRON, FA2, CARDANO, NATIVEINJECTIVE, NATIVEEVMOS, CRYPTOORG, COSMOS, OSMOSIS, STARGAZE, MANTLE: + KIP20, STRIDE, NEUTRON, FA2, CARDANO, NATIVEINJECTIVE, NATIVEEVMOS, CRYPTOORG, COSMOS, OSMOSIS, STARGAZE: return TokenVersionUndefined, nil default: // This should not happen, as it is guarded by TestGetTokenVersionImplementEverySupportedTokenTypes @@ -478,7 +478,7 @@ func GetEthereumTokenTypeByIndex(coinIndex uint) (TokenType, error) { case coin.IOTEXEVM: tokenType = IOTEXEVM case coin.OPBNB: - tokenType = OPBNB + tokenType = OBNB case coin.LINEA: tokenType = LINEA case coin.MANTLE: