Remove ethers-contracts types
This commit is contained in:
@@ -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}}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user