diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap index 09e1f12870..54788960a1 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap @@ -20,32 +20,6 @@ exports[`Block Details > renders the Block Details component 1`] = `
-
- - - - - - block hash -
- -
- bd5c99bb720b03500e89f103fe66113ba62f2e124ed9651563f38fd15977719f -
@@ -113,6 +87,32 @@ exports[`Block Details > renders the Block Details component 1`] = ` +
+ + + + + + hash +
+ +
+ bd5c99bb720b03500e89f103fe66113ba62f2e124ed9651563f38fd15977719f +
diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap index 92abd70838..c73c104843 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap @@ -42,7 +42,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo - # Block + Block diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap index 8dd268eb75..042b482541 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlocksList.spec.js.snap @@ -23,7 +23,7 @@ exports[`Blocks List > renders the Blocks List component 1`] = ` - # block + block
should render the \`BlocksTable\` component 1`] = ` - # Block + Block diff --git a/explorer/src/lib/components/__tests__/__snapshots__/TransactionsCard.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/TransactionsCard.spec.js.snap index c514b93dbd..6ff06f3b07 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/TransactionsCard.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/TransactionsCard.spec.js.snap @@ -79,7 +79,7 @@ exports[`Transactions Card > should disable the \`Show More\` button if there is - Hash + ID @@ -127,7 +127,7 @@ exports[`Transactions Card > should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e" > - 904ad41723...1b50b2dc54 + 070280c695...94efca2a0e should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00" > - 6971e17e16...d38530d800 + 534f753d5a...5153259c00 should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102" > - c28cfe813e...bbca988fed + c6f13af20c...fc68ebb102 should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04" > - e4a232262c...4db4b3cdec + 31c7dce26a...bf7bcb4c04 should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d" > - ea1cfc01b6...ce792d0e8a + 4fa6e913c0...9e4dd5510d should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04" > - e4c3e5f688...50ebdcbff4 + d1a7928a43...79ccdb2e04 should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06" > - 10cd59c725...eed7adc1f8 + 004ca8683c...cff9718b06 should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05" > - 31bcdcbf06...347aac19f3 + b5a77063e4...4496253a05 should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b" > - deb6807ba2...ecf6f1b837 + b263d9d594...9d80b06e0b should disable the \`Show More\` button if there is class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709" > - 62fbd83edb...1b54a5ad89 + b4525cb82f...f5275d7709 renders the Transactions List component 1`] = ` - Hash + ID
should render the \`TransactionsTable\` component - Hash + ID @@ -64,7 +64,7 @@ exports[`Transactions Table > should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e" > - 904ad41723...1b50b2dc54 + 070280c695...94efca2a0e should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00" > - 6971e17e16...d38530d800 + 534f753d5a...5153259c00 should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102" > - c28cfe813e...bbca988fed + c6f13af20c...fc68ebb102 should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04" > - e4a232262c...4db4b3cdec + 31c7dce26a...bf7bcb4c04 should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d" > - ea1cfc01b6...ce792d0e8a + 4fa6e913c0...9e4dd5510d should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04" > - e4c3e5f688...50ebdcbff4 + d1a7928a43...79ccdb2e04 should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06" > - 10cd59c725...eed7adc1f8 + 004ca8683c...cff9718b06 should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05" > - 31bcdcbf06...347aac19f3 + b5a77063e4...4496253a05 should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b" > - deb6807ba2...ecf6f1b837 + b263d9d594...9d80b06e0b should render the \`TransactionsTable\` component class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709" > - 62fbd83edb...1b54a5ad89 + b4525cb82f...f5275d7709
- - - block hash - {middleEllipsis( - data.header.hash, - calculateAdaptiveCharCount(screenWidth, 320, 1920, 14, 66) - )} - - + + + hash + {middleEllipsis( + data.header.hash, + calculateAdaptiveCharCount(screenWidth, 320, 1920, 14, 66) + )} + + timestamp diff --git a/explorer/src/lib/components/blocks-list/BlocksList.svelte b/explorer/src/lib/components/blocks-list/BlocksList.svelte index d6e9ebd92e..b854e71167 100644 --- a/explorer/src/lib/components/blocks-list/BlocksList.svelte +++ b/explorer/src/lib/components/blocks-list/BlocksList.svelte @@ -19,7 +19,7 @@ - # block + block - # Block + Block Fee Txn(s) Rewards diff --git a/explorer/src/lib/components/transactions-list/TransactionsList.svelte b/explorer/src/lib/components/transactions-list/TransactionsList.svelte index fc7355cd6d..5be7b7ee3e 100644 --- a/explorer/src/lib/components/transactions-list/TransactionsList.svelte +++ b/explorer/src/lib/components/transactions-list/TransactionsList.svelte @@ -38,7 +38,7 @@ - Hash + ID - Hash + ID Gas Fee Status @@ -49,10 +49,7 @@ {middleEllipsis( - transaction.blockhash, - HASH_CHARS_LENGTH - )}{middleEllipsis(transaction.txid, HASH_CHARS_LENGTH)} {getRelativeTimeString(transaction.date, "long")} should render the home page, start polling for the latest c - # Block + Block @@ -3142,7 +3142,7 @@ exports[`home page > should render the home page, start polling for the latest c - Hash + ID @@ -3190,7 +3190,7 @@ exports[`home page > should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=64cbef4738ccd709451ca5558b15ca3202b6d8147df6777debc4f6a8a4bc7d03" > - 86c094e883...552d07019f + 64cbef4738...a8a4bc7d03 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=1f6d99ea97565460469c6802b39af9bf0f94f457e97a3fc3eb41546d29b86804" > - 37e93b1a76...088bba3726 + 1f6d99ea97...6d29b86804 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=3ee81c6375f1ab41272e4c9f8dfb7950483c3bbfadf44658df735a18bde67c04" > - b1261a1c5f...74bfdef427 + 3ee81c6375...18bde67c04 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=3a75b42910a41d1f9a2639b09d95467fc076709a2f1553d6294ae15d6944e60e" > - 7f1d3731cc...494b695611 + 3a75b42910...5d6944e60e should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e" > - 904ad41723...1b50b2dc54 + 070280c695...94efca2a0e should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00" > - 6971e17e16...d38530d800 + 534f753d5a...5153259c00 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102" > - c28cfe813e...bbca988fed + c6f13af20c...fc68ebb102 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04" > - e4a232262c...4db4b3cdec + 31c7dce26a...bf7bcb4c04 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d" > - ea1cfc01b6...ce792d0e8a + 4fa6e913c0...9e4dd5510d should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04" > - e4c3e5f688...50ebdcbff4 + d1a7928a43...79ccdb2e04 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06" > - 10cd59c725...eed7adc1f8 + 004ca8683c...cff9718b06 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05" > - 31bcdcbf06...347aac19f3 + b5a77063e4...4496253a05 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b" > - deb6807ba2...ecf6f1b837 + b263d9d594...9d80b06e0b should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709" > - 62fbd83edb...1b54a5ad89 + b4525cb82f...f5275d7709 should render the home page, start polling for the latest c class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=40fb9d20eb9e6ffb27be4914f49cdf8059e2fdcc88a7b17f9499ff516584df08" > - f76d5ee9b8...2a82c1aa9c + 40fb9d20eb...516584df08 should render the Blocks page, start polling for blocks a - # Block + Block diff --git a/explorer/src/routes/blocks/block/__tests__/__snapshots__/page.spec.js.snap b/explorer/src/routes/blocks/block/__tests__/__snapshots__/page.spec.js.snap index 94b8b55bdf..e6f304e26f 100644 --- a/explorer/src/routes/blocks/block/__tests__/__snapshots__/page.spec.js.snap +++ b/explorer/src/routes/blocks/block/__tests__/__snapshots__/page.spec.js.snap @@ -93,32 +93,6 @@ exports[`Block Details > should render the Block Details page and query the nece
-
- - - - - - block hash -
- -
- bd5c99bb720b03500e89f103fe66113ba62f2e124ed9651563f38fd15977719f -
@@ -186,6 +160,32 @@ exports[`Block Details > should render the Block Details page and query the nece
+
+ + + + + + hash +
+ +
+ bd5c99bb720b03500e89f103fe66113ba62f2e124ed9651563f38fd15977719f +
@@ -461,7 +461,7 @@ exports[`Block Details > should render the Block Details page and query the nece - Hash + ID @@ -509,7 +509,7 @@ exports[`Block Details > should render the Block Details page and query the nece class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=3a3f6f90a1012ae751b4448bcb8e98def0ba2b18170239bd69fcf8e2e37f0602" > - bd5c99bb72...d15977719f + 3a3f6f90a1...e2e37f0602 should render the Block Details page and query the nece class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=07bfabea1d94c16f2dc3697fa642f6cecea6e81bf76b9644efbb6e2723b76d00" > - bd5c99bb72...d15977719f + 07bfabea1d...2723b76d00 should render the Transactions page, start polling - Hash + ID @@ -137,7 +137,7 @@ exports[`Transactions page > should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e" > - 904ad41723...1b50b2dc54 + 070280c695...94efca2a0e should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00" > - 6971e17e16...d38530d800 + 534f753d5a...5153259c00 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102" > - c28cfe813e...bbca988fed + c6f13af20c...fc68ebb102 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04" > - e4a232262c...4db4b3cdec + 31c7dce26a...bf7bcb4c04 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d" > - ea1cfc01b6...ce792d0e8a + 4fa6e913c0...9e4dd5510d should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04" > - e4c3e5f688...50ebdcbff4 + d1a7928a43...79ccdb2e04 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06" > - 10cd59c725...eed7adc1f8 + 004ca8683c...cff9718b06 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05" > - 31bcdcbf06...347aac19f3 + b5a77063e4...4496253a05 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b" > - deb6807ba2...ecf6f1b837 + b263d9d594...9d80b06e0b should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709" > - 62fbd83edb...1b54a5ad89 + b4525cb82f...f5275d7709 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=40fb9d20eb9e6ffb27be4914f49cdf8059e2fdcc88a7b17f9499ff516584df08" > - f76d5ee9b8...2a82c1aa9c + 40fb9d20eb...516584df08 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=b5ad0ec014ac415dc8ea214f9baf555728126558afc8e142f8223504f807910b" > - 3c48e11411...22a78a0fd7 + b5ad0ec014...04f807910b should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=56504a6d6236fbd64671d86e6f60f20fc3e1ce09f7ee9ebc13b593ba14520c00" > - c5908eb686...8deece6755 + 56504a6d62...ba14520c00 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=d65e4ebe379d0d67142e80b377b41eaa35fa7d6e9acd3e034e6d63d5026ea001" > - 8bdc2bd0bb...be39650b45 + d65e4ebe37...d5026ea001 should render the Transactions page, start polling class="dusk-anchor dusk-anchor--on-surface transaction__link" href="/some-base-path/transactions/transaction?id=6c0ac7828bd57ddf18834505b0cd64f7db91ed6504dd7224a3094e10b1febf06" > - 36a09d923c...8c6663fbd7 + 6c0ac7828b...10b1febf06