13 lines
250 B
TypeScript
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;
|
||
|
}
|