Skip to content

Commit b344130

Browse files
[Explorer]: Update blockchain explorers for Bitcoin and Nano (trustwallet#3656)
* [Nano]: Update block explorer for Nano * [Bitcoin]: Update block explorer * [Nano]: Fix `txPath` and `accountPath` * [KMP]: Fix KMP CI * [NEAR]: Update blockchain explorer * [Misc]: Add a Python script to validate `registry.json` * Fix sampleTx and Explorer URL for `BandChain`, `Oasis`, `OKXChain`, `Stellar`
1 parent 330fe3a commit b344130

File tree

11 files changed

+81
-35
lines changed

11 files changed

+81
-35
lines changed

registry.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"publicKeyHasher": "sha256ripemd",
3535
"base58Hasher": "sha256d",
3636
"explorer": {
37-
"url": "https://blockchair.com",
38-
"txPath": "/bitcoin/transaction/",
39-
"accountPath": "/bitcoin/address/",
37+
"url": "https://mempool.space",
38+
"txPath": "/tx/",
39+
"accountPath": "/address/",
4040
"sampleTx": "0607f62530b68cfcc91c57a1702841dd399a899d0eecda8e31ecca3f52f01df2",
4141
"sampleAccount": "17A16QmavnUfCW11DAApiJxp7ARnxN5pGX"
4242
},
@@ -1498,7 +1498,7 @@
14981498
"url": "https://blockchair.com/stellar",
14991499
"txPath": "/transaction/",
15001500
"accountPath": "/account/",
1501-
"sampleTx": "d9aeabfa9d24df8c5755125f8af243b74cd3ff878656cfa72c566a8824bf6e84",
1501+
"sampleTx": "8a7ff7261e8b3f31af7f6ed257c2e9fe7c47afcd9b1ce1be1bfc1bc5f6a3ad9e",
15021502
"sampleAccount": "GCILJZQ3CKBKBUJWW4TAM6Q37LJA5MQX6GMSFSQN75BPLWIZ33OPRG52"
15031503
},
15041504
"info": {
@@ -1559,9 +1559,9 @@
15591559
"publicKeyType": "ed25519Blake2b",
15601560
"url": "https://nano.org",
15611561
"explorer": {
1562-
"url": "https://nanocrawler.cc",
1563-
"txPath": "/explorer/block/",
1564-
"accountPath": "/explorer/account/",
1562+
"url": "https://www.nanolooker.com",
1563+
"txPath": "/block/",
1564+
"accountPath": "/account/",
15651565
"sampleTx": "C264DB7BF40738F0CEFF19B606746CB925B713E4B8699A055699E0DC8ABBC70F",
15661566
"sampleAccount": "nano_1wpj616kwhe1y38y1mspd8aub8i334cwybqco511iyuxm55zx8d67ptf1tsf"
15671567
},
@@ -2034,9 +2034,9 @@
20342034
"curve": "ed25519",
20352035
"publicKeyType": "ed25519",
20362036
"explorer": {
2037-
"url": "https://explorer.near.org",
2038-
"txPath": "/transactions/",
2039-
"accountPath": "/accounts/",
2037+
"url": "https://nearblocks.io",
2038+
"txPath": "/txns/",
2039+
"accountPath": "/address/",
20402040
"sampleTx": "FPQAMaVnvFHNwNBJWnTttXfdJhp5FvMGGDJEesB8gvbL",
20412041
"sampleAccount": "test-trust.vlad.near"
20422042
},
@@ -2297,11 +2297,11 @@
22972297
"hrp": "band",
22982298
"addressHasher": "sha256ripemd",
22992299
"explorer": {
2300-
"url": "https://scan-wenchang-testnet2.bandchain.org/",
2300+
"url": "https://www.mintscan.io/band",
23012301
"txPath": "/tx/",
23022302
"accountPath": "/account/",
2303-
"sampleTx": "473264551D3063A9EC64EC251C61BE92DDDFCF6CC46D026D1E574D83D5447173",
2304-
"sampleAccount": "band12nmsm9khdsv0tywge43q3zwj8kkj3hvup9rltp"
2303+
"sampleTx": "74AF38C2183B06EB6274DA4AAC0D2334E6E283643D436852F5E088AEA2CD0B17",
2304+
"sampleAccount": "band16gpgu994g2gdrzvwp9047le3pcq9wz6mcgtd4w"
23052305
},
23062306
"info": {
23072307
"url": "https://bandprotocol.com/",
@@ -2713,7 +2713,7 @@
27132713
"url": "https://oasisscan.com",
27142714
"txPath": "/transactions/",
27152715
"accountPath": "/accounts/detail/",
2716-
"sampleTx": "0b9bd4983f1c88a1c71bf33562b6ba02b3064e01697d15a0de4bfe1922ec74b8",
2716+
"sampleTx": "73dc977fdd8596d4a57e6feb891b21f5da3652d26815dc94f15f7420c298e29e",
27172717
"sampleAccount": "oasis1qrx376dmwuckmruzn9vq64n49clw72lywctvxdf4"
27182718
},
27192719
"info": {
@@ -4130,7 +4130,7 @@
41304130
"publicKeyType": "secp256k1Extended",
41314131
"addressHasher": "keccak256",
41324132
"explorer": {
4133-
"url": "https://www.oklink.com/en/okc",
4133+
"url": "https://www.oklink.com/oktc",
41344134
"txPath": "/tx/",
41354135
"accountPath": "/address/",
41364136
"sampleTx": "0x46C3A947E8248570FBD28E4FE456CC8F80DFD90716533878FB67857B95FA3D37",

samples/kmp/shared/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ kotlin {
3535
sourceSets {
3636
val commonMain by getting {
3737
dependencies {
38-
implementation("com.trustwallet:wallet-core-kotlin:4.0.14")
38+
implementation("com.trustwallet:wallet-core-kotlin:4.0.16")
3939
}
4040
}
4141
val commonTest by getting {

tests/chains/Bitcoin/TWCoinTypeTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ TEST(TWBitcoinCoinType, TWCoinType) {
2727
ASSERT_EQ(0x5, TWCoinTypeP2shPrefix(TWCoinTypeBitcoin));
2828
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeBitcoin));
2929
assertStringsEqual(symbol, "BTC");
30-
assertStringsEqual(txUrl, "https://blockchair.com/bitcoin/transaction/0607f62530b68cfcc91c57a1702841dd399a899d0eecda8e31ecca3f52f01df2");
31-
assertStringsEqual(accUrl, "https://blockchair.com/bitcoin/address/17A16QmavnUfCW11DAApiJxp7ARnxN5pGX");
30+
assertStringsEqual(txUrl, "https://mempool.space/tx/0607f62530b68cfcc91c57a1702841dd399a899d0eecda8e31ecca3f52f01df2");
31+
assertStringsEqual(accUrl, "https://mempool.space/address/17A16QmavnUfCW11DAApiJxp7ARnxN5pGX");
3232
assertStringsEqual(id, "bitcoin");
3333
assertStringsEqual(name, "Bitcoin");
3434
}

tests/chains/Cosmos/BandChain/TWCoinTypeTests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
TEST(TWBandChainCoinType, TWCoinType) {
1717
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeBandChain));
18-
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("473264551D3063A9EC64EC251C61BE92DDDFCF6CC46D026D1E574D83D5447173"));
18+
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("74AF38C2183B06EB6274DA4AAC0D2334E6E283643D436852F5E088AEA2CD0B17"));
1919
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeBandChain, txId.get()));
20-
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("band12nmsm9khdsv0tywge43q3zwj8kkj3hvup9rltp"));
20+
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("band16gpgu994g2gdrzvwp9047le3pcq9wz6mcgtd4w"));
2121
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeBandChain, accId.get()));
2222
auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeBandChain));
2323
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeBandChain));
@@ -27,8 +27,8 @@ TEST(TWBandChainCoinType, TWCoinType) {
2727
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeBandChain));
2828
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeBandChain));
2929
assertStringsEqual(symbol, "BAND");
30-
assertStringsEqual(txUrl, "https://scan-wenchang-testnet2.bandchain.org//tx/473264551D3063A9EC64EC251C61BE92DDDFCF6CC46D026D1E574D83D5447173");
31-
assertStringsEqual(accUrl, "https://scan-wenchang-testnet2.bandchain.org//account/band12nmsm9khdsv0tywge43q3zwj8kkj3hvup9rltp");
30+
assertStringsEqual(txUrl, "https://www.mintscan.io/band/tx/74AF38C2183B06EB6274DA4AAC0D2334E6E283643D436852F5E088AEA2CD0B17");
31+
assertStringsEqual(accUrl, "https://www.mintscan.io/band/account/band16gpgu994g2gdrzvwp9047le3pcq9wz6mcgtd4w");
3232
assertStringsEqual(id, "band");
3333
assertStringsEqual(name, "BandChain");
3434
}

