MyCrypto/common/libs/ens/contracts/AbiFunc.d.ts

13 lines
250 B
TypeScript

export interface ABIFunc<T, K = void> {
outputType: K;
encodeInput(x: T): string;
decodeOutput(argStr: string): K;
}
export interface ABIFuncParamless<T = void> {
outputType: T;
encodeInput(): string;
decodeOutput(argStr: string): T;
}