UNPKG

@saberhq/snapshots

Version:

The TypeScript SDK for the Saber Voting Escrow Snapshot system.

35 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.COMMON_ERA_UNIX_TS = exports.PERIOD_SECONDS = exports.ERA_NUM_PERIODS = exports.SNAPSHOTS_CODERS = exports.SNAPSHOTS_IDLS = exports.SNAPSHOTS_ADDRESSES = void 0; const anchor_contrib_1 = require("@saberhq/anchor-contrib"); const web3_js_1 = require("@solana/web3.js"); const programs_1 = require("./programs"); /** * Snapshots addresses. */ exports.SNAPSHOTS_ADDRESSES = { Snapshots: new web3_js_1.PublicKey("StakeSSzfxn391k3LvdKbZP5WVwWd6AsY1DNiXHjQfK"), }; /** * Program IDLs. */ exports.SNAPSHOTS_IDLS = { Snapshots: programs_1.SnapshotsJSON, }; /** * Coders. */ exports.SNAPSHOTS_CODERS = (0, anchor_contrib_1.buildCoderMap)(exports.SNAPSHOTS_IDLS, exports.SNAPSHOTS_ADDRESSES); /** * Number of periods in an era. */ exports.ERA_NUM_PERIODS = 256; /** * Number of seconds in a period. */ exports.PERIOD_SECONDS = 86400 * 3; /** * The Unix timestamp of the start of the first era. */ exports.COMMON_ERA_UNIX_TS = 1640995200; //# sourceMappingURL=constants.js.map