Skip to content

Commit 296f9f3

Browse files
authored
feat(tomochain): rebrand to viction (#3578)
1 parent c94d860 commit 296f9f3

File tree

13 files changed

+33
-33
lines changed

13 files changed

+33
-33
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
@@ -57,7 +57,7 @@ class CoinAddressDerivationTests {
5757
XRP -> assertEquals("rPwE3gChNKtZ1mhH3Ko8YFGqKmGRWLWXV3", address)
5858
TEZOS -> assertEquals("tz1acnY9VbMagps26Kj3RfoGRWD9nYG5qaRX", address)
5959
THUNDERCORE -> assertEquals("0x4b92b3ED6d8b24575Bf5ce4C6a86ED261DA0C8d7", address)
60-
TOMOCHAIN -> assertEquals("0xC74b6D8897cBa9A4b659d43fEF73C9cA852cE424", address)
60+
VICTION -> assertEquals("0xC74b6D8897cBa9A4b659d43fEF73C9cA852cE424", address)
6161
TRON -> assertEquals("TQ5NMqJjhpQGK7YJbESKtNCo86PJ89ujio", address)
6262
VECHAIN -> assertEquals("0x1a553275dF34195eAf23942CB7328AcF9d48c160", address)
6363
WANCHAIN -> assertEquals("0xD5ca90b928279FE5D06144136a25DeD90127aC15", address)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TestCoinType {
3232
assertEquals(CoinType.POANETWORK.value(), 178)
3333
assertEquals(CoinType.VECHAIN.value(), 818)
3434
assertEquals(CoinType.ICON.value(), 74)
35-
assertEquals(CoinType.TOMOCHAIN.value(), 889)
35+
assertEquals(CoinType.VICTION.value(), 889)
3636
assertEquals(CoinType.TEZOS.value(), 1729)
3737
assertEquals(CoinType.QTUM.value(), 2301)
3838
assertEquals(CoinType.NEBULAS.value(), 2718)

docs/registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This list is generated from [./registry.json](../registry.json)
7171
| 818 | VeChain | VET | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/vechain/info/logo.png" width="32" /> | <https://vechain.org> |
7272
| 820 | Callisto | CLO | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/callisto/info/logo.png" width="32" /> | <https://callisto.network> |
7373
| 888 | NEO | NEO | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/neo/info/logo.png" width="32" /> | <https://neo.org> |
74-
| 889 | TomoChain | TOMO | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tomochain/info/logo.png" width="32" /> | <https://tomochain.com> |
74+
| 889 | Viction | VIC | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/viction/info/logo.png" width="32" /> | <https://www.viction.xyz/> |
7575
| 899 | eCash | XEC | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ecash/info/logo.png" width="32" /> | <https://e.cash> |
7676
| 931 | THORChain | RUNE | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/thorchain/info/logo.png" width="32" /> | <https://thorchain.org> |
7777
| 966 | Polygon | MATIC | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/polygon/info/logo.png" width="32" /> | <https://polygon.technology> |

include/TrustWalletCore/TWCoinType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ enum TWCoinType {
7272
TWCoinTypeTheta = 500,
7373
TWCoinTypeThunderCore = 1001,
7474
TWCoinTypeNEO = 888,
75-
TWCoinTypeTomoChain = 889,
75+
TWCoinTypeViction = 889,
7676
TWCoinTypeTron = 195,
7777
TWCoinTypeVeChain = 818,
7878
TWCoinTypeViacoin = 14,

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
@@ -53,7 +53,7 @@ class CoinAddressDerivationTests {
5353
XRP -> "rPwE3gChNKtZ1mhH3Ko8YFGqKmGRWLWXV3"
5454
Tezos -> "tz1acnY9VbMagps26Kj3RfoGRWD9nYG5qaRX"
5555
ThunderCore -> "0x4b92b3ED6d8b24575Bf5ce4C6a86ED261DA0C8d7"
56-
TomoChain -> "0xC74b6D8897cBa9A4b659d43fEF73C9cA852cE424"
56+
Viction -> "0xC74b6D8897cBa9A4b659d43fEF73C9cA852cE424"
5757
Tron -> "TQ5NMqJjhpQGK7YJbESKtNCo86PJ89ujio"
5858
VeChain -> "0x1a553275dF34195eAf23942CB7328AcF9d48c160"
5959
Wanchain -> "0xD5ca90b928279FE5D06144136a25DeD90127aC15"

registry.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,10 +2573,10 @@
25732573
}
25742574
},
25752575
{
2576-
"id": "tomochain",
2577-
"name": "TomoChain",
2576+
"id": "viction",
2577+
"name": "Viction",
25782578
"coinId": 889,
2579-
"symbol": "TOMO",
2579+
"symbol": "VIC",
25802580
"decimals": 18,
25812581
"blockchain": "Ethereum",
25822582
"derivation": [
@@ -2589,15 +2589,15 @@
25892589
"chainId": "88",
25902590
"addressHasher": "keccak256",
25912591
"explorer": {
2592-
"url": "https://tomoscan.io",
2592+
"url": "https://www.vicscan.xyz",
25932593
"txPath": "/tx/",
25942594
"accountPath": "/address/",
25952595
"sampleTx": "0x35a8d3ab06c94d5b7d27221b7c9a24ba3f1710dd0fcfd75c5d59b3a885fd709b",
25962596
"sampleAccount": "0x86cCbD9bfb371c355202086882bC644A7D0b024B"
25972597
},
25982598
"info": {
2599-
"url": "https://tomochain.com",
2600-
"source": "https://github.com/tomochain/tomochain",
2599+
"url": "https://www.viction.xyz/",
2600+
"source": "https://github.com/BuildOnViction/tomochain",
26012601
"rpc": "https://rpc.tomochain.com",
26022602
"documentation": "https://eth.wiki/json-rpc/API"
26032603
}

rust/tw_any_coin/tests/coin_address_derivation_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn test_coin_address_derivation() {
7373
| CoinType::Theta
7474
| CoinType::ThetaFuel
7575
| CoinType::ThunderCore
76-
| CoinType::TomoChain
76+
| CoinType::Viction
7777
| CoinType::VeChain
7878
| CoinType::Wanchain
7979
| CoinType::xDai

swift/Tests/CoinAddressDerivationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class CoinAddressDerivationTests: XCTestCase {
224224
case .thunderCore:
225225
let expectedResult = "0x4b92b3ED6d8b24575Bf5ce4C6a86ED261DA0C8d7"
226226
assertCoinDerivation(coin, expectedResult, derivedAddress, address)
227-
case .tomoChain:
227+
case .viction:
228228
let expectedResult = "0xC74b6D8897cBa9A4b659d43fEF73C9cA852cE424"
229229
assertCoinDerivation(coin, expectedResult, derivedAddress, address)
230230
case .tron:

swift/Tests/CoinTypeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CoinTypeTests: XCTestCase {
2323
XCTAssertEqual(CoinType.poanetwork.rawValue, 178)
2424
XCTAssertEqual(CoinType.veChain.rawValue, 818)
2525
XCTAssertEqual(CoinType.icon.rawValue, 74)
26-
XCTAssertEqual(CoinType.tomoChain.rawValue, 889)
26+
XCTAssertEqual(CoinType.viction.rawValue, 889)
2727
XCTAssertEqual(CoinType.tezos.rawValue, 1729)
2828
XCTAssertEqual(CoinType.qtum.rawValue, 2301)
2929
XCTAssertEqual(CoinType.nebulas.rawValue, 2718)

tests/chains/TomoChain/TWCoinTypeTests.cpp renamed to tests/chains/Viction/TWCoinTypeTests.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@
1313
#include <gtest/gtest.h>
1414

1515

16-
TEST(TWTomoChainCoinType, TWCoinType) {
17-
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeTomoChain));
16+
TEST(TWVictionType, TWCoinType) {
17+
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeViction));
1818
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0x35a8d3ab06c94d5b7d27221b7c9a24ba3f1710dd0fcfd75c5d59b3a885fd709b"));
19-
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeTomoChain, txId.get()));
19+
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeViction, txId.get()));
2020
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0x86cCbD9bfb371c355202086882bC644A7D0b024B"));
21-
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeTomoChain, accId.get()));
22-
auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeTomoChain));
23-
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeTomoChain));
21+
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeViction, accId.get()));
22+
auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeViction));
23+
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeViction));
2424