tests/chains/NEAR/TWAnySignerTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ TEST(TWAnySignerNEAR, SignStakeMainnetReplication) {
9494
Proto::SigningOutput output;
9595
ANY_SIGN(input, TWCoinTypeNEAR);
9696

97-
// https://explorer.near.org/transactions/kd7ajFw1CfXB8LiJXvhz5NDS7QpQXkuQraAbhb5MMMq
97+
// https://nearblocks.io/txns/kd7ajFw1CfXB8LiJXvhz5NDS7QpQXkuQraAbhb5MMMq
9898
ASSERT_EQ(Base58::encode(data(output.hash())), "kd7ajFw1CfXB8LiJXvhz5NDS7QpQXkuQraAbhb5MMMq");
9999
ASSERT_EQ(Base64::encode(data(output.signed_transaction())), "QAAAAGI4ZDVkZjI1MDQ3ODQxMzY1MDA4ZjMwZmI2YjMwZGQ4MjBlOWE4NGQ4NjlmMDU2MjNkMTE0ZTk2ODMxZjJmYmYAzgCT6NK76nb1mB7pToefgkGUHfUe5BKvvr3gW/nq+MgEuu1Mq0YAABEAAABhdmFkby5wb29sdjEubmVhcueGgJlhJ7eg8/I0NQLkQvJDZsul95y3L4vG0N67Js4kAQAAAAIRAAAAZGVwb3NpdF9hbmRfc3Rha2UCAAAAe30A0JjUr3EAAAAAgPZK4ccCLRUAAAAAAAAALNrorr8qTL6u1nlxLpuPa45nFdYmjU96i7CmJP08mVHVzHUaw/bGN30Z3u3o1F2o2yefCBNqO9Ogn9fM25NGCg==");
100100
}
@@ -122,7 +122,7 @@ TEST(TWAnySignerNEAR, SignUnstakeMainnetReplication) {
122122
Proto::SigningOutput output;
123123
ANY_SIGN(input, TWCoinTypeNEAR);
124124

125-
// https://explorer.near.org/transactions/DH6QAX3TkY6XtkteorvKBoGT5hA5ADkURZdzrbbKRs8P
125+
// https://nearblocks.io/txns/DH6QAX3TkY6XtkteorvKBoGT5hA5ADkURZdzrbbKRs8P
126126
ASSERT_EQ(Base58::encode(data(output.hash())), "DH6QAX3TkY6XtkteorvKBoGT5hA5ADkURZdzrbbKRs8P");
127127
ASSERT_EQ(Base64::encode(data(output.signed_transaction())), "QAAAAGI4ZDVkZjI1MDQ3ODQxMzY1MDA4ZjMwZmI2YjMwZGQ4MjBlOWE4NGQ4NjlmMDU2MjNkMTE0ZTk2ODMxZjJmYmYAzgCT6NK76nb1mB7pToefgkGUHfUe5BKvvr3gW/nq+MgGuu1Mq0YAABEAAABhdmFkby5wb29sdjEubmVhcq0YnhRlt+TTtagkoy0qKn56zAfGhE+jkTJW6PR5k5r8AQAAAAILAAAAdW5zdGFrZV9hbGwCAAAAe30A0JjUr3EAAAAAAAAAAAAAAAAAAAAAAAAABaFP0EkfJU3VQZ4QAiTwq9ebWDJ7jx7TxbA+VGH4hwKX3gWnmDHVve+LK7/UbbffjF/y8vn0KrPxdh3ONAG0Ag==");
128128
}
@@ -131,7 +131,7 @@ TEST(TWAnySignerNEAR, SignUnstakeMainnetReplication) {
131131
/// https://nomicon.io/Standards/Tokens/FungibleToken/Core
132132
///
133133
/// Successfully broadcasted tx:
134-
/// https://explorer.near.org/transactions/ABQY6nfLdNrRVynHYNjYkfUM6Up5pDHHpuhRJe6FCMRu
134+
/// https://nearblocks.io/txns/ABQY6nfLdNrRVynHYNjYkfUM6Up5pDHHpuhRJe6FCMRu
135135
TEST(TWAnySignerNEAR, SignTokenTransfer) {
136136
auto privateKey = parse_hex("77006e227658c18da47546413926a26b839204b1b19e807c4a13d994d661c72e");
137137

tests/chains/NEAR/TWCoinTypeTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ TEST(TWNEARCoinType, TWCoinType) {
2727
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeNEAR));
2828
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeNEAR));
2929
assertStringsEqual(symbol, "NEAR");
30-
assertStringsEqual(txUrl, "https://explorer.near.org/transactions/FPQAMaVnvFHNwNBJWnTttXfdJhp5FvMGGDJEesB8gvbL");
31-
assertStringsEqual(accUrl, "https://explorer.near.org/accounts/test-trust.vlad.near");
30+
assertStringsEqual(txUrl, "https://nearblocks.io/txns/FPQAMaVnvFHNwNBJWnTttXfdJhp5FvMGGDJEesB8gvbL");
31+
assertStringsEqual(accUrl, "https://nearblocks.io/address/test-trust.vlad.near");
3232
assertStringsEqual(id, "near");
3333
assertStringsEqual(name, "NEAR");
3434
}

