Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/src/lib/format.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2026 Sub Rosa contributors
export function shortAddr(g: string, n = 6): string {
if (g.length <= n * 2 + 3) return g;
return `${g.slice(0, n)}…${g.slice(-n)}`;
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/lib/hex.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2026 Sub Rosa contributors
export function hexToBytes(hex: string): Uint8Array {
const clean = hex.trim().replace(/^0x/i, "");
if (clean.length % 2 !== 0 || !/^[0-9a-fA-F]*$/.test(clean)) {
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/lib/round-phase.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2026 Sub Rosa contributors
import type { RoundStatus } from "../dashboard/types";

export type RoundPhase = "Open" | "Reveal" | "Settled";
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/lib/round-status.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2026 Sub Rosa contributors
export type BadgeState = "loading" | "empty" | "error" | "stale" | "found";

export interface RoundStatusInfo {
Expand Down