@saberhq/snapshots
Version:
The TypeScript SDK for the Saber Voting Escrow Snapshot system.
39 lines • 908 B
TypeScript
import { PublicKey } from "@solana/web3.js";
import type { SnapshotsProgram, SnapshotsTypes } from "./programs";
/**
* Snapshots program types.
*/
export interface SnapshotsPrograms {
Snapshots: SnapshotsProgram;
}
/**
* Snapshots addresses.
*/
export declare const SNAPSHOTS_ADDRESSES: {
Snapshots: PublicKey;
};
/**
* Program IDLs.
*/
export declare const SNAPSHOTS_IDLS: {
Snapshots: import("./programs").SnapshotsIDL;
};
/**
* Coders.
*/
export declare const SNAPSHOTS_CODERS: {
Snapshots: import("@saberhq/anchor-contrib").SuperCoder<SnapshotsTypes>;
};
/**
* Number of periods in an era.
*/
export declare const ERA_NUM_PERIODS = 256;
/**
* Number of seconds in a period.
*/
export declare const PERIOD_SECONDS: number;
/**
* The Unix timestamp of the start of the first era.
*/
export declare const COMMON_ERA_UNIX_TS = 1640995200;
//# sourceMappingURL=constants.d.ts.map