25-
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeTomoChain), 18);
26-
ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeTomoChain));
27-
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeTomoChain));
28-
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeTomoChain));
29-
assertStringsEqual(symbol, "TOMO");
30-
assertStringsEqual(txUrl, "https://tomoscan.io/tx/0x35a8d3ab06c94d5b7d27221b7c9a24ba3f1710dd0fcfd75c5d59b3a885fd709b");
31-
assertStringsEqual(accUrl, "https://tomoscan.io/address/0x86cCbD9bfb371c355202086882bC644A7D0b024B");
32-
assertStringsEqual(id, "tomochain");
33-
assertStringsEqual(name, "TomoChain");
25+
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeViction), 18);
26+
ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeViction));
27+
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeViction));
28+
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeViction));
29+
assertStringsEqual(symbol, "VIC");
30+
assertStringsEqual(txUrl, "https://www.vicscan.xyz/tx/0x35a8d3ab06c94d5b7d27221b7c9a24ba3f1710dd0fcfd75c5d59b3a885fd709b");
31+
assertStringsEqual(accUrl, "https://www.vicscan.xyz/address/0x86cCbD9bfb371c355202086882bC644A7D0b024B");
32+
assertStringsEqual(id, "viction");
33+
assertStringsEqual(name, "Viction");
3434
}

0 commit comments

Comments
 (0)