2019-05-15 01:48:48 +03:00
|
|
|
import { BytesLike } from "@ethersproject/bytes";
|
2020-01-08 03:58:04 +03:00
|
|
|
import { Coder, Reader, Result, Writer } from "./coders/abstract-coder";
|
2019-05-15 01:48:48 +03:00
|
|
|
import { ParamType } from "./fragments";
|
|
|
|
export declare type CoerceFunc = (type: string, value: any) => any;
|
|
|
|
export declare class AbiCoder {
|
|
|
|
readonly coerceFunc: CoerceFunc;
|
|
|
|
constructor(coerceFunc?: CoerceFunc);
|
|
|
|
_getCoder(param: ParamType): Coder;
|
|
|
|
_getWordSize(): number;
|
2020-09-08 02:55:52 +03:00
|
|
|
_getReader(data: Uint8Array, allowLoose?: boolean): Reader;
|
2019-05-15 01:48:48 +03:00
|
|
|
_getWriter(): Writer;
|
2021-03-30 22:22:45 +03:00
|
|
|
getDefaultValue(types: ReadonlyArray<string | ParamType>): Result;
|
|
|
|
encode(types: ReadonlyArray<string | ParamType>, values: ReadonlyArray<any>): string;
|
|
|
|
decode(types: ReadonlyArray<string | ParamType>, data: BytesLike, loose?: boolean): Result;
|
2019-05-15 01:48:48 +03:00
|
|
|
}
|
|
|
|
export declare const defaultAbiCoder: AbiCoder;
|
2021-01-19 13:22:54 +03:00
|
|
|
//# sourceMappingURL=abi-coder.d.ts.map
|