diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index aa15ad86e..8ecb8420f 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -57,12 +57,16 @@ declare module 'web3' { Fallback = 'fallback', } + type ConstructorStateMutability = 'nonpayable' | 'payable'; + type StateMutability = 'pure' | 'view' | ConstructorStateMutability; + interface MethodAbi { type: AbiType.Function; name: string; inputs: FunctionParameter[]; outputs: FunctionParameter[]; constant: boolean; + stateMutability: StateMutability; payable: boolean; } @@ -70,6 +74,7 @@ declare module 'web3' { type: AbiType.Constructor; inputs: FunctionParameter[]; payable: boolean; + stateMutability: ConstructorStateMutability; } interface FallbackAbi { |