From 72336eb393d775817619a354d784b7dea4e243bf Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Fri, 20 Apr 2018 08:26:10 +1000 Subject: Remove ethers-contracts types --- packages/contract_templates/contract.handlebars | 2 +- packages/typescript-typings/CHANGELOG.json | 2 +- .../types/ethers-contracts/index.d.ts | 28 ---------------------- 3 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 packages/typescript-typings/types/ethers-contracts/index.d.ts diff --git a/packages/contract_templates/contract.handlebars b/packages/contract_templates/contract.handlebars index cd50e14cd..cf51dad90 100644 --- a/packages/contract_templates/contract.handlebars +++ b/packages/contract_templates/contract.handlebars @@ -8,7 +8,7 @@ import { BaseContract } from '@0xproject/base-contract'; import { BlockParam, BlockParamLiteral, CallData, ContractAbi, DataItem, MethodAbi, Provider, TxData, TxDataPayable } from '@0xproject/types'; import { BigNumber, classUtils, promisify } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; -import * as ethers from 'ethers' +import * as ethers from 'ethers'; import * as _ from 'lodash'; {{#if events}} diff --git a/packages/typescript-typings/CHANGELOG.json b/packages/typescript-typings/CHANGELOG.json index 3ef30ad8e..f3f68d509 100644 --- a/packages/typescript-typings/CHANGELOG.json +++ b/packages/typescript-typings/CHANGELOG.json @@ -3,7 +3,7 @@ "version": "0.3.0", "changes": [ { - "note": "Add types for `ethers.js`", + "note": "Add types for `ethers.js`, removing `ethers-contracts`", "pr": 540 } ] diff --git a/packages/typescript-typings/types/ethers-contracts/index.d.ts b/packages/typescript-typings/types/ethers-contracts/index.d.ts deleted file mode 100644 index e5d38819e..000000000 --- a/packages/typescript-typings/types/ethers-contracts/index.d.ts +++ /dev/null @@ -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); - } -} -- cgit v1.2.3