Responses
Escrow's Response Entity
import { Status } from "./types";
import { MultiReleaseEscrow, SingleReleaseEscrow } from "./types.entity";
/**
* Escrow's Response like fund, release, change, etc ...
*/
export type EscrowRequestResponse = {
/**
* Status of the request
*/
status: Status;
/**
* Unsigned transaction
*/
unsignedTransaction?: string;
};
/**
* Send Transaction Response
*/
export type SendTransactionResponse = {
/**
* Status of the request
*/
status: Status;
/**
* Message of the request
*/
message: string;
};
/**
* Initialize Escrow Response
*/
export type InitializeSingleReleaseEscrowResponse = EscrowRequestResponse & {
/**
* ID (address) that identifies the escrow contract
*/
contractId: string;
/**
* Escrow data
*/
escrow: SingleReleaseEscrow;
/**
* Message of the request
*/
message: string;
};
/**
* Initialize Multi Release Escrow Response
*/
export type InitializeMultiReleaseEscrowResponse =
InitializeSingleReleaseEscrowResponse & {
/**
* Escrow data
*/
escrow: MultiReleaseEscrow;
};
/**
* Update Escrow Response
*/
export type UpdateSingleReleaseEscrowResponse =
InitializeSingleReleaseEscrowResponse;
/**
* Update Multi Release Escrow Response
*/
export type UpdateMultiReleaseEscrowResponse =
InitializeMultiReleaseEscrowResponse;
/**
* Get Balances Response
*/
export type GetEscrowBalancesResponse = {
/**
* Address of the escrow
*/
address: string;
/**
* Balance of the escrow
*/
balance: number;
};
Last updated
Was this helpful?