Skip to content

Commit ff2ecda

Browse files
authored
Merge pull request #268 from D240021/chore/issue-208-copyright-headers
chore: add copyright headers to web lib utilities
2 parents a1e547c + 979949e commit ff2ecda

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)