Skip to content

Commit 4c40f20

Browse files
authored
Update name for ThunderCore (#2946)
1 parent 90b1883 commit 4c40f20

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
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
@@ -53,7 +53,7 @@ class CoinAddressDerivationTests {
5353
POANETWORK -> assertEquals("0xe8a3e8bE17E172B6926130eAfB521e9D2849aca9", address)
5454
XRP -> assertEquals("rPwE3gChNKtZ1mhH3Ko8YFGqKmGRWLWXV3", address)
5555
TEZOS -> assertEquals("tz1acnY9VbMagps26Kj3RfoGRWD9nYG5qaRX", address)
56-
THUNDERTOKEN -> assertEquals("0x4b92b3ED6d8b24575Bf5ce4C6a86ED261DA0C8d7", address)
56+
THUNDERCORE -> assertEquals("0x4b92b3ED6d8b24575Bf5ce4C6a86ED261DA0C8d7", address)
5757
TOMOCHAIN -> assertEquals("0xC74b6D8897cBa9A4b659d43fEF73C9cA852cE424", address)
5858
TRON -> assertEquals("TQ5NMqJjhpQGK7YJbESKtNCo86PJ89ujio", address)
5959
VECHAIN -> assertEquals("0x1a553275dF34195eAf23942CB7328AcF9d48c160", 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
@@ -21,7 +21,7 @@ class TestCoinType {
2121
assertEquals(CoinType.LITECOIN.value(), 2)
2222
assertEquals(CoinType.TRON.value(), 195)
2323
assertEquals(CoinType.ETHEREUM.value(), 60)
24-
assertEquals(CoinType.THUNDERTOKEN.value(), 1001)
24+
assertEquals(CoinType.THUNDERCORE.value(), 1001)
2525
assertEquals(CoinType.WANCHAIN.value(), 5718350)
2626
assertEquals(CoinType.CALLISTO.value(), 820)
2727
assertEquals(CoinType.ETHEREUMCLASSIC.value(), 61)

docs/registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This list is generated from [./registry.json](../registry.json)
6464
| 931 | THORChain | RUNE | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/thorchain/info/logo.png" width="32" /> | <https://thorchain.org> |
6565
| 966 | Polygon | MATIC | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/polygon/info/logo.png" width="32" /> | <https://polygon.technology> |
6666
| 996 | OKX Chain | OKT | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/okc/info/logo.png" width="32" /> | <https://www.okx.com/okc> |
67-
| 1001 | Thunder Token | TT | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/thundertoken/info/logo.png" width="32" /> | <https://thundercore.com> |
67+
| 1001 | ThunderCore | TT | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/thundertoken/info/logo.png" width="32" /> | <https://thundercore.com> |
6868
| 1023 | Harmony | ONE | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/harmony/info/logo.png" width="32" /> | <https://harmony.one> |
6969
| 1024 | Ontology | ONT | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ontology/info/logo.png" width="32" /> | <https://ont.io> |
7070
| 1729 | Tezos | XTZ | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/tezos/info/logo.png" width="32" /> | <https://tezos.com> |

include/TrustWalletCore/TWCoinType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ enum TWCoinType {
6868
TWCoinTypeStellar = 148,
6969
TWCoinTypeTezos = 1729,
7070
TWCoinTypeTheta = 500,
71-
TWCoinTypeThunderToken = 1001,
71+
TWCoinTypeThunderCore = 1001,
7272
TWCoinTypeNEO = 888,
7373
TWCoinTypeTomoChain = 889,
7474
TWCoinTypeTron = 195,

registry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@
15741574
},
15751575
{
15761576
"id": "thundertoken",
1577-
"name": "Thunder Token",
1577+
"name": "ThunderCore",
15781578
"coinId": 1001,
15791579
"symbol": "TT",
15801580
"decimals": 18,

swift/Tests/Blockchains/RippleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class RippleTests: XCTestCase {
5555
$0.lastLedgerSequence = 32268269
5656
$0.account = "rfxdLwsZnoespnTDDb1Xhvbc8EFNdztaoq"
5757
$0.privateKey = Data(hexString: "a5576c0f63da10e584568c8d134569ff44017b0a249eb70657127ae04f38cc77")!
58-
$0.opPayment = operation
58+
$0.opPayment = operation2
5959
}
6060
let output2: RippleSigningOutput = AnySigner.sign(input: input2, coin: .xrp)
6161
XCTAssertEqual(output2.encoded, output.encoded)

swift/Tests/CoinAddressDerivationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class CoinAddressDerivationTests: XCTestCase {
190190
case .theta:
191191
let expectedResult = "0x0d1fa20c218Fec2f2C55d52aB267940485fa5DA4"
192192
assertCoinDerivation(coin, expectedResult, derivedAddress, address)
193-
case .thunderToken:
193+
case .thunderCore:
194194
let expectedResult = "0x4b92b3ED6d8b24575Bf5ce4C6a86ED261DA0C8d7"
195195
assertCoinDerivation(coin, expectedResult, derivedAddress, address)
196196
case .tomoChain:

swift/Tests/CoinTypeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CoinTypeTests: XCTestCase {
1414
XCTAssertEqual(CoinType.litecoin.rawValue, 2)
1515
XCTAssertEqual(CoinType.tron.rawValue, 195)
1616
XCTAssertEqual(CoinType.ethereum.rawValue, 60)
17-
XCTAssertEqual(CoinType.thunderToken.rawValue, 1001)
17+
XCTAssertEqual(CoinType.thunderCore.rawValue, 1001)
1818
XCTAssertEqual(CoinType.wanchain.rawValue, 5718350)
1919
XCTAssertEqual(CoinType.callisto.rawValue, 820)
2020
XCTAssertEqual(CoinType.ethereumClassic.rawValue, 61)

tests/chains/ThunderToken/TWCoinTypeTests.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414

1515

1616
TEST(TWThunderTokenCoinType, TWCoinType) {
17-
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeThunderToken));
17+
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeThunderCore));
1818
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("t123"));
19-
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeThunderToken, txId.get()));
19+
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeThunderCore, txId.get()));
2020
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("a12"));
21-
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeThunderToken, accId.get()));
22-
auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeThunderToken));
23-
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeThunderToken));
21+
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeThunderCore, accId.get()));
22+
auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeThunderCore));
23+
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeThunderCore));
2424

25-
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeThunderToken), 18);
26-
ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeThunderToken));
27-
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeThunderToken));
28-
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeThunderToken));
25+
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeThunderCore), 18);
26+
ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeThunderCore));
27+
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeThunderCore));
28+
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeThunderCore));
2929
assertStringsEqual(symbol, "TT");
3030
assertStringsEqual(txUrl, "https://scan.thundercore.com/transactions/t123");
3131
assertStringsEqual(accUrl, "https://scan.thundercore.com/address/a12");
3232
assertStringsEqual(id, "thundertoken");
33-
assertStringsEqual(name, "Thunder Token");
33+
assertStringsEqual(name, "ThunderCore");
3434
}

tests/common/CoinAddressDerivationTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ TEST(Coin, DeriveAddress) {
6565
case TWCoinTypeSmartChain:
6666
case TWCoinTypeSmartChainLegacy:
6767
case TWCoinTypeTheta:
68-
case TWCoinTypeThunderToken:
68+
case TWCoinTypeThunderCore:
6969
case TWCoinTypeTomoChain:
7070
case TWCoinTypeVeChain:
7171
case TWCoinTypeWanchain:

0 commit comments

Comments
 (0)