UNPKG

@b3dotfun/leaderboards

Version:

SDK to interact with leaderboards smart contract

24 lines (23 loc) 532 B
import type { Address } from "viem"; export type LeaderboardProperties = { startTime: number; endTime: number; hasConcluded: boolean; slug: string; title: string; isPrivate: boolean; useLatestScore: boolean; hasAttemptLimit: boolean; initialAttempts: number; isReverseSort: boolean; }; export type LeaderboardWithProps = { address: Address; properties: LeaderboardProperties; }; export type Score = { player: string; score: number; rank: number; timestamp: number; };