aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen/src/types.ts
blob: 68765b04d240f532cabc12967642dccb463d33fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { EventAbi, MethodAbi } from 'ethereum-types';

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

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

export interface Method extends MethodAbi {
    singleReturnValue: boolean;
    hasReturnValue: boolean;
    tsName: string;
    functionSignature: string;
}

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