UNPKG

@celo/connect

Version:

Light Toolkit for connecting with the Celo network

21 lines (20 loc) 1.46 kB
import { StrongAddress } from '@celo/base/lib/address'; import { AccessList } from 'web3-core'; import { AccessListRaw, Block, BlockHeader, BlockNumber, CeloTx, CeloTxPending, CeloTxReceipt, FormattedCeloTx, Log } from '../types'; /** * Formats the input of a transaction and converts all values to HEX */ export declare function inputCeloTxFormatter(tx: CeloTx): FormattedCeloTx; export declare function outputCeloTxFormatter(tx: any): CeloTxPending; export declare function outputCeloTxReceiptFormatter(receipt: any): CeloTxReceipt; export declare function inputDefaultBlockNumberFormatter(blockNumber: BlockNumber | null | undefined): BlockNumber | undefined; export declare function inputBlockNumberFormatter(blockNumber: BlockNumber): BlockNumber | undefined; export declare function outputBlockHeaderFormatter(blockHeader: any): BlockHeader; export declare function outputBlockFormatter(block: any): Block; export declare function hexToNumber(hex?: string): number | undefined; export declare function outputLogFormatter(log: any): Log; export declare function outputBigNumberFormatter(hex: string): string; export declare function parseAccessList(accessListRaw: AccessListRaw | undefined): AccessList; export declare function inputAccessListFormatter(accessList?: AccessList): AccessListRaw; export declare function inputAddressFormatter(address?: string): StrongAddress | undefined; export declare function inputSignFormatter(data: string): string;