Skip to content

Commit

Permalink
[Misc]: Update block explorer for Nano chain
Browse files Browse the repository at this point in the history
* Fix C++ tests
  • Loading branch information
satoshiotomakan committed Dec 18, 2024
1 parent 54188f4 commit cdb2064
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@
"publicKeyType": "ed25519Blake2b",
"url": "https://nano.org",
"explorer": {
"url": "https://www.nanolooker.com",
"url": "https://nanexplorer.com/nano",
"txPath": "/block/",
"accountPath": "/account/",
"sampleTx": "C264DB7BF40738F0CEFF19B606746CB925B713E4B8699A055699E0DC8ABBC70F",
Expand Down
2 changes: 1 addition & 1 deletion tests/chains/Algorand/SignerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ TEST(AlgorandSigner, Sign) {
}

TEST(AlgorandSigner, SignAssetNFTTransfer) {
// Successfully broadcasted: https://app.dappflow.org/explorer/transaction/FFLUH4QKZHG744RIQ2AZNWZUSIIH262KZ4MEWSY4RXMWN5NMOOJA
// Successfully broadcasted: https://allo.info/tx/FFLUH4QKZHG744RIQ2AZNWZUSIIH262KZ4MEWSY4RXMWN5NMOOJA
auto key = PrivateKey(parse_hex("dc6051ffc7b3ec601bde432f6dea34d40fe3855e4181afa0f0524c42194a6da7"));
auto publicKey = key.getPublicKey(TWPublicKeyTypeED25519);
auto from = Address(publicKey);
Expand Down
2 changes: 1 addition & 1 deletion tests/chains/Algorand/TWAnySignerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using namespace TW;
namespace TW::Algorand::tests {

TEST(TWAnySignerAlgorand, SignAssetNFTTransfer) {
// Successfully broadcasted: https://app.dappflow.org/explorer/transaction/FFLUH4QKZHG744RIQ2AZNWZUSIIH262KZ4MEWSY4RXMWN5NMOOJA
// Successfully broadcasted: https://allo.info/tx/FFLUH4QKZHG744RIQ2AZNWZUSIIH262KZ4MEWSY4RXMWN5NMOOJA
auto privateKey = parse_hex("dc6051ffc7b3ec601bde432f6dea34d40fe3855e4181afa0f0524c42194a6da7");
Data note = Base64::decode("VFdUIFRPIFRIRSBNT09O");
auto genesisHash = Base64::decode("wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=");
Expand Down
4 changes: 2 additions & 2 deletions tests/chains/Algorand/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ TEST(TWAlgorandCoinType, TWCoinType) {
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeAlgorand));
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeAlgorand));
assertStringsEqual(symbol, "ALGO");
assertStringsEqual(txUrl, "https://app.dappflow.org/explorer/transaction/CR7POXFTYDLC7TV3IXHA7AZKWABUJC52BACLHJQNXAKZJGRPQY3A");
assertStringsEqual(accUrl, "https://app.dappflow.org/explorer/account/J4AEINCSSLDA7LNBNWM4ZXFCTLTOZT5LG3F5BLMFPJYGFWVCMU37EZI2AM");
assertStringsEqual(txUrl, "https://allo.info/tx/CR7POXFTYDLC7TV3IXHA7AZKWABUJC52BACLHJQNXAKZJGRPQY3A");
assertStringsEqual(accUrl, "https://allo.info/account/J4AEINCSSLDA7LNBNWM4ZXFCTLTOZT5LG3F5BLMFPJYGFWVCMU37EZI2AM");
assertStringsEqual(id, "algorand");
assertStringsEqual(name, "Algorand");
}
4 changes: 2 additions & 2 deletions tests/chains/Boba/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ TEST(TWBobaCoinType, TWCoinType) {
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeBoba));
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeBoba));
assertStringsEqual(symbol, "BOBAETH");
assertStringsEqual(txUrl, "https://blockexplorer.boba.network/tx/0x31533707c3feb3b10f7deeea387ff8893f229253e65ca6b14d2400bf95b5d103");
assertStringsEqual(accUrl, "https://blockexplorer.boba.network/address/0x4F96F50eDB37a19216d87693E5dB241e31bD3735");
assertStringsEqual(txUrl, "https://eth.bobascan.com/tx/0x31533707c3feb3b10f7deeea387ff8893f229253e65ca6b14d2400bf95b5d103");
assertStringsEqual(accUrl, "https://eth.bobascan.com/address/0x4F96F50eDB37a19216d87693E5dB241e31bD3735");
assertStringsEqual(id, "boba");
assertStringsEqual(name, "Boba");
}
4 changes: 2 additions & 2 deletions tests/chains/Nano/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ TEST(TWNanoCoinType, TWCoinType) {
ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeNano));
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeNano));
assertStringsEqual(symbol, "XNO");
assertStringsEqual(txUrl, "https://www.nanolooker.com/block/C264DB7BF40738F0CEFF19B606746CB925B713E4B8699A055699E0DC8ABBC70F");
assertStringsEqual(accUrl, "https://www.nanolooker.com/account/nano_1wpj616kwhe1y38y1mspd8aub8i334cwybqco511iyuxm55zx8d67ptf1tsf");
assertStringsEqual(txUrl, "https://nanexplorer.com/nano/block/C264DB7BF40738F0CEFF19B606746CB925B713E4B8699A055699E0DC8ABBC70F");
assertStringsEqual(accUrl, "https://nanexplorer.com/nano/account/nano_1wpj616kwhe1y38y1mspd8aub8i334cwybqco511iyuxm55zx8d67ptf1tsf");
assertStringsEqual(id, "nano");
assertStringsEqual(name, "Nano");
}

0 comments on commit cdb2064

Please sign in to comment.