Skip to content

Commit

Permalink
Merge pull request #2432 from dusk-network/feature-2418
Browse files Browse the repository at this point in the history
explorer: display value for average gas price in lux
  • Loading branch information
deuch13 authored Sep 19, 2024
2 parents 253ff91 + b5aff5c commit f632304
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 110 deletions.
15 changes: 9 additions & 6 deletions explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Show the error message for failed transactions [#2220]
- Add tooltip to current and pending stake showing the exact amount [#2363]
- Add `memo` and `isDeploy` fields in transactions [#2362]
- Add `txType` fields in transactions and display it [#2347]
- Add `json` payload to block detail [#2364]

### Changed

- Switch `raw` payload with `json` in transaction details [#2364]
- Change the displayed value for average gas price to lux [#2416]
- Change the blocks table header `FEE` to `GAS` and `AVG` to `AVG PRICE` and `TOTAL` to `USED` [#2416]

### Fixed

- Fix Transactions Fee is not properly computed [#2348]
- Fix shield icons used for tx type [#2389]

## [0.2.0] - 2024-08-26

Expand All @@ -26,24 +35,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add accessible name to the gas used progress bar [#2037]
- Add accessible name to the nav bar button on mobile [#2036]
- Implement warning for stale market data [#1892]
- Add tooltip to current and pending stake showing the exact amount [#2363]
- Add `memo` and `isDeploy` fields in transactions [#2362]
- Add `txType` fields in transactions and display it [#2347]
- Add `json` payload to block detail [#2364]

### Changed

- Update Statistics Panel separator lines color [#2039]
- Update Statistics Panel labels for clarity [#2034]
- Update font-display to swap for custom fonts to improve performance [#2025]
- Optimize auto re-renders of relative times [#2059]
- Switch `raw` payload with `json` in transaction details [#2364]

### Fixed

- Fix Average Fee Paid label [#2057]
- Fix list items alignment on mobile [#2056]
- Fix shield icons used for tx type [#2389]

## [0.1.0] - 2024-07-24

Expand Down
6 changes: 5 additions & 1 deletion explorer/src/lib/chain-info/__tests__/transformBlock.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ describe("transformBlock", () => {
txtype: "Phoenix",
},
],
stats: { averageGasPrice: 1, gasLimit: 5000000000, gasUsed: 580718 },
stats: {
averageGasPrice: 1,
gasLimit: 5000000000,
gasUsed: 580718,
},
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,7 @@ exports[`Block Details > it renders the Block Details component with the payload
<dd
class="details-list__definition"
>
0.000000001
DUSK
1
</dd>
<dt
class="details-list__term"
Expand Down Expand Up @@ -826,8 +825,7 @@ exports[`Block Details > renders the Block Details component 1`] = `
<dd
class="details-list__definition"
>
0.000000001
DUSK
1
</dd>
<dt
class="details-list__term"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<th
class="table__header-cell"
>
Fee (Dusk)
Gas
</th>
Expand Down Expand Up @@ -104,7 +104,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -113,7 +113,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -164,7 +164,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -173,7 +173,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -224,7 +224,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -233,7 +233,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -284,7 +284,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -293,7 +293,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -344,7 +344,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -353,7 +353,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -404,7 +404,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -413,7 +413,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -464,7 +464,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -473,7 +473,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -524,7 +524,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -533,7 +533,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -584,7 +584,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -593,7 +593,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down Expand Up @@ -644,7 +644,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-avg-label"
>
AVG:
AVG PRICE:
</b>
0
Expand All @@ -653,7 +653,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<b
class="block__fee-total-label"
>
TOTAL:
USED:
</b>
0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ exports[`Blocks List > renders the Blocks List component 1`] = `
<dd
class="details-list__definition details-list__definition--table"
>
0.000000001
DUSK
1
</dd>
<dt
Expand Down
Loading

0 comments on commit f632304

Please sign in to comment.