diff --git a/registry.json b/registry.json index f8dc1115bd1..966fc0a2d71 100644 --- a/registry.json +++ b/registry.json @@ -1174,7 +1174,7 @@ "symbol": "TIA", "decimals": 6, "blockchain": "Cosmos", - "chainId": "mocha-4", + "chainId": "celestia", "derivation": [ { "path": "m/44'/118'/0'/0/0" @@ -1185,11 +1185,11 @@ "hrp": "celestia", "addressHasher": "sha256ripemd", "explorer": { - "url": "https://www.mintscan.io/tia", + "url": "https://www.mintscan.io/celestia", "txPath": "/txs/", "accountPath": "/account/", - "sampleTx": "943B1A59EB724A1258CF167834A83558DE5A31E8C1E31FCBCBB99404222E5FBF", - "sampleAccount": "celestia142j9u5eaduzd7faumygud6ruhdwme98qpwmfv7" + "sampleTx": "FF370C65D8D67B8236F9D3A8D2B1256337C60C1965092CADD1FA970288FCE99B", + "sampleAccount": "celestia1tt4tv4jrs4twdtzwywxd8u65duxgk8y73wvfu2" }, "info": { "url": "https://celestia.org/", diff --git a/tests/chains/Cosmos/Tia/TWCoinTypeTests.cpp b/tests/chains/Cosmos/Tia/TWCoinTypeTests.cpp index 2a22712580a..a3d656fd5f6 100644 --- a/tests/chains/Cosmos/Tia/TWCoinTypeTests.cpp +++ b/tests/chains/Cosmos/Tia/TWCoinTypeTests.cpp @@ -13,25 +13,27 @@ #include namespace TW::Cosmos::tests { - TEST(TWTiaCoinType, TWCoinType) { - const auto coin = TWCoinTypeTia; - const auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(coin)); - const auto id = WRAPS(TWCoinTypeConfigurationGetID(coin)); - const auto name = WRAPS(TWCoinTypeConfigurationGetName(coin)); - const auto chainId = WRAPS(TWCoinTypeChainId(coin)); - const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("943B1A59EB724A1258CF167834A83558DE5A31E8C1E31FCBCBB99404222E5FBF")); - const auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(coin, txId.get())); - const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("celestia142j9u5eaduzd7faumygud6ruhdwme98qpwmfv7")); - const auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(coin, accId.get())); - assertStringsEqual(id, "tia"); - assertStringsEqual(name, "Celestia"); - assertStringsEqual(symbol, "TIA"); - ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(coin), 6); - ASSERT_EQ(TWCoinTypeBlockchain(coin), TWBlockchainCosmos); - ASSERT_EQ(TWCoinTypeP2shPrefix(coin), 0x0); - ASSERT_EQ(TWCoinTypeStaticPrefix(coin), 0x0); - assertStringsEqual(chainId, "mocha-4"); - assertStringsEqual(txUrl, "https://www.mintscan.io/tia/txs/943B1A59EB724A1258CF167834A83558DE5A31E8C1E31FCBCBB99404222E5FBF"); - assertStringsEqual(accUrl, "https://www.mintscan.io/tia/account/celestia142j9u5eaduzd7faumygud6ruhdwme98qpwmfv7"); - } + +TEST(TWTiaCoinType, TWCoinType) { + const auto coin = TWCoinTypeTia; + const auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(coin)); + const auto id = WRAPS(TWCoinTypeConfigurationGetID(coin)); + const auto name = WRAPS(TWCoinTypeConfigurationGetName(coin)); + const auto chainId = WRAPS(TWCoinTypeChainId(coin)); + const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("FF370C65D8D67B8236F9D3A8D2B1256337C60C1965092CADD1FA970288FCE99B")); + const auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(coin, txId.get())); + const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("celestia1tt4tv4jrs4twdtzwywxd8u65duxgk8y73wvfu2")); + const auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(coin, accId.get())); + assertStringsEqual(id, "tia"); + assertStringsEqual(name, "Celestia"); + assertStringsEqual(symbol, "TIA"); + ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(coin), 6); + ASSERT_EQ(TWCoinTypeBlockchain(coin), TWBlockchainCosmos); + ASSERT_EQ(TWCoinTypeP2shPrefix(coin), 0x0); + ASSERT_EQ(TWCoinTypeStaticPrefix(coin), 0x0); + assertStringsEqual(chainId, "celestia"); + assertStringsEqual(txUrl, "https://www.mintscan.io/celestia/txs/FF370C65D8D67B8236F9D3A8D2B1256337C60C1965092CADD1FA970288FCE99B"); + assertStringsEqual(accUrl, "https://www.mintscan.io/celestia/account/celestia1tt4tv4jrs4twdtzwywxd8u65duxgk8y73wvfu2"); } + +} // namespace TW::Cosmos::tests