aboutsummaryrefslogblamecommitdiffstats
path: root/packages/abi-gen/src/types.ts
blob: e82ab824b0815bded8a90e56615e8f1e88d3930d (plain) (tree)
1
2
3
4
5
6
7
8

                             
                       

                      
 
 
                     



                                

 
                                                
                               


                              


                            
 
import * as Web3 from 'web3';

export enum ParamKind {
    Input = 'input',
    Output = 'output',
}

export enum AbiType {
    Function = 'function',
    Constructor = 'constructor',
    Event = 'event',
    Fallback = 'fallback',
}

export interface Method extends Web3.MethodAbi {
    singleReturnValue: boolean;
}

export interface ContextData {
    contractName: string;
    methods: Method[];
    events: Web3.EventAbi[];
}