From 964e69b683c97e22c3e71e6a91654d88b8a18e10 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Fri, 3 May 2024 17:48:07 -0400 Subject: [PATCH] added neutron's adminmodule protobufs --- .../types/protobuf/codegen/alliance/bundle.ts | 24 +- .../protobuf/codegen/alliance/rpc.query.ts | 3 + .../types/protobuf/codegen/alliance/rpc.tx.ts | 3 + .../types/protobuf/codegen/circle/bundle.ts | 24 +- .../protobuf/codegen/circle/rpc.query.ts | 3 + .../types/protobuf/codegen/circle/rpc.tx.ts | 3 + .../cosmos/adminmodule/adminmodule/genesis.ts | 93 +++ .../adminmodule/query.rpc.Query.ts | 52 ++ .../cosmos/adminmodule/adminmodule/query.ts | 561 +++++++++++++ .../adminmodule/adminmodule/tx.amino.ts | 23 + .../adminmodule/adminmodule/tx.registry.ts | 89 ++ .../adminmodule/adminmodule/tx.rpc.msg.ts | 40 + .../cosmos/adminmodule/adminmodule/tx.ts | 764 ++++++++++++++++++ .../types/protobuf/codegen/cosmos/bundle.ts | 430 +++++----- .../types/protobuf/codegen/cosmos/client.ts | 5 +- .../protobuf/codegen/cosmos/rpc.query.ts | 3 + .../types/protobuf/codegen/cosmos/rpc.tx.ts | 3 + .../types/protobuf/codegen/cosmwasm/bundle.ts | 76 +- .../protobuf/codegen/cosmwasm/rpc.query.ts | 3 + .../types/protobuf/codegen/cosmwasm/rpc.tx.ts | 3 + .../types/protobuf/codegen/gaia/bundle.ts | 36 +- .../types/protobuf/codegen/gaia/rpc.query.ts | 3 + .../types/protobuf/codegen/gaia/rpc.tx.ts | 3 + .../protobuf/codegen/gogoproto/bundle.ts | 4 +- .../types/protobuf/codegen/google/bundle.ts | 26 +- packages/types/protobuf/codegen/ibc/bundle.ts | 168 ++-- .../types/protobuf/codegen/ibc/rpc.query.ts | 3 + packages/types/protobuf/codegen/ibc/rpc.tx.ts | 3 + .../types/protobuf/codegen/juno/bundle.ts | 68 +- .../types/protobuf/codegen/juno/rpc.query.ts | 3 + .../types/protobuf/codegen/juno/rpc.tx.ts | 3 + .../types/protobuf/codegen/kujira/bundle.ts | 86 +- .../protobuf/codegen/kujira/rpc.query.ts | 3 + .../types/protobuf/codegen/kujira/rpc.tx.ts | 3 + .../types/protobuf/codegen/neutron/bundle.ts | 204 ++--- .../protobuf/codegen/neutron/rpc.query.ts | 3 + .../types/protobuf/codegen/neutron/rpc.tx.ts | 3 + .../types/protobuf/codegen/noble/bundle.ts | 20 +- .../types/protobuf/codegen/noble/rpc.query.ts | 3 + .../types/protobuf/codegen/osmosis/bundle.ts | 428 +++++----- .../protobuf/codegen/osmosis/rpc.query.ts | 3 + .../types/protobuf/codegen/osmosis/rpc.tx.ts | 3 + .../types/protobuf/codegen/pstake/bundle.ts | 138 ++-- .../protobuf/codegen/pstake/rpc.query.ts | 3 + .../types/protobuf/codegen/pstake/rpc.tx.ts | 3 + .../protobuf/codegen/publicawesome/bundle.ts | 120 +-- .../codegen/publicawesome/rpc.query.ts | 3 + .../protobuf/codegen/publicawesome/rpc.tx.ts | 3 + .../types/protobuf/codegen/regen/bundle.ts | 178 ++-- .../types/protobuf/codegen/regen/rpc.query.ts | 3 + .../types/protobuf/codegen/regen/rpc.tx.ts | 3 + .../protobuf/codegen/tendermint/bundle.ts | 38 +- packages/types/protobuf/patches.diff | 14 +- .../adminmodule/adminmodule/genesis.proto | 11 + .../adminmodule/adminmodule/query.proto | 53 ++ .../cosmos/adminmodule/adminmodule/tx.proto | 68 ++ packages/types/protobuf/scripts/codegen.js | 1 + 57 files changed, 2890 insertions(+), 1033 deletions(-) create mode 100644 packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/genesis.ts create mode 100644 packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.rpc.Query.ts create mode 100644 packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.ts create mode 100644 packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.amino.ts create mode 100644 packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.registry.ts create mode 100644 packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.rpc.msg.ts create mode 100644 packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.ts create mode 100644 packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/genesis.proto create mode 100644 packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/query.proto create mode 100644 packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/tx.proto diff --git a/packages/types/protobuf/codegen/alliance/bundle.ts b/packages/types/protobuf/codegen/alliance/bundle.ts index 88533f3504..fdc791b011 100644 --- a/packages/types/protobuf/codegen/alliance/bundle.ts +++ b/packages/types/protobuf/codegen/alliance/bundle.ts @@ -8,12 +8,12 @@ import * as _6 from "./alliance/query"; import * as _7 from "./alliance/redelegations"; import * as _8 from "./alliance/tx"; import * as _9 from "./alliance/unbonding"; -import * as _345 from "./alliance/tx.amino"; -import * as _346 from "./alliance/tx.registry"; -import * as _347 from "./alliance/query.rpc.Query"; -import * as _348 from "./alliance/tx.rpc.msg"; -import * as _576 from "./rpc.query"; -import * as _577 from "./rpc.tx"; +import * as _348 from "./alliance/tx.amino"; +import * as _349 from "./alliance/tx.registry"; +import * as _350 from "./alliance/query.rpc.Query"; +import * as _351 from "./alliance/tx.rpc.msg"; +import * as _583 from "./rpc.query"; +import * as _584 from "./rpc.tx"; export namespace alliance { export const alliance = { ..._0, @@ -26,13 +26,13 @@ export namespace alliance { ..._7, ..._8, ..._9, - ..._345, - ..._346, - ..._347, - ..._348 + ..._348, + ..._349, + ..._350, + ..._351 }; export const ClientFactory = { - ..._576, - ..._577 + ..._583, + ..._584 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/alliance/rpc.query.ts b/packages/types/protobuf/codegen/alliance/rpc.query.ts index 5b1ec6a9e6..530ae9dc3d 100644 --- a/packages/types/protobuf/codegen/alliance/rpc.query.ts +++ b/packages/types/protobuf/codegen/alliance/rpc.query.ts @@ -12,6 +12,9 @@ export const createRPCQueryClient = async ({ alliance: (await import("./alliance/query.rpc.Query")).createRpcQueryExtension(client) }, cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/alliance/rpc.tx.ts b/packages/types/protobuf/codegen/alliance/rpc.tx.ts index 2782bd6390..ad4721c433 100644 --- a/packages/types/protobuf/codegen/alliance/rpc.tx.ts +++ b/packages/types/protobuf/codegen/alliance/rpc.tx.ts @@ -8,6 +8,9 @@ export const createRPCMsgClient = async ({ alliance: new (await import("./alliance/tx.rpc.msg")).MsgClientImpl(rpc) }, cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/circle/bundle.ts b/packages/types/protobuf/codegen/circle/bundle.ts index d1fbcdc7f9..35b33f38f8 100644 --- a/packages/types/protobuf/codegen/circle/bundle.ts +++ b/packages/types/protobuf/codegen/circle/bundle.ts @@ -14,12 +14,12 @@ import * as _23 from "./cctp/v1/sending_and_receiving_messages_paused"; import * as _24 from "./cctp/v1/signature_threshold"; import * as _25 from "./cctp/v1/token_pair"; import * as _26 from "./cctp/v1/tx"; -import * as _349 from "./cctp/v1/tx.amino"; -import * as _350 from "./cctp/v1/tx.registry"; -import * as _351 from "./cctp/v1/query.rpc.Query"; -import * as _352 from "./cctp/v1/tx.rpc.msg"; -import * as _578 from "./rpc.query"; -import * as _579 from "./rpc.tx"; +import * as _352 from "./cctp/v1/tx.amino"; +import * as _353 from "./cctp/v1/tx.registry"; +import * as _354 from "./cctp/v1/query.rpc.Query"; +import * as _355 from "./cctp/v1/tx.rpc.msg"; +import * as _585 from "./rpc.query"; +import * as _586 from "./rpc.tx"; export namespace circle { export namespace cctp { export const v1 = { @@ -39,14 +39,14 @@ export namespace circle { ..._24, ..._25, ..._26, - ..._349, - ..._350, - ..._351, - ..._352 + ..._352, + ..._353, + ..._354, + ..._355 }; } export const ClientFactory = { - ..._578, - ..._579 + ..._585, + ..._586 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/circle/rpc.query.ts b/packages/types/protobuf/codegen/circle/rpc.query.ts index 4de7815ead..1aac0f50a1 100644 --- a/packages/types/protobuf/codegen/circle/rpc.query.ts +++ b/packages/types/protobuf/codegen/circle/rpc.query.ts @@ -14,6 +14,9 @@ export const createRPCQueryClient = async ({ } }, cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/circle/rpc.tx.ts b/packages/types/protobuf/codegen/circle/rpc.tx.ts index 3533e340ea..978f37e3e7 100644 --- a/packages/types/protobuf/codegen/circle/rpc.tx.ts +++ b/packages/types/protobuf/codegen/circle/rpc.tx.ts @@ -10,6 +10,9 @@ export const createRPCMsgClient = async ({ } }, cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/genesis.ts b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/genesis.ts new file mode 100644 index 0000000000..b5bbe5b503 --- /dev/null +++ b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/genesis.ts @@ -0,0 +1,93 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the adminmodule module's genesis state. */ +export interface GenesisState { + admins: string[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the adminmodule module's genesis state. */ +export interface GenesisStateAmino { + admins?: string[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the adminmodule module's genesis state. */ +export interface GenesisStateSDKType { + admins: string[]; +} +function createBaseGenesisState(): GenesisState { + return { + admins: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.adminmodule.adminmodule.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.admins) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admins.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.admins = object.admins?.map(e => e) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + message.admins = object.admins?.map(e => e) || []; + return message; + }, + toAmino(message: GenesisState, useInterfaces: boolean = false): GenesisStateAmino { + const obj: any = {}; + if (message.admins) { + obj.admins = message.admins.map(e => e); + } else { + obj.admins = []; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState, useInterfaces: boolean = false): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg, useInterfaces: boolean = false): GenesisState { + return GenesisState.decode(message.value, undefined, useInterfaces); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.rpc.Query.ts b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.rpc.Query.ts new file mode 100644 index 0000000000..19fcd46318 --- /dev/null +++ b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.rpc.Query.ts @@ -0,0 +1,52 @@ +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAdminsRequest, QueryAdminsResponse, QueryArchivedProposalsRequest, QueryArchivedProposalsResponse, QueryArchivedProposalsLegacyRequest, QueryArchivedProposalsLegacyResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Queries a list of admins items. */ + admins(request?: QueryAdminsRequest): Promise; + /** Queries a list of archived proposals. */ + archivedProposals(request?: QueryArchivedProposalsRequest): Promise; + /** Queries a list of archived proposals. */ + archivedProposalsLegacy(request?: QueryArchivedProposalsLegacyRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.admins = this.admins.bind(this); + this.archivedProposals = this.archivedProposals.bind(this); + this.archivedProposalsLegacy = this.archivedProposalsLegacy.bind(this); + } + admins(request: QueryAdminsRequest = {}, useInterfaces: boolean = true): Promise { + const data = QueryAdminsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.adminmodule.adminmodule.Query", "Admins", data); + return promise.then(data => QueryAdminsResponse.decode(new BinaryReader(data), undefined, useInterfaces)); + } + archivedProposals(request: QueryArchivedProposalsRequest = {}, useInterfaces: boolean = true): Promise { + const data = QueryArchivedProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.adminmodule.adminmodule.Query", "ArchivedProposals", data); + return promise.then(data => QueryArchivedProposalsResponse.decode(new BinaryReader(data), undefined, useInterfaces)); + } + archivedProposalsLegacy(request: QueryArchivedProposalsLegacyRequest = {}, useInterfaces: boolean = true): Promise { + const data = QueryArchivedProposalsLegacyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.adminmodule.adminmodule.Query", "ArchivedProposalsLegacy", data); + return promise.then(data => QueryArchivedProposalsLegacyResponse.decode(new BinaryReader(data), undefined, useInterfaces)); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + admins(request?: QueryAdminsRequest, useInterfaces: boolean = true): Promise { + return queryService.admins(request, useInterfaces); + }, + archivedProposals(request?: QueryArchivedProposalsRequest, useInterfaces: boolean = true): Promise { + return queryService.archivedProposals(request, useInterfaces); + }, + archivedProposalsLegacy(request?: QueryArchivedProposalsLegacyRequest, useInterfaces: boolean = true): Promise { + return queryService.archivedProposalsLegacy(request, useInterfaces); + } + }; +}; \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.ts b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.ts new file mode 100644 index 0000000000..b60239b979 --- /dev/null +++ b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/query.ts @@ -0,0 +1,561 @@ +//@ts-nocheck +import { Proposal as Proposal1 } from "../../gov/v1/gov"; +import { ProposalAmino as Proposal1Amino } from "../../gov/v1/gov"; +import { ProposalSDKType as Proposal1SDKType } from "../../gov/v1/gov"; +import { Proposal as Proposal2 } from "../../gov/v1beta1/gov"; +import { ProposalAmino as Proposal2Amino } from "../../gov/v1beta1/gov"; +import { ProposalSDKType as Proposal2SDKType } from "../../gov/v1beta1/gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +export interface QueryAdminsRequest {} +export interface QueryAdminsRequestProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryAdminsRequest"; + value: Uint8Array; +} +export interface QueryAdminsRequestAmino {} +export interface QueryAdminsRequestAminoMsg { + type: "cosmos-sdk/QueryAdminsRequest"; + value: QueryAdminsRequestAmino; +} +export interface QueryAdminsRequestSDKType {} +export interface QueryAdminsResponse { + admins: string[]; +} +export interface QueryAdminsResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryAdminsResponse"; + value: Uint8Array; +} +export interface QueryAdminsResponseAmino { + admins?: string[]; +} +export interface QueryAdminsResponseAminoMsg { + type: "cosmos-sdk/QueryAdminsResponse"; + value: QueryAdminsResponseAmino; +} +export interface QueryAdminsResponseSDKType { + admins: string[]; +} +export interface QueryArchivedProposalsRequest {} +export interface QueryArchivedProposalsRequestProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsRequest"; + value: Uint8Array; +} +export interface QueryArchivedProposalsRequestAmino {} +export interface QueryArchivedProposalsRequestAminoMsg { + type: "cosmos-sdk/QueryArchivedProposalsRequest"; + value: QueryArchivedProposalsRequestAmino; +} +export interface QueryArchivedProposalsRequestSDKType {} +export interface QueryArchivedProposalsLegacyRequest {} +export interface QueryArchivedProposalsLegacyRequestProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest"; + value: Uint8Array; +} +export interface QueryArchivedProposalsLegacyRequestAmino {} +export interface QueryArchivedProposalsLegacyRequestAminoMsg { + type: "cosmos-sdk/QueryArchivedProposalsLegacyRequest"; + value: QueryArchivedProposalsLegacyRequestAmino; +} +export interface QueryArchivedProposalsLegacyRequestSDKType {} +export interface QueryProposalsResponse { + proposals: Proposal1[]; +} +export interface QueryProposalsResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryProposalsResponse"; + value: Uint8Array; +} +export interface QueryProposalsResponseAmino { + proposals?: Proposal1Amino[]; +} +export interface QueryProposalsResponseAminoMsg { + type: "cosmos-sdk/QueryProposalsResponse"; + value: QueryProposalsResponseAmino; +} +export interface QueryProposalsResponseSDKType { + proposals: Proposal1SDKType[]; +} +export interface QueryArchivedProposalsResponse { + proposals: Proposal1[]; +} +export interface QueryArchivedProposalsResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse"; + value: Uint8Array; +} +export interface QueryArchivedProposalsResponseAmino { + proposals?: Proposal1Amino[]; +} +export interface QueryArchivedProposalsResponseAminoMsg { + type: "cosmos-sdk/QueryArchivedProposalsResponse"; + value: QueryArchivedProposalsResponseAmino; +} +export interface QueryArchivedProposalsResponseSDKType { + proposals: Proposal1SDKType[]; +} +export interface QueryArchivedProposalsLegacyResponse { + proposalsLegacy: Proposal2[]; +} +export interface QueryArchivedProposalsLegacyResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse"; + value: Uint8Array; +} +export interface QueryArchivedProposalsLegacyResponseAmino { + proposalsLegacy?: Proposal2Amino[]; +} +export interface QueryArchivedProposalsLegacyResponseAminoMsg { + type: "cosmos-sdk/QueryArchivedProposalsLegacyResponse"; + value: QueryArchivedProposalsLegacyResponseAmino; +} +export interface QueryArchivedProposalsLegacyResponseSDKType { + proposalsLegacy: Proposal2SDKType[]; +} +function createBaseQueryAdminsRequest(): QueryAdminsRequest { + return {}; +} +export const QueryAdminsRequest = { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryAdminsRequest", + encode(_: QueryAdminsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): QueryAdminsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAdminsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryAdminsRequest { + const message = createBaseQueryAdminsRequest(); + return message; + }, + fromAmino(_: QueryAdminsRequestAmino): QueryAdminsRequest { + const message = createBaseQueryAdminsRequest(); + return message; + }, + toAmino(_: QueryAdminsRequest, useInterfaces: boolean = false): QueryAdminsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryAdminsRequestAminoMsg): QueryAdminsRequest { + return QueryAdminsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAdminsRequest, useInterfaces: boolean = false): QueryAdminsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAdminsRequest", + value: QueryAdminsRequest.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: QueryAdminsRequestProtoMsg, useInterfaces: boolean = false): QueryAdminsRequest { + return QueryAdminsRequest.decode(message.value, undefined, useInterfaces); + }, + toProto(message: QueryAdminsRequest): Uint8Array { + return QueryAdminsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAdminsRequest): QueryAdminsRequestProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryAdminsRequest", + value: QueryAdminsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAdminsResponse(): QueryAdminsResponse { + return { + admins: [] + }; +} +export const QueryAdminsResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryAdminsResponse", + encode(message: QueryAdminsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.admins) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): QueryAdminsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAdminsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admins.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAdminsResponse { + const message = createBaseQueryAdminsResponse(); + message.admins = object.admins?.map(e => e) || []; + return message; + }, + fromAmino(object: QueryAdminsResponseAmino): QueryAdminsResponse { + const message = createBaseQueryAdminsResponse(); + message.admins = object.admins?.map(e => e) || []; + return message; + }, + toAmino(message: QueryAdminsResponse, useInterfaces: boolean = false): QueryAdminsResponseAmino { + const obj: any = {}; + if (message.admins) { + obj.admins = message.admins.map(e => e); + } else { + obj.admins = []; + } + return obj; + }, + fromAminoMsg(object: QueryAdminsResponseAminoMsg): QueryAdminsResponse { + return QueryAdminsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAdminsResponse, useInterfaces: boolean = false): QueryAdminsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAdminsResponse", + value: QueryAdminsResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: QueryAdminsResponseProtoMsg, useInterfaces: boolean = false): QueryAdminsResponse { + return QueryAdminsResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: QueryAdminsResponse): Uint8Array { + return QueryAdminsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAdminsResponse): QueryAdminsResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryAdminsResponse", + value: QueryAdminsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryArchivedProposalsRequest(): QueryArchivedProposalsRequest { + return {}; +} +export const QueryArchivedProposalsRequest = { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsRequest", + encode(_: QueryArchivedProposalsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): QueryArchivedProposalsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryArchivedProposalsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryArchivedProposalsRequest { + const message = createBaseQueryArchivedProposalsRequest(); + return message; + }, + fromAmino(_: QueryArchivedProposalsRequestAmino): QueryArchivedProposalsRequest { + const message = createBaseQueryArchivedProposalsRequest(); + return message; + }, + toAmino(_: QueryArchivedProposalsRequest, useInterfaces: boolean = false): QueryArchivedProposalsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryArchivedProposalsRequestAminoMsg): QueryArchivedProposalsRequest { + return QueryArchivedProposalsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryArchivedProposalsRequest, useInterfaces: boolean = false): QueryArchivedProposalsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryArchivedProposalsRequest", + value: QueryArchivedProposalsRequest.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: QueryArchivedProposalsRequestProtoMsg, useInterfaces: boolean = false): QueryArchivedProposalsRequest { + return QueryArchivedProposalsRequest.decode(message.value, undefined, useInterfaces); + }, + toProto(message: QueryArchivedProposalsRequest): Uint8Array { + return QueryArchivedProposalsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryArchivedProposalsRequest): QueryArchivedProposalsRequestProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsRequest", + value: QueryArchivedProposalsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryArchivedProposalsLegacyRequest(): QueryArchivedProposalsLegacyRequest { + return {}; +} +export const QueryArchivedProposalsLegacyRequest = { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest", + encode(_: QueryArchivedProposalsLegacyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): QueryArchivedProposalsLegacyRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryArchivedProposalsLegacyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryArchivedProposalsLegacyRequest { + const message = createBaseQueryArchivedProposalsLegacyRequest(); + return message; + }, + fromAmino(_: QueryArchivedProposalsLegacyRequestAmino): QueryArchivedProposalsLegacyRequest { + const message = createBaseQueryArchivedProposalsLegacyRequest(); + return message; + }, + toAmino(_: QueryArchivedProposalsLegacyRequest, useInterfaces: boolean = false): QueryArchivedProposalsLegacyRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryArchivedProposalsLegacyRequestAminoMsg): QueryArchivedProposalsLegacyRequest { + return QueryArchivedProposalsLegacyRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryArchivedProposalsLegacyRequest, useInterfaces: boolean = false): QueryArchivedProposalsLegacyRequestAminoMsg { + return { + type: "cosmos-sdk/QueryArchivedProposalsLegacyRequest", + value: QueryArchivedProposalsLegacyRequest.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: QueryArchivedProposalsLegacyRequestProtoMsg, useInterfaces: boolean = false): QueryArchivedProposalsLegacyRequest { + return QueryArchivedProposalsLegacyRequest.decode(message.value, undefined, useInterfaces); + }, + toProto(message: QueryArchivedProposalsLegacyRequest): Uint8Array { + return QueryArchivedProposalsLegacyRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryArchivedProposalsLegacyRequest): QueryArchivedProposalsLegacyRequestProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest", + value: QueryArchivedProposalsLegacyRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsResponse(): QueryProposalsResponse { + return { + proposals: [] + }; +} +export const QueryProposalsResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryProposalsResponse", + encode(message: QueryProposalsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.proposals) { + Proposal1.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): QueryProposalsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal1.decode(reader, reader.uint32(), useInterfaces)); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalsResponse { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal1.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal1.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryProposalsResponse, useInterfaces: boolean = false): QueryProposalsResponseAmino { + const obj: any = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal1.toAmino(e, useInterfaces) : undefined); + } else { + obj.proposals = []; + } + return obj; + }, + fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse { + return QueryProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalsResponse, useInterfaces: boolean = false): QueryProposalsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryProposalsResponse", + value: QueryProposalsResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: QueryProposalsResponseProtoMsg, useInterfaces: boolean = false): QueryProposalsResponse { + return QueryProposalsResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: QueryProposalsResponse): Uint8Array { + return QueryProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryProposalsResponse", + value: QueryProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryArchivedProposalsResponse(): QueryArchivedProposalsResponse { + return { + proposals: [] + }; +} +export const QueryArchivedProposalsResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse", + encode(message: QueryArchivedProposalsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.proposals) { + Proposal1.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): QueryArchivedProposalsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryArchivedProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal1.decode(reader, reader.uint32(), useInterfaces)); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryArchivedProposalsResponse { + const message = createBaseQueryArchivedProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal1.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryArchivedProposalsResponseAmino): QueryArchivedProposalsResponse { + const message = createBaseQueryArchivedProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal1.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryArchivedProposalsResponse, useInterfaces: boolean = false): QueryArchivedProposalsResponseAmino { + const obj: any = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal1.toAmino(e, useInterfaces) : undefined); + } else { + obj.proposals = []; + } + return obj; + }, + fromAminoMsg(object: QueryArchivedProposalsResponseAminoMsg): QueryArchivedProposalsResponse { + return QueryArchivedProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryArchivedProposalsResponse, useInterfaces: boolean = false): QueryArchivedProposalsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryArchivedProposalsResponse", + value: QueryArchivedProposalsResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: QueryArchivedProposalsResponseProtoMsg, useInterfaces: boolean = false): QueryArchivedProposalsResponse { + return QueryArchivedProposalsResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: QueryArchivedProposalsResponse): Uint8Array { + return QueryArchivedProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryArchivedProposalsResponse): QueryArchivedProposalsResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse", + value: QueryArchivedProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryArchivedProposalsLegacyResponse(): QueryArchivedProposalsLegacyResponse { + return { + proposalsLegacy: [] + }; +} +export const QueryArchivedProposalsLegacyResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse", + encode(message: QueryArchivedProposalsLegacyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.proposalsLegacy) { + Proposal2.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): QueryArchivedProposalsLegacyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryArchivedProposalsLegacyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalsLegacy.push(Proposal2.decode(reader, reader.uint32(), useInterfaces)); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryArchivedProposalsLegacyResponse { + const message = createBaseQueryArchivedProposalsLegacyResponse(); + message.proposalsLegacy = object.proposalsLegacy?.map(e => Proposal2.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryArchivedProposalsLegacyResponseAmino): QueryArchivedProposalsLegacyResponse { + const message = createBaseQueryArchivedProposalsLegacyResponse(); + message.proposalsLegacy = object.proposalsLegacy?.map(e => Proposal2.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryArchivedProposalsLegacyResponse, useInterfaces: boolean = false): QueryArchivedProposalsLegacyResponseAmino { + const obj: any = {}; + if (message.proposalsLegacy) { + obj.proposalsLegacy = message.proposalsLegacy.map(e => e ? Proposal2.toAmino(e, useInterfaces) : undefined); + } else { + obj.proposalsLegacy = []; + } + return obj; + }, + fromAminoMsg(object: QueryArchivedProposalsLegacyResponseAminoMsg): QueryArchivedProposalsLegacyResponse { + return QueryArchivedProposalsLegacyResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryArchivedProposalsLegacyResponse, useInterfaces: boolean = false): QueryArchivedProposalsLegacyResponseAminoMsg { + return { + type: "cosmos-sdk/QueryArchivedProposalsLegacyResponse", + value: QueryArchivedProposalsLegacyResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: QueryArchivedProposalsLegacyResponseProtoMsg, useInterfaces: boolean = false): QueryArchivedProposalsLegacyResponse { + return QueryArchivedProposalsLegacyResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: QueryArchivedProposalsLegacyResponse): Uint8Array { + return QueryArchivedProposalsLegacyResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryArchivedProposalsLegacyResponse): QueryArchivedProposalsLegacyResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse", + value: QueryArchivedProposalsLegacyResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.amino.ts b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.amino.ts new file mode 100644 index 0000000000..9ec61234b7 --- /dev/null +++ b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.amino.ts @@ -0,0 +1,23 @@ +import { MsgDeleteAdmin, MsgAddAdmin, MsgSubmitProposal, MsgSubmitProposalLegacy } from "./tx"; +export const AminoConverter = { + "/cosmos.adminmodule.adminmodule.MsgDeleteAdmin": { + aminoType: "cosmos-sdk/MsgDeleteAdmin", + toAmino: MsgDeleteAdmin.toAmino, + fromAmino: MsgDeleteAdmin.fromAmino + }, + "/cosmos.adminmodule.adminmodule.MsgAddAdmin": { + aminoType: "cosmos-sdk/MsgAddAdmin", + toAmino: MsgAddAdmin.toAmino, + fromAmino: MsgAddAdmin.fromAmino + }, + "/cosmos.adminmodule.adminmodule.MsgSubmitProposal": { + aminoType: "cosmos-sdk/MsgSubmitProposal", + toAmino: MsgSubmitProposal.toAmino, + fromAmino: MsgSubmitProposal.fromAmino + }, + "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy": { + aminoType: "cosmos-sdk/MsgSubmitProposalLegacy", + toAmino: MsgSubmitProposalLegacy.toAmino, + fromAmino: MsgSubmitProposalLegacy.fromAmino + } +}; \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.registry.ts b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.registry.ts new file mode 100644 index 0000000000..8acd968143 --- /dev/null +++ b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.registry.ts @@ -0,0 +1,89 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgDeleteAdmin, MsgAddAdmin, MsgSubmitProposal, MsgSubmitProposalLegacy } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.adminmodule.adminmodule.MsgDeleteAdmin", MsgDeleteAdmin], ["/cosmos.adminmodule.adminmodule.MsgAddAdmin", MsgAddAdmin], ["/cosmos.adminmodule.adminmodule.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy", MsgSubmitProposalLegacy]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + deleteAdmin(value: MsgDeleteAdmin) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdmin", + value: MsgDeleteAdmin.encode(value).finish() + }; + }, + addAdmin(value: MsgAddAdmin) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdmin", + value: MsgAddAdmin.encode(value).finish() + }; + }, + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposal", + value: MsgSubmitProposal.encode(value).finish() + }; + }, + submitProposalLegacy(value: MsgSubmitProposalLegacy) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy", + value: MsgSubmitProposalLegacy.encode(value).finish() + }; + } + }, + withTypeUrl: { + deleteAdmin(value: MsgDeleteAdmin) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdmin", + value + }; + }, + addAdmin(value: MsgAddAdmin) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdmin", + value + }; + }, + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposal", + value + }; + }, + submitProposalLegacy(value: MsgSubmitProposalLegacy) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy", + value + }; + } + }, + fromPartial: { + deleteAdmin(value: MsgDeleteAdmin) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdmin", + value: MsgDeleteAdmin.fromPartial(value) + }; + }, + addAdmin(value: MsgAddAdmin) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdmin", + value: MsgAddAdmin.fromPartial(value) + }; + }, + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposal", + value: MsgSubmitProposal.fromPartial(value) + }; + }, + submitProposalLegacy(value: MsgSubmitProposalLegacy) { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy", + value: MsgSubmitProposalLegacy.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.rpc.msg.ts b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.rpc.msg.ts new file mode 100644 index 0000000000..7e7369e050 --- /dev/null +++ b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.rpc.msg.ts @@ -0,0 +1,40 @@ +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgDeleteAdmin, MsgDeleteAdminResponse, MsgAddAdmin, MsgAddAdminResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgSubmitProposalLegacy, MsgSubmitProposalLegacyResponse } from "./tx"; +/** Msg defines the Msg service. */ +export interface Msg { + deleteAdmin(request: MsgDeleteAdmin): Promise; + addAdmin(request: MsgAddAdmin): Promise; + submitProposal(request: MsgSubmitProposal): Promise; + submitProposalLegacy(request: MsgSubmitProposalLegacy): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.deleteAdmin = this.deleteAdmin.bind(this); + this.addAdmin = this.addAdmin.bind(this); + this.submitProposal = this.submitProposal.bind(this); + this.submitProposalLegacy = this.submitProposalLegacy.bind(this); + } + deleteAdmin(request: MsgDeleteAdmin, useInterfaces: boolean = true): Promise { + const data = MsgDeleteAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.adminmodule.adminmodule.Msg", "DeleteAdmin", data); + return promise.then(data => MsgDeleteAdminResponse.decode(new BinaryReader(data), undefined, useInterfaces)); + } + addAdmin(request: MsgAddAdmin, useInterfaces: boolean = true): Promise { + const data = MsgAddAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.adminmodule.adminmodule.Msg", "AddAdmin", data); + return promise.then(data => MsgAddAdminResponse.decode(new BinaryReader(data), undefined, useInterfaces)); + } + submitProposal(request: MsgSubmitProposal, useInterfaces: boolean = true): Promise { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.adminmodule.adminmodule.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data), undefined, useInterfaces)); + } + submitProposalLegacy(request: MsgSubmitProposalLegacy, useInterfaces: boolean = true): Promise { + const data = MsgSubmitProposalLegacy.encode(request).finish(); + const promise = this.rpc.request("cosmos.adminmodule.adminmodule.Msg", "SubmitProposalLegacy", data); + return promise.then(data => MsgSubmitProposalLegacyResponse.decode(new BinaryReader(data), undefined, useInterfaces)); + } +} \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.ts b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.ts new file mode 100644 index 0000000000..96878dc1b1 --- /dev/null +++ b/packages/types/protobuf/codegen/cosmos/adminmodule/adminmodule/tx.ts @@ -0,0 +1,764 @@ +//@ts-nocheck +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +export interface MsgDeleteAdmin { + creator: string; + admin: string; +} +export interface MsgDeleteAdminProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdmin"; + value: Uint8Array; +} +export interface MsgDeleteAdminAmino { + creator?: string; + admin?: string; +} +export interface MsgDeleteAdminAminoMsg { + type: "cosmos-sdk/MsgDeleteAdmin"; + value: MsgDeleteAdminAmino; +} +export interface MsgDeleteAdminSDKType { + creator: string; + admin: string; +} +export interface MsgDeleteAdminResponse {} +export interface MsgDeleteAdminResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdminResponse"; + value: Uint8Array; +} +export interface MsgDeleteAdminResponseAmino {} +export interface MsgDeleteAdminResponseAminoMsg { + type: "cosmos-sdk/MsgDeleteAdminResponse"; + value: MsgDeleteAdminResponseAmino; +} +export interface MsgDeleteAdminResponseSDKType {} +export interface MsgAddAdmin { + creator: string; + admin: string; +} +export interface MsgAddAdminProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdmin"; + value: Uint8Array; +} +export interface MsgAddAdminAmino { + creator?: string; + admin?: string; +} +export interface MsgAddAdminAminoMsg { + type: "cosmos-sdk/MsgAddAdmin"; + value: MsgAddAdminAmino; +} +export interface MsgAddAdminSDKType { + creator: string; + admin: string; +} +export interface MsgAddAdminResponse {} +export interface MsgAddAdminResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdminResponse"; + value: Uint8Array; +} +export interface MsgAddAdminResponseAmino {} +export interface MsgAddAdminResponseAminoMsg { + type: "cosmos-sdk/MsgAddAdminResponse"; + value: MsgAddAdminResponseAmino; +} +export interface MsgAddAdminResponseSDKType {} +/** + * MsgSubmitProposalLegacy defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalLegacy { + content?: (Any) | undefined; + proposer: string; +} +export interface MsgSubmitProposalLegacyProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy"; + value: Uint8Array; +} +export type MsgSubmitProposalLegacyEncoded = Omit & { + content?: AnyProtoMsg | undefined; +}; +/** + * MsgSubmitProposalLegacy defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalLegacyAmino { + content?: AnyAmino | undefined; + proposer?: string; +} +export interface MsgSubmitProposalLegacyAminoMsg { + type: "cosmos-sdk/MsgSubmitProposalLegacy"; + value: MsgSubmitProposalLegacyAmino; +} +/** + * MsgSubmitProposalLegacy defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalLegacySDKType { + content?: AnySDKType | undefined; + proposer: string; +} +/** MsgSubmitProposalLegacyResponse defines the Msg/SubmitProposalLegacy response type. */ +export interface MsgSubmitProposalLegacyResponse { + proposalId: bigint; +} +export interface MsgSubmitProposalLegacyResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalLegacyResponse defines the Msg/SubmitProposalLegacy response type. */ +export interface MsgSubmitProposalLegacyResponseAmino { + proposal_id?: string; +} +export interface MsgSubmitProposalLegacyResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitProposalLegacyResponse"; + value: MsgSubmitProposalLegacyResponseAmino; +} +/** MsgSubmitProposalLegacyResponse defines the Msg/SubmitProposalLegacy response type. */ +export interface MsgSubmitProposalLegacyResponseSDKType { + proposal_id: bigint; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposal { + /** messages are the arbitrary messages to be executed if proposal passes. */ + messages: Any[]; + proposer: string; +} +export interface MsgSubmitProposalProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposal"; + value: Uint8Array; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalAmino { + /** messages are the arbitrary messages to be executed if proposal passes. */ + messages?: AnyAmino[]; + proposer?: string; +} +export interface MsgSubmitProposalAminoMsg { + type: "cosmos-sdk/MsgSubmitProposal"; + value: MsgSubmitProposalAmino; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalSDKType { + messages: AnySDKType[]; + proposer: string; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponse { + proposalId: bigint; +} +export interface MsgSubmitProposalResponseProtoMsg { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseAmino { + proposal_id?: string; +} +export interface MsgSubmitProposalResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitProposalResponse"; + value: MsgSubmitProposalResponseAmino; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseSDKType { + proposal_id: bigint; +} +function createBaseMsgDeleteAdmin(): MsgDeleteAdmin { + return { + creator: "", + admin: "" + }; +} +export const MsgDeleteAdmin = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdmin", + encode(message: MsgDeleteAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.creator !== "") { + writer.uint32(10).string(message.creator); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgDeleteAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeleteAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creator = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgDeleteAdmin { + const message = createBaseMsgDeleteAdmin(); + message.creator = object.creator ?? ""; + message.admin = object.admin ?? ""; + return message; + }, + fromAmino(object: MsgDeleteAdminAmino): MsgDeleteAdmin { + const message = createBaseMsgDeleteAdmin(); + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + return message; + }, + toAmino(message: MsgDeleteAdmin, useInterfaces: boolean = false): MsgDeleteAdminAmino { + const obj: any = {}; + obj.creator = message.creator; + obj.admin = message.admin; + return obj; + }, + fromAminoMsg(object: MsgDeleteAdminAminoMsg): MsgDeleteAdmin { + return MsgDeleteAdmin.fromAmino(object.value); + }, + toAminoMsg(message: MsgDeleteAdmin, useInterfaces: boolean = false): MsgDeleteAdminAminoMsg { + return { + type: "cosmos-sdk/MsgDeleteAdmin", + value: MsgDeleteAdmin.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgDeleteAdminProtoMsg, useInterfaces: boolean = false): MsgDeleteAdmin { + return MsgDeleteAdmin.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgDeleteAdmin): Uint8Array { + return MsgDeleteAdmin.encode(message).finish(); + }, + toProtoMsg(message: MsgDeleteAdmin): MsgDeleteAdminProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdmin", + value: MsgDeleteAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgDeleteAdminResponse(): MsgDeleteAdminResponse { + return {}; +} +export const MsgDeleteAdminResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdminResponse", + encode(_: MsgDeleteAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgDeleteAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeleteAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgDeleteAdminResponse { + const message = createBaseMsgDeleteAdminResponse(); + return message; + }, + fromAmino(_: MsgDeleteAdminResponseAmino): MsgDeleteAdminResponse { + const message = createBaseMsgDeleteAdminResponse(); + return message; + }, + toAmino(_: MsgDeleteAdminResponse, useInterfaces: boolean = false): MsgDeleteAdminResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgDeleteAdminResponseAminoMsg): MsgDeleteAdminResponse { + return MsgDeleteAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgDeleteAdminResponse, useInterfaces: boolean = false): MsgDeleteAdminResponseAminoMsg { + return { + type: "cosmos-sdk/MsgDeleteAdminResponse", + value: MsgDeleteAdminResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgDeleteAdminResponseProtoMsg, useInterfaces: boolean = false): MsgDeleteAdminResponse { + return MsgDeleteAdminResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgDeleteAdminResponse): Uint8Array { + return MsgDeleteAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgDeleteAdminResponse): MsgDeleteAdminResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgDeleteAdminResponse", + value: MsgDeleteAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddAdmin(): MsgAddAdmin { + return { + creator: "", + admin: "" + }; +} +export const MsgAddAdmin = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdmin", + encode(message: MsgAddAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.creator !== "") { + writer.uint32(10).string(message.creator); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgAddAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creator = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAddAdmin { + const message = createBaseMsgAddAdmin(); + message.creator = object.creator ?? ""; + message.admin = object.admin ?? ""; + return message; + }, + fromAmino(object: MsgAddAdminAmino): MsgAddAdmin { + const message = createBaseMsgAddAdmin(); + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + return message; + }, + toAmino(message: MsgAddAdmin, useInterfaces: boolean = false): MsgAddAdminAmino { + const obj: any = {}; + obj.creator = message.creator; + obj.admin = message.admin; + return obj; + }, + fromAminoMsg(object: MsgAddAdminAminoMsg): MsgAddAdmin { + return MsgAddAdmin.fromAmino(object.value); + }, + toAminoMsg(message: MsgAddAdmin, useInterfaces: boolean = false): MsgAddAdminAminoMsg { + return { + type: "cosmos-sdk/MsgAddAdmin", + value: MsgAddAdmin.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgAddAdminProtoMsg, useInterfaces: boolean = false): MsgAddAdmin { + return MsgAddAdmin.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgAddAdmin): Uint8Array { + return MsgAddAdmin.encode(message).finish(); + }, + toProtoMsg(message: MsgAddAdmin): MsgAddAdminProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdmin", + value: MsgAddAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgAddAdminResponse(): MsgAddAdminResponse { + return {}; +} +export const MsgAddAdminResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdminResponse", + encode(_: MsgAddAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgAddAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgAddAdminResponse { + const message = createBaseMsgAddAdminResponse(); + return message; + }, + fromAmino(_: MsgAddAdminResponseAmino): MsgAddAdminResponse { + const message = createBaseMsgAddAdminResponse(); + return message; + }, + toAmino(_: MsgAddAdminResponse, useInterfaces: boolean = false): MsgAddAdminResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgAddAdminResponseAminoMsg): MsgAddAdminResponse { + return MsgAddAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgAddAdminResponse, useInterfaces: boolean = false): MsgAddAdminResponseAminoMsg { + return { + type: "cosmos-sdk/MsgAddAdminResponse", + value: MsgAddAdminResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgAddAdminResponseProtoMsg, useInterfaces: boolean = false): MsgAddAdminResponse { + return MsgAddAdminResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgAddAdminResponse): Uint8Array { + return MsgAddAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgAddAdminResponse): MsgAddAdminResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgAddAdminResponse", + value: MsgAddAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalLegacy(): MsgSubmitProposalLegacy { + return { + content: undefined, + proposer: "" + }; +} +export const MsgSubmitProposalLegacy = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy", + encode(message: MsgSubmitProposalLegacy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.content !== undefined) { + Any.encode((message.content as Any), writer.uint32(10).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(18).string(message.proposer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgSubmitProposalLegacy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalLegacy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = useInterfaces ? (Content_InterfaceDecoder(reader) as Any) : Any.decode(reader, reader.uint32(), useInterfaces); + break; + case 2: + message.proposer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposalLegacy { + const message = createBaseMsgSubmitProposalLegacy(); + message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; + message.proposer = object.proposer ?? ""; + return message; + }, + fromAmino(object: MsgSubmitProposalLegacyAmino): MsgSubmitProposalLegacy { + const message = createBaseMsgSubmitProposalLegacy(); + if (object.content !== undefined && object.content !== null) { + message.content = Content_FromAmino(object.content); + } + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + return message; + }, + toAmino(message: MsgSubmitProposalLegacy, useInterfaces: boolean = false): MsgSubmitProposalLegacyAmino { + const obj: any = {}; + obj.content = message.content ? Content_ToAmino((message.content as Any), useInterfaces) : undefined; + obj.proposer = message.proposer; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalLegacyAminoMsg): MsgSubmitProposalLegacy { + return MsgSubmitProposalLegacy.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposalLegacy, useInterfaces: boolean = false): MsgSubmitProposalLegacyAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitProposalLegacy", + value: MsgSubmitProposalLegacy.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgSubmitProposalLegacyProtoMsg, useInterfaces: boolean = false): MsgSubmitProposalLegacy { + return MsgSubmitProposalLegacy.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgSubmitProposalLegacy): Uint8Array { + return MsgSubmitProposalLegacy.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposalLegacy): MsgSubmitProposalLegacyProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy", + value: MsgSubmitProposalLegacy.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalLegacyResponse(): MsgSubmitProposalLegacyResponse { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalLegacyResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse", + encode(message: MsgSubmitProposalLegacyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgSubmitProposalLegacyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalLegacyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposalLegacyResponse { + const message = createBaseMsgSubmitProposalLegacyResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgSubmitProposalLegacyResponseAmino): MsgSubmitProposalLegacyResponse { + const message = createBaseMsgSubmitProposalLegacyResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: MsgSubmitProposalLegacyResponse, useInterfaces: boolean = false): MsgSubmitProposalLegacyResponseAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalLegacyResponseAminoMsg): MsgSubmitProposalLegacyResponse { + return MsgSubmitProposalLegacyResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposalLegacyResponse, useInterfaces: boolean = false): MsgSubmitProposalLegacyResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitProposalLegacyResponse", + value: MsgSubmitProposalLegacyResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgSubmitProposalLegacyResponseProtoMsg, useInterfaces: boolean = false): MsgSubmitProposalLegacyResponse { + return MsgSubmitProposalLegacyResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgSubmitProposalLegacyResponse): Uint8Array { + return MsgSubmitProposalLegacyResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposalLegacyResponse): MsgSubmitProposalLegacyResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse", + value: MsgSubmitProposalLegacyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposal(): MsgSubmitProposal { + return { + messages: [], + proposer: "" + }; +} +export const MsgSubmitProposal = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposal", + encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.messages) { + Any.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(18).string(message.proposer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgSubmitProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messages.push(Any.decode(reader, reader.uint32(), useInterfaces)); + break; + case 2: + message.proposer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.proposer = object.proposer ?? ""; + return message; + }, + fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + return message; + }, + toAmino(message: MsgSubmitProposal, useInterfaces: boolean = false): MsgSubmitProposalAmino { + const obj: any = {}; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e, useInterfaces) : undefined); + } else { + obj.messages = []; + } + obj.proposer = message.proposer; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { + return MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposal, useInterfaces: boolean = false): MsgSubmitProposalAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitProposal", + value: MsgSubmitProposal.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgSubmitProposalProtoMsg, useInterfaces: boolean = false): MsgSubmitProposal { + return MsgSubmitProposal.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgSubmitProposal): Uint8Array { + return MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposal", + value: MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalResponse = { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalResponse", + encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number, useInterfaces: boolean = false): MsgSubmitProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: MsgSubmitProposalResponse, useInterfaces: boolean = false): MsgSubmitProposalResponseAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposalResponse, useInterfaces: boolean = false): MsgSubmitProposalResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.toAmino(message, useInterfaces) + }; + }, + fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg, useInterfaces: boolean = false): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.decode(message.value, undefined, useInterfaces); + }, + toProto(message: MsgSubmitProposalResponse): Uint8Array { + return MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.adminmodule.adminmodule.MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +export const Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32(), true); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Content_FromAmino = (content: AnyAmino) => { + return Any.fromAmino(content); +}; +export const Content_ToAmino = (content: Any, useInterfaces: boolean = false) => { + return Any.toAmino(content, useInterfaces); +}; \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/bundle.ts b/packages/types/protobuf/codegen/cosmos/bundle.ts index 87adfb95a5..cefa7d41c1 100644 --- a/packages/types/protobuf/codegen/cosmos/bundle.ts +++ b/packages/types/protobuf/codegen/cosmos/bundle.ts @@ -1,316 +1,334 @@ -import * as _28 from "./auth/v1beta1/auth"; -import * as _29 from "./auth/v1beta1/genesis"; -import * as _30 from "./auth/v1beta1/query"; -import * as _31 from "./auth/v1beta1/tx"; -import * as _32 from "./authz/v1beta1/authz"; -import * as _33 from "./authz/v1beta1/event"; -import * as _34 from "./authz/v1beta1/genesis"; -import * as _35 from "./authz/v1beta1/query"; -import * as _36 from "./authz/v1beta1/tx"; -import * as _37 from "./bank/v1beta1/authz"; -import * as _38 from "./bank/v1beta1/bank"; -import * as _39 from "./bank/v1beta1/genesis"; -import * as _40 from "./bank/v1beta1/query"; -import * as _41 from "./bank/v1beta1/tx"; -import * as _42 from "./base/abci/v1beta1/abci"; -import * as _43 from "./base/query/v1beta1/pagination"; -import * as _44 from "./base/tendermint/v1beta1/query"; -import * as _45 from "./base/tendermint/v1beta1/types"; -import * as _46 from "./base/v1beta1/coin"; -import * as _47 from "./crypto/ed25519/keys"; -import * as _48 from "./crypto/multisig/keys"; -import * as _49 from "./crypto/secp256k1/keys"; -import * as _50 from "./distribution/v1beta1/distribution"; -import * as _51 from "./distribution/v1beta1/genesis"; -import * as _52 from "./distribution/v1beta1/query"; -import * as _53 from "./distribution/v1beta1/tx"; -import * as _54 from "./feegrant/v1beta1/feegrant"; -import * as _55 from "./feegrant/v1beta1/genesis"; -import * as _56 from "./feegrant/v1beta1/query"; -import * as _57 from "./feegrant/v1beta1/tx"; -import * as _58 from "./gov/v1/genesis"; -import * as _59 from "./gov/v1/gov"; -import * as _60 from "./gov/v1/query"; -import * as _61 from "./gov/v1/tx"; -import * as _62 from "./gov/v1beta1/genesis"; -import * as _63 from "./gov/v1beta1/gov"; -import * as _64 from "./gov/v1beta1/query"; -import * as _65 from "./gov/v1beta1/tx"; -import * as _66 from "./mint/v1beta1/genesis"; -import * as _67 from "./mint/v1beta1/mint"; -import * as _68 from "./mint/v1beta1/query"; -import * as _69 from "./mint/v1beta1/tx"; -import * as _70 from "./msg/v1/msg"; -import * as _71 from "./orm/v1/orm"; -import * as _72 from "./params/v1beta1/params"; -import * as _73 from "./params/v1beta1/query"; -import * as _74 from "./query/v1/query"; -import * as _75 from "./slashing/v1beta1/genesis"; -import * as _76 from "./slashing/v1beta1/query"; -import * as _77 from "./slashing/v1beta1/slashing"; -import * as _78 from "./slashing/v1beta1/tx"; -import * as _79 from "./staking/v1beta1/authz"; -import * as _80 from "./staking/v1beta1/genesis"; -import * as _81 from "./staking/v1beta1/query"; -import * as _82 from "./staking/v1beta1/staking"; -import * as _83 from "./staking/v1beta1/tx"; -import * as _84 from "./tx/signing/v1beta1/signing"; -import * as _85 from "./tx/v1beta1/service"; -import * as _86 from "./tx/v1beta1/tx"; -import * as _87 from "./upgrade/v1beta1/query"; -import * as _88 from "./upgrade/v1beta1/tx"; -import * as _89 from "./upgrade/v1beta1/upgrade"; -import * as _353 from "./auth/v1beta1/tx.amino"; -import * as _354 from "./authz/v1beta1/tx.amino"; -import * as _355 from "./bank/v1beta1/tx.amino"; -import * as _356 from "./distribution/v1beta1/tx.amino"; -import * as _357 from "./feegrant/v1beta1/tx.amino"; -import * as _358 from "./gov/v1/tx.amino"; -import * as _359 from "./gov/v1beta1/tx.amino"; -import * as _360 from "./mint/v1beta1/tx.amino"; -import * as _361 from "./slashing/v1beta1/tx.amino"; -import * as _362 from "./staking/v1beta1/tx.amino"; -import * as _363 from "./upgrade/v1beta1/tx.amino"; -import * as _364 from "./auth/v1beta1/tx.registry"; -import * as _365 from "./authz/v1beta1/tx.registry"; -import * as _366 from "./bank/v1beta1/tx.registry"; -import * as _367 from "./distribution/v1beta1/tx.registry"; -import * as _368 from "./feegrant/v1beta1/tx.registry"; -import * as _369 from "./gov/v1/tx.registry"; -import * as _370 from "./gov/v1beta1/tx.registry"; -import * as _371 from "./mint/v1beta1/tx.registry"; -import * as _372 from "./slashing/v1beta1/tx.registry"; -import * as _373 from "./staking/v1beta1/tx.registry"; -import * as _374 from "./upgrade/v1beta1/tx.registry"; -import * as _375 from "./auth/v1beta1/query.rpc.Query"; -import * as _376 from "./authz/v1beta1/query.rpc.Query"; -import * as _377 from "./bank/v1beta1/query.rpc.Query"; -import * as _378 from "./base/tendermint/v1beta1/query.rpc.Service"; -import * as _379 from "./distribution/v1beta1/query.rpc.Query"; -import * as _380 from "./feegrant/v1beta1/query.rpc.Query"; -import * as _381 from "./gov/v1/query.rpc.Query"; -import * as _382 from "./gov/v1beta1/query.rpc.Query"; -import * as _383 from "./mint/v1beta1/query.rpc.Query"; -import * as _384 from "./params/v1beta1/query.rpc.Query"; -import * as _385 from "./slashing/v1beta1/query.rpc.Query"; -import * as _386 from "./staking/v1beta1/query.rpc.Query"; -import * as _387 from "./tx/v1beta1/service.rpc.Service"; -import * as _388 from "./upgrade/v1beta1/query.rpc.Query"; -import * as _389 from "./auth/v1beta1/tx.rpc.msg"; -import * as _390 from "./authz/v1beta1/tx.rpc.msg"; -import * as _391 from "./bank/v1beta1/tx.rpc.msg"; -import * as _392 from "./distribution/v1beta1/tx.rpc.msg"; -import * as _393 from "./feegrant/v1beta1/tx.rpc.msg"; -import * as _394 from "./gov/v1/tx.rpc.msg"; -import * as _395 from "./gov/v1beta1/tx.rpc.msg"; -import * as _396 from "./mint/v1beta1/tx.rpc.msg"; -import * as _397 from "./slashing/v1beta1/tx.rpc.msg"; -import * as _398 from "./staking/v1beta1/tx.rpc.msg"; -import * as _399 from "./upgrade/v1beta1/tx.rpc.msg"; -import * as _580 from "./rpc.query"; -import * as _581 from "./rpc.tx"; +import * as _28 from "./adminmodule/adminmodule/genesis"; +import * as _29 from "./adminmodule/adminmodule/query"; +import * as _30 from "./adminmodule/adminmodule/tx"; +import * as _31 from "./auth/v1beta1/auth"; +import * as _32 from "./auth/v1beta1/genesis"; +import * as _33 from "./auth/v1beta1/query"; +import * as _34 from "./auth/v1beta1/tx"; +import * as _35 from "./authz/v1beta1/authz"; +import * as _36 from "./authz/v1beta1/event"; +import * as _37 from "./authz/v1beta1/genesis"; +import * as _38 from "./authz/v1beta1/query"; +import * as _39 from "./authz/v1beta1/tx"; +import * as _40 from "./bank/v1beta1/authz"; +import * as _41 from "./bank/v1beta1/bank"; +import * as _42 from "./bank/v1beta1/genesis"; +import * as _43 from "./bank/v1beta1/query"; +import * as _44 from "./bank/v1beta1/tx"; +import * as _45 from "./base/abci/v1beta1/abci"; +import * as _46 from "./base/query/v1beta1/pagination"; +import * as _47 from "./base/tendermint/v1beta1/query"; +import * as _48 from "./base/tendermint/v1beta1/types"; +import * as _49 from "./base/v1beta1/coin"; +import * as _50 from "./crypto/ed25519/keys"; +import * as _51 from "./crypto/multisig/keys"; +import * as _52 from "./crypto/secp256k1/keys"; +import * as _53 from "./distribution/v1beta1/distribution"; +import * as _54 from "./distribution/v1beta1/genesis"; +import * as _55 from "./distribution/v1beta1/query"; +import * as _56 from "./distribution/v1beta1/tx"; +import * as _57 from "./feegrant/v1beta1/feegrant"; +import * as _58 from "./feegrant/v1beta1/genesis"; +import * as _59 from "./feegrant/v1beta1/query"; +import * as _60 from "./feegrant/v1beta1/tx"; +import * as _61 from "./gov/v1/genesis"; +import * as _62 from "./gov/v1/gov"; +import * as _63 from "./gov/v1/query"; +import * as _64 from "./gov/v1/tx"; +import * as _65 from "./gov/v1beta1/genesis"; +import * as _66 from "./gov/v1beta1/gov"; +import * as _67 from "./gov/v1beta1/query"; +import * as _68 from "./gov/v1beta1/tx"; +import * as _69 from "./mint/v1beta1/genesis"; +import * as _70 from "./mint/v1beta1/mint"; +import * as _71 from "./mint/v1beta1/query"; +import * as _72 from "./mint/v1beta1/tx"; +import * as _73 from "./msg/v1/msg"; +import * as _74 from "./orm/v1/orm"; +import * as _75 from "./params/v1beta1/params"; +import * as _76 from "./params/v1beta1/query"; +import * as _77 from "./query/v1/query"; +import * as _78 from "./slashing/v1beta1/genesis"; +import * as _79 from "./slashing/v1beta1/query"; +import * as _80 from "./slashing/v1beta1/slashing"; +import * as _81 from "./slashing/v1beta1/tx"; +import * as _82 from "./staking/v1beta1/authz"; +import * as _83 from "./staking/v1beta1/genesis"; +import * as _84 from "./staking/v1beta1/query"; +import * as _85 from "./staking/v1beta1/staking"; +import * as _86 from "./staking/v1beta1/tx"; +import * as _87 from "./tx/signing/v1beta1/signing"; +import * as _88 from "./tx/v1beta1/service"; +import * as _89 from "./tx/v1beta1/tx"; +import * as _90 from "./upgrade/v1beta1/query"; +import * as _91 from "./upgrade/v1beta1/tx"; +import * as _92 from "./upgrade/v1beta1/upgrade"; +import * as _356 from "./adminmodule/adminmodule/tx.amino"; +import * as _357 from "./auth/v1beta1/tx.amino"; +import * as _358 from "./authz/v1beta1/tx.amino"; +import * as _359 from "./bank/v1beta1/tx.amino"; +import * as _360 from "./distribution/v1beta1/tx.amino"; +import * as _361 from "./feegrant/v1beta1/tx.amino"; +import * as _362 from "./gov/v1/tx.amino"; +import * as _363 from "./gov/v1beta1/tx.amino"; +import * as _364 from "./mint/v1beta1/tx.amino"; +import * as _365 from "./slashing/v1beta1/tx.amino"; +import * as _366 from "./staking/v1beta1/tx.amino"; +import * as _367 from "./upgrade/v1beta1/tx.amino"; +import * as _368 from "./adminmodule/adminmodule/tx.registry"; +import * as _369 from "./auth/v1beta1/tx.registry"; +import * as _370 from "./authz/v1beta1/tx.registry"; +import * as _371 from "./bank/v1beta1/tx.registry"; +import * as _372 from "./distribution/v1beta1/tx.registry"; +import * as _373 from "./feegrant/v1beta1/tx.registry"; +import * as _374 from "./gov/v1/tx.registry"; +import * as _375 from "./gov/v1beta1/tx.registry"; +import * as _376 from "./mint/v1beta1/tx.registry"; +import * as _377 from "./slashing/v1beta1/tx.registry"; +import * as _378 from "./staking/v1beta1/tx.registry"; +import * as _379 from "./upgrade/v1beta1/tx.registry"; +import * as _380 from "./adminmodule/adminmodule/query.rpc.Query"; +import * as _381 from "./auth/v1beta1/query.rpc.Query"; +import * as _382 from "./authz/v1beta1/query.rpc.Query"; +import * as _383 from "./bank/v1beta1/query.rpc.Query"; +import * as _384 from "./base/tendermint/v1beta1/query.rpc.Service"; +import * as _385 from "./distribution/v1beta1/query.rpc.Query"; +import * as _386 from "./feegrant/v1beta1/query.rpc.Query"; +import * as _387 from "./gov/v1/query.rpc.Query"; +import * as _388 from "./gov/v1beta1/query.rpc.Query"; +import * as _389 from "./mint/v1beta1/query.rpc.Query"; +import * as _390 from "./params/v1beta1/query.rpc.Query"; +import * as _391 from "./slashing/v1beta1/query.rpc.Query"; +import * as _392 from "./staking/v1beta1/query.rpc.Query"; +import * as _393 from "./tx/v1beta1/service.rpc.Service"; +import * as _394 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _395 from "./adminmodule/adminmodule/tx.rpc.msg"; +import * as _396 from "./auth/v1beta1/tx.rpc.msg"; +import * as _397 from "./authz/v1beta1/tx.rpc.msg"; +import * as _398 from "./bank/v1beta1/tx.rpc.msg"; +import * as _399 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _400 from "./feegrant/v1beta1/tx.rpc.msg"; +import * as _401 from "./gov/v1/tx.rpc.msg"; +import * as _402 from "./gov/v1beta1/tx.rpc.msg"; +import * as _403 from "./mint/v1beta1/tx.rpc.msg"; +import * as _404 from "./slashing/v1beta1/tx.rpc.msg"; +import * as _405 from "./staking/v1beta1/tx.rpc.msg"; +import * as _406 from "./upgrade/v1beta1/tx.rpc.msg"; +import * as _587 from "./rpc.query"; +import * as _588 from "./rpc.tx"; export namespace cosmos { - export namespace auth { - export const v1beta1 = { + export namespace adminmodule { + export const adminmodule = { ..._28, ..._29, ..._30, - ..._31, - ..._353, - ..._364, - ..._375, - ..._389 + ..._356, + ..._368, + ..._380, + ..._395 }; } - export namespace authz { + export namespace auth { export const v1beta1 = { + ..._31, ..._32, ..._33, ..._34, - ..._35, - ..._36, - ..._354, - ..._365, - ..._376, - ..._390 + ..._357, + ..._369, + ..._381, + ..._396 }; } - export namespace bank { + export namespace authz { export const v1beta1 = { + ..._35, + ..._36, ..._37, ..._38, ..._39, + ..._358, + ..._370, + ..._382, + ..._397 + }; + } + export namespace bank { + export const v1beta1 = { ..._40, ..._41, - ..._355, - ..._366, - ..._377, - ..._391 + ..._42, + ..._43, + ..._44, + ..._359, + ..._371, + ..._383, + ..._398 }; } export namespace base { export namespace abci { export const v1beta1 = { - ..._42 + ..._45 }; } export namespace query { export const v1beta1 = { - ..._43 + ..._46 }; } export namespace tendermint { export const v1beta1 = { - ..._44, - ..._45, - ..._378 + ..._47, + ..._48, + ..._384 }; } export const v1beta1 = { - ..._46 + ..._49 }; } export namespace crypto { export const ed25519 = { - ..._47 + ..._50 }; export const multisig = { - ..._48 + ..._51 }; export const secp256k1 = { - ..._49 + ..._52 }; } export namespace distribution { export const v1beta1 = { - ..._50, - ..._51, - ..._52, ..._53, - ..._356, - ..._367, - ..._379, - ..._392 + ..._54, + ..._55, + ..._56, + ..._360, + ..._372, + ..._385, + ..._399 }; } export namespace feegrant { export const v1beta1 = { - ..._54, - ..._55, - ..._56, ..._57, - ..._357, - ..._368, - ..._380, - ..._393 + ..._58, + ..._59, + ..._60, + ..._361, + ..._373, + ..._386, + ..._400 }; } export namespace gov { export const v1 = { - ..._58, - ..._59, - ..._60, ..._61, - ..._358, - ..._369, - ..._381, - ..._394 - }; - export const v1beta1 = { ..._62, ..._63, ..._64, - ..._65, - ..._359, - ..._370, - ..._382, - ..._395 + ..._362, + ..._374, + ..._387, + ..._401 }; - } - export namespace mint { export const v1beta1 = { + ..._65, ..._66, ..._67, ..._68, + ..._363, + ..._375, + ..._388, + ..._402 + }; + } + export namespace mint { + export const v1beta1 = { ..._69, - ..._360, - ..._371, - ..._383, - ..._396 + ..._70, + ..._71, + ..._72, + ..._364, + ..._376, + ..._389, + ..._403 }; } export namespace msg { export const v1 = { - ..._70 + ..._73 }; } export namespace orm { export const v1 = { - ..._71 + ..._74 }; } export namespace params { export const v1beta1 = { - ..._72, - ..._73, - ..._384 + ..._75, + ..._76, + ..._390 }; } export namespace query { export const v1 = { - ..._74 + ..._77 }; } export namespace slashing { export const v1beta1 = { - ..._75, - ..._76, - ..._77, ..._78, - ..._361, - ..._372, - ..._385, - ..._397 + ..._79, + ..._80, + ..._81, + ..._365, + ..._377, + ..._391, + ..._404 }; } export namespace staking { export const v1beta1 = { - ..._79, - ..._80, - ..._81, ..._82, ..._83, - ..._362, - ..._373, - ..._386, - ..._398 + ..._84, + ..._85, + ..._86, + ..._366, + ..._378, + ..._392, + ..._405 }; } export namespace tx { export namespace signing { export const v1beta1 = { - ..._84 + ..._87 }; } export const v1beta1 = { - ..._85, - ..._86, - ..._387 + ..._88, + ..._89, + ..._393 }; } export namespace upgrade { export const v1beta1 = { - ..._87, - ..._88, - ..._89, - ..._363, - ..._374, - ..._388, - ..._399 + ..._90, + ..._91, + ..._92, + ..._367, + ..._379, + ..._394, + ..._406 }; } export const ClientFactory = { - ..._580, - ..._581 + ..._587, + ..._588 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmos/client.ts b/packages/types/protobuf/codegen/cosmos/client.ts index a0691dfb27..9047cc565b 100644 --- a/packages/types/protobuf/codegen/cosmos/client.ts +++ b/packages/types/protobuf/codegen/cosmos/client.ts @@ -1,6 +1,7 @@ import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import * as cosmosAdminmoduleAdminmoduleTxRegistry from "./adminmodule/adminmodule/tx.registry"; import * as cosmosAuthV1beta1TxRegistry from "./auth/v1beta1/tx.registry"; import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry"; import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry"; @@ -12,6 +13,7 @@ import * as cosmosMintV1beta1TxRegistry from "./mint/v1beta1/tx.registry"; import * as cosmosSlashingV1beta1TxRegistry from "./slashing/v1beta1/tx.registry"; import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry"; import * as cosmosUpgradeV1beta1TxRegistry from "./upgrade/v1beta1/tx.registry"; +import * as cosmosAdminmoduleAdminmoduleTxAmino from "./adminmodule/adminmodule/tx.amino"; import * as cosmosAuthV1beta1TxAmino from "./auth/v1beta1/tx.amino"; import * as cosmosAuthzV1beta1TxAmino from "./authz/v1beta1/tx.amino"; import * as cosmosBankV1beta1TxAmino from "./bank/v1beta1/tx.amino"; @@ -24,6 +26,7 @@ import * as cosmosSlashingV1beta1TxAmino from "./slashing/v1beta1/tx.amino"; import * as cosmosStakingV1beta1TxAmino from "./staking/v1beta1/tx.amino"; import * as cosmosUpgradeV1beta1TxAmino from "./upgrade/v1beta1/tx.amino"; export const cosmosAminoConverters = { + ...cosmosAdminmoduleAdminmoduleTxAmino.AminoConverter, ...cosmosAuthV1beta1TxAmino.AminoConverter, ...cosmosAuthzV1beta1TxAmino.AminoConverter, ...cosmosBankV1beta1TxAmino.AminoConverter, @@ -36,7 +39,7 @@ export const cosmosAminoConverters = { ...cosmosStakingV1beta1TxAmino.AminoConverter, ...cosmosUpgradeV1beta1TxAmino.AminoConverter }; -export const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...cosmosAuthV1beta1TxRegistry.registry, ...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosMintV1beta1TxRegistry.registry, ...cosmosSlashingV1beta1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry]; +export const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...cosmosAdminmoduleAdminmoduleTxRegistry.registry, ...cosmosAuthV1beta1TxRegistry.registry, ...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosMintV1beta1TxRegistry.registry, ...cosmosSlashingV1beta1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry]; export const getSigningCosmosClientOptions = (): { registry: Registry; aminoTypes: AminoTypes; diff --git a/packages/types/protobuf/codegen/cosmos/rpc.query.ts b/packages/types/protobuf/codegen/cosmos/rpc.query.ts index 1fdb1dc7b5..af511d25d4 100644 --- a/packages/types/protobuf/codegen/cosmos/rpc.query.ts +++ b/packages/types/protobuf/codegen/cosmos/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("./adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("./auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/cosmos/rpc.tx.ts b/packages/types/protobuf/codegen/cosmos/rpc.tx.ts index 0801310320..ca318bce87 100644 --- a/packages/types/protobuf/codegen/cosmos/rpc.tx.ts +++ b/packages/types/protobuf/codegen/cosmos/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("./adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("./auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/cosmwasm/bundle.ts b/packages/types/protobuf/codegen/cosmwasm/bundle.ts index 15e4aa086c..68c300e6cc 100644 --- a/packages/types/protobuf/codegen/cosmwasm/bundle.ts +++ b/packages/types/protobuf/codegen/cosmwasm/bundle.ts @@ -1,56 +1,56 @@ -import * as _90 from "./tokenfactory/v1beta1/authorityMetadata"; -import * as _91 from "./tokenfactory/v1beta1/genesis"; -import * as _92 from "./tokenfactory/v1beta1/params"; -import * as _93 from "./tokenfactory/v1beta1/query"; -import * as _94 from "./tokenfactory/v1beta1/tx"; -import * as _95 from "./wasm/v1/authz"; -import * as _96 from "./wasm/v1/genesis"; -import * as _97 from "./wasm/v1/ibc"; -import * as _98 from "./wasm/v1/proposal"; -import * as _99 from "./wasm/v1/query"; -import * as _100 from "./wasm/v1/tx"; -import * as _101 from "./wasm/v1/types"; -import * as _400 from "./tokenfactory/v1beta1/tx.amino"; -import * as _401 from "./wasm/v1/tx.amino"; -import * as _402 from "./tokenfactory/v1beta1/tx.registry"; -import * as _403 from "./wasm/v1/tx.registry"; -import * as _404 from "./tokenfactory/v1beta1/query.rpc.Query"; -import * as _405 from "./wasm/v1/query.rpc.Query"; -import * as _406 from "./tokenfactory/v1beta1/tx.rpc.msg"; -import * as _407 from "./wasm/v1/tx.rpc.msg"; -import * as _582 from "./rpc.query"; -import * as _583 from "./rpc.tx"; +import * as _93 from "./tokenfactory/v1beta1/authorityMetadata"; +import * as _94 from "./tokenfactory/v1beta1/genesis"; +import * as _95 from "./tokenfactory/v1beta1/params"; +import * as _96 from "./tokenfactory/v1beta1/query"; +import * as _97 from "./tokenfactory/v1beta1/tx"; +import * as _98 from "./wasm/v1/authz"; +import * as _99 from "./wasm/v1/genesis"; +import * as _100 from "./wasm/v1/ibc"; +import * as _101 from "./wasm/v1/proposal"; +import * as _102 from "./wasm/v1/query"; +import * as _103 from "./wasm/v1/tx"; +import * as _104 from "./wasm/v1/types"; +import * as _407 from "./tokenfactory/v1beta1/tx.amino"; +import * as _408 from "./wasm/v1/tx.amino"; +import * as _409 from "./tokenfactory/v1beta1/tx.registry"; +import * as _410 from "./wasm/v1/tx.registry"; +import * as _411 from "./tokenfactory/v1beta1/query.rpc.Query"; +import * as _412 from "./wasm/v1/query.rpc.Query"; +import * as _413 from "./tokenfactory/v1beta1/tx.rpc.msg"; +import * as _414 from "./wasm/v1/tx.rpc.msg"; +import * as _589 from "./rpc.query"; +import * as _590 from "./rpc.tx"; export namespace cosmwasm { export namespace tokenfactory { export const v1beta1 = { - ..._90, - ..._91, - ..._92, ..._93, ..._94, - ..._400, - ..._402, - ..._404, - ..._406 + ..._95, + ..._96, + ..._97, + ..._407, + ..._409, + ..._411, + ..._413 }; } export namespace wasm { export const v1 = { - ..._95, - ..._96, - ..._97, ..._98, ..._99, ..._100, ..._101, - ..._401, - ..._403, - ..._405, - ..._407 + ..._102, + ..._103, + ..._104, + ..._408, + ..._410, + ..._412, + ..._414 }; } export const ClientFactory = { - ..._582, - ..._583 + ..._589, + ..._590 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/cosmwasm/rpc.query.ts b/packages/types/protobuf/codegen/cosmwasm/rpc.query.ts index 7d9a9b83b7..69f79a13a5 100644 --- a/packages/types/protobuf/codegen/cosmwasm/rpc.query.ts +++ b/packages/types/protobuf/codegen/cosmwasm/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/cosmwasm/rpc.tx.ts b/packages/types/protobuf/codegen/cosmwasm/rpc.tx.ts index 23b50e5e86..c2d70a170a 100644 --- a/packages/types/protobuf/codegen/cosmwasm/rpc.tx.ts +++ b/packages/types/protobuf/codegen/cosmwasm/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/gaia/bundle.ts b/packages/types/protobuf/codegen/gaia/bundle.ts index f73d90748d..5d03554b4c 100644 --- a/packages/types/protobuf/codegen/gaia/bundle.ts +++ b/packages/types/protobuf/codegen/gaia/bundle.ts @@ -1,26 +1,26 @@ -import * as _102 from "./globalfee/v1beta1/genesis"; -import * as _103 from "./globalfee/v1beta1/query"; -import * as _104 from "./globalfee/v1beta1/tx"; -import * as _408 from "./globalfee/v1beta1/tx.amino"; -import * as _409 from "./globalfee/v1beta1/tx.registry"; -import * as _410 from "./globalfee/v1beta1/query.rpc.Query"; -import * as _411 from "./globalfee/v1beta1/tx.rpc.msg"; -import * as _584 from "./rpc.query"; -import * as _585 from "./rpc.tx"; +import * as _105 from "./globalfee/v1beta1/genesis"; +import * as _106 from "./globalfee/v1beta1/query"; +import * as _107 from "./globalfee/v1beta1/tx"; +import * as _415 from "./globalfee/v1beta1/tx.amino"; +import * as _416 from "./globalfee/v1beta1/tx.registry"; +import * as _417 from "./globalfee/v1beta1/query.rpc.Query"; +import * as _418 from "./globalfee/v1beta1/tx.rpc.msg"; +import * as _591 from "./rpc.query"; +import * as _592 from "./rpc.tx"; export namespace gaia { export namespace globalfee { export const v1beta1 = { - ..._102, - ..._103, - ..._104, - ..._408, - ..._409, - ..._410, - ..._411 + ..._105, + ..._106, + ..._107, + ..._415, + ..._416, + ..._417, + ..._418 }; } export const ClientFactory = { - ..._584, - ..._585 + ..._591, + ..._592 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/gaia/rpc.query.ts b/packages/types/protobuf/codegen/gaia/rpc.query.ts index cc8c0b3890..f618a79483 100644 --- a/packages/types/protobuf/codegen/gaia/rpc.query.ts +++ b/packages/types/protobuf/codegen/gaia/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/gaia/rpc.tx.ts b/packages/types/protobuf/codegen/gaia/rpc.tx.ts index b8564052cc..367144fa34 100644 --- a/packages/types/protobuf/codegen/gaia/rpc.tx.ts +++ b/packages/types/protobuf/codegen/gaia/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/gogoproto/bundle.ts b/packages/types/protobuf/codegen/gogoproto/bundle.ts index 3025fa61bf..2c41b17a85 100644 --- a/packages/types/protobuf/codegen/gogoproto/bundle.ts +++ b/packages/types/protobuf/codegen/gogoproto/bundle.ts @@ -1,4 +1,4 @@ -import * as _105 from "./gogo"; +import * as _108 from "./gogo"; export const gogoproto = { - ..._105 + ..._108 }; \ No newline at end of file diff --git a/packages/types/protobuf/codegen/google/bundle.ts b/packages/types/protobuf/codegen/google/bundle.ts index ad20591495..543e4efe9f 100644 --- a/packages/types/protobuf/codegen/google/bundle.ts +++ b/packages/types/protobuf/codegen/google/bundle.ts @@ -1,20 +1,20 @@ -import * as _106 from "./api/annotations"; -import * as _107 from "./api/http"; -import * as _108 from "./protobuf/any"; -import * as _109 from "./protobuf/descriptor"; -import * as _110 from "./protobuf/duration"; -import * as _111 from "./protobuf/empty"; -import * as _112 from "./protobuf/timestamp"; +import * as _109 from "./api/annotations"; +import * as _110 from "./api/http"; +import * as _111 from "./protobuf/any"; +import * as _112 from "./protobuf/descriptor"; +import * as _113 from "./protobuf/duration"; +import * as _114 from "./protobuf/empty"; +import * as _115 from "./protobuf/timestamp"; export namespace google { export const api = { - ..._106, - ..._107 + ..._109, + ..._110 }; export const protobuf = { - ..._108, - ..._109, - ..._110, ..._111, - ..._112 + ..._112, + ..._113, + ..._114, + ..._115 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/ibc/bundle.ts b/packages/types/protobuf/codegen/ibc/bundle.ts index a1e20ded46..ea7fc91295 100644 --- a/packages/types/protobuf/codegen/ibc/bundle.ts +++ b/packages/types/protobuf/codegen/ibc/bundle.ts @@ -1,120 +1,120 @@ -import * as _113 from "./applications/interchain_accounts/controller/v1/controller"; -import * as _114 from "./applications/interchain_accounts/controller/v1/query"; -import * as _115 from "./applications/interchain_accounts/controller/v1/tx"; -import * as _116 from "./applications/interchain_accounts/host/v1/host"; -import * as _117 from "./applications/interchain_accounts/host/v1/query"; -import * as _118 from "./applications/interchain_accounts/host/v1/tx"; -import * as _119 from "./applications/interchain_accounts/v1/account"; -import * as _120 from "./applications/interchain_accounts/v1/metadata"; -import * as _121 from "./applications/interchain_accounts/v1/packet"; -import * as _122 from "./applications/transfer/v1/authz"; -import * as _123 from "./applications/transfer/v1/genesis"; -import * as _124 from "./applications/transfer/v1/query"; -import * as _125 from "./applications/transfer/v1/transfer"; -import * as _126 from "./applications/transfer/v1/tx"; -import * as _127 from "./core/channel/v1/channel"; -import * as _128 from "./core/channel/v1/genesis"; -import * as _129 from "./core/channel/v1/query"; -import * as _130 from "./core/channel/v1/tx"; -import * as _131 from "./core/client/v1/client"; -import * as _132 from "./core/client/v1/genesis"; -import * as _133 from "./core/client/v1/query"; -import * as _134 from "./core/client/v1/tx"; -import * as _412 from "./applications/interchain_accounts/controller/v1/tx.amino"; -import * as _413 from "./applications/interchain_accounts/host/v1/tx.amino"; -import * as _414 from "./applications/transfer/v1/tx.amino"; -import * as _415 from "./core/channel/v1/tx.amino"; -import * as _416 from "./core/client/v1/tx.amino"; -import * as _417 from "./applications/interchain_accounts/controller/v1/tx.registry"; -import * as _418 from "./applications/interchain_accounts/host/v1/tx.registry"; -import * as _419 from "./applications/transfer/v1/tx.registry"; -import * as _420 from "./core/channel/v1/tx.registry"; -import * as _421 from "./core/client/v1/tx.registry"; -import * as _422 from "./applications/interchain_accounts/controller/v1/query.rpc.Query"; -import * as _423 from "./applications/interchain_accounts/host/v1/query.rpc.Query"; -import * as _424 from "./applications/transfer/v1/query.rpc.Query"; -import * as _425 from "./core/channel/v1/query.rpc.Query"; -import * as _426 from "./core/client/v1/query.rpc.Query"; -import * as _427 from "./applications/interchain_accounts/controller/v1/tx.rpc.msg"; -import * as _428 from "./applications/interchain_accounts/host/v1/tx.rpc.msg"; -import * as _429 from "./applications/transfer/v1/tx.rpc.msg"; -import * as _430 from "./core/channel/v1/tx.rpc.msg"; -import * as _431 from "./core/client/v1/tx.rpc.msg"; -import * as _586 from "./rpc.query"; -import * as _587 from "./rpc.tx"; +import * as _116 from "./applications/interchain_accounts/controller/v1/controller"; +import * as _117 from "./applications/interchain_accounts/controller/v1/query"; +import * as _118 from "./applications/interchain_accounts/controller/v1/tx"; +import * as _119 from "./applications/interchain_accounts/host/v1/host"; +import * as _120 from "./applications/interchain_accounts/host/v1/query"; +import * as _121 from "./applications/interchain_accounts/host/v1/tx"; +import * as _122 from "./applications/interchain_accounts/v1/account"; +import * as _123 from "./applications/interchain_accounts/v1/metadata"; +import * as _124 from "./applications/interchain_accounts/v1/packet"; +import * as _125 from "./applications/transfer/v1/authz"; +import * as _126 from "./applications/transfer/v1/genesis"; +import * as _127 from "./applications/transfer/v1/query"; +import * as _128 from "./applications/transfer/v1/transfer"; +import * as _129 from "./applications/transfer/v1/tx"; +import * as _130 from "./core/channel/v1/channel"; +import * as _131 from "./core/channel/v1/genesis"; +import * as _132 from "./core/channel/v1/query"; +import * as _133 from "./core/channel/v1/tx"; +import * as _134 from "./core/client/v1/client"; +import * as _135 from "./core/client/v1/genesis"; +import * as _136 from "./core/client/v1/query"; +import * as _137 from "./core/client/v1/tx"; +import * as _419 from "./applications/interchain_accounts/controller/v1/tx.amino"; +import * as _420 from "./applications/interchain_accounts/host/v1/tx.amino"; +import * as _421 from "./applications/transfer/v1/tx.amino"; +import * as _422 from "./core/channel/v1/tx.amino"; +import * as _423 from "./core/client/v1/tx.amino"; +import * as _424 from "./applications/interchain_accounts/controller/v1/tx.registry"; +import * as _425 from "./applications/interchain_accounts/host/v1/tx.registry"; +import * as _426 from "./applications/transfer/v1/tx.registry"; +import * as _427 from "./core/channel/v1/tx.registry"; +import * as _428 from "./core/client/v1/tx.registry"; +import * as _429 from "./applications/interchain_accounts/controller/v1/query.rpc.Query"; +import * as _430 from "./applications/interchain_accounts/host/v1/query.rpc.Query"; +import * as _431 from "./applications/transfer/v1/query.rpc.Query"; +import * as _432 from "./core/channel/v1/query.rpc.Query"; +import * as _433 from "./core/client/v1/query.rpc.Query"; +import * as _434 from "./applications/interchain_accounts/controller/v1/tx.rpc.msg"; +import * as _435 from "./applications/interchain_accounts/host/v1/tx.rpc.msg"; +import * as _436 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _437 from "./core/channel/v1/tx.rpc.msg"; +import * as _438 from "./core/client/v1/tx.rpc.msg"; +import * as _593 from "./rpc.query"; +import * as _594 from "./rpc.tx"; export namespace ibc { export namespace applications { export namespace interchain_accounts { export namespace controller { export const v1 = { - ..._113, - ..._114, - ..._115, - ..._412, - ..._417, - ..._422, - ..._427 + ..._116, + ..._117, + ..._118, + ..._419, + ..._424, + ..._429, + ..._434 }; } export namespace host { export const v1 = { - ..._116, - ..._117, - ..._118, - ..._413, - ..._418, - ..._423, - ..._428 + ..._119, + ..._120, + ..._121, + ..._420, + ..._425, + ..._430, + ..._435 }; } export const v1 = { - ..._119, - ..._120, - ..._121 + ..._122, + ..._123, + ..._124 }; } export namespace transfer { export const v1 = { - ..._122, - ..._123, - ..._124, ..._125, ..._126, - ..._414, - ..._419, - ..._424, - ..._429 + ..._127, + ..._128, + ..._129, + ..._421, + ..._426, + ..._431, + ..._436 }; } } export namespace core { export namespace channel { export const v1 = { - ..._127, - ..._128, - ..._129, ..._130, - ..._415, - ..._420, - ..._425, - ..._430 + ..._131, + ..._132, + ..._133, + ..._422, + ..._427, + ..._432, + ..._437 }; } export namespace client { export const v1 = { - ..._131, - ..._132, - ..._133, ..._134, - ..._416, - ..._421, - ..._426, - ..._431 + ..._135, + ..._136, + ..._137, + ..._423, + ..._428, + ..._433, + ..._438 }; } } export const ClientFactory = { - ..._586, - ..._587 + ..._593, + ..._594 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/ibc/rpc.query.ts b/packages/types/protobuf/codegen/ibc/rpc.query.ts index bb51968df0..1ddcf29198 100644 --- a/packages/types/protobuf/codegen/ibc/rpc.query.ts +++ b/packages/types/protobuf/codegen/ibc/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/ibc/rpc.tx.ts b/packages/types/protobuf/codegen/ibc/rpc.tx.ts index 14f8597c86..3df7ca4547 100644 --- a/packages/types/protobuf/codegen/ibc/rpc.tx.ts +++ b/packages/types/protobuf/codegen/ibc/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/juno/bundle.ts b/packages/types/protobuf/codegen/juno/bundle.ts index 4aa4e59cfe..a5dc2540b5 100644 --- a/packages/types/protobuf/codegen/juno/bundle.ts +++ b/packages/types/protobuf/codegen/juno/bundle.ts @@ -1,46 +1,46 @@ -import * as _135 from "./feeshare/v1/feeshare"; -import * as _136 from "./feeshare/v1/genesis"; -import * as _137 from "./feeshare/v1/query"; -import * as _138 from "./feeshare/v1/tx"; -import * as _139 from "./mint/genesis"; -import * as _140 from "./mint/mint"; -import * as _141 from "./mint/query"; -import * as _142 from "./mint/tx"; -import * as _432 from "./feeshare/v1/tx.amino"; -import * as _433 from "./mint/tx.amino"; -import * as _434 from "./feeshare/v1/tx.registry"; -import * as _435 from "./mint/tx.registry"; -import * as _436 from "./feeshare/v1/query.rpc.Query"; -import * as _437 from "./mint/query.rpc.Query"; -import * as _438 from "./feeshare/v1/tx.rpc.msg"; -import * as _439 from "./mint/tx.rpc.msg"; -import * as _588 from "./rpc.query"; -import * as _589 from "./rpc.tx"; +import * as _138 from "./feeshare/v1/feeshare"; +import * as _139 from "./feeshare/v1/genesis"; +import * as _140 from "./feeshare/v1/query"; +import * as _141 from "./feeshare/v1/tx"; +import * as _142 from "./mint/genesis"; +import * as _143 from "./mint/mint"; +import * as _144 from "./mint/query"; +import * as _145 from "./mint/tx"; +import * as _439 from "./feeshare/v1/tx.amino"; +import * as _440 from "./mint/tx.amino"; +import * as _441 from "./feeshare/v1/tx.registry"; +import * as _442 from "./mint/tx.registry"; +import * as _443 from "./feeshare/v1/query.rpc.Query"; +import * as _444 from "./mint/query.rpc.Query"; +import * as _445 from "./feeshare/v1/tx.rpc.msg"; +import * as _446 from "./mint/tx.rpc.msg"; +import * as _595 from "./rpc.query"; +import * as _596 from "./rpc.tx"; export namespace juno { export namespace feeshare { export const v1 = { - ..._135, - ..._136, - ..._137, ..._138, - ..._432, - ..._434, - ..._436, - ..._438 + ..._139, + ..._140, + ..._141, + ..._439, + ..._441, + ..._443, + ..._445 }; } export const mint = { - ..._139, - ..._140, - ..._141, ..._142, - ..._433, - ..._435, - ..._437, - ..._439 + ..._143, + ..._144, + ..._145, + ..._440, + ..._442, + ..._444, + ..._446 }; export const ClientFactory = { - ..._588, - ..._589 + ..._595, + ..._596 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/juno/rpc.query.ts b/packages/types/protobuf/codegen/juno/rpc.query.ts index 4cf3955e09..57dcab9ebd 100644 --- a/packages/types/protobuf/codegen/juno/rpc.query.ts +++ b/packages/types/protobuf/codegen/juno/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/juno/rpc.tx.ts b/packages/types/protobuf/codegen/juno/rpc.tx.ts index cc31127313..79bcc00dac 100644 --- a/packages/types/protobuf/codegen/juno/rpc.tx.ts +++ b/packages/types/protobuf/codegen/juno/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/kujira/bundle.ts b/packages/types/protobuf/codegen/kujira/bundle.ts index 830aaa96aa..0593a31805 100644 --- a/packages/types/protobuf/codegen/kujira/bundle.ts +++ b/packages/types/protobuf/codegen/kujira/bundle.ts @@ -1,60 +1,60 @@ -import * as _143 from "./denom/authorityMetadata"; -import * as _144 from "./denom/genesis"; -import * as _145 from "./denom/params"; -import * as _146 from "./denom/query"; -import * as _147 from "./denom/tx"; -import * as _148 from "./oracle/genesis"; -import * as _149 from "./oracle/oracle"; -import * as _150 from "./oracle/query"; -import * as _151 from "./oracle/tx"; -import * as _152 from "./scheduler/genesis"; -import * as _153 from "./scheduler/hook"; -import * as _154 from "./scheduler/params"; -import * as _155 from "./scheduler/proposal"; -import * as _156 from "./scheduler/query"; -import * as _440 from "./denom/tx.amino"; -import * as _441 from "./oracle/tx.amino"; -import * as _442 from "./denom/tx.registry"; -import * as _443 from "./oracle/tx.registry"; -import * as _444 from "./denom/query.rpc.Query"; -import * as _445 from "./oracle/query.rpc.Query"; -import * as _446 from "./scheduler/query.rpc.Query"; -import * as _447 from "./denom/tx.rpc.msg"; -import * as _448 from "./oracle/tx.rpc.msg"; -import * as _590 from "./rpc.query"; -import * as _591 from "./rpc.tx"; +import * as _146 from "./denom/authorityMetadata"; +import * as _147 from "./denom/genesis"; +import * as _148 from "./denom/params"; +import * as _149 from "./denom/query"; +import * as _150 from "./denom/tx"; +import * as _151 from "./oracle/genesis"; +import * as _152 from "./oracle/oracle"; +import * as _153 from "./oracle/query"; +import * as _154 from "./oracle/tx"; +import * as _155 from "./scheduler/genesis"; +import * as _156 from "./scheduler/hook"; +import * as _157 from "./scheduler/params"; +import * as _158 from "./scheduler/proposal"; +import * as _159 from "./scheduler/query"; +import * as _447 from "./denom/tx.amino"; +import * as _448 from "./oracle/tx.amino"; +import * as _449 from "./denom/tx.registry"; +import * as _450 from "./oracle/tx.registry"; +import * as _451 from "./denom/query.rpc.Query"; +import * as _452 from "./oracle/query.rpc.Query"; +import * as _453 from "./scheduler/query.rpc.Query"; +import * as _454 from "./denom/tx.rpc.msg"; +import * as _455 from "./oracle/tx.rpc.msg"; +import * as _597 from "./rpc.query"; +import * as _598 from "./rpc.tx"; export namespace kujira { export const denom = { - ..._143, - ..._144, - ..._145, ..._146, ..._147, - ..._440, - ..._442, - ..._444, - ..._447 - }; - export const oracle = { ..._148, ..._149, ..._150, - ..._151, - ..._441, - ..._443, - ..._445, - ..._448 + ..._447, + ..._449, + ..._451, + ..._454 }; - export const scheduler = { + export const oracle = { + ..._151, ..._152, ..._153, ..._154, + ..._448, + ..._450, + ..._452, + ..._455 + }; + export const scheduler = { ..._155, ..._156, - ..._446 + ..._157, + ..._158, + ..._159, + ..._453 }; export const ClientFactory = { - ..._590, - ..._591 + ..._597, + ..._598 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/kujira/rpc.query.ts b/packages/types/protobuf/codegen/kujira/rpc.query.ts index a7c8e57b38..727b027e9c 100644 --- a/packages/types/protobuf/codegen/kujira/rpc.query.ts +++ b/packages/types/protobuf/codegen/kujira/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/kujira/rpc.tx.ts b/packages/types/protobuf/codegen/kujira/rpc.tx.ts index b10034d261..2fd2b0fc53 100644 --- a/packages/types/protobuf/codegen/kujira/rpc.tx.ts +++ b/packages/types/protobuf/codegen/kujira/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/neutron/bundle.ts b/packages/types/protobuf/codegen/neutron/bundle.ts index 2549ea389e..65299c4578 100644 --- a/packages/types/protobuf/codegen/neutron/bundle.ts +++ b/packages/types/protobuf/codegen/neutron/bundle.ts @@ -1,88 +1,85 @@ -import * as _157 from "./contractmanager/v1/failure"; -import * as _158 from "./cron/genesis"; -import * as _159 from "./cron/params"; -import * as _160 from "./cron/query"; -import * as _161 from "./cron/schedule"; -import * as _162 from "./cron/tx"; -import * as _163 from "./dex/deposit_record"; -import * as _164 from "./dex/genesis"; -import * as _165 from "./dex/limit_order_expiration"; -import * as _166 from "./dex/limit_order_tranche_user"; -import * as _167 from "./dex/limit_order_tranche"; -import * as _168 from "./dex/pair_id"; -import * as _169 from "./dex/params"; -import * as _170 from "./dex/pool_metadata"; -import * as _171 from "./dex/pool_reserves"; -import * as _172 from "./dex/pool"; -import * as _173 from "./dex/query"; -import * as _174 from "./dex/tick_liquidity"; -import * as _175 from "./dex/trade_pair_id"; -import * as _176 from "./dex/tx"; -import * as _177 from "./feeburner/genesis"; -import * as _178 from "./feeburner/params"; -import * as _179 from "./feeburner/query"; -import * as _180 from "./feeburner/total_burned_neutrons_amount"; -import * as _181 from "./feeburner/tx"; -import * as _182 from "./feerefunder/fee"; -import * as _183 from "./feerefunder/genesis"; -import * as _184 from "./feerefunder/params"; -import * as _185 from "./feerefunder/query"; -import * as _186 from "./feerefunder/tx"; -import * as _187 from "./interchainqueries/genesis"; -import * as _188 from "./interchainqueries/params"; -import * as _189 from "./interchainqueries/query"; -import * as _190 from "./interchainqueries/tx"; -import * as _191 from "./interchaintxs/v1/genesis"; -import * as _192 from "./interchaintxs/v1/params"; -import * as _193 from "./interchaintxs/v1/query"; -import * as _194 from "./interchaintxs/v1/tx"; -import * as _449 from "./cron/tx.amino"; -import * as _450 from "./dex/tx.amino"; -import * as _451 from "./feeburner/tx.amino"; -import * as _452 from "./feerefunder/tx.amino"; -import * as _453 from "./interchainqueries/tx.amino"; -import * as _454 from "./interchaintxs/v1/tx.amino"; -import * as _455 from "./cron/tx.registry"; -import * as _456 from "./dex/tx.registry"; -import * as _457 from "./feeburner/tx.registry"; -import * as _458 from "./feerefunder/tx.registry"; -import * as _459 from "./interchainqueries/tx.registry"; -import * as _460 from "./interchaintxs/v1/tx.registry"; -import * as _461 from "./cron/query.rpc.Query"; -import * as _462 from "./dex/query.rpc.Query"; -import * as _463 from "./feeburner/query.rpc.Query"; -import * as _464 from "./feerefunder/query.rpc.Query"; -import * as _465 from "./interchainqueries/query.rpc.Query"; -import * as _466 from "./interchaintxs/v1/query.rpc.Query"; -import * as _467 from "./cron/tx.rpc.msg"; -import * as _468 from "./dex/tx.rpc.msg"; -import * as _469 from "./feeburner/tx.rpc.msg"; -import * as _470 from "./feerefunder/tx.rpc.msg"; -import * as _471 from "./interchainqueries/tx.rpc.msg"; -import * as _472 from "./interchaintxs/v1/tx.rpc.msg"; -import * as _592 from "./rpc.query"; -import * as _593 from "./rpc.tx"; +import * as _160 from "./contractmanager/v1/failure"; +import * as _161 from "./cron/genesis"; +import * as _162 from "./cron/params"; +import * as _163 from "./cron/query"; +import * as _164 from "./cron/schedule"; +import * as _165 from "./cron/tx"; +import * as _166 from "./dex/deposit_record"; +import * as _167 from "./dex/genesis"; +import * as _168 from "./dex/limit_order_expiration"; +import * as _169 from "./dex/limit_order_tranche_user"; +import * as _170 from "./dex/limit_order_tranche"; +import * as _171 from "./dex/pair_id"; +import * as _172 from "./dex/params"; +import * as _173 from "./dex/pool_metadata"; +import * as _174 from "./dex/pool_reserves"; +import * as _175 from "./dex/pool"; +import * as _176 from "./dex/query"; +import * as _177 from "./dex/tick_liquidity"; +import * as _178 from "./dex/trade_pair_id"; +import * as _179 from "./dex/tx"; +import * as _180 from "./feeburner/genesis"; +import * as _181 from "./feeburner/params"; +import * as _182 from "./feeburner/query"; +import * as _183 from "./feeburner/total_burned_neutrons_amount"; +import * as _184 from "./feeburner/tx"; +import * as _185 from "./feerefunder/fee"; +import * as _186 from "./feerefunder/genesis"; +import * as _187 from "./feerefunder/params"; +import * as _188 from "./feerefunder/query"; +import * as _189 from "./feerefunder/tx"; +import * as _190 from "./interchainqueries/genesis"; +import * as _191 from "./interchainqueries/params"; +import * as _192 from "./interchainqueries/query"; +import * as _193 from "./interchainqueries/tx"; +import * as _194 from "./interchaintxs/v1/genesis"; +import * as _195 from "./interchaintxs/v1/params"; +import * as _196 from "./interchaintxs/v1/query"; +import * as _197 from "./interchaintxs/v1/tx"; +import * as _456 from "./cron/tx.amino"; +import * as _457 from "./dex/tx.amino"; +import * as _458 from "./feeburner/tx.amino"; +import * as _459 from "./feerefunder/tx.amino"; +import * as _460 from "./interchainqueries/tx.amino"; +import * as _461 from "./interchaintxs/v1/tx.amino"; +import * as _462 from "./cron/tx.registry"; +import * as _463 from "./dex/tx.registry"; +import * as _464 from "./feeburner/tx.registry"; +import * as _465 from "./feerefunder/tx.registry"; +import * as _466 from "./interchainqueries/tx.registry"; +import * as _467 from "./interchaintxs/v1/tx.registry"; +import * as _468 from "./cron/query.rpc.Query"; +import * as _469 from "./dex/query.rpc.Query"; +import * as _470 from "./feeburner/query.rpc.Query"; +import * as _471 from "./feerefunder/query.rpc.Query"; +import * as _472 from "./interchainqueries/query.rpc.Query"; +import * as _473 from "./interchaintxs/v1/query.rpc.Query"; +import * as _474 from "./cron/tx.rpc.msg"; +import * as _475 from "./dex/tx.rpc.msg"; +import * as _476 from "./feeburner/tx.rpc.msg"; +import * as _477 from "./feerefunder/tx.rpc.msg"; +import * as _478 from "./interchainqueries/tx.rpc.msg"; +import * as _479 from "./interchaintxs/v1/tx.rpc.msg"; +import * as _599 from "./rpc.query"; +import * as _600 from "./rpc.tx"; export namespace neutron { export namespace contractmanager { export const v1 = { - ..._157 + ..._160 }; } export const cron = { - ..._158, - ..._159, - ..._160, ..._161, ..._162, - ..._449, - ..._455, - ..._461, - ..._467 - }; - export const dex = { ..._163, ..._164, ..._165, + ..._456, + ..._462, + ..._468, + ..._474 + }; + export const dex = { ..._166, ..._167, ..._168, @@ -94,57 +91,60 @@ export namespace neutron { ..._174, ..._175, ..._176, - ..._450, - ..._456, - ..._462, - ..._468 - }; - export const feeburner = { ..._177, ..._178, ..._179, - ..._180, - ..._181, - ..._451, ..._457, ..._463, - ..._469 + ..._469, + ..._475 }; - export const feerefunder = { + export const feeburner = { + ..._180, + ..._181, ..._182, ..._183, ..._184, - ..._185, - ..._186, - ..._452, ..._458, ..._464, - ..._470 + ..._470, + ..._476 }; - export const interchainqueries = { + export const feerefunder = { + ..._185, + ..._186, ..._187, ..._188, ..._189, - ..._190, - ..._453, ..._459, ..._465, - ..._471 + ..._471, + ..._477 + }; + export const interchainqueries = { + ..._190, + ..._191, + ..._192, + ..._193, + ..._460, + ..._466, + ..._472, + ..._478 }; export namespace interchaintxs { export const v1 = { - ..._191, - ..._192, - ..._193, ..._194, - ..._454, - ..._460, - ..._466, - ..._472 + ..._195, + ..._196, + ..._197, + ..._461, + ..._467, + ..._473, + ..._479 }; } export const ClientFactory = { - ..._592, - ..._593 + ..._599, + ..._600 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/neutron/rpc.query.ts b/packages/types/protobuf/codegen/neutron/rpc.query.ts index 6a2fc37fed..e61c840202 100644 --- a/packages/types/protobuf/codegen/neutron/rpc.query.ts +++ b/packages/types/protobuf/codegen/neutron/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/neutron/rpc.tx.ts b/packages/types/protobuf/codegen/neutron/rpc.tx.ts index 9c391ea036..ef8db8cf49 100644 --- a/packages/types/protobuf/codegen/neutron/rpc.tx.ts +++ b/packages/types/protobuf/codegen/neutron/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/noble/bundle.ts b/packages/types/protobuf/codegen/noble/bundle.ts index 01c4dbcd40..aabc4ea371 100644 --- a/packages/types/protobuf/codegen/noble/bundle.ts +++ b/packages/types/protobuf/codegen/noble/bundle.ts @@ -1,16 +1,16 @@ -import * as _332 from "../tariff/genesis"; -import * as _333 from "../tariff/params"; -import * as _334 from "../tariff/query"; -import * as _575 from "../tariff/query.rpc.Query"; -import * as _602 from "./rpc.query"; +import * as _335 from "../tariff/genesis"; +import * as _336 from "../tariff/params"; +import * as _337 from "../tariff/query"; +import * as _582 from "../tariff/query.rpc.Query"; +import * as _609 from "./rpc.query"; export namespace noble { export const tariff = { - ..._332, - ..._333, - ..._334, - ..._575 + ..._335, + ..._336, + ..._337, + ..._582 }; export const ClientFactory = { - ..._602 + ..._609 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/noble/rpc.query.ts b/packages/types/protobuf/codegen/noble/rpc.query.ts index 00d067ffbd..5009a46c20 100644 --- a/packages/types/protobuf/codegen/noble/rpc.query.ts +++ b/packages/types/protobuf/codegen/noble/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/osmosis/bundle.ts b/packages/types/protobuf/codegen/osmosis/bundle.ts index 5832d0359f..96a5b9f021 100644 --- a/packages/types/protobuf/codegen/osmosis/bundle.ts +++ b/packages/types/protobuf/codegen/osmosis/bundle.ts @@ -1,156 +1,153 @@ -import * as _195 from "./accum/v1beta1/accum"; -import * as _196 from "./concentratedliquidity/params"; -import * as _197 from "./cosmwasmpool/v1beta1/genesis"; -import * as _198 from "./cosmwasmpool/v1beta1/gov"; -import * as _199 from "./cosmwasmpool/v1beta1/model/instantiate_msg"; -import * as _200 from "./cosmwasmpool/v1beta1/model/module_query_msg"; -import * as _201 from "./cosmwasmpool/v1beta1/model/module_sudo_msg"; -import * as _202 from "./cosmwasmpool/v1beta1/model/pool_query_msg"; -import * as _203 from "./cosmwasmpool/v1beta1/model/pool"; -import * as _204 from "./cosmwasmpool/v1beta1/model/transmuter_msgs"; -import * as _205 from "./cosmwasmpool/v1beta1/model/tx"; -import * as _206 from "./cosmwasmpool/v1beta1/params"; -import * as _207 from "./cosmwasmpool/v1beta1/query"; -import * as _208 from "./cosmwasmpool/v1beta1/tx"; -import * as _209 from "./gamm/pool-models/balancer/balancerPool"; -import * as _210 from "./gamm/v1beta1/genesis"; -import * as _211 from "./gamm/v1beta1/gov"; -import * as _212 from "./gamm/v1beta1/query"; -import * as _213 from "./gamm/v1beta1/shared"; -import * as _214 from "./gamm/v1beta1/tx"; -import * as _215 from "./gamm/pool-models/balancer/tx/tx"; -import * as _216 from "./gamm/pool-models/stableswap/stableswap_pool"; -import * as _217 from "./gamm/pool-models/stableswap/tx"; -import * as _218 from "./incentives/gauge"; -import * as _219 from "./incentives/genesis"; -import * as _220 from "./incentives/gov"; -import * as _221 from "./incentives/group"; -import * as _222 from "./incentives/params"; -import * as _223 from "./incentives/query"; -import * as _224 from "./incentives/tx"; -import * as _225 from "./lockup/genesis"; -import * as _226 from "./lockup/lock"; -import * as _227 from "./lockup/params"; -import * as _228 from "./lockup/query"; -import * as _229 from "./lockup/tx"; -import * as _230 from "./pool-incentives/v1beta1/genesis"; -import * as _231 from "./pool-incentives/v1beta1/gov"; -import * as _232 from "./pool-incentives/v1beta1/incentives"; -import * as _233 from "./pool-incentives/v1beta1/query"; -import * as _234 from "./pool-incentives/v1beta1/shared"; -import * as _235 from "./poolmanager/v1beta1/genesis"; -import * as _236 from "./poolmanager/v1beta1/gov"; -import * as _237 from "./poolmanager/v1beta1/module_route"; -import * as _238 from "./poolmanager/v1beta1/query"; -import * as _239 from "./poolmanager/v1beta1/swap_route"; -import * as _240 from "./poolmanager/v1beta1/tx"; -import * as _241 from "./protorev/v1beta1/genesis"; -import * as _242 from "./protorev/v1beta1/gov"; -import * as _243 from "./protorev/v1beta1/params"; -import * as _244 from "./protorev/v1beta1/protorev"; -import * as _245 from "./protorev/v1beta1/query"; -import * as _246 from "./protorev/v1beta1/tx"; -import * as _247 from "./superfluid/genesis"; -import * as _248 from "./superfluid/params"; -import * as _249 from "./superfluid/query"; -import * as _250 from "./superfluid/superfluid"; -import * as _251 from "./superfluid/tx"; -import * as _252 from "./tokenfactory/v1beta1/authorityMetadata"; -import * as _253 from "./tokenfactory/v1beta1/genesis"; -import * as _254 from "./tokenfactory/v1beta1/params"; -import * as _255 from "./tokenfactory/v1beta1/query"; -import * as _256 from "./tokenfactory/v1beta1/tx"; -import * as _257 from "./txfees/v1beta1/feetoken"; -import * as _258 from "./txfees/v1beta1/genesis"; -import * as _259 from "./txfees/v1beta1/gov"; -import * as _260 from "./txfees/v1beta1/params"; -import * as _261 from "./txfees/v1beta1/query"; -import * as _262 from "./txfees/v1beta1/tx"; -import * as _263 from "./valset-pref/v1beta1/query"; -import * as _264 from "./valset-pref/v1beta1/state"; -import * as _265 from "./valset-pref/v1beta1/tx"; -import * as _473 from "./concentratedliquidity/poolmodel/concentrated/v1beta1/tx.amino"; -import * as _474 from "./concentratedliquidity/v1beta1/tx.amino"; -import * as _475 from "./gamm/pool-models/balancer/tx/tx.amino"; -import * as _476 from "./gamm/pool-models/stableswap/tx.amino"; -import * as _477 from "./gamm/v1beta1/tx.amino"; -import * as _478 from "./incentives/tx.amino"; -import * as _479 from "./lockup/tx.amino"; -import * as _480 from "./poolmanager/v1beta1/tx.amino"; -import * as _481 from "./protorev/v1beta1/tx.amino"; -import * as _482 from "./superfluid/tx.amino"; -import * as _483 from "./tokenfactory/v1beta1/tx.amino"; -import * as _484 from "./txfees/v1beta1/tx.amino"; -import * as _485 from "./valset-pref/v1beta1/tx.amino"; -import * as _486 from "./concentratedliquidity/poolmodel/concentrated/v1beta1/tx.registry"; -import * as _487 from "./concentratedliquidity/v1beta1/tx.registry"; -import * as _488 from "./gamm/pool-models/balancer/tx/tx.registry"; -import * as _489 from "./gamm/pool-models/stableswap/tx.registry"; -import * as _490 from "./gamm/v1beta1/tx.registry"; -import * as _491 from "./incentives/tx.registry"; -import * as _492 from "./lockup/tx.registry"; -import * as _493 from "./poolmanager/v1beta1/tx.registry"; -import * as _494 from "./protorev/v1beta1/tx.registry"; -import * as _495 from "./superfluid/tx.registry"; -import * as _496 from "./tokenfactory/v1beta1/tx.registry"; -import * as _497 from "./txfees/v1beta1/tx.registry"; -import * as _498 from "./valset-pref/v1beta1/tx.registry"; -import * as _499 from "./concentratedliquidity/v1beta1/query.rpc.Query"; -import * as _500 from "./cosmwasmpool/v1beta1/query.rpc.Query"; -import * as _501 from "./gamm/v1beta1/query.rpc.Query"; -import * as _502 from "./incentives/query.rpc.Query"; -import * as _503 from "./lockup/query.rpc.Query"; -import * as _504 from "./pool-incentives/v1beta1/query.rpc.Query"; -import * as _505 from "./poolmanager/v1beta1/query.rpc.Query"; -import * as _506 from "./protorev/v1beta1/query.rpc.Query"; -import * as _507 from "./superfluid/query.rpc.Query"; -import * as _508 from "./tokenfactory/v1beta1/query.rpc.Query"; -import * as _509 from "./txfees/v1beta1/query.rpc.Query"; -import * as _510 from "./valset-pref/v1beta1/query.rpc.Query"; -import * as _511 from "./concentratedliquidity/poolmodel/concentrated/v1beta1/tx.rpc.msg"; -import * as _512 from "./concentratedliquidity/v1beta1/tx.rpc.msg"; -import * as _513 from "./gamm/pool-models/balancer/tx/tx.rpc.msg"; -import * as _514 from "./gamm/pool-models/stableswap/tx.rpc.msg"; -import * as _515 from "./gamm/v1beta1/tx.rpc.msg"; -import * as _516 from "./incentives/tx.rpc.msg"; -import * as _517 from "./lockup/tx.rpc.msg"; -import * as _518 from "./poolmanager/v1beta1/tx.rpc.msg"; -import * as _519 from "./protorev/v1beta1/tx.rpc.msg"; -import * as _520 from "./superfluid/tx.rpc.msg"; -import * as _521 from "./tokenfactory/v1beta1/tx.rpc.msg"; -import * as _522 from "./txfees/v1beta1/tx.rpc.msg"; -import * as _523 from "./valset-pref/v1beta1/tx.rpc.msg"; -import * as _594 from "./rpc.query"; -import * as _595 from "./rpc.tx"; +import * as _198 from "./accum/v1beta1/accum"; +import * as _199 from "./concentratedliquidity/params"; +import * as _200 from "./cosmwasmpool/v1beta1/genesis"; +import * as _201 from "./cosmwasmpool/v1beta1/gov"; +import * as _202 from "./cosmwasmpool/v1beta1/model/instantiate_msg"; +import * as _203 from "./cosmwasmpool/v1beta1/model/module_query_msg"; +import * as _204 from "./cosmwasmpool/v1beta1/model/module_sudo_msg"; +import * as _205 from "./cosmwasmpool/v1beta1/model/pool_query_msg"; +import * as _206 from "./cosmwasmpool/v1beta1/model/pool"; +import * as _207 from "./cosmwasmpool/v1beta1/model/transmuter_msgs"; +import * as _208 from "./cosmwasmpool/v1beta1/model/tx"; +import * as _209 from "./cosmwasmpool/v1beta1/params"; +import * as _210 from "./cosmwasmpool/v1beta1/query"; +import * as _211 from "./cosmwasmpool/v1beta1/tx"; +import * as _212 from "./gamm/pool-models/balancer/balancerPool"; +import * as _213 from "./gamm/v1beta1/genesis"; +import * as _214 from "./gamm/v1beta1/gov"; +import * as _215 from "./gamm/v1beta1/query"; +import * as _216 from "./gamm/v1beta1/shared"; +import * as _217 from "./gamm/v1beta1/tx"; +import * as _218 from "./gamm/pool-models/balancer/tx/tx"; +import * as _219 from "./gamm/pool-models/stableswap/stableswap_pool"; +import * as _220 from "./gamm/pool-models/stableswap/tx"; +import * as _221 from "./incentives/gauge"; +import * as _222 from "./incentives/genesis"; +import * as _223 from "./incentives/gov"; +import * as _224 from "./incentives/group"; +import * as _225 from "./incentives/params"; +import * as _226 from "./incentives/query"; +import * as _227 from "./incentives/tx"; +import * as _228 from "./lockup/genesis"; +import * as _229 from "./lockup/lock"; +import * as _230 from "./lockup/params"; +import * as _231 from "./lockup/query"; +import * as _232 from "./lockup/tx"; +import * as _233 from "./pool-incentives/v1beta1/genesis"; +import * as _234 from "./pool-incentives/v1beta1/gov"; +import * as _235 from "./pool-incentives/v1beta1/incentives"; +import * as _236 from "./pool-incentives/v1beta1/query"; +import * as _237 from "./pool-incentives/v1beta1/shared"; +import * as _238 from "./poolmanager/v1beta1/genesis"; +import * as _239 from "./poolmanager/v1beta1/gov"; +import * as _240 from "./poolmanager/v1beta1/module_route"; +import * as _241 from "./poolmanager/v1beta1/query"; +import * as _242 from "./poolmanager/v1beta1/swap_route"; +import * as _243 from "./poolmanager/v1beta1/tx"; +import * as _244 from "./protorev/v1beta1/genesis"; +import * as _245 from "./protorev/v1beta1/gov"; +import * as _246 from "./protorev/v1beta1/params"; +import * as _247 from "./protorev/v1beta1/protorev"; +import * as _248 from "./protorev/v1beta1/query"; +import * as _249 from "./protorev/v1beta1/tx"; +import * as _250 from "./superfluid/genesis"; +import * as _251 from "./superfluid/params"; +import * as _252 from "./superfluid/query"; +import * as _253 from "./superfluid/superfluid"; +import * as _254 from "./superfluid/tx"; +import * as _255 from "./tokenfactory/v1beta1/authorityMetadata"; +import * as _256 from "./tokenfactory/v1beta1/genesis"; +import * as _257 from "./tokenfactory/v1beta1/params"; +import * as _258 from "./tokenfactory/v1beta1/query"; +import * as _259 from "./tokenfactory/v1beta1/tx"; +import * as _260 from "./txfees/v1beta1/feetoken"; +import * as _261 from "./txfees/v1beta1/genesis"; +import * as _262 from "./txfees/v1beta1/gov"; +import * as _263 from "./txfees/v1beta1/params"; +import * as _264 from "./txfees/v1beta1/query"; +import * as _265 from "./txfees/v1beta1/tx"; +import * as _266 from "./valset-pref/v1beta1/query"; +import * as _267 from "./valset-pref/v1beta1/state"; +import * as _268 from "./valset-pref/v1beta1/tx"; +import * as _480 from "./concentratedliquidity/poolmodel/concentrated/v1beta1/tx.amino"; +import * as _481 from "./concentratedliquidity/v1beta1/tx.amino"; +import * as _482 from "./gamm/pool-models/balancer/tx/tx.amino"; +import * as _483 from "./gamm/pool-models/stableswap/tx.amino"; +import * as _484 from "./gamm/v1beta1/tx.amino"; +import * as _485 from "./incentives/tx.amino"; +import * as _486 from "./lockup/tx.amino"; +import * as _487 from "./poolmanager/v1beta1/tx.amino"; +import * as _488 from "./protorev/v1beta1/tx.amino"; +import * as _489 from "./superfluid/tx.amino"; +import * as _490 from "./tokenfactory/v1beta1/tx.amino"; +import * as _491 from "./txfees/v1beta1/tx.amino"; +import * as _492 from "./valset-pref/v1beta1/tx.amino"; +import * as _493 from "./concentratedliquidity/poolmodel/concentrated/v1beta1/tx.registry"; +import * as _494 from "./concentratedliquidity/v1beta1/tx.registry"; +import * as _495 from "./gamm/pool-models/balancer/tx/tx.registry"; +import * as _496 from "./gamm/pool-models/stableswap/tx.registry"; +import * as _497 from "./gamm/v1beta1/tx.registry"; +import * as _498 from "./incentives/tx.registry"; +import * as _499 from "./lockup/tx.registry"; +import * as _500 from "./poolmanager/v1beta1/tx.registry"; +import * as _501 from "./protorev/v1beta1/tx.registry"; +import * as _502 from "./superfluid/tx.registry"; +import * as _503 from "./tokenfactory/v1beta1/tx.registry"; +import * as _504 from "./txfees/v1beta1/tx.registry"; +import * as _505 from "./valset-pref/v1beta1/tx.registry"; +import * as _506 from "./concentratedliquidity/v1beta1/query.rpc.Query"; +import * as _507 from "./cosmwasmpool/v1beta1/query.rpc.Query"; +import * as _508 from "./gamm/v1beta1/query.rpc.Query"; +import * as _509 from "./incentives/query.rpc.Query"; +import * as _510 from "./lockup/query.rpc.Query"; +import * as _511 from "./pool-incentives/v1beta1/query.rpc.Query"; +import * as _512 from "./poolmanager/v1beta1/query.rpc.Query"; +import * as _513 from "./protorev/v1beta1/query.rpc.Query"; +import * as _514 from "./superfluid/query.rpc.Query"; +import * as _515 from "./tokenfactory/v1beta1/query.rpc.Query"; +import * as _516 from "./txfees/v1beta1/query.rpc.Query"; +import * as _517 from "./valset-pref/v1beta1/query.rpc.Query"; +import * as _518 from "./concentratedliquidity/poolmodel/concentrated/v1beta1/tx.rpc.msg"; +import * as _519 from "./concentratedliquidity/v1beta1/tx.rpc.msg"; +import * as _520 from "./gamm/pool-models/balancer/tx/tx.rpc.msg"; +import * as _521 from "./gamm/pool-models/stableswap/tx.rpc.msg"; +import * as _522 from "./gamm/v1beta1/tx.rpc.msg"; +import * as _523 from "./incentives/tx.rpc.msg"; +import * as _524 from "./lockup/tx.rpc.msg"; +import * as _525 from "./poolmanager/v1beta1/tx.rpc.msg"; +import * as _526 from "./protorev/v1beta1/tx.rpc.msg"; +import * as _527 from "./superfluid/tx.rpc.msg"; +import * as _528 from "./tokenfactory/v1beta1/tx.rpc.msg"; +import * as _529 from "./txfees/v1beta1/tx.rpc.msg"; +import * as _530 from "./valset-pref/v1beta1/tx.rpc.msg"; +import * as _601 from "./rpc.query"; +import * as _602 from "./rpc.tx"; export namespace osmosis { export namespace accum { export const v1beta1 = { - ..._195 + ..._198 }; } export const concentratedliquidity = { - ..._196, + ..._199, poolmodel: { concentrated: { v1beta1: { - ..._473, - ..._486, - ..._511 + ..._480, + ..._493, + ..._518 } } }, v1beta1: { - ..._474, - ..._487, - ..._499, - ..._512 + ..._481, + ..._494, + ..._506, + ..._519 } }; export namespace cosmwasmpool { export const v1beta1 = { - ..._197, - ..._198, - ..._199, ..._200, ..._201, ..._202, @@ -160,155 +157,158 @@ export namespace osmosis { ..._206, ..._207, ..._208, - ..._500 + ..._209, + ..._210, + ..._211, + ..._507 }; } export namespace gamm { export const v1beta1 = { - ..._209, - ..._210, - ..._211, ..._212, ..._213, ..._214, - ..._477, - ..._490, - ..._501, - ..._515 + ..._215, + ..._216, + ..._217, + ..._484, + ..._497, + ..._508, + ..._522 }; export namespace poolmodels { export namespace balancer { export const v1beta1 = { - ..._215, - ..._475, - ..._488, - ..._513 + ..._218, + ..._482, + ..._495, + ..._520 }; } export namespace stableswap { export const v1beta1 = { - ..._216, - ..._217, - ..._476, - ..._489, - ..._514 + ..._219, + ..._220, + ..._483, + ..._496, + ..._521 }; } } } export const incentives = { - ..._218, - ..._219, - ..._220, ..._221, ..._222, ..._223, ..._224, - ..._478, - ..._491, - ..._502, - ..._516 - }; - export const lockup = { ..._225, ..._226, ..._227, + ..._485, + ..._498, + ..._509, + ..._523 + }; + export const lockup = { ..._228, ..._229, - ..._479, - ..._492, - ..._503, - ..._517 + ..._230, + ..._231, + ..._232, + ..._486, + ..._499, + ..._510, + ..._524 }; export namespace poolincentives { export const v1beta1 = { - ..._230, - ..._231, - ..._232, ..._233, ..._234, - ..._504 + ..._235, + ..._236, + ..._237, + ..._511 }; } export namespace poolmanager { export const v1beta1 = { - ..._235, - ..._236, - ..._237, ..._238, ..._239, ..._240, - ..._480, - ..._493, - ..._505, - ..._518 + ..._241, + ..._242, + ..._243, + ..._487, + ..._500, + ..._512, + ..._525 }; } export namespace protorev { export const v1beta1 = { - ..._241, - ..._242, - ..._243, ..._244, ..._245, ..._246, - ..._481, - ..._494, - ..._506, - ..._519 + ..._247, + ..._248, + ..._249, + ..._488, + ..._501, + ..._513, + ..._526 }; } export const superfluid = { - ..._247, - ..._248, - ..._249, ..._250, ..._251, - ..._482, - ..._495, - ..._507, - ..._520 + ..._252, + ..._253, + ..._254, + ..._489, + ..._502, + ..._514, + ..._527 }; export namespace tokenfactory { export const v1beta1 = { - ..._252, - ..._253, - ..._254, ..._255, ..._256, - ..._483, - ..._496, - ..._508, - ..._521 + ..._257, + ..._258, + ..._259, + ..._490, + ..._503, + ..._515, + ..._528 }; } export namespace txfees { export const v1beta1 = { - ..._257, - ..._258, - ..._259, ..._260, ..._261, ..._262, - ..._484, - ..._497, - ..._509, - ..._522 + ..._263, + ..._264, + ..._265, + ..._491, + ..._504, + ..._516, + ..._529 }; } export namespace valsetpref { export const v1beta1 = { - ..._263, - ..._264, - ..._265, - ..._485, - ..._498, - ..._510, - ..._523 + ..._266, + ..._267, + ..._268, + ..._492, + ..._505, + ..._517, + ..._530 }; } export const ClientFactory = { - ..._594, - ..._595 + ..._601, + ..._602 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/osmosis/rpc.query.ts b/packages/types/protobuf/codegen/osmosis/rpc.query.ts index 4862426bfb..8e4e991368 100644 --- a/packages/types/protobuf/codegen/osmosis/rpc.query.ts +++ b/packages/types/protobuf/codegen/osmosis/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/osmosis/rpc.tx.ts b/packages/types/protobuf/codegen/osmosis/rpc.tx.ts index 572d5ff059..d1d9d5d01c 100644 --- a/packages/types/protobuf/codegen/osmosis/rpc.tx.ts +++ b/packages/types/protobuf/codegen/osmosis/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/pstake/bundle.ts b/packages/types/protobuf/codegen/pstake/bundle.ts index 67018b2b17..a4b5e0f04d 100644 --- a/packages/types/protobuf/codegen/pstake/bundle.ts +++ b/packages/types/protobuf/codegen/pstake/bundle.ts @@ -1,98 +1,98 @@ -import * as _266 from "./liquidstake/v1beta1/genesis"; -import * as _267 from "./liquidstake/v1beta1/liquidstake"; -import * as _268 from "./liquidstake/v1beta1/query"; -import * as _269 from "./liquidstake/v1beta1/tx"; -import * as _270 from "./liquidstakeibc/v1beta1/genesis"; -import * as _271 from "./liquidstakeibc/v1beta1/liquidstakeibc"; -import * as _272 from "./liquidstakeibc/v1beta1/msgs"; -import * as _273 from "./liquidstakeibc/v1beta1/params"; -import * as _274 from "./liquidstakeibc/v1beta1/query"; -import * as _275 from "./lscosmos/v1beta1/genesis"; -import * as _276 from "./lscosmos/v1beta1/governance_proposal"; -import * as _277 from "./lscosmos/v1beta1/lscosmos"; -import * as _278 from "./lscosmos/v1beta1/msgs"; -import * as _279 from "./lscosmos/v1beta1/params"; -import * as _280 from "./lscosmos/v1beta1/query"; -import * as _281 from "./ratesync/v1beta1/contract"; -import * as _282 from "./ratesync/v1beta1/genesis"; -import * as _283 from "./ratesync/v1beta1/params"; -import * as _284 from "./ratesync/v1beta1/query"; -import * as _285 from "./ratesync/v1beta1/ratesync"; -import * as _286 from "./ratesync/v1beta1/tx"; -import * as _524 from "./liquidstake/v1beta1/tx.amino"; -import * as _525 from "./liquidstakeibc/v1beta1/msgs.amino"; -import * as _526 from "./lscosmos/v1beta1/msgs.amino"; -import * as _527 from "./ratesync/v1beta1/tx.amino"; -import * as _528 from "./liquidstake/v1beta1/tx.registry"; -import * as _529 from "./liquidstakeibc/v1beta1/msgs.registry"; -import * as _530 from "./lscosmos/v1beta1/msgs.registry"; -import * as _531 from "./ratesync/v1beta1/tx.registry"; -import * as _532 from "./liquidstake/v1beta1/query.rpc.Query"; -import * as _533 from "./liquidstakeibc/v1beta1/query.rpc.Query"; -import * as _534 from "./lscosmos/v1beta1/query.rpc.Query"; -import * as _535 from "./ratesync/v1beta1/query.rpc.Query"; -import * as _536 from "./liquidstake/v1beta1/tx.rpc.msg"; -import * as _537 from "./liquidstakeibc/v1beta1/msgs.rpc.msg"; -import * as _538 from "./lscosmos/v1beta1/msgs.rpc.msg"; -import * as _539 from "./ratesync/v1beta1/tx.rpc.msg"; -import * as _596 from "./rpc.query"; -import * as _597 from "./rpc.tx"; +import * as _269 from "./liquidstake/v1beta1/genesis"; +import * as _270 from "./liquidstake/v1beta1/liquidstake"; +import * as _271 from "./liquidstake/v1beta1/query"; +import * as _272 from "./liquidstake/v1beta1/tx"; +import * as _273 from "./liquidstakeibc/v1beta1/genesis"; +import * as _274 from "./liquidstakeibc/v1beta1/liquidstakeibc"; +import * as _275 from "./liquidstakeibc/v1beta1/msgs"; +import * as _276 from "./liquidstakeibc/v1beta1/params"; +import * as _277 from "./liquidstakeibc/v1beta1/query"; +import * as _278 from "./lscosmos/v1beta1/genesis"; +import * as _279 from "./lscosmos/v1beta1/governance_proposal"; +import * as _280 from "./lscosmos/v1beta1/lscosmos"; +import * as _281 from "./lscosmos/v1beta1/msgs"; +import * as _282 from "./lscosmos/v1beta1/params"; +import * as _283 from "./lscosmos/v1beta1/query"; +import * as _284 from "./ratesync/v1beta1/contract"; +import * as _285 from "./ratesync/v1beta1/genesis"; +import * as _286 from "./ratesync/v1beta1/params"; +import * as _287 from "./ratesync/v1beta1/query"; +import * as _288 from "./ratesync/v1beta1/ratesync"; +import * as _289 from "./ratesync/v1beta1/tx"; +import * as _531 from "./liquidstake/v1beta1/tx.amino"; +import * as _532 from "./liquidstakeibc/v1beta1/msgs.amino"; +import * as _533 from "./lscosmos/v1beta1/msgs.amino"; +import * as _534 from "./ratesync/v1beta1/tx.amino"; +import * as _535 from "./liquidstake/v1beta1/tx.registry"; +import * as _536 from "./liquidstakeibc/v1beta1/msgs.registry"; +import * as _537 from "./lscosmos/v1beta1/msgs.registry"; +import * as _538 from "./ratesync/v1beta1/tx.registry"; +import * as _539 from "./liquidstake/v1beta1/query.rpc.Query"; +import * as _540 from "./liquidstakeibc/v1beta1/query.rpc.Query"; +import * as _541 from "./lscosmos/v1beta1/query.rpc.Query"; +import * as _542 from "./ratesync/v1beta1/query.rpc.Query"; +import * as _543 from "./liquidstake/v1beta1/tx.rpc.msg"; +import * as _544 from "./liquidstakeibc/v1beta1/msgs.rpc.msg"; +import * as _545 from "./lscosmos/v1beta1/msgs.rpc.msg"; +import * as _546 from "./ratesync/v1beta1/tx.rpc.msg"; +import * as _603 from "./rpc.query"; +import * as _604 from "./rpc.tx"; export namespace pstake { export namespace liquidstake { export const v1beta1 = { - ..._266, - ..._267, - ..._268, ..._269, - ..._524, - ..._528, - ..._532, - ..._536 + ..._270, + ..._271, + ..._272, + ..._531, + ..._535, + ..._539, + ..._543 }; } export namespace liquidstakeibc { export const v1beta1 = { - ..._270, - ..._271, - ..._272, ..._273, ..._274, - ..._525, - ..._529, - ..._533, - ..._537 + ..._275, + ..._276, + ..._277, + ..._532, + ..._536, + ..._540, + ..._544 }; } export namespace lscosmos { export const v1beta1 = { - ..._275, - ..._276, - ..._277, ..._278, ..._279, ..._280, - ..._526, - ..._530, - ..._534, - ..._538 + ..._281, + ..._282, + ..._283, + ..._533, + ..._537, + ..._541, + ..._545 }; } export namespace ratesync { export const v1beta1 = { - ..._281, - ..._282, - ..._283, ..._284, ..._285, ..._286, - ..._527, - ..._531, - ..._535, - ..._539 + ..._287, + ..._288, + ..._289, + ..._534, + ..._538, + ..._542, + ..._546 }; } export const ClientFactory = { - ..._596, - ..._597 + ..._603, + ..._604 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/pstake/rpc.query.ts b/packages/types/protobuf/codegen/pstake/rpc.query.ts index 059eb0f348..fe603a1f20 100644 --- a/packages/types/protobuf/codegen/pstake/rpc.query.ts +++ b/packages/types/protobuf/codegen/pstake/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/pstake/rpc.tx.ts b/packages/types/protobuf/codegen/pstake/rpc.tx.ts index 73c4b893e0..d8338e6e0d 100644 --- a/packages/types/protobuf/codegen/pstake/rpc.tx.ts +++ b/packages/types/protobuf/codegen/pstake/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/publicawesome/bundle.ts b/packages/types/protobuf/codegen/publicawesome/bundle.ts index a15715f075..cbb194de3f 100644 --- a/packages/types/protobuf/codegen/publicawesome/bundle.ts +++ b/packages/types/protobuf/codegen/publicawesome/bundle.ts @@ -1,88 +1,88 @@ -import * as _287 from "./stargaze/alloc/v1beta1/genesis"; -import * as _288 from "./stargaze/alloc/v1beta1/params"; -import * as _289 from "./stargaze/alloc/v1beta1/query"; -import * as _290 from "./stargaze/alloc/v1beta1/tx"; -import * as _291 from "./stargaze/cron/v1/cron"; -import * as _292 from "./stargaze/cron/v1/genesis"; -import * as _293 from "./stargaze/cron/v1/proposal"; -import * as _294 from "./stargaze/cron/v1/query"; -import * as _295 from "./stargaze/cron/v1/tx"; -import * as _296 from "./stargaze/globalfee/v1/genesis"; -import * as _297 from "./stargaze/globalfee/v1/globalfee"; -import * as _298 from "./stargaze/globalfee/v1/proposal"; -import * as _299 from "./stargaze/globalfee/v1/query"; -import * as _300 from "./stargaze/globalfee/v1/tx"; -import * as _301 from "./stargaze/mint/v1beta1/genesis"; -import * as _302 from "./stargaze/mint/v1beta1/mint"; -import * as _303 from "./stargaze/mint/v1beta1/query"; -import * as _304 from "./stargaze/mint/v1beta1/tx"; -import * as _540 from "./stargaze/alloc/v1beta1/tx.amino"; -import * as _541 from "./stargaze/cron/v1/tx.amino"; -import * as _542 from "./stargaze/globalfee/v1/tx.amino"; -import * as _543 from "./stargaze/alloc/v1beta1/tx.registry"; -import * as _544 from "./stargaze/cron/v1/tx.registry"; -import * as _545 from "./stargaze/globalfee/v1/tx.registry"; -import * as _546 from "./stargaze/alloc/v1beta1/query.rpc.Query"; -import * as _547 from "./stargaze/cron/v1/query.rpc.Query"; -import * as _548 from "./stargaze/globalfee/v1/query.rpc.Query"; -import * as _549 from "./stargaze/mint/v1beta1/query.rpc.Query"; -import * as _550 from "./stargaze/alloc/v1beta1/tx.rpc.msg"; -import * as _551 from "./stargaze/cron/v1/tx.rpc.msg"; -import * as _552 from "./stargaze/globalfee/v1/tx.rpc.msg"; -import * as _598 from "./rpc.query"; -import * as _599 from "./rpc.tx"; +import * as _290 from "./stargaze/alloc/v1beta1/genesis"; +import * as _291 from "./stargaze/alloc/v1beta1/params"; +import * as _292 from "./stargaze/alloc/v1beta1/query"; +import * as _293 from "./stargaze/alloc/v1beta1/tx"; +import * as _294 from "./stargaze/cron/v1/cron"; +import * as _295 from "./stargaze/cron/v1/genesis"; +import * as _296 from "./stargaze/cron/v1/proposal"; +import * as _297 from "./stargaze/cron/v1/query"; +import * as _298 from "./stargaze/cron/v1/tx"; +import * as _299 from "./stargaze/globalfee/v1/genesis"; +import * as _300 from "./stargaze/globalfee/v1/globalfee"; +import * as _301 from "./stargaze/globalfee/v1/proposal"; +import * as _302 from "./stargaze/globalfee/v1/query"; +import * as _303 from "./stargaze/globalfee/v1/tx"; +import * as _304 from "./stargaze/mint/v1beta1/genesis"; +import * as _305 from "./stargaze/mint/v1beta1/mint"; +import * as _306 from "./stargaze/mint/v1beta1/query"; +import * as _307 from "./stargaze/mint/v1beta1/tx"; +import * as _547 from "./stargaze/alloc/v1beta1/tx.amino"; +import * as _548 from "./stargaze/cron/v1/tx.amino"; +import * as _549 from "./stargaze/globalfee/v1/tx.amino"; +import * as _550 from "./stargaze/alloc/v1beta1/tx.registry"; +import * as _551 from "./stargaze/cron/v1/tx.registry"; +import * as _552 from "./stargaze/globalfee/v1/tx.registry"; +import * as _553 from "./stargaze/alloc/v1beta1/query.rpc.Query"; +import * as _554 from "./stargaze/cron/v1/query.rpc.Query"; +import * as _555 from "./stargaze/globalfee/v1/query.rpc.Query"; +import * as _556 from "./stargaze/mint/v1beta1/query.rpc.Query"; +import * as _557 from "./stargaze/alloc/v1beta1/tx.rpc.msg"; +import * as _558 from "./stargaze/cron/v1/tx.rpc.msg"; +import * as _559 from "./stargaze/globalfee/v1/tx.rpc.msg"; +import * as _605 from "./rpc.query"; +import * as _606 from "./rpc.tx"; export namespace publicawesome { export namespace stargaze { export namespace alloc { export const v1beta1 = { - ..._287, - ..._288, - ..._289, ..._290, - ..._540, - ..._543, - ..._546, - ..._550 - }; - } - export namespace cron { - export const v1 = { ..._291, ..._292, ..._293, - ..._294, - ..._295, - ..._541, - ..._544, ..._547, - ..._551 + ..._550, + ..._553, + ..._557 }; } - export namespace globalfee { + export namespace cron { export const v1 = { + ..._294, + ..._295, ..._296, ..._297, ..._298, - ..._299, - ..._300, - ..._542, - ..._545, ..._548, - ..._552 + ..._551, + ..._554, + ..._558 }; } - export namespace mint { - export const v1beta1 = { + export namespace globalfee { + export const v1 = { + ..._299, + ..._300, ..._301, ..._302, ..._303, + ..._549, + ..._552, + ..._555, + ..._559 + }; + } + export namespace mint { + export const v1beta1 = { ..._304, - ..._549 + ..._305, + ..._306, + ..._307, + ..._556 }; } } export const ClientFactory = { - ..._598, - ..._599 + ..._605, + ..._606 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/publicawesome/rpc.query.ts b/packages/types/protobuf/codegen/publicawesome/rpc.query.ts index 64e76ccf8a..0ac181dd63 100644 --- a/packages/types/protobuf/codegen/publicawesome/rpc.query.ts +++ b/packages/types/protobuf/codegen/publicawesome/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/publicawesome/rpc.tx.ts b/packages/types/protobuf/codegen/publicawesome/rpc.tx.ts index 645ea22f4d..311ce80762 100644 --- a/packages/types/protobuf/codegen/publicawesome/rpc.tx.ts +++ b/packages/types/protobuf/codegen/publicawesome/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/regen/bundle.ts b/packages/types/protobuf/codegen/regen/bundle.ts index 1109130d01..050e05424f 100644 --- a/packages/types/protobuf/codegen/regen/bundle.ts +++ b/packages/types/protobuf/codegen/regen/bundle.ts @@ -1,134 +1,134 @@ -import * as _305 from "./data/v1/events"; -import * as _306 from "./data/v1/state"; -import * as _307 from "./data/v1/tx"; -import * as _308 from "./data/v1/types"; -import * as _309 from "./data/v2/events"; -import * as _310 from "./data/v2/state"; -import * as _311 from "./data/v2/tx"; -import * as _312 from "./data/v2/types"; -import * as _313 from "./ecocredit/basket/v1/events"; -import * as _314 from "./ecocredit/basket/v1/state"; -import * as _315 from "./ecocredit/basket/v1/tx"; -import * as _316 from "./ecocredit/basket/v1/types"; -import * as _317 from "./ecocredit/marketplace/v1/events"; -import * as _318 from "./ecocredit/marketplace/v1/state"; -import * as _319 from "./ecocredit/marketplace/v1/tx"; -import * as _320 from "./ecocredit/marketplace/v1/types"; -import * as _321 from "./ecocredit/orderbook/v1alpha1/memory"; -import * as _322 from "./ecocredit/v1/events"; -import * as _323 from "./ecocredit/v1/state"; -import * as _324 from "./ecocredit/v1/tx"; -import * as _325 from "./ecocredit/v1/types"; -import * as _326 from "./ecocredit/v1alpha1/events"; -import * as _327 from "./ecocredit/v1alpha1/genesis"; -import * as _328 from "./ecocredit/v1alpha1/tx"; -import * as _329 from "./ecocredit/v1alpha1/types"; -import * as _330 from "./intertx/v1/query"; -import * as _331 from "./intertx/v1/tx"; -import * as _553 from "./data/v1/tx.amino"; -import * as _554 from "./data/v2/tx.amino"; -import * as _555 from "./ecocredit/basket/v1/tx.amino"; -import * as _556 from "./ecocredit/marketplace/v1/tx.amino"; -import * as _557 from "./ecocredit/v1/tx.amino"; -import * as _558 from "./ecocredit/v1alpha1/tx.amino"; -import * as _559 from "./intertx/v1/tx.amino"; -import * as _560 from "./data/v1/tx.registry"; -import * as _561 from "./data/v2/tx.registry"; -import * as _562 from "./ecocredit/basket/v1/tx.registry"; -import * as _563 from "./ecocredit/marketplace/v1/tx.registry"; -import * as _564 from "./ecocredit/v1/tx.registry"; -import * as _565 from "./ecocredit/v1alpha1/tx.registry"; -import * as _566 from "./intertx/v1/tx.registry"; -import * as _567 from "./intertx/v1/query.rpc.Query"; -import * as _568 from "./data/v1/tx.rpc.msg"; -import * as _569 from "./data/v2/tx.rpc.msg"; -import * as _570 from "./ecocredit/basket/v1/tx.rpc.msg"; -import * as _571 from "./ecocredit/marketplace/v1/tx.rpc.msg"; -import * as _572 from "./ecocredit/v1/tx.rpc.msg"; -import * as _573 from "./ecocredit/v1alpha1/tx.rpc.msg"; -import * as _574 from "./intertx/v1/tx.rpc.msg"; -import * as _600 from "./rpc.query"; -import * as _601 from "./rpc.tx"; +import * as _308 from "./data/v1/events"; +import * as _309 from "./data/v1/state"; +import * as _310 from "./data/v1/tx"; +import * as _311 from "./data/v1/types"; +import * as _312 from "./data/v2/events"; +import * as _313 from "./data/v2/state"; +import * as _314 from "./data/v2/tx"; +import * as _315 from "./data/v2/types"; +import * as _316 from "./ecocredit/basket/v1/events"; +import * as _317 from "./ecocredit/basket/v1/state"; +import * as _318 from "./ecocredit/basket/v1/tx"; +import * as _319 from "./ecocredit/basket/v1/types"; +import * as _320 from "./ecocredit/marketplace/v1/events"; +import * as _321 from "./ecocredit/marketplace/v1/state"; +import * as _322 from "./ecocredit/marketplace/v1/tx"; +import * as _323 from "./ecocredit/marketplace/v1/types"; +import * as _324 from "./ecocredit/orderbook/v1alpha1/memory"; +import * as _325 from "./ecocredit/v1/events"; +import * as _326 from "./ecocredit/v1/state"; +import * as _327 from "./ecocredit/v1/tx"; +import * as _328 from "./ecocredit/v1/types"; +import * as _329 from "./ecocredit/v1alpha1/events"; +import * as _330 from "./ecocredit/v1alpha1/genesis"; +import * as _331 from "./ecocredit/v1alpha1/tx"; +import * as _332 from "./ecocredit/v1alpha1/types"; +import * as _333 from "./intertx/v1/query"; +import * as _334 from "./intertx/v1/tx"; +import * as _560 from "./data/v1/tx.amino"; +import * as _561 from "./data/v2/tx.amino"; +import * as _562 from "./ecocredit/basket/v1/tx.amino"; +import * as _563 from "./ecocredit/marketplace/v1/tx.amino"; +import * as _564 from "./ecocredit/v1/tx.amino"; +import * as _565 from "./ecocredit/v1alpha1/tx.amino"; +import * as _566 from "./intertx/v1/tx.amino"; +import * as _567 from "./data/v1/tx.registry"; +import * as _568 from "./data/v2/tx.registry"; +import * as _569 from "./ecocredit/basket/v1/tx.registry"; +import * as _570 from "./ecocredit/marketplace/v1/tx.registry"; +import * as _571 from "./ecocredit/v1/tx.registry"; +import * as _572 from "./ecocredit/v1alpha1/tx.registry"; +import * as _573 from "./intertx/v1/tx.registry"; +import * as _574 from "./intertx/v1/query.rpc.Query"; +import * as _575 from "./data/v1/tx.rpc.msg"; +import * as _576 from "./data/v2/tx.rpc.msg"; +import * as _577 from "./ecocredit/basket/v1/tx.rpc.msg"; +import * as _578 from "./ecocredit/marketplace/v1/tx.rpc.msg"; +import * as _579 from "./ecocredit/v1/tx.rpc.msg"; +import * as _580 from "./ecocredit/v1alpha1/tx.rpc.msg"; +import * as _581 from "./intertx/v1/tx.rpc.msg"; +import * as _607 from "./rpc.query"; +import * as _608 from "./rpc.tx"; export namespace regen { export namespace data { export const v1 = { - ..._305, - ..._306, - ..._307, ..._308, - ..._553, - ..._560, - ..._568 - }; - export const v2 = { ..._309, ..._310, ..._311, + ..._560, + ..._567, + ..._575 + }; + export const v2 = { ..._312, - ..._554, + ..._313, + ..._314, + ..._315, ..._561, - ..._569 + ..._568, + ..._576 }; } export namespace ecocredit { export namespace basket { export const v1 = { - ..._313, - ..._314, - ..._315, ..._316, - ..._555, + ..._317, + ..._318, + ..._319, ..._562, - ..._570 + ..._569, + ..._577 }; } export namespace marketplace { export const v1 = { - ..._317, - ..._318, - ..._319, ..._320, - ..._556, + ..._321, + ..._322, + ..._323, ..._563, - ..._571 + ..._570, + ..._578 }; } export namespace orderbook { export const v1alpha1 = { - ..._321 + ..._324 }; } export const v1 = { - ..._322, - ..._323, - ..._324, ..._325, - ..._557, - ..._564, - ..._572 - }; - export const v1alpha1 = { ..._326, ..._327, ..._328, + ..._564, + ..._571, + ..._579 + }; + export const v1alpha1 = { ..._329, - ..._558, + ..._330, + ..._331, + ..._332, ..._565, - ..._573 + ..._572, + ..._580 }; } export namespace intertx { export const v1 = { - ..._330, - ..._331, - ..._559, + ..._333, + ..._334, ..._566, - ..._567, - ..._574 + ..._573, + ..._574, + ..._581 }; } export const ClientFactory = { - ..._600, - ..._601 + ..._607, + ..._608 }; } \ No newline at end of file diff --git a/packages/types/protobuf/codegen/regen/rpc.query.ts b/packages/types/protobuf/codegen/regen/rpc.query.ts index ff22cb784c..e16cf9d443 100644 --- a/packages/types/protobuf/codegen/regen/rpc.query.ts +++ b/packages/types/protobuf/codegen/regen/rpc.query.ts @@ -9,6 +9,9 @@ export const createRPCQueryClient = async ({ const client = new QueryClient(tmClient); return { cosmos: { + adminmodule: { + adminmodule: (await import("../cosmos/adminmodule/adminmodule/query.rpc.Query")).createRpcQueryExtension(client) + }, auth: { v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) }, diff --git a/packages/types/protobuf/codegen/regen/rpc.tx.ts b/packages/types/protobuf/codegen/regen/rpc.tx.ts index f5da8f197b..22c5a0645d 100644 --- a/packages/types/protobuf/codegen/regen/rpc.tx.ts +++ b/packages/types/protobuf/codegen/regen/rpc.tx.ts @@ -5,6 +5,9 @@ export const createRPCMsgClient = async ({ rpc: Rpc; }) => ({ cosmos: { + adminmodule: { + adminmodule: new (await import("../cosmos/adminmodule/adminmodule/tx.rpc.msg")).MsgClientImpl(rpc) + }, auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) }, diff --git a/packages/types/protobuf/codegen/tendermint/bundle.ts b/packages/types/protobuf/codegen/tendermint/bundle.ts index f9b92e102e..999f8a3317 100644 --- a/packages/types/protobuf/codegen/tendermint/bundle.ts +++ b/packages/types/protobuf/codegen/tendermint/bundle.ts @@ -1,32 +1,32 @@ -import * as _335 from "./abci/types"; -import * as _336 from "./crypto/keys"; -import * as _337 from "./crypto/proof"; -import * as _338 from "./p2p/types"; -import * as _339 from "./types/block"; -import * as _340 from "./types/evidence"; -import * as _341 from "./types/params"; -import * as _342 from "./types/types"; -import * as _343 from "./types/validator"; -import * as _344 from "./version/types"; +import * as _338 from "./abci/types"; +import * as _339 from "./crypto/keys"; +import * as _340 from "./crypto/proof"; +import * as _341 from "./p2p/types"; +import * as _342 from "./types/block"; +import * as _343 from "./types/evidence"; +import * as _344 from "./types/params"; +import * as _345 from "./types/types"; +import * as _346 from "./types/validator"; +import * as _347 from "./version/types"; export namespace tendermint { export const abci = { - ..._335 + ..._338 }; export const crypto = { - ..._336, - ..._337 + ..._339, + ..._340 }; export const p2p = { - ..._338 + ..._341 }; export const types = { - ..._339, - ..._340, - ..._341, ..._342, - ..._343 + ..._343, + ..._344, + ..._345, + ..._346 }; export const version = { - ..._344 + ..._347 }; } \ No newline at end of file diff --git a/packages/types/protobuf/patches.diff b/packages/types/protobuf/patches.diff index ad95c76140..d899981952 100644 --- a/packages/types/protobuf/patches.diff +++ b/packages/types/protobuf/patches.diff @@ -56,7 +56,7 @@ index 9eb780900..70b01f2fc 100644 }, fromAminoMsg(object: MetadataAminoMsg): Metadata { diff --git b/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts a/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts -index 6c5cc594d..774bdbe5c 100644 +index d46b64a0f..fd09961b2 100644 --- b/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts +++ a/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts @@ -1,7 +1,8 @@ @@ -70,7 +70,7 @@ index 6c5cc594d..774bdbe5c 100644 import { Timestamp } from "../../../google/protobuf/timestamp"; import { MsgCreateAllianceProposal, MsgCreateAllianceProposalProtoMsg, MsgCreateAllianceProposalSDKType, MsgUpdateAllianceProposal, MsgUpdateAllianceProposalProtoMsg, MsgUpdateAllianceProposalSDKType, MsgDeleteAllianceProposal, MsgDeleteAllianceProposalProtoMsg, MsgDeleteAllianceProposalSDKType } from "../../../alliance/alliance/gov"; import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalSDKType, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg, CommunityPoolSpendProposalWithDepositSDKType } from "../../distribution/v1beta1/distribution"; -@@ -577,7 +578,7 @@ export const MsgSubmitProposal = { +@@ -578,7 +579,7 @@ export const MsgSubmitProposal = { }, fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { const message = createBaseMsgSubmitProposal(); @@ -79,7 +79,7 @@ index 6c5cc594d..774bdbe5c 100644 message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; if (object.proposer !== undefined && object.proposer !== null) { message.proposer = object.proposer; -@@ -598,10 +599,8 @@ export const MsgSubmitProposal = { +@@ -599,10 +600,8 @@ export const MsgSubmitProposal = { }, toAmino(message: MsgSubmitProposal, useInterfaces: boolean = false): MsgSubmitProposalAmino { const obj: any = {}; @@ -92,7 +92,7 @@ index 6c5cc594d..774bdbe5c 100644 } if (message.initialDeposit) { obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e, useInterfaces) : undefined); -@@ -612,7 +611,9 @@ export const MsgSubmitProposal = { +@@ -613,7 +612,9 @@ export const MsgSubmitProposal = { obj.metadata = message.metadata; obj.title = message.title; obj.summary = message.summary; @@ -103,7 +103,7 @@ index 6c5cc594d..774bdbe5c 100644 return obj; }, fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { -@@ -911,7 +912,7 @@ export const MsgVote = { +@@ -912,7 +913,7 @@ export const MsgVote = { message.voter = object.voter; } if (object.option !== undefined && object.option !== null) { @@ -113,7 +113,7 @@ index 6c5cc594d..774bdbe5c 100644 if (object.metadata !== undefined && object.metadata !== null) { message.metadata = object.metadata; diff --git b/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts a/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts -index 0a7aa8cc5..2451cbfd8 100644 +index 3a2a34091..cced669c2 100644 --- b/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts +++ a/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts @@ -1,7 +1,7 @@ @@ -125,7 +125,7 @@ index 0a7aa8cc5..2451cbfd8 100644 import { MsgCreateAllianceProposal, MsgCreateAllianceProposalProtoMsg, MsgCreateAllianceProposalSDKType, MsgUpdateAllianceProposal, MsgUpdateAllianceProposalProtoMsg, MsgUpdateAllianceProposalSDKType, MsgDeleteAllianceProposal, MsgDeleteAllianceProposalProtoMsg, MsgDeleteAllianceProposalSDKType } from "../../../alliance/alliance/gov"; import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalSDKType, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg, CommunityPoolSpendProposalWithDepositSDKType } from "../../distribution/v1beta1/distribution"; import { ParameterChangeProposal, ParameterChangeProposalProtoMsg, ParameterChangeProposalSDKType } from "../../params/v1beta1/params"; -@@ -471,7 +471,7 @@ export const MsgVote = { +@@ -472,7 +472,7 @@ export const MsgVote = { message.voter = object.voter; } if (object.option !== undefined && object.option !== null) { diff --git a/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/genesis.proto b/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/genesis.proto new file mode 100644 index 0000000000..c21373e5c1 --- /dev/null +++ b/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/genesis.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package cosmos.adminmodule.adminmodule; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/cosmos/admin-module/x/adminmodule/types"; + +// GenesisState defines the adminmodule module's genesis state. +message GenesisState { + repeated string admins = 1 [(gogoproto.nullable) = false]; +} diff --git a/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/query.proto b/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/query.proto new file mode 100644 index 0000000000..be2a55ac77 --- /dev/null +++ b/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/query.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; +package cosmos.adminmodule.adminmodule; + +import "google/api/annotations.proto"; +import "cosmos/gov/v1beta1/gov.proto"; +import "cosmos/gov/v1/gov.proto"; + +option go_package = "github.com/cosmos/admin-module/x/adminmodule/types"; + +// Query defines the gRPC querier service. +service Query { + + // Queries a list of admins items. + rpc Admins(QueryAdminsRequest) returns (QueryAdminsResponse) { + option (google.api.http).get = "/cosmos/adminmodule/adminmodule/admins"; + } + + // Queries a list of archived proposals. + rpc ArchivedProposals(QueryArchivedProposalsRequest) returns (QueryArchivedProposalsResponse) { + option (google.api.http).get = "/cosmos/adminmodule/adminmodule/archivedproposals"; + } + + // Queries a list of archived proposals. + rpc ArchivedProposalsLegacy(QueryArchivedProposalsLegacyRequest) returns (QueryArchivedProposalsLegacyResponse) { + option (google.api.http).get = "/cosmos/adminmodule/adminmodule/archivedproposalslegacy"; + } + +} + +message QueryAdminsRequest { +} + +message QueryAdminsResponse { + repeated string admins = 1; +} + +message QueryArchivedProposalsRequest { +} + +message QueryArchivedProposalsLegacyRequest { +} + +message QueryProposalsResponse { + repeated cosmos.gov.v1.Proposal proposals = 1; +} + +message QueryArchivedProposalsResponse { + repeated cosmos.gov.v1.Proposal proposals = 1; +} + +message QueryArchivedProposalsLegacyResponse { + repeated cosmos.gov.v1beta1.Proposal proposalsLegacy = 1; +} diff --git a/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/tx.proto b/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/tx.proto new file mode 100644 index 0000000000..a953c4106b --- /dev/null +++ b/packages/types/protobuf/proto/cosmos/adminmodule/adminmodule/tx.proto @@ -0,0 +1,68 @@ +syntax = "proto3"; +package cosmos.adminmodule.adminmodule; + +import "gogoproto/gogo.proto"; +import "google/protobuf/any.proto"; +import "cosmos_proto/cosmos.proto"; + + +option go_package = "github.com/cosmos/admin-module/x/adminmodule/types"; + +// Msg defines the Msg service. +service Msg { + rpc DeleteAdmin(MsgDeleteAdmin) returns (MsgDeleteAdminResponse); + rpc AddAdmin(MsgAddAdmin) returns (MsgAddAdminResponse); + rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse); + rpc SubmitProposalLegacy(MsgSubmitProposalLegacy) returns (MsgSubmitProposalLegacyResponse); +} + +message MsgDeleteAdmin { + string creator = 1; + string admin = 2; +} + +message MsgDeleteAdminResponse { +} + +message MsgAddAdmin { + string creator = 1; + string admin = 2; +} + +message MsgAddAdminResponse { +} + +// MsgSubmitProposalLegacy defines an sdk.Msg type that supports submitting arbitrary +// proposal Content. +message MsgSubmitProposalLegacy { + option (gogoproto.equal) = false; + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + option (gogoproto.goproto_getters) = false; + + google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"]; + string proposer = 2; +} + +// MsgSubmitProposalLegacyResponse defines the Msg/SubmitProposalLegacy response type. +message MsgSubmitProposalLegacyResponse { + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; +} + +// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary +// proposal Content. +message MsgSubmitProposal { + option (gogoproto.equal) = false; + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + option (gogoproto.goproto_getters) = false; + + // messages are the arbitrary messages to be executed if proposal passes. + repeated google.protobuf.Any messages = 1; + string proposer = 2; +} + +// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. +message MsgSubmitProposalResponse { + uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; +} diff --git a/packages/types/protobuf/scripts/codegen.js b/packages/types/protobuf/scripts/codegen.js index a6c49b96d7..c9ecc80d8d 100644 --- a/packages/types/protobuf/scripts/codegen.js +++ b/packages/types/protobuf/scripts/codegen.js @@ -115,6 +115,7 @@ telescope({ 'pstake.liquidstakeibc.v1beta1', 'pstake.lscosmos.v1beta1', 'pstake.ratesync.v1beta1', + 'cosmos.adminmodule.adminmodule', ], }, // excluded: {