diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-05 21:33:18 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:35 +0800 |
commit | 0c8cf12650e55d0808a8132e9401a19d75cba175 (patch) | |
tree | d4ae87ef95cd3ab4c62c2ee75df0c077a92293fc | |
parent | 2e29a51ccfa31b50fe7a9577fb8e9d5407eb82f1 (diff) | |
download | dexon-sol-tools-0c8cf12650e55d0808a8132e9401a19d75cba175.tar dexon-sol-tools-0c8cf12650e55d0808a8132e9401a19d75cba175.tar.gz dexon-sol-tools-0c8cf12650e55d0808a8132e9401a19d75cba175.tar.bz2 dexon-sol-tools-0c8cf12650e55d0808a8132e9401a19d75cba175.tar.lz dexon-sol-tools-0c8cf12650e55d0808a8132e9401a19d75cba175.tar.xz dexon-sol-tools-0c8cf12650e55d0808a8132e9401a19d75cba175.tar.zst dexon-sol-tools-0c8cf12650e55d0808a8132e9401a19d75cba175.zip |
Add AbiType
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index d50bd6b93..7e13b4793 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -46,8 +46,15 @@ declare module 'web3' { type FunctionAbi = MethodAbi|ConstructorAbi|FallbackAbi; + enum AbiType { + Function = 'function', + Constructor = 'constructor', + Event = 'event', + Fallback = 'fallback', + } + interface MethodAbi { - type: 'function'; + type: AbiType.Function; name: string; inputs: FunctionParameter[]; outputs: FunctionParameter[]; @@ -56,13 +63,13 @@ declare module 'web3' { } interface ConstructorAbi { - type: 'constructor'; + type: AbiType.Constructor; inputs: FunctionParameter[]; payable: boolean; } interface FallbackAbi { - type: 'fallback'; + type: AbiType.Fallback; payable: boolean; } @@ -73,7 +80,7 @@ declare module 'web3' { } interface EventAbi { - type: 'event'; + type: AbiType.Event; name: string; inputs: EventParameter[]; anonymous: boolean; |