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

                             



                       
 






                                




                              






                                                
                            
 
import * as Web3 from 'web3';

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

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

export enum ContractsBackend {
    Web3 = 'web3',
    Ethers = 'ethers',
}

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

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