UNPKG

@taquito/taquito

Version:

High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.

25 lines (24 loc) 1.48 kB
import { BlockResponse } from '@taquito/rpc'; import { MonoTypeOperatorFunction, Observable, SchedulerLike } from 'rxjs'; import { Context } from '../context'; import { DelegationWalletOperation } from './delegation-operation'; import { WalletOperation } from './operation'; import { OriginationWalletOperation } from './origination-operation'; import { TransactionWalletOperation } from './transaction-operation'; export declare const cacheUntil: <T>(cacheUntilObs: Observable<any>) => MonoTypeOperatorFunction<T>; export declare const createNewPollingBasedHeadObservable: (pollingTimer: Observable<number>, sharedHeadOb: Observable<BlockResponse>, context: Context, scheduler?: SchedulerLike | undefined) => Observable<BlockResponse>; export interface OperationFactoryConfig { blockIdentifier?: string; } export declare class OperationFactory { private context; constructor(context: Context); private sharedHeadObs; private createNewHeadObservable; private createPastBlockWalker; private createHeadObservableFromConfig; createOperation(hash: string, config?: OperationFactoryConfig): WalletOperation; createTransactionOperation(hash: string, config?: OperationFactoryConfig): TransactionWalletOperation; createDelegationOperation(hash: string, config?: OperationFactoryConfig): DelegationWalletOperation; createOriginationOperation(hash: string, config?: OperationFactoryConfig): OriginationWalletOperation; }