UNPKG

@fairdatasociety/fdp-lokijs-adapter

Version:
29 lines (28 loc) 1.11 kB
import { Bee, Signer, Topic, Utils } from '@ethersphere/bee-js'; import { FeedType, SwarmFeed, SwarmFeedR, SwarmFeedRW } from './feed'; export declare class SequentialFeed implements SwarmFeed<number> { readonly bee: Bee; readonly type: FeedType; constructor(bee: Bee); /** * Creates a sequential feed reader * @param topic a swarm topic * @param owner owner * @returns a sequential feed reader */ makeFeedR(topic: Topic | Uint8Array | string, owner: Utils.Eth.EthAddress | Uint8Array | string): SwarmFeedR<number>; /** * Creates a sequential feed reader / writer * @param topic a swarm topic * @param signer signer * @returns a sequential feed reader / writer */ makeFeedRW(topic: string | Topic | Uint8Array, signer: string | Uint8Array | Signer): SwarmFeedRW<number>; /** * Get Single Owner Chunk identifier * @param topic a swarm topic, bytes 32 length * @param index the chunk index * @returns a bytes 32 */ getIdentifier(topic: Utils.Bytes.Bytes<32>, index: number): Utils.Bytes.Bytes<32>; }