Interface TonBlockStorageV2

interface TonBlockStorageV2 {
    clean(): Promise<void>;
    getLastMasterchainBlock(): Promise<null | number>;
    getUnprocessedShardchainBlock(): Promise<null | {
        seqno: number;
        shard: string;
        workchain: number;
    }>;
    insertMasterchainBlock(seqno): Promise<void>;
    insertShardchainBlocks(shards): Promise<void>;
    setShardchainBlockProcessed(workchain, shard, seqno, prevShardBlocks): Promise<void>;
}

Implemented by

Methods

  • Returns Promise<null | {
        seqno: number;
        shard: string;
        workchain: number;
    }>

  • Parameters

    • shards: {
          @type: "ton.blockIdExt";
          file_hash: string;
          root_hash: string;
          seqno: number;
          shard: string;
          workchain: number;
      }[]

    Returns Promise<void>

  • Parameters

    • workchain: number
    • shard: string
    • seqno: number
    • prevShardBlocks: {
          @type: "ton.blockIdExt";
          file_hash: string;
          root_hash: string;
          seqno: number;
          shard: string;
          workchain: number;
      }[]

    Returns Promise<void>

Generated using TypeDoc