Skip to content

Commit

Permalink
chore: regenerate protobufs with cosmos sdk 0.50.6
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCQL committed May 4, 2024
1 parent f053fc3 commit a1a012c
Show file tree
Hide file tree
Showing 88 changed files with 4,678 additions and 1,182 deletions.
2 changes: 1 addition & 1 deletion scripts/gen-protobufs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
{
Expand Down
30 changes: 30 additions & 0 deletions src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,33 @@ export class Module extends Message<Module> {
*/
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/[email protected]/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<Module>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -77,6 +104,9 @@ export class Module extends Message<Module> {
{ 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<BinaryReadOptions>): Module {
Expand Down
2 changes: 1 addition & 1 deletion src/protobufs/cosmos/app/v1alpha1/module_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class PackageReference extends Message<PackageReference> {
*
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/protobufs/cosmos/authz/v1beta1/query_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class QueryGranterGrantsResponse extends Message<QueryGranterGrantsRespon
}

/**
* QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method.
* QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
*
* @generated from message cosmos.authz.v1beta1.QueryGranteeGrantsRequest
*/
Expand Down
64 changes: 32 additions & 32 deletions src/protobufs/cosmos/authz/v1beta1/tx_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,41 +62,35 @@ export class MsgGrant extends Message<MsgGrant> {
}

/**
* 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<MsgExecResponse> {
/**
* @generated from field: repeated bytes results = 1;
*/
results: Uint8Array[] = [];

constructor(data?: PartialMessage<MsgExecResponse>) {
export class MsgGrantResponse extends Message<MsgGrantResponse> {
constructor(data?: PartialMessage<MsgGrantResponse>) {
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<BinaryReadOptions>): MsgExecResponse {
return new MsgExecResponse().fromBinary(bytes, options);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgGrantResponse {
return new MsgGrantResponse().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgExecResponse {
return new MsgExecResponse().fromJson(jsonValue, options);
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgGrantResponse {
return new MsgGrantResponse().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgExecResponse {
return new MsgExecResponse().fromJsonString(jsonString, options);
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgGrantResponse {
return new MsgGrantResponse().fromJsonString(jsonString, options);
}

static equals(a: MsgExecResponse | PlainMessage<MsgExecResponse> | undefined, b: MsgExecResponse | PlainMessage<MsgExecResponse> | undefined): boolean {
return proto3.util.equals(MsgExecResponse, a, b);
static equals(a: MsgGrantResponse | PlainMessage<MsgGrantResponse> | undefined, b: MsgGrantResponse | PlainMessage<MsgGrantResponse> | undefined): boolean {
return proto3.util.equals(MsgGrantResponse, a, b);
}
}

Expand Down Expand Up @@ -152,35 +146,41 @@ export class MsgExec extends Message<MsgExec> {
}

/**
* 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<MsgGrantResponse> {
constructor(data?: PartialMessage<MsgGrantResponse>) {
export class MsgExecResponse extends Message<MsgExecResponse> {
/**
* @generated from field: repeated bytes results = 1;
*/
results: Uint8Array[] = [];

constructor(data?: PartialMessage<MsgExecResponse>) {
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<BinaryReadOptions>): MsgGrantResponse {
return new MsgGrantResponse().fromBinary(bytes, options);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgExecResponse {
return new MsgExecResponse().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgGrantResponse {
return new MsgGrantResponse().fromJson(jsonValue, options);
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgExecResponse {
return new MsgExecResponse().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgGrantResponse {
return new MsgGrantResponse().fromJsonString(jsonString, options);
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgExecResponse {
return new MsgExecResponse().fromJsonString(jsonString, options);
}

static equals(a: MsgGrantResponse | PlainMessage<MsgGrantResponse> | undefined, b: MsgGrantResponse | PlainMessage<MsgGrantResponse> | undefined): boolean {
return proto3.util.equals(MsgGrantResponse, a, b);
static equals(a: MsgExecResponse | PlainMessage<MsgExecResponse> | undefined, b: MsgExecResponse | PlainMessage<MsgExecResponse> | undefined): boolean {
return proto3.util.equals(MsgExecResponse, a, b);
}
}

Expand Down
12 changes: 2 additions & 10 deletions src/protobufs/cosmos/autocli/v1/options_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import { Message, proto3 } from "@bufbuild/protobuf";
*/
export class ModuleOptions extends Message<ModuleOptions> {
/**
* 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;
*/
Expand Down Expand Up @@ -296,13 +296,6 @@ export class FlagOptions extends Message<FlagOptions> {
*/
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.
*
Expand Down Expand Up @@ -336,7 +329,6 @@ export class FlagOptions extends Message<FlagOptions> {
{ 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 */ },
Expand Down
15 changes: 13 additions & 2 deletions src/protobufs/cosmos/bank/module/v1/module_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { Message, proto3 } from "@bufbuild/protobuf";
*/
export class Module extends Message<Module> {
/**
* 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;
Expand All @@ -28,6 +28,16 @@ export class Module extends Message<Module> {
*/
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<Module>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -38,6 +48,7 @@ export class Module extends Message<Module> {
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<BinaryReadOptions>): Module {
Expand Down
31 changes: 29 additions & 2 deletions src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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
*/
Expand All @@ -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.
Expand Down Expand Up @@ -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.
*
Expand Down
Loading

0 comments on commit a1a012c

Please sign in to comment.