diff --git a/scripts/gen-protobufs.mjs b/scripts/gen-protobufs.mjs index dc2bbc8e..c21fbb17 100644 --- a/scripts/gen-protobufs.mjs +++ b/scripts/gen-protobufs.mjs @@ -35,7 +35,7 @@ import { fileURLToPath } from "url"; */ const REPOS = [ { - repo: "cosmos/cosmos-sdk#v0.47.9", + repo: "cosmos/cosmos-sdk#v0.50.6", paths: ["proto"], }, { diff --git a/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts b/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts index a0c4c189..171e40b8 100644 --- a/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts +++ b/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts @@ -63,6 +63,33 @@ export class Module extends Message { */ overrideStoreKeys: StoreKeyConfig[] = []; + /** + * order_migrations defines the order in which module migrations are performed. + * If this is left empty, it uses the default migration order. + * https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder + * + * @generated from field: repeated string order_migrations = 7; + */ + orderMigrations: string[] = []; + + /** + * precommiters specifies the module names of the precommiters + * to call in the order in which they should be called. If this is left empty + * no precommit function will be registered. + * + * @generated from field: repeated string precommiters = 8; + */ + precommiters: string[] = []; + + /** + * prepare_check_staters specifies the module names of the prepare_check_staters + * to call in the order in which they should be called. If this is left empty + * no preparecheckstate function will be registered. + * + * @generated from field: repeated string prepare_check_staters = 9; + */ + prepareCheckStaters: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -77,6 +104,9 @@ export class Module extends Message { { no: 4, name: "init_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "export_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "override_store_keys", kind: "message", T: StoreKeyConfig, repeated: true }, + { no: 7, name: "order_migrations", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 8, name: "precommiters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "prepare_check_staters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/cosmos/app/v1alpha1/module_pb.ts b/src/protobufs/cosmos/app/v1alpha1/module_pb.ts index b87de347..4f767ee9 100644 --- a/src/protobufs/cosmos/app/v1alpha1/module_pb.ts +++ b/src/protobufs/cosmos/app/v1alpha1/module_pb.ts @@ -102,7 +102,7 @@ export class PackageReference extends Message { * * When a new version of a module is released and items are added to existing * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. + * "Since: Revision N" where N is an integer revision. * * When the module runtime starts up, it will check the pinned proto * image and panic if there are runtime protobuf definitions that are not diff --git a/src/protobufs/cosmos/authz/v1beta1/query_pb.ts b/src/protobufs/cosmos/authz/v1beta1/query_pb.ts index 5c2cb23d..5b3e7b6a 100644 --- a/src/protobufs/cosmos/authz/v1beta1/query_pb.ts +++ b/src/protobufs/cosmos/authz/v1beta1/query_pb.ts @@ -217,7 +217,7 @@ export class QueryGranterGrantsResponse extends Message { } /** - * MsgExecResponse defines the Msg/MsgExecResponse response type. + * MsgGrantResponse defines the Msg/MsgGrant response type. * - * @generated from message cosmos.authz.v1beta1.MsgExecResponse + * @generated from message cosmos.authz.v1beta1.MsgGrantResponse */ -export class MsgExecResponse extends Message { - /** - * @generated from field: repeated bytes results = 1; - */ - results: Uint8Array[] = []; - - constructor(data?: PartialMessage) { +export class MsgGrantResponse extends Message { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgExecResponse"; + static readonly typeName = "cosmos.authz.v1beta1.MsgGrantResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "results", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrantResponse { + return new MsgGrantResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrantResponse { + return new MsgGrantResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgGrantResponse { + return new MsgGrantResponse().fromJsonString(jsonString, options); } - static equals(a: MsgExecResponse | PlainMessage | undefined, b: MsgExecResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecResponse, a, b); + static equals(a: MsgGrantResponse | PlainMessage | undefined, b: MsgGrantResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgGrantResponse, a, b); } } @@ -152,35 +146,41 @@ export class MsgExec extends Message { } /** - * MsgGrantResponse defines the Msg/MsgGrant response type. + * MsgExecResponse defines the Msg/MsgExecResponse response type. * - * @generated from message cosmos.authz.v1beta1.MsgGrantResponse + * @generated from message cosmos.authz.v1beta1.MsgExecResponse */ -export class MsgGrantResponse extends Message { - constructor(data?: PartialMessage) { +export class MsgExecResponse extends Message { + /** + * @generated from field: repeated bytes results = 1; + */ + results: Uint8Array[] = []; + + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgGrantResponse"; + static readonly typeName = "cosmos.authz.v1beta1.MsgExecResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "results", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecResponse { + return new MsgExecResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecResponse { + return new MsgExecResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgExecResponse { + return new MsgExecResponse().fromJsonString(jsonString, options); } - static equals(a: MsgGrantResponse | PlainMessage | undefined, b: MsgGrantResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgGrantResponse, a, b); + static equals(a: MsgExecResponse | PlainMessage | undefined, b: MsgExecResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecResponse, a, b); } } diff --git a/src/protobufs/cosmos/autocli/v1/options_pb.ts b/src/protobufs/cosmos/autocli/v1/options_pb.ts index 892869fb..78382f73 100644 --- a/src/protobufs/cosmos/autocli/v1/options_pb.ts +++ b/src/protobufs/cosmos/autocli/v1/options_pb.ts @@ -13,14 +13,14 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export class ModuleOptions extends Message { /** - * tx describes the tx command for the module. + * tx describes the tx commands for the module. * * @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor tx = 1; */ tx?: ServiceCommandDescriptor; /** - * query describes the tx command for the module. + * query describes the queries commands for the module. * * @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor query = 2; */ @@ -296,13 +296,6 @@ export class FlagOptions extends Message { */ defaultValue = ""; - /** - * default value is the default value as text if the flag is used without any value. - * - * @generated from field: string no_opt_default_value = 5; - */ - noOptDefaultValue = ""; - /** * deprecated is the usage text to show if this flag is deprecated. * @@ -336,7 +329,6 @@ export class FlagOptions extends Message { { no: 2, name: "shorthand", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "usage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "no_opt_default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "shorthand_deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, diff --git a/src/protobufs/cosmos/bank/module/v1/module_pb.ts b/src/protobufs/cosmos/bank/module/v1/module_pb.ts index f76f42f8..55d36b8b 100644 --- a/src/protobufs/cosmos/bank/module/v1/module_pb.ts +++ b/src/protobufs/cosmos/bank/module/v1/module_pb.ts @@ -13,8 +13,8 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export class Module extends Message { /** - * blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds. - * If left empty it defaults to the list of account names supplied in the auth module configuration as + * blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving + * funds. If left empty it defaults to the list of account names supplied in the auth module configuration as * module_account_permissions * * @generated from field: repeated string blocked_module_accounts_override = 1; @@ -28,6 +28,16 @@ export class Module extends Message { */ authority = ""; + /** + * restrictions_order specifies the order of send restrictions and should be + * a list of module names which provide a send restriction instance. If no + * order is provided, then restrictions will be applied in alphabetical order + * of module names. + * + * @generated from field: repeated string restrictions_order = 3; + */ + restrictionsOrder: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -38,6 +48,7 @@ export class Module extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "blocked_module_accounts_override", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "restrictions_order", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts index 4bee1dbb..39de04fb 100644 --- a/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequest, QueryBalanceResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryParamsRequest, QueryParamsResponse, QuerySendEnabledRequest, QuerySendEnabledResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; +import { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequest, QueryBalanceResponse, QueryDenomMetadataByQueryStringRequest, QueryDenomMetadataByQueryStringResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomOwnersByQueryRequest, QueryDenomOwnersByQueryResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryParamsRequest, QueryParamsResponse, QuerySendEnabledRequest, QuerySendEnabledResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.bank.v1beta1.Query"; @@ -113,7 +113,7 @@ export const QueryParamsService = { } as const; /** - * DenomsMetadata queries the client metadata of a given coin denomination. + * DenomMetadata queries the client metadata of a given coin denomination. * * @generated from rpc cosmos.bank.v1beta1.Query.DenomMetadata */ @@ -124,6 +124,18 @@ export const QueryDenomMetadataService = { Response: QueryDenomMetadataResponse, } as const; +/** + * DenomMetadataByQueryString queries the client metadata of a given coin denomination. + * + * @generated from rpc cosmos.bank.v1beta1.Query.DenomMetadataByQueryString + */ +export const QueryDenomMetadataByQueryStringService = { + typeName: TYPE_NAME, + method: "DenomMetadataByQueryString", + Request: QueryDenomMetadataByQueryStringRequest, + Response: QueryDenomMetadataByQueryStringResponse, +} as const; + /** * DenomsMetadata queries the client metadata for all registered coin * denominations. @@ -155,6 +167,21 @@ export const QueryDenomOwnersService = { Response: QueryDenomOwnersResponse, } as const; +/** + * DenomOwnersByQuery queries for all account addresses that own a particular token + * denomination. + * + * Since: cosmos-sdk 0.50.3 + * + * @generated from rpc cosmos.bank.v1beta1.Query.DenomOwnersByQuery + */ +export const QueryDenomOwnersByQueryService = { + typeName: TYPE_NAME, + method: "DenomOwnersByQuery", + Request: QueryDenomOwnersByQueryRequest, + Response: QueryDenomOwnersByQueryResponse, +} as const; + /** * SendEnabled queries for SendEnabled entries. * diff --git a/src/protobufs/cosmos/bank/v1beta1/query_pb.ts b/src/protobufs/cosmos/bank/v1beta1/query_pb.ts index cc98d6da..1ebe26a9 100644 --- a/src/protobufs/cosmos/bank/v1beta1/query_pb.ts +++ b/src/protobufs/cosmos/bank/v1beta1/query_pb.ts @@ -119,6 +119,15 @@ export class QueryAllBalancesRequest extends Message { */ pagination?: PageRequest; + /** + * resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: bool resolve_denom = 3; + */ + resolveDenom = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -129,6 +138,7 @@ export class QueryAllBalancesRequest extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, + { no: 3, name: "resolve_denom", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBalancesRequest { @@ -616,6 +626,8 @@ export class QueryParamsRequest extends Message { */ export class QueryParamsResponse extends Message { /** + * params provides the parameters of the bank module. + * * @generated from field: cosmos.bank.v1beta1.Params params = 1; */ params?: Params; @@ -822,6 +834,90 @@ export class QueryDenomMetadataResponse extends Message { + /** + * denom is the coin denom to query the metadata for. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMetadataByQueryStringRequest, a, b); + } +} + +/** + * QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC + * method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. + * + * @generated from message cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse + */ +export class QueryDenomMetadataByQueryStringResponse extends Message { + /** + * metadata describes and provides all the client information for the requested token. + * + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 1; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMetadataByQueryStringResponse, a, b); + } +} + /** * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, * which queries for a paginated set of all account holders of a particular @@ -975,6 +1071,108 @@ export class QueryDenomOwnersResponse extends Message } } +/** + * QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + * + * Since: cosmos-sdk 0.50.3 + * + * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest + */ +export class QueryDenomOwnersByQueryRequest extends Message { + /** + * denom defines the coin denomination to query all account holders for. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * pagination defines an optional 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.bank.v1beta1.QueryDenomOwnersByQueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersByQueryRequest { + return new QueryDenomOwnersByQueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersByQueryRequest { + return new QueryDenomOwnersByQueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersByQueryRequest { + return new QueryDenomOwnersByQueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomOwnersByQueryRequest | PlainMessage | undefined, b: QueryDenomOwnersByQueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomOwnersByQueryRequest, a, b); + } +} + +/** + * QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. + * + * Since: cosmos-sdk 0.50.3 + * + * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse + */ +export class QueryDenomOwnersByQueryResponse extends Message { + /** + * @generated from field: repeated cosmos.bank.v1beta1.DenomOwner denom_owners = 1; + */ + denomOwners: DenomOwner[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_owners", kind: "message", T: DenomOwner, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersByQueryResponse { + return new QueryDenomOwnersByQueryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersByQueryResponse { + return new QueryDenomOwnersByQueryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersByQueryResponse { + return new QueryDenomOwnersByQueryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomOwnersByQueryResponse | PlainMessage | undefined, b: QueryDenomOwnersByQueryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomOwnersByQueryResponse, a, b); + } +} + /** * QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. * diff --git a/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts b/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts index dd25909a..fd428f5c 100644 --- a/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts @@ -275,6 +275,8 @@ export class MsgUpdateParamsResponse extends Message { */ export class MsgSetSendEnabled extends Message { /** + * authority is the address that controls the module. + * * @generated from field: string authority = 1; */ authority = ""; diff --git a/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts b/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts index 63c6b3ac..021d6c3d 100644 --- a/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts +++ b/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts @@ -6,6 +6,7 @@ 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 @@ -647,3 +648,84 @@ export class SearchTxsResult extends Message { } } +/** + * SearchBlocksResult defines a structure for querying blocks pageable + * + * @generated from message cosmos.base.abci.v1beta1.SearchBlocksResult + */ +export class SearchBlocksResult extends Message { + /** + * 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) { + 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): SearchBlocksResult { + return new SearchBlocksResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchBlocksResult { + return new SearchBlocksResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchBlocksResult { + return new SearchBlocksResult().fromJsonString(jsonString, options); + } + + static equals(a: SearchBlocksResult | PlainMessage | undefined, b: SearchBlocksResult | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchBlocksResult, a, b); + } +} + diff --git a/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts index 612b6c5f..c8e0711b 100644 --- a/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { ConfigRequest, ConfigResponse } from "./query_pb.js"; +import { ConfigRequest, ConfigResponse, StatusRequest, StatusResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.base.node.v1beta1.Service"; @@ -19,3 +19,15 @@ export const ServiceConfigService = { 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; + diff --git a/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts b/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts index a78eff5a..fb7ce52b 100644 --- a/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts +++ b/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts @@ -4,7 +4,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; /** * ConfigRequest defines the request structure for the Config gRPC query. @@ -50,6 +50,21 @@ export class ConfigResponse extends Message { */ 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) { super(); proto3.util.initPartial(data, this); @@ -59,6 +74,9 @@ export class ConfigResponse extends Message { 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): ConfigResponse { @@ -78,3 +96,109 @@ export class ConfigResponse extends Message { } } +/** + * StateRequest defines the request structure for the status of a node. + * + * @generated from message cosmos.base.node.v1beta1.StatusRequest + */ +export class StatusRequest extends Message { + constructor(data?: PartialMessage) { + 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): StatusRequest { + return new StatusRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StatusRequest { + return new StatusRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StatusRequest { + return new StatusRequest().fromJsonString(jsonString, options); + } + + static equals(a: StatusRequest | PlainMessage | undefined, b: StatusRequest | PlainMessage | 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 { + /** + * 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) { + 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): StatusResponse { + return new StatusResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StatusResponse { + return new StatusResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StatusResponse { + return new StatusResponse().fromJsonString(jsonString, options); + } + + static equals(a: StatusResponse | PlainMessage | undefined, b: StatusResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(StatusResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/base/v1beta1/coin_pb.ts b/src/protobufs/cosmos/base/v1beta1/coin_pb.ts index c7d7f32b..b0e2dd6d 100644 --- a/src/protobufs/cosmos/base/v1beta1/coin_pb.ts +++ b/src/protobufs/cosmos/base/v1beta1/coin_pb.ts @@ -104,6 +104,7 @@ export class DecCoin extends Message { /** * 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 */ @@ -143,6 +144,7 @@ export class IntProto extends Message { /** * 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 */ diff --git a/src/protobufs/cosmos/capability/v1beta1/capability_pb.ts b/src/protobufs/cosmos/capability/v1beta1/capability_pb.ts deleted file mode 100644 index 89385978..00000000 --- a/src/protobufs/cosmos/capability/v1beta1/capability_pb.ts +++ /dev/null @@ -1,134 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/capability/v1beta1/capability.proto (package cosmos.capability.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"; - -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - * - * @generated from message cosmos.capability.v1beta1.Capability - */ -export class Capability extends Message { - /** - * @generated from field: uint64 index = 1; - */ - index = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.Capability"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Capability { - return new Capability().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Capability { - return new Capability().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Capability { - return new Capability().fromJsonString(jsonString, options); - } - - static equals(a: Capability | PlainMessage | undefined, b: Capability | PlainMessage | undefined): boolean { - return proto3.util.equals(Capability, a, b); - } -} - -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - * - * @generated from message cosmos.capability.v1beta1.Owner - */ -export class Owner extends Message { - /** - * @generated from field: string module = 1; - */ - module = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.Owner"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Owner { - return new Owner().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Owner { - return new Owner().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Owner { - return new Owner().fromJsonString(jsonString, options); - } - - static equals(a: Owner | PlainMessage | undefined, b: Owner | PlainMessage | undefined): boolean { - return proto3.util.equals(Owner, a, b); - } -} - -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - * - * @generated from message cosmos.capability.v1beta1.CapabilityOwners - */ -export class CapabilityOwners extends Message { - /** - * @generated from field: repeated cosmos.capability.v1beta1.Owner owners = 1; - */ - owners: Owner[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.CapabilityOwners"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owners", kind: "message", T: Owner, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CapabilityOwners { - return new CapabilityOwners().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CapabilityOwners { - return new CapabilityOwners().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CapabilityOwners { - return new CapabilityOwners().fromJsonString(jsonString, options); - } - - static equals(a: CapabilityOwners | PlainMessage | undefined, b: CapabilityOwners | PlainMessage | undefined): boolean { - return proto3.util.equals(CapabilityOwners, a, b); - } -} - diff --git a/src/protobufs/cosmos/capability/v1beta1/genesis_pb.ts b/src/protobufs/cosmos/capability/v1beta1/genesis_pb.ts deleted file mode 100644 index 74b878bb..00000000 --- a/src/protobufs/cosmos/capability/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,108 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/capability/v1beta1/genesis.proto (package cosmos.capability.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 { CapabilityOwners } from "./capability_pb.js"; - -/** - * GenesisOwners defines the capability owners with their corresponding index. - * - * @generated from message cosmos.capability.v1beta1.GenesisOwners - */ -export class GenesisOwners extends Message { - /** - * index is the index of the capability owner. - * - * @generated from field: uint64 index = 1; - */ - index = protoInt64.zero; - - /** - * index_owners are the owners at the given index. - * - * @generated from field: cosmos.capability.v1beta1.CapabilityOwners index_owners = 2; - */ - indexOwners?: CapabilityOwners; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.GenesisOwners"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "index_owners", kind: "message", T: CapabilityOwners }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisOwners { - return new GenesisOwners().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisOwners { - return new GenesisOwners().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisOwners { - return new GenesisOwners().fromJsonString(jsonString, options); - } - - static equals(a: GenesisOwners | PlainMessage | undefined, b: GenesisOwners | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisOwners, a, b); - } -} - -/** - * GenesisState defines the capability module's genesis state. - * - * @generated from message cosmos.capability.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * index is the capability global index. - * - * @generated from field: uint64 index = 1; - */ - index = protoInt64.zero; - - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - * - * @generated from field: repeated cosmos.capability.v1beta1.GenesisOwners owners = 2; - */ - owners: GenesisOwners[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "owners", kind: "message", T: GenesisOwners, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/src/protobufs/cosmos/capability/module/v1/module_pb.ts b/src/protobufs/cosmos/circuit/module/v1/module_pb.ts similarity index 65% rename from src/protobufs/cosmos/capability/module/v1/module_pb.ts rename to src/protobufs/cosmos/circuit/module/v1/module_pb.ts index ae30c0d5..52c26669 100644 --- a/src/protobufs/cosmos/capability/module/v1/module_pb.ts +++ b/src/protobufs/cosmos/circuit/module/v1/module_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/capability/module/v1/module.proto (package cosmos.capability.module.v1, syntax proto3) +// @generated from file cosmos/circuit/module/v1/module.proto (package cosmos.circuit.module.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -7,18 +7,17 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; /** - * Module is the config object of the capability module. + * Module is the config object of the circuit module. * - * @generated from message cosmos.capability.module.v1.Module + * @generated from message cosmos.circuit.module.v1.Module */ export class Module extends Message { /** - * seal_keeper defines if keeper.Seal() will run on BeginBlock() to prevent further modules from creating a scoped - * keeper. For more details check x/capability/keeper.go. + * authority defines the custom module authority. If not set, defaults to the governance module. * - * @generated from field: bool seal_keeper = 1; + * @generated from field: string authority = 1; */ - sealKeeper = false; + authority = ""; constructor(data?: PartialMessage) { super(); @@ -26,9 +25,9 @@ export class Module extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.module.v1.Module"; + static readonly typeName = "cosmos.circuit.module.v1.Module"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "seal_keeper", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/cosmos/circuit/v1/query_cosmes.ts b/src/protobufs/cosmos/circuit/v1/query_cosmes.ts new file mode 100644 index 00000000..25248d2a --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/query.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { AccountResponse, AccountsResponse, DisabledListResponse, QueryAccountRequest, QueryAccountsRequest, QueryDisabledListRequest } from "./query_pb.js"; + +const TYPE_NAME = "cosmos.circuit.v1.Query"; + +/** + * Account returns account permissions. + * + * @generated from rpc cosmos.circuit.v1.Query.Account + */ +export const QueryAccountService = { + typeName: TYPE_NAME, + method: "Account", + Request: QueryAccountRequest, + Response: AccountResponse, +} as const; + +/** + * Account returns account permissions. + * + * @generated from rpc cosmos.circuit.v1.Query.Accounts + */ +export const QueryAccountsService = { + typeName: TYPE_NAME, + method: "Accounts", + Request: QueryAccountsRequest, + Response: AccountsResponse, +} as const; + +/** + * DisabledList returns a list of disabled message urls + * + * @generated from rpc cosmos.circuit.v1.Query.DisabledList + */ +export const QueryDisabledListService = { + typeName: TYPE_NAME, + method: "DisabledList", + Request: QueryDisabledListRequest, + Response: DisabledListResponse, +} as const; + diff --git a/src/protobufs/cosmos/circuit/v1/query_pb.ts b/src/protobufs/cosmos/circuit/v1/query_pb.ts new file mode 100644 index 00000000..79bf3426 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/query_pb.ts @@ -0,0 +1,248 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/query.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { GenesisAccountPermissions, Permissions } from "./types_pb.js"; +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; + +/** + * QueryAccountRequest is the request type for the Query/Account RPC method. + * + * @generated from message cosmos.circuit.v1.QueryAccountRequest + */ +export class QueryAccountRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.QueryAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountRequest, a, b); + } +} + +/** + * AccountResponse is the response type for the Query/Account RPC method. + * + * @generated from message cosmos.circuit.v1.AccountResponse + */ +export class AccountResponse extends Message { + /** + * @generated from field: cosmos.circuit.v1.Permissions permission = 1; + */ + permission?: Permissions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.AccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "permission", kind: "message", T: Permissions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountResponse { + return new AccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountResponse { + return new AccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountResponse { + return new AccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: AccountResponse | PlainMessage | undefined, b: AccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountResponse, a, b); + } +} + +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * @generated from message cosmos.circuit.v1.QueryAccountsRequest + */ +export class QueryAccountsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.QueryAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountsRequest | PlainMessage | undefined, b: QueryAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountsRequest, a, b); + } +} + +/** + * AccountsResponse is the response type for the Query/Accounts RPC method. + * + * @generated from message cosmos.circuit.v1.AccountsResponse + */ +export class AccountsResponse extends Message { + /** + * @generated from field: repeated cosmos.circuit.v1.GenesisAccountPermissions accounts = 1; + */ + accounts: GenesisAccountPermissions[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.AccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: GenesisAccountPermissions, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountsResponse { + return new AccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountsResponse { + return new AccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountsResponse { + return new AccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: AccountsResponse | PlainMessage | undefined, b: AccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountsResponse, a, b); + } +} + +/** + * QueryDisableListRequest is the request type for the Query/DisabledList RPC method. + * + * @generated from message cosmos.circuit.v1.QueryDisabledListRequest + */ +export class QueryDisabledListRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.QueryDisabledListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDisabledListRequest { + return new QueryDisabledListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDisabledListRequest { + return new QueryDisabledListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDisabledListRequest { + return new QueryDisabledListRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDisabledListRequest | PlainMessage | undefined, b: QueryDisabledListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDisabledListRequest, a, b); + } +} + +/** + * DisabledListResponse is the response type for the Query/DisabledList RPC method. + * + * @generated from message cosmos.circuit.v1.DisabledListResponse + */ +export class DisabledListResponse extends Message { + /** + * @generated from field: repeated string disabled_list = 1; + */ + disabledList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.DisabledListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "disabled_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DisabledListResponse { + return new DisabledListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DisabledListResponse { + return new DisabledListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DisabledListResponse { + return new DisabledListResponse().fromJsonString(jsonString, options); + } + + static equals(a: DisabledListResponse | PlainMessage | undefined, b: DisabledListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DisabledListResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts b/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts new file mode 100644 index 00000000..cb793b68 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/tx.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAuthorizeCircuitBreaker, MsgAuthorizeCircuitBreakerResponse, MsgResetCircuitBreaker, MsgResetCircuitBreakerResponse, MsgTripCircuitBreaker, MsgTripCircuitBreakerResponse } from "./tx_pb.js"; + +const TYPE_NAME = "cosmos.circuit.v1.Msg"; + +/** + * AuthorizeCircuitBreaker allows a super-admin to grant (or revoke) another + * account's circuit breaker permissions. + * + * @generated from rpc cosmos.circuit.v1.Msg.AuthorizeCircuitBreaker + */ +export const MsgAuthorizeCircuitBreakerService = { + typeName: TYPE_NAME, + method: "AuthorizeCircuitBreaker", + Request: MsgAuthorizeCircuitBreaker, + Response: MsgAuthorizeCircuitBreakerResponse, +} as const; + +/** + * TripCircuitBreaker pauses processing of Msg's in the state machine. + * + * @generated from rpc cosmos.circuit.v1.Msg.TripCircuitBreaker + */ +export const MsgTripCircuitBreakerService = { + typeName: TYPE_NAME, + method: "TripCircuitBreaker", + Request: MsgTripCircuitBreaker, + Response: MsgTripCircuitBreakerResponse, +} as const; + +/** + * ResetCircuitBreaker resumes processing of Msg's in the state machine that + * have been been paused using TripCircuitBreaker. + * + * @generated from rpc cosmos.circuit.v1.Msg.ResetCircuitBreaker + */ +export const MsgResetCircuitBreakerService = { + typeName: TYPE_NAME, + method: "ResetCircuitBreaker", + Request: MsgResetCircuitBreaker, + Response: MsgResetCircuitBreakerResponse, +} as const; + diff --git a/src/protobufs/cosmos/circuit/v1/tx_pb.ts b/src/protobufs/cosmos/circuit/v1/tx_pb.ts new file mode 100644 index 00000000..a0f6fb04 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/tx_pb.ts @@ -0,0 +1,290 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/tx.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Permissions } from "./types_pb.js"; + +/** + * MsgAuthorizeCircuitBreaker defines the Msg/AuthorizeCircuitBreaker request type. + * + * @generated from message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker + */ +export class MsgAuthorizeCircuitBreaker extends Message { + /** + * granter is the granter of the circuit breaker permissions and must have + * LEVEL_SUPER_ADMIN. + * + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * grantee is the account authorized with the provided permissions. + * + * @generated from field: string grantee = 2; + */ + grantee = ""; + + /** + * permissions are the circuit breaker permissions that the grantee receives. + * These will overwrite any existing permissions. LEVEL_NONE_UNSPECIFIED can + * be specified to revoke all permissions. + * + * @generated from field: cosmos.circuit.v1.Permissions permissions = 3; + */ + permissions?: Permissions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "permissions", kind: "message", T: Permissions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeCircuitBreaker { + return new MsgAuthorizeCircuitBreaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeCircuitBreaker { + return new MsgAuthorizeCircuitBreaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeCircuitBreaker { + return new MsgAuthorizeCircuitBreaker().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeCircuitBreaker | PlainMessage | undefined, b: MsgAuthorizeCircuitBreaker | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeCircuitBreaker, a, b); + } +} + +/** + * MsgAuthorizeCircuitBreakerResponse defines the Msg/AuthorizeCircuitBreaker response type. + * + * @generated from message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse + */ +export class MsgAuthorizeCircuitBreakerResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeCircuitBreakerResponse { + return new MsgAuthorizeCircuitBreakerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeCircuitBreakerResponse { + return new MsgAuthorizeCircuitBreakerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeCircuitBreakerResponse { + return new MsgAuthorizeCircuitBreakerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeCircuitBreakerResponse | PlainMessage | undefined, b: MsgAuthorizeCircuitBreakerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeCircuitBreakerResponse, a, b); + } +} + +/** + * MsgTripCircuitBreaker defines the Msg/TripCircuitBreaker request type. + * + * @generated from message cosmos.circuit.v1.MsgTripCircuitBreaker + */ +export class MsgTripCircuitBreaker extends Message { + /** + * authority is the account authorized to trip the circuit breaker. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * msg_type_urls specifies a list of type URLs to immediately stop processing. + * IF IT IS LEFT EMPTY, ALL MSG PROCESSING WILL STOP IMMEDIATELY. + * This value is validated against the authority's permissions and if the + * authority does not have permissions to trip the specified msg type URLs + * (or all URLs), the operation will fail. + * + * @generated from field: repeated string msg_type_urls = 2; + */ + msgTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgTripCircuitBreaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "msg_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTripCircuitBreaker { + return new MsgTripCircuitBreaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTripCircuitBreaker { + return new MsgTripCircuitBreaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTripCircuitBreaker { + return new MsgTripCircuitBreaker().fromJsonString(jsonString, options); + } + + static equals(a: MsgTripCircuitBreaker | PlainMessage | undefined, b: MsgTripCircuitBreaker | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTripCircuitBreaker, a, b); + } +} + +/** + * MsgTripCircuitBreakerResponse defines the Msg/TripCircuitBreaker response type. + * + * @generated from message cosmos.circuit.v1.MsgTripCircuitBreakerResponse + */ +export class MsgTripCircuitBreakerResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgTripCircuitBreakerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTripCircuitBreakerResponse { + return new MsgTripCircuitBreakerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTripCircuitBreakerResponse { + return new MsgTripCircuitBreakerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTripCircuitBreakerResponse { + return new MsgTripCircuitBreakerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTripCircuitBreakerResponse | PlainMessage | undefined, b: MsgTripCircuitBreakerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTripCircuitBreakerResponse, a, b); + } +} + +/** + * MsgResetCircuitBreaker defines the Msg/ResetCircuitBreaker request type. + * + * @generated from message cosmos.circuit.v1.MsgResetCircuitBreaker + */ +export class MsgResetCircuitBreaker extends Message { + /** + * authority is the account authorized to trip or reset the circuit breaker. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * msg_type_urls specifies a list of Msg type URLs to resume processing. If + * it is left empty all Msg processing for type URLs that the account is + * authorized to trip will resume. + * + * @generated from field: repeated string msg_type_urls = 3; + */ + msgTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgResetCircuitBreaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "msg_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgResetCircuitBreaker { + return new MsgResetCircuitBreaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgResetCircuitBreaker { + return new MsgResetCircuitBreaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgResetCircuitBreaker { + return new MsgResetCircuitBreaker().fromJsonString(jsonString, options); + } + + static equals(a: MsgResetCircuitBreaker | PlainMessage | undefined, b: MsgResetCircuitBreaker | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgResetCircuitBreaker, a, b); + } +} + +/** + * MsgResetCircuitBreakerResponse defines the Msg/ResetCircuitBreaker response type. + * + * @generated from message cosmos.circuit.v1.MsgResetCircuitBreakerResponse + */ +export class MsgResetCircuitBreakerResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgResetCircuitBreakerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgResetCircuitBreakerResponse { + return new MsgResetCircuitBreakerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgResetCircuitBreakerResponse { + return new MsgResetCircuitBreakerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgResetCircuitBreakerResponse { + return new MsgResetCircuitBreakerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgResetCircuitBreakerResponse | PlainMessage | undefined, b: MsgResetCircuitBreakerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgResetCircuitBreakerResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/circuit/v1/types_pb.ts b/src/protobufs/cosmos/circuit/v1/types_pb.ts new file mode 100644 index 00000000..e35b5d05 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/types_pb.ts @@ -0,0 +1,198 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/types.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Permissions are the permissions that an account has to trip + * or reset the circuit breaker. + * + * @generated from message cosmos.circuit.v1.Permissions + */ +export class Permissions extends Message { + /** + * level is the level of permissions granted to this account. + * + * @generated from field: cosmos.circuit.v1.Permissions.Level level = 1; + */ + level = Permissions_Level.NONE_UNSPECIFIED; + + /** + * limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg type + * URLs that the account can trip. It is an error to use limit_type_urls with + * a level other than LEVEL_SOME_MSGS. + * + * @generated from field: repeated string limit_type_urls = 2; + */ + limitTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.Permissions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "level", kind: "enum", T: proto3.getEnumType(Permissions_Level) }, + { no: 2, name: "limit_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Permissions { + return new Permissions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Permissions { + return new Permissions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Permissions { + return new Permissions().fromJsonString(jsonString, options); + } + + static equals(a: Permissions | PlainMessage | undefined, b: Permissions | PlainMessage | undefined): boolean { + return proto3.util.equals(Permissions, a, b); + } +} + +/** + * Level is the permission level. + * + * @generated from enum cosmos.circuit.v1.Permissions.Level + */ +export enum Permissions_Level { + /** + * LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit + * breaker permissions. + * + * @generated from enum value: LEVEL_NONE_UNSPECIFIED = 0; + */ + NONE_UNSPECIFIED = 0, + + /** + * LEVEL_SOME_MSGS indicates that the account will have permission to + * trip or reset the circuit breaker for some Msg type URLs. If this level + * is chosen, a non-empty list of Msg type URLs must be provided in + * limit_type_urls. + * + * @generated from enum value: LEVEL_SOME_MSGS = 1; + */ + SOME_MSGS = 1, + + /** + * LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit + * breaker for Msg's of all type URLs. + * + * @generated from enum value: LEVEL_ALL_MSGS = 2; + */ + ALL_MSGS = 2, + + /** + * LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker + * actions and can grant permissions to other accounts. + * + * @generated from enum value: LEVEL_SUPER_ADMIN = 3; + */ + SUPER_ADMIN = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(Permissions_Level) +proto3.util.setEnumType(Permissions_Level, "cosmos.circuit.v1.Permissions.Level", [ + { no: 0, name: "LEVEL_NONE_UNSPECIFIED" }, + { no: 1, name: "LEVEL_SOME_MSGS" }, + { no: 2, name: "LEVEL_ALL_MSGS" }, + { no: 3, name: "LEVEL_SUPER_ADMIN" }, +]); + +/** + * GenesisAccountPermissions is the account permissions for the circuit breaker in genesis + * + * @generated from message cosmos.circuit.v1.GenesisAccountPermissions + */ +export class GenesisAccountPermissions extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.circuit.v1.Permissions permissions = 2; + */ + permissions?: Permissions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.GenesisAccountPermissions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "message", T: Permissions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccountPermissions { + return new GenesisAccountPermissions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccountPermissions { + return new GenesisAccountPermissions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisAccountPermissions { + return new GenesisAccountPermissions().fromJsonString(jsonString, options); + } + + static equals(a: GenesisAccountPermissions | PlainMessage | undefined, b: GenesisAccountPermissions | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisAccountPermissions, a, b); + } +} + +/** + * GenesisState is the state that must be provided at genesis. + * + * @generated from message cosmos.circuit.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated cosmos.circuit.v1.GenesisAccountPermissions account_permissions = 1; + */ + accountPermissions: GenesisAccountPermissions[] = []; + + /** + * @generated from field: repeated string disabled_type_urls = 2; + */ + disabledTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_permissions", kind: "message", T: GenesisAccountPermissions, repeated: true }, + { no: 2, name: "disabled_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/cosmos/consensus/v1/query_cosmes.ts b/src/protobufs/cosmos/consensus/v1/query_cosmes.ts index 03cdc1c9..934b60b2 100644 --- a/src/protobufs/cosmos/consensus/v1/query_cosmes.ts +++ b/src/protobufs/cosmos/consensus/v1/query_cosmes.ts @@ -10,7 +10,7 @@ import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.consensus.v1.Query"; /** - * Params queries the parameters of x/consensus_param module. + * Params queries the parameters of x/consensus module. * * @generated from rpc cosmos.consensus.v1.Query.Params */ diff --git a/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts b/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts index 98a0fd8b..0986f46b 100644 --- a/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts +++ b/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts @@ -10,7 +10,7 @@ import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.consensus.v1.Msg"; /** - * UpdateParams defines a governance operation for updating the x/consensus_param module parameters. + * UpdateParams defines a governance operation for updating the x/consensus module parameters. * The authority is defined in the keeper. * * Since: cosmos-sdk 0.47 diff --git a/src/protobufs/cosmos/consensus/v1/tx_pb.ts b/src/protobufs/cosmos/consensus/v1/tx_pb.ts index 1e0d258e..0352281b 100644 --- a/src/protobufs/cosmos/consensus/v1/tx_pb.ts +++ b/src/protobufs/cosmos/consensus/v1/tx_pb.ts @@ -7,7 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import { BlockParams, EvidenceParams, ValidatorParams } from "../../../tendermint/types/params_pb.js"; +import { ABCIParams, BlockParams, EvidenceParams, ValidatorParams } from "../../../tendermint/types/params_pb.js"; /** * MsgUpdateParams is the Msg/UpdateParams request type. @@ -43,6 +43,13 @@ export class MsgUpdateParams extends Message { */ validator?: ValidatorParams; + /** + * Since: cosmos-sdk 0.50 + * + * @generated from field: tendermint.types.ABCIParams abci = 5; + */ + abci?: ABCIParams; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -55,6 +62,7 @@ export class MsgUpdateParams extends Message { { no: 2, name: "block", kind: "message", T: BlockParams }, { no: 3, name: "evidence", kind: "message", T: EvidenceParams }, { no: 4, name: "validator", kind: "message", T: ValidatorParams }, + { no: 5, name: "abci", kind: "message", T: ABCIParams }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { diff --git a/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts b/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts index eb556c73..a2213a07 100644 --- a/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts +++ b/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts @@ -50,7 +50,7 @@ export class PubKey extends Message { } /** - * Deprecated: PrivKey defines a ed25519 private key. + * PrivKey defines a ed25519 private key. * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. * * @generated from message cosmos.crypto.ed25519.PrivKey diff --git a/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts index 09183a68..c8046eb1 100644 --- a/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts @@ -80,7 +80,7 @@ export const QueryDelegationRewardsService = { } as const; /** - * DelegationTotalRewards queries the total rewards accrued by a each + * DelegationTotalRewards queries the total rewards accrued by each * validator. * * @generated from rpc cosmos.distribution.v1beta1.Query.DelegationTotalRewards diff --git a/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts b/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts index 3c684f6e..b37bf5a0 100644 --- a/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts +++ b/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse, MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse } from "./tx_pb.js"; +import { MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse, MsgDepositValidatorRewardsPool, MsgDepositValidatorRewardsPoolResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse, MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.distribution.v1beta1.Msg"; @@ -91,3 +91,18 @@ export const MsgCommunityPoolSpendService = { Response: MsgCommunityPoolSpendResponse, } as const; +/** + * DepositValidatorRewardsPool defines a method to provide additional rewards + * to delegators to a specific validator. + * + * Since: cosmos-sdk 0.50 + * + * @generated from rpc cosmos.distribution.v1beta1.Msg.DepositValidatorRewardsPool + */ +export const MsgDepositValidatorRewardsPoolService = { + typeName: TYPE_NAME, + method: "DepositValidatorRewardsPool", + Request: MsgDepositValidatorRewardsPool, + Response: MsgDepositValidatorRewardsPoolResponse, +} as const; + diff --git a/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts b/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts index 441d3eaf..611f0795 100644 --- a/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts @@ -519,3 +519,93 @@ export class MsgCommunityPoolSpendResponse extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositValidatorRewardsPool { + return new MsgDepositValidatorRewardsPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositValidatorRewardsPool { + return new MsgDepositValidatorRewardsPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositValidatorRewardsPool { + return new MsgDepositValidatorRewardsPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositValidatorRewardsPool | PlainMessage | undefined, b: MsgDepositValidatorRewardsPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositValidatorRewardsPool, a, b); + } +} + +/** + * MsgDepositValidatorRewardsPoolResponse defines the response to executing a + * MsgDepositValidatorRewardsPool message. + * + * Since: cosmos-sdk 0.50 + * + * @generated from message cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse + */ +export class MsgDepositValidatorRewardsPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositValidatorRewardsPoolResponse { + return new MsgDepositValidatorRewardsPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositValidatorRewardsPoolResponse { + return new MsgDepositValidatorRewardsPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositValidatorRewardsPoolResponse { + return new MsgDepositValidatorRewardsPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositValidatorRewardsPoolResponse | PlainMessage | undefined, b: MsgDepositValidatorRewardsPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositValidatorRewardsPoolResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts index 58f64fec..af56a2bb 100644 --- a/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts @@ -10,7 +10,7 @@ import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesByGranter const TYPE_NAME = "cosmos.feegrant.v1beta1.Query"; /** - * Allowance returns fee granted to the grantee by the granter. + * Allowance returns granted allwance to the grantee by the granter. * * @generated from rpc cosmos.feegrant.v1beta1.Query.Allowance */ @@ -22,7 +22,7 @@ export const QueryAllowanceService = { } as const; /** - * Allowances returns all the grants for address. + * Allowances returns all the grants for the given grantee address. * * @generated from rpc cosmos.feegrant.v1beta1.Query.Allowances */ diff --git a/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts b/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts index 629064d3..63979fae 100644 --- a/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts +++ b/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts @@ -5,7 +5,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx_pb.js"; +import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgPruneAllowances, MsgPruneAllowancesResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.feegrant.v1beta1.Msg"; @@ -35,3 +35,17 @@ export const MsgRevokeAllowanceService = { Response: MsgRevokeAllowanceResponse, } as const; +/** + * PruneAllowances prunes expired fee allowances, currently up to 75 at a time. + * + * Since cosmos-sdk 0.50 + * + * @generated from rpc cosmos.feegrant.v1beta1.Msg.PruneAllowances + */ +export const MsgPruneAllowancesService = { + typeName: TYPE_NAME, + method: "PruneAllowances", + Request: MsgPruneAllowances, + Response: MsgPruneAllowancesResponse, +} as const; + diff --git a/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts b/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts index 2170bf0c..924fdbab 100644 --- a/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts @@ -181,3 +181,81 @@ export class MsgRevokeAllowanceResponse extends Message { + /** + * pruner is the address of the user pruning expired allowances. + * + * @generated from field: string pruner = 1; + */ + pruner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.feegrant.v1beta1.MsgPruneAllowances"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pruner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAllowances { + return new MsgPruneAllowances().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAllowances { + return new MsgPruneAllowances().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPruneAllowances { + return new MsgPruneAllowances().fromJsonString(jsonString, options); + } + + static equals(a: MsgPruneAllowances | PlainMessage | undefined, b: MsgPruneAllowances | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPruneAllowances, a, b); + } +} + +/** + * MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. + * + * Since cosmos-sdk 0.50 + * + * @generated from message cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse + */ +export class MsgPruneAllowancesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAllowancesResponse { + return new MsgPruneAllowancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAllowancesResponse { + return new MsgPruneAllowancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPruneAllowancesResponse { + return new MsgPruneAllowancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPruneAllowancesResponse | PlainMessage | undefined, b: MsgPruneAllowancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPruneAllowancesResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/gov/module/v1/module_pb.ts b/src/protobufs/cosmos/gov/module/v1/module_pb.ts index a83f9d38..5235ea31 100644 --- a/src/protobufs/cosmos/gov/module/v1/module_pb.ts +++ b/src/protobufs/cosmos/gov/module/v1/module_pb.ts @@ -13,7 +13,7 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; */ export class Module extends Message { /** - * max_metadata_len defines the maximum proposal metadata length. + * max_metadata_len defines the maximum proposal metadata length. * Defaults to 255 if not explicitly set. * * @generated from field: uint64 max_metadata_len = 1; diff --git a/src/protobufs/cosmos/gov/v1/genesis_pb.ts b/src/protobufs/cosmos/gov/v1/genesis_pb.ts index 0f6e0188..985b562f 100644 --- a/src/protobufs/cosmos/gov/v1/genesis_pb.ts +++ b/src/protobufs/cosmos/gov/v1/genesis_pb.ts @@ -79,6 +79,18 @@ export class GenesisState extends Message { */ params?: Params; + /** + * The constitution allows builders to lay a foundation and define purpose. + * This is an immutable string set in genesis. + * There are no amendments, to go outside of scope, just fork. + * constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string constitution = 9; + */ + constitution = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -95,6 +107,7 @@ export class GenesisState extends Message { { no: 6, name: "voting_params", kind: "message", T: VotingParams }, { no: 7, name: "tally_params", kind: "message", T: TallyParams }, { no: 8, name: "params", kind: "message", T: Params }, + { no: 9, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/cosmos/gov/v1/gov_pb.ts b/src/protobufs/cosmos/gov/v1/gov_pb.ts index 778544b1..0799f1d5 100644 --- a/src/protobufs/cosmos/gov/v1/gov_pb.ts +++ b/src/protobufs/cosmos/gov/v1/gov_pb.ts @@ -302,6 +302,8 @@ export class Proposal extends Message { /** * metadata is any arbitrary metadata attached to the proposal. + * the recommended format of the metadata is to be found here: + * https://docs.cosmos.network/v0.47/modules/gov#proposal-3 * * @generated from field: string metadata = 10; */ @@ -326,7 +328,7 @@ export class Proposal extends Message { summary = ""; /** - * Proposer is the address of the proposal sumbitter + * proposer is the address of the proposal sumbitter * * Since: cosmos-sdk 0.47 * @@ -334,6 +336,24 @@ export class Proposal extends Message { */ proposer = ""; + /** + * expedited defines if the proposal is expedited + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: bool expedited = 14; + */ + expedited = false; + + /** + * failed_reason defines the reason why the proposal failed + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string failed_reason = 15; + */ + failedReason = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -355,6 +375,8 @@ export class Proposal extends Message { { no: 11, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "expedited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 15, name: "failed_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { @@ -468,7 +490,8 @@ export class Vote extends Message { options: WeightedVoteOption[] = []; /** - * metadata is any arbitrary metadata to attached to the vote. + * metadata is any arbitrary metadata attached to the vote. + * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 * * @generated from field: string metadata = 5; */ @@ -509,6 +532,7 @@ export class Vote extends Message { * DepositParams defines the params for deposits on governance proposals. * * @generated from message cosmos.gov.v1.DepositParams + * @deprecated */ export class DepositParams extends Message { /** @@ -559,6 +583,7 @@ export class DepositParams extends Message { * VotingParams defines the params for voting on governance proposals. * * @generated from message cosmos.gov.v1.VotingParams + * @deprecated */ export class VotingParams extends Message { /** @@ -600,6 +625,7 @@ export class VotingParams extends Message { * TallyParams defines the params for tallying votes on governance proposals. * * @generated from message cosmos.gov.v1.TallyParams + * @deprecated */ export class TallyParams extends Message { /** @@ -715,6 +741,50 @@ export class Params extends Message { */ minInitialDepositRatio = ""; + /** + * The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string proposal_cancel_ratio = 8; + */ + proposalCancelRatio = ""; + + /** + * The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. + * If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string proposal_cancel_dest = 9; + */ + proposalCancelDest = ""; + + /** + * Duration of the voting period of an expedited proposal. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: google.protobuf.Duration expedited_voting_period = 10; + */ + expeditedVotingPeriod?: Duration; + + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string expedited_threshold = 11; + */ + expeditedThreshold = ""; + + /** + * Minimum expedited deposit for a proposal to enter voting period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin expedited_min_deposit = 12; + */ + expeditedMinDeposit: Coin[] = []; + /** * burn deposits if a proposal does not meet quorum * @@ -736,6 +806,17 @@ export class Params extends Message { */ burnVoteVeto = false; + /** + * The ratio representing the proportion of the deposit value minimum that must be met when making a deposit. + * Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be + * required. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string min_deposit_ratio = 16; + */ + minDepositRatio = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -751,9 +832,15 @@ export class Params extends Message { { no: 5, name: "threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "veto_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "min_initial_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "proposal_cancel_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "proposal_cancel_dest", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "expedited_voting_period", kind: "message", T: Duration }, + { no: 11, name: "expedited_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "expedited_min_deposit", kind: "message", T: Coin, repeated: true }, { no: 13, name: "burn_vote_quorum", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 14, name: "burn_proposal_deposit_prevote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 15, name: "burn_vote_veto", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 16, name: "min_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/cosmos/gov/v1/query_cosmes.ts b/src/protobufs/cosmos/gov/v1/query_cosmes.ts index 90ac3cb7..d01a2598 100644 --- a/src/protobufs/cosmos/gov/v1/query_cosmes.ts +++ b/src/protobufs/cosmos/gov/v1/query_cosmes.ts @@ -5,10 +5,22 @@ /* eslint-disable */ // @ts-nocheck -import { QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; +import { QueryConstitutionRequest, QueryConstitutionResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.gov.v1.Query"; +/** + * Constitution queries the chain's constitution. + * + * @generated from rpc cosmos.gov.v1.Query.Constitution + */ +export const QueryConstitutionService = { + typeName: TYPE_NAME, + method: "Constitution", + Request: QueryConstitutionRequest, + Response: QueryConstitutionResponse, +} as const; + /** * Proposal queries proposal details based on ProposalID. * @@ -70,7 +82,7 @@ export const QueryParamsService = { } as const; /** - * Deposit queries single deposit information based proposalID, depositAddr. + * Deposit queries single deposit information based on proposalID, depositAddr. * * @generated from rpc cosmos.gov.v1.Query.Deposit */ diff --git a/src/protobufs/cosmos/gov/v1/query_pb.ts b/src/protobufs/cosmos/gov/v1/query_pb.ts index 6c683abf..f9d9f874 100644 --- a/src/protobufs/cosmos/gov/v1/query_pb.ts +++ b/src/protobufs/cosmos/gov/v1/query_pb.ts @@ -10,6 +10,78 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Deposit, DepositParams, Params, Proposal, ProposalStatus, TallyParams, TallyResult, Vote, VotingParams } from "./gov_pb.js"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; +/** + * QueryConstitutionRequest is the request type for the Query/Constitution RPC method + * + * @generated from message cosmos.gov.v1.QueryConstitutionRequest + */ +export class QueryConstitutionRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.QueryConstitutionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConstitutionRequest | PlainMessage | undefined, b: QueryConstitutionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConstitutionRequest, a, b); + } +} + +/** + * QueryConstitutionResponse is the response type for the Query/Constitution RPC method + * + * @generated from message cosmos.gov.v1.QueryConstitutionResponse + */ +export class QueryConstitutionResponse extends Message { + /** + * @generated from field: string constitution = 1; + */ + constitution = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.QueryConstitutionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConstitutionResponse | PlainMessage | undefined, b: QueryConstitutionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConstitutionResponse, a, b); + } +} + /** * QueryProposalRequest is the request type for the Query/Proposal RPC method. * diff --git a/src/protobufs/cosmos/gov/v1/tx_cosmes.ts b/src/protobufs/cosmos/gov/v1/tx_cosmes.ts index da135c96..2907ad80 100644 --- a/src/protobufs/cosmos/gov/v1/tx_cosmes.ts +++ b/src/protobufs/cosmos/gov/v1/tx_cosmes.ts @@ -5,7 +5,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgDeposit, MsgDepositResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse } from "./tx_pb.js"; +import { MsgCancelProposal, MsgCancelProposalResponse, MsgDeposit, MsgDepositResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.gov.v1.Msg"; @@ -85,3 +85,17 @@ export const MsgUpdateParamsService = { Response: MsgUpdateParamsResponse, } as const; +/** + * CancelProposal defines a method to cancel governance proposal + * + * Since: cosmos-sdk 0.50 + * + * @generated from rpc cosmos.gov.v1.Msg.CancelProposal + */ +export const MsgCancelProposalService = { + typeName: TYPE_NAME, + method: "CancelProposal", + Request: MsgCancelProposal, + Response: MsgCancelProposalResponse, +} as const; + diff --git a/src/protobufs/cosmos/gov/v1/tx_pb.ts b/src/protobufs/cosmos/gov/v1/tx_pb.ts index 620d8947..1d0497c0 100644 --- a/src/protobufs/cosmos/gov/v1/tx_pb.ts +++ b/src/protobufs/cosmos/gov/v1/tx_pb.ts @@ -6,7 +6,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Coin } from "../../base/v1beta1/coin_pb.js"; import { Params, VoteOption, WeightedVoteOption } from "./gov_pb.js"; @@ -63,6 +63,15 @@ export class MsgSubmitProposal extends Message { */ summary = ""; + /** + * expedited defines if the proposal is expedited or not + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: bool expedited = 7; + */ + expedited = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -77,6 +86,7 @@ export class MsgSubmitProposal extends Message { { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "expedited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { @@ -595,3 +605,114 @@ export class MsgUpdateParamsResponse extends Message { } } +/** + * MsgCancelProposal is the Msg/CancelProposal request type. + * + * Since: cosmos-sdk 0.50 + * + * @generated from message cosmos.gov.v1.MsgCancelProposal + */ +export class MsgCancelProposal extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * proposer is the account address of the proposer. + * + * @generated from field: string proposer = 2; + */ + proposer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.MsgCancelProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelProposal { + return new MsgCancelProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelProposal { + return new MsgCancelProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelProposal { + return new MsgCancelProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelProposal | PlainMessage | undefined, b: MsgCancelProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelProposal, a, b); + } +} + +/** + * MsgCancelProposalResponse defines the response structure for executing a + * MsgCancelProposal message. + * + * Since: cosmos-sdk 0.50 + * + * @generated from message cosmos.gov.v1.MsgCancelProposalResponse + */ +export class MsgCancelProposalResponse extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * canceled_time is the time when proposal is canceled. + * + * @generated from field: google.protobuf.Timestamp canceled_time = 2; + */ + canceledTime?: Timestamp; + + /** + * canceled_height defines the block height at which the proposal is canceled. + * + * @generated from field: uint64 canceled_height = 3; + */ + canceledHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.MsgCancelProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "canceled_time", kind: "message", T: Timestamp }, + { no: 3, name: "canceled_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelProposalResponse { + return new MsgCancelProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelProposalResponse { + return new MsgCancelProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelProposalResponse { + return new MsgCancelProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelProposalResponse | PlainMessage | undefined, b: MsgCancelProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelProposalResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts b/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts index 6f5ab86d..553f2fca 100644 --- a/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts +++ b/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts @@ -42,21 +42,21 @@ export class GenesisState extends Message { proposals: Proposal[] = []; /** - * params defines all the parameters of related to deposit. + * deposit_params defines all the parameters related to deposit. * * @generated from field: cosmos.gov.v1beta1.DepositParams deposit_params = 5; */ depositParams?: DepositParams; /** - * params defines all the parameters of related to voting. + * voting_params defines all the parameters related to voting. * * @generated from field: cosmos.gov.v1beta1.VotingParams voting_params = 6; */ votingParams?: VotingParams; /** - * params defines all the parameters of related to tally. + * tally_params defines all the parameters related to tally. * * @generated from field: cosmos.gov.v1beta1.TallyParams tally_params = 7; */ diff --git a/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts b/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts index 94b6eae8..4aa3db3b 100644 --- a/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts +++ b/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts @@ -136,7 +136,7 @@ export class WeightedVoteOption extends Message { option = VoteOption.UNSPECIFIED; /** - * weight is the vote weight associated with the vote option. + * weight is the vote weight associated with the vote option. * * @generated from field: string weight = 2; */ diff --git a/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts index 3741025f..2bcd2e33 100644 --- a/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts @@ -68,7 +68,7 @@ export const QueryParamsService = { } as const; /** - * Deposit queries single deposit information based proposalID, depositAddr. + * Deposit queries single deposit information based on proposalID, depositor address. * * @generated from rpc cosmos.gov.v1beta1.Query.Deposit */ diff --git a/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts b/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts index d1f09233..512e7a04 100644 --- a/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts @@ -220,7 +220,7 @@ export class MsgVoteWeighted extends Message { voter = ""; /** - * options defines the weighted vote options. + * options defines the weighted vote options. * * @generated from field: repeated cosmos.gov.v1beta1.WeightedVoteOption options = 3; */ diff --git a/src/protobufs/cosmos/group/v1/types_pb.ts b/src/protobufs/cosmos/group/v1/types_pb.ts index 60e70bf9..f6b06055 100644 --- a/src/protobufs/cosmos/group/v1/types_pb.ts +++ b/src/protobufs/cosmos/group/v1/types_pb.ts @@ -480,6 +480,7 @@ export class GroupInfo extends Message { /** * metadata is any arbitrary metadata to attached to the group. + * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1 * * @generated from field: string metadata = 3; */ @@ -914,7 +915,7 @@ export class TallyResult extends Message { } /** - * Vote represents a vote for a proposal. + * Vote represents a vote for a proposal.string metadata * * @generated from message cosmos.group.v1.Vote */ @@ -942,6 +943,7 @@ export class Vote extends Message { /** * metadata is any arbitrary metadata attached to the vote. + * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2 * * @generated from field: string metadata = 4; */ diff --git a/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts b/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts index c544112f..bd3dc269 100644 --- a/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts +++ b/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts @@ -8,8 +8,8 @@ import { Message, proto3 } from "@bufbuild/protobuf"; /** * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. + * ORM ModuleDB's and in the future will automatically register query + * services for modules that use the ORM. * * @generated from message cosmos.orm.module.v1alpha1.Module */ diff --git a/src/protobufs/cosmos/orm/v1/orm_pb.ts b/src/protobufs/cosmos/orm/v1/orm_pb.ts index 8713108e..7a6f2c45 100644 --- a/src/protobufs/cosmos/orm/v1/orm_pb.ts +++ b/src/protobufs/cosmos/orm/v1/orm_pb.ts @@ -91,8 +91,11 @@ export class PrimaryKeyDescriptor extends Message { * with a 32-bit unsigned varint in non-terminal segments. * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. + * - google.protobuf.Timestamp is encoded such that values with only seconds occupy 6 bytes, + * values including nanos occupy 9 bytes, and nil values occupy 1 byte. When iterating, nil + * values will always be ordered last. Seconds and nanos values must conform to the officially + * specified ranges of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z and 0 to 999,999,999 respectively. + * - google.protobuf.Duration is encoded as 12 bytes using an encoding that enables sorted iteration. * - enum fields are encoded using varint encoding and do not support sorted * iteration. * - bool fields are encoded as a single byte 0 or 1. diff --git a/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts b/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts index c334d07c..8a1fb8cf 100644 --- a/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts +++ b/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts @@ -13,11 +13,8 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export enum StorageType { /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent - * KV-storage where primary key entries are stored in merkle-tree - * backed commitment storage and indexes and seqs are stored in - * fast index storage. Note that the Cosmos SDK before store/v2alpha1 - * does not support this. + * STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent storage where all + * data is stored in the regular Merkle-tree backed KV-store. * * @generated from enum value: STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0; */ @@ -42,37 +39,12 @@ export enum StorageType { * @generated from enum value: STORAGE_TYPE_TRANSIENT = 2; */ TRANSIENT = 2, - - /** - * STORAGE_TYPE_INDEX indicates persistent storage which is not backed - * by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK - * before store/v2alpha1 does not support this. - * - * @generated from enum value: STORAGE_TYPE_INDEX = 3; - */ - INDEX = 3, - - /** - * STORAGE_TYPE_INDEX indicates persistent storage which is backed by - * a merkle-tree. With this type of storage, both primary and index keys - * will affect the app hash and this is generally less efficient - * than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index - * keys into index storage. Note that modules built with the - * Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT - * instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX - * because this is the only type of persistent storage available. - * - * @generated from enum value: STORAGE_TYPE_COMMITMENT = 4; - */ - COMMITMENT = 4, } // Retrieve enum metadata with: proto3.getEnumType(StorageType) proto3.util.setEnumType(StorageType, "cosmos.orm.v1alpha1.StorageType", [ { no: 0, name: "STORAGE_TYPE_DEFAULT_UNSPECIFIED" }, { no: 1, name: "STORAGE_TYPE_MEMORY" }, { no: 2, name: "STORAGE_TYPE_TRANSIENT" }, - { no: 3, name: "STORAGE_TYPE_INDEX" }, - { no: 4, name: "STORAGE_TYPE_COMMITMENT" }, ]); /** diff --git a/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts b/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts index 73cd84cf..a0a2d39c 100644 --- a/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts +++ b/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts @@ -19,16 +19,16 @@ export class ValidatorSigningInfo extends Message { address = ""; /** - * Height at which validator was first a candidate OR was unjailed + * Height at which validator was first a candidate OR was un-jailed * * @generated from field: int64 start_height = 2; */ startHeight = protoInt64.zero; /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. + * Index which is incremented every time a validator is bonded in a block and + * _may_ have signed a pre-commit or not. This in conjunction with the + * signed_blocks_window param determines the index in the missed block bitmap. * * @generated from field: int64 index_offset = 3; */ @@ -42,16 +42,17 @@ export class ValidatorSigningInfo extends Message { jailedUntil?: Timestamp; /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. + * Whether or not a validator has been tombstoned (killed out of validator + * set). It is set once the validator commits an equivocation or for any other + * configured misbehavior. * * @generated from field: bool tombstoned = 5; */ tombstoned = false; /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. + * A counter of missed (unsigned) blocks. It is used to avoid unnecessary + * reads in the missed block bitmap. * * @generated from field: int64 missed_blocks_counter = 6; */ diff --git a/src/protobufs/cosmos/staking/module/v1/module_pb.ts b/src/protobufs/cosmos/staking/module/v1/module_pb.ts index 90b995a0..4b90c71a 100644 --- a/src/protobufs/cosmos/staking/module/v1/module_pb.ts +++ b/src/protobufs/cosmos/staking/module/v1/module_pb.ts @@ -28,6 +28,20 @@ export class Module extends Message { */ authority = ""; + /** + * bech32_prefix_validator is the bech32 validator prefix for the app. + * + * @generated from field: string bech32_prefix_validator = 3; + */ + bech32PrefixValidator = ""; + + /** + * bech32_prefix_consensus is the bech32 consensus node prefix for the app. + * + * @generated from field: string bech32_prefix_consensus = 4; + */ + bech32PrefixConsensus = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -38,6 +52,8 @@ export class Module extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "hooks_order", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "bech32_prefix_validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "bech32_prefix_consensus", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts b/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts index 3f34ae00..1104aa23 100644 --- a/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts @@ -42,6 +42,13 @@ export enum AuthorizationType { * @generated from enum value: AUTHORIZATION_TYPE_REDELEGATE = 3; */ REDELEGATE = 3, + + /** + * AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation + * + * @generated from enum value: AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION = 4; + */ + CANCEL_UNBONDING_DELEGATION = 4, } // Retrieve enum metadata with: proto3.getEnumType(AuthorizationType) proto3.util.setEnumType(AuthorizationType, "cosmos.staking.v1beta1.AuthorizationType", [ @@ -49,6 +56,7 @@ proto3.util.setEnumType(AuthorizationType, "cosmos.staking.v1beta1.Authorization { no: 1, name: "AUTHORIZATION_TYPE_DELEGATE" }, { no: 2, name: "AUTHORIZATION_TYPE_UNDELEGATE" }, { no: 3, name: "AUTHORIZATION_TYPE_REDELEGATE" }, + { no: 4, name: "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION" }, ]); /** diff --git a/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts b/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts index ae6a5f9a..a2021b14 100644 --- a/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts @@ -37,7 +37,7 @@ export class GenesisState extends Message { lastValidatorPowers: LastValidatorPower[] = []; /** - * delegations defines the validator set at genesis. + * validators defines the validator set at genesis. * * @generated from field: repeated cosmos.staking.v1beta1.Validator validators = 4; */ @@ -65,6 +65,8 @@ export class GenesisState extends Message { redelegations: Redelegation[] = []; /** + * exported defines a bool to identify whether the chain dealing with exported or initialized genesis. + * * @generated from field: bool exported = 8; */ exported = false; diff --git a/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts b/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts index e2930e3a..664fbe7a 100644 --- a/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts @@ -686,14 +686,14 @@ export class DVVTriplets extends Message { */ export class Delegation extends Message { /** - * delegator_address is the bech32-encoded address of the delegator. + * delegator_address is the encoded address of the delegator. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; /** - * validator_address is the bech32-encoded address of the validator. + * validator_address is the encoded address of the validator. * * @generated from field: string validator_address = 2; */ @@ -744,14 +744,14 @@ export class Delegation extends Message { */ export class UnbondingDelegation extends Message { /** - * delegator_address is the bech32-encoded address of the delegator. + * delegator_address is the encoded address of the delegator. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; /** - * validator_address is the bech32-encoded address of the validator. + * validator_address is the encoded address of the validator. * * @generated from field: string validator_address = 2; */ diff --git a/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts b/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts index 658bea4b..b9e94f7e 100644 --- a/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts @@ -30,7 +30,12 @@ export class MsgCreateValidator extends Message { minSelfDelegation = ""; /** - * @generated from field: string delegator_address = 4; + * Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. + * The validator address bytes and delegator address bytes refer to the same account while creating validator (defer + * only in bech32 notation). + * + * @generated from field: string delegator_address = 4 [deprecated = true]; + * @deprecated */ delegatorAddress = ""; @@ -456,6 +461,15 @@ export class MsgUndelegateResponse extends Message { */ completionTime?: Timestamp; + /** + * amount returns the amount of undelegated coins + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -465,6 +479,7 @@ export class MsgUndelegateResponse extends Message { static readonly typeName = "cosmos.staking.v1beta1.MsgUndelegateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "completion_time", kind: "message", T: Timestamp }, + { no: 2, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateResponse { diff --git a/src/protobufs/cosmos/base/kv/v1beta1/kv_pb.ts b/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts similarity index 84% rename from src/protobufs/cosmos/base/kv/v1beta1/kv_pb.ts rename to src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts index 3156b848..8f8884d1 100644 --- a/src/protobufs/cosmos/base/kv/v1beta1/kv_pb.ts +++ b/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/kv/v1beta1/kv.proto (package cosmos.base.kv.v1beta1, syntax proto3) +// @generated from file cosmos/store/internal/kv/v1beta1/kv.proto (package cosmos.store.internal.kv.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -9,11 +9,11 @@ import { Message, proto3 } from "@bufbuild/protobuf"; /** * Pairs defines a repeated slice of Pair objects. * - * @generated from message cosmos.base.kv.v1beta1.Pairs + * @generated from message cosmos.store.internal.kv.v1beta1.Pairs */ export class Pairs extends Message { /** - * @generated from field: repeated cosmos.base.kv.v1beta1.Pair pairs = 1; + * @generated from field: repeated cosmos.store.internal.kv.v1beta1.Pair pairs = 1; */ pairs: Pair[] = []; @@ -23,7 +23,7 @@ export class Pairs extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.kv.v1beta1.Pairs"; + static readonly typeName = "cosmos.store.internal.kv.v1beta1.Pairs"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pairs", kind: "message", T: Pair, repeated: true }, ]); @@ -48,7 +48,7 @@ export class Pairs extends Message { /** * Pair defines a key/value bytes tuple. * - * @generated from message cosmos.base.kv.v1beta1.Pair + * @generated from message cosmos.store.internal.kv.v1beta1.Pair */ export class Pair extends Message { /** @@ -67,7 +67,7 @@ export class Pair extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.kv.v1beta1.Pair"; + static readonly typeName = "cosmos.store.internal.kv.v1beta1.Pair"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, diff --git a/src/protobufs/cosmos/base/snapshots/v1beta1/snapshot_pb.ts b/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts similarity index 67% rename from src/protobufs/cosmos/base/snapshots/v1beta1/snapshot_pb.ts rename to src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts index 57510a5c..9f69f5a5 100644 --- a/src/protobufs/cosmos/base/snapshots/v1beta1/snapshot_pb.ts +++ b/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/snapshots/v1beta1/snapshot.proto (package cosmos.base.snapshots.v1beta1, syntax proto3) +// @generated from file cosmos/store/snapshots/v1/snapshot.proto (package cosmos.store.snapshots.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -9,7 +9,7 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** * Snapshot contains Tendermint state sync snapshot info. * - * @generated from message cosmos.base.snapshots.v1beta1.Snapshot + * @generated from message cosmos.store.snapshots.v1.Snapshot */ export class Snapshot extends Message { /** @@ -33,7 +33,7 @@ export class Snapshot extends Message { hash = new Uint8Array(0); /** - * @generated from field: cosmos.base.snapshots.v1beta1.Metadata metadata = 5; + * @generated from field: cosmos.store.snapshots.v1.Metadata metadata = 5; */ metadata?: Metadata; @@ -43,7 +43,7 @@ export class Snapshot extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.Snapshot"; + static readonly typeName = "cosmos.store.snapshots.v1.Snapshot"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, @@ -72,7 +72,7 @@ export class Snapshot extends Message { /** * Metadata contains SDK-specific snapshot metadata. * - * @generated from message cosmos.base.snapshots.v1beta1.Metadata + * @generated from message cosmos.store.snapshots.v1.Metadata */ export class Metadata extends Message { /** @@ -88,7 +88,7 @@ export class Metadata extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.Metadata"; + static readonly typeName = "cosmos.store.snapshots.v1.Metadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "chunk_hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); @@ -115,52 +115,38 @@ export class Metadata extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotItem + * @generated from message cosmos.store.snapshots.v1.SnapshotItem */ export class SnapshotItem extends Message { /** * item is the specific type of snapshot item. * - * @generated from oneof cosmos.base.snapshots.v1beta1.SnapshotItem.item + * @generated from oneof cosmos.store.snapshots.v1.SnapshotItem.item */ item: { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotStoreItem store = 1; + * @generated from field: cosmos.store.snapshots.v1.SnapshotStoreItem store = 1; */ value: SnapshotStoreItem; case: "store"; } | { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotIAVLItem iavl = 2; + * @generated from field: cosmos.store.snapshots.v1.SnapshotIAVLItem iavl = 2; */ value: SnapshotIAVLItem; case: "iavl"; } | { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta extension = 3; + * @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionMeta extension = 3; */ value: SnapshotExtensionMeta; case: "extension"; } | { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload extension_payload = 4; + * @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionPayload extension_payload = 4; */ value: SnapshotExtensionPayload; case: "extensionPayload"; - } | { - /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotKVItem kv = 5 [deprecated = true]; - * @deprecated - */ - value: SnapshotKVItem; - case: "kv"; - } | { - /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotSchema schema = 6 [deprecated = true]; - * @deprecated - */ - value: SnapshotSchema; - case: "schema"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -169,14 +155,12 @@ export class SnapshotItem extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotItem"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "store", kind: "message", T: SnapshotStoreItem, oneof: "item" }, { no: 2, name: "iavl", kind: "message", T: SnapshotIAVLItem, oneof: "item" }, { no: 3, name: "extension", kind: "message", T: SnapshotExtensionMeta, oneof: "item" }, { no: 4, name: "extension_payload", kind: "message", T: SnapshotExtensionPayload, oneof: "item" }, - { no: 5, name: "kv", kind: "message", T: SnapshotKVItem, oneof: "item" }, - { no: 6, name: "schema", kind: "message", T: SnapshotSchema, oneof: "item" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotItem { @@ -201,7 +185,7 @@ export class SnapshotItem extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotStoreItem + * @generated from message cosmos.store.snapshots.v1.SnapshotStoreItem */ export class SnapshotStoreItem extends Message { /** @@ -215,7 +199,7 @@ export class SnapshotStoreItem extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotStoreItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); @@ -242,7 +226,7 @@ export class SnapshotStoreItem extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotIAVLItem + * @generated from message cosmos.store.snapshots.v1.SnapshotIAVLItem */ export class SnapshotIAVLItem extends Message { /** @@ -275,7 +259,7 @@ export class SnapshotIAVLItem extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotIAVLItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, @@ -305,7 +289,7 @@ export class SnapshotIAVLItem extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta + * @generated from message cosmos.store.snapshots.v1.SnapshotExtensionMeta */ export class SnapshotExtensionMeta extends Message { /** @@ -324,7 +308,7 @@ export class SnapshotExtensionMeta extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotExtensionMeta"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, @@ -352,7 +336,7 @@ export class SnapshotExtensionMeta extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload + * @generated from message cosmos.store.snapshots.v1.SnapshotExtensionPayload */ export class SnapshotExtensionPayload extends Message { /** @@ -366,7 +350,7 @@ export class SnapshotExtensionPayload extends Message } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotExtensionPayload"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); @@ -388,95 +372,3 @@ export class SnapshotExtensionPayload extends Message } } -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - * Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. - * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotKVItem - * @deprecated - */ -export class SnapshotKVItem extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotKVItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotKVItem { - return new SnapshotKVItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotKVItem { - return new SnapshotKVItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotKVItem { - return new SnapshotKVItem().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotKVItem | PlainMessage | undefined, b: SnapshotKVItem | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotKVItem, a, b); - } -} - -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - * Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. - * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotSchema - * @deprecated - */ -export class SnapshotSchema extends Message { - /** - * @generated from field: repeated bytes keys = 1; - */ - keys: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotSchema"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "keys", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotSchema { - return new SnapshotSchema().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotSchema { - return new SnapshotSchema().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotSchema { - return new SnapshotSchema().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotSchema | PlainMessage | undefined, b: SnapshotSchema | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotSchema, a, b); - } -} - diff --git a/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts b/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts new file mode 100644 index 00000000..0256b340 --- /dev/null +++ b/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { ListenCommitRequest, ListenCommitResponse, ListenFinalizeBlockRequest, ListenFinalizeBlockResponse } from "./grpc_pb.js"; + +const TYPE_NAME = "cosmos.store.streaming.abci.ABCIListenerService"; + +/** + * ListenFinalizeBlock is the corresponding endpoint for ABCIListener.ListenEndBlock + * + * @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenFinalizeBlock + */ +export const ABCIListenerServiceListenFinalizeBlockService = { + typeName: TYPE_NAME, + method: "ListenFinalizeBlock", + Request: ListenFinalizeBlockRequest, + Response: ListenFinalizeBlockResponse, +} as const; + +/** + * ListenCommit is the corresponding endpoint for ABCIListener.ListenCommit + * + * @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenCommit + */ +export const ABCIListenerServiceListenCommitService = { + typeName: TYPE_NAME, + method: "ListenCommit", + Request: ListenCommitRequest, + Response: ListenCommitResponse, +} as const; + diff --git a/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts b/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts new file mode 100644 index 00000000..88f8a93a --- /dev/null +++ b/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts @@ -0,0 +1,174 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, 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 { RequestFinalizeBlock, ResponseCommit, ResponseFinalizeBlock } from "../../../../tendermint/abci/types_pb.js"; +import { StoreKVPair } from "../../v1beta1/listening_pb.js"; + +/** + * ListenEndBlockRequest is the request type for the ListenEndBlock RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockRequest + */ +export class ListenFinalizeBlockRequest extends Message { + /** + * @generated from field: tendermint.abci.RequestFinalizeBlock req = 1; + */ + req?: RequestFinalizeBlock; + + /** + * @generated from field: tendermint.abci.ResponseFinalizeBlock res = 2; + */ + res?: ResponseFinalizeBlock; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenFinalizeBlockRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "req", kind: "message", T: RequestFinalizeBlock }, + { no: 2, name: "res", kind: "message", T: ResponseFinalizeBlock }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenFinalizeBlockRequest { + return new ListenFinalizeBlockRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenFinalizeBlockRequest { + return new ListenFinalizeBlockRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenFinalizeBlockRequest { + return new ListenFinalizeBlockRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListenFinalizeBlockRequest | PlainMessage | undefined, b: ListenFinalizeBlockRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenFinalizeBlockRequest, a, b); + } +} + +/** + * ListenEndBlockResponse is the response type for the ListenEndBlock RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockResponse + */ +export class ListenFinalizeBlockResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenFinalizeBlockResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenFinalizeBlockResponse { + return new ListenFinalizeBlockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenFinalizeBlockResponse { + return new ListenFinalizeBlockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenFinalizeBlockResponse { + return new ListenFinalizeBlockResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListenFinalizeBlockResponse | PlainMessage | undefined, b: ListenFinalizeBlockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenFinalizeBlockResponse, a, b); + } +} + +/** + * ListenCommitRequest is the request type for the ListenCommit RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenCommitRequest + */ +export class ListenCommitRequest extends Message { + /** + * explicitly pass in block height as ResponseCommit does not contain this info + * + * @generated from field: int64 block_height = 1; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: tendermint.abci.ResponseCommit res = 2; + */ + res?: ResponseCommit; + + /** + * @generated from field: repeated cosmos.store.v1beta1.StoreKVPair change_set = 3; + */ + changeSet: StoreKVPair[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenCommitRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "res", kind: "message", T: ResponseCommit }, + { no: 3, name: "change_set", kind: "message", T: StoreKVPair, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenCommitRequest { + return new ListenCommitRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenCommitRequest { + return new ListenCommitRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenCommitRequest { + return new ListenCommitRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListenCommitRequest | PlainMessage | undefined, b: ListenCommitRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenCommitRequest, a, b); + } +} + +/** + * ListenCommitResponse is the response type for the ListenCommit RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenCommitResponse + */ +export class ListenCommitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenCommitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenCommitResponse { + return new ListenCommitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenCommitResponse { + return new ListenCommitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenCommitResponse { + return new ListenCommitResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListenCommitResponse | PlainMessage | undefined, b: ListenCommitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenCommitResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/base/store/v1beta1/commit_info_pb.ts b/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts similarity index 86% rename from src/protobufs/cosmos/base/store/v1beta1/commit_info_pb.ts rename to src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts index 51fd61c5..390cfde3 100644 --- a/src/protobufs/cosmos/base/store/v1beta1/commit_info_pb.ts +++ b/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/store/v1beta1/commit_info.proto (package cosmos.base.store.v1beta1, syntax proto3) +// @generated from file cosmos/store/v1beta1/commit_info.proto (package cosmos.store.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -10,7 +10,7 @@ import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; * CommitInfo defines commit information used by the multi-store when committing * a version/height. * - * @generated from message cosmos.base.store.v1beta1.CommitInfo + * @generated from message cosmos.store.v1beta1.CommitInfo */ export class CommitInfo extends Message { /** @@ -19,7 +19,7 @@ export class CommitInfo extends Message { version = protoInt64.zero; /** - * @generated from field: repeated cosmos.base.store.v1beta1.StoreInfo store_infos = 2; + * @generated from field: repeated cosmos.store.v1beta1.StoreInfo store_infos = 2; */ storeInfos: StoreInfo[] = []; @@ -34,7 +34,7 @@ export class CommitInfo extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.CommitInfo"; + static readonly typeName = "cosmos.store.v1beta1.CommitInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "store_infos", kind: "message", T: StoreInfo, repeated: true }, @@ -62,7 +62,7 @@ export class CommitInfo extends Message { * StoreInfo defines store-specific commit information. It contains a reference * between a store name and the commit ID. * - * @generated from message cosmos.base.store.v1beta1.StoreInfo + * @generated from message cosmos.store.v1beta1.StoreInfo */ export class StoreInfo extends Message { /** @@ -71,7 +71,7 @@ export class StoreInfo extends Message { name = ""; /** - * @generated from field: cosmos.base.store.v1beta1.CommitID commit_id = 2; + * @generated from field: cosmos.store.v1beta1.CommitID commit_id = 2; */ commitId?: CommitID; @@ -81,7 +81,7 @@ export class StoreInfo extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.StoreInfo"; + static readonly typeName = "cosmos.store.v1beta1.StoreInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "commit_id", kind: "message", T: CommitID }, @@ -108,7 +108,7 @@ export class StoreInfo extends Message { * CommitID defines the commitment information when a specific store is * committed. * - * @generated from message cosmos.base.store.v1beta1.CommitID + * @generated from message cosmos.store.v1beta1.CommitID */ export class CommitID extends Message { /** @@ -127,7 +127,7 @@ export class CommitID extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.CommitID"; + static readonly typeName = "cosmos.store.v1beta1.CommitID"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, diff --git a/src/protobufs/cosmos/base/store/v1beta1/listening_pb.ts b/src/protobufs/cosmos/store/v1beta1/listening_pb.ts similarity index 51% rename from src/protobufs/cosmos/base/store/v1beta1/listening_pb.ts rename to src/protobufs/cosmos/store/v1beta1/listening_pb.ts index 0e14f552..ff166775 100644 --- a/src/protobufs/cosmos/base/store/v1beta1/listening_pb.ts +++ b/src/protobufs/cosmos/store/v1beta1/listening_pb.ts @@ -1,11 +1,11 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/store/v1beta1/listening.proto (package cosmos.base.store.v1beta1, syntax proto3) +// @generated from file cosmos/store/v1beta1/listening.proto (package cosmos.store.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import { RequestBeginBlock, RequestDeliverTx, RequestEndBlock, ResponseBeginBlock, ResponseCommit, ResponseDeliverTx, ResponseEndBlock } from "../../../../tendermint/abci/types_pb.js"; +import { RequestFinalizeBlock, ResponseCommit, ResponseFinalizeBlock } from "../../../tendermint/abci/types_pb.js"; /** * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) @@ -14,7 +14,7 @@ import { RequestBeginBlock, RequestDeliverTx, RequestEndBlock, ResponseBeginBloc * * Since: cosmos-sdk 0.43 * - * @generated from message cosmos.base.store.v1beta1.StoreKVPair + * @generated from message cosmos.store.v1beta1.StoreKVPair */ export class StoreKVPair extends Message { /** @@ -47,7 +47,7 @@ export class StoreKVPair extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.StoreKVPair"; + static readonly typeName = "cosmos.store.v1beta1.StoreKVPair"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "store_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "delete", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, @@ -76,38 +76,25 @@ export class StoreKVPair extends Message { * BlockMetadata contains all the abci event data of a block * the file streamer dump them into files together with the state changes. * - * @generated from message cosmos.base.store.v1beta1.BlockMetadata + * @generated from message cosmos.store.v1beta1.BlockMetadata */ export class BlockMetadata extends Message { /** - * @generated from field: tendermint.abci.RequestBeginBlock request_begin_block = 1; - */ - requestBeginBlock?: RequestBeginBlock; - - /** - * @generated from field: tendermint.abci.ResponseBeginBlock response_begin_block = 2; - */ - responseBeginBlock?: ResponseBeginBlock; - - /** - * @generated from field: repeated cosmos.base.store.v1beta1.BlockMetadata.DeliverTx deliver_txs = 3; - */ - deliverTxs: BlockMetadata_DeliverTx[] = []; - - /** - * @generated from field: tendermint.abci.RequestEndBlock request_end_block = 4; + * @generated from field: tendermint.abci.ResponseCommit response_commit = 6; */ - requestEndBlock?: RequestEndBlock; + responseCommit?: ResponseCommit; /** - * @generated from field: tendermint.abci.ResponseEndBlock response_end_block = 5; + * @generated from field: tendermint.abci.RequestFinalizeBlock request_finalize_block = 7; */ - responseEndBlock?: ResponseEndBlock; + requestFinalizeBlock?: RequestFinalizeBlock; /** - * @generated from field: tendermint.abci.ResponseCommit response_commit = 6; + * TODO: should we renumber this? + * + * @generated from field: tendermint.abci.ResponseFinalizeBlock response_finalize_block = 8; */ - responseCommit?: ResponseCommit; + responseFinalizeBlock?: ResponseFinalizeBlock; constructor(data?: PartialMessage) { super(); @@ -115,14 +102,11 @@ export class BlockMetadata extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.BlockMetadata"; + static readonly typeName = "cosmos.store.v1beta1.BlockMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "request_begin_block", kind: "message", T: RequestBeginBlock }, - { no: 2, name: "response_begin_block", kind: "message", T: ResponseBeginBlock }, - { no: 3, name: "deliver_txs", kind: "message", T: BlockMetadata_DeliverTx, repeated: true }, - { no: 4, name: "request_end_block", kind: "message", T: RequestEndBlock }, - { no: 5, name: "response_end_block", kind: "message", T: ResponseEndBlock }, { no: 6, name: "response_commit", kind: "message", T: ResponseCommit }, + { no: 7, name: "request_finalize_block", kind: "message", T: RequestFinalizeBlock }, + { no: 8, name: "response_finalize_block", kind: "message", T: ResponseFinalizeBlock }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BlockMetadata { @@ -142,48 +126,3 @@ export class BlockMetadata extends Message { } } -/** - * DeliverTx encapulate deliver tx request and response. - * - * @generated from message cosmos.base.store.v1beta1.BlockMetadata.DeliverTx - */ -export class BlockMetadata_DeliverTx extends Message { - /** - * @generated from field: tendermint.abci.RequestDeliverTx request = 1; - */ - request?: RequestDeliverTx; - - /** - * @generated from field: tendermint.abci.ResponseDeliverTx response = 2; - */ - response?: ResponseDeliverTx; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.BlockMetadata.DeliverTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "request", kind: "message", T: RequestDeliverTx }, - { no: 2, name: "response", kind: "message", T: ResponseDeliverTx }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlockMetadata_DeliverTx { - return new BlockMetadata_DeliverTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlockMetadata_DeliverTx { - return new BlockMetadata_DeliverTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlockMetadata_DeliverTx { - return new BlockMetadata_DeliverTx().fromJsonString(jsonString, options); - } - - static equals(a: BlockMetadata_DeliverTx | PlainMessage | undefined, b: BlockMetadata_DeliverTx | PlainMessage | undefined): boolean { - return proto3.util.equals(BlockMetadata_DeliverTx, a, b); - } -} - diff --git a/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts b/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts index 109024ef..ce645f26 100644 --- a/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts +++ b/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts @@ -39,7 +39,9 @@ export enum SignMode { /** * SIGN_MODE_TEXTUAL is a future signing mode that will verify some * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. It is currently not supported. + * from SIGN_MODE_DIRECT. + * + * Since: cosmos-sdk 0.50 * * @generated from enum value: SIGN_MODE_TEXTUAL = 2; */ @@ -48,8 +50,7 @@ export enum SignMode { /** * SIGN_MODE_DIRECT_AUX specifies a signing mode which uses * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. It also allows - * for adding Tips in transactions. + * require signers signing over other signers' `signer_info`. * * Since: cosmos-sdk 0.46 * diff --git a/src/protobufs/cosmos/tx/v1beta1/service_pb.ts b/src/protobufs/cosmos/tx/v1beta1/service_pb.ts index 2504d8c1..14630106 100644 --- a/src/protobufs/cosmos/tx/v1beta1/service_pb.ts +++ b/src/protobufs/cosmos/tx/v1beta1/service_pb.ts @@ -18,7 +18,8 @@ import { Block } from "../../../tendermint/types/block_pb.js"; */ export enum OrderBy { /** - * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults + * to ASC in this case. * * @generated from enum value: ORDER_BY_UNSPECIFIED = 0; */ @@ -46,7 +47,8 @@ proto3.util.setEnumType(OrderBy, "cosmos.tx.v1beta1.OrderBy", [ ]); /** - * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC + * method. * * @generated from enum cosmos.tx.v1beta1.BroadcastMode */ @@ -68,16 +70,16 @@ export enum BroadcastMode { BLOCK = 1, /** - * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. + * 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. + * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client + * returns immediately. * * @generated from enum value: BROADCAST_MODE_ASYNC = 3; */ @@ -100,8 +102,11 @@ proto3.util.setEnumType(BroadcastMode, "cosmos.tx.v1beta1.BroadcastMode", [ export class GetTxsEventRequest extends Message { /** * events is the list of transaction event type. + * Deprecated post v0.47.x: use query instead, which should contain a valid + * events query. * - * @generated from field: repeated string events = 1; + * @generated from field: repeated string events = 1 [deprecated = true]; + * @deprecated */ events: string[] = []; @@ -120,7 +125,8 @@ export class GetTxsEventRequest extends Message { orderBy = OrderBy.UNSPECIFIED; /** - * page is the page number to query, starts at 1. If not provided, will default to first page. + * page is the page number to query, starts at 1. If not provided, will + * default to first page. * * @generated from field: uint64 page = 4; */ @@ -134,6 +140,16 @@ export class GetTxsEventRequest extends Message { */ limit = protoInt64.zero; + /** + * query defines the transaction event query that is proxied to Tendermint's + * TxSearch RPC method. The query must be valid. + * + * Since cosmos-sdk 0.50 + * + * @generated from field: string query = 6; + */ + query = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -147,6 +163,7 @@ export class GetTxsEventRequest extends Message { { 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 */ }, + { no: 6, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTxsEventRequest { @@ -572,7 +589,8 @@ export class GetBlockWithTxsRequest extends Message { } /** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs + * method. * * Since: cosmos-sdk 0.45.2 * diff --git a/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts b/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts index 10d877d8..e89ef278 100644 --- a/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts @@ -251,14 +251,10 @@ export class SignDocDirectAux extends Message { sequence = protoInt64.zero; /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. + * tips have been depreacted and should not be used * - * @generated from field: cosmos.tx.v1beta1.Tip tip = 6; + * @generated from field: cosmos.tx.v1beta1.Tip tip = 6 [deprecated = true]; + * @deprecated */ tip?: Tip; @@ -416,7 +412,8 @@ export class AuthInfo extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from field: cosmos.tx.v1beta1.Tip tip = 3; + * @generated from field: cosmos.tx.v1beta1.Tip tip = 3 [deprecated = true]; + * @deprecated */ tip?: Tip; @@ -743,6 +740,7 @@ export class Fee extends Message { * Since: cosmos-sdk 0.46 * * @generated from message cosmos.tx.v1beta1.Tip + * @deprecated */ export class Tip extends Message { /** diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts index 0b2a16a0..44daab02 100644 --- a/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts @@ -56,3 +56,55 @@ export class Params extends Message { } } +/** + * QueryRequest defines the parameters for a particular query request + * by an interchain account. + * + * @generated from message ibc.applications.interchain_accounts.host.v1.QueryRequest + */ +export class QueryRequest extends Message { + /** + * path defines the path of the query request as defined by ADR-021. + * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing + * + * @generated from field: string path = 1; + */ + path = ""; + + /** + * data defines the payload of the query request as defined by ADR-021. + * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing + * + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest { + return new QueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest { + return new QueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRequest { + return new QueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRequest, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts index b57d879b..cd4fb7f5 100644 --- a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; +import { MsgModuleQuerySafe, MsgModuleQuerySafeResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; const TYPE_NAME = "ibc.applications.interchain_accounts.host.v1.Msg"; @@ -19,3 +19,15 @@ export const MsgUpdateParamsService = { Response: MsgUpdateParamsResponse, } as const; +/** + * ModuleQuerySafe defines a rpc handler for MsgModuleQuerySafe. + * + * @generated from rpc ibc.applications.interchain_accounts.host.v1.Msg.ModuleQuerySafe + */ +export const MsgModuleQuerySafeService = { + typeName: TYPE_NAME, + method: "ModuleQuerySafe", + Request: MsgModuleQuerySafe, + Response: MsgModuleQuerySafeResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts index a811a9aa..c9014c60 100644 --- a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts @@ -4,8 +4,8 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./host_pb.js"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params, QueryRequest } from "./host_pb.js"; /** * MsgUpdateParams defines the payload for Msg/UpdateParams @@ -91,3 +91,101 @@ export class MsgUpdateParamsResponse extends Message { } } +/** + * MsgModuleQuerySafe defines the payload for Msg/ModuleQuerySafe + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe + */ +export class MsgModuleQuerySafe extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * requests defines the module safe queries to execute. + * + * @generated from field: repeated ibc.applications.interchain_accounts.host.v1.QueryRequest requests = 2; + */ + requests: QueryRequest[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "requests", kind: "message", T: QueryRequest, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromJsonString(jsonString, options); + } + + static equals(a: MsgModuleQuerySafe | PlainMessage | undefined, b: MsgModuleQuerySafe | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgModuleQuerySafe, a, b); + } +} + +/** + * MsgModuleQuerySafeResponse defines the response for Msg/ModuleQuerySafe + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse + */ +export class MsgModuleQuerySafeResponse extends Message { + /** + * height at which the responses were queried + * + * @generated from field: uint64 height = 1; + */ + height = protoInt64.zero; + + /** + * protobuf encoded responses for each query + * + * @generated from field: repeated bytes responses = 2; + */ + responses: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "responses", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgModuleQuerySafeResponse | PlainMessage | undefined, b: MsgModuleQuerySafeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgModuleQuerySafeResponse, a, b); + } +} + diff --git a/src/protobufs/index.ts b/src/protobufs/index.ts index f28348d2..d2011f2e 100644 --- a/src/protobufs/index.ts +++ b/src/protobufs/index.ts @@ -5,12 +5,12 @@ export { Consensus as TendermintVersionConsensus, } from "./tendermint/version/types_pb.js"; export { + BlockIDFlag as TendermintTypesBlockIDFlag, ValidatorSet as TendermintTypesValidatorSet, Validator as TendermintTypesValidator, SimpleValidator as TendermintTypesSimpleValidator, } from "./tendermint/types/validator_pb.js"; export { - BlockIDFlag as TendermintTypesBlockIDFlag, SignedMsgType as TendermintTypesSignedMsgType, PartSetHeader as TendermintTypesPartSetHeader, Part as TendermintTypesPart, @@ -20,6 +20,8 @@ export { Vote as TendermintTypesVote, Commit as TendermintTypesCommit, CommitSig as TendermintTypesCommitSig, + ExtendedCommit as TendermintTypesExtendedCommit, + ExtendedCommitSig as TendermintTypesExtendedCommitSig, Proposal as TendermintTypesProposal, SignedHeader as TendermintTypesSignedHeader, LightBlock as TendermintTypesLightBlock, @@ -33,6 +35,7 @@ export { ValidatorParams as TendermintTypesValidatorParams, VersionParams as TendermintTypesVersionParams, HashedParams as TendermintTypesHashedParams, + ABCIParams as TendermintTypesABCIParams, } from "./tendermint/types/params_pb.js"; export { Evidence as TendermintTypesEvidence, @@ -71,10 +74,7 @@ export { RequestInfo as TendermintAbciRequestInfo, RequestInitChain as TendermintAbciRequestInitChain, RequestQuery as TendermintAbciRequestQuery, - RequestBeginBlock as TendermintAbciRequestBeginBlock, RequestCheckTx as TendermintAbciRequestCheckTx, - RequestDeliverTx as TendermintAbciRequestDeliverTx, - RequestEndBlock as TendermintAbciRequestEndBlock, RequestCommit as TendermintAbciRequestCommit, RequestListSnapshots as TendermintAbciRequestListSnapshots, RequestOfferSnapshot as TendermintAbciRequestOfferSnapshot, @@ -82,6 +82,9 @@ export { RequestApplySnapshotChunk as TendermintAbciRequestApplySnapshotChunk, RequestPrepareProposal as TendermintAbciRequestPrepareProposal, RequestProcessProposal as TendermintAbciRequestProcessProposal, + RequestExtendVote as TendermintAbciRequestExtendVote, + RequestVerifyVoteExtension as TendermintAbciRequestVerifyVoteExtension, + RequestFinalizeBlock as TendermintAbciRequestFinalizeBlock, Response as TendermintAbciResponse, ResponseException as TendermintAbciResponseException, ResponseEcho as TendermintAbciResponseEcho, @@ -89,10 +92,7 @@ export { ResponseInfo as TendermintAbciResponseInfo, ResponseInitChain as TendermintAbciResponseInitChain, ResponseQuery as TendermintAbciResponseQuery, - ResponseBeginBlock as TendermintAbciResponseBeginBlock, ResponseCheckTx as TendermintAbciResponseCheckTx, - ResponseDeliverTx as TendermintAbciResponseDeliverTx, - ResponseEndBlock as TendermintAbciResponseEndBlock, ResponseCommit as TendermintAbciResponseCommit, ResponseListSnapshots as TendermintAbciResponseListSnapshots, ResponseOfferSnapshot as TendermintAbciResponseOfferSnapshot, @@ -103,10 +103,15 @@ export { ResponsePrepareProposal as TendermintAbciResponsePrepareProposal, ResponseProcessProposal as TendermintAbciResponseProcessProposal, ResponseProcessProposal_ProposalStatus as TendermintAbciResponseProcessProposal_ProposalStatus, + ResponseExtendVote as TendermintAbciResponseExtendVote, + ResponseVerifyVoteExtension as TendermintAbciResponseVerifyVoteExtension, + ResponseVerifyVoteExtension_VerifyStatus as TendermintAbciResponseVerifyVoteExtension_VerifyStatus, + ResponseFinalizeBlock as TendermintAbciResponseFinalizeBlock, CommitInfo as TendermintAbciCommitInfo, ExtendedCommitInfo as TendermintAbciExtendedCommitInfo, Event as TendermintAbciEvent, EventAttribute as TendermintAbciEventAttribute, + ExecTxResult as TendermintAbciExecTxResult, TxResult as TendermintAbciTxResult, Validator as TendermintAbciValidator, ValidatorUpdate as TendermintAbciValidatorUpdate, @@ -116,22 +121,22 @@ export { Snapshot as TendermintAbciSnapshot, } from "./tendermint/abci/types_pb.js"; export { - ABCIApplicationEchoService as TendermintAbciABCIApplicationEchoService, - ABCIApplicationFlushService as TendermintAbciABCIApplicationFlushService, - ABCIApplicationInfoService as TendermintAbciABCIApplicationInfoService, - ABCIApplicationDeliverTxService as TendermintAbciABCIApplicationDeliverTxService, - ABCIApplicationCheckTxService as TendermintAbciABCIApplicationCheckTxService, - ABCIApplicationQueryService as TendermintAbciABCIApplicationQueryService, - ABCIApplicationCommitService as TendermintAbciABCIApplicationCommitService, - ABCIApplicationInitChainService as TendermintAbciABCIApplicationInitChainService, - ABCIApplicationBeginBlockService as TendermintAbciABCIApplicationBeginBlockService, - ABCIApplicationEndBlockService as TendermintAbciABCIApplicationEndBlockService, - ABCIApplicationListSnapshotsService as TendermintAbciABCIApplicationListSnapshotsService, - ABCIApplicationOfferSnapshotService as TendermintAbciABCIApplicationOfferSnapshotService, - ABCIApplicationLoadSnapshotChunkService as TendermintAbciABCIApplicationLoadSnapshotChunkService, - ABCIApplicationApplySnapshotChunkService as TendermintAbciABCIApplicationApplySnapshotChunkService, - ABCIApplicationPrepareProposalService as TendermintAbciABCIApplicationPrepareProposalService, - ABCIApplicationProcessProposalService as TendermintAbciABCIApplicationProcessProposalService, + ABCIEchoService as TendermintAbciABCIEchoService, + ABCIFlushService as TendermintAbciABCIFlushService, + ABCIInfoService as TendermintAbciABCIInfoService, + ABCICheckTxService as TendermintAbciABCICheckTxService, + ABCIQueryService as TendermintAbciABCIQueryService, + ABCICommitService as TendermintAbciABCICommitService, + ABCIInitChainService as TendermintAbciABCIInitChainService, + ABCIListSnapshotsService as TendermintAbciABCIListSnapshotsService, + ABCIOfferSnapshotService as TendermintAbciABCIOfferSnapshotService, + ABCILoadSnapshotChunkService as TendermintAbciABCILoadSnapshotChunkService, + ABCIApplySnapshotChunkService as TendermintAbciABCIApplySnapshotChunkService, + ABCIPrepareProposalService as TendermintAbciABCIPrepareProposalService, + ABCIProcessProposalService as TendermintAbciABCIProcessProposalService, + ABCIExtendVoteService as TendermintAbciABCIExtendVoteService, + ABCIVerifyVoteExtensionService as TendermintAbciABCIVerifyVoteExtensionService, + ABCIFinalizeBlockService as TendermintAbciABCIFinalizeBlockService, } from "./tendermint/abci/types_cosmes.js"; export { MsgSetValidatorSetPreference as OsmosisValsetprefV1beta1MsgSetValidatorSetPreference, @@ -169,6 +174,13 @@ export { export { QueryUserValidatorPreferencesService as OsmosisValsetprefV1beta1QueryUserValidatorPreferencesService, } from "./osmosis/valsetpref/v1beta1/query_cosmes.js"; +export { + MsgSetFeeTokens as OsmosisTxfeesV1beta1MsgSetFeeTokens, + MsgSetFeeTokensResponse as OsmosisTxfeesV1beta1MsgSetFeeTokensResponse, +} from "./osmosis/txfees/v1beta1/tx_pb.js"; +export { + MsgSetFeeTokensService as OsmosisTxfeesV1beta1MsgSetFeeTokensService, +} from "./osmosis/txfees/v1beta1/tx_cosmes.js"; export { QueryFeeTokensRequest as OsmosisTxfeesV1beta1QueryFeeTokensRequest, QueryFeeTokensResponse as OsmosisTxfeesV1beta1QueryFeeTokensResponse, @@ -188,6 +200,9 @@ export { QueryBaseDenomService as OsmosisTxfeesV1beta1QueryBaseDenomService, QueryGetEipBaseFeeService as OsmosisTxfeesV1beta1QueryGetEipBaseFeeService, } from "./osmosis/txfees/v1beta1/query_cosmes.js"; +export { + Params as OsmosisTxfeesV1beta1Params, +} from "./osmosis/txfees/v1beta1/params_pb.js"; export { UpdateFeeTokenProposal as OsmosisTxfeesV1beta1UpdateFeeTokenProposal, } from "./osmosis/txfees/v1beta1/gov_pb.js"; @@ -258,12 +273,15 @@ export { QueryDenomsFromCreatorResponse as OsmosisTokenfactoryV1beta1QueryDenomsFromCreatorResponse, QueryBeforeSendHookAddressRequest as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressResponse, + QueryAllBeforeSendHooksAddressesRequest as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesRequest, + QueryAllBeforeSendHooksAddressesResponse as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesResponse, } from "./osmosis/tokenfactory/v1beta1/query_pb.js"; export { QueryParamsService as OsmosisTokenfactoryV1beta1QueryParamsService, QueryDenomAuthorityMetadataService as OsmosisTokenfactoryV1beta1QueryDenomAuthorityMetadataService, QueryDenomsFromCreatorService as OsmosisTokenfactoryV1beta1QueryDenomsFromCreatorService, QueryBeforeSendHookAddressService as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressService, + QueryAllBeforeSendHooksAddressesService as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesService, } from "./osmosis/tokenfactory/v1beta1/query_cosmes.js"; export { Params as OsmosisTokenfactoryV1beta1Params, @@ -395,6 +413,43 @@ export { Child as OsmosisStoreV1beta1Child, Leaf as OsmosisStoreV1beta1Leaf, } from "./osmosis/store/v1beta1/tree_pb.js"; +export { + MsgAddAuthenticator as OsmosisSmartaccountV1beta1MsgAddAuthenticator, + MsgAddAuthenticatorResponse as OsmosisSmartaccountV1beta1MsgAddAuthenticatorResponse, + MsgRemoveAuthenticator as OsmosisSmartaccountV1beta1MsgRemoveAuthenticator, + MsgRemoveAuthenticatorResponse as OsmosisSmartaccountV1beta1MsgRemoveAuthenticatorResponse, + MsgSetActiveState as OsmosisSmartaccountV1beta1MsgSetActiveState, + MsgSetActiveStateResponse as OsmosisSmartaccountV1beta1MsgSetActiveStateResponse, + TxExtension as OsmosisSmartaccountV1beta1TxExtension, +} from "./osmosis/smartaccount/v1beta1/tx_pb.js"; +export { + MsgAddAuthenticatorService as OsmosisSmartaccountV1beta1MsgAddAuthenticatorService, + MsgRemoveAuthenticatorService as OsmosisSmartaccountV1beta1MsgRemoveAuthenticatorService, + MsgSetActiveStateService as OsmosisSmartaccountV1beta1MsgSetActiveStateService, +} from "./osmosis/smartaccount/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as OsmosisSmartaccountV1beta1QueryParamsRequest, + QueryParamsResponse as OsmosisSmartaccountV1beta1QueryParamsResponse, + GetAuthenticatorsRequest as OsmosisSmartaccountV1beta1GetAuthenticatorsRequest, + GetAuthenticatorsResponse as OsmosisSmartaccountV1beta1GetAuthenticatorsResponse, + GetAuthenticatorRequest as OsmosisSmartaccountV1beta1GetAuthenticatorRequest, + GetAuthenticatorResponse as OsmosisSmartaccountV1beta1GetAuthenticatorResponse, +} from "./osmosis/smartaccount/v1beta1/query_pb.js"; +export { + QueryParamsService as OsmosisSmartaccountV1beta1QueryParamsService, + QueryGetAuthenticatorService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorService, + QueryGetAuthenticatorsService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorsService, +} from "./osmosis/smartaccount/v1beta1/query_cosmes.js"; +export { + Params as OsmosisSmartaccountV1beta1Params, +} from "./osmosis/smartaccount/v1beta1/params_pb.js"; +export { + AccountAuthenticator as OsmosisSmartaccountV1beta1AccountAuthenticator, +} from "./osmosis/smartaccount/v1beta1/models_pb.js"; +export { + AuthenticatorData as OsmosisSmartaccountV1beta1AuthenticatorData, + GenesisState as OsmosisSmartaccountV1beta1GenesisState, +} from "./osmosis/smartaccount/v1beta1/genesis_pb.js"; export { MsgSetHotRoutes as OsmosisProtorevV1beta1MsgSetHotRoutes, MsgSetHotRoutesResponse as OsmosisProtorevV1beta1MsgSetHotRoutesResponse, @@ -1130,7 +1185,7 @@ export { TickInfo as OsmosisConcentratedliquidityV1beta1TickInfo, UptimeTrackers as OsmosisConcentratedliquidityV1beta1UptimeTrackers, UptimeTracker as OsmosisConcentratedliquidityV1beta1UptimeTracker, -} from "./osmosis/concentratedliquidity/v1beta1/tickInfo_pb.js"; +} from "./osmosis/concentratedliquidity/v1beta1/tick_info_pb.js"; export { UserPositionsRequest as OsmosisConcentratedliquidityV1beta1UserPositionsRequest, UserPositionsResponse as OsmosisConcentratedliquidityV1beta1UserPositionsResponse, @@ -2738,9 +2793,12 @@ export { export { MsgUpdateParams as IbcApplicationsInterchainAccountsHostV1MsgUpdateParams, MsgUpdateParamsResponse as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsResponse, + MsgModuleQuerySafe as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafe, + MsgModuleQuerySafeResponse as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeResponse, } from "./ibc/applications/interchain_accounts/host/v1/tx_pb.js"; export { MsgUpdateParamsService as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsService, + MsgModuleQuerySafeService as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeService, } from "./ibc/applications/interchain_accounts/host/v1/tx_cosmes.js"; export { QueryParamsRequest as IbcApplicationsInterchainAccountsHostV1QueryParamsRequest, @@ -2751,6 +2809,7 @@ export { } from "./ibc/applications/interchain_accounts/host/v1/query_cosmes.js"; export { Params as IbcApplicationsInterchainAccountsHostV1Params, + QueryRequest as IbcApplicationsInterchainAccountsHostV1QueryRequest, } from "./ibc/applications/interchain_accounts/host/v1/host_pb.js"; export { GenesisState as IbcApplicationsInterchainAccountsGenesisV1GenesisState, @@ -3533,6 +3592,38 @@ export { export { Config as CosmosTxConfigV1Config, } from "./cosmos/tx/config/v1/config_pb.js"; +export { + StoreKVPair as CosmosStoreV1beta1StoreKVPair, + BlockMetadata as CosmosStoreV1beta1BlockMetadata, +} from "./cosmos/store/v1beta1/listening_pb.js"; +export { + CommitInfo as CosmosStoreV1beta1CommitInfo, + StoreInfo as CosmosStoreV1beta1StoreInfo, + CommitID as CosmosStoreV1beta1CommitID, +} from "./cosmos/store/v1beta1/commit_info_pb.js"; +export { + ListenFinalizeBlockRequest as CosmosStoreStreamingAbciListenFinalizeBlockRequest, + ListenFinalizeBlockResponse as CosmosStoreStreamingAbciListenFinalizeBlockResponse, + ListenCommitRequest as CosmosStoreStreamingAbciListenCommitRequest, + ListenCommitResponse as CosmosStoreStreamingAbciListenCommitResponse, +} from "./cosmos/store/streaming/abci/grpc_pb.js"; +export { + ABCIListenerServiceListenFinalizeBlockService as CosmosStoreStreamingAbciABCIListenerServiceListenFinalizeBlockService, + ABCIListenerServiceListenCommitService as CosmosStoreStreamingAbciABCIListenerServiceListenCommitService, +} from "./cosmos/store/streaming/abci/grpc_cosmes.js"; +export { + Snapshot as CosmosStoreSnapshotsV1Snapshot, + Metadata as CosmosStoreSnapshotsV1Metadata, + SnapshotItem as CosmosStoreSnapshotsV1SnapshotItem, + SnapshotStoreItem as CosmosStoreSnapshotsV1SnapshotStoreItem, + SnapshotIAVLItem as CosmosStoreSnapshotsV1SnapshotIAVLItem, + SnapshotExtensionMeta as CosmosStoreSnapshotsV1SnapshotExtensionMeta, + SnapshotExtensionPayload as CosmosStoreSnapshotsV1SnapshotExtensionPayload, +} from "./cosmos/store/snapshots/v1/snapshot_pb.js"; +export { + Pairs as CosmosStoreInternalKvV1beta1Pairs, + Pair as CosmosStoreInternalKvV1beta1Pair, +} from "./cosmos/store/internal/kv/v1beta1/kv_pb.js"; export { MsgCreateValidator as CosmosStakingV1beta1MsgCreateValidator, MsgCreateValidatorResponse as CosmosStakingV1beta1MsgCreateValidatorResponse, @@ -4024,6 +4115,8 @@ export { MsgDepositResponse as CosmosGovV1MsgDepositResponse, MsgUpdateParams as CosmosGovV1MsgUpdateParams, MsgUpdateParamsResponse as CosmosGovV1MsgUpdateParamsResponse, + MsgCancelProposal as CosmosGovV1MsgCancelProposal, + MsgCancelProposalResponse as CosmosGovV1MsgCancelProposalResponse, } from "./cosmos/gov/v1/tx_pb.js"; export { MsgSubmitProposalService as CosmosGovV1MsgSubmitProposalService, @@ -4032,8 +4125,11 @@ export { MsgVoteWeightedService as CosmosGovV1MsgVoteWeightedService, MsgDepositService as CosmosGovV1MsgDepositService, MsgUpdateParamsService as CosmosGovV1MsgUpdateParamsService, + MsgCancelProposalService as CosmosGovV1MsgCancelProposalService, } from "./cosmos/gov/v1/tx_cosmes.js"; export { + QueryConstitutionRequest as CosmosGovV1QueryConstitutionRequest, + QueryConstitutionResponse as CosmosGovV1QueryConstitutionResponse, QueryProposalRequest as CosmosGovV1QueryProposalRequest, QueryProposalResponse as CosmosGovV1QueryProposalResponse, QueryProposalsRequest as CosmosGovV1QueryProposalsRequest, @@ -4052,6 +4148,7 @@ export { QueryTallyResultResponse as CosmosGovV1QueryTallyResultResponse, } from "./cosmos/gov/v1/query_pb.js"; export { + QueryConstitutionService as CosmosGovV1QueryConstitutionService, QueryProposalService as CosmosGovV1QueryProposalService, QueryProposalsService as CosmosGovV1QueryProposalsService, QueryVoteService as CosmosGovV1QueryVoteService, @@ -4091,10 +4188,13 @@ export { MsgGrantAllowanceResponse as CosmosFeegrantV1beta1MsgGrantAllowanceResponse, MsgRevokeAllowance as CosmosFeegrantV1beta1MsgRevokeAllowance, MsgRevokeAllowanceResponse as CosmosFeegrantV1beta1MsgRevokeAllowanceResponse, + MsgPruneAllowances as CosmosFeegrantV1beta1MsgPruneAllowances, + MsgPruneAllowancesResponse as CosmosFeegrantV1beta1MsgPruneAllowancesResponse, } from "./cosmos/feegrant/v1beta1/tx_pb.js"; export { MsgGrantAllowanceService as CosmosFeegrantV1beta1MsgGrantAllowanceService, MsgRevokeAllowanceService as CosmosFeegrantV1beta1MsgRevokeAllowanceService, + MsgPruneAllowancesService as CosmosFeegrantV1beta1MsgPruneAllowancesService, } from "./cosmos/feegrant/v1beta1/tx_cosmes.js"; export { QueryAllowanceRequest as CosmosFeegrantV1beta1QueryAllowanceRequest, @@ -4160,6 +4260,8 @@ export { MsgUpdateParamsResponse as CosmosDistributionV1beta1MsgUpdateParamsResponse, MsgCommunityPoolSpend as CosmosDistributionV1beta1MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse as CosmosDistributionV1beta1MsgCommunityPoolSpendResponse, + MsgDepositValidatorRewardsPool as CosmosDistributionV1beta1MsgDepositValidatorRewardsPool, + MsgDepositValidatorRewardsPoolResponse as CosmosDistributionV1beta1MsgDepositValidatorRewardsPoolResponse, } from "./cosmos/distribution/v1beta1/tx_pb.js"; export { MsgSetWithdrawAddressService as CosmosDistributionV1beta1MsgSetWithdrawAddressService, @@ -4168,6 +4270,7 @@ export { MsgFundCommunityPoolService as CosmosDistributionV1beta1MsgFundCommunityPoolService, MsgUpdateParamsService as CosmosDistributionV1beta1MsgUpdateParamsService, MsgCommunityPoolSpendService as CosmosDistributionV1beta1MsgCommunityPoolSpendService, + MsgDepositValidatorRewardsPoolService as CosmosDistributionV1beta1MsgDepositValidatorRewardsPoolService, } from "./cosmos/distribution/v1beta1/tx_cosmes.js"; export { QueryParamsRequest as CosmosDistributionV1beta1QueryParamsRequest, @@ -4293,17 +4396,40 @@ export { Module as CosmosConsensusModuleV1Module, } from "./cosmos/consensus/module/v1/module_pb.js"; export { - GenesisOwners as CosmosCapabilityV1beta1GenesisOwners, - GenesisState as CosmosCapabilityV1beta1GenesisState, -} from "./cosmos/capability/v1beta1/genesis_pb.js"; -export { - Capability as CosmosCapabilityV1beta1Capability, - Owner as CosmosCapabilityV1beta1Owner, - CapabilityOwners as CosmosCapabilityV1beta1CapabilityOwners, -} from "./cosmos/capability/v1beta1/capability_pb.js"; -export { - Module as CosmosCapabilityModuleV1Module, -} from "./cosmos/capability/module/v1/module_pb.js"; + Permissions as CosmosCircuitV1Permissions, + Permissions_Level as CosmosCircuitV1Permissions_Level, + GenesisAccountPermissions as CosmosCircuitV1GenesisAccountPermissions, + GenesisState as CosmosCircuitV1GenesisState, +} from "./cosmos/circuit/v1/types_pb.js"; +export { + MsgAuthorizeCircuitBreaker as CosmosCircuitV1MsgAuthorizeCircuitBreaker, + MsgAuthorizeCircuitBreakerResponse as CosmosCircuitV1MsgAuthorizeCircuitBreakerResponse, + MsgTripCircuitBreaker as CosmosCircuitV1MsgTripCircuitBreaker, + MsgTripCircuitBreakerResponse as CosmosCircuitV1MsgTripCircuitBreakerResponse, + MsgResetCircuitBreaker as CosmosCircuitV1MsgResetCircuitBreaker, + MsgResetCircuitBreakerResponse as CosmosCircuitV1MsgResetCircuitBreakerResponse, +} from "./cosmos/circuit/v1/tx_pb.js"; +export { + MsgAuthorizeCircuitBreakerService as CosmosCircuitV1MsgAuthorizeCircuitBreakerService, + MsgTripCircuitBreakerService as CosmosCircuitV1MsgTripCircuitBreakerService, + MsgResetCircuitBreakerService as CosmosCircuitV1MsgResetCircuitBreakerService, +} from "./cosmos/circuit/v1/tx_cosmes.js"; +export { + QueryAccountRequest as CosmosCircuitV1QueryAccountRequest, + AccountResponse as CosmosCircuitV1AccountResponse, + QueryAccountsRequest as CosmosCircuitV1QueryAccountsRequest, + AccountsResponse as CosmosCircuitV1AccountsResponse, + QueryDisabledListRequest as CosmosCircuitV1QueryDisabledListRequest, + DisabledListResponse as CosmosCircuitV1DisabledListResponse, +} from "./cosmos/circuit/v1/query_pb.js"; +export { + QueryAccountService as CosmosCircuitV1QueryAccountService, + QueryAccountsService as CosmosCircuitV1QueryAccountsService, + QueryDisabledListService as CosmosCircuitV1QueryDisabledListService, +} from "./cosmos/circuit/v1/query_cosmes.js"; +export { + Module as CosmosCircuitModuleV1Module, +} from "./cosmos/circuit/module/v1/module_pb.js"; export { Coin as CosmosBaseV1beta1Coin, DecCoin as CosmosBaseV1beta1DecCoin, @@ -4344,27 +4470,6 @@ export { ServiceGetValidatorSetByHeightService as CosmosBaseTendermintV1beta1ServiceGetValidatorSetByHeightService, ServiceABCIQueryService as CosmosBaseTendermintV1beta1ServiceABCIQueryService, } from "./cosmos/base/tendermint/v1beta1/query_cosmes.js"; -export { - StoreKVPair as CosmosBaseStoreV1beta1StoreKVPair, - BlockMetadata as CosmosBaseStoreV1beta1BlockMetadata, - BlockMetadata_DeliverTx as CosmosBaseStoreV1beta1BlockMetadata_DeliverTx, -} from "./cosmos/base/store/v1beta1/listening_pb.js"; -export { - CommitInfo as CosmosBaseStoreV1beta1CommitInfo, - StoreInfo as CosmosBaseStoreV1beta1StoreInfo, - CommitID as CosmosBaseStoreV1beta1CommitID, -} from "./cosmos/base/store/v1beta1/commit_info_pb.js"; -export { - Snapshot as CosmosBaseSnapshotsV1beta1Snapshot, - Metadata as CosmosBaseSnapshotsV1beta1Metadata, - SnapshotItem as CosmosBaseSnapshotsV1beta1SnapshotItem, - SnapshotStoreItem as CosmosBaseSnapshotsV1beta1SnapshotStoreItem, - SnapshotIAVLItem as CosmosBaseSnapshotsV1beta1SnapshotIAVLItem, - SnapshotExtensionMeta as CosmosBaseSnapshotsV1beta1SnapshotExtensionMeta, - SnapshotExtensionPayload as CosmosBaseSnapshotsV1beta1SnapshotExtensionPayload, - SnapshotKVItem as CosmosBaseSnapshotsV1beta1SnapshotKVItem, - SnapshotSchema as CosmosBaseSnapshotsV1beta1SnapshotSchema, -} from "./cosmos/base/snapshots/v1beta1/snapshot_pb.js"; export { AppDescriptor as CosmosBaseReflectionV2alpha1AppDescriptor, TxDescriptor as CosmosBaseReflectionV2alpha1TxDescriptor, @@ -4418,14 +4523,13 @@ export { export { ConfigRequest as CosmosBaseNodeV1beta1ConfigRequest, ConfigResponse as CosmosBaseNodeV1beta1ConfigResponse, + StatusRequest as CosmosBaseNodeV1beta1StatusRequest, + StatusResponse as CosmosBaseNodeV1beta1StatusResponse, } from "./cosmos/base/node/v1beta1/query_pb.js"; export { ServiceConfigService as CosmosBaseNodeV1beta1ServiceConfigService, + ServiceStatusService as CosmosBaseNodeV1beta1ServiceStatusService, } from "./cosmos/base/node/v1beta1/query_cosmes.js"; -export { - Pairs as CosmosBaseKvV1beta1Pairs, - Pair as CosmosBaseKvV1beta1Pair, -} from "./cosmos/base/kv/v1beta1/kv_pb.js"; export { TxResponse as CosmosBaseAbciV1beta1TxResponse, ABCIMessageLog as CosmosBaseAbciV1beta1ABCIMessageLog, @@ -4437,6 +4541,7 @@ export { MsgData as CosmosBaseAbciV1beta1MsgData, TxMsgData as CosmosBaseAbciV1beta1TxMsgData, SearchTxsResult as CosmosBaseAbciV1beta1SearchTxsResult, + SearchBlocksResult as CosmosBaseAbciV1beta1SearchBlocksResult, } from "./cosmos/base/abci/v1beta1/abci_pb.js"; export { MsgSend as CosmosBankV1beta1MsgSend, @@ -4473,9 +4578,13 @@ export { QueryDenomsMetadataResponse as CosmosBankV1beta1QueryDenomsMetadataResponse, QueryDenomMetadataRequest as CosmosBankV1beta1QueryDenomMetadataRequest, QueryDenomMetadataResponse as CosmosBankV1beta1QueryDenomMetadataResponse, + QueryDenomMetadataByQueryStringRequest as CosmosBankV1beta1QueryDenomMetadataByQueryStringRequest, + QueryDenomMetadataByQueryStringResponse as CosmosBankV1beta1QueryDenomMetadataByQueryStringResponse, QueryDenomOwnersRequest as CosmosBankV1beta1QueryDenomOwnersRequest, DenomOwner as CosmosBankV1beta1DenomOwner, QueryDenomOwnersResponse as CosmosBankV1beta1QueryDenomOwnersResponse, + QueryDenomOwnersByQueryRequest as CosmosBankV1beta1QueryDenomOwnersByQueryRequest, + QueryDenomOwnersByQueryResponse as CosmosBankV1beta1QueryDenomOwnersByQueryResponse, QuerySendEnabledRequest as CosmosBankV1beta1QuerySendEnabledRequest, QuerySendEnabledResponse as CosmosBankV1beta1QuerySendEnabledResponse, } from "./cosmos/bank/v1beta1/query_pb.js"; @@ -4488,8 +4597,10 @@ export { QuerySupplyOfService as CosmosBankV1beta1QuerySupplyOfService, QueryParamsService as CosmosBankV1beta1QueryParamsService, QueryDenomMetadataService as CosmosBankV1beta1QueryDenomMetadataService, + QueryDenomMetadataByQueryStringService as CosmosBankV1beta1QueryDenomMetadataByQueryStringService, QueryDenomsMetadataService as CosmosBankV1beta1QueryDenomsMetadataService, QueryDenomOwnersService as CosmosBankV1beta1QueryDenomOwnersService, + QueryDenomOwnersByQueryService as CosmosBankV1beta1QueryDenomOwnersByQueryService, QuerySendEnabledService as CosmosBankV1beta1QuerySendEnabledService, } from "./cosmos/bank/v1beta1/query_cosmes.js"; export { @@ -4527,9 +4638,9 @@ export { } from "./cosmos/autocli/v1/options_pb.js"; export { MsgGrant as CosmosAuthzV1beta1MsgGrant, - MsgExecResponse as CosmosAuthzV1beta1MsgExecResponse, - MsgExec as CosmosAuthzV1beta1MsgExec, MsgGrantResponse as CosmosAuthzV1beta1MsgGrantResponse, + MsgExec as CosmosAuthzV1beta1MsgExec, + MsgExecResponse as CosmosAuthzV1beta1MsgExecResponse, MsgRevoke as CosmosAuthzV1beta1MsgRevoke, MsgRevokeResponse as CosmosAuthzV1beta1MsgRevokeResponse, } from "./cosmos/authz/v1beta1/tx_pb.js"; diff --git a/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts index f16221da..c105b5a6 100644 --- a/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { TickInfo } from "./tickInfo_pb.js"; +import { TickInfo } from "./tick_info_pb.js"; import { IncentiveRecord } from "./incentive_record_pb.js"; import { Position } from "./position_pb.js"; import { AccumulatorContent, Record } from "../../accum/v1beta1/accum_pb.js"; @@ -234,6 +234,11 @@ export class GenesisState extends Message { */ incentivesAccumulatorPoolIdMigrationThreshold = protoInt64.zero; + /** + * @generated from field: uint64 spread_factor_pool_id_migration_threshold = 7; + */ + spreadFactorPoolIdMigrationThreshold = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -248,6 +253,7 @@ export class GenesisState extends Message { { no: 4, name: "next_position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "next_incentive_record_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 6, name: "incentives_accumulator_pool_id_migration_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "spread_factor_pool_id_migration_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts b/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts index 10bf9013..48596f29 100644 --- a/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts @@ -9,7 +9,7 @@ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pa import { FullPositionBreakdown, PositionWithPeriodLock } from "./position_pb.js"; import { Params } from "../params_pb.js"; import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { UptimeTracker } from "./tickInfo_pb.js"; +import { UptimeTracker } from "./tick_info_pb.js"; import { IncentiveRecord } from "./incentive_record_pb.js"; /** diff --git a/src/protobufs/osmosis/concentratedliquidity/v1beta1/tickInfo_pb.ts b/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts similarity index 98% rename from src/protobufs/osmosis/concentratedliquidity/v1beta1/tickInfo_pb.ts rename to src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts index 145502cd..4395280c 100644 --- a/src/protobufs/osmosis/concentratedliquidity/v1beta1/tickInfo_pb.ts +++ b/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/tickInfo.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) +// @generated from file osmosis/concentratedliquidity/v1beta1/tick_info.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/osmosis/incentives/params_pb.ts b/src/protobufs/osmosis/incentives/params_pb.ts index 8dc6c8d3..8c1c13bb 100644 --- a/src/protobufs/osmosis/incentives/params_pb.ts +++ b/src/protobufs/osmosis/incentives/params_pb.ts @@ -56,6 +56,17 @@ export class Params extends Message { */ internalUptime?: Duration; + /** + * min_value_for_distribution is the minimum amount a token must be worth + * in order to be eligible for distribution. If the token is worth + * less than this amount (or the route between the two denoms is not + * registered), it will not be distributed and is forfeited to the remaining + * distributees that are eligible. + * + * @generated from field: cosmos.base.v1beta1.Coin min_value_for_distribution = 5; + */ + minValueForDistribution?: Coin; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -68,6 +79,7 @@ export class Params extends Message { { no: 2, name: "group_creation_fee", kind: "message", T: Coin, repeated: true }, { no: 3, name: "unrestricted_creator_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "internal_uptime", kind: "message", T: Duration }, + { no: 5, name: "min_value_for_distribution", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..80eb3568 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/genesis.proto (package osmosis.smartaccount.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 { AccountAuthenticator } from "./models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * AuthenticatorData represents a genesis exported account with Authenticators. + * The address is used as the key, and the account authenticators are stored in + * the authenticators field. + * + * @generated from message osmosis.smartaccount.v1beta1.AuthenticatorData + */ +export class AuthenticatorData extends Message { + /** + * address is an account address, one address can have many authenticators + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * authenticators are the account's authenticators, these can be multiple + * types including SignatureVerification, AllOfs, CosmWasmAuthenticators, etc + * + * @generated from field: repeated osmosis.smartaccount.v1beta1.AccountAuthenticator authenticators = 2; + */ + authenticators: AccountAuthenticator[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.AuthenticatorData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authenticators", kind: "message", T: AccountAuthenticator, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AuthenticatorData { + return new AuthenticatorData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AuthenticatorData { + return new AuthenticatorData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AuthenticatorData { + return new AuthenticatorData().fromJsonString(jsonString, options); + } + + static equals(a: AuthenticatorData | PlainMessage | undefined, b: AuthenticatorData | PlainMessage | undefined): boolean { + return proto3.util.equals(AuthenticatorData, a, b); + } +} + +/** + * GenesisState defines the authenticator module's genesis state. + * + * @generated from message osmosis.smartaccount.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params define the parameters for the authenticator module. + * + * @generated from field: osmosis.smartaccount.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * next_authenticator_id is the next available authenticator ID. + * + * @generated from field: uint64 next_authenticator_id = 2; + */ + nextAuthenticatorId = protoInt64.zero; + + /** + * authenticator_data contains the data for multiple accounts, each with their + * authenticators. + * + * @generated from field: repeated osmosis.smartaccount.v1beta1.AuthenticatorData authenticator_data = 3; + */ + authenticatorData: AuthenticatorData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "next_authenticator_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "authenticator_data", kind: "message", T: AuthenticatorData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts new file mode 100644 index 00000000..5c2aecc3 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/models.proto (package osmosis.smartaccount.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"; + +/** + * AccountAuthenticator represents a foundational model for all authenticators. + * It provides extensibility by allowing concrete types to interpret and + * validate transactions based on the encapsulated data. + * + * @generated from message osmosis.smartaccount.v1beta1.AccountAuthenticator + */ +export class AccountAuthenticator extends Message { + /** + * ID uniquely identifies the authenticator instance. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * Type specifies the category of the AccountAuthenticator. + * This type information is essential for differentiating authenticators + * and ensuring precise data retrieval from the storage layer. + * + * @generated from field: string type = 2; + */ + type = ""; + + /** + * Config is a versatile field used in conjunction with the specific type of + * account authenticator to facilitate complex authentication processes. + * The interpretation of this field is overloaded, enabling multiple + * authenticators to utilize it for their respective purposes. + * + * @generated from field: bytes config = 3; + */ + config = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.AccountAuthenticator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "config", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountAuthenticator { + return new AccountAuthenticator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountAuthenticator { + return new AccountAuthenticator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountAuthenticator { + return new AccountAuthenticator().fromJsonString(jsonString, options); + } + + static equals(a: AccountAuthenticator | PlainMessage | undefined, b: AccountAuthenticator | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountAuthenticator, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts new file mode 100644 index 00000000..127b9699 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts @@ -0,0 +1,70 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/params.proto (package osmosis.smartaccount.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"; + +/** + * Params defines the parameters for the module. + * + * @generated from message osmosis.smartaccount.v1beta1.Params + */ +export class Params extends Message { + /** + * MaximumUnauthenticatedGas defines the maximum amount of gas that can be + * used to authenticate a transaction in ante handler without having fee payer + * authenticated. + * + * @generated from field: uint64 maximum_unauthenticated_gas = 1; + */ + maximumUnauthenticatedGas = protoInt64.zero; + + /** + * IsSmartAccountActive defines the state of the authenticator. + * If set to false, the authenticator module will not be used + * and the classic cosmos sdk authentication will be used instead. + * + * @generated from field: bool is_smart_account_active = 2; + */ + isSmartAccountActive = false; + + /** + * CircuitBreakerControllers defines list of addresses that are allowed to + * set is_smart_account_active without going through governance. + * + * @generated from field: repeated string circuit_breaker_controllers = 3; + */ + circuitBreakerControllers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maximum_unauthenticated_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "is_smart_account_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "circuit_breaker_controllers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..9df34f97 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts @@ -0,0 +1,41 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/query.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { GetAuthenticatorRequest, GetAuthenticatorResponse, GetAuthenticatorsRequest, GetAuthenticatorsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "osmosis.smartaccount.v1beta1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc osmosis.smartaccount.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Query.GetAuthenticator + */ +export const QueryGetAuthenticatorService = { + typeName: TYPE_NAME, + method: "GetAuthenticator", + Request: GetAuthenticatorRequest, + Response: GetAuthenticatorResponse, +} as const; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Query.GetAuthenticators + */ +export const QueryGetAuthenticatorsService = { + typeName: TYPE_NAME, + method: "GetAuthenticators", + Request: GetAuthenticatorsRequest, + Response: GetAuthenticatorsResponse, +} as const; + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts new file mode 100644 index 00000000..32733a4a --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts @@ -0,0 +1,246 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/query.proto (package osmosis.smartaccount.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 { Params } from "./params_pb.js"; +import { AccountAuthenticator } from "./models_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message osmosis.smartaccount.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message osmosis.smartaccount.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: osmosis.smartaccount.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * MsgGetAuthenticatorsRequest defines the Msg/GetAuthenticators request type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorsRequest + */ +export class GetAuthenticatorsRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorsRequest { + return new GetAuthenticatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorsRequest { + return new GetAuthenticatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorsRequest { + return new GetAuthenticatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorsRequest | PlainMessage | undefined, b: GetAuthenticatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorsRequest, a, b); + } +} + +/** + * MsgGetAuthenticatorsResponse defines the Msg/GetAuthenticators response type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorsResponse + */ +export class GetAuthenticatorsResponse extends Message { + /** + * @generated from field: repeated osmosis.smartaccount.v1beta1.AccountAuthenticator account_authenticators = 1; + */ + accountAuthenticators: AccountAuthenticator[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_authenticators", kind: "message", T: AccountAuthenticator, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorsResponse { + return new GetAuthenticatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorsResponse { + return new GetAuthenticatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorsResponse { + return new GetAuthenticatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorsResponse | PlainMessage | undefined, b: GetAuthenticatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorsResponse, a, b); + } +} + +/** + * MsgGetAuthenticatorRequest defines the Msg/GetAuthenticator request type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorRequest + */ +export class GetAuthenticatorRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: uint64 authenticator_id = 2; + */ + authenticatorId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authenticator_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorRequest { + return new GetAuthenticatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorRequest { + return new GetAuthenticatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorRequest { + return new GetAuthenticatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorRequest | PlainMessage | undefined, b: GetAuthenticatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorRequest, a, b); + } +} + +/** + * MsgGetAuthenticatorResponse defines the Msg/GetAuthenticator response type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorResponse + */ +export class GetAuthenticatorResponse extends Message { + /** + * @generated from field: osmosis.smartaccount.v1beta1.AccountAuthenticator account_authenticator = 1; + */ + accountAuthenticator?: AccountAuthenticator; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_authenticator", kind: "message", T: AccountAuthenticator }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorResponse { + return new GetAuthenticatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorResponse { + return new GetAuthenticatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorResponse { + return new GetAuthenticatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorResponse | PlainMessage | undefined, b: GetAuthenticatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts b/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..75dca756 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts @@ -0,0 +1,42 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/tx.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddAuthenticator, MsgAddAuthenticatorResponse, MsgRemoveAuthenticator, MsgRemoveAuthenticatorResponse, MsgSetActiveState, MsgSetActiveStateResponse } from "./tx_pb.js"; + +const TYPE_NAME = "osmosis.smartaccount.v1beta1.Msg"; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Msg.AddAuthenticator + */ +export const MsgAddAuthenticatorService = { + typeName: TYPE_NAME, + method: "AddAuthenticator", + Request: MsgAddAuthenticator, + Response: MsgAddAuthenticatorResponse, +} as const; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Msg.RemoveAuthenticator + */ +export const MsgRemoveAuthenticatorService = { + typeName: TYPE_NAME, + method: "RemoveAuthenticator", + Request: MsgRemoveAuthenticator, + Response: MsgRemoveAuthenticatorResponse, +} as const; + +/** + * SetActiveState sets the active state of the authenticator. + * Primarily used for circuit breaking. + * + * @generated from rpc osmosis.smartaccount.v1beta1.Msg.SetActiveState + */ +export const MsgSetActiveStateService = { + typeName: TYPE_NAME, + method: "SetActiveState", + Request: MsgSetActiveState, + Response: MsgSetActiveStateResponse, +} as const; + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts new file mode 100644 index 00000000..ec0ec977 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts @@ -0,0 +1,301 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/tx.proto (package osmosis.smartaccount.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"; + +/** + * MsgAddAuthenticatorRequest defines the Msg/AddAuthenticator request type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgAddAuthenticator + */ +export class MsgAddAuthenticator extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string type = 2; + */ + type = ""; + + /** + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgAddAuthenticator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddAuthenticator { + return new MsgAddAuthenticator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddAuthenticator { + return new MsgAddAuthenticator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddAuthenticator { + return new MsgAddAuthenticator().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddAuthenticator | PlainMessage | undefined, b: MsgAddAuthenticator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddAuthenticator, a, b); + } +} + +/** + * MsgAddAuthenticatorResponse defines the Msg/AddAuthenticator response type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgAddAuthenticatorResponse + */ +export class MsgAddAuthenticatorResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgAddAuthenticatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddAuthenticatorResponse { + return new MsgAddAuthenticatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddAuthenticatorResponse { + return new MsgAddAuthenticatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddAuthenticatorResponse { + return new MsgAddAuthenticatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddAuthenticatorResponse | PlainMessage | undefined, b: MsgAddAuthenticatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddAuthenticatorResponse, a, b); + } +} + +/** + * MsgRemoveAuthenticatorRequest defines the Msg/RemoveAuthenticator request + * type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator + */ +export class MsgRemoveAuthenticator extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAuthenticator { + return new MsgRemoveAuthenticator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAuthenticator { + return new MsgRemoveAuthenticator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAuthenticator { + return new MsgRemoveAuthenticator().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveAuthenticator | PlainMessage | undefined, b: MsgRemoveAuthenticator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveAuthenticator, a, b); + } +} + +/** + * MsgRemoveAuthenticatorResponse defines the Msg/RemoveAuthenticator response + * type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgRemoveAuthenticatorResponse + */ +export class MsgRemoveAuthenticatorResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgRemoveAuthenticatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAuthenticatorResponse { + return new MsgRemoveAuthenticatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAuthenticatorResponse { + return new MsgRemoveAuthenticatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAuthenticatorResponse { + return new MsgRemoveAuthenticatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveAuthenticatorResponse | PlainMessage | undefined, b: MsgRemoveAuthenticatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveAuthenticatorResponse, a, b); + } +} + +/** + * @generated from message osmosis.smartaccount.v1beta1.MsgSetActiveState + */ +export class MsgSetActiveState extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: bool active = 2; + */ + active = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgSetActiveState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetActiveState { + return new MsgSetActiveState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetActiveState { + return new MsgSetActiveState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetActiveState { + return new MsgSetActiveState().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetActiveState | PlainMessage | undefined, b: MsgSetActiveState | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetActiveState, a, b); + } +} + +/** + * @generated from message osmosis.smartaccount.v1beta1.MsgSetActiveStateResponse + */ +export class MsgSetActiveStateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgSetActiveStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetActiveStateResponse { + return new MsgSetActiveStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetActiveStateResponse { + return new MsgSetActiveStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetActiveStateResponse { + return new MsgSetActiveStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetActiveStateResponse | PlainMessage | undefined, b: MsgSetActiveStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetActiveStateResponse, a, b); + } +} + +/** + * TxExtension allows for additional authenticator-specific data in + * transactions. + * + * @generated from message osmosis.smartaccount.v1beta1.TxExtension + */ +export class TxExtension extends Message { + /** + * selected_authenticators holds the authenticator_id for the chosen + * authenticator per message. + * + * @generated from field: repeated uint64 selected_authenticators = 1; + */ + selectedAuthenticators: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.TxExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "selected_authenticators", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TxExtension { + return new TxExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TxExtension { + return new TxExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TxExtension { + return new TxExtension().fromJsonString(jsonString, options); + } + + static equals(a: TxExtension | PlainMessage | undefined, b: TxExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(TxExtension, a, b); + } +} + diff --git a/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts index 9b757c7b..cba79557 100644 --- a/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; +import { QueryAllBeforeSendHooksAddressesRequest, QueryAllBeforeSendHooksAddressesResponse, QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.tokenfactory.v1beta1.Query"; @@ -59,3 +59,19 @@ export const QueryBeforeSendHookAddressService = { Response: QueryBeforeSendHookAddressResponse, } as const; +/** + * AllBeforeSendHooksAddresses defines a gRPC query method for + * getting all addresses with before send hook registered. + * The response returns two arrays, an array with a list of denom and an array + * of before send hook addresses. The idx of denom corresponds to before send + * hook addresse's idx. + * + * @generated from rpc osmosis.tokenfactory.v1beta1.Query.AllBeforeSendHooksAddresses + */ +export const QueryAllBeforeSendHooksAddressesService = { + typeName: TYPE_NAME, + method: "AllBeforeSendHooksAddresses", + Request: QueryAllBeforeSendHooksAddressesRequest, + Response: QueryAllBeforeSendHooksAddressesResponse, +} as const; + diff --git a/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts b/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts index c1e5a725..b5270c24 100644 --- a/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts @@ -319,3 +319,80 @@ export class QueryBeforeSendHookAddressResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBeforeSendHooksAddressesRequest, a, b); + } +} + +/** + * QueryAllBeforeSendHooksAddressesResponse defines the response structure for + * the AllBeforeSendHooksAddresses gRPC query. + * + * @generated from message osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesResponse + */ +export class QueryAllBeforeSendHooksAddressesResponse extends Message { + /** + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + /** + * @generated from field: repeated string before_send_hook_addresses = 2; + */ + beforeSendHookAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "before_send_hook_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBeforeSendHooksAddressesResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts index 6b0ffc00..bd664454 100644 --- a/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts @@ -6,6 +6,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { FeeToken } from "./feetoken_pb.js"; +import { Params } from "./params_pb.js"; /** * GenesisState defines the txfees module's genesis state. @@ -23,6 +24,13 @@ export class GenesisState extends Message { */ feetokens: FeeToken[] = []; + /** + * params is the container of txfees parameters. + * + * @generated from field: osmosis.txfees.v1beta1.Params params = 4; + */ + params?: Params; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -33,6 +41,7 @@ export class GenesisState extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "basedenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "feetokens", kind: "message", T: FeeToken, repeated: true }, + { no: 4, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts b/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts new file mode 100644 index 00000000..9c5892e9 --- /dev/null +++ b/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/txfees/v1beta1/params.proto (package osmosis.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params holds parameters for the txfees module + * + * @generated from message osmosis.txfees.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated string whitelisted_fee_token_setters = 1; + */ + whitelistedFeeTokenSetters: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.txfees.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted_fee_token_setters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts b/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..0d2735cb --- /dev/null +++ b/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/txfees/v1beta1/tx.proto (package osmosis.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgSetFeeTokens, MsgSetFeeTokensResponse } from "./tx_pb.js"; + +const TYPE_NAME = "osmosis.txfees.v1beta1.Msg"; + +/** + * @generated from rpc osmosis.txfees.v1beta1.Msg.SetFeeTokens + */ +export const MsgSetFeeTokensService = { + typeName: TYPE_NAME, + method: "SetFeeTokens", + Request: MsgSetFeeTokens, + Response: MsgSetFeeTokensResponse, +} as const; + diff --git a/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts b/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts new file mode 100644 index 00000000..a90e448a --- /dev/null +++ b/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts @@ -0,0 +1,85 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/txfees/v1beta1/tx.proto (package osmosis.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { FeeToken } from "./feetoken_pb.js"; + +/** + * ===================== MsgSetFeeTokens + * + * @generated from message osmosis.txfees.v1beta1.MsgSetFeeTokens + */ +export class MsgSetFeeTokens extends Message { + /** + * @generated from field: repeated osmosis.txfees.v1beta1.FeeToken fee_tokens = 1; + */ + feeTokens: FeeToken[] = []; + + /** + * @generated from field: string sender = 2; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.txfees.v1beta1.MsgSetFeeTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_tokens", kind: "message", T: FeeToken, repeated: true }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetFeeTokens { + return new MsgSetFeeTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetFeeTokens { + return new MsgSetFeeTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetFeeTokens { + return new MsgSetFeeTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetFeeTokens | PlainMessage | undefined, b: MsgSetFeeTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetFeeTokens, a, b); + } +} + +/** + * @generated from message osmosis.txfees.v1beta1.MsgSetFeeTokensResponse + */ +export class MsgSetFeeTokensResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.txfees.v1beta1.MsgSetFeeTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetFeeTokensResponse { + return new MsgSetFeeTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetFeeTokensResponse { + return new MsgSetFeeTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetFeeTokensResponse { + return new MsgSetFeeTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetFeeTokensResponse | PlainMessage | undefined, b: MsgSetFeeTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetFeeTokensResponse, a, b); + } +} + diff --git a/src/protobufs/tendermint/abci/types_cosmes.ts b/src/protobufs/tendermint/abci/types_cosmes.ts index ca3501b1..9716fcd5 100644 --- a/src/protobufs/tendermint/abci/types_cosmes.ts +++ b/src/protobufs/tendermint/abci/types_cosmes.ts @@ -3,14 +3,14 @@ /* eslint-disable */ // @ts-nocheck -import { RequestApplySnapshotChunk, RequestBeginBlock, RequestCheckTx, RequestCommit, RequestDeliverTx, RequestEcho, RequestEndBlock, RequestFlush, RequestInfo, RequestInitChain, RequestListSnapshots, RequestLoadSnapshotChunk, RequestOfferSnapshot, RequestPrepareProposal, RequestProcessProposal, RequestQuery, ResponseApplySnapshotChunk, ResponseBeginBlock, ResponseCheckTx, ResponseCommit, ResponseDeliverTx, ResponseEcho, ResponseEndBlock, ResponseFlush, ResponseInfo, ResponseInitChain, ResponseListSnapshots, ResponseLoadSnapshotChunk, ResponseOfferSnapshot, ResponsePrepareProposal, ResponseProcessProposal, ResponseQuery } from "./types_pb.js"; +import { RequestApplySnapshotChunk, RequestCheckTx, RequestCommit, RequestEcho, RequestExtendVote, RequestFinalizeBlock, RequestFlush, RequestInfo, RequestInitChain, RequestListSnapshots, RequestLoadSnapshotChunk, RequestOfferSnapshot, RequestPrepareProposal, RequestProcessProposal, RequestQuery, RequestVerifyVoteExtension, ResponseApplySnapshotChunk, ResponseCheckTx, ResponseCommit, ResponseEcho, ResponseExtendVote, ResponseFinalizeBlock, ResponseFlush, ResponseInfo, ResponseInitChain, ResponseListSnapshots, ResponseLoadSnapshotChunk, ResponseOfferSnapshot, ResponsePrepareProposal, ResponseProcessProposal, ResponseQuery, ResponseVerifyVoteExtension } from "./types_pb.js"; -const TYPE_NAME = "tendermint.abci.ABCIApplication"; +const TYPE_NAME = "tendermint.abci.ABCI"; /** - * @generated from rpc tendermint.abci.ABCIApplication.Echo + * @generated from rpc tendermint.abci.ABCI.Echo */ -export const ABCIApplicationEchoService = { +export const ABCIEchoService = { typeName: TYPE_NAME, method: "Echo", Request: RequestEcho, @@ -18,9 +18,9 @@ export const ABCIApplicationEchoService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Flush + * @generated from rpc tendermint.abci.ABCI.Flush */ -export const ABCIApplicationFlushService = { +export const ABCIFlushService = { typeName: TYPE_NAME, method: "Flush", Request: RequestFlush, @@ -28,9 +28,9 @@ export const ABCIApplicationFlushService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Info + * @generated from rpc tendermint.abci.ABCI.Info */ -export const ABCIApplicationInfoService = { +export const ABCIInfoService = { typeName: TYPE_NAME, method: "Info", Request: RequestInfo, @@ -38,19 +38,9 @@ export const ABCIApplicationInfoService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.DeliverTx + * @generated from rpc tendermint.abci.ABCI.CheckTx */ -export const ABCIApplicationDeliverTxService = { - typeName: TYPE_NAME, - method: "DeliverTx", - Request: RequestDeliverTx, - Response: ResponseDeliverTx, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCIApplication.CheckTx - */ -export const ABCIApplicationCheckTxService = { +export const ABCICheckTxService = { typeName: TYPE_NAME, method: "CheckTx", Request: RequestCheckTx, @@ -58,9 +48,9 @@ export const ABCIApplicationCheckTxService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Query + * @generated from rpc tendermint.abci.ABCI.Query */ -export const ABCIApplicationQueryService = { +export const ABCIQueryService = { typeName: TYPE_NAME, method: "Query", Request: RequestQuery, @@ -68,9 +58,9 @@ export const ABCIApplicationQueryService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Commit + * @generated from rpc tendermint.abci.ABCI.Commit */ -export const ABCIApplicationCommitService = { +export const ABCICommitService = { typeName: TYPE_NAME, method: "Commit", Request: RequestCommit, @@ -78,9 +68,9 @@ export const ABCIApplicationCommitService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.InitChain + * @generated from rpc tendermint.abci.ABCI.InitChain */ -export const ABCIApplicationInitChainService = { +export const ABCIInitChainService = { typeName: TYPE_NAME, method: "InitChain", Request: RequestInitChain, @@ -88,29 +78,9 @@ export const ABCIApplicationInitChainService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.BeginBlock - */ -export const ABCIApplicationBeginBlockService = { - typeName: TYPE_NAME, - method: "BeginBlock", - Request: RequestBeginBlock, - Response: ResponseBeginBlock, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCIApplication.EndBlock - */ -export const ABCIApplicationEndBlockService = { - typeName: TYPE_NAME, - method: "EndBlock", - Request: RequestEndBlock, - Response: ResponseEndBlock, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCIApplication.ListSnapshots + * @generated from rpc tendermint.abci.ABCI.ListSnapshots */ -export const ABCIApplicationListSnapshotsService = { +export const ABCIListSnapshotsService = { typeName: TYPE_NAME, method: "ListSnapshots", Request: RequestListSnapshots, @@ -118,9 +88,9 @@ export const ABCIApplicationListSnapshotsService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.OfferSnapshot + * @generated from rpc tendermint.abci.ABCI.OfferSnapshot */ -export const ABCIApplicationOfferSnapshotService = { +export const ABCIOfferSnapshotService = { typeName: TYPE_NAME, method: "OfferSnapshot", Request: RequestOfferSnapshot, @@ -128,9 +98,9 @@ export const ABCIApplicationOfferSnapshotService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.LoadSnapshotChunk + * @generated from rpc tendermint.abci.ABCI.LoadSnapshotChunk */ -export const ABCIApplicationLoadSnapshotChunkService = { +export const ABCILoadSnapshotChunkService = { typeName: TYPE_NAME, method: "LoadSnapshotChunk", Request: RequestLoadSnapshotChunk, @@ -138,9 +108,9 @@ export const ABCIApplicationLoadSnapshotChunkService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.ApplySnapshotChunk + * @generated from rpc tendermint.abci.ABCI.ApplySnapshotChunk */ -export const ABCIApplicationApplySnapshotChunkService = { +export const ABCIApplySnapshotChunkService = { typeName: TYPE_NAME, method: "ApplySnapshotChunk", Request: RequestApplySnapshotChunk, @@ -148,9 +118,9 @@ export const ABCIApplicationApplySnapshotChunkService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.PrepareProposal + * @generated from rpc tendermint.abci.ABCI.PrepareProposal */ -export const ABCIApplicationPrepareProposalService = { +export const ABCIPrepareProposalService = { typeName: TYPE_NAME, method: "PrepareProposal", Request: RequestPrepareProposal, @@ -158,12 +128,42 @@ export const ABCIApplicationPrepareProposalService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.ProcessProposal + * @generated from rpc tendermint.abci.ABCI.ProcessProposal */ -export const ABCIApplicationProcessProposalService = { +export const ABCIProcessProposalService = { typeName: TYPE_NAME, method: "ProcessProposal", Request: RequestProcessProposal, Response: ResponseProcessProposal, } as const; +/** + * @generated from rpc tendermint.abci.ABCI.ExtendVote + */ +export const ABCIExtendVoteService = { + typeName: TYPE_NAME, + method: "ExtendVote", + Request: RequestExtendVote, + Response: ResponseExtendVote, +} as const; + +/** + * @generated from rpc tendermint.abci.ABCI.VerifyVoteExtension + */ +export const ABCIVerifyVoteExtensionService = { + typeName: TYPE_NAME, + method: "VerifyVoteExtension", + Request: RequestVerifyVoteExtension, + Response: ResponseVerifyVoteExtension, +} as const; + +/** + * @generated from rpc tendermint.abci.ABCI.FinalizeBlock + */ +export const ABCIFinalizeBlockService = { + typeName: TYPE_NAME, + method: "FinalizeBlock", + Request: RequestFinalizeBlock, + Response: ResponseFinalizeBlock, +} as const; + diff --git a/src/protobufs/tendermint/abci/types_pb.ts b/src/protobufs/tendermint/abci/types_pb.ts index ca21ef5c..06e40de5 100644 --- a/src/protobufs/tendermint/abci/types_pb.ts +++ b/src/protobufs/tendermint/abci/types_pb.ts @@ -6,9 +6,9 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { ConsensusParams } from "../types/params_pb.js"; -import { Header } from "../types/types_pb.js"; import { ProofOps } from "../crypto/proof_pb.js"; import { PublicKey } from "../crypto/keys_pb.js"; +import { BlockIDFlag } from "../types/validator_pb.js"; /** * @generated from enum tendermint.abci.CheckTxType @@ -93,30 +93,12 @@ export class Request extends Message { */ value: RequestQuery; case: "query"; - } | { - /** - * @generated from field: tendermint.abci.RequestBeginBlock begin_block = 7; - */ - value: RequestBeginBlock; - case: "beginBlock"; } | { /** * @generated from field: tendermint.abci.RequestCheckTx check_tx = 8; */ value: RequestCheckTx; case: "checkTx"; - } | { - /** - * @generated from field: tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - value: RequestDeliverTx; - case: "deliverTx"; - } | { - /** - * @generated from field: tendermint.abci.RequestEndBlock end_block = 10; - */ - value: RequestEndBlock; - case: "endBlock"; } | { /** * @generated from field: tendermint.abci.RequestCommit commit = 11; @@ -159,6 +141,24 @@ export class Request extends Message { */ value: RequestProcessProposal; case: "processProposal"; + } | { + /** + * @generated from field: tendermint.abci.RequestExtendVote extend_vote = 18; + */ + value: RequestExtendVote; + case: "extendVote"; + } | { + /** + * @generated from field: tendermint.abci.RequestVerifyVoteExtension verify_vote_extension = 19; + */ + value: RequestVerifyVoteExtension; + case: "verifyVoteExtension"; + } | { + /** + * @generated from field: tendermint.abci.RequestFinalizeBlock finalize_block = 20; + */ + value: RequestFinalizeBlock; + case: "finalizeBlock"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -174,10 +174,7 @@ export class Request extends Message { { no: 3, name: "info", kind: "message", T: RequestInfo, oneof: "value" }, { no: 5, name: "init_chain", kind: "message", T: RequestInitChain, oneof: "value" }, { no: 6, name: "query", kind: "message", T: RequestQuery, oneof: "value" }, - { no: 7, name: "begin_block", kind: "message", T: RequestBeginBlock, oneof: "value" }, { no: 8, name: "check_tx", kind: "message", T: RequestCheckTx, oneof: "value" }, - { no: 9, name: "deliver_tx", kind: "message", T: RequestDeliverTx, oneof: "value" }, - { no: 10, name: "end_block", kind: "message", T: RequestEndBlock, oneof: "value" }, { no: 11, name: "commit", kind: "message", T: RequestCommit, oneof: "value" }, { no: 12, name: "list_snapshots", kind: "message", T: RequestListSnapshots, oneof: "value" }, { no: 13, name: "offer_snapshot", kind: "message", T: RequestOfferSnapshot, oneof: "value" }, @@ -185,6 +182,9 @@ export class Request extends Message { { no: 15, name: "apply_snapshot_chunk", kind: "message", T: RequestApplySnapshotChunk, oneof: "value" }, { no: 16, name: "prepare_proposal", kind: "message", T: RequestPrepareProposal, oneof: "value" }, { no: 17, name: "process_proposal", kind: "message", T: RequestProcessProposal, oneof: "value" }, + { no: 18, name: "extend_vote", kind: "message", T: RequestExtendVote, oneof: "value" }, + { no: 19, name: "verify_vote_extension", kind: "message", T: RequestVerifyVoteExtension, oneof: "value" }, + { no: 20, name: "finalize_block", kind: "message", T: RequestFinalizeBlock, oneof: "value" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Request { @@ -449,61 +449,6 @@ export class RequestQuery extends Message { } } -/** - * @generated from message tendermint.abci.RequestBeginBlock - */ -export class RequestBeginBlock extends Message { - /** - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - /** - * @generated from field: tendermint.types.Header header = 2; - */ - header?: Header; - - /** - * @generated from field: tendermint.abci.CommitInfo last_commit_info = 3; - */ - lastCommitInfo?: CommitInfo; - - /** - * @generated from field: repeated tendermint.abci.Misbehavior byzantine_validators = 4; - */ - byzantineValidators: Misbehavior[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestBeginBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "header", kind: "message", T: Header }, - { no: 3, name: "last_commit_info", kind: "message", T: CommitInfo }, - { no: 4, name: "byzantine_validators", kind: "message", T: Misbehavior, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestBeginBlock { - return new RequestBeginBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestBeginBlock { - return new RequestBeginBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestBeginBlock { - return new RequestBeginBlock().fromJsonString(jsonString, options); - } - - static equals(a: RequestBeginBlock | PlainMessage | undefined, b: RequestBeginBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestBeginBlock, a, b); - } -} - /** * @generated from message tendermint.abci.RequestCheckTx */ @@ -547,80 +492,6 @@ export class RequestCheckTx extends Message { } } -/** - * @generated from message tendermint.abci.RequestDeliverTx - */ -export class RequestDeliverTx extends Message { - /** - * @generated from field: bytes tx = 1; - */ - tx = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestDeliverTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestDeliverTx { - return new RequestDeliverTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestDeliverTx { - return new RequestDeliverTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestDeliverTx { - return new RequestDeliverTx().fromJsonString(jsonString, options); - } - - static equals(a: RequestDeliverTx | PlainMessage | undefined, b: RequestDeliverTx | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestDeliverTx, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestEndBlock - */ -export class RequestEndBlock extends Message { - /** - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestEndBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestEndBlock { - return new RequestEndBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestEndBlock { - return new RequestEndBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestEndBlock { - return new RequestEndBlock().fromJsonString(jsonString, options); - } - - static equals(a: RequestEndBlock | PlainMessage | undefined, b: RequestEndBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestEndBlock, a, b); - } -} - /** * @generated from message tendermint.abci.RequestCommit */ @@ -1005,6 +876,239 @@ export class RequestProcessProposal extends Message { } } +/** + * Extends a vote with application-injected data + * + * @generated from message tendermint.abci.RequestExtendVote + */ +export class RequestExtendVote extends Message { + /** + * the hash of the block that this vote may be referring to + * + * @generated from field: bytes hash = 1; + */ + hash = new Uint8Array(0); + + /** + * the height of the extended vote + * + * @generated from field: int64 height = 2; + */ + height = protoInt64.zero; + + /** + * info of the block that this vote may be referring to + * + * @generated from field: google.protobuf.Timestamp time = 3; + */ + time?: Timestamp; + + /** + * @generated from field: repeated bytes txs = 4; + */ + txs: Uint8Array[] = []; + + /** + * @generated from field: tendermint.abci.CommitInfo proposed_last_commit = 5; + */ + proposedLastCommit?: CommitInfo; + + /** + * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 6; + */ + misbehavior: Misbehavior[] = []; + + /** + * @generated from field: bytes next_validators_hash = 7; + */ + nextValidatorsHash = new Uint8Array(0); + + /** + * address of the public key of the original proposer of the block. + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.RequestExtendVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "time", kind: "message", T: Timestamp }, + { no: 4, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 5, name: "proposed_last_commit", kind: "message", T: CommitInfo }, + { no: 6, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, + { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RequestExtendVote { + return new RequestExtendVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RequestExtendVote { + return new RequestExtendVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RequestExtendVote { + return new RequestExtendVote().fromJsonString(jsonString, options); + } + + static equals(a: RequestExtendVote | PlainMessage | undefined, b: RequestExtendVote | PlainMessage | undefined): boolean { + return proto3.util.equals(RequestExtendVote, a, b); + } +} + +/** + * Verify the vote extension + * + * @generated from message tendermint.abci.RequestVerifyVoteExtension + */ +export class RequestVerifyVoteExtension extends Message { + /** + * the hash of the block that this received vote corresponds to + * + * @generated from field: bytes hash = 1; + */ + hash = new Uint8Array(0); + + /** + * the validator that signed the vote extension + * + * @generated from field: bytes validator_address = 2; + */ + validatorAddress = new Uint8Array(0); + + /** + * @generated from field: int64 height = 3; + */ + height = protoInt64.zero; + + /** + * @generated from field: bytes vote_extension = 4; + */ + voteExtension = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.RequestVerifyVoteExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RequestVerifyVoteExtension { + return new RequestVerifyVoteExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RequestVerifyVoteExtension { + return new RequestVerifyVoteExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RequestVerifyVoteExtension { + return new RequestVerifyVoteExtension().fromJsonString(jsonString, options); + } + + static equals(a: RequestVerifyVoteExtension | PlainMessage | undefined, b: RequestVerifyVoteExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(RequestVerifyVoteExtension, a, b); + } +} + +/** + * @generated from message tendermint.abci.RequestFinalizeBlock + */ +export class RequestFinalizeBlock extends Message { + /** + * @generated from field: repeated bytes txs = 1; + */ + txs: Uint8Array[] = []; + + /** + * @generated from field: tendermint.abci.CommitInfo decided_last_commit = 2; + */ + decidedLastCommit?: CommitInfo; + + /** + * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 3; + */ + misbehavior: Misbehavior[] = []; + + /** + * hash is the merkle root hash of the fields of the decided block. + * + * @generated from field: bytes hash = 4; + */ + hash = new Uint8Array(0); + + /** + * @generated from field: int64 height = 5; + */ + height = protoInt64.zero; + + /** + * @generated from field: google.protobuf.Timestamp time = 6; + */ + time?: Timestamp; + + /** + * @generated from field: bytes next_validators_hash = 7; + */ + nextValidatorsHash = new Uint8Array(0); + + /** + * proposer_address is the address of the public key of the original proposer of the block. + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.RequestFinalizeBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 2, name: "decided_last_commit", kind: "message", T: CommitInfo }, + { no: 3, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, + { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "time", kind: "message", T: Timestamp }, + { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RequestFinalizeBlock { + return new RequestFinalizeBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RequestFinalizeBlock { + return new RequestFinalizeBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RequestFinalizeBlock { + return new RequestFinalizeBlock().fromJsonString(jsonString, options); + } + + static equals(a: RequestFinalizeBlock | PlainMessage | undefined, b: RequestFinalizeBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(RequestFinalizeBlock, a, b); + } +} + /** * @generated from message tendermint.abci.Response */ @@ -1048,30 +1152,12 @@ export class Response extends Message { */ value: ResponseQuery; case: "query"; - } | { - /** - * @generated from field: tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - value: ResponseBeginBlock; - case: "beginBlock"; } | { /** * @generated from field: tendermint.abci.ResponseCheckTx check_tx = 9; */ value: ResponseCheckTx; case: "checkTx"; - } | { - /** - * @generated from field: tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - value: ResponseDeliverTx; - case: "deliverTx"; - } | { - /** - * @generated from field: tendermint.abci.ResponseEndBlock end_block = 11; - */ - value: ResponseEndBlock; - case: "endBlock"; } | { /** * @generated from field: tendermint.abci.ResponseCommit commit = 12; @@ -1114,6 +1200,24 @@ export class Response extends Message { */ value: ResponseProcessProposal; case: "processProposal"; + } | { + /** + * @generated from field: tendermint.abci.ResponseExtendVote extend_vote = 19; + */ + value: ResponseExtendVote; + case: "extendVote"; + } | { + /** + * @generated from field: tendermint.abci.ResponseVerifyVoteExtension verify_vote_extension = 20; + */ + value: ResponseVerifyVoteExtension; + case: "verifyVoteExtension"; + } | { + /** + * @generated from field: tendermint.abci.ResponseFinalizeBlock finalize_block = 21; + */ + value: ResponseFinalizeBlock; + case: "finalizeBlock"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -1130,10 +1234,7 @@ export class Response extends Message { { no: 4, name: "info", kind: "message", T: ResponseInfo, oneof: "value" }, { no: 6, name: "init_chain", kind: "message", T: ResponseInitChain, oneof: "value" }, { no: 7, name: "query", kind: "message", T: ResponseQuery, oneof: "value" }, - { no: 8, name: "begin_block", kind: "message", T: ResponseBeginBlock, oneof: "value" }, { no: 9, name: "check_tx", kind: "message", T: ResponseCheckTx, oneof: "value" }, - { no: 10, name: "deliver_tx", kind: "message", T: ResponseDeliverTx, oneof: "value" }, - { no: 11, name: "end_block", kind: "message", T: ResponseEndBlock, oneof: "value" }, { no: 12, name: "commit", kind: "message", T: ResponseCommit, oneof: "value" }, { no: 13, name: "list_snapshots", kind: "message", T: ResponseListSnapshots, oneof: "value" }, { no: 14, name: "offer_snapshot", kind: "message", T: ResponseOfferSnapshot, oneof: "value" }, @@ -1141,6 +1242,9 @@ export class Response extends Message { { no: 16, name: "apply_snapshot_chunk", kind: "message", T: ResponseApplySnapshotChunk, oneof: "value" }, { no: 17, name: "prepare_proposal", kind: "message", T: ResponsePrepareProposal, oneof: "value" }, { no: 18, name: "process_proposal", kind: "message", T: ResponseProcessProposal, oneof: "value" }, + { no: 19, name: "extend_vote", kind: "message", T: ResponseExtendVote, oneof: "value" }, + { no: 20, name: "verify_vote_extension", kind: "message", T: ResponseVerifyVoteExtension, oneof: "value" }, + { no: 21, name: "finalize_block", kind: "message", T: ResponseFinalizeBlock, oneof: "value" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Response { @@ -1463,156 +1567,15 @@ export class ResponseQuery extends Message { return new ResponseQuery().fromJsonString(jsonString, options); } - static equals(a: ResponseQuery | PlainMessage | undefined, b: ResponseQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseQuery, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseBeginBlock - */ -export class ResponseBeginBlock extends Message { - /** - * @generated from field: repeated tendermint.abci.Event events = 1; - */ - events: Event[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseBeginBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "events", kind: "message", T: Event, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseBeginBlock { - return new ResponseBeginBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseBeginBlock { - return new ResponseBeginBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseBeginBlock { - return new ResponseBeginBlock().fromJsonString(jsonString, options); - } - - static equals(a: ResponseBeginBlock | PlainMessage | undefined, b: ResponseBeginBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseBeginBlock, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseCheckTx - */ -export class ResponseCheckTx extends Message { - /** - * @generated from field: uint32 code = 1; - */ - code = 0; - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - /** - * nondeterministic - * - * @generated from field: string log = 3; - */ - log = ""; - - /** - * nondeterministic - * - * @generated from field: string info = 4; - */ - info = ""; - - /** - * @generated from field: int64 gas_wanted = 5 [json_name = "gas_wanted"]; - */ - gasWanted = protoInt64.zero; - - /** - * @generated from field: int64 gas_used = 6 [json_name = "gas_used"]; - */ - gasUsed = protoInt64.zero; - - /** - * @generated from field: repeated tendermint.abci.Event events = 7; - */ - events: Event[] = []; - - /** - * @generated from field: string codespace = 8; - */ - codespace = ""; - - /** - * @generated from field: string sender = 9; - */ - sender = ""; - - /** - * @generated from field: int64 priority = 10; - */ - priority = protoInt64.zero; - - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - * - * @generated from field: string mempool_error = 11; - */ - mempoolError = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseCheckTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "gas_wanted", jsonName: "gas_wanted", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "gas_used", jsonName: "gas_used", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 7, name: "events", kind: "message", T: Event, repeated: true }, - { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "priority", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 11, name: "mempool_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromJsonString(jsonString, options); - } - - static equals(a: ResponseCheckTx | PlainMessage | undefined, b: ResponseCheckTx | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseCheckTx, a, b); + static equals(a: ResponseQuery | PlainMessage | undefined, b: ResponseQuery | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseQuery, a, b); } } /** - * @generated from message tendermint.abci.ResponseDeliverTx + * @generated from message tendermint.abci.ResponseCheckTx */ -export class ResponseDeliverTx extends Message { +export class ResponseCheckTx extends Message { /** * @generated from field: uint32 code = 1; */ @@ -1648,8 +1611,6 @@ export class ResponseDeliverTx extends Message { gasUsed = protoInt64.zero; /** - * nondeterministic - * * @generated from field: repeated tendermint.abci.Event events = 7; */ events: Event[] = []; @@ -1659,13 +1620,13 @@ export class ResponseDeliverTx extends Message { */ codespace = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseDeliverTx"; + static readonly typeName = "tendermint.abci.ResponseCheckTx"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, @@ -1677,69 +1638,20 @@ export class ResponseDeliverTx extends Message { { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseDeliverTx { - return new ResponseDeliverTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseDeliverTx { - return new ResponseDeliverTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseDeliverTx { - return new ResponseDeliverTx().fromJsonString(jsonString, options); - } - - static equals(a: ResponseDeliverTx | PlainMessage | undefined, b: ResponseDeliverTx | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseDeliverTx, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseEndBlock - */ -export class ResponseEndBlock extends Message { - /** - * @generated from field: repeated tendermint.abci.ValidatorUpdate validator_updates = 1; - */ - validatorUpdates: ValidatorUpdate[] = []; - - /** - * @generated from field: tendermint.types.ConsensusParams consensus_param_updates = 2; - */ - consensusParamUpdates?: ConsensusParams; - - /** - * @generated from field: repeated tendermint.abci.Event events = 3; - */ - events: Event[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseEndBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_updates", kind: "message", T: ValidatorUpdate, repeated: true }, - { no: 2, name: "consensus_param_updates", kind: "message", T: ConsensusParams }, - { no: 3, name: "events", kind: "message", T: Event, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseEndBlock { - return new ResponseEndBlock().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseCheckTx { + return new ResponseCheckTx().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseEndBlock { - return new ResponseEndBlock().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseCheckTx { + return new ResponseCheckTx().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): ResponseEndBlock { - return new ResponseEndBlock().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): ResponseCheckTx { + return new ResponseCheckTx().fromJsonString(jsonString, options); } - static equals(a: ResponseEndBlock | PlainMessage | undefined, b: ResponseEndBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseEndBlock, a, b); + static equals(a: ResponseCheckTx | PlainMessage | undefined, b: ResponseCheckTx | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseCheckTx, a, b); } } @@ -1747,13 +1659,6 @@ export class ResponseEndBlock extends Message { * @generated from message tendermint.abci.ResponseCommit */ export class ResponseCommit extends Message { - /** - * reserve 1 - * - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - /** * @generated from field: int64 retain_height = 3; */ @@ -1767,7 +1672,6 @@ export class ResponseCommit extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "tendermint.abci.ResponseCommit"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "retain_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); @@ -2164,6 +2068,185 @@ proto3.util.setEnumType(ResponseProcessProposal_ProposalStatus, "tendermint.abci { no: 2, name: "REJECT" }, ]); +/** + * @generated from message tendermint.abci.ResponseExtendVote + */ +export class ResponseExtendVote extends Message { + /** + * @generated from field: bytes vote_extension = 1; + */ + voteExtension = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ResponseExtendVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseExtendVote { + return new ResponseExtendVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseExtendVote { + return new ResponseExtendVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResponseExtendVote { + return new ResponseExtendVote().fromJsonString(jsonString, options); + } + + static equals(a: ResponseExtendVote | PlainMessage | undefined, b: ResponseExtendVote | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseExtendVote, a, b); + } +} + +/** + * @generated from message tendermint.abci.ResponseVerifyVoteExtension + */ +export class ResponseVerifyVoteExtension extends Message { + /** + * @generated from field: tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus status = 1; + */ + status = ResponseVerifyVoteExtension_VerifyStatus.UNKNOWN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ResponseVerifyVoteExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(ResponseVerifyVoteExtension_VerifyStatus) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseVerifyVoteExtension { + return new ResponseVerifyVoteExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseVerifyVoteExtension { + return new ResponseVerifyVoteExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResponseVerifyVoteExtension { + return new ResponseVerifyVoteExtension().fromJsonString(jsonString, options); + } + + static equals(a: ResponseVerifyVoteExtension | PlainMessage | undefined, b: ResponseVerifyVoteExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseVerifyVoteExtension, a, b); + } +} + +/** + * @generated from enum tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus + */ +export enum ResponseVerifyVoteExtension_VerifyStatus { + /** + * @generated from enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * @generated from enum value: ACCEPT = 1; + */ + ACCEPT = 1, + + /** + * Rejecting the vote extension will reject the entire precommit by the sender. + * Incorrectly implementing this thus has liveness implications as it may affect + * CometBFT's ability to receive 2/3+ valid votes to finalize the block. + * Honest nodes should never be rejected. + * + * @generated from enum value: REJECT = 2; + */ + REJECT = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(ResponseVerifyVoteExtension_VerifyStatus) +proto3.util.setEnumType(ResponseVerifyVoteExtension_VerifyStatus, "tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus", [ + { no: 0, name: "UNKNOWN" }, + { no: 1, name: "ACCEPT" }, + { no: 2, name: "REJECT" }, +]); + +/** + * @generated from message tendermint.abci.ResponseFinalizeBlock + */ +export class ResponseFinalizeBlock extends Message { + /** + * set of block events emmitted as part of executing the block + * + * @generated from field: repeated tendermint.abci.Event events = 1; + */ + events: Event[] = []; + + /** + * the result of executing each transaction including the events + * the particular transction emitted. This should match the order + * of the transactions delivered in the block itself + * + * @generated from field: repeated tendermint.abci.ExecTxResult tx_results = 2; + */ + txResults: ExecTxResult[] = []; + + /** + * a list of updates to the validator set. These will reflect the validator set at current height + 2. + * + * @generated from field: repeated tendermint.abci.ValidatorUpdate validator_updates = 3; + */ + validatorUpdates: ValidatorUpdate[] = []; + + /** + * updates to the consensus params, if any. + * + * @generated from field: tendermint.types.ConsensusParams consensus_param_updates = 4; + */ + consensusParamUpdates?: ConsensusParams; + + /** + * app_hash is the hash of the applications' state which is used to confirm that execution of the transactions was + * deterministic. It is up to the application to decide which algorithm to use. + * + * @generated from field: bytes app_hash = 5; + */ + appHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ResponseFinalizeBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "events", kind: "message", T: Event, repeated: true }, + { no: 2, name: "tx_results", kind: "message", T: ExecTxResult, repeated: true }, + { no: 3, name: "validator_updates", kind: "message", T: ValidatorUpdate, repeated: true }, + { no: 4, name: "consensus_param_updates", kind: "message", T: ConsensusParams }, + { no: 5, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseFinalizeBlock { + return new ResponseFinalizeBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseFinalizeBlock { + return new ResponseFinalizeBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResponseFinalizeBlock { + return new ResponseFinalizeBlock().fromJsonString(jsonString, options); + } + + static equals(a: ResponseFinalizeBlock | PlainMessage | undefined, b: ResponseFinalizeBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseFinalizeBlock, a, b); + } +} + /** * @generated from message tendermint.abci.CommitInfo */ @@ -2208,6 +2291,10 @@ export class CommitInfo extends Message { } /** + * ExtendedCommitInfo is similar to CommitInfo except that it is only used in + * the PrepareProposal request such that CometBFT can provide vote extensions + * to the application. + * * @generated from message tendermint.abci.ExtendedCommitInfo */ export class ExtendedCommitInfo extends Message { @@ -2257,7 +2344,7 @@ export class ExtendedCommitInfo extends Message { /** * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * ResponseFinalizeBlock and ResponseCheckTx. * Later, transactions may be queried using these events. * * @generated from message tendermint.abci.Event @@ -2355,6 +2442,95 @@ export class EventAttribute extends Message { } } +/** + * ExecTxResult contains results of executing one individual transaction. + * + * * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted + * + * @generated from message tendermint.abci.ExecTxResult + */ +export class ExecTxResult extends Message { + /** + * @generated from field: uint32 code = 1; + */ + code = 0; + + /** + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + /** + * nondeterministic + * + * @generated from field: string log = 3; + */ + log = ""; + + /** + * nondeterministic + * + * @generated from field: string info = 4; + */ + info = ""; + + /** + * @generated from field: int64 gas_wanted = 5 [json_name = "gas_wanted"]; + */ + gasWanted = protoInt64.zero; + + /** + * @generated from field: int64 gas_used = 6 [json_name = "gas_used"]; + */ + gasUsed = protoInt64.zero; + + /** + * nondeterministic + * + * @generated from field: repeated tendermint.abci.Event events = 7; + */ + events: Event[] = []; + + /** + * @generated from field: string codespace = 8; + */ + codespace = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ExecTxResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas_wanted", jsonName: "gas_wanted", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "gas_used", jsonName: "gas_used", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "events", kind: "message", T: Event, repeated: true }, + { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecTxResult { + return new ExecTxResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecTxResult { + return new ExecTxResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecTxResult { + return new ExecTxResult().fromJsonString(jsonString, options); + } + + static equals(a: ExecTxResult | PlainMessage | undefined, b: ExecTxResult | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecTxResult, a, b); + } +} + /** * TxResult contains results of executing the transaction. * @@ -2379,9 +2555,9 @@ export class TxResult extends Message { tx = new Uint8Array(0); /** - * @generated from field: tendermint.abci.ResponseDeliverTx result = 4; + * @generated from field: tendermint.abci.ExecTxResult result = 4; */ - result?: ResponseDeliverTx; + result?: ExecTxResult; constructor(data?: PartialMessage) { super(); @@ -2394,7 +2570,7 @@ export class TxResult extends Message { { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 3, name: "tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "result", kind: "message", T: ResponseDeliverTx }, + { no: 4, name: "result", kind: "message", T: ExecTxResult }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { @@ -2415,8 +2591,6 @@ export class TxResult extends Message { } /** - * Validator - * * @generated from message tendermint.abci.Validator */ export class Validator extends Message { @@ -2466,8 +2640,6 @@ export class Validator extends Message { } /** - * ValidatorUpdate - * * @generated from message tendermint.abci.ValidatorUpdate */ export class ValidatorUpdate extends Message { @@ -2511,8 +2683,6 @@ export class ValidatorUpdate extends Message { } /** - * VoteInfo - * * @generated from message tendermint.abci.VoteInfo */ export class VoteInfo extends Message { @@ -2522,9 +2692,9 @@ export class VoteInfo extends Message { validator?: Validator; /** - * @generated from field: bool signed_last_block = 2; + * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 3; */ - signedLastBlock = false; + blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; constructor(data?: PartialMessage) { super(); @@ -2535,7 +2705,7 @@ export class VoteInfo extends Message { static readonly typeName = "tendermint.abci.VoteInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator", kind: "message", T: Validator }, - { no: 2, name: "signed_last_block", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VoteInfo { @@ -2560,21 +2730,32 @@ export class VoteInfo extends Message { */ export class ExtendedVoteInfo extends Message { /** + * The validator that sent the vote. + * * @generated from field: tendermint.abci.Validator validator = 1; */ validator?: Validator; /** - * @generated from field: bool signed_last_block = 2; + * Non-deterministic extension provided by the sending validator's application. + * + * @generated from field: bytes vote_extension = 3; + */ + voteExtension = new Uint8Array(0); + + /** + * Vote extension signature created by CometBFT + * + * @generated from field: bytes extension_signature = 4; */ - signedLastBlock = false; + extensionSignature = new Uint8Array(0); /** - * Reserved for future use + * block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all * - * @generated from field: bytes vote_extension = 3; + * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 5; */ - voteExtension = new Uint8Array(0); + blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; constructor(data?: PartialMessage) { super(); @@ -2585,8 +2766,9 @@ export class ExtendedVoteInfo extends Message { static readonly typeName = "tendermint.abci.ExtendedVoteInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator", kind: "message", T: Validator }, - { no: 2, name: "signed_last_block", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedVoteInfo { diff --git a/src/protobufs/tendermint/types/params_pb.ts b/src/protobufs/tendermint/types/params_pb.ts index f69ef7ef..368d8f93 100644 --- a/src/protobufs/tendermint/types/params_pb.ts +++ b/src/protobufs/tendermint/types/params_pb.ts @@ -33,6 +33,11 @@ export class ConsensusParams extends Message { */ version?: VersionParams; + /** + * @generated from field: tendermint.types.ABCIParams abci = 5; + */ + abci?: ABCIParams; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -45,6 +50,7 @@ export class ConsensusParams extends Message { { no: 2, name: "evidence", kind: "message", T: EvidenceParams }, { no: 3, name: "validator", kind: "message", T: ValidatorParams }, { no: 4, name: "version", kind: "message", T: VersionParams }, + { no: 5, name: "abci", kind: "message", T: ABCIParams }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusParams { @@ -307,3 +313,52 @@ export class HashedParams extends Message { } } +/** + * ABCIParams configure functionality specific to the Application Blockchain Interface. + * + * @generated from message tendermint.types.ABCIParams + */ +export class ABCIParams extends Message { + /** + * vote_extensions_enable_height configures the first height during which + * vote extensions will be enabled. During this specified height, and for all + * subsequent heights, precommit messages that do not contain valid extension data + * will be considered invalid. Prior to this height, vote extensions will not + * be used or accepted by validators on the network. + * + * Once enabled, vote extensions will be created by the application in ExtendVote, + * passed to the application for validation in VerifyVoteExtension and given + * to the application to use when proposing a block during PrepareProposal. + * + * @generated from field: int64 vote_extensions_enable_height = 1; + */ + voteExtensionsEnableHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.types.ABCIParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_extensions_enable_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ABCIParams { + return new ABCIParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ABCIParams { + return new ABCIParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ABCIParams { + return new ABCIParams().fromJsonString(jsonString, options); + } + + static equals(a: ABCIParams | PlainMessage | undefined, b: ABCIParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ABCIParams, a, b); + } +} + diff --git a/src/protobufs/tendermint/types/types_pb.ts b/src/protobufs/tendermint/types/types_pb.ts index f380eddb..9451135c 100644 --- a/src/protobufs/tendermint/types/types_pb.ts +++ b/src/protobufs/tendermint/types/types_pb.ts @@ -7,41 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Proof } from "../crypto/proof_pb.js"; import { Consensus } from "../version/types_pb.js"; -import { ValidatorSet } from "./validator_pb.js"; - -/** - * BlockIdFlag indicates which BlcokID the signature is for - * - * @generated from enum tendermint.types.BlockIDFlag - */ -export enum BlockIDFlag { - /** - * @generated from enum value: BLOCK_ID_FLAG_UNKNOWN = 0; - */ - BLOCK_ID_FLAG_UNKNOWN = 0, - - /** - * @generated from enum value: BLOCK_ID_FLAG_ABSENT = 1; - */ - BLOCK_ID_FLAG_ABSENT = 1, - - /** - * @generated from enum value: BLOCK_ID_FLAG_COMMIT = 2; - */ - BLOCK_ID_FLAG_COMMIT = 2, - - /** - * @generated from enum value: BLOCK_ID_FLAG_NIL = 3; - */ - BLOCK_ID_FLAG_NIL = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(BlockIDFlag) -proto3.util.setEnumType(BlockIDFlag, "tendermint.types.BlockIDFlag", [ - { no: 0, name: "BLOCK_ID_FLAG_UNKNOWN" }, - { no: 1, name: "BLOCK_ID_FLAG_ABSENT" }, - { no: 2, name: "BLOCK_ID_FLAG_COMMIT" }, - { no: 3, name: "BLOCK_ID_FLAG_NIL" }, -]); +import { BlockIDFlag, ValidatorSet } from "./validator_pb.js"; /** * SignedMsgType is a type of signed message in the consensus. @@ -409,7 +375,7 @@ export class Data extends Message { } /** - * Vote represents a prevote, precommit, or commit vote from validators for + * Vote represents a prevote or precommit vote from validators for * consensus. * * @generated from message tendermint.types.Vote @@ -453,10 +419,30 @@ export class Vote extends Message { validatorIndex = 0; /** + * Vote signature by the validator if they participated in consensus for the + * associated block. + * * @generated from field: bytes signature = 8; */ signature = new Uint8Array(0); + /** + * Vote extension provided by the application. Only valid for precommit + * messages. + * + * @generated from field: bytes extension = 9; + */ + extension = new Uint8Array(0); + + /** + * Vote extension signature by the validator if they participated in + * consensus for the associated block. + * Only valid for precommit messages. + * + * @generated from field: bytes extension_signature = 10; + */ + extensionSignature = new Uint8Array(0); + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -473,6 +459,8 @@ export class Vote extends Message { { no: 6, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 7, name: "validator_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 8, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 10, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Vote { @@ -606,6 +594,136 @@ export class CommitSig extends Message { } } +/** + * @generated from message tendermint.types.ExtendedCommit + */ +export class ExtendedCommit extends Message { + /** + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * @generated from field: int32 round = 2; + */ + round = 0; + + /** + * @generated from field: tendermint.types.BlockID block_id = 3; + */ + blockId?: BlockID; + + /** + * @generated from field: repeated tendermint.types.ExtendedCommitSig extended_signatures = 4; + */ + extendedSignatures: ExtendedCommitSig[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.types.ExtendedCommit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "block_id", kind: "message", T: BlockID }, + { no: 4, name: "extended_signatures", kind: "message", T: ExtendedCommitSig, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedCommit { + return new ExtendedCommit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedCommit { + return new ExtendedCommit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtendedCommit { + return new ExtendedCommit().fromJsonString(jsonString, options); + } + + static equals(a: ExtendedCommit | PlainMessage | undefined, b: ExtendedCommit | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtendedCommit, a, b); + } +} + +/** + * ExtendedCommitSig retains all the same fields as CommitSig but adds vote + * extension-related fields. We use two signatures to ensure backwards compatibility. + * That is the digest of the original signature is still the same in prior versions + * + * @generated from message tendermint.types.ExtendedCommitSig + */ +export class ExtendedCommitSig extends Message { + /** + * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 1; + */ + blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; + + /** + * @generated from field: bytes validator_address = 2; + */ + validatorAddress = new Uint8Array(0); + + /** + * @generated from field: google.protobuf.Timestamp timestamp = 3; + */ + timestamp?: Timestamp; + + /** + * @generated from field: bytes signature = 4; + */ + signature = new Uint8Array(0); + + /** + * Vote extension data + * + * @generated from field: bytes extension = 5; + */ + extension = new Uint8Array(0); + + /** + * Vote extension signature + * + * @generated from field: bytes extension_signature = 6; + */ + extensionSignature = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.types.ExtendedCommitSig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, + { no: 2, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "timestamp", kind: "message", T: Timestamp }, + { no: 4, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedCommitSig { + return new ExtendedCommitSig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedCommitSig { + return new ExtendedCommitSig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtendedCommitSig { + return new ExtendedCommitSig().fromJsonString(jsonString, options); + } + + static equals(a: ExtendedCommitSig | PlainMessage | undefined, b: ExtendedCommitSig | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtendedCommitSig, a, b); + } +} + /** * @generated from message tendermint.types.Proposal */ diff --git a/src/protobufs/tendermint/types/validator_pb.ts b/src/protobufs/tendermint/types/validator_pb.ts index 54280223..6dbdf6ae 100644 --- a/src/protobufs/tendermint/types/validator_pb.ts +++ b/src/protobufs/tendermint/types/validator_pb.ts @@ -7,6 +7,48 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { PublicKey } from "../crypto/keys_pb.js"; +/** + * BlockIdFlag indicates which BlockID the signature is for + * + * @generated from enum tendermint.types.BlockIDFlag + */ +export enum BlockIDFlag { + /** + * indicates an error condition + * + * @generated from enum value: BLOCK_ID_FLAG_UNKNOWN = 0; + */ + BLOCK_ID_FLAG_UNKNOWN = 0, + + /** + * the vote was not received + * + * @generated from enum value: BLOCK_ID_FLAG_ABSENT = 1; + */ + BLOCK_ID_FLAG_ABSENT = 1, + + /** + * voted for the block that received the majority + * + * @generated from enum value: BLOCK_ID_FLAG_COMMIT = 2; + */ + BLOCK_ID_FLAG_COMMIT = 2, + + /** + * voted for nil + * + * @generated from enum value: BLOCK_ID_FLAG_NIL = 3; + */ + BLOCK_ID_FLAG_NIL = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(BlockIDFlag) +proto3.util.setEnumType(BlockIDFlag, "tendermint.types.BlockIDFlag", [ + { no: 0, name: "BLOCK_ID_FLAG_UNKNOWN" }, + { no: 1, name: "BLOCK_ID_FLAG_ABSENT" }, + { no: 2, name: "BLOCK_ID_FLAG_COMMIT" }, + { no: 3, name: "BLOCK_ID_FLAG_NIL" }, +]); + /** * @generated from message tendermint.types.ValidatorSet */