import { MessageType, ProgramStatus } from '../../enums'; import { ICode } from '../code'; import { IDates, IGenesis, SearchParam } from '../common'; import { IMessage } from '../message'; import { IPaginationParams } from '../pagination'; import { IProgram } from '../program'; import { IState } from '../state'; export interface GetMessagesParams extends IGenesis, IPaginationParams, IDates { destination?: string; source?: string; mailbox?: boolean; type?: MessageType; withPrograms?: boolean; } export interface FindMessageParams extends IGenesis, Pick { withMetahash?: boolean; } export interface GetIncomingMessagesParams extends IGenesis, IPaginationParams, Pick {} export interface GetOutgoingMessagesParams extends IGenesis, IPaginationParams, Pick {} export interface GetAllProgramsParams extends IGenesis, IPaginationParams, SearchParam, IDates { owner?: string; status?: ProgramStatus | ProgramStatus[]; codeId?: string; } export interface GetAllStateParams extends IGenesis, SearchParam { programId: string; } export interface GetAllCodeParams extends IGenesis, IPaginationParams, SearchParam, IDates { name?: string; uploadedBy?: string; } export interface GetAllUserProgramsParams extends IGenesis, IPaginationParams, Pick, SearchParam {} export interface FindProgramParams extends IGenesis, Pick {} export interface AddCodeNameParams extends IGenesis, Pick { name: string; } export interface AddProgramNameParams extends IGenesis, Pick { name: string; } export interface AddStateParams extends IGenesis { programId: string; wasmBuffBase64: string; name: string; } export interface GetStateParams extends IGenesis, Pick {} export interface GetCodeParams extends IGenesis, Pick {} export interface GetStateByCodeParams extends IGenesis { codeId: string; stateId: string; }