Interface PreparationProvider

PrepareProvider is a utility class to output the prepared format of an operation

interface PreparationProvider {
    activate(params: ActivationParams): Promise<PreparedOperation>;
    ballot(params: BallotParams): Promise<PreparedOperation>;
    batch(batchParams: ParamsWithKind[]): Promise<PreparedOperation>;
    contractCall(contractMethod: ContractMethod<ContractProvider> | ContractMethodObject<ContractProvider>): Promise<PreparedOperation>;
    delegation(params: DelegateParams): Promise<PreparedOperation>;
    drainDelegate(params: DrainDelegateParams): Promise<PreparedOperation>;
    increasePaidStorage(params: IncreasePaidStorageParams): Promise<PreparedOperation>;
    originate(params: OriginateParams): Promise<PreparedOperation>;
    proposals(params: ProposalsParams): Promise<PreparedOperation>;
    registerGlobalConstant(params: RegisterGlobalConstantParams): Promise<PreparedOperation>;
    reveal(params: RevealParams): Promise<PreparedOperation>;
    smartRollupAddMessages(params: SmartRollupAddMessagesParams): Promise<PreparedOperation>;
    smartRollupOriginate(params: SmartRollupOriginateParams): Promise<PreparedOperation>;
    toForge(param: PreparedOperation): ForgeParams;
    toPreapply(prepared: PreparedOperation): Promise<PreapplyParams>;
    transaction(params: TransferParams): Promise<PreparedOperation>;
    transferTicket(params: TransferTicketParams): Promise<PreparedOperation>;
    updateConsensusKey(params: UpdateConsensusKeyParams): Promise<PreparedOperation>;
}

Implemented by

Methods

  • Parameters

    Returns Promise<PreapplyParams>

    a PreapplyParams object

    Method to convert a PreparedOperation to the params needed for the preapplyOperation method