2022-11-30 23:44:23 +03:00
|
|
|
import type { BlockParams, LogParams, TransactionReceiptParams, TransactionResponseParams } from "./formatting.js";
|
2023-02-02 12:05:47 +03:00
|
|
|
export type FormatFunc = (value: any) => any;
|
2022-09-27 10:45:27 +03:00
|
|
|
export declare function allowNull(format: FormatFunc, nullValue?: any): FormatFunc;
|
2024-02-03 08:19:51 +03:00
|
|
|
export declare function arrayOf(format: FormatFunc, allowNull?: boolean): FormatFunc;
|
2022-09-27 10:45:27 +03:00
|
|
|
export declare function object(format: Record<string, FormatFunc>, altNames?: Record<string, Array<string>>): FormatFunc;
|
|
|
|
export declare function formatBoolean(value: any): boolean;
|
|
|
|
export declare function formatData(value: string): string;
|
|
|
|
export declare function formatHash(value: any): string;
|
|
|
|
export declare function formatUint256(value: any): string;
|
2022-11-30 23:44:23 +03:00
|
|
|
export declare function formatLog(value: any): LogParams;
|
|
|
|
export declare function formatBlock(value: any): BlockParams;
|
|
|
|
export declare function formatReceiptLog(value: any): LogParams;
|
|
|
|
export declare function formatTransactionReceipt(value: any): TransactionReceiptParams;
|
|
|
|
export declare function formatTransactionResponse(value: any): TransactionResponseParams;
|
2022-09-27 10:45:27 +03:00
|
|
|
//# sourceMappingURL=format.d.ts.map
|