// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/tx/v1beta1/service.proto (package cosmos.tx.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; import { Tx } from "./tx_pb.js"; import { GasInfo, Result, TxResponse } from "../../base/abci/v1beta1/abci_pb.js"; import { BlockID } from "../../../tendermint/types/types_pb.js"; import { Block } from "../../../tendermint/types/block_pb.js"; /** * OrderBy defines the sorting order * * @generated from enum cosmos.tx.v1beta1.OrderBy */ export enum OrderBy { /** * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. * * @generated from enum value: ORDER_BY_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * ORDER_BY_ASC defines ascending order * * @generated from enum value: ORDER_BY_ASC = 1; */ ASC = 1, /** * ORDER_BY_DESC defines descending order * * @generated from enum value: ORDER_BY_DESC = 2; */ DESC = 2, } // Retrieve enum metadata with: proto3.getEnumType(OrderBy) proto3.util.setEnumType(OrderBy, "cosmos.tx.v1beta1.OrderBy", [ { no: 0, name: "ORDER_BY_UNSPECIFIED" }, { no: 1, name: "ORDER_BY_ASC" }, { no: 2, name: "ORDER_BY_DESC" }, ]); /** * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. * * @generated from enum cosmos.tx.v1beta1.BroadcastMode */ export enum BroadcastMode { /** * zero-value for mode ordering * * @generated from enum value: BROADCAST_MODE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * DEPRECATED: use BROADCAST_MODE_SYNC instead, * BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. * * @generated from enum value: BROADCAST_MODE_BLOCK = 1 [deprecated = true]; * @deprecated */ BLOCK = 1, /** * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for * a CheckTx execution response only. * * @generated from enum value: BROADCAST_MODE_SYNC = 2; */ SYNC = 2, /** * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns * immediately. * * @generated from enum value: BROADCAST_MODE_ASYNC = 3; */ ASYNC = 3, } // Retrieve enum metadata with: proto3.getEnumType(BroadcastMode) proto3.util.setEnumType(BroadcastMode, "cosmos.tx.v1beta1.BroadcastMode", [ { no: 0, name: "BROADCAST_MODE_UNSPECIFIED" }, { no: 1, name: "BROADCAST_MODE_BLOCK" }, { no: 2, name: "BROADCAST_MODE_SYNC" }, { no: 3, name: "BROADCAST_MODE_ASYNC" }, ]); /** * GetTxsEventRequest is the request type for the Service.TxsByEvents * RPC method. * * @generated from message cosmos.tx.v1beta1.GetTxsEventRequest */ export class GetTxsEventRequest extends Message { /** * events is the list of transaction event type. * * @generated from field: repeated string events = 1; */ events: string[] = []; /** * pagination defines a pagination for the request. * Deprecated post v0.46.x: use page and limit instead. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2 [deprecated = true]; * @deprecated */ pagination?: PageRequest; /** * @generated from field: cosmos.tx.v1beta1.OrderBy order_by = 3; */ orderBy = OrderBy.UNSPECIFIED; /** * page is the page number to query, starts at 1. If not provided, will default to first page. * * @generated from field: uint64 page = 4; */ page = protoInt64.zero; /** * limit is the total number of results to be returned in the result page. * If left empty it will default to a value to be set by each app. * * @generated from field: uint64 limit = 5; */ limit = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.GetTxsEventRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "events", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, { no: 3, name: "order_by", kind: "enum", T: proto3.getEnumType(OrderBy) }, { no: 4, name: "page", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTxsEventRequest { return new GetTxsEventRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTxsEventRequest { return new GetTxsEventRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTxsEventRequest { return new GetTxsEventRequest().fromJsonString(jsonString, options); } static equals(a: GetTxsEventRequest | PlainMessage | undefined, b: GetTxsEventRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetTxsEventRequest, a, b); } } /** * GetTxsEventResponse is the response type for the Service.TxsByEvents * RPC method. * * @generated from message cosmos.tx.v1beta1.GetTxsEventResponse */ export class GetTxsEventResponse extends Message { /** * txs is the list of queried transactions. * * @generated from field: repeated cosmos.tx.v1beta1.Tx txs = 1; */ txs: Tx[] = []; /** * tx_responses is the list of queried TxResponses. * * @generated from field: repeated cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; */ txResponses: TxResponse[] = []; /** * pagination defines a pagination for the response. * Deprecated post v0.46.x: use total instead. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3 [deprecated = true]; * @deprecated */ pagination?: PageResponse; /** * total is total number of results available * * @generated from field: uint64 total = 4; */ total = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.GetTxsEventResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "txs", kind: "message", T: Tx, repeated: true }, { no: 2, name: "tx_responses", kind: "message", T: TxResponse, repeated: true }, { no: 3, name: "pagination", kind: "message", T: PageResponse }, { no: 4, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTxsEventResponse { return new GetTxsEventResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTxsEventResponse { return new GetTxsEventResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTxsEventResponse { return new GetTxsEventResponse().fromJsonString(jsonString, options); } static equals(a: GetTxsEventResponse | PlainMessage | undefined, b: GetTxsEventResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetTxsEventResponse, a, b); } } /** * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest * RPC method. * * @generated from message cosmos.tx.v1beta1.BroadcastTxRequest */ export class BroadcastTxRequest extends Message { /** * tx_bytes is the raw transaction. * * @generated from field: bytes tx_bytes = 1; */ txBytes = new Uint8Array(0); /** * @generated from field: cosmos.tx.v1beta1.BroadcastMode mode = 2; */ mode = BroadcastMode.UNSPECIFIED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.BroadcastTxRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "mode", kind: "enum", T: proto3.getEnumType(BroadcastMode) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxRequest { return new BroadcastTxRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxRequest { return new BroadcastTxRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BroadcastTxRequest { return new BroadcastTxRequest().fromJsonString(jsonString, options); } static equals(a: BroadcastTxRequest | PlainMessage | undefined, b: BroadcastTxRequest | PlainMessage | undefined): boolean { return proto3.util.equals(BroadcastTxRequest, a, b); } } /** * BroadcastTxResponse is the response type for the * Service.BroadcastTx method. * * @generated from message cosmos.tx.v1beta1.BroadcastTxResponse */ export class BroadcastTxResponse extends Message { /** * tx_response is the queried TxResponses. * * @generated from field: cosmos.base.abci.v1beta1.TxResponse tx_response = 1; */ txResponse?: TxResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.BroadcastTxResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx_response", kind: "message", T: TxResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxResponse { return new BroadcastTxResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxResponse { return new BroadcastTxResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BroadcastTxResponse { return new BroadcastTxResponse().fromJsonString(jsonString, options); } static equals(a: BroadcastTxResponse | PlainMessage | undefined, b: BroadcastTxResponse | PlainMessage | undefined): boolean { return proto3.util.equals(BroadcastTxResponse, a, b); } } /** * SimulateRequest is the request type for the Service.Simulate * RPC method. * * @generated from message cosmos.tx.v1beta1.SimulateRequest */ export class SimulateRequest extends Message { /** * tx is the transaction to simulate. * Deprecated. Send raw tx bytes instead. * * @generated from field: cosmos.tx.v1beta1.Tx tx = 1 [deprecated = true]; * @deprecated */ tx?: Tx; /** * tx_bytes is the raw transaction. * * Since: cosmos-sdk 0.43 * * @generated from field: bytes tx_bytes = 2; */ txBytes = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.SimulateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx", kind: "message", T: Tx }, { no: 2, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SimulateRequest { return new SimulateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SimulateRequest { return new SimulateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SimulateRequest { return new SimulateRequest().fromJsonString(jsonString, options); } static equals(a: SimulateRequest | PlainMessage | undefined, b: SimulateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SimulateRequest, a, b); } } /** * SimulateResponse is the response type for the * Service.SimulateRPC method. * * @generated from message cosmos.tx.v1beta1.SimulateResponse */ export class SimulateResponse extends Message { /** * gas_info is the information about gas used in the simulation. * * @generated from field: cosmos.base.abci.v1beta1.GasInfo gas_info = 1; */ gasInfo?: GasInfo; /** * result is the result of the simulation. * * @generated from field: cosmos.base.abci.v1beta1.Result result = 2; */ result?: Result; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.SimulateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "gas_info", kind: "message", T: GasInfo }, { no: 2, name: "result", kind: "message", T: Result }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SimulateResponse { return new SimulateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SimulateResponse { return new SimulateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SimulateResponse { return new SimulateResponse().fromJsonString(jsonString, options); } static equals(a: SimulateResponse | PlainMessage | undefined, b: SimulateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SimulateResponse, a, b); } } /** * GetTxRequest is the request type for the Service.GetTx * RPC method. * * @generated from message cosmos.tx.v1beta1.GetTxRequest */ export class GetTxRequest extends Message { /** * hash is the tx hash to query, encoded as a hex string. * * @generated from field: string hash = 1; */ hash = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.GetTxRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTxRequest { return new GetTxRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTxRequest { return new GetTxRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTxRequest { return new GetTxRequest().fromJsonString(jsonString, options); } static equals(a: GetTxRequest | PlainMessage | undefined, b: GetTxRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetTxRequest, a, b); } } /** * GetTxResponse is the response type for the Service.GetTx method. * * @generated from message cosmos.tx.v1beta1.GetTxResponse */ export class GetTxResponse extends Message { /** * tx is the queried transaction. * * @generated from field: cosmos.tx.v1beta1.Tx tx = 1; */ tx?: Tx; /** * tx_response is the queried TxResponses. * * @generated from field: cosmos.base.abci.v1beta1.TxResponse tx_response = 2; */ txResponse?: TxResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.GetTxResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx", kind: "message", T: Tx }, { no: 2, name: "tx_response", kind: "message", T: TxResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTxResponse { return new GetTxResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTxResponse { return new GetTxResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTxResponse { return new GetTxResponse().fromJsonString(jsonString, options); } static equals(a: GetTxResponse | PlainMessage | undefined, b: GetTxResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetTxResponse, a, b); } } /** * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs * RPC method. * * Since: cosmos-sdk 0.45.2 * * @generated from message cosmos.tx.v1beta1.GetBlockWithTxsRequest */ export class GetBlockWithTxsRequest extends Message { /** * height is the height of the block to query. * * @generated from field: int64 height = 1; */ height = protoInt64.zero; /** * pagination defines a pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.GetBlockWithTxsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetBlockWithTxsRequest { return new GetBlockWithTxsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetBlockWithTxsRequest { return new GetBlockWithTxsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetBlockWithTxsRequest { return new GetBlockWithTxsRequest().fromJsonString(jsonString, options); } static equals(a: GetBlockWithTxsRequest | PlainMessage | undefined, b: GetBlockWithTxsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetBlockWithTxsRequest, a, b); } } /** * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. * * Since: cosmos-sdk 0.45.2 * * @generated from message cosmos.tx.v1beta1.GetBlockWithTxsResponse */ export class GetBlockWithTxsResponse extends Message { /** * txs are the transactions in the block. * * @generated from field: repeated cosmos.tx.v1beta1.Tx txs = 1; */ txs: Tx[] = []; /** * @generated from field: tendermint.types.BlockID block_id = 2; */ blockId?: BlockID; /** * @generated from field: tendermint.types.Block block = 3; */ block?: Block; /** * pagination defines a pagination for the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 4; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.GetBlockWithTxsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "txs", kind: "message", T: Tx, repeated: true }, { no: 2, name: "block_id", kind: "message", T: BlockID }, { no: 3, name: "block", kind: "message", T: Block }, { no: 4, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetBlockWithTxsResponse { return new GetBlockWithTxsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetBlockWithTxsResponse { return new GetBlockWithTxsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetBlockWithTxsResponse { return new GetBlockWithTxsResponse().fromJsonString(jsonString, options); } static equals(a: GetBlockWithTxsResponse | PlainMessage | undefined, b: GetBlockWithTxsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetBlockWithTxsResponse, a, b); } } /** * TxDecodeRequest is the request type for the Service.TxDecode * RPC method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxDecodeRequest */ export class TxDecodeRequest extends Message { /** * tx_bytes is the raw transaction. * * @generated from field: bytes tx_bytes = 1; */ txBytes = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxDecodeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeRequest { return new TxDecodeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeRequest { return new TxDecodeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxDecodeRequest { return new TxDecodeRequest().fromJsonString(jsonString, options); } static equals(a: TxDecodeRequest | PlainMessage | undefined, b: TxDecodeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TxDecodeRequest, a, b); } } /** * TxDecodeResponse is the response type for the * Service.TxDecode method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxDecodeResponse */ export class TxDecodeResponse extends Message { /** * tx is the decoded transaction. * * @generated from field: cosmos.tx.v1beta1.Tx tx = 1; */ tx?: Tx; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxDecodeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx", kind: "message", T: Tx }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeResponse { return new TxDecodeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeResponse { return new TxDecodeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxDecodeResponse { return new TxDecodeResponse().fromJsonString(jsonString, options); } static equals(a: TxDecodeResponse | PlainMessage | undefined, b: TxDecodeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TxDecodeResponse, a, b); } } /** * TxEncodeRequest is the request type for the Service.TxEncode * RPC method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxEncodeRequest */ export class TxEncodeRequest extends Message { /** * tx is the transaction to encode. * * @generated from field: cosmos.tx.v1beta1.Tx tx = 1; */ tx?: Tx; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxEncodeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx", kind: "message", T: Tx }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeRequest { return new TxEncodeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeRequest { return new TxEncodeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxEncodeRequest { return new TxEncodeRequest().fromJsonString(jsonString, options); } static equals(a: TxEncodeRequest | PlainMessage | undefined, b: TxEncodeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TxEncodeRequest, a, b); } } /** * TxEncodeResponse is the response type for the * Service.TxEncode method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxEncodeResponse */ export class TxEncodeResponse extends Message { /** * tx_bytes is the encoded transaction bytes. * * @generated from field: bytes tx_bytes = 1; */ txBytes = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxEncodeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeResponse { return new TxEncodeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeResponse { return new TxEncodeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxEncodeResponse { return new TxEncodeResponse().fromJsonString(jsonString, options); } static equals(a: TxEncodeResponse | PlainMessage | undefined, b: TxEncodeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TxEncodeResponse, a, b); } } /** * TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino * RPC method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxEncodeAminoRequest */ export class TxEncodeAminoRequest extends Message { /** * @generated from field: string amino_json = 1; */ aminoJson = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxEncodeAminoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "amino_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeAminoRequest { return new TxEncodeAminoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeAminoRequest { return new TxEncodeAminoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxEncodeAminoRequest { return new TxEncodeAminoRequest().fromJsonString(jsonString, options); } static equals(a: TxEncodeAminoRequest | PlainMessage | undefined, b: TxEncodeAminoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TxEncodeAminoRequest, a, b); } } /** * TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino * RPC method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxEncodeAminoResponse */ export class TxEncodeAminoResponse extends Message { /** * @generated from field: bytes amino_binary = 1; */ aminoBinary = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxEncodeAminoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "amino_binary", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeAminoResponse { return new TxEncodeAminoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeAminoResponse { return new TxEncodeAminoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxEncodeAminoResponse { return new TxEncodeAminoResponse().fromJsonString(jsonString, options); } static equals(a: TxEncodeAminoResponse | PlainMessage | undefined, b: TxEncodeAminoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TxEncodeAminoResponse, a, b); } } /** * TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino * RPC method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxDecodeAminoRequest */ export class TxDecodeAminoRequest extends Message { /** * @generated from field: bytes amino_binary = 1; */ aminoBinary = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxDecodeAminoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "amino_binary", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeAminoRequest { return new TxDecodeAminoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeAminoRequest { return new TxDecodeAminoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxDecodeAminoRequest { return new TxDecodeAminoRequest().fromJsonString(jsonString, options); } static equals(a: TxDecodeAminoRequest | PlainMessage | undefined, b: TxDecodeAminoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TxDecodeAminoRequest, a, b); } } /** * TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino * RPC method. * * Since: cosmos-sdk 0.47 * * @generated from message cosmos.tx.v1beta1.TxDecodeAminoResponse */ export class TxDecodeAminoResponse extends Message { /** * @generated from field: string amino_json = 1; */ aminoJson = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.tx.v1beta1.TxDecodeAminoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "amino_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeAminoResponse { return new TxDecodeAminoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeAminoResponse { return new TxDecodeAminoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TxDecodeAminoResponse { return new TxDecodeAminoResponse().fromJsonString(jsonString, options); } static equals(a: TxDecodeAminoResponse | PlainMessage | undefined, b: TxDecodeAminoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TxDecodeAminoResponse, a, b); } }