PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/connect/lib/utils

Просмотр файла: tx-result.d.ts

import { CeloTxReceipt, PromiEvent } from '../types';
/**
 * Transforms a `PromiEvent` to a `TransactionResult`.
 */
export declare function toTxResult(pe: PromiEvent<any>): TransactionResult;
/**
 * Replacement interface for web3's `PromiEvent`. Instead of emiting events
 * to signal different stages, eveything is exposed as a promise. Which ends
 * up being nicer when doing promise/async based programming.
 */
export declare class TransactionResult {
    private hashFuture;
    private receiptFuture;
    constructor(pe: PromiEvent<any>);
    /** Get (& wait for) transaction hash */
    getHash(): Promise<string>;
    /** Get (& wait for) transaction receipt */
    waitReceipt(): Promise<CeloTxReceipt>;
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!