echofi-client
Version:
A comprehensive TypeScript/JavaScript client library for EchoFi services with automatic gRPC-Web code generation, unified service access, and real-time WebSocket communication.
61 lines (46 loc) • 2.04 kB
TypeScript
import * as jspb from 'google-protobuf'
export class ConfirmPaymentRequest extends jspb.Message {
getTxHash(): string;
setTxHash(value: string): ConfirmPaymentRequest;
getFromAddress(): string;
setFromAddress(value: string): ConfirmPaymentRequest;
getToAddress(): string;
setToAddress(value: string): ConfirmPaymentRequest;
getChain(): string;
setChain(value: string): ConfirmPaymentRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ConfirmPaymentRequest.AsObject;
static toObject(includeInstance: boolean, msg: ConfirmPaymentRequest): ConfirmPaymentRequest.AsObject;
static serializeBinaryToWriter(message: ConfirmPaymentRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ConfirmPaymentRequest;
static deserializeBinaryFromReader(message: ConfirmPaymentRequest, reader: jspb.BinaryReader): ConfirmPaymentRequest;
}
export namespace ConfirmPaymentRequest {
export type AsObject = {
txHash: string,
fromAddress: string,
toAddress: string,
chain: string,
}
}
export class ConfirmPaymentResponse extends jspb.Message {
getSuccess(): boolean;
setSuccess(value: boolean): ConfirmPaymentResponse;
getPaymentId(): string;
setPaymentId(value: string): ConfirmPaymentResponse;
getErrorMessage(): string;
setErrorMessage(value: string): ConfirmPaymentResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ConfirmPaymentResponse.AsObject;
static toObject(includeInstance: boolean, msg: ConfirmPaymentResponse): ConfirmPaymentResponse.AsObject;
static serializeBinaryToWriter(message: ConfirmPaymentResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ConfirmPaymentResponse;
static deserializeBinaryFromReader(message: ConfirmPaymentResponse, reader: jspb.BinaryReader): ConfirmPaymentResponse;
}
export namespace ConfirmPaymentResponse {
export type AsObject = {
success: boolean,
paymentId: string,
errorMessage: string,
}
}