@ganache/utils
Version:
Utility functions for @ganache packages
16 lines • 762 B
TypeScript
/// <reference types="node" />
import { BaseJsonRpcType } from "./json-rpc-base-types";
export type JsonRpcDataInputArg = string | Buffer;
export declare class Data extends BaseJsonRpcType {
private _byteLength?;
static Empty: Data;
constructor(value: JsonRpcDataInputArg, _byteLength?: number);
toString(byteLength?: number): string | null;
toBuffer(byteLength?: number): Buffer;
static from(value: JsonRpcDataInputArg, byteLength?: number): Data;
private static stringToFixedByteLength;
private static bufferToFixedByteLength;
static toBuffer(value: JsonRpcDataInputArg, byteLength?: number): Buffer;
static toString(value: JsonRpcDataInputArg, byteLength?: number): string;
}
//# sourceMappingURL=json-rpc-data.d.ts.map