tests/chains/Nano/TWCoinTypeTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ TEST(TWNanoCoinType, TWCoinType) {
2727
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeNano));
2828
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeNano));
2929
assertStringsEqual(symbol, "XNO");
30-
assertStringsEqual(txUrl, "https://nanocrawler.cc/explorer/block/C264DB7BF40738F0CEFF19B606746CB925B713E4B8699A055699E0DC8ABBC70F");
31-
assertStringsEqual(accUrl, "https://nanocrawler.cc/explorer/account/nano_1wpj616kwhe1y38y1mspd8aub8i334cwybqco511iyuxm55zx8d67ptf1tsf");
30+
assertStringsEqual(txUrl, "https://www.nanolooker.com/block/C264DB7BF40738F0CEFF19B606746CB925B713E4B8699A055699E0DC8ABBC70F");
31+
assertStringsEqual(accUrl, "https://www.nanolooker.com/account/nano_1wpj616kwhe1y38y1mspd8aub8i334cwybqco511iyuxm55zx8d67ptf1tsf");
3232
assertStringsEqual(id, "nano");
3333
assertStringsEqual(name, "Nano");
3434
}

tests/chains/OKXChain/TWCoinTypeTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ TEST(TWCoinTypeOKXChain, TWCoinType) {
2727
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeOKXChain));
2828
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeOKXChain));
2929
assertStringsEqual(symbol, "OKT");
30-
assertStringsEqual(txUrl, "https://www.oklink.com/en/okc/tx/0x46C3A947E8248570FBD28E4FE456CC8F80DFD90716533878FB67857B95FA3D37");
31-
assertStringsEqual(accUrl, "https://www.oklink.com/en/okc/address/0x074faafd0b20fad2efa115b8ed7e75993e580b85");
30+
assertStringsEqual(txUrl, "https://www.oklink.com/oktc/tx/0x46C3A947E8248570FBD28E4FE456CC8F80DFD90716533878FB67857B95FA3D37");
31+
assertStringsEqual(accUrl, "https://www.oklink.com/oktc/address/0x074faafd0b20fad2efa115b8ed7e75993e580b85");
3232
assertStringsEqual(id, "okc");
3333
assertStringsEqual(name, "OKX Chain");
3434
}

