Move some ethers-related types to typescript-typings/ethers
This commit is contained in:
@@ -34,4 +34,22 @@ declare module 'ethers' {
|
||||
const enum errors {
|
||||
INVALID_ARGUMENT = 'INVALID_ARGUMENT',
|
||||
}
|
||||
|
||||
export type ParamName = null | string | NestedParamName;
|
||||
|
||||
export interface NestedParamName {
|
||||
name: string | null;
|
||||
names: ParamName[];
|
||||
}
|
||||
|
||||
export const utils: {
|
||||
AbiCoder: {
|
||||
defaultCoder: AbiCoder;
|
||||
};
|
||||
};
|
||||
|
||||
export interface AbiCoder {
|
||||
encode: (names?: ParamName[], types: string[], args: any[]) => string;
|
||||
decode: (names?: ParamName[], types: string[], data: string) => any;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user