diff --git a/packages/protobuf/codegen/cosmos/bundle.ts b/packages/protobuf/codegen/cosmos/bundle.ts index 618634da7..2c6b88b0e 100644 --- a/packages/protobuf/codegen/cosmos/bundle.ts +++ b/packages/protobuf/codegen/cosmos/bundle.ts @@ -54,51 +54,51 @@ import * as _54 from "./tx/v1beta1/tx"; import * as _55 from "./upgrade/v1beta1/query"; import * as _56 from "./upgrade/v1beta1/tx"; import * as _57 from "./upgrade/v1beta1/upgrade"; -import * as _186 from "./auth/v1beta1/tx.amino"; -import * as _187 from "./authz/v1beta1/tx.amino"; -import * as _188 from "./bank/v1beta1/tx.amino"; -import * as _189 from "./distribution/v1beta1/tx.amino"; -import * as _190 from "./gov/v1/tx.amino"; -import * as _191 from "./gov/v1beta1/tx.amino"; -import * as _192 from "./mint/v1beta1/tx.amino"; -import * as _193 from "./slashing/v1beta1/tx.amino"; -import * as _194 from "./staking/v1beta1/tx.amino"; -import * as _195 from "./upgrade/v1beta1/tx.amino"; -import * as _196 from "./auth/v1beta1/tx.registry"; -import * as _197 from "./authz/v1beta1/tx.registry"; -import * as _198 from "./bank/v1beta1/tx.registry"; -import * as _199 from "./distribution/v1beta1/tx.registry"; -import * as _200 from "./gov/v1/tx.registry"; -import * as _201 from "./gov/v1beta1/tx.registry"; -import * as _202 from "./mint/v1beta1/tx.registry"; -import * as _203 from "./slashing/v1beta1/tx.registry"; -import * as _204 from "./staking/v1beta1/tx.registry"; -import * as _205 from "./upgrade/v1beta1/tx.registry"; -import * as _206 from "./auth/v1beta1/query.rpc.Query"; -import * as _207 from "./authz/v1beta1/query.rpc.Query"; -import * as _208 from "./bank/v1beta1/query.rpc.Query"; -import * as _209 from "./base/tendermint/v1beta1/query.rpc.Service"; -import * as _210 from "./distribution/v1beta1/query.rpc.Query"; -import * as _211 from "./gov/v1/query.rpc.Query"; -import * as _212 from "./gov/v1beta1/query.rpc.Query"; -import * as _213 from "./mint/v1beta1/query.rpc.Query"; -import * as _214 from "./params/v1beta1/query.rpc.Query"; -import * as _215 from "./slashing/v1beta1/query.rpc.Query"; -import * as _216 from "./staking/v1beta1/query.rpc.Query"; -import * as _217 from "./tx/v1beta1/service.rpc.Service"; -import * as _218 from "./upgrade/v1beta1/query.rpc.Query"; -import * as _219 from "./auth/v1beta1/tx.rpc.msg"; -import * as _220 from "./authz/v1beta1/tx.rpc.msg"; -import * as _221 from "./bank/v1beta1/tx.rpc.msg"; -import * as _222 from "./distribution/v1beta1/tx.rpc.msg"; -import * as _223 from "./gov/v1/tx.rpc.msg"; -import * as _224 from "./gov/v1beta1/tx.rpc.msg"; -import * as _225 from "./mint/v1beta1/tx.rpc.msg"; -import * as _226 from "./slashing/v1beta1/tx.rpc.msg"; -import * as _227 from "./staking/v1beta1/tx.rpc.msg"; -import * as _228 from "./upgrade/v1beta1/tx.rpc.msg"; -import * as _310 from "./rpc.query"; -import * as _311 from "./rpc.tx"; +import * as _189 from "./auth/v1beta1/tx.amino"; +import * as _190 from "./authz/v1beta1/tx.amino"; +import * as _191 from "./bank/v1beta1/tx.amino"; +import * as _192 from "./distribution/v1beta1/tx.amino"; +import * as _193 from "./gov/v1/tx.amino"; +import * as _194 from "./gov/v1beta1/tx.amino"; +import * as _195 from "./mint/v1beta1/tx.amino"; +import * as _196 from "./slashing/v1beta1/tx.amino"; +import * as _197 from "./staking/v1beta1/tx.amino"; +import * as _198 from "./upgrade/v1beta1/tx.amino"; +import * as _199 from "./auth/v1beta1/tx.registry"; +import * as _200 from "./authz/v1beta1/tx.registry"; +import * as _201 from "./bank/v1beta1/tx.registry"; +import * as _202 from "./distribution/v1beta1/tx.registry"; +import * as _203 from "./gov/v1/tx.registry"; +import * as _204 from "./gov/v1beta1/tx.registry"; +import * as _205 from "./mint/v1beta1/tx.registry"; +import * as _206 from "./slashing/v1beta1/tx.registry"; +import * as _207 from "./staking/v1beta1/tx.registry"; +import * as _208 from "./upgrade/v1beta1/tx.registry"; +import * as _209 from "./auth/v1beta1/query.rpc.Query"; +import * as _210 from "./authz/v1beta1/query.rpc.Query"; +import * as _211 from "./bank/v1beta1/query.rpc.Query"; +import * as _212 from "./base/tendermint/v1beta1/query.rpc.Service"; +import * as _213 from "./distribution/v1beta1/query.rpc.Query"; +import * as _214 from "./gov/v1/query.rpc.Query"; +import * as _215 from "./gov/v1beta1/query.rpc.Query"; +import * as _216 from "./mint/v1beta1/query.rpc.Query"; +import * as _217 from "./params/v1beta1/query.rpc.Query"; +import * as _218 from "./slashing/v1beta1/query.rpc.Query"; +import * as _219 from "./staking/v1beta1/query.rpc.Query"; +import * as _220 from "./tx/v1beta1/service.rpc.Service"; +import * as _221 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _222 from "./auth/v1beta1/tx.rpc.msg"; +import * as _223 from "./authz/v1beta1/tx.rpc.msg"; +import * as _224 from "./bank/v1beta1/tx.rpc.msg"; +import * as _225 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _226 from "./gov/v1/tx.rpc.msg"; +import * as _227 from "./gov/v1beta1/tx.rpc.msg"; +import * as _228 from "./mint/v1beta1/tx.rpc.msg"; +import * as _229 from "./slashing/v1beta1/tx.rpc.msg"; +import * as _230 from "./staking/v1beta1/tx.rpc.msg"; +import * as _231 from "./upgrade/v1beta1/tx.rpc.msg"; +import * as _317 from "./rpc.query"; +import * as _318 from "./rpc.tx"; export namespace cosmos { export namespace auth { export const v1beta1 = { @@ -106,10 +106,10 @@ export namespace cosmos { ..._3, ..._4, ..._5, - ..._186, - ..._196, - ..._206, - ..._219 + ..._189, + ..._199, + ..._209, + ..._222 }; } export namespace authz { @@ -119,10 +119,10 @@ export namespace cosmos { ..._8, ..._9, ..._10, - ..._187, - ..._197, - ..._207, - ..._220 + ..._190, + ..._200, + ..._210, + ..._223 }; } export namespace bank { @@ -132,10 +132,10 @@ export namespace cosmos { ..._13, ..._14, ..._15, - ..._188, - ..._198, - ..._208, - ..._221 + ..._191, + ..._201, + ..._211, + ..._224 }; } export namespace base { @@ -153,7 +153,7 @@ export namespace cosmos { export const v1beta1 = { ..._18, ..._19, - ..._209 + ..._212 }; } export const v1beta1 = { @@ -176,10 +176,10 @@ export namespace cosmos { ..._24, ..._25, ..._26, - ..._189, - ..._199, - ..._210, - ..._222 + ..._192, + ..._202, + ..._213, + ..._225 }; } export namespace gov { @@ -188,20 +188,20 @@ export namespace cosmos { ..._28, ..._29, ..._30, - ..._190, - ..._200, - ..._211, - ..._223 + ..._193, + ..._203, + ..._214, + ..._226 }; export const v1beta1 = { ..._31, ..._32, ..._33, ..._34, - ..._191, - ..._201, - ..._212, - ..._224 + ..._194, + ..._204, + ..._215, + ..._227 }; } export namespace mint { @@ -210,10 +210,10 @@ export namespace cosmos { ..._36, ..._37, ..._38, - ..._192, - ..._202, - ..._213, - ..._225 + ..._195, + ..._205, + ..._216, + ..._228 }; } export namespace msg { @@ -225,7 +225,7 @@ export namespace cosmos { export const v1beta1 = { ..._40, ..._41, - ..._214 + ..._217 }; } export namespace query { @@ -239,10 +239,10 @@ export namespace cosmos { ..._44, ..._45, ..._46, - ..._193, - ..._203, - ..._215, - ..._226 + ..._196, + ..._206, + ..._218, + ..._229 }; } export namespace staking { @@ -252,10 +252,10 @@ export namespace cosmos { ..._49, ..._50, ..._51, - ..._194, - ..._204, - ..._216, - ..._227 + ..._197, + ..._207, + ..._219, + ..._230 }; } export namespace tx { @@ -267,7 +267,7 @@ export namespace cosmos { export const v1beta1 = { ..._53, ..._54, - ..._217 + ..._220 }; } export namespace upgrade { @@ -275,14 +275,14 @@ export namespace cosmos { ..._55, ..._56, ..._57, - ..._195, - ..._205, - ..._218, - ..._228 + ..._198, + ..._208, + ..._221, + ..._231 }; } export const ClientFactory = { - ..._310, - ..._311 + ..._317, + ..._318 }; } \ No newline at end of file diff --git a/packages/protobuf/codegen/cosmwasm/bundle.ts b/packages/protobuf/codegen/cosmwasm/bundle.ts index 38bc65a6b..68ef4a09a 100644 --- a/packages/protobuf/codegen/cosmwasm/bundle.ts +++ b/packages/protobuf/codegen/cosmwasm/bundle.ts @@ -5,12 +5,12 @@ import * as _61 from "./wasm/v1/proposal"; import * as _62 from "./wasm/v1/query"; import * as _63 from "./wasm/v1/tx"; import * as _64 from "./wasm/v1/types"; -import * as _229 from "./wasm/v1/tx.amino"; -import * as _230 from "./wasm/v1/tx.registry"; -import * as _231 from "./wasm/v1/query.rpc.Query"; -import * as _232 from "./wasm/v1/tx.rpc.msg"; -import * as _312 from "./rpc.query"; -import * as _313 from "./rpc.tx"; +import * as _232 from "./wasm/v1/tx.amino"; +import * as _233 from "./wasm/v1/tx.registry"; +import * as _234 from "./wasm/v1/query.rpc.Query"; +import * as _235 from "./wasm/v1/tx.rpc.msg"; +import * as _319 from "./rpc.query"; +import * as _320 from "./rpc.tx"; export namespace cosmwasm { export namespace wasm { export const v1 = { @@ -21,14 +21,14 @@ export namespace cosmwasm { ..._62, ..._63, ..._64, - ..._229, - ..._230, - ..._231, - ..._232 + ..._232, + ..._233, + ..._234, + ..._235 }; } export const ClientFactory = { - ..._312, - ..._313 + ..._319, + ..._320 }; } \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/bundle.ts b/packages/protobuf/codegen/gaia/bundle.ts new file mode 100644 index 000000000..058083dee --- /dev/null +++ b/packages/protobuf/codegen/gaia/bundle.ts @@ -0,0 +1,26 @@ +import * as _65 from "./globalfee/v1beta1/genesis"; +import * as _66 from "./globalfee/v1beta1/query"; +import * as _67 from "./globalfee/v1beta1/tx"; +import * as _236 from "./globalfee/v1beta1/tx.amino"; +import * as _237 from "./globalfee/v1beta1/tx.registry"; +import * as _238 from "./globalfee/v1beta1/query.rpc.Query"; +import * as _239 from "./globalfee/v1beta1/tx.rpc.msg"; +import * as _321 from "./rpc.query"; +import * as _322 from "./rpc.tx"; +export namespace gaia { + export namespace globalfee { + export const v1beta1 = { + ..._65, + ..._66, + ..._67, + ..._236, + ..._237, + ..._238, + ..._239 + }; + } + export const ClientFactory = { + ..._321, + ..._322 + }; +} \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/client.ts b/packages/protobuf/codegen/gaia/client.ts new file mode 100644 index 000000000..05837b231 --- /dev/null +++ b/packages/protobuf/codegen/gaia/client.ts @@ -0,0 +1,47 @@ +import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; +import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import * as gaiaGlobalfeeV1beta1TxRegistry from "./globalfee/v1beta1/tx.registry"; +import * as gaiaGlobalfeeV1beta1TxAmino from "./globalfee/v1beta1/tx.amino"; +export const gaiaAminoConverters = { + ...gaiaGlobalfeeV1beta1TxAmino.AminoConverter +}; +export const gaiaProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...gaiaGlobalfeeV1beta1TxRegistry.registry]; +export const getSigningGaiaClientOptions = ({ + defaultTypes = defaultRegistryTypes +}: { + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +} = {}): { + registry: Registry; + aminoTypes: AminoTypes; +} => { + const registry = new Registry([...defaultTypes, ...gaiaProtoRegistry]); + const aminoTypes = new AminoTypes({ + ...gaiaAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +export const getSigningGaiaClient = async ({ + rpcEndpoint, + signer, + defaultTypes = defaultRegistryTypes +}: { + rpcEndpoint: string | HttpEndpoint; + signer: OfflineSigner; + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +}) => { + const { + registry, + aminoTypes + } = getSigningGaiaClientOptions({ + defaultTypes + }); + const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: (registry as any), + aminoTypes + }); + return client; +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/globalfee/v1beta1/genesis.ts b/packages/protobuf/codegen/gaia/globalfee/v1beta1/genesis.ts new file mode 100644 index 000000000..2a93ef84a --- /dev/null +++ b/packages/protobuf/codegen/gaia/globalfee/v1beta1/genesis.ts @@ -0,0 +1,185 @@ +//@ts-nocheck +import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState - initial state of module */ +export interface GenesisState { + /** Params of this module */ + params: Params | undefined; +} +export interface GenesisStateProtoMsg { + typeUrl: "/gaia.globalfee.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState - initial state of module */ +export interface GenesisStateAmino { + /** Params of this module */ + params?: ParamsAmino | undefined; +} +export interface GenesisStateAminoMsg { + type: "/gaia.globalfee.v1beta1.GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState - initial state of module */ +export interface GenesisStateSDKType { + params: ParamsSDKType | undefined; +} +/** Params defines the set of module parameters. */ +export interface Params { + /** + * Minimum stores the minimum gas price(s) for all TX on the chain. + * When multiple coins are defined then they are accepted alternatively. + * The list must be sorted by denoms asc. No duplicate denoms or zero amount + * values allowed. For more information see + * https://docs.cosmos.network/main/modules/auth#concepts + */ + minimumGasPrices: DecCoin[]; +} +export interface ParamsProtoMsg { + typeUrl: "/gaia.globalfee.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the set of module parameters. */ +export interface ParamsAmino { + /** + * Minimum stores the minimum gas price(s) for all TX on the chain. + * When multiple coins are defined then they are accepted alternatively. + * The list must be sorted by denoms asc. No duplicate denoms or zero amount + * values allowed. For more information see + * https://docs.cosmos.network/main/modules/auth#concepts + */ + minimum_gas_prices: DecCoinAmino[]; +} +export interface ParamsAminoMsg { + type: "/gaia.globalfee.v1beta1.Params"; + value: ParamsAmino; +} +/** Params defines the set of module parameters. */ +export interface ParamsSDKType { + minimum_gas_prices: DecCoinSDKType[]; +} +function createBaseGenesisState(): GenesisState { + return { + params: Params.fromPartial({}) + }; +} +export const GenesisState = { + typeUrl: "/gaia.globalfee.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): 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.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + return { + params: object?.params ? Params.fromAmino(object.params) : undefined + }; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/gaia.globalfee.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseParams(): Params { + return { + minimumGasPrices: [] + }; +} +export const Params = { + typeUrl: "/gaia.globalfee.v1beta1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.minimumGasPrices) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minimumGasPrices.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.minimumGasPrices = object.minimumGasPrices?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ParamsAmino): Params { + return { + minimumGasPrices: Array.isArray(object?.minimum_gas_prices) ? object.minimum_gas_prices.map((e: any) => DecCoin.fromAmino(e)) : [] + }; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + if (message.minimumGasPrices) { + obj.minimum_gas_prices = message.minimumGasPrices.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.minimum_gas_prices = []; + } + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/gaia.globalfee.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/globalfee/v1beta1/query.rpc.Query.ts b/packages/protobuf/codegen/gaia/globalfee/v1beta1/query.rpc.Query.ts new file mode 100644 index 000000000..f1c0b9483 --- /dev/null +++ b/packages/protobuf/codegen/gaia/globalfee/v1beta1/query.rpc.Query.ts @@ -0,0 +1,29 @@ +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryMinimumGasPricesRequest, QueryMinimumGasPricesResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + minimumGasPrices(request?: QueryMinimumGasPricesRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.minimumGasPrices = this.minimumGasPrices.bind(this); + } + minimumGasPrices(request: QueryMinimumGasPricesRequest = {}): Promise { + const data = QueryMinimumGasPricesRequest.encode(request).finish(); + const promise = this.rpc.request("gaia.globalfee.v1beta1.Query", "MinimumGasPrices", data); + return promise.then(data => QueryMinimumGasPricesResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + minimumGasPrices(request?: QueryMinimumGasPricesRequest): Promise { + return queryService.minimumGasPrices(request); + } + }; +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/globalfee/v1beta1/query.ts b/packages/protobuf/codegen/gaia/globalfee/v1beta1/query.ts new file mode 100644 index 000000000..0653fa7b3 --- /dev/null +++ b/packages/protobuf/codegen/gaia/globalfee/v1beta1/query.ts @@ -0,0 +1,169 @@ +//@ts-nocheck +import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * QueryMinimumGasPricesRequest is the request type for the + * Query/MinimumGasPrices RPC method. + */ +export interface QueryMinimumGasPricesRequest {} +export interface QueryMinimumGasPricesRequestProtoMsg { + typeUrl: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest"; + value: Uint8Array; +} +/** + * QueryMinimumGasPricesRequest is the request type for the + * Query/MinimumGasPrices RPC method. + */ +export interface QueryMinimumGasPricesRequestAmino {} +export interface QueryMinimumGasPricesRequestAminoMsg { + type: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest"; + value: QueryMinimumGasPricesRequestAmino; +} +/** + * QueryMinimumGasPricesRequest is the request type for the + * Query/MinimumGasPrices RPC method. + */ +export interface QueryMinimumGasPricesRequestSDKType {} +/** + * QueryMinimumGasPricesResponse is the response type for the + * Query/MinimumGasPrices RPC method. + */ +export interface QueryMinimumGasPricesResponse { + minimumGasPrices: DecCoin[]; +} +export interface QueryMinimumGasPricesResponseProtoMsg { + typeUrl: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse"; + value: Uint8Array; +} +/** + * QueryMinimumGasPricesResponse is the response type for the + * Query/MinimumGasPrices RPC method. + */ +export interface QueryMinimumGasPricesResponseAmino { + minimum_gas_prices: DecCoinAmino[]; +} +export interface QueryMinimumGasPricesResponseAminoMsg { + type: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse"; + value: QueryMinimumGasPricesResponseAmino; +} +/** + * QueryMinimumGasPricesResponse is the response type for the + * Query/MinimumGasPrices RPC method. + */ +export interface QueryMinimumGasPricesResponseSDKType { + minimum_gas_prices: DecCoinSDKType[]; +} +function createBaseQueryMinimumGasPricesRequest(): QueryMinimumGasPricesRequest { + return {}; +} +export const QueryMinimumGasPricesRequest = { + typeUrl: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest", + encode(_: QueryMinimumGasPricesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryMinimumGasPricesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryMinimumGasPricesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryMinimumGasPricesRequest { + const message = createBaseQueryMinimumGasPricesRequest(); + return message; + }, + fromAmino(_: QueryMinimumGasPricesRequestAmino): QueryMinimumGasPricesRequest { + return {}; + }, + toAmino(_: QueryMinimumGasPricesRequest): QueryMinimumGasPricesRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryMinimumGasPricesRequestAminoMsg): QueryMinimumGasPricesRequest { + return QueryMinimumGasPricesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryMinimumGasPricesRequestProtoMsg): QueryMinimumGasPricesRequest { + return QueryMinimumGasPricesRequest.decode(message.value); + }, + toProto(message: QueryMinimumGasPricesRequest): Uint8Array { + return QueryMinimumGasPricesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryMinimumGasPricesRequest): QueryMinimumGasPricesRequestProtoMsg { + return { + typeUrl: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesRequest", + value: QueryMinimumGasPricesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryMinimumGasPricesResponse(): QueryMinimumGasPricesResponse { + return { + minimumGasPrices: [] + }; +} +export const QueryMinimumGasPricesResponse = { + typeUrl: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse", + encode(message: QueryMinimumGasPricesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.minimumGasPrices) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryMinimumGasPricesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryMinimumGasPricesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minimumGasPrices.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryMinimumGasPricesResponse { + const message = createBaseQueryMinimumGasPricesResponse(); + message.minimumGasPrices = object.minimumGasPrices?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryMinimumGasPricesResponseAmino): QueryMinimumGasPricesResponse { + return { + minimumGasPrices: Array.isArray(object?.minimum_gas_prices) ? object.minimum_gas_prices.map((e: any) => DecCoin.fromAmino(e)) : [] + }; + }, + toAmino(message: QueryMinimumGasPricesResponse): QueryMinimumGasPricesResponseAmino { + const obj: any = {}; + if (message.minimumGasPrices) { + obj.minimum_gas_prices = message.minimumGasPrices.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.minimum_gas_prices = []; + } + return obj; + }, + fromAminoMsg(object: QueryMinimumGasPricesResponseAminoMsg): QueryMinimumGasPricesResponse { + return QueryMinimumGasPricesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryMinimumGasPricesResponseProtoMsg): QueryMinimumGasPricesResponse { + return QueryMinimumGasPricesResponse.decode(message.value); + }, + toProto(message: QueryMinimumGasPricesResponse): Uint8Array { + return QueryMinimumGasPricesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryMinimumGasPricesResponse): QueryMinimumGasPricesResponseProtoMsg { + return { + typeUrl: "/gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse", + value: QueryMinimumGasPricesResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.amino.ts b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.amino.ts new file mode 100644 index 000000000..8acb508e1 --- /dev/null +++ b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.amino.ts @@ -0,0 +1,8 @@ +import { MsgUpdateParams } from "./tx"; +export const AminoConverter = { + "/gaia.globalfee.v1beta1.MsgUpdateParams": { + aminoType: "/gaia.globalfee.v1beta1.MsgUpdateParams", + toAmino: MsgUpdateParams.toAmino, + fromAmino: MsgUpdateParams.fromAmino + } +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.registry.ts b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.registry.ts new file mode 100644 index 000000000..82b41e773 --- /dev/null +++ b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.registry.ts @@ -0,0 +1,35 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgUpdateParams } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/gaia.globalfee.v1beta1.MsgUpdateParams", MsgUpdateParams]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + updateParams(value: MsgUpdateParams) { + return { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParams", + value: MsgUpdateParams.encode(value).finish() + }; + } + }, + withTypeUrl: { + updateParams(value: MsgUpdateParams) { + return { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParams", + value + }; + } + }, + fromPartial: { + updateParams(value: MsgUpdateParams) { + return { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParams", + value: MsgUpdateParams.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.rpc.msg.ts b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.rpc.msg.ts new file mode 100644 index 000000000..975a8af56 --- /dev/null +++ b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,25 @@ +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx"; +/** Msg defines the x/globalfee Msg service. */ +export interface Msg { + /** + * UpdateParams defines a governance operation for updating the x/mint module + * parameters. The authority is hard-coded to the x/gov module account. + * + * Since: cosmos-sdk 0.47 + */ + updateParams(request: MsgUpdateParams): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.updateParams = this.updateParams.bind(this); + } + updateParams(request: MsgUpdateParams): Promise { + const data = MsgUpdateParams.encode(request).finish(); + const promise = this.rpc.request("gaia.globalfee.v1beta1.Msg", "UpdateParams", data); + return promise.then(data => MsgUpdateParamsResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.ts b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.ts new file mode 100644 index 000000000..9790eac95 --- /dev/null +++ b/packages/protobuf/codegen/gaia/globalfee/v1beta1/tx.ts @@ -0,0 +1,199 @@ +//@ts-nocheck +import { Params, ParamsAmino, ParamsSDKType } from "./genesis"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + */ +export interface MsgUpdateParams { + /** authority is the address of the governance account. */ + authority: string; + /** + * params defines the x/mint parameters to update. + * + * NOTE: All parameters must be supplied. + */ + params: Params | undefined; +} +export interface MsgUpdateParamsProtoMsg { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParams"; + value: Uint8Array; +} +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + */ +export interface MsgUpdateParamsAmino { + /** authority is the address of the governance account. */ + authority: string; + /** + * params defines the x/mint parameters to update. + * + * NOTE: All parameters must be supplied. + */ + params?: ParamsAmino | undefined; +} +export interface MsgUpdateParamsAminoMsg { + type: "/gaia.globalfee.v1beta1.MsgUpdateParams"; + value: MsgUpdateParamsAmino; +} +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + */ +export interface MsgUpdateParamsSDKType { + authority: string; + params: ParamsSDKType | undefined; +} +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: cosmos-sdk 0.47 + */ +export interface MsgUpdateParamsResponse {} +export interface MsgUpdateParamsResponseProtoMsg { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParamsResponse"; + value: Uint8Array; +} +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: cosmos-sdk 0.47 + */ +export interface MsgUpdateParamsResponseAmino {} +export interface MsgUpdateParamsResponseAminoMsg { + type: "/gaia.globalfee.v1beta1.MsgUpdateParamsResponse"; + value: MsgUpdateParamsResponseAmino; +} +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: cosmos-sdk 0.47 + */ +export interface MsgUpdateParamsResponseSDKType {} +function createBaseMsgUpdateParams(): MsgUpdateParams { + return { + authority: "", + params: Params.fromPartial({}) + }; +} +export const MsgUpdateParams = { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParams", + encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateParams { + const message = createBaseMsgUpdateParams(); + message.authority = object.authority ?? ""; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams { + return { + authority: object.authority, + params: object?.params ? Params.fromAmino(object.params) : undefined + }; + }, + toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino { + const obj: any = {}; + obj.authority = message.authority; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams { + return MsgUpdateParams.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams { + return MsgUpdateParams.decode(message.value); + }, + toProto(message: MsgUpdateParams): Uint8Array { + return MsgUpdateParams.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg { + return { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParams", + value: MsgUpdateParams.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse { + return {}; +} +export const MsgUpdateParamsResponse = { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParamsResponse", + encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateParamsResponse { + const message = createBaseMsgUpdateParamsResponse(); + return message; + }, + fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse { + return {}; + }, + toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse { + return MsgUpdateParamsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse { + return MsgUpdateParamsResponse.decode(message.value); + }, + toProto(message: MsgUpdateParamsResponse): Uint8Array { + return MsgUpdateParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg { + return { + typeUrl: "/gaia.globalfee.v1beta1.MsgUpdateParamsResponse", + value: MsgUpdateParamsResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/rpc.query.ts b/packages/protobuf/codegen/gaia/rpc.query.ts new file mode 100644 index 000000000..2b2fa3e7b --- /dev/null +++ b/packages/protobuf/codegen/gaia/rpc.query.ts @@ -0,0 +1,58 @@ +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + base: { + tendermint: { + v1beta1: (await import("../cosmos/base/tendermint/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + slashing: { + v1beta1: (await import("../cosmos/slashing/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + gaia: { + globalfee: { + v1beta1: (await import("./globalfee/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; \ No newline at end of file diff --git a/packages/protobuf/codegen/gaia/rpc.tx.ts b/packages/protobuf/codegen/gaia/rpc.tx.ts new file mode 100644 index 000000000..758c21a16 --- /dev/null +++ b/packages/protobuf/codegen/gaia/rpc.tx.ts @@ -0,0 +1,42 @@ +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + auth: { + v1beta1: new (await import("../cosmos/auth/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + mint: { + v1beta1: new (await import("../cosmos/mint/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + slashing: { + v1beta1: new (await import("../cosmos/slashing/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + gaia: { + globalfee: { + v1beta1: new (await import("./globalfee/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); \ No newline at end of file diff --git a/packages/protobuf/codegen/gogoproto/bundle.ts b/packages/protobuf/codegen/gogoproto/bundle.ts index 5db8cc19e..2b23541bf 100644 --- a/packages/protobuf/codegen/gogoproto/bundle.ts +++ b/packages/protobuf/codegen/gogoproto/bundle.ts @@ -1,4 +1,4 @@ -import * as _65 from "./gogo"; +import * as _68 from "./gogo"; export const gogoproto = { - ..._65 + ..._68 }; \ No newline at end of file diff --git a/packages/protobuf/codegen/google/bundle.ts b/packages/protobuf/codegen/google/bundle.ts index dac6a4799..7bb420334 100644 --- a/packages/protobuf/codegen/google/bundle.ts +++ b/packages/protobuf/codegen/google/bundle.ts @@ -1,20 +1,20 @@ -import * as _66 from "./api/annotations"; -import * as _67 from "./api/http"; -import * as _68 from "./protobuf/any"; -import * as _69 from "./protobuf/descriptor"; -import * as _70 from "./protobuf/duration"; -import * as _71 from "./protobuf/empty"; -import * as _72 from "./protobuf/timestamp"; +import * as _69 from "./api/annotations"; +import * as _70 from "./api/http"; +import * as _71 from "./protobuf/any"; +import * as _72 from "./protobuf/descriptor"; +import * as _73 from "./protobuf/duration"; +import * as _74 from "./protobuf/empty"; +import * as _75 from "./protobuf/timestamp"; export namespace google { export const api = { - ..._66, - ..._67 + ..._69, + ..._70 }; export const protobuf = { - ..._68, - ..._69, - ..._70, ..._71, - ..._72 + ..._72, + ..._73, + ..._74, + ..._75 }; } \ No newline at end of file diff --git a/packages/protobuf/codegen/ibc/bundle.ts b/packages/protobuf/codegen/ibc/bundle.ts index c25979f92..5011ac9e2 100644 --- a/packages/protobuf/codegen/ibc/bundle.ts +++ b/packages/protobuf/codegen/ibc/bundle.ts @@ -1,60 +1,60 @@ -import * as _73 from "./applications/transfer/v1/authz"; -import * as _74 from "./applications/transfer/v1/genesis"; -import * as _75 from "./applications/transfer/v1/query"; -import * as _76 from "./applications/transfer/v1/transfer"; -import * as _77 from "./applications/transfer/v1/tx"; -import * as _78 from "./core/channel/v1/channel"; -import * as _79 from "./core/channel/v1/genesis"; -import * as _80 from "./core/channel/v1/query"; -import * as _81 from "./core/channel/v1/tx"; -import * as _82 from "./core/client/v1/client"; -import * as _233 from "./applications/transfer/v1/tx.amino"; -import * as _234 from "./core/channel/v1/tx.amino"; -import * as _235 from "./applications/transfer/v1/tx.registry"; -import * as _236 from "./core/channel/v1/tx.registry"; -import * as _237 from "./applications/transfer/v1/query.rpc.Query"; -import * as _238 from "./core/channel/v1/query.rpc.Query"; -import * as _239 from "./applications/transfer/v1/tx.rpc.msg"; -import * as _240 from "./core/channel/v1/tx.rpc.msg"; -import * as _314 from "./rpc.query"; -import * as _315 from "./rpc.tx"; +import * as _76 from "./applications/transfer/v1/authz"; +import * as _77 from "./applications/transfer/v1/genesis"; +import * as _78 from "./applications/transfer/v1/query"; +import * as _79 from "./applications/transfer/v1/transfer"; +import * as _80 from "./applications/transfer/v1/tx"; +import * as _81 from "./core/channel/v1/channel"; +import * as _82 from "./core/channel/v1/genesis"; +import * as _83 from "./core/channel/v1/query"; +import * as _84 from "./core/channel/v1/tx"; +import * as _85 from "./core/client/v1/client"; +import * as _240 from "./applications/transfer/v1/tx.amino"; +import * as _241 from "./core/channel/v1/tx.amino"; +import * as _242 from "./applications/transfer/v1/tx.registry"; +import * as _243 from "./core/channel/v1/tx.registry"; +import * as _244 from "./applications/transfer/v1/query.rpc.Query"; +import * as _245 from "./core/channel/v1/query.rpc.Query"; +import * as _246 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _247 from "./core/channel/v1/tx.rpc.msg"; +import * as _323 from "./rpc.query"; +import * as _324 from "./rpc.tx"; export namespace ibc { export namespace applications { export namespace transfer { export const v1 = { - ..._73, - ..._74, - ..._75, ..._76, ..._77, - ..._233, - ..._235, - ..._237, - ..._239 + ..._78, + ..._79, + ..._80, + ..._240, + ..._242, + ..._244, + ..._246 }; } } export namespace core { export namespace channel { export const v1 = { - ..._78, - ..._79, - ..._80, ..._81, - ..._234, - ..._236, - ..._238, - ..._240 + ..._82, + ..._83, + ..._84, + ..._241, + ..._243, + ..._245, + ..._247 }; } export namespace client { export const v1 = { - ..._82 + ..._85 }; } } export const ClientFactory = { - ..._314, - ..._315 + ..._323, + ..._324 }; } \ No newline at end of file diff --git a/packages/protobuf/codegen/index.ts b/packages/protobuf/codegen/index.ts index 7959646c4..be52df619 100644 --- a/packages/protobuf/codegen/index.ts +++ b/packages/protobuf/codegen/index.ts @@ -10,6 +10,8 @@ export * from "./cosmos/bundle"; export * from "./cosmos/client"; export * from "./cosmwasm/bundle"; export * from "./cosmwasm/client"; +export * from "./gaia/bundle"; +export * from "./gaia/client"; export * from "./gogoproto/bundle"; export * from "./google/bundle"; export * from "./ibc/bundle"; diff --git a/packages/protobuf/codegen/juno/bundle.ts b/packages/protobuf/codegen/juno/bundle.ts index 95e74f236..25f4355e6 100644 --- a/packages/protobuf/codegen/juno/bundle.ts +++ b/packages/protobuf/codegen/juno/bundle.ts @@ -1,46 +1,46 @@ -import * as _83 from "./feeshare/v1/feeshare"; -import * as _84 from "./feeshare/v1/genesis"; -import * as _85 from "./feeshare/v1/query"; -import * as _86 from "./feeshare/v1/tx"; -import * as _87 from "./mint/genesis"; -import * as _88 from "./mint/mint"; -import * as _89 from "./mint/query"; -import * as _90 from "./mint/tx"; -import * as _241 from "./feeshare/v1/tx.amino"; -import * as _242 from "./mint/tx.amino"; -import * as _243 from "./feeshare/v1/tx.registry"; -import * as _244 from "./mint/tx.registry"; -import * as _245 from "./feeshare/v1/query.rpc.Query"; -import * as _246 from "./mint/query.rpc.Query"; -import * as _247 from "./feeshare/v1/tx.rpc.msg"; -import * as _248 from "./mint/tx.rpc.msg"; -import * as _316 from "./rpc.query"; -import * as _317 from "./rpc.tx"; +import * as _86 from "./feeshare/v1/feeshare"; +import * as _87 from "./feeshare/v1/genesis"; +import * as _88 from "./feeshare/v1/query"; +import * as _89 from "./feeshare/v1/tx"; +import * as _90 from "./mint/genesis"; +import * as _91 from "./mint/mint"; +import * as _92 from "./mint/query"; +import * as _93 from "./mint/tx"; +import * as _248 from "./feeshare/v1/tx.amino"; +import * as _249 from "./mint/tx.amino"; +import * as _250 from "./feeshare/v1/tx.registry"; +import * as _251 from "./mint/tx.registry"; +import * as _252 from "./feeshare/v1/query.rpc.Query"; +import * as _253 from "./mint/query.rpc.Query"; +import * as _254 from "./feeshare/v1/tx.rpc.msg"; +import * as _255 from "./mint/tx.rpc.msg"; +import * as _325 from "./rpc.query"; +import * as _326 from "./rpc.tx"; export namespace juno { export namespace feeshare { export const v1 = { - ..._83, - ..._84, - ..._85, ..._86, - ..._241, - ..._243, - ..._245, - ..._247 + ..._87, + ..._88, + ..._89, + ..._248, + ..._250, + ..._252, + ..._254 }; } export const mint = { - ..._87, - ..._88, - ..._89, ..._90, - ..._242, - ..._244, - ..._246, - ..._248 + ..._91, + ..._92, + ..._93, + ..._249, + ..._251, + ..._253, + ..._255 }; export const ClientFactory = { - ..._316, - ..._317 + ..._325, + ..._326 }; } \ No newline at end of file diff --git a/packages/protobuf/codegen/osmosis/bundle.ts b/packages/protobuf/codegen/osmosis/bundle.ts index dec9e414a..e8dfd71f6 100644 --- a/packages/protobuf/codegen/osmosis/bundle.ts +++ b/packages/protobuf/codegen/osmosis/bundle.ts @@ -1,149 +1,146 @@ -import * as _91 from "./accum/v1beta1/accum"; -import * as _92 from "./concentrated-liquidity/params"; -import * as _93 from "./cosmwasmpool/v1beta1/genesis"; -import * as _94 from "./cosmwasmpool/v1beta1/gov"; -import * as _95 from "./cosmwasmpool/v1beta1/model/instantiate_msg"; -import * as _96 from "./cosmwasmpool/v1beta1/model/module_query_msg"; -import * as _97 from "./cosmwasmpool/v1beta1/model/module_sudo_msg"; -import * as _98 from "./cosmwasmpool/v1beta1/model/pool_query_msg"; -import * as _99 from "./cosmwasmpool/v1beta1/model/pool"; -import * as _100 from "./cosmwasmpool/v1beta1/model/transmuter_msgs"; -import * as _101 from "./cosmwasmpool/v1beta1/model/tx"; -import * as _102 from "./cosmwasmpool/v1beta1/params"; -import * as _103 from "./cosmwasmpool/v1beta1/query"; -import * as _104 from "./cosmwasmpool/v1beta1/tx"; -import * as _105 from "./gamm/pool-models/balancer/balancerPool"; -import * as _106 from "./gamm/v1beta1/genesis"; -import * as _107 from "./gamm/v1beta1/gov"; -import * as _108 from "./gamm/v1beta1/query"; -import * as _109 from "./gamm/v1beta1/shared"; -import * as _110 from "./gamm/v1beta1/tx"; -import * as _111 from "./gamm/pool-models/balancer/tx/tx"; -import * as _112 from "./gamm/pool-models/stableswap/stableswap_pool"; -import * as _113 from "./gamm/pool-models/stableswap/tx"; -import * as _114 from "./incentives/gauge"; -import * as _115 from "./incentives/genesis"; -import * as _116 from "./incentives/params"; -import * as _117 from "./incentives/query"; -import * as _118 from "./incentives/tx"; -import * as _119 from "./lockup/genesis"; -import * as _120 from "./lockup/lock"; -import * as _121 from "./lockup/params"; -import * as _122 from "./lockup/query"; -import * as _123 from "./lockup/tx"; -import * as _124 from "./pool-incentives/v1beta1/genesis"; -import * as _125 from "./pool-incentives/v1beta1/gov"; -import * as _126 from "./pool-incentives/v1beta1/incentives"; -import * as _127 from "./pool-incentives/v1beta1/query"; -import * as _128 from "./pool-incentives/v1beta1/shared"; -import * as _129 from "./poolmanager/v1beta1/genesis"; -import * as _130 from "./poolmanager/v1beta1/gov"; -import * as _131 from "./poolmanager/v1beta1/module_route"; -import * as _132 from "./poolmanager/v1beta1/query"; -import * as _133 from "./poolmanager/v1beta1/swap_route"; -import * as _134 from "./poolmanager/v1beta1/tx"; -import * as _135 from "./protorev/v1beta1/genesis"; -import * as _136 from "./protorev/v1beta1/gov"; -import * as _137 from "./protorev/v1beta1/params"; -import * as _138 from "./protorev/v1beta1/protorev"; -import * as _139 from "./protorev/v1beta1/query"; -import * as _140 from "./protorev/v1beta1/tx"; -import * as _141 from "./superfluid/genesis"; -import * as _142 from "./superfluid/params"; -import * as _143 from "./superfluid/query"; -import * as _144 from "./superfluid/superfluid"; -import * as _145 from "./superfluid/tx"; -import * as _146 from "./tokenfactory/v1beta1/authorityMetadata"; -import * as _147 from "./tokenfactory/v1beta1/genesis"; -import * as _148 from "./tokenfactory/v1beta1/params"; -import * as _149 from "./tokenfactory/v1beta1/query"; -import * as _150 from "./tokenfactory/v1beta1/tx"; -import * as _151 from "./txfees/v1beta1/feetoken"; -import * as _152 from "./txfees/v1beta1/genesis"; -import * as _153 from "./txfees/v1beta1/gov"; -import * as _154 from "./txfees/v1beta1/query"; -import * as _155 from "./valset-pref/v1beta1/query"; -import * as _156 from "./valset-pref/v1beta1/state"; -import * as _157 from "./valset-pref/v1beta1/tx"; -import * as _249 from "./concentrated-liquidity/pool-model/concentrated/tx.amino"; -import * as _250 from "./concentrated-liquidity/tx.amino"; -import * as _251 from "./gamm/pool-models/balancer/tx/tx.amino"; -import * as _252 from "./gamm/pool-models/stableswap/tx.amino"; -import * as _253 from "./gamm/v1beta1/tx.amino"; -import * as _254 from "./incentives/tx.amino"; -import * as _255 from "./lockup/tx.amino"; -import * as _256 from "./poolmanager/v1beta1/tx.amino"; -import * as _257 from "./protorev/v1beta1/tx.amino"; -import * as _258 from "./superfluid/tx.amino"; -import * as _259 from "./tokenfactory/v1beta1/tx.amino"; -import * as _260 from "./valset-pref/v1beta1/tx.amino"; -import * as _261 from "./concentrated-liquidity/pool-model/concentrated/tx.registry"; -import * as _262 from "./concentrated-liquidity/tx.registry"; -import * as _263 from "./gamm/pool-models/balancer/tx/tx.registry"; -import * as _264 from "./gamm/pool-models/stableswap/tx.registry"; -import * as _265 from "./gamm/v1beta1/tx.registry"; -import * as _266 from "./incentives/tx.registry"; -import * as _267 from "./lockup/tx.registry"; -import * as _268 from "./poolmanager/v1beta1/tx.registry"; -import * as _269 from "./protorev/v1beta1/tx.registry"; -import * as _270 from "./superfluid/tx.registry"; -import * as _271 from "./tokenfactory/v1beta1/tx.registry"; -import * as _272 from "./valset-pref/v1beta1/tx.registry"; -import * as _273 from "./concentrated-liquidity/query.rpc.Query"; -import * as _274 from "./cosmwasmpool/v1beta1/query.rpc.Query"; -import * as _275 from "./gamm/v1beta1/query.rpc.Query"; -import * as _276 from "./incentives/query.rpc.Query"; -import * as _277 from "./lockup/query.rpc.Query"; -import * as _278 from "./pool-incentives/v1beta1/query.rpc.Query"; -import * as _279 from "./poolmanager/v1beta1/query.rpc.Query"; -import * as _280 from "./protorev/v1beta1/query.rpc.Query"; -import * as _281 from "./superfluid/query.rpc.Query"; -import * as _282 from "./tokenfactory/v1beta1/query.rpc.Query"; -import * as _283 from "./txfees/v1beta1/query.rpc.Query"; -import * as _284 from "./valset-pref/v1beta1/query.rpc.Query"; -import * as _285 from "./concentrated-liquidity/pool-model/concentrated/tx.rpc.msg"; -import * as _286 from "./concentrated-liquidity/tx.rpc.msg"; -import * as _287 from "./gamm/pool-models/balancer/tx/tx.rpc.msg"; -import * as _288 from "./gamm/pool-models/stableswap/tx.rpc.msg"; -import * as _289 from "./gamm/v1beta1/tx.rpc.msg"; -import * as _290 from "./incentives/tx.rpc.msg"; -import * as _291 from "./lockup/tx.rpc.msg"; -import * as _292 from "./poolmanager/v1beta1/tx.rpc.msg"; -import * as _293 from "./protorev/v1beta1/tx.rpc.msg"; -import * as _294 from "./superfluid/tx.rpc.msg"; -import * as _295 from "./tokenfactory/v1beta1/tx.rpc.msg"; -import * as _296 from "./valset-pref/v1beta1/tx.rpc.msg"; -import * as _318 from "./rpc.query"; -import * as _319 from "./rpc.tx"; +import * as _94 from "./accum/v1beta1/accum"; +import * as _95 from "./concentrated-liquidity/params"; +import * as _96 from "./cosmwasmpool/v1beta1/genesis"; +import * as _97 from "./cosmwasmpool/v1beta1/gov"; +import * as _98 from "./cosmwasmpool/v1beta1/model/instantiate_msg"; +import * as _99 from "./cosmwasmpool/v1beta1/model/module_query_msg"; +import * as _100 from "./cosmwasmpool/v1beta1/model/module_sudo_msg"; +import * as _101 from "./cosmwasmpool/v1beta1/model/pool_query_msg"; +import * as _102 from "./cosmwasmpool/v1beta1/model/pool"; +import * as _103 from "./cosmwasmpool/v1beta1/model/transmuter_msgs"; +import * as _104 from "./cosmwasmpool/v1beta1/model/tx"; +import * as _105 from "./cosmwasmpool/v1beta1/params"; +import * as _106 from "./cosmwasmpool/v1beta1/query"; +import * as _107 from "./cosmwasmpool/v1beta1/tx"; +import * as _108 from "./gamm/pool-models/balancer/balancerPool"; +import * as _109 from "./gamm/v1beta1/genesis"; +import * as _110 from "./gamm/v1beta1/gov"; +import * as _111 from "./gamm/v1beta1/query"; +import * as _112 from "./gamm/v1beta1/shared"; +import * as _113 from "./gamm/v1beta1/tx"; +import * as _114 from "./gamm/pool-models/balancer/tx/tx"; +import * as _115 from "./gamm/pool-models/stableswap/stableswap_pool"; +import * as _116 from "./gamm/pool-models/stableswap/tx"; +import * as _117 from "./incentives/gauge"; +import * as _118 from "./incentives/genesis"; +import * as _119 from "./incentives/params"; +import * as _120 from "./incentives/query"; +import * as _121 from "./incentives/tx"; +import * as _122 from "./lockup/genesis"; +import * as _123 from "./lockup/lock"; +import * as _124 from "./lockup/params"; +import * as _125 from "./lockup/query"; +import * as _126 from "./lockup/tx"; +import * as _127 from "./pool-incentives/v1beta1/genesis"; +import * as _128 from "./pool-incentives/v1beta1/gov"; +import * as _129 from "./pool-incentives/v1beta1/incentives"; +import * as _130 from "./pool-incentives/v1beta1/query"; +import * as _131 from "./pool-incentives/v1beta1/shared"; +import * as _132 from "./poolmanager/v1beta1/genesis"; +import * as _133 from "./poolmanager/v1beta1/gov"; +import * as _134 from "./poolmanager/v1beta1/module_route"; +import * as _135 from "./poolmanager/v1beta1/query"; +import * as _136 from "./poolmanager/v1beta1/swap_route"; +import * as _137 from "./poolmanager/v1beta1/tx"; +import * as _138 from "./protorev/v1beta1/genesis"; +import * as _139 from "./protorev/v1beta1/gov"; +import * as _140 from "./protorev/v1beta1/params"; +import * as _141 from "./protorev/v1beta1/protorev"; +import * as _142 from "./protorev/v1beta1/query"; +import * as _143 from "./protorev/v1beta1/tx"; +import * as _144 from "./superfluid/genesis"; +import * as _145 from "./superfluid/params"; +import * as _146 from "./superfluid/query"; +import * as _147 from "./superfluid/superfluid"; +import * as _148 from "./superfluid/tx"; +import * as _149 from "./tokenfactory/v1beta1/authorityMetadata"; +import * as _150 from "./tokenfactory/v1beta1/genesis"; +import * as _151 from "./tokenfactory/v1beta1/params"; +import * as _152 from "./tokenfactory/v1beta1/query"; +import * as _153 from "./tokenfactory/v1beta1/tx"; +import * as _154 from "./txfees/v1beta1/feetoken"; +import * as _155 from "./txfees/v1beta1/genesis"; +import * as _156 from "./txfees/v1beta1/gov"; +import * as _157 from "./txfees/v1beta1/query"; +import * as _158 from "./valset-pref/v1beta1/query"; +import * as _159 from "./valset-pref/v1beta1/state"; +import * as _160 from "./valset-pref/v1beta1/tx"; +import * as _256 from "./concentrated-liquidity/pool-model/concentrated/tx.amino"; +import * as _257 from "./concentrated-liquidity/tx.amino"; +import * as _258 from "./gamm/pool-models/balancer/tx/tx.amino"; +import * as _259 from "./gamm/pool-models/stableswap/tx.amino"; +import * as _260 from "./gamm/v1beta1/tx.amino"; +import * as _261 from "./incentives/tx.amino"; +import * as _262 from "./lockup/tx.amino"; +import * as _263 from "./poolmanager/v1beta1/tx.amino"; +import * as _264 from "./protorev/v1beta1/tx.amino"; +import * as _265 from "./superfluid/tx.amino"; +import * as _266 from "./tokenfactory/v1beta1/tx.amino"; +import * as _267 from "./valset-pref/v1beta1/tx.amino"; +import * as _268 from "./concentrated-liquidity/pool-model/concentrated/tx.registry"; +import * as _269 from "./concentrated-liquidity/tx.registry"; +import * as _270 from "./gamm/pool-models/balancer/tx/tx.registry"; +import * as _271 from "./gamm/pool-models/stableswap/tx.registry"; +import * as _272 from "./gamm/v1beta1/tx.registry"; +import * as _273 from "./incentives/tx.registry"; +import * as _274 from "./lockup/tx.registry"; +import * as _275 from "./poolmanager/v1beta1/tx.registry"; +import * as _276 from "./protorev/v1beta1/tx.registry"; +import * as _277 from "./superfluid/tx.registry"; +import * as _278 from "./tokenfactory/v1beta1/tx.registry"; +import * as _279 from "./valset-pref/v1beta1/tx.registry"; +import * as _280 from "./concentrated-liquidity/query.rpc.Query"; +import * as _281 from "./cosmwasmpool/v1beta1/query.rpc.Query"; +import * as _282 from "./gamm/v1beta1/query.rpc.Query"; +import * as _283 from "./incentives/query.rpc.Query"; +import * as _284 from "./lockup/query.rpc.Query"; +import * as _285 from "./pool-incentives/v1beta1/query.rpc.Query"; +import * as _286 from "./poolmanager/v1beta1/query.rpc.Query"; +import * as _287 from "./protorev/v1beta1/query.rpc.Query"; +import * as _288 from "./superfluid/query.rpc.Query"; +import * as _289 from "./tokenfactory/v1beta1/query.rpc.Query"; +import * as _290 from "./txfees/v1beta1/query.rpc.Query"; +import * as _291 from "./valset-pref/v1beta1/query.rpc.Query"; +import * as _292 from "./concentrated-liquidity/pool-model/concentrated/tx.rpc.msg"; +import * as _293 from "./concentrated-liquidity/tx.rpc.msg"; +import * as _294 from "./gamm/pool-models/balancer/tx/tx.rpc.msg"; +import * as _295 from "./gamm/pool-models/stableswap/tx.rpc.msg"; +import * as _296 from "./gamm/v1beta1/tx.rpc.msg"; +import * as _297 from "./incentives/tx.rpc.msg"; +import * as _298 from "./lockup/tx.rpc.msg"; +import * as _299 from "./poolmanager/v1beta1/tx.rpc.msg"; +import * as _300 from "./protorev/v1beta1/tx.rpc.msg"; +import * as _301 from "./superfluid/tx.rpc.msg"; +import * as _302 from "./tokenfactory/v1beta1/tx.rpc.msg"; +import * as _303 from "./valset-pref/v1beta1/tx.rpc.msg"; +import * as _327 from "./rpc.query"; +import * as _328 from "./rpc.tx"; export namespace osmosis { export namespace accum { export const v1beta1 = { - ..._91 + ..._94 }; } export const concentratedliquidity = { - ..._92, + ..._95, poolmodel: { concentrated: { v1beta1: { - ..._249, - ..._261, - ..._285 + ..._256, + ..._268, + ..._292 } } }, v1beta1: { - ..._250, - ..._262, - ..._273, - ..._286 + ..._257, + ..._269, + ..._280, + ..._293 } }; export namespace cosmwasmpool { export const v1beta1 = { - ..._93, - ..._94, - ..._95, ..._96, ..._97, ..._98, @@ -153,148 +150,151 @@ export namespace osmosis { ..._102, ..._103, ..._104, - ..._274 + ..._105, + ..._106, + ..._107, + ..._281 }; } export namespace gamm { export const v1beta1 = { - ..._105, - ..._106, - ..._107, ..._108, ..._109, ..._110, - ..._253, - ..._265, - ..._275, - ..._289 + ..._111, + ..._112, + ..._113, + ..._260, + ..._272, + ..._282, + ..._296 }; export namespace poolmodels { export namespace balancer { export const v1beta1 = { - ..._111, - ..._251, - ..._263, - ..._287 + ..._114, + ..._258, + ..._270, + ..._294 }; } export namespace stableswap { export const v1beta1 = { - ..._112, - ..._113, - ..._252, - ..._264, - ..._288 + ..._115, + ..._116, + ..._259, + ..._271, + ..._295 }; } } } export const incentives = { - ..._114, - ..._115, - ..._116, ..._117, ..._118, - ..._254, - ..._266, - ..._276, - ..._290 - }; - export const lockup = { ..._119, ..._120, ..._121, + ..._261, + ..._273, + ..._283, + ..._297 + }; + export const lockup = { ..._122, ..._123, - ..._255, - ..._267, - ..._277, - ..._291 + ..._124, + ..._125, + ..._126, + ..._262, + ..._274, + ..._284, + ..._298 }; export namespace poolincentives { export const v1beta1 = { - ..._124, - ..._125, - ..._126, ..._127, ..._128, - ..._278 + ..._129, + ..._130, + ..._131, + ..._285 }; } export namespace poolmanager { export const v1beta1 = { - ..._129, - ..._130, - ..._131, ..._132, ..._133, ..._134, - ..._256, - ..._268, - ..._279, - ..._292 + ..._135, + ..._136, + ..._137, + ..._263, + ..._275, + ..._286, + ..._299 }; } export namespace protorev { export const v1beta1 = { - ..._135, - ..._136, - ..._137, ..._138, ..._139, ..._140, - ..._257, - ..._269, - ..._280, - ..._293 + ..._141, + ..._142, + ..._143, + ..._264, + ..._276, + ..._287, + ..._300 }; } export const superfluid = { - ..._141, - ..._142, - ..._143, ..._144, ..._145, - ..._258, - ..._270, - ..._281, - ..._294 + ..._146, + ..._147, + ..._148, + ..._265, + ..._277, + ..._288, + ..._301 }; export namespace tokenfactory { export const v1beta1 = { - ..._146, - ..._147, - ..._148, ..._149, ..._150, - ..._259, - ..._271, - ..._282, - ..._295 - }; - } - export namespace txfees { - export const v1beta1 = { ..._151, ..._152, ..._153, - ..._154, - ..._283 + ..._266, + ..._278, + ..._289, + ..._302 }; } - export namespace valsetpref { + export namespace txfees { export const v1beta1 = { + ..._154, ..._155, ..._156, ..._157, - ..._260, - ..._272, - ..._284, - ..._296 + ..._290 + }; + } + export namespace valsetpref { + export const v1beta1 = { + ..._158, + ..._159, + ..._160, + ..._267, + ..._279, + ..._291, + ..._303 }; } export const ClientFactory = { - ..._318, - ..._319 + ..._327, + ..._328 }; } \ No newline at end of file diff --git a/packages/protobuf/codegen/publicawesome/bundle.ts b/packages/protobuf/codegen/publicawesome/bundle.ts index 932ffea10..62f39ed7e 100644 --- a/packages/protobuf/codegen/publicawesome/bundle.ts +++ b/packages/protobuf/codegen/publicawesome/bundle.ts @@ -1,88 +1,88 @@ -import * as _158 from "./stargaze/alloc/v1beta1/genesis"; -import * as _159 from "./stargaze/alloc/v1beta1/params"; -import * as _160 from "./stargaze/alloc/v1beta1/query"; -import * as _161 from "./stargaze/alloc/v1beta1/tx"; -import * as _162 from "./stargaze/cron/v1/cron"; -import * as _163 from "./stargaze/cron/v1/genesis"; -import * as _164 from "./stargaze/cron/v1/proposal"; -import * as _165 from "./stargaze/cron/v1/query"; -import * as _166 from "./stargaze/cron/v1/tx"; -import * as _167 from "./stargaze/globalfee/v1/genesis"; -import * as _168 from "./stargaze/globalfee/v1/globalfee"; -import * as _169 from "./stargaze/globalfee/v1/proposal"; -import * as _170 from "./stargaze/globalfee/v1/query"; -import * as _171 from "./stargaze/globalfee/v1/tx"; -import * as _172 from "./stargaze/mint/v1beta1/genesis"; -import * as _173 from "./stargaze/mint/v1beta1/mint"; -import * as _174 from "./stargaze/mint/v1beta1/query"; -import * as _175 from "./stargaze/mint/v1beta1/tx"; -import * as _297 from "./stargaze/alloc/v1beta1/tx.amino"; -import * as _298 from "./stargaze/cron/v1/tx.amino"; -import * as _299 from "./stargaze/globalfee/v1/tx.amino"; -import * as _300 from "./stargaze/alloc/v1beta1/tx.registry"; -import * as _301 from "./stargaze/cron/v1/tx.registry"; -import * as _302 from "./stargaze/globalfee/v1/tx.registry"; -import * as _303 from "./stargaze/alloc/v1beta1/query.rpc.Query"; -import * as _304 from "./stargaze/cron/v1/query.rpc.Query"; -import * as _305 from "./stargaze/globalfee/v1/query.rpc.Query"; -import * as _306 from "./stargaze/mint/v1beta1/query.rpc.Query"; -import * as _307 from "./stargaze/alloc/v1beta1/tx.rpc.msg"; -import * as _308 from "./stargaze/cron/v1/tx.rpc.msg"; -import * as _309 from "./stargaze/globalfee/v1/tx.rpc.msg"; -import * as _320 from "./rpc.query"; -import * as _321 from "./rpc.tx"; +import * as _161 from "./stargaze/alloc/v1beta1/genesis"; +import * as _162 from "./stargaze/alloc/v1beta1/params"; +import * as _163 from "./stargaze/alloc/v1beta1/query"; +import * as _164 from "./stargaze/alloc/v1beta1/tx"; +import * as _165 from "./stargaze/cron/v1/cron"; +import * as _166 from "./stargaze/cron/v1/genesis"; +import * as _167 from "./stargaze/cron/v1/proposal"; +import * as _168 from "./stargaze/cron/v1/query"; +import * as _169 from "./stargaze/cron/v1/tx"; +import * as _170 from "./stargaze/globalfee/v1/genesis"; +import * as _171 from "./stargaze/globalfee/v1/globalfee"; +import * as _172 from "./stargaze/globalfee/v1/proposal"; +import * as _173 from "./stargaze/globalfee/v1/query"; +import * as _174 from "./stargaze/globalfee/v1/tx"; +import * as _175 from "./stargaze/mint/v1beta1/genesis"; +import * as _176 from "./stargaze/mint/v1beta1/mint"; +import * as _177 from "./stargaze/mint/v1beta1/query"; +import * as _178 from "./stargaze/mint/v1beta1/tx"; +import * as _304 from "./stargaze/alloc/v1beta1/tx.amino"; +import * as _305 from "./stargaze/cron/v1/tx.amino"; +import * as _306 from "./stargaze/globalfee/v1/tx.amino"; +import * as _307 from "./stargaze/alloc/v1beta1/tx.registry"; +import * as _308 from "./stargaze/cron/v1/tx.registry"; +import * as _309 from "./stargaze/globalfee/v1/tx.registry"; +import * as _310 from "./stargaze/alloc/v1beta1/query.rpc.Query"; +import * as _311 from "./stargaze/cron/v1/query.rpc.Query"; +import * as _312 from "./stargaze/globalfee/v1/query.rpc.Query"; +import * as _313 from "./stargaze/mint/v1beta1/query.rpc.Query"; +import * as _314 from "./stargaze/alloc/v1beta1/tx.rpc.msg"; +import * as _315 from "./stargaze/cron/v1/tx.rpc.msg"; +import * as _316 from "./stargaze/globalfee/v1/tx.rpc.msg"; +import * as _329 from "./rpc.query"; +import * as _330 from "./rpc.tx"; export namespace publicawesome { export namespace stargaze { export namespace alloc { export const v1beta1 = { - ..._158, - ..._159, - ..._160, ..._161, - ..._297, - ..._300, - ..._303, - ..._307 - }; - } - export namespace cron { - export const v1 = { ..._162, ..._163, ..._164, - ..._165, - ..._166, - ..._298, - ..._301, ..._304, - ..._308 + ..._307, + ..._310, + ..._314 }; } - export namespace globalfee { + export namespace cron { export const v1 = { + ..._165, + ..._166, ..._167, ..._168, ..._169, - ..._170, - ..._171, - ..._299, - ..._302, ..._305, - ..._309 + ..._308, + ..._311, + ..._315 }; } - export namespace mint { - export const v1beta1 = { + export namespace globalfee { + export const v1 = { + ..._170, + ..._171, ..._172, ..._173, ..._174, + ..._306, + ..._309, + ..._312, + ..._316 + }; + } + export namespace mint { + export const v1beta1 = { ..._175, - ..._306 + ..._176, + ..._177, + ..._178, + ..._313 }; } } export const ClientFactory = { - ..._320, - ..._321 + ..._329, + ..._330 }; } \ No newline at end of file diff --git a/packages/protobuf/codegen/tendermint/bundle.ts b/packages/protobuf/codegen/tendermint/bundle.ts index 701413334..2ea005fc2 100644 --- a/packages/protobuf/codegen/tendermint/bundle.ts +++ b/packages/protobuf/codegen/tendermint/bundle.ts @@ -1,32 +1,32 @@ -import * as _176 from "./abci/types"; -import * as _177 from "./crypto/keys"; -import * as _178 from "./crypto/proof"; -import * as _179 from "./p2p/types"; -import * as _180 from "./types/block"; -import * as _181 from "./types/evidence"; -import * as _182 from "./types/params"; -import * as _183 from "./types/types"; -import * as _184 from "./types/validator"; -import * as _185 from "./version/types"; +import * as _179 from "./abci/types"; +import * as _180 from "./crypto/keys"; +import * as _181 from "./crypto/proof"; +import * as _182 from "./p2p/types"; +import * as _183 from "./types/block"; +import * as _184 from "./types/evidence"; +import * as _185 from "./types/params"; +import * as _186 from "./types/types"; +import * as _187 from "./types/validator"; +import * as _188 from "./version/types"; export namespace tendermint { export const abci = { - ..._176 + ..._179 }; export const crypto = { - ..._177, - ..._178 + ..._180, + ..._181 }; export const p2p = { - ..._179 + ..._182 }; export const types = { - ..._180, - ..._181, - ..._182, ..._183, - ..._184 + ..._184, + ..._185, + ..._186, + ..._187 }; export const version = { - ..._185 + ..._188 }; } \ No newline at end of file diff --git a/packages/protobuf/proto/gaia/globalfee/v1beta1/genesis.proto b/packages/protobuf/proto/gaia/globalfee/v1beta1/genesis.proto new file mode 100644 index 000000000..39493b0c6 --- /dev/null +++ b/packages/protobuf/proto/gaia/globalfee/v1beta1/genesis.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; +package gaia.globalfee.v1beta1; + +import "gogoproto/gogo.proto"; +import "cosmos/base/v1beta1/coin.proto"; + +option go_package = "github.com/cosmos/gaia/x/globalfee/types"; + +// GenesisState - initial state of module +message GenesisState { + // Params of this module + Params params = 1 [ + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "params,omitempty" + ]; +} + +// Params defines the set of module parameters. +message Params { + // Minimum stores the minimum gas price(s) for all TX on the chain. + // When multiple coins are defined then they are accepted alternatively. + // The list must be sorted by denoms asc. No duplicate denoms or zero amount + // values allowed. For more information see + // https://docs.cosmos.network/main/modules/auth#concepts + repeated cosmos.base.v1beta1.DecCoin minimum_gas_prices = 1 [ + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "minimum_gas_prices,omitempty", + (gogoproto.moretags) = "yaml:\"minimum_gas_prices\"", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + ]; +} diff --git a/packages/protobuf/proto/gaia/globalfee/v1beta1/query.proto b/packages/protobuf/proto/gaia/globalfee/v1beta1/query.proto new file mode 100644 index 000000000..81f587c5b --- /dev/null +++ b/packages/protobuf/proto/gaia/globalfee/v1beta1/query.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; +package gaia.globalfee.v1beta1; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "cosmos/base/v1beta1/coin.proto"; + +option go_package = "github.com/cosmos/gaia/x/globalfee/types"; + +// Query defines the gRPC querier service. +service Query { + rpc MinimumGasPrices(QueryMinimumGasPricesRequest) + returns (QueryMinimumGasPricesResponse) { + option (google.api.http).get = + "/gaia/globalfee/v1beta1/minimum_gas_prices"; + } +} + +// QueryMinimumGasPricesRequest is the request type for the +// Query/MinimumGasPrices RPC method. +message QueryMinimumGasPricesRequest {} + +// QueryMinimumGasPricesResponse is the response type for the +// Query/MinimumGasPrices RPC method. +message QueryMinimumGasPricesResponse { + repeated cosmos.base.v1beta1.DecCoin minimum_gas_prices = 1 [ + (gogoproto.nullable) = false, + (gogoproto.jsontag) = "minimum_gas_prices,omitempty", + (gogoproto.moretags) = "yaml:\"minimum_gas_prices\"", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + ]; +} diff --git a/packages/protobuf/proto/gaia/globalfee/v1beta1/tx.proto b/packages/protobuf/proto/gaia/globalfee/v1beta1/tx.proto new file mode 100644 index 000000000..3db2354e1 --- /dev/null +++ b/packages/protobuf/proto/gaia/globalfee/v1beta1/tx.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; +package gaia.globalfee.v1beta1; + +option go_package = "github.com/cosmos/gaia/x/globalfee/types"; + +import "cosmos/msg/v1/msg.proto"; +import "gaia/globalfee/v1beta1/genesis.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; + +// Msg defines the x/globalfee Msg service. +service Msg { + // UpdateParams defines a governance operation for updating the x/mint module + // parameters. The authority is hard-coded to the x/gov module account. + // + // Since: cosmos-sdk 0.47 + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address of the governance account. + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the x/mint parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +// +// Since: cosmos-sdk 0.47 +message MsgUpdateParamsResponse {} + \ No newline at end of file diff --git a/packages/protobuf/scripts/codegen.js b/packages/protobuf/scripts/codegen.js index 8c39192f2..19000eeed 100644 --- a/packages/protobuf/scripts/codegen.js +++ b/packages/protobuf/scripts/codegen.js @@ -77,6 +77,7 @@ telescope({ 'publicawesome.stargaze.cron.v1', 'publicawesome.stargaze.globalfee.v1', 'publicawesome.stargaze.mint.v1beta1', + 'gaia.globalfee.v1beta1', ], }, // excluded: { diff --git a/packages/utils/messages/cw.ts b/packages/utils/messages/cw.ts index ceb545d8b..9c458daed 100644 --- a/packages/utils/messages/cw.ts +++ b/packages/utils/messages/cw.ts @@ -14,6 +14,7 @@ import { import { getSupportedChainConfig } from '../chain' import { POLYTONE_TIMEOUT_SECONDS } from '../constants' +import { processError } from '../error' import { objectMatchesStructure } from '../objectMatchesStructure' import { encodeMessageAsBase64, parseEncodedMessage } from './encoding' import { decodeStargateMessage } from './protobuf' @@ -96,8 +97,12 @@ export const decodeMessages = ( } } } else if (isCosmWasmStargateMsg(msg)) { - // Decode Stargate protobuf message. - return decodeStargateMessage(msg) + // Decode Stargate protobuf message. If fail to decode, ignore. + try { + return decodeStargateMessage(msg) + } catch (err) { + console.error(processError(err, { forceCapture: true })) + } } return msg diff --git a/packages/utils/messages/protobuf.ts b/packages/utils/messages/protobuf.ts index f42fbac21..82bfbdd04 100644 --- a/packages/utils/messages/protobuf.ts +++ b/packages/utils/messages/protobuf.ts @@ -23,6 +23,8 @@ import { cosmosProtoRegistry, cosmwasmAminoConverters, cosmwasmProtoRegistry, + gaiaAminoConverters, + gaiaProtoRegistry, google, ibcAminoConverters, ibcProtoRegistry, @@ -65,6 +67,7 @@ import { StargateMsg, } from '@dao-dao/types' +import { processError } from '../error' import { cwVoteOptionToGovVoteOption, govVoteOptionToCwVoteOption, @@ -463,6 +466,7 @@ export const PROTOBUF_TYPES: ReadonlyArray<[string, GeneratedType]> = [ ...osmosisProtoRegistry, ...ibcProtoRegistry, ...stargazeProtoRegistry, + ...gaiaProtoRegistry, ] export const typesRegistry = new Registry(PROTOBUF_TYPES) @@ -473,6 +477,7 @@ export const aminoTypes = new AminoTypes({ ...osmosisAminoConverters, ...ibcAminoConverters, ...stargazeAminoConverters, + ...gaiaAminoConverters, }) // Encodes a protobuf message value from its JSON representation into a byte @@ -530,18 +535,33 @@ export const makeStargateMessage = ({ // JSON representation. export const decodeStargateMessage = ({ stargate: { type_url, value }, -}: StargateMsg): DecodedStargateMsg => ({ - stargate: { - typeUrl: type_url, - value: decodeProtobufValue(type_url, value), - }, -}) +}: StargateMsg): DecodedStargateMsg => { + return { + stargate: { + typeUrl: type_url, + value: decodeProtobufValue(type_url, value), + }, + } +} // Decode governance proposal v1 messages using a protobuf. export const decodeGovProposalV1Messages = ( messages: GovProposalV1['proposal']['messages'] ): GovProposalV1DecodedMessages => - messages.map((msg) => protobufToCwMsg(msg).msg) + messages.map((msg) => { + try { + return protobufToCwMsg(msg).msg + } catch (err) { + // If protobuf not found, capture error and return placeholder. + console.error(processError(err, { forceCapture: true })) + return { + stargate: { + type_url: msg.typeUrl, + value: toBase64(msg.value), + }, + } + } + }) // Decode governance proposal content using a protobuf. export const decodeGovProposal = (