@rubanrubi/hardhat-dashboard 0.1.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,61 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@rubanrubi/hardhat-dashboard` are documented here.
4
+
5
+ ---
6
+
7
+ ## [0.2.2] — 2026-03-30
8
+
9
+ ### Fixed
10
+
11
+ - **Wallet badge alignment** — redesigned from a vertical column card to a single horizontal pill (`border-radius: 999px`) that sits flush with the WebSocket and Last update pills; items are now centre-aligned via `align-items: center` on the hero-meta row.
12
+ - **Session History count** — status strip now counts only signing and deployment events (`eth_sendTransaction`, `eth_sign*`, `personal_sign`) matching the Tx History panel filter, instead of all RPC calls.
13
+ - **Tx hash copy button** — confirmed deployment/transaction entries in Tx History now show a **Copy** button next to the truncated hash to copy the full hash to the clipboard.
14
+ - **Shared CopyButton component** — extracted clipboard copy logic into a reusable `CopyButton` component used by both the wallet badge and the Tx History hash row.
15
+
16
+ ---
17
+
18
+ ## [0.2.0] — 2026-03-29
19
+
20
+ ### Added
21
+
22
+ #### Network names
23
+ - Expanded chain ID → name mapping from 7 to 35+ EVM networks and testnets.
24
+ - Now covers: Ethereum, Sepolia, Goerli, Polygon Mainnet, **Polygon Amoy Testnet**, Polygon Mumbai, Polygon zkEVM, BNB Smart Chain, Avalanche C-Chain, Avalanche Fuji, Arbitrum One, Arbitrum Sepolia, Optimism Mainnet, Optimism Sepolia, Base Mainnet, Base Sepolia, zkSync Era, Linea, Scroll, Fantom Opera, Gnosis Chain, Celo, Blast, Mantle, Moonbeam, Moonriver, Moonbase Alpha, Metis Andromeda, Cronos, Hardhat Local, Anvil Local, and more.
25
+ - Each chain displays its correct **native currency symbol** (ETH, POL, BNB, AVAX, FTM, xDAI, CELO, GLMR, MOVR, CRO) so balance values are labelled accurately.
26
+
27
+ #### Wallet details panel
28
+ - The wallet badge now shows: network name with a live green indicator dot, shortened address (`0x1234…5678`), a **Copy** button that writes the full address to the clipboard (shows `✓` for 2 s as feedback), and the current native token balance.
29
+ - Balance is fetched live via `eth_getBalance` on connect and re-fetched whenever the account or chain changes.
30
+ - The **Balance** metric in the status strip replaces the redundant "Wallet" name field.
31
+
32
+ #### Human-readable transaction display
33
+ - `eth_sendTransaction` cards now show a structured summary: **From**, **To** (shortened), and **Value** in ETH rather than raw hex.
34
+ - Transactions with no `to` address display a **Contract Deployment** badge and read *Deploy `<ContractName>`* when the ABI is available.
35
+ - Decoded call section shows `ContractName.functionName(…)` with the full signature and each argument on its own line.
36
+ - When a function selector is recognised but no ABI match is found, an "Unknown function — selector: `0x…`" warning is shown instead of silently hiding the call.
37
+ - **`personal_sign`** cards decode the hex message to UTF-8 and display it as plain text.
38
+ - **`eth_sign`** cards show the raw message hash.
39
+ - **`eth_signTypedData*`** cards parse the EIP-712 payload and display the **Domain** and **Message** fields as formatted JSON, so users can read what they are signing before confirming.
40
+ - Raw hex calldata is no longer shown in pending request cards.
41
+
42
+ #### Activity / Tx History filtering
43
+ - The **Tx History** panel now shows only signing and deployment events (`eth_sendTransaction`, `eth_sign`, `personal_sign`, `eth_signTypedData*`), filtering out read-only `eth_call` passthroughs that were adding noise.
44
+ - Confirmed transactions display the truncated **tx hash** when available.
45
+ - Failed/rejected entries show the human-readable **error message** instead of a raw JSON error object.
46
+
47
+ ### Changed
48
+ - `WalletBadge` component refactored to a multi-line detail panel; the old single-line pill is preserved for disconnected/unavailable states.
49
+ - Status strip "Wallet" metric renamed to **Balance** and now reflects live on-chain balance.
50
+ - History entries show `→` between queued and completed timestamps for clarity.
51
+ - Method names in cards use friendly labels (*Send Transaction*, *Sign Message*, *Sign Typed Data*) instead of raw RPC method strings.
52
+
53
+ ---
54
+
55
+ ## [0.1.1] — 2025-03-28
56
+
57
+ - Fix: updated README documentation and resolved TypeScript type-stub lint errors.
58
+
59
+ ## [0.1.0] — 2025-03-28
60
+
61
+ - Initial release: Hardhat plugin that routes JSON-RPC signing through a local browser dashboard backed by MetaMask.
@@ -59,6 +59,8 @@ export interface WalletConnectionState {
59
59
  account?: string;
60
60
  chainId?: string;
61
61
  networkName?: string;
62
+ balance?: string;
63
+ nativeSymbol?: string;
62
64
  }
63
65
  export interface DashboardSnapshot {
64
66
  pending: PendingRpcRequest[];
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../src/types/rpc.ts"],"names":[],"mappings":";;;AAyGa,QAAA,kBAAkB,GAA0B;IACvD,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,UAAU;CACvB,CAAC"}
1
+ {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../src/types/rpc.ts"],"names":[],"mappings":";;;AA2Ga,QAAA,kBAAkB,GAA0B;IACvD,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,UAAU;CACvB,CAAC"}