@rsksmart/rif-storage-pinning
Version:
Application for providing your storage space to other to use in exchange of RIF Tokens
13 lines (12 loc) • 458 B
TypeScript
import { BigNumber } from 'bignumber.js';
import { Provider } from '../definitions';
/**
* Provider which redirects the pin/unpin requests to the correct provider
* based on the structure of the hash.
*/
export declare class ProviderManager implements Provider {
private ipfs?;
register(provider: Provider): void;
pin(hash: string, expectedSize: BigNumber, agreementReference: string): Promise<void>;
unpin(hash: string): Promise<void>;
}