UNPKG

@x5e/gink

Version:

an eventually consistent database

17 lines (16 loc) 1.11 kB
import { Medallion, ChainStart, Timestamp, BundleView } from "../implementation/typedefs"; import { Store } from "../implementation/Store"; import { BundleBuilder } from "../implementation/builders"; export declare const MEDALLION1 = 425579549941797; export declare const START_MICROS1: number; export declare const NEXT_TS1: number; export declare const MEDALLION2 = 458510670893748; export declare const START_MICROS2: number; export declare const NEXT_TS2: number; export declare const keyPair: Promise<import("../implementation/typedefs").KeyPair>; export declare function makeChainStart(comment: string, medallion: Medallion, chainStart: ChainStart): Promise<BundleView>; export declare function unbundle(signed: Uint8Array): BundleBuilder; export declare function extendChain(comment: string, previous: BundleView, timestamp: Timestamp): Promise<BundleView>; export declare function extendChainWithoutSign(comment: string, previous: BundleView, timestamp: Timestamp): BundleBuilder; export declare function addTrxns(store: Store): Promise<void>; export declare function sleep(ms: number): Promise<unknown>;