Add types for ABIv2

This commit is contained in:
Leonid Logvinov
2018-02-14 15:51:09 -08:00
parent 18e1c2dea5
commit 76afb6b116
3 changed files with 9 additions and 9 deletions

View File

@@ -62,8 +62,8 @@ declare module 'web3' {
interface MethodAbi {
type: AbiType.Function;
name: string;
inputs: FunctionParameter[];
outputs: FunctionParameter[];
inputs: DataItem[];
outputs: DataItem[];
constant: boolean;
stateMutability: StateMutability;
payable: boolean;
@@ -71,7 +71,7 @@ declare module 'web3' {
interface ConstructorAbi {
type: AbiType.Constructor;
inputs: FunctionParameter[];
inputs: DataItem[];
payable: boolean;
stateMutability: ConstructorStateMutability;
}
@@ -81,9 +81,7 @@ declare module 'web3' {
payable: boolean;
}
interface EventParameter {
name: string;
type: string;
interface EventParameter extends DataItem {
indexed: boolean;
}
@@ -94,9 +92,10 @@ declare module 'web3' {
anonymous: boolean;
}
interface FunctionParameter {
interface DataItem {
name: string;
type: string;
components: DataItem[];
}
interface ContractInstance {