Skip to content

Commit 979949e

Browse files
D240021cursoragent
andcommitted
chore: add copyright headers to web lib utilities
Make per-file ownership visible on the web lib helpers, matching the root LICENSE notice. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f509088 commit 979949e

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

apps/web/src/lib/format.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright (c) 2026 Sub Rosa contributors
12
export function shortAddr(g: string, n = 6): string {
23
if (g.length <= n * 2 + 3) return g;
34
return `${g.slice(0, n)}${g.slice(-n)}`;

apps/web/src/lib/hex.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright (c) 2026 Sub Rosa contributors
12
export function hexToBytes(hex: string): Uint8Array {
23
const clean = hex.trim().replace(/^0x/i, "");
34
if (clean.length % 2 !== 0 || !/^[0-9a-fA-F]*$/.test(clean)) {

apps/web/src/lib/round-phase.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright (c) 2026 Sub Rosa contributors
12
import type { RoundStatus } from "../dashboard/types";
23

34
export type RoundPhase = "Open" | "Reveal" | "Settled";

apps/web/src/lib/round-status.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright (c) 2026 Sub Rosa contributors
12
export type BadgeState = "loading" | "empty" | "error" | "stale" | "found";
23

34
export interface RoundStatusInfo {

0 commit comments

Comments
 (0)