@web3-storage/pail
Version:
DAG based key value store.
23 lines • 929 B
TypeScript
export function put(blocks: API.BlockFetcher, shard: API.BatcherShard, key: string, value: API.UnknownLink): Promise<void>;
export function traverse(shards: ShardFetcher, shard: API.BatcherShard, key: string): Promise<{
shard: API.BatcherShard;
key: string;
}>;
export function commit(shard: API.BatcherShard): Promise<{
root: import("multiformats").CID<import("../api.js").Shard, 113, 18, 1>;
additions: API.ShardBlockView[];
removals: API.ShardBlockView[];
}>;
export function create(blocks: API.BlockFetcher, root: API.ShardLink): Promise<API.Batcher>;
export class BatchCommittedError extends Error {
static code: string;
/**
* @param {string} [message]
* @param {ErrorOptions} [options]
*/
constructor(message?: string, options?: ErrorOptions);
code: string;
}
import * as API from './api.js';
import { ShardFetcher } from '../shard.js';
//# sourceMappingURL=index.d.ts.map