import { Omit } from 'utility-types'; import { TxParams } from '@zilliqa-js/account'; export declare enum ContractStatus { Deployed = 0, Rejected = 1, Initialised = 2 } export type DeployParams = Omit; export type CallParams = Omit; export interface ContractObj { address: string; abi: ABI; init: any; state: any; } export interface Transition { vname: string; params: Field[]; } /** * Interface for ABI returned by scilla-checker */ export interface ABI { scilla_major_version: number; vname: string; fields: Field[]; params: Field[]; transitions: Transition[]; } export interface Field { vname: string; type: string; depth?: number; } export interface Value { vname: string; type: string; value: string | ADTValue; } interface ADTValue { constructor: string; argtypes: string[]; arguments: Value[]; } export type Param = Value; export type TransitionParam = Value; export type Init = Value[]; export type State = any; export interface TransitionPayload { _tag: string; _amount: string; params: Value[]; } export type DeployError = 'Code is empty and To addr is null' | 'To Addr is null' | 'Non - contract address called' | 'Could not create Transaction' | 'Unable to process'; export interface DeploySuccess { TranID: string; Info: string; ContractAddress?: string; } export {}; //# sourceMappingURL=types.d.ts.map