Remove ethers-contracts types

This commit is contained in:
Jacob Evans
2018-04-20 08:26:10 +10:00
parent 5c232b6a8d
commit 72336eb393
3 changed files with 2 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ import { BaseContract } from '@0xproject/base-contract';
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, DataItem, MethodAbi, Provider, TxData, TxDataPayable } from '@0xproject/types'; import { BlockParam, BlockParamLiteral, CallData, ContractAbi, DataItem, MethodAbi, Provider, TxData, TxDataPayable } from '@0xproject/types';
import { BigNumber, classUtils, promisify } from '@0xproject/utils'; import { BigNumber, classUtils, promisify } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper'; import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as ethers from 'ethers' import * as ethers from 'ethers';
import * as _ from 'lodash'; import * as _ from 'lodash';
{{#if events}} {{#if events}}

View File

@@ -3,7 +3,7 @@
"version": "0.3.0", "version": "0.3.0",
"changes": [ "changes": [
{ {
"note": "Add types for `ethers.js`", "note": "Add types for `ethers.js`, removing `ethers-contracts`",
"pr": 540 "pr": 540
} }
] ]

View File

@@ -1,28 +0,0 @@
declare module 'ethers-contracts' {
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[] };
}
export interface EventDescription {
parse: (...args: any[]) => any;
inputs: { names: string[]; types: string[] };
signature: string;
topic: string;
}
export class Interface {
public functions: { [functionName: string]: FunctionDescription };
public events: { [eventName: string]: EventDescription };
public static decodeParams(types: string[], data: string): any[];
constructor(abi: any);
}
}