* clear

* feat: Add everything

* fix: Commenht
This commit is contained in:
Prad Nukala
2025-10-03 14:45:52 -04:00
committed by GitHub
parent 43b4a11c06
commit 13e6c3e84d
1935 changed files with 655061 additions and 40058 deletions
@@ -0,0 +1,792 @@
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
// @generated from file cosmos/base/abci/v1beta1/abci.proto (package cosmos.base.abci.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type {
BinaryReadOptions,
FieldList,
JsonReadOptions,
JsonValue,
PartialMessage,
PlainMessage,
} from '@bufbuild/protobuf';
import { Any, Message, proto3, protoInt64 } from '@bufbuild/protobuf';
import { Event } from '../../../../tendermint/abci/types_pb.js';
import { Block } from '../../../../tendermint/types/block_pb.js';
/**
* TxResponse defines a structure containing relevant tx data and metadata. The
* tags are stringified and the log is JSON decoded.
*
* @generated from message cosmos.base.abci.v1beta1.TxResponse
*/
export class TxResponse extends Message<TxResponse> {
/**
* The block height
*
* @generated from field: int64 height = 1;
*/
height = protoInt64.zero;
/**
* The transaction hash.
*
* @generated from field: string txhash = 2;
*/
txhash = '';
/**
* Namespace for the Code
*
* @generated from field: string codespace = 3;
*/
codespace = '';
/**
* Response code.
*
* @generated from field: uint32 code = 4;
*/
code = 0;
/**
* Result bytes, if any.
*
* @generated from field: string data = 5;
*/
data = '';
/**
* The output of the application's logger (raw string). May be
* non-deterministic.
*
* @generated from field: string raw_log = 6;
*/
rawLog = '';
/**
* The output of the application's logger (typed). May be non-deterministic.
*
* @generated from field: repeated cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7;
*/
logs: ABCIMessageLog[] = [];
/**
* Additional information. May be non-deterministic.
*
* @generated from field: string info = 8;
*/
info = '';
/**
* Amount of gas requested for transaction.
*
* @generated from field: int64 gas_wanted = 9;
*/
gasWanted = protoInt64.zero;
/**
* Amount of gas consumed by transaction.
*
* @generated from field: int64 gas_used = 10;
*/
gasUsed = protoInt64.zero;
/**
* The request transaction bytes.
*
* @generated from field: google.protobuf.Any tx = 11;
*/
tx?: Any;
/**
* Time of the previous block. For heights > 1, it's the weighted median of
* the timestamps of the valid votes in the block.LastCommit. For height == 1,
* it's genesis time.
*
* @generated from field: string timestamp = 12;
*/
timestamp = '';
/**
* Events defines all the events emitted by processing a transaction. Note,
* these events include those emitted by processing all the messages and those
* emitted from the ante. Whereas Logs contains the events, with
* additional metadata, emitted only by processing the messages.
*
* Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
*
* @generated from field: repeated tendermint.abci.Event events = 13;
*/
events: Event[] = [];
constructor(data?: PartialMessage<TxResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.TxResponse';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'height', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 2, name: 'txhash', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 3, name: 'codespace', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 4, name: 'code', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
{ no: 5, name: 'data', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 6, name: 'raw_log', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 7, name: 'logs', kind: 'message', T: ABCIMessageLog, repeated: true },
{ no: 8, name: 'info', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 9, name: 'gas_wanted', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 10, name: 'gas_used', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 11, name: 'tx', kind: 'message', T: Any },
{ no: 12, name: 'timestamp', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 13, name: 'events', kind: 'message', T: Event, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxResponse {
return new TxResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxResponse {
return new TxResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxResponse {
return new TxResponse().fromJsonString(jsonString, options);
}
static equals(
a: TxResponse | PlainMessage<TxResponse> | undefined,
b: TxResponse | PlainMessage<TxResponse> | undefined
): boolean {
return proto3.util.equals(TxResponse, a, b);
}
}
/**
* ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
*
* @generated from message cosmos.base.abci.v1beta1.ABCIMessageLog
*/
export class ABCIMessageLog extends Message<ABCIMessageLog> {
/**
* @generated from field: uint32 msg_index = 1;
*/
msgIndex = 0;
/**
* @generated from field: string log = 2;
*/
log = '';
/**
* Events contains a slice of Event objects that were emitted during some
* execution.
*
* @generated from field: repeated cosmos.base.abci.v1beta1.StringEvent events = 3;
*/
events: StringEvent[] = [];
constructor(data?: PartialMessage<ABCIMessageLog>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.ABCIMessageLog';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'msg_index', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
{ no: 2, name: 'log', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 3, name: 'events', kind: 'message', T: StringEvent, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ABCIMessageLog {
return new ABCIMessageLog().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ABCIMessageLog {
return new ABCIMessageLog().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ABCIMessageLog {
return new ABCIMessageLog().fromJsonString(jsonString, options);
}
static equals(
a: ABCIMessageLog | PlainMessage<ABCIMessageLog> | undefined,
b: ABCIMessageLog | PlainMessage<ABCIMessageLog> | undefined
): boolean {
return proto3.util.equals(ABCIMessageLog, a, b);
}
}
/**
* StringEvent defines en Event object wrapper where all the attributes
* contain key/value pairs that are strings instead of raw bytes.
*
* @generated from message cosmos.base.abci.v1beta1.StringEvent
*/
export class StringEvent extends Message<StringEvent> {
/**
* @generated from field: string type = 1;
*/
type = '';
/**
* @generated from field: repeated cosmos.base.abci.v1beta1.Attribute attributes = 2;
*/
attributes: Attribute[] = [];
constructor(data?: PartialMessage<StringEvent>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.StringEvent';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{
no: 2,
name: 'attributes',
kind: 'message',
T: Attribute,
repeated: true,
},
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringEvent {
return new StringEvent().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringEvent {
return new StringEvent().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringEvent {
return new StringEvent().fromJsonString(jsonString, options);
}
static equals(
a: StringEvent | PlainMessage<StringEvent> | undefined,
b: StringEvent | PlainMessage<StringEvent> | undefined
): boolean {
return proto3.util.equals(StringEvent, a, b);
}
}
/**
* Attribute defines an attribute wrapper where the key and value are
* strings instead of raw bytes.
*
* @generated from message cosmos.base.abci.v1beta1.Attribute
*/
export class Attribute extends Message<Attribute> {
/**
* @generated from field: string key = 1;
*/
key = '';
/**
* @generated from field: string value = 2;
*/
value = '';
constructor(data?: PartialMessage<Attribute>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.Attribute';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'key', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 2, name: 'value', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Attribute {
return new Attribute().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Attribute {
return new Attribute().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Attribute {
return new Attribute().fromJsonString(jsonString, options);
}
static equals(
a: Attribute | PlainMessage<Attribute> | undefined,
b: Attribute | PlainMessage<Attribute> | undefined
): boolean {
return proto3.util.equals(Attribute, a, b);
}
}
/**
* GasInfo defines tx execution gas context.
*
* @generated from message cosmos.base.abci.v1beta1.GasInfo
*/
export class GasInfo extends Message<GasInfo> {
/**
* GasWanted is the maximum units of work we allow this tx to perform.
*
* @generated from field: uint64 gas_wanted = 1;
*/
gasWanted = protoInt64.zero;
/**
* GasUsed is the amount of gas actually consumed.
*
* @generated from field: uint64 gas_used = 2;
*/
gasUsed = protoInt64.zero;
constructor(data?: PartialMessage<GasInfo>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.GasInfo';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'gas_wanted', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
{ no: 2, name: 'gas_used', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GasInfo {
return new GasInfo().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GasInfo {
return new GasInfo().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GasInfo {
return new GasInfo().fromJsonString(jsonString, options);
}
static equals(
a: GasInfo | PlainMessage<GasInfo> | undefined,
b: GasInfo | PlainMessage<GasInfo> | undefined
): boolean {
return proto3.util.equals(GasInfo, a, b);
}
}
/**
* Result is the union of ResponseFormat and ResponseCheckTx.
*
* @generated from message cosmos.base.abci.v1beta1.Result
*/
export class Result extends Message<Result> {
/**
* Data is any data returned from message or handler execution. It MUST be
* length prefixed in order to separate data from multiple message executions.
* Deprecated. This field is still populated, but prefer msg_response instead
* because it also contains the Msg response typeURL.
*
* @generated from field: bytes data = 1 [deprecated = true];
* @deprecated
*/
data = new Uint8Array(0);
/**
* Log contains the log information from message or handler execution.
*
* @generated from field: string log = 2;
*/
log = '';
/**
* Events contains a slice of Event objects that were emitted during message
* or handler execution.
*
* @generated from field: repeated tendermint.abci.Event events = 3;
*/
events: Event[] = [];
/**
* msg_responses contains the Msg handler responses type packed in Anys.
*
* Since: cosmos-sdk 0.46
*
* @generated from field: repeated google.protobuf.Any msg_responses = 4;
*/
msgResponses: Any[] = [];
constructor(data?: PartialMessage<Result>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.Result';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
{ no: 2, name: 'log', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 3, name: 'events', kind: 'message', T: Event, repeated: true },
{ no: 4, name: 'msg_responses', kind: 'message', T: Any, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Result {
return new Result().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Result {
return new Result().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Result {
return new Result().fromJsonString(jsonString, options);
}
static equals(
a: Result | PlainMessage<Result> | undefined,
b: Result | PlainMessage<Result> | undefined
): boolean {
return proto3.util.equals(Result, a, b);
}
}
/**
* SimulationResponse defines the response generated when a transaction is
* successfully simulated.
*
* @generated from message cosmos.base.abci.v1beta1.SimulationResponse
*/
export class SimulationResponse extends Message<SimulationResponse> {
/**
* @generated from field: cosmos.base.abci.v1beta1.GasInfo gas_info = 1;
*/
gasInfo?: GasInfo;
/**
* @generated from field: cosmos.base.abci.v1beta1.Result result = 2;
*/
result?: Result;
constructor(data?: PartialMessage<SimulationResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.SimulationResponse';
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<BinaryReadOptions>): SimulationResponse {
return new SimulationResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationResponse {
return new SimulationResponse().fromJson(jsonValue, options);
}
static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
): SimulationResponse {
return new SimulationResponse().fromJsonString(jsonString, options);
}
static equals(
a: SimulationResponse | PlainMessage<SimulationResponse> | undefined,
b: SimulationResponse | PlainMessage<SimulationResponse> | undefined
): boolean {
return proto3.util.equals(SimulationResponse, a, b);
}
}
/**
* MsgData defines the data returned in a Result object during message
* execution.
*
* @generated from message cosmos.base.abci.v1beta1.MsgData
* @deprecated
*/
export class MsgData extends Message<MsgData> {
/**
* @generated from field: string msg_type = 1;
*/
msgType = '';
/**
* @generated from field: bytes data = 2;
*/
data = new Uint8Array(0);
constructor(data?: PartialMessage<MsgData>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.MsgData';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'msg_type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 2, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgData {
return new MsgData().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgData {
return new MsgData().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgData {
return new MsgData().fromJsonString(jsonString, options);
}
static equals(
a: MsgData | PlainMessage<MsgData> | undefined,
b: MsgData | PlainMessage<MsgData> | undefined
): boolean {
return proto3.util.equals(MsgData, a, b);
}
}
/**
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
* for each message.
*
* @generated from message cosmos.base.abci.v1beta1.TxMsgData
*/
export class TxMsgData extends Message<TxMsgData> {
/**
* data field is deprecated and not populated.
*
* @generated from field: repeated cosmos.base.abci.v1beta1.MsgData data = 1 [deprecated = true];
* @deprecated
*/
data: MsgData[] = [];
/**
* msg_responses contains the Msg handler responses packed into Anys.
*
* Since: cosmos-sdk 0.46
*
* @generated from field: repeated google.protobuf.Any msg_responses = 2;
*/
msgResponses: Any[] = [];
constructor(data?: PartialMessage<TxMsgData>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.TxMsgData';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'data', kind: 'message', T: MsgData, repeated: true },
{ no: 2, name: 'msg_responses', kind: 'message', T: Any, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxMsgData {
return new TxMsgData().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxMsgData {
return new TxMsgData().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxMsgData {
return new TxMsgData().fromJsonString(jsonString, options);
}
static equals(
a: TxMsgData | PlainMessage<TxMsgData> | undefined,
b: TxMsgData | PlainMessage<TxMsgData> | undefined
): boolean {
return proto3.util.equals(TxMsgData, a, b);
}
}
/**
* SearchTxsResult defines a structure for querying txs pageable
*
* @generated from message cosmos.base.abci.v1beta1.SearchTxsResult
*/
export class SearchTxsResult extends Message<SearchTxsResult> {
/**
* Count of all txs
*
* @generated from field: uint64 total_count = 1;
*/
totalCount = protoInt64.zero;
/**
* Count of txs in current page
*
* @generated from field: uint64 count = 2;
*/
count = protoInt64.zero;
/**
* Index of current page, start from 1
*
* @generated from field: uint64 page_number = 3;
*/
pageNumber = protoInt64.zero;
/**
* Count of total pages
*
* @generated from field: uint64 page_total = 4;
*/
pageTotal = protoInt64.zero;
/**
* Max count txs per page
*
* @generated from field: uint64 limit = 5;
*/
limit = protoInt64.zero;
/**
* List of txs in current page
*
* @generated from field: repeated cosmos.base.abci.v1beta1.TxResponse txs = 6;
*/
txs: TxResponse[] = [];
constructor(data?: PartialMessage<SearchTxsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.SearchTxsResult';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{
no: 1,
name: 'total_count',
kind: 'scalar',
T: 4 /* ScalarType.UINT64 */,
},
{ no: 2, name: 'count', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
{
no: 3,
name: 'page_number',
kind: 'scalar',
T: 4 /* ScalarType.UINT64 */,
},
{ no: 4, name: 'page_total', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
{ no: 5, name: 'limit', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
{ no: 6, name: 'txs', kind: 'message', T: TxResponse, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchTxsResult {
return new SearchTxsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchTxsResult {
return new SearchTxsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchTxsResult {
return new SearchTxsResult().fromJsonString(jsonString, options);
}
static equals(
a: SearchTxsResult | PlainMessage<SearchTxsResult> | undefined,
b: SearchTxsResult | PlainMessage<SearchTxsResult> | undefined
): boolean {
return proto3.util.equals(SearchTxsResult, a, b);
}
}
/**
* SearchBlocksResult defines a structure for querying blocks pageable
*
* @generated from message cosmos.base.abci.v1beta1.SearchBlocksResult
*/
export class SearchBlocksResult extends Message<SearchBlocksResult> {
/**
* Count of all blocks
*
* @generated from field: int64 total_count = 1;
*/
totalCount = protoInt64.zero;
/**
* Count of blocks in current page
*
* @generated from field: int64 count = 2;
*/
count = protoInt64.zero;
/**
* Index of current page, start from 1
*
* @generated from field: int64 page_number = 3;
*/
pageNumber = protoInt64.zero;
/**
* Count of total pages
*
* @generated from field: int64 page_total = 4;
*/
pageTotal = protoInt64.zero;
/**
* Max count blocks per page
*
* @generated from field: int64 limit = 5;
*/
limit = protoInt64.zero;
/**
* List of blocks in current page
*
* @generated from field: repeated tendermint.types.Block blocks = 6;
*/
blocks: Block[] = [];
constructor(data?: PartialMessage<SearchBlocksResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.abci.v1beta1.SearchBlocksResult';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'total_count', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 2, name: 'count', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: 'page_number', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 4, name: 'page_total', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 5, name: 'limit', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 6, name: 'blocks', kind: 'message', T: Block, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchBlocksResult {
return new SearchBlocksResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchBlocksResult {
return new SearchBlocksResult().fromJson(jsonValue, options);
}
static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
): SearchBlocksResult {
return new SearchBlocksResult().fromJsonString(jsonString, options);
}
static equals(
a: SearchBlocksResult | PlainMessage<SearchBlocksResult> | undefined,
b: SearchBlocksResult | PlainMessage<SearchBlocksResult> | undefined
): boolean {
return proto3.util.equals(SearchBlocksResult, a, b);
}
}
@@ -0,0 +1,32 @@
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
// @generated from file cosmos/base/node/v1beta1/query.proto (package cosmos.base.node.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import { ConfigRequest, ConfigResponse, StatusRequest, StatusResponse } from './query_pb.js';
const TYPE_NAME = 'cosmos.base.node.v1beta1.Service';
/**
* Config queries for the operator configuration.
*
* @generated from rpc cosmos.base.node.v1beta1.Service.Config
*/
export const ServiceConfigService = {
typeName: TYPE_NAME,
method: 'Config',
Request: ConfigRequest,
Response: ConfigResponse,
} as const;
/**
* Status queries for the node status.
*
* @generated from rpc cosmos.base.node.v1beta1.Service.Status
*/
export const ServiceStatusService = {
typeName: TYPE_NAME,
method: 'Status',
Request: StatusRequest,
Response: StatusResponse,
} as const;
@@ -0,0 +1,250 @@
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
// @generated from file cosmos/base/node/v1beta1/query.proto (package cosmos.base.node.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type {
BinaryReadOptions,
FieldList,
JsonReadOptions,
JsonValue,
PartialMessage,
PlainMessage,
} from '@bufbuild/protobuf';
import { Message, Timestamp, proto3, protoInt64 } from '@bufbuild/protobuf';
/**
* ConfigRequest defines the request structure for the Config gRPC query.
*
* @generated from message cosmos.base.node.v1beta1.ConfigRequest
*/
export class ConfigRequest extends Message<ConfigRequest> {
constructor(data?: PartialMessage<ConfigRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.node.v1beta1.ConfigRequest';
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConfigRequest {
return new ConfigRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConfigRequest {
return new ConfigRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConfigRequest {
return new ConfigRequest().fromJsonString(jsonString, options);
}
static equals(
a: ConfigRequest | PlainMessage<ConfigRequest> | undefined,
b: ConfigRequest | PlainMessage<ConfigRequest> | undefined
): boolean {
return proto3.util.equals(ConfigRequest, a, b);
}
}
/**
* ConfigResponse defines the response structure for the Config gRPC query.
*
* @generated from message cosmos.base.node.v1beta1.ConfigResponse
*/
export class ConfigResponse extends Message<ConfigResponse> {
/**
* @generated from field: string minimum_gas_price = 1;
*/
minimumGasPrice = '';
/**
* @generated from field: string pruning_keep_recent = 2;
*/
pruningKeepRecent = '';
/**
* @generated from field: string pruning_interval = 3;
*/
pruningInterval = '';
/**
* @generated from field: uint64 halt_height = 4;
*/
haltHeight = protoInt64.zero;
constructor(data?: PartialMessage<ConfigResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.node.v1beta1.ConfigResponse';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{
no: 1,
name: 'minimum_gas_price',
kind: 'scalar',
T: 9 /* ScalarType.STRING */,
},
{
no: 2,
name: 'pruning_keep_recent',
kind: 'scalar',
T: 9 /* ScalarType.STRING */,
},
{
no: 3,
name: 'pruning_interval',
kind: 'scalar',
T: 9 /* ScalarType.STRING */,
},
{
no: 4,
name: 'halt_height',
kind: 'scalar',
T: 4 /* ScalarType.UINT64 */,
},
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConfigResponse {
return new ConfigResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConfigResponse {
return new ConfigResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConfigResponse {
return new ConfigResponse().fromJsonString(jsonString, options);
}
static equals(
a: ConfigResponse | PlainMessage<ConfigResponse> | undefined,
b: ConfigResponse | PlainMessage<ConfigResponse> | undefined
): boolean {
return proto3.util.equals(ConfigResponse, a, b);
}
}
/**
* StateRequest defines the request structure for the status of a node.
*
* @generated from message cosmos.base.node.v1beta1.StatusRequest
*/
export class StatusRequest extends Message<StatusRequest> {
constructor(data?: PartialMessage<StatusRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.node.v1beta1.StatusRequest';
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StatusRequest {
return new StatusRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StatusRequest {
return new StatusRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StatusRequest {
return new StatusRequest().fromJsonString(jsonString, options);
}
static equals(
a: StatusRequest | PlainMessage<StatusRequest> | undefined,
b: StatusRequest | PlainMessage<StatusRequest> | undefined
): boolean {
return proto3.util.equals(StatusRequest, a, b);
}
}
/**
* StateResponse defines the response structure for the status of a node.
*
* @generated from message cosmos.base.node.v1beta1.StatusResponse
*/
export class StatusResponse extends Message<StatusResponse> {
/**
* earliest block height available in the store
*
* @generated from field: uint64 earliest_store_height = 1;
*/
earliestStoreHeight = protoInt64.zero;
/**
* current block height
*
* @generated from field: uint64 height = 2;
*/
height = protoInt64.zero;
/**
* block height timestamp
*
* @generated from field: google.protobuf.Timestamp timestamp = 3;
*/
timestamp?: Timestamp;
/**
* app hash of the current block
*
* @generated from field: bytes app_hash = 4;
*/
appHash = new Uint8Array(0);
/**
* validator hash provided by the consensus header
*
* @generated from field: bytes validator_hash = 5;
*/
validatorHash = new Uint8Array(0);
constructor(data?: PartialMessage<StatusResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.node.v1beta1.StatusResponse';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{
no: 1,
name: 'earliest_store_height',
kind: 'scalar',
T: 4 /* ScalarType.UINT64 */,
},
{ no: 2, name: 'height', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
{ no: 3, name: 'timestamp', kind: 'message', T: Timestamp },
{ no: 4, name: 'app_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
{
no: 5,
name: 'validator_hash',
kind: 'scalar',
T: 12 /* ScalarType.BYTES */,
},
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StatusResponse {
return new StatusResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StatusResponse {
return new StatusResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StatusResponse {
return new StatusResponse().fromJsonString(jsonString, options);
}
static equals(
a: StatusResponse | PlainMessage<StatusResponse> | undefined,
b: StatusResponse | PlainMessage<StatusResponse> | undefined
): boolean {
return proto3.util.equals(StatusResponse, a, b);
}
}
@@ -0,0 +1,167 @@
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
// @generated from file cosmos/base/query/v1beta1/pagination.proto (package cosmos.base.query.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';
/**
* PageRequest is to be embedded in gRPC request messages for efficient
* pagination. Ex:
*
* message SomeRequest {
* Foo some_parameter = 1;
* PageRequest pagination = 2;
* }
*
* @generated from message cosmos.base.query.v1beta1.PageRequest
*/
export class PageRequest extends Message<PageRequest> {
/**
* key is a value returned in PageResponse.next_key to begin
* querying the next page most efficiently. Only one of offset or key
* should be set.
*
* @generated from field: bytes key = 1;
*/
key = new Uint8Array(0);
/**
* offset is a numeric offset that can be used when key is unavailable.
* It is less efficient than using key. Only one of offset or key should
* be set.
*
* @generated from field: uint64 offset = 2;
*/
offset = 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 = 3;
*/
limit = protoInt64.zero;
/**
* count_total is set to true to indicate that the result set should include
* a count of the total number of items available for pagination in UIs.
* count_total is only respected when offset is used. It is ignored when key
* is set.
*
* @generated from field: bool count_total = 4;
*/
countTotal = false;
/**
* reverse is set to true if results are to be returned in the descending order.
*
* Since: cosmos-sdk 0.43
*
* @generated from field: bool reverse = 5;
*/
reverse = false;
constructor(data?: PartialMessage<PageRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.query.v1beta1.PageRequest';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
{ no: 2, name: 'offset', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
{ no: 3, name: 'limit', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
{ no: 4, name: 'count_total', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
{ no: 5, name: 'reverse', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageRequest {
return new PageRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageRequest {
return new PageRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageRequest {
return new PageRequest().fromJsonString(jsonString, options);
}
static equals(
a: PageRequest | PlainMessage<PageRequest> | undefined,
b: PageRequest | PlainMessage<PageRequest> | undefined
): boolean {
return proto3.util.equals(PageRequest, a, b);
}
}
/**
* PageResponse is to be embedded in gRPC response messages where the
* corresponding request message has used PageRequest.
*
* message SomeResponse {
* repeated Bar results = 1;
* PageResponse page = 2;
* }
*
* @generated from message cosmos.base.query.v1beta1.PageResponse
*/
export class PageResponse extends Message<PageResponse> {
/**
* next_key is the key to be passed to PageRequest.key to
* query the next page most efficiently. It will be empty if
* there are no more results.
*
* @generated from field: bytes next_key = 1;
*/
nextKey = new Uint8Array(0);
/**
* total is total number of results available if PageRequest.count_total
* was set, its value is undefined otherwise
*
* @generated from field: uint64 total = 2;
*/
total = protoInt64.zero;
constructor(data?: PartialMessage<PageResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.query.v1beta1.PageResponse';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'next_key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
{ no: 2, name: 'total', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageResponse {
return new PageResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageResponse {
return new PageResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageResponse {
return new PageResponse().fromJsonString(jsonString, options);
}
static equals(
a: PageResponse | PlainMessage<PageResponse> | undefined,
b: PageResponse | PlainMessage<PageResponse> | undefined
): boolean {
return proto3.util.equals(PageResponse, a, b);
}
}
@@ -0,0 +1,39 @@
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
// @generated from file cosmos/base/reflection/v1beta1/reflection.proto (package cosmos.base.reflection.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import {
ListAllInterfacesRequest,
ListAllInterfacesResponse,
ListImplementationsRequest,
ListImplementationsResponse,
} from './reflection_pb.js';
const TYPE_NAME = 'cosmos.base.reflection.v1beta1.ReflectionService';
/**
* ListAllInterfaces lists all the interfaces registered in the interface
* registry.
*
* @generated from rpc cosmos.base.reflection.v1beta1.ReflectionService.ListAllInterfaces
*/
export const ReflectionServiceListAllInterfacesService = {
typeName: TYPE_NAME,
method: 'ListAllInterfaces',
Request: ListAllInterfacesRequest,
Response: ListAllInterfacesResponse,
} as const;
/**
* ListImplementations list all the concrete types that implement a given
* interface.
*
* @generated from rpc cosmos.base.reflection.v1beta1.ReflectionService.ListImplementations
*/
export const ReflectionServiceListImplementationsService = {
typeName: TYPE_NAME,
method: 'ListImplementations',
Request: ListImplementationsRequest,
Response: ListImplementationsResponse,
} as const;
@@ -0,0 +1,234 @@
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
// @generated from file cosmos/base/reflection/v1beta1/reflection.proto (package cosmos.base.reflection.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type {
BinaryReadOptions,
FieldList,
JsonReadOptions,
JsonValue,
PartialMessage,
PlainMessage,
} from '@bufbuild/protobuf';
import { Message, proto3 } from '@bufbuild/protobuf';
/**
* ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.
*
* @generated from message cosmos.base.reflection.v1beta1.ListAllInterfacesRequest
*/
export class ListAllInterfacesRequest extends Message<ListAllInterfacesRequest> {
constructor(data?: PartialMessage<ListAllInterfacesRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListAllInterfacesRequest';
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
): ListAllInterfacesRequest {
return new ListAllInterfacesRequest().fromBinary(bytes, options);
}
static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
): ListAllInterfacesRequest {
return new ListAllInterfacesRequest().fromJson(jsonValue, options);
}
static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
): ListAllInterfacesRequest {
return new ListAllInterfacesRequest().fromJsonString(jsonString, options);
}
static equals(
a: ListAllInterfacesRequest | PlainMessage<ListAllInterfacesRequest> | undefined,
b: ListAllInterfacesRequest | PlainMessage<ListAllInterfacesRequest> | undefined
): boolean {
return proto3.util.equals(ListAllInterfacesRequest, a, b);
}
}
/**
* ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.
*
* @generated from message cosmos.base.reflection.v1beta1.ListAllInterfacesResponse
*/
export class ListAllInterfacesResponse extends Message<ListAllInterfacesResponse> {
/**
* interface_names is an array of all the registered interfaces.
*
* @generated from field: repeated string interface_names = 1;
*/
interfaceNames: string[] = [];
constructor(data?: PartialMessage<ListAllInterfacesResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListAllInterfacesResponse';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{
no: 1,
name: 'interface_names',
kind: 'scalar',
T: 9 /* ScalarType.STRING */,
repeated: true,
},
]);
static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
): ListAllInterfacesResponse {
return new ListAllInterfacesResponse().fromBinary(bytes, options);
}
static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
): ListAllInterfacesResponse {
return new ListAllInterfacesResponse().fromJson(jsonValue, options);
}
static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
): ListAllInterfacesResponse {
return new ListAllInterfacesResponse().fromJsonString(jsonString, options);
}
static equals(
a: ListAllInterfacesResponse | PlainMessage<ListAllInterfacesResponse> | undefined,
b: ListAllInterfacesResponse | PlainMessage<ListAllInterfacesResponse> | undefined
): boolean {
return proto3.util.equals(ListAllInterfacesResponse, a, b);
}
}
/**
* ListImplementationsRequest is the request type of the ListImplementations
* RPC.
*
* @generated from message cosmos.base.reflection.v1beta1.ListImplementationsRequest
*/
export class ListImplementationsRequest extends Message<ListImplementationsRequest> {
/**
* interface_name defines the interface to query the implementations for.
*
* @generated from field: string interface_name = 1;
*/
interfaceName = '';
constructor(data?: PartialMessage<ListImplementationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListImplementationsRequest';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{
no: 1,
name: 'interface_name',
kind: 'scalar',
T: 9 /* ScalarType.STRING */,
},
]);
static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
): ListImplementationsRequest {
return new ListImplementationsRequest().fromBinary(bytes, options);
}
static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
): ListImplementationsRequest {
return new ListImplementationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
): ListImplementationsRequest {
return new ListImplementationsRequest().fromJsonString(jsonString, options);
}
static equals(
a: ListImplementationsRequest | PlainMessage<ListImplementationsRequest> | undefined,
b: ListImplementationsRequest | PlainMessage<ListImplementationsRequest> | undefined
): boolean {
return proto3.util.equals(ListImplementationsRequest, a, b);
}
}
/**
* ListImplementationsResponse is the response type of the ListImplementations
* RPC.
*
* @generated from message cosmos.base.reflection.v1beta1.ListImplementationsResponse
*/
export class ListImplementationsResponse extends Message<ListImplementationsResponse> {
/**
* @generated from field: repeated string implementation_message_names = 1;
*/
implementationMessageNames: string[] = [];
constructor(data?: PartialMessage<ListImplementationsResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListImplementationsResponse';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{
no: 1,
name: 'implementation_message_names',
kind: 'scalar',
T: 9 /* ScalarType.STRING */,
repeated: true,
},
]);
static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
): ListImplementationsResponse {
return new ListImplementationsResponse().fromBinary(bytes, options);
}
static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
): ListImplementationsResponse {
return new ListImplementationsResponse().fromJson(jsonValue, options);
}
static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
): ListImplementationsResponse {
return new ListImplementationsResponse().fromJsonString(jsonString, options);
}
static equals(
a: ListImplementationsResponse | PlainMessage<ListImplementationsResponse> | undefined,
b: ListImplementationsResponse | PlainMessage<ListImplementationsResponse> | undefined
): boolean {
return proto3.util.equals(ListImplementationsResponse, a, b);
}
}
@@ -0,0 +1,97 @@
// Since: cosmos-sdk 0.43
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
// @generated from file cosmos/base/reflection/v2alpha1/reflection.proto (package cosmos.base.reflection.v2alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import {
GetAuthnDescriptorRequest,
GetAuthnDescriptorResponse,
GetChainDescriptorRequest,
GetChainDescriptorResponse,
GetCodecDescriptorRequest,
GetCodecDescriptorResponse,
GetConfigurationDescriptorRequest,
GetConfigurationDescriptorResponse,
GetQueryServicesDescriptorRequest,
GetQueryServicesDescriptorResponse,
GetTxDescriptorRequest,
GetTxDescriptorResponse,
} from './reflection_pb.js';
const TYPE_NAME = 'cosmos.base.reflection.v2alpha1.ReflectionService';
/**
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
* future releases of the cosmos-sdk.
*
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetAuthnDescriptor
*/
export const ReflectionServiceGetAuthnDescriptorService = {
typeName: TYPE_NAME,
method: 'GetAuthnDescriptor',
Request: GetAuthnDescriptorRequest,
Response: GetAuthnDescriptorResponse,
} as const;
/**
* GetChainDescriptor returns the description of the chain
*
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetChainDescriptor
*/
export const ReflectionServiceGetChainDescriptorService = {
typeName: TYPE_NAME,
method: 'GetChainDescriptor',
Request: GetChainDescriptorRequest,
Response: GetChainDescriptorResponse,
} as const;
/**
* GetCodecDescriptor returns the descriptor of the codec of the application
*
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetCodecDescriptor
*/
export const ReflectionServiceGetCodecDescriptorService = {
typeName: TYPE_NAME,
method: 'GetCodecDescriptor',
Request: GetCodecDescriptorRequest,
Response: GetCodecDescriptorResponse,
} as const;
/**
* GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application
*
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetConfigurationDescriptor
*/
export const ReflectionServiceGetConfigurationDescriptorService = {
typeName: TYPE_NAME,
method: 'GetConfigurationDescriptor',
Request: GetConfigurationDescriptorRequest,
Response: GetConfigurationDescriptorResponse,
} as const;
/**
* GetQueryServicesDescriptor returns the available gRPC queryable services of the application
*
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetQueryServicesDescriptor
*/
export const ReflectionServiceGetQueryServicesDescriptorService = {
typeName: TYPE_NAME,
method: 'GetQueryServicesDescriptor',
Request: GetQueryServicesDescriptorRequest,
Response: GetQueryServicesDescriptorResponse,
} as const;
/**
* GetTxDescriptor returns information on the used transaction object and available msgs that can be used
*
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetTxDescriptor
*/
export const ReflectionServiceGetTxDescriptorService = {
typeName: TYPE_NAME,
method: 'GetTxDescriptor',
Request: GetTxDescriptorRequest,
Response: GetTxDescriptorResponse,
} as const;
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,111 @@
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
// @generated from file cosmos/base/tendermint/v1beta1/query.proto (package cosmos.base.tendermint.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import {
ABCIQueryRequest,
ABCIQueryResponse,
GetBlockByHeightRequest,
GetBlockByHeightResponse,
GetLatestBlockRequest,
GetLatestBlockResponse,
GetLatestValidatorSetRequest,
GetLatestValidatorSetResponse,
GetNodeInfoRequest,
GetNodeInfoResponse,
GetSyncingRequest,
GetSyncingResponse,
GetValidatorSetByHeightRequest,
GetValidatorSetByHeightResponse,
} from './query_pb.js';
const TYPE_NAME = 'cosmos.base.tendermint.v1beta1.Service';
/**
* GetNodeInfo queries the current node info.
*
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetNodeInfo
*/
export const ServiceGetNodeInfoService = {
typeName: TYPE_NAME,
method: 'GetNodeInfo',
Request: GetNodeInfoRequest,
Response: GetNodeInfoResponse,
} as const;
/**
* GetSyncing queries node syncing.
*
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetSyncing
*/
export const ServiceGetSyncingService = {
typeName: TYPE_NAME,
method: 'GetSyncing',
Request: GetSyncingRequest,
Response: GetSyncingResponse,
} as const;
/**
* GetLatestBlock returns the latest block.
*
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetLatestBlock
*/
export const ServiceGetLatestBlockService = {
typeName: TYPE_NAME,
method: 'GetLatestBlock',
Request: GetLatestBlockRequest,
Response: GetLatestBlockResponse,
} as const;
/**
* GetBlockByHeight queries block for given height.
*
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetBlockByHeight
*/
export const ServiceGetBlockByHeightService = {
typeName: TYPE_NAME,
method: 'GetBlockByHeight',
Request: GetBlockByHeightRequest,
Response: GetBlockByHeightResponse,
} as const;
/**
* GetLatestValidatorSet queries latest validator-set.
*
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetLatestValidatorSet
*/
export const ServiceGetLatestValidatorSetService = {
typeName: TYPE_NAME,
method: 'GetLatestValidatorSet',
Request: GetLatestValidatorSetRequest,
Response: GetLatestValidatorSetResponse,
} as const;
/**
* GetValidatorSetByHeight queries validator-set at a given height.
*
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetValidatorSetByHeight
*/
export const ServiceGetValidatorSetByHeightService = {
typeName: TYPE_NAME,
method: 'GetValidatorSetByHeight',
Request: GetValidatorSetByHeightRequest,
Response: GetValidatorSetByHeightResponse,
} as const;
/**
* ABCIQuery defines a query handler that supports ABCI queries directly to the
* application, bypassing Tendermint completely. The ABCI query must contain
* a valid and supported path, including app, custom, p2p, and store.
*
* Since: cosmos-sdk 0.46
*
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.ABCIQuery
*/
export const ServiceABCIQueryService = {
typeName: TYPE_NAME,
method: 'ABCIQuery',
Request: ABCIQueryRequest,
Response: ABCIQueryResponse,
} as const;
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,265 @@
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
// @generated from file cosmos/base/tendermint/v1beta1/types.proto (package cosmos.base.tendermint.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type {
BinaryReadOptions,
FieldList,
JsonReadOptions,
JsonValue,
PartialMessage,
PlainMessage,
} from '@bufbuild/protobuf';
import { Message, Timestamp, proto3, protoInt64 } from '@bufbuild/protobuf';
import { EvidenceList } from '../../../../tendermint/types/evidence_pb.js';
import { BlockID, Commit, Data } from '../../../../tendermint/types/types_pb.js';
import { Consensus } from '../../../../tendermint/version/types_pb.js';
/**
* Block is tendermint type Block, with the Header proposer address
* field converted to bech32 string.
*
* @generated from message cosmos.base.tendermint.v1beta1.Block
*/
export class Block extends Message<Block> {
/**
* @generated from field: cosmos.base.tendermint.v1beta1.Header header = 1;
*/
header?: Header;
/**
* @generated from field: tendermint.types.Data data = 2;
*/
data?: Data;
/**
* @generated from field: tendermint.types.EvidenceList evidence = 3;
*/
evidence?: EvidenceList;
/**
* @generated from field: tendermint.types.Commit last_commit = 4;
*/
lastCommit?: Commit;
constructor(data?: PartialMessage<Block>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.tendermint.v1beta1.Block';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'header', kind: 'message', T: Header },
{ no: 2, name: 'data', kind: 'message', T: Data },
{ no: 3, name: 'evidence', kind: 'message', T: EvidenceList },
{ no: 4, name: 'last_commit', kind: 'message', T: Commit },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Block {
return new Block().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Block {
return new Block().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Block {
return new Block().fromJsonString(jsonString, options);
}
static equals(
a: Block | PlainMessage<Block> | undefined,
b: Block | PlainMessage<Block> | undefined
): boolean {
return proto3.util.equals(Block, a, b);
}
}
/**
* Header defines the structure of a Tendermint block header.
*
* @generated from message cosmos.base.tendermint.v1beta1.Header
*/
export class Header extends Message<Header> {
/**
* basic block info
*
* @generated from field: tendermint.version.Consensus version = 1;
*/
version?: Consensus;
/**
* @generated from field: string chain_id = 2;
*/
chainId = '';
/**
* @generated from field: int64 height = 3;
*/
height = protoInt64.zero;
/**
* @generated from field: google.protobuf.Timestamp time = 4;
*/
time?: Timestamp;
/**
* prev block info
*
* @generated from field: tendermint.types.BlockID last_block_id = 5;
*/
lastBlockId?: BlockID;
/**
* hashes of block data
*
* commit from validators from the last block
*
* @generated from field: bytes last_commit_hash = 6;
*/
lastCommitHash = new Uint8Array(0);
/**
* transactions
*
* @generated from field: bytes data_hash = 7;
*/
dataHash = new Uint8Array(0);
/**
* hashes from the app output from the prev block
*
* validators for the current block
*
* @generated from field: bytes validators_hash = 8;
*/
validatorsHash = new Uint8Array(0);
/**
* validators for the next block
*
* @generated from field: bytes next_validators_hash = 9;
*/
nextValidatorsHash = new Uint8Array(0);
/**
* consensus params for current block
*
* @generated from field: bytes consensus_hash = 10;
*/
consensusHash = new Uint8Array(0);
/**
* state after txs from the previous block
*
* @generated from field: bytes app_hash = 11;
*/
appHash = new Uint8Array(0);
/**
* root hash of all results from the txs from the previous block
*
* @generated from field: bytes last_results_hash = 12;
*/
lastResultsHash = new Uint8Array(0);
/**
* consensus info
*
* evidence included in the block
*
* @generated from field: bytes evidence_hash = 13;
*/
evidenceHash = new Uint8Array(0);
/**
* proposer_address is the original block proposer address, formatted as a Bech32 string.
* In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
* for better UX.
*
* original proposer of the block
*
* @generated from field: string proposer_address = 14;
*/
proposerAddress = '';
constructor(data?: PartialMessage<Header>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.tendermint.v1beta1.Header';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'version', kind: 'message', T: Consensus },
{ no: 2, name: 'chain_id', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 3, name: 'height', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
{ no: 4, name: 'time', kind: 'message', T: Timestamp },
{ no: 5, name: 'last_block_id', kind: 'message', T: BlockID },
{
no: 6,
name: 'last_commit_hash',
kind: 'scalar',
T: 12 /* ScalarType.BYTES */,
},
{ no: 7, name: 'data_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
{
no: 8,
name: 'validators_hash',
kind: 'scalar',
T: 12 /* ScalarType.BYTES */,
},
{
no: 9,
name: 'next_validators_hash',
kind: 'scalar',
T: 12 /* ScalarType.BYTES */,
},
{
no: 10,
name: 'consensus_hash',
kind: 'scalar',
T: 12 /* ScalarType.BYTES */,
},
{ no: 11, name: 'app_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
{
no: 12,
name: 'last_results_hash',
kind: 'scalar',
T: 12 /* ScalarType.BYTES */,
},
{
no: 13,
name: 'evidence_hash',
kind: 'scalar',
T: 12 /* ScalarType.BYTES */,
},
{
no: 14,
name: 'proposer_address',
kind: 'scalar',
T: 9 /* ScalarType.STRING */,
},
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Header {
return new Header().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Header {
return new Header().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Header {
return new Header().fromJsonString(jsonString, options);
}
static equals(
a: Header | PlainMessage<Header> | undefined,
b: Header | PlainMessage<Header> | undefined
): boolean {
return proto3.util.equals(Header, a, b);
}
}
@@ -0,0 +1,202 @@
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
// @generated from file cosmos/base/v1beta1/coin.proto (package cosmos.base.v1beta1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type {
BinaryReadOptions,
FieldList,
JsonReadOptions,
JsonValue,
PartialMessage,
PlainMessage,
} from '@bufbuild/protobuf';
import { Message, proto3 } from '@bufbuild/protobuf';
/**
* Coin defines a token with a denomination and an amount.
*
* NOTE: The amount field is an Int which implements the custom method
* signatures required by gogoproto.
*
* @generated from message cosmos.base.v1beta1.Coin
*/
export class Coin extends Message<Coin> {
/**
* @generated from field: string denom = 1;
*/
denom = '';
/**
* @generated from field: string amount = 2;
*/
amount = '';
constructor(data?: PartialMessage<Coin>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.v1beta1.Coin';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'denom', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 2, name: 'amount', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Coin {
return new Coin().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Coin {
return new Coin().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Coin {
return new Coin().fromJsonString(jsonString, options);
}
static equals(
a: Coin | PlainMessage<Coin> | undefined,
b: Coin | PlainMessage<Coin> | undefined
): boolean {
return proto3.util.equals(Coin, a, b);
}
}
/**
* DecCoin defines a token with a denomination and a decimal amount.
*
* NOTE: The amount field is an Dec which implements the custom method
* signatures required by gogoproto.
*
* @generated from message cosmos.base.v1beta1.DecCoin
*/
export class DecCoin extends Message<DecCoin> {
/**
* @generated from field: string denom = 1;
*/
denom = '';
/**
* @generated from field: string amount = 2;
*/
amount = '';
constructor(data?: PartialMessage<DecCoin>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.v1beta1.DecCoin';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'denom', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
{ no: 2, name: 'amount', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecCoin {
return new DecCoin().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecCoin {
return new DecCoin().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecCoin {
return new DecCoin().fromJsonString(jsonString, options);
}
static equals(
a: DecCoin | PlainMessage<DecCoin> | undefined,
b: DecCoin | PlainMessage<DecCoin> | undefined
): boolean {
return proto3.util.equals(DecCoin, a, b);
}
}
/**
* IntProto defines a Protobuf wrapper around an Int object.
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
*
* @generated from message cosmos.base.v1beta1.IntProto
*/
export class IntProto extends Message<IntProto> {
/**
* @generated from field: string int = 1;
*/
int = '';
constructor(data?: PartialMessage<IntProto>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.v1beta1.IntProto';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'int', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntProto {
return new IntProto().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntProto {
return new IntProto().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntProto {
return new IntProto().fromJsonString(jsonString, options);
}
static equals(
a: IntProto | PlainMessage<IntProto> | undefined,
b: IntProto | PlainMessage<IntProto> | undefined
): boolean {
return proto3.util.equals(IntProto, a, b);
}
}
/**
* DecProto defines a Protobuf wrapper around a Dec object.
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
*
* @generated from message cosmos.base.v1beta1.DecProto
*/
export class DecProto extends Message<DecProto> {
/**
* @generated from field: string dec = 1;
*/
dec = '';
constructor(data?: PartialMessage<DecProto>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = 'cosmos.base.v1beta1.DecProto';
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: 'dec', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecProto {
return new DecProto().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecProto {
return new DecProto().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecProto {
return new DecProto().fromJsonString(jsonString, options);
}
static equals(
a: DecProto | PlainMessage<DecProto> | undefined,
b: DecProto | PlainMessage<DecProto> | undefined
): boolean {
return proto3.util.equals(DecProto, a, b);
}
}