Interface TonBlockStorageV2
Methods
clean
- clean(): Promise<void>
Returns Promise<void>
getLastMasterchainBlock
- getLastMasterchainBlock(): Promise<null | number>
Returns Promise<null | number>
getUnprocessedShardchainBlock
- getUnprocessedShardchainBlock(): Promise<null | {
seqno: number;
shard: string;
workchain: number;
}> Returns Promise<null | {
seqno: number;
shard: string;
workchain: number;
}>
insertMasterchainBlock
- insertMasterchainBlock(seqno): Promise<void>
Returns Promise<void>
insertShardchainBlocks
- insertShardchainBlocks(shards): Promise<void>
Parameters
shards: {
@type: "ton.blockIdExt";
file_hash: string;
root_hash: string;
seqno: number;
shard: string;
workchain: number;
}[]
Returns Promise<void>
setShardchainBlockProcessed
- setShardchainBlockProcessed(workchain, shard, seqno, prevShardBlocks): 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>