@river-build/sdk
Version:
For more details, visit the following resources:
30 lines • 976 B
TypeScript
import { RiverRegistry } from '@river-build/web3';
import { PersistedObservable } from '../../../observable/persistedObservable';
import { Store } from '../../../store/store';
export interface RiverChainModel {
id: '0';
urls: {
value: string;
fetchedAtMs?: number;
};
streamExists: Record<string, {
fetchedAtMs: number;
exists: boolean;
}>;
}
export declare class RiverChain extends PersistedObservable<RiverChainModel> {
private riverRegistryDapp;
private userId;
private log;
private sessionStartMs;
private stopped;
constructor(store: Store, riverRegistryDapp: RiverRegistry, userId: string, logId: string);
protected onLoaded(): void;
stop(): void;
urls(): Promise<string>;
userStreamExists(): Promise<boolean>;
fetchUrls(): Promise<string>;
fetchStreamExists(streamId: string): Promise<boolean>;
private withInfiniteRetries;
}
//# sourceMappingURL=riverChain.d.ts.map