tests/chains/Oasis/TWCoinTypeTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
TEST(TWOasisCoinType, TWCoinType) {
1717
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeOasis));
18-
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0b9bd4983f1c88a1c71bf33562b6ba02b3064e01697d15a0de4bfe1922ec74b8"));
18+
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("73dc977fdd8596d4a57e6feb891b21f5da3652d26815dc94f15f7420c298e29e"));
1919
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeOasis, txId.get()));
2020
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("oasis1qrx376dmwuckmruzn9vq64n49clw72lywctvxdf4"));
2121
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeOasis, accId.get()));
@@ -27,7 +27,7 @@ TEST(TWOasisCoinType, TWCoinType) {
2727
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeOasis));
2828
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeOasis));
2929
assertStringsEqual(symbol, "ROSE");
30-
assertStringsEqual(txUrl, "https://oasisscan.com/transactions/0b9bd4983f1c88a1c71bf33562b6ba02b3064e01697d15a0de4bfe1922ec74b8");
30+
assertStringsEqual(txUrl, "https://oasisscan.com/transactions/73dc977fdd8596d4a57e6feb891b21f5da3652d26815dc94f15f7420c298e29e");
3131
assertStringsEqual(accUrl, "https://oasisscan.com/accounts/detail/oasis1qrx376dmwuckmruzn9vq64n49clw72lywctvxdf4");
3232
assertStringsEqual(id, "oasis");
3333
assertStringsEqual(name, "Oasis");

tests/chains/Stellar/TWCoinTypeTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
TEST(TWStellarCoinType, TWCoinType) {
1717
auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeStellar));
18-
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("d9aeabfa9d24df8c5755125f8af243b74cd3ff878656cfa72c566a8824bf6e84"));
18+
auto txId = WRAPS(TWStringCreateWithUTF8Bytes("8a7ff7261e8b3f31af7f6ed257c2e9fe7c47afcd9b1ce1be1bfc1bc5f6a3ad9e"));
1919
auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeStellar, txId.get()));
2020
auto accId = WRAPS(TWStringCreateWithUTF8Bytes("GCILJZQ3CKBKBUJWW4TAM6Q37LJA5MQX6GMSFSQN75BPLWIZ33OPRG52"));
2121
auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeStellar, accId.get()));
@@ -27,7 +27,7 @@ TEST(TWStellarCoinType, TWCoinType) {
2727
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeStellar));
2828
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeStellar));
2929
assertStringsEqual(symbol, "XLM");
30-
assertStringsEqual(txUrl, "https://blockchair.com/stellar/transaction/d9aeabfa9d24df8c5755125f8af243b74cd3ff878656cfa72c566a8824bf6e84");
30+
assertStringsEqual(txUrl, "https://blockchair.com/stellar/transaction/8a7ff7261e8b3f31af7f6ed257c2e9fe7c47afcd9b1ce1be1bfc1bc5f6a3ad9e");
3131
assertStringsEqual(accUrl, "https://blockchair.com/stellar/account/GCILJZQ3CKBKBUJWW4TAM6Q37LJA5MQX6GMSFSQN75BPLWIZ33OPRG52");
3232
assertStringsEqual(id, "stellar");
3333
assertStringsEqual(name, "Stellar");

0 commit comments

Comments
 (0)