@emeraldpay/api
Version:
Common code for Emerald gRPC APIs
308 lines (269 loc) • 12.4 kB
TypeScript
// package: emerald.transaction
// file: transaction.message.proto
/* tslint:disable */
/* eslint-disable */
import * as jspb from "google-protobuf";
import * as common_pb from "./common_pb";
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
export class AddressAmount extends jspb.Message {
hasAddress(): boolean;
clearAddress(): void;
getAddress(): common_pb.SingleAddress | undefined;
setAddress(value?: common_pb.SingleAddress): AddressAmount;
getAmount(): string;
setAmount(value: string): AddressAmount;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AddressAmount.AsObject;
static toObject(includeInstance: boolean, msg: AddressAmount): AddressAmount.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: AddressAmount, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AddressAmount;
static deserializeBinaryFromReader(message: AddressAmount, reader: jspb.BinaryReader): AddressAmount;
}
export namespace AddressAmount {
export type AsObject = {
address?: common_pb.SingleAddress.AsObject,
amount: string,
}
}
export class AddressTxRequest extends jspb.Message {
getBlockchain(): common_pb.ChainRef;
setBlockchain(value: common_pb.ChainRef): AddressTxRequest;
hasAddress(): boolean;
clearAddress(): void;
getAddress(): common_pb.AnyAddress | undefined;
setAddress(value?: common_pb.AnyAddress): AddressTxRequest;
getCursor(): string;
setCursor(value: string): AddressTxRequest;
getLimit(): number;
setLimit(value: number): AddressTxRequest;
getOnlyUnspent(): boolean;
setOnlyUnspent(value: boolean): AddressTxRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AddressTxRequest.AsObject;
static toObject(includeInstance: boolean, msg: AddressTxRequest): AddressTxRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: AddressTxRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AddressTxRequest;
static deserializeBinaryFromReader(message: AddressTxRequest, reader: jspb.BinaryReader): AddressTxRequest;
}
export namespace AddressTxRequest {
export type AsObject = {
blockchain: common_pb.ChainRef,
address?: common_pb.AnyAddress.AsObject,
cursor: string,
limit: number,
onlyUnspent: boolean,
}
}
export class AddressTxResponse extends jspb.Message {
getBlockchain(): common_pb.ChainRef;
setBlockchain(value: common_pb.ChainRef): AddressTxResponse;
hasAddress(): boolean;
clearAddress(): void;
getAddress(): common_pb.SingleAddress | undefined;
setAddress(value?: common_pb.SingleAddress): AddressTxResponse;
hasXpubIndex(): boolean;
clearXpubIndex(): void;
getXpubIndex(): google_protobuf_wrappers_pb.UInt32Value | undefined;
setXpubIndex(value?: google_protobuf_wrappers_pb.UInt32Value): AddressTxResponse;
getTxId(): string;
setTxId(value: string): AddressTxResponse;
hasBlock(): boolean;
clearBlock(): void;
getBlock(): common_pb.BlockInfo | undefined;
setBlock(value?: common_pb.BlockInfo): AddressTxResponse;
getMempool(): boolean;
setMempool(value: boolean): AddressTxResponse;
getCursor(): string;
setCursor(value: string): AddressTxResponse;
getRemoved(): boolean;
setRemoved(value: boolean): AddressTxResponse;
getFailed(): boolean;
setFailed(value: boolean): AddressTxResponse;
clearChangesList(): void;
getChangesList(): Array<Change>;
setChangesList(value: Array<Change>): AddressTxResponse;
addChanges(value?: Change, index?: number): Change;
getTxIndexInBlock(): number;
setTxIndexInBlock(value: number): AddressTxResponse;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AddressTxResponse.AsObject;
static toObject(includeInstance: boolean, msg: AddressTxResponse): AddressTxResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: AddressTxResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AddressTxResponse;
static deserializeBinaryFromReader(message: AddressTxResponse, reader: jspb.BinaryReader): AddressTxResponse;
}
export namespace AddressTxResponse {
export type AsObject = {
blockchain: common_pb.ChainRef,
address?: common_pb.SingleAddress.AsObject,
xpubIndex?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
txId: string,
block?: common_pb.BlockInfo.AsObject,
mempool: boolean,
cursor: string,
removed: boolean,
failed: boolean,
changesList: Array<Change.AsObject>,
txIndexInBlock: number,
}
}
export class GetTransactionsRequest extends jspb.Message {
getChain(): common_pb.ChainRef;
setChain(value: common_pb.ChainRef): GetTransactionsRequest;
hasAddress(): boolean;
clearAddress(): void;
getAddress(): common_pb.AnyAddress | undefined;
setAddress(value?: common_pb.AnyAddress): GetTransactionsRequest;
getCursor(): string;
setCursor(value: string): GetTransactionsRequest;
getLimit(): number;
setLimit(value: number): GetTransactionsRequest;
getUnspentOnly(): boolean;
setUnspentOnly(value: boolean): GetTransactionsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetTransactionsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetTransactionsRequest): GetTransactionsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetTransactionsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetTransactionsRequest;
static deserializeBinaryFromReader(message: GetTransactionsRequest, reader: jspb.BinaryReader): GetTransactionsRequest;
}
export namespace GetTransactionsRequest {
export type AsObject = {
chain: common_pb.ChainRef,
address?: common_pb.AnyAddress.AsObject,
cursor: string,
limit: number,
unspentOnly: boolean,
}
}
export class SubscribeTransactionsRequest extends jspb.Message {
getChain(): common_pb.ChainRef;
setChain(value: common_pb.ChainRef): SubscribeTransactionsRequest;
hasAddress(): boolean;
clearAddress(): void;
getAddress(): common_pb.AnyAddress | undefined;
setAddress(value?: common_pb.AnyAddress): SubscribeTransactionsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SubscribeTransactionsRequest.AsObject;
static toObject(includeInstance: boolean, msg: SubscribeTransactionsRequest): SubscribeTransactionsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: SubscribeTransactionsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): SubscribeTransactionsRequest;
static deserializeBinaryFromReader(message: SubscribeTransactionsRequest, reader: jspb.BinaryReader): SubscribeTransactionsRequest;
}
export namespace SubscribeTransactionsRequest {
export type AsObject = {
chain: common_pb.ChainRef,
address?: common_pb.AnyAddress.AsObject,
}
}
export class AddressTransaction extends jspb.Message {
getChain(): common_pb.ChainRef;
setChain(value: common_pb.ChainRef): AddressTransaction;
hasAddress(): boolean;
clearAddress(): void;
getAddress(): common_pb.SingleAddress | undefined;
setAddress(value?: common_pb.SingleAddress): AddressTransaction;
hasXpubIndex(): boolean;
clearXpubIndex(): void;
getXpubIndex(): google_protobuf_wrappers_pb.UInt32Value | undefined;
setXpubIndex(value?: google_protobuf_wrappers_pb.UInt32Value): AddressTransaction;
getTxId(): string;
setTxId(value: string): AddressTransaction;
hasBlock(): boolean;
clearBlock(): void;
getBlock(): common_pb.BlockInfo | undefined;
setBlock(value?: common_pb.BlockInfo): AddressTransaction;
getMempool(): boolean;
setMempool(value: boolean): AddressTransaction;
getCursor(): string;
setCursor(value: string): AddressTransaction;
getRemoved(): boolean;
setRemoved(value: boolean): AddressTransaction;
getFailed(): boolean;
setFailed(value: boolean): AddressTransaction;
clearChangesList(): void;
getChangesList(): Array<Change>;
setChangesList(value: Array<Change>): AddressTransaction;
addChanges(value?: Change, index?: number): Change;
getTxIndexInBlock(): number;
setTxIndexInBlock(value: number): AddressTransaction;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AddressTransaction.AsObject;
static toObject(includeInstance: boolean, msg: AddressTransaction): AddressTransaction.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: AddressTransaction, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AddressTransaction;
static deserializeBinaryFromReader(message: AddressTransaction, reader: jspb.BinaryReader): AddressTransaction;
}
export namespace AddressTransaction {
export type AsObject = {
chain: common_pb.ChainRef,
address?: common_pb.SingleAddress.AsObject,
xpubIndex?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
txId: string,
block?: common_pb.BlockInfo.AsObject,
mempool: boolean,
cursor: string,
removed: boolean,
failed: boolean,
changesList: Array<Change.AsObject>,
txIndexInBlock: number,
}
}
export class Change extends jspb.Message {
getDirection(): Direction;
setDirection(value: Direction): Change;
hasAddress(): boolean;
clearAddress(): void;
getAddress(): common_pb.SingleAddress | undefined;
setAddress(value?: common_pb.SingleAddress): Change;
getAmount(): string;
setAmount(value: string): Change;
getType(): ChangeType;
setType(value: ChangeType): Change;
hasContractAddress(): boolean;
clearContractAddress(): void;
getContractAddress(): common_pb.SingleAddress | undefined;
setContractAddress(value?: common_pb.SingleAddress): Change;
hasXpubIndex(): boolean;
clearXpubIndex(): void;
getXpubIndex(): google_protobuf_wrappers_pb.UInt32Value | undefined;
setXpubIndex(value?: google_protobuf_wrappers_pb.UInt32Value): Change;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Change.AsObject;
static toObject(includeInstance: boolean, msg: Change): Change.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Change, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Change;
static deserializeBinaryFromReader(message: Change, reader: jspb.BinaryReader): Change;
}
export namespace Change {
export type AsObject = {
direction: Direction,
address?: common_pb.SingleAddress.AsObject,
amount: string,
type: ChangeType,
contractAddress?: common_pb.SingleAddress.AsObject,
xpubIndex?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
}
}
export enum Direction {
RECEIVE = 0,
SEND = 1,
}
export enum ChangeType {
CHANGE = 0,
FEE = 1,
}