aboutsummaryrefslogtreecommitdiffstats
path: root/packages/typescript-typings/types/ethers/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/typescript-typings/types/ethers/index.d.ts')
-rw-r--r--packages/typescript-typings/types/ethers/index.d.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/typescript-typings/types/ethers/index.d.ts b/packages/typescript-typings/types/ethers/index.d.ts
new file mode 100644
index 000000000..7e04c7dd1
--- /dev/null
+++ b/packages/typescript-typings/types/ethers/index.d.ts
@@ -0,0 +1,31 @@
+declare module 'ethers' {
+ export interface TransactionDescription {
+ name: string;
+ signature: string;
+ sighash: string;
+ data: string;
+ }
+ export interface CallDescription extends TransactionDescription {
+ parse: (...args: any[]) => any;
+ }
+ export interface FunctionDescription {
+ (...params: any[]): TransactionDescription | CallDescription;
+ inputs: { names: string[]; types: string[] };
+ outputs: { names: string[]; types: string[] };
+ type: string;
+ }
+ export interface EventDescription {
+ parse: (...args: any[]) => any;
+ inputs: { names: string[]; types: string[] };
+ signature: string;
+ topics: string[];
+ }
+ export class Interface {
+ public functions: { [functionName: string]: FunctionDescription };
+ public events: { [eventName: string]: EventDescription };
+ constructor(abi: any);
+ }
+ export class Contract {
+ constructor(address: string, abi: any, provider: any);
+ }
+}