Skip to content

Commit fc2ceb0

Browse files
revert(heco): Revert Huobi ECO delisting (#4254)
* 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
1 parent 9bab767 commit fc2ceb0

File tree

9 files changed

+66
-2
lines changed

9 files changed

+66
-2
lines changed

android/app/src/androidTest/java/com/trustwallet/core/app/blockchains/CoinAddressDerivationTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CoinAddressDerivationTests {
4343
DASH -> assertEquals("XqHiz8EXYbTAtBEYs4pWTHh7ipEDQcNQeT", address)
4444
DIGIBYTE -> assertEquals("dgb1qtjgmerfqwdffyf8ghcrkgy52cghsqptynmyswu", address)
4545

46-
ETHEREUM, SMARTCHAIN, POLYGON, OPTIMISM, ZKSYNC, ARBITRUM, ARBITRUMNOVA, AVALANCHECCHAIN, XDAI,
46+
ETHEREUM, SMARTCHAIN, POLYGON, OPTIMISM, ZKSYNC, ARBITRUM, ARBITRUMNOVA, ECOCHAIN, AVALANCHECCHAIN, XDAI,
4747
FANTOM, CELO, CRONOSCHAIN, SMARTBITCOINCASH, KUCOINCOMMUNITYCHAIN, BOBA, METIS,
4848
AURORA, EVMOS, MOONRIVER, MOONBEAM, KAVAEVM, KAIA, METER, OKXCHAIN, POLYGONZKEVM, SCROLL,
4949
CONFLUXESPACE, ACALAEVM, OPBNB, NEON, BASE, LINEA, GREENFIELD, MANTLE, ZENEON, MANTAPACIFIC,

docs/registry.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ This list is generated from [./registry.json](../registry.json)
120120
| 10000321 | KuCoin Community Chain | KCS | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/kcc/info/logo.png" width="32" /> | <https://www.kcc.io/> |
121121
| 10000324 | zkSync Era | ETH | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/zksync/info/logo.png" width="32" /> | <https://portal.zksync.io/> |
122122
| 10000330 | Terra | LUNA | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/terrav2/info/logo.png" width="32" /> | <https://terra.money> |
123+
| 10000553 | Huobi ECO Chain | HT | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/heco/info/logo.png" width="32" /> | <https://www.hecochain.com/en-us> |
123124
| 10000787 | Acala EVM | ACA | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/acalaevm/info/logo.png" width="32" /> | <https://acala.network> |
124125
| 10000990 | Coreum | CORE | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/coreum/info/logo.png" width="32" /> | <https://www.coreum.com/> |
125126
| 10001088 | Metis | METIS | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/metis/info/logo.png" width="32" /> | <https://www.metis.io/> |

include/TrustWalletCore/TWCoinType.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ enum TWCoinType {
100100
TWCoinTypeOptimism = 10000070,
101101
TWCoinTypeZksync = 10000324,
102102
TWCoinTypeArbitrum = 10042221,
103+
TWCoinTypeECOChain = 10000553,
103104
TWCoinTypeAvalancheCChain = 10009000,
104105
TWCoinTypeXDai = 10000100,
105106
TWCoinTypeFantom = 10000250,

kotlin/wallet-core-kotlin/src/commonTest/kotlin/com/trustwallet/core/test/CoinAddressDerivationTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CoinAddressDerivationTests {
3636
Dash -> "XqHiz8EXYbTAtBEYs4pWTHh7ipEDQcNQeT"
3737
DigiByte -> "dgb1qtjgmerfqwdffyf8ghcrkgy52cghsqptynmyswu"
3838

39-
Ethereum, SmartChain, Polygon, Optimism, Zksync, Arbitrum, ArbitrumNova, AvalancheCChain, XDai,
39+
Ethereum, SmartChain, Polygon, Optimism, Zksync, Arbitrum, ArbitrumNova, ECOChain, AvalancheCChain, XDai,
4040
Fantom, Celo, CronosChain, SmartBitcoinCash, KuCoinCommunityChain, Boba, Metis,
4141
Aurora, Evmos, Moonriver, Moonbeam, KavaEvm, Kaia, Meter, OKXChain, PolygonzkEVM, Scroll,
4242
ConfluxeSpace, AcalaEVM, OpBNB, Neon, Base, Linea, Greenfield, Mantle, ZenEON, MantaPacific,

registry.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3387,6 +3387,37 @@
33873387
"documentation": "https://docs.arbitrum.io/"
33883388
}
33893389
},
3390+
{
3391+
"id": "heco",
3392+
"name": "ECO Chain",
3393+
"displayName": "Huobi ECO Chain",
3394+
"coinId": 10000553,
3395+
"slip44": 553,
3396+
"symbol": "HT",
3397+
"decimals": 18,
3398+
"blockchain": "Ethereum",
3399+
"derivation": [
3400+
{
3401+
"path": "m/44'/60'/0'/0/0"
3402+
}
3403+
],
3404+
"curve": "secp256k1",
3405+
"publicKeyType": "secp256k1Extended",
3406+
"chainId": "128",
3407+
"addressHasher": "keccak256",
3408+
"explorer": {
3409+
"url": "https://hecoinfo.com",
3410+
"txPath": "/tx/",
3411+
"accountPath": "/address/"
3412+
},
3413+
"info": {
3414+
"url": "https://www.hecochain.com/en-us",
3415+
"source": "https://github.com/HuobiGroup/huobi-eco-chain",
3416+
"rpc": "https://http-mainnet-node.huobichain.com",
3417+
"documentation": "https://eth.wiki/json-rpc/API"
3418+
},
3419+
"testFolderName": "ECO"
3420+
},
33903421
{
33913422
"id": "avalanchec",
33923423
"name": "Avalanche C-Chain",

rust/tw_tests/tests/coin_address_derivation_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ fn test_coin_address_derivation() {
4747
| CoinType::Celo
4848
| CoinType::ConfluxeSpace
4949
| CoinType::CronosChain
50+
| CoinType::ECOChain
5051
| CoinType::EthereumClassic
5152
| CoinType::Evmos
5253
| CoinType::Fantom

swift/Tests/CoinAddressDerivationTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class CoinAddressDerivationTests: XCTestCase {
8686
.scroll,
8787
.arbitrum,
8888
.arbitrumNova,
89+
.ecochain,
8990
.avalancheCChain,
9091
.xdai,
9192
.fantom,

tests/chains/ECO/TWCoinTypeTests.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
//
3+
// Copyright © 2017 Trust Wallet.
4+
//
5+
6+
#include "TestUtilities.h"
7+
#include <TrustWalletCore/TWCoinTypeConfiguration.h>
8+
#include <gtest/gtest.h>
9+
10+
11+
TEST(TWHECOCoinType, TWCoinType) {
12+
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeECOChain));
13+
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0x2e62832615f5b68b3bbcd72046a24260ce47052841c1679841b9c574d3959f13"));
14+
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeECOChain, txId.get()));
15+
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0xc5a5b3e49e5d06afe163553c942dc59b4e358cf1"));
16+
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeECOChain, accId.get()));
17+
auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeECOChain));
18+
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeECOChain));
19+
20+
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeECOChain), 18);
21+
ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeECOChain));
22+
23+
assertStringsEqual(symbol, "HT");
24+
assertStringsEqual(txUrl, "https://hecoinfo.com/tx/0x2e62832615f5b68b3bbcd72046a24260ce47052841c1679841b9c574d3959f13");
25+
assertStringsEqual(accUrl, "https://hecoinfo.com/address/0xc5a5b3e49e5d06afe163553c942dc59b4e358cf1");
26+
assertStringsEqual(id, "heco");
27+
assertStringsEqual(name, "Huobi ECO Chain");
28+
}

tests/common/CoinAddressDerivationTests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ TEST(Coin, DeriveAddress) {
4545
case TWCoinTypeCelo:
4646
case TWCoinTypeConfluxeSpace:
4747
case TWCoinTypeCronosChain:
48+
case TWCoinTypeECOChain:
4849
case TWCoinTypeEthereumClassic:
4950
case TWCoinTypeEvmos:
5051
case TWCoinTypeFantom:

0 commit comments

Comments
 (0)