diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-20 06:26:10 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-20 06:26:10 +0800 |
commit | 72336eb393d775817619a354d784b7dea4e243bf (patch) | |
tree | 039d12ec9a635fb9d866dd7cd3f81b9a6bbb4b38 /packages | |
parent | 5c232b6a8d3920ed987fcc9b158a17a62a953172 (diff) | |
download | dexon-sol-tools-72336eb393d775817619a354d784b7dea4e243bf.tar.gz dexon-sol-tools-72336eb393d775817619a354d784b7dea4e243bf.tar.zst dexon-sol-tools-72336eb393d775817619a354d784b7dea4e243bf.zip |
Remove ethers-contracts types
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contract_templates/contract.handlebars | 2 | ||||
-rw-r--r-- | packages/typescript-typings/CHANGELOG.json | 2 | ||||
-rw-r--r-- | packages/typescript-typings/types/ethers-contracts/index.d.ts | 28 |
3 files changed, 2 insertions, 30 deletions
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); - } -} |