From 68ee1a961bca06bcd126d72bb4b7e15c93c65149 Mon Sep 17 00:00:00 2001 From: Ryan Conceicao Date: Fri, 18 Aug 2023 08:28:19 +0800 Subject: [PATCH 1/6] feat: ibc protobuf and MsgTransfer model --- scripts/gen-protobufs.mjs | 4 ++++ src/client/models/MsgTransfer.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/client/models/MsgTransfer.ts diff --git a/scripts/gen-protobufs.mjs b/scripts/gen-protobufs.mjs index 98275f92..05aade95 100644 --- a/scripts/gen-protobufs.mjs +++ b/scripts/gen-protobufs.mjs @@ -38,6 +38,10 @@ const REPOS = [ repo: "osmosis-labs/osmosis", paths: ["proto"], }, + { + repo: "cosmos/ibc-go#main", + paths: ["proto"], + } ]; const __dirname = dirname(fileURLToPath(import.meta.url)); diff --git a/src/client/models/MsgTransfer.ts b/src/client/models/MsgTransfer.ts new file mode 100644 index 00000000..b459ad91 --- /dev/null +++ b/src/client/models/MsgTransfer.ts @@ -0,0 +1,26 @@ +import { PlainMessage } from "@bufbuild/protobuf"; +import { IbcApplicationsTransferV1MsgTransfer as ProtoMsgTransfer } from "cosmes/protobufs"; + +import { DeepPrettify } from "../../typeutils/prettify"; +import { Adapter } from "./Adapter"; + +type Data = DeepPrettify>; + +export class MsgTransfer implements Adapter { + private readonly data: Data; + + constructor(data: Data) { + this.data = data; + } + + public toProto() { + return new ProtoMsgTransfer(this.data); + } + + public toAmino() { + return { + type: "ibc/MsgTransfer", + value: this.data, + }; + } +} From 7d143be5aad7243b0a6be30a1e7442c1c8d9fd82 Mon Sep 17 00:00:00 2001 From: Ryan Conceicao Date: Fri, 18 Aug 2023 08:29:49 +0800 Subject: [PATCH 2/6] chore: generate protobufs --- src/protobufs/capability/v1/capability_pb.ts | 134 ++ src/protobufs/capability/v1/genesis_pb.ts | 108 ++ src/protobufs/cosmos/autocli/v1/options_pb.ts | 10 + .../cosmos/bank/v1beta1/query_cosmes.ts | 14 +- src/protobufs/cosmos/bank/v1beta1/query_pb.ts | 84 + src/protobufs/cosmos/gov/v1/gov_pb.ts | 10 + .../cosmos/staking/v1beta1/staking_pb.ts | 8 +- src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts | 30 +- src/protobufs/cosmwasm/wasm/v1/tx_pb.ts | 164 ++ .../ibc/applications/fee/v1/ack_pb.ts | 65 + .../ibc/applications/fee/v1/fee_pb.ts | 214 +++ .../ibc/applications/fee/v1/genesis_pb.ts | 296 +++ .../ibc/applications/fee/v1/metadata_pb.ts | 58 + .../ibc/applications/fee/v1/query_cosmes.ts | 129 ++ .../ibc/applications/fee/v1/query_pb.ts | 926 ++++++++++ .../ibc/applications/fee/v1/tx_cosmes.ts | 71 + .../ibc/applications/fee/v1/tx_pb.ts | 397 +++++ .../controller/v1/controller_pb.ts | 50 + .../controller/v1/query_cosmes.ts | 33 + .../controller/v1/query_pb.ts | 167 ++ .../controller/v1/tx_cosmes.ts | 45 + .../controller/v1/tx_pb.ts | 289 +++ .../genesis/v1/genesis_pb.ts | 278 +++ .../interchain_accounts/host/v1/host_pb.ts | 58 + .../host/v1/query_cosmes.ts | 21 + .../interchain_accounts/host/v1/query_pb.ts | 83 + .../interchain_accounts/host/v1/tx_cosmes.ts | 21 + .../interchain_accounts/host/v1/tx_pb.ts | 93 + .../interchain_accounts/v1/account_pb.ts | 54 + .../interchain_accounts/v1/metadata_pb.ts | 91 + .../interchain_accounts/v1/packet_pb.ts | 125 ++ .../ibc/applications/transfer/v1/authz_pb.ts | 116 ++ .../applications/transfer/v1/genesis_pb.ts | 70 + .../applications/transfer/v1/query_cosmes.ts | 81 + .../ibc/applications/transfer/v1/query_pb.ts | 513 ++++++ .../applications/transfer/v1/transfer_pb.ts | 113 ++ .../ibc/applications/transfer/v1/tx_cosmes.ts | 33 + .../ibc/applications/transfer/v1/tx_pb.ts | 238 +++ .../ibc/applications/transfer/v2/packet_pb.ts | 83 + .../ibc/core/channel/v1/channel_pb.ts | 650 +++++++ .../ibc/core/channel/v1/genesis_pb.ts | 144 ++ .../ibc/core/channel/v1/query_cosmes.ts | 185 ++ src/protobufs/ibc/core/channel/v1/query_pb.ts | 1584 +++++++++++++++++ .../ibc/core/channel/v1/tx_cosmes.ts | 130 ++ src/protobufs/ibc/core/channel/v1/tx_pb.ts | 1066 +++++++++++ src/protobufs/ibc/core/client/v1/client_pb.ts | 394 ++++ .../ibc/core/client/v1/genesis_pb.ts | 186 ++ .../ibc/core/client/v1/query_cosmes.ts | 119 ++ src/protobufs/ibc/core/client/v1/query_pb.ts | 839 +++++++++ src/protobufs/ibc/core/client/v1/tx_cosmes.ts | 69 + src/protobufs/ibc/core/client/v1/tx_pb.ts | 485 +++++ .../ibc/core/commitment/v1/commitment_pb.ts | 174 ++ .../ibc/core/connection/v1/connection_pb.ts | 457 +++++ .../ibc/core/connection/v1/genesis_pb.ts | 68 + .../ibc/core/connection/v1/query_cosmes.ts | 84 + .../ibc/core/connection/v1/query_pb.ts | 604 +++++++ .../ibc/core/connection/v1/tx_cosmes.ts | 71 + src/protobufs/ibc/core/connection/v1/tx_pb.ts | 585 ++++++ src/protobufs/ibc/core/types/v1/genesis_pb.ts | 68 + .../lightclients/localhost/v2/localhost_pb.ts | 50 + .../solomachine/v2/solomachine_pb.ts | 929 ++++++++++ .../solomachine/v3/solomachine_pb.ts | 458 +++++ .../tendermint/v1/tendermint_pb.ts | 365 ++++ src/protobufs/index.ts | 501 +++++- .../osmosis/concentrated-liquidity/gov_pb.ts | 6 - src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts | 179 +- .../osmosis/gamm/v1beta1/query_cosmes.ts | 15 +- .../osmosis/gamm/v1beta1/query_pb.ts | 71 + src/protobufs/osmosis/ibc-hooks/genesis_pb.ts | 46 + src/protobufs/osmosis/ibc-hooks/params_pb.ts | 45 + src/protobufs/osmosis/ibc-hooks/tx_cosmes.ts | 22 + src/protobufs/osmosis/ibc-hooks/tx_pb.ts | 100 ++ .../poolmanager/v1beta1/query_cosmes.ts | 35 +- .../osmosis/poolmanager/v1beta1/query_pb.ts | 110 ++ .../osmosis/protorev/v1beta1/genesis_pb.ts | 14 +- .../osmosis/protorev/v1beta1/protorev_pb.ts | 302 ++++ .../osmosis/protorev/v1beta1/query_cosmes.ts | 16 +- .../osmosis/protorev/v1beta1/query_pb.ts | 67 +- .../osmosis/protorev/v1beta1/tx_cosmes.ts | 16 +- .../osmosis/protorev/v1beta1/tx_pb.ts | 62 +- .../osmosis/superfluid/query_cosmes.ts | 2 + src/protobufs/osmosis/superfluid/tx_cosmes.ts | 15 +- src/protobufs/osmosis/superfluid/tx_pb.ts | 113 ++ 83 files changed, 16771 insertions(+), 103 deletions(-) create mode 100644 src/protobufs/capability/v1/capability_pb.ts create mode 100644 src/protobufs/capability/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/ack_pb.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/fee_pb.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/metadata_pb.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/query_cosmes.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/query_pb.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts create mode 100644 src/protobufs/ibc/applications/fee/v1/tx_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts create mode 100644 src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts create mode 100644 src/protobufs/ibc/applications/transfer/v1/authz_pb.ts create mode 100644 src/protobufs/ibc/applications/transfer/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts create mode 100644 src/protobufs/ibc/applications/transfer/v1/query_pb.ts create mode 100644 src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts create mode 100644 src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts create mode 100644 src/protobufs/ibc/applications/transfer/v1/tx_pb.ts create mode 100644 src/protobufs/ibc/applications/transfer/v2/packet_pb.ts create mode 100644 src/protobufs/ibc/core/channel/v1/channel_pb.ts create mode 100644 src/protobufs/ibc/core/channel/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/core/channel/v1/query_cosmes.ts create mode 100644 src/protobufs/ibc/core/channel/v1/query_pb.ts create mode 100644 src/protobufs/ibc/core/channel/v1/tx_cosmes.ts create mode 100644 src/protobufs/ibc/core/channel/v1/tx_pb.ts create mode 100644 src/protobufs/ibc/core/client/v1/client_pb.ts create mode 100644 src/protobufs/ibc/core/client/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/core/client/v1/query_cosmes.ts create mode 100644 src/protobufs/ibc/core/client/v1/query_pb.ts create mode 100644 src/protobufs/ibc/core/client/v1/tx_cosmes.ts create mode 100644 src/protobufs/ibc/core/client/v1/tx_pb.ts create mode 100644 src/protobufs/ibc/core/commitment/v1/commitment_pb.ts create mode 100644 src/protobufs/ibc/core/connection/v1/connection_pb.ts create mode 100644 src/protobufs/ibc/core/connection/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/core/connection/v1/query_cosmes.ts create mode 100644 src/protobufs/ibc/core/connection/v1/query_pb.ts create mode 100644 src/protobufs/ibc/core/connection/v1/tx_cosmes.ts create mode 100644 src/protobufs/ibc/core/connection/v1/tx_pb.ts create mode 100644 src/protobufs/ibc/core/types/v1/genesis_pb.ts create mode 100644 src/protobufs/ibc/lightclients/localhost/v2/localhost_pb.ts create mode 100644 src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts create mode 100644 src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts create mode 100644 src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts create mode 100644 src/protobufs/osmosis/ibc-hooks/genesis_pb.ts create mode 100644 src/protobufs/osmosis/ibc-hooks/params_pb.ts create mode 100644 src/protobufs/osmosis/ibc-hooks/tx_cosmes.ts create mode 100644 src/protobufs/osmosis/ibc-hooks/tx_pb.ts diff --git a/src/protobufs/capability/v1/capability_pb.ts b/src/protobufs/capability/v1/capability_pb.ts new file mode 100644 index 00000000..855ca0f3 --- /dev/null +++ b/src/protobufs/capability/v1/capability_pb.ts @@ -0,0 +1,134 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file capability/v1/capability.proto (package capability.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Capability defines an implementation of an object capability. The index + * provided to a Capability must be globally unique. + * + * @generated from message capability.v1.Capability + */ +export class Capability extends Message { + /** + * @generated from field: uint64 index = 1; + */ + index = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "capability.v1.Capability"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Capability { + return new Capability().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Capability { + return new Capability().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Capability { + return new Capability().fromJsonString(jsonString, options); + } + + static equals(a: Capability | PlainMessage | undefined, b: Capability | PlainMessage | undefined): boolean { + return proto3.util.equals(Capability, a, b); + } +} + +/** + * Owner defines a single capability owner. An owner is defined by the name of + * capability and the module name. + * + * @generated from message capability.v1.Owner + */ +export class Owner extends Message { + /** + * @generated from field: string module = 1; + */ + module = ""; + + /** + * @generated from field: string name = 2; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "capability.v1.Owner"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Owner { + return new Owner().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Owner { + return new Owner().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Owner { + return new Owner().fromJsonString(jsonString, options); + } + + static equals(a: Owner | PlainMessage | undefined, b: Owner | PlainMessage | undefined): boolean { + return proto3.util.equals(Owner, a, b); + } +} + +/** + * CapabilityOwners defines a set of owners of a single Capability. The set of + * owners must be unique. + * + * @generated from message capability.v1.CapabilityOwners + */ +export class CapabilityOwners extends Message { + /** + * @generated from field: repeated capability.v1.Owner owners = 1; + */ + owners: Owner[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "capability.v1.CapabilityOwners"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owners", kind: "message", T: Owner, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CapabilityOwners { + return new CapabilityOwners().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CapabilityOwners { + return new CapabilityOwners().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CapabilityOwners { + return new CapabilityOwners().fromJsonString(jsonString, options); + } + + static equals(a: CapabilityOwners | PlainMessage | undefined, b: CapabilityOwners | PlainMessage | undefined): boolean { + return proto3.util.equals(CapabilityOwners, a, b); + } +} + diff --git a/src/protobufs/capability/v1/genesis_pb.ts b/src/protobufs/capability/v1/genesis_pb.ts new file mode 100644 index 00000000..46ec660d --- /dev/null +++ b/src/protobufs/capability/v1/genesis_pb.ts @@ -0,0 +1,108 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file capability/v1/genesis.proto (package capability.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { CapabilityOwners } from "./capability_pb.js"; + +/** + * GenesisOwners defines the capability owners with their corresponding index. + * + * @generated from message capability.v1.GenesisOwners + */ +export class GenesisOwners extends Message { + /** + * index is the index of the capability owner. + * + * @generated from field: uint64 index = 1; + */ + index = protoInt64.zero; + + /** + * index_owners are the owners at the given index. + * + * @generated from field: capability.v1.CapabilityOwners index_owners = 2; + */ + indexOwners?: CapabilityOwners; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "capability.v1.GenesisOwners"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "index_owners", kind: "message", T: CapabilityOwners }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisOwners { + return new GenesisOwners().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisOwners { + return new GenesisOwners().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisOwners { + return new GenesisOwners().fromJsonString(jsonString, options); + } + + static equals(a: GenesisOwners | PlainMessage | undefined, b: GenesisOwners | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisOwners, a, b); + } +} + +/** + * GenesisState defines the capability module's genesis state. + * + * @generated from message capability.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * index is the capability global index. + * + * @generated from field: uint64 index = 1; + */ + index = protoInt64.zero; + + /** + * owners represents a map from index to owners of the capability index + * index key is string to allow amino marshalling. + * + * @generated from field: repeated capability.v1.GenesisOwners owners = 2; + */ + owners: GenesisOwners[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "capability.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owners", kind: "message", T: GenesisOwners, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/cosmos/autocli/v1/options_pb.ts b/src/protobufs/cosmos/autocli/v1/options_pb.ts index 238cf032..c031b5cf 100644 --- a/src/protobufs/cosmos/autocli/v1/options_pb.ts +++ b/src/protobufs/cosmos/autocli/v1/options_pb.ts @@ -88,6 +88,15 @@ export class ServiceCommandDescriptor extends Message */ subCommands: { [key: string]: ServiceCommandDescriptor } = {}; + /** + * enhance_custom_commands specifies whether to skip the service when generating commands, if a custom command already exists, + * or enhance the existing command. If set to true, the custom command will be enhanced with the services from gRPC. + * otherwise when a custom command exists, no commands will be generated for the service. + * + * @generated from field: bool enhance_custom_command = 4; + */ + enhanceCustomCommand = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -99,6 +108,7 @@ export class ServiceCommandDescriptor extends Message { no: 1, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "rpc_command_options", kind: "message", T: RpcCommandOptions, repeated: true }, { no: 3, name: "sub_commands", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ServiceCommandDescriptor} }, + { no: 4, name: "enhance_custom_command", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ServiceCommandDescriptor { diff --git a/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts index 4bee1dbb..3334dd12 100644 --- a/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequest, QueryBalanceResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryParamsRequest, QueryParamsResponse, QuerySendEnabledRequest, QuerySendEnabledResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; +import { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequest, QueryBalanceResponse, QueryDenomMetadataByQueryStringRequest, QueryDenomMetadataByQueryStringResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryParamsRequest, QueryParamsResponse, QuerySendEnabledRequest, QuerySendEnabledResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.bank.v1beta1.Query"; @@ -124,6 +124,18 @@ export const QueryDenomMetadataService = { Response: QueryDenomMetadataResponse, } as const; +/** + * DenomsMetadata queries the client metadata of a given coin denomination. + * + * @generated from rpc cosmos.bank.v1beta1.Query.DenomMetadataByQueryString + */ +export const QueryDenomMetadataByQueryStringService = { + typeName: TYPE_NAME, + method: "DenomMetadataByQueryString", + Request: QueryDenomMetadataByQueryStringRequest, + Response: QueryDenomMetadataByQueryStringResponse, +} as const; + /** * DenomsMetadata queries the client metadata for all registered coin * denominations. diff --git a/src/protobufs/cosmos/bank/v1beta1/query_pb.ts b/src/protobufs/cosmos/bank/v1beta1/query_pb.ts index cd61828b..deff357c 100644 --- a/src/protobufs/cosmos/bank/v1beta1/query_pb.ts +++ b/src/protobufs/cosmos/bank/v1beta1/query_pb.ts @@ -834,6 +834,90 @@ export class QueryDenomMetadataResponse extends Message { + /** + * denom is the coin denom to query the metadata for. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMetadataByQueryStringRequest, a, b); + } +} + +/** + * QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC + * method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. + * + * @generated from message cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse + */ +export class QueryDenomMetadataByQueryStringResponse extends Message { + /** + * metadata describes and provides all the client information for the requested token. + * + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 1; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMetadataByQueryStringResponse, a, b); + } +} + /** * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, * which queries for a paginated set of all account holders of a particular diff --git a/src/protobufs/cosmos/gov/v1/gov_pb.ts b/src/protobufs/cosmos/gov/v1/gov_pb.ts index e9925592..bb29420f 100644 --- a/src/protobufs/cosmos/gov/v1/gov_pb.ts +++ b/src/protobufs/cosmos/gov/v1/gov_pb.ts @@ -344,6 +344,15 @@ export class Proposal extends Message { */ expedited = false; + /** + * failed_reason defines the reason why the proposal failed + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string failed_reason = 15; + */ + failedReason = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -366,6 +375,7 @@ export class Proposal extends Message { { no: 12, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 14, name: "expedited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 15, name: "failed_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { diff --git a/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts b/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts index e2930e3a..664fbe7a 100644 --- a/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts @@ -686,14 +686,14 @@ export class DVVTriplets extends Message { */ export class Delegation extends Message { /** - * delegator_address is the bech32-encoded address of the delegator. + * delegator_address is the encoded address of the delegator. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; /** - * validator_address is the bech32-encoded address of the validator. + * validator_address is the encoded address of the validator. * * @generated from field: string validator_address = 2; */ @@ -744,14 +744,14 @@ export class Delegation extends Message { */ export class UnbondingDelegation extends Message { /** - * delegator_address is the bech32-encoded address of the delegator. + * delegator_address is the encoded address of the delegator. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; /** - * validator_address is the bech32-encoded address of the validator. + * validator_address is the encoded address of the validator. * * @generated from field: string validator_address = 2; */ diff --git a/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts b/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts index be1099e8..016e5230 100644 --- a/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts +++ b/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgClearAdmin, MsgClearAdminResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgInstantiateContract, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgInstantiateContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgPinCodes, MsgPinCodesResponse, MsgStoreAndInstantiateContract, MsgStoreAndInstantiateContractResponse, MsgStoreCode, MsgStoreCodeResponse, MsgSudoContract, MsgSudoContractResponse, MsgUnpinCodes, MsgUnpinCodesResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgUpdateInstantiateConfig, MsgUpdateInstantiateConfigResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; +import { MsgAddCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddressesResponse, MsgClearAdmin, MsgClearAdminResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgInstantiateContract, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgInstantiateContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgPinCodes, MsgPinCodesResponse, MsgRemoveCodeUploadParamsAddresses, MsgRemoveCodeUploadParamsAddressesResponse, MsgStoreAndInstantiateContract, MsgStoreAndInstantiateContractResponse, MsgStoreCode, MsgStoreCodeResponse, MsgSudoContract, MsgSudoContractResponse, MsgUnpinCodes, MsgUnpinCodesResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgUpdateInstantiateConfig, MsgUpdateInstantiateConfigResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmwasm.wasm.v1.Msg"; @@ -180,3 +180,31 @@ export const MsgStoreAndInstantiateContractService = { Response: MsgStoreAndInstantiateContractResponse, } as const; +/** + * RemoveCodeUploadParamsAddresses defines a governance operation for + * removing addresses from code upload params. + * The authority is defined in the keeper. + * + * @generated from rpc cosmwasm.wasm.v1.Msg.RemoveCodeUploadParamsAddresses + */ +export const MsgRemoveCodeUploadParamsAddressesService = { + typeName: TYPE_NAME, + method: "RemoveCodeUploadParamsAddresses", + Request: MsgRemoveCodeUploadParamsAddresses, + Response: MsgRemoveCodeUploadParamsAddressesResponse, +} as const; + +/** + * AddCodeUploadParamsAddresses defines a governance operation for + * adding addresses to code upload params. + * The authority is defined in the keeper. + * + * @generated from rpc cosmwasm.wasm.v1.Msg.AddCodeUploadParamsAddresses + */ +export const MsgAddCodeUploadParamsAddressesService = { + typeName: TYPE_NAME, + method: "AddCodeUploadParamsAddresses", + Request: MsgAddCodeUploadParamsAddresses, + Response: MsgAddCodeUploadParamsAddressesResponse, +} as const; + diff --git a/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts b/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts index 4b11cbdd..ff2dc1b0 100644 --- a/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts +++ b/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts @@ -1415,3 +1415,167 @@ export class MsgStoreAndInstantiateContractResponse extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: repeated string addresses = 2; + */ + addresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCodeUploadParamsAddresses { + return new MsgAddCodeUploadParamsAddresses().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCodeUploadParamsAddresses { + return new MsgAddCodeUploadParamsAddresses().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddCodeUploadParamsAddresses { + return new MsgAddCodeUploadParamsAddresses().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddCodeUploadParamsAddresses | PlainMessage | undefined, b: MsgAddCodeUploadParamsAddresses | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddCodeUploadParamsAddresses, a, b); + } +} + +/** + * MsgAddCodeUploadParamsAddressesResponse defines the response + * structure for executing a MsgAddCodeUploadParamsAddresses message. + * + * @generated from message cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse + */ +export class MsgAddCodeUploadParamsAddressesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { + return new MsgAddCodeUploadParamsAddressesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { + return new MsgAddCodeUploadParamsAddressesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { + return new MsgAddCodeUploadParamsAddressesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddCodeUploadParamsAddressesResponse | PlainMessage | undefined, b: MsgAddCodeUploadParamsAddressesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddCodeUploadParamsAddressesResponse, a, b); + } +} + +/** + * MsgRemoveCodeUploadParamsAddresses is the + * MsgRemoveCodeUploadParamsAddresses request type. + * + * @generated from message cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses + */ +export class MsgRemoveCodeUploadParamsAddresses extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: repeated string addresses = 2; + */ + addresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveCodeUploadParamsAddresses { + return new MsgRemoveCodeUploadParamsAddresses().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveCodeUploadParamsAddresses { + return new MsgRemoveCodeUploadParamsAddresses().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveCodeUploadParamsAddresses { + return new MsgRemoveCodeUploadParamsAddresses().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveCodeUploadParamsAddresses | PlainMessage | undefined, b: MsgRemoveCodeUploadParamsAddresses | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveCodeUploadParamsAddresses, a, b); + } +} + +/** + * MsgRemoveCodeUploadParamsAddressesResponse defines the response + * structure for executing a MsgRemoveCodeUploadParamsAddresses message. + * + * @generated from message cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse + */ +export class MsgRemoveCodeUploadParamsAddressesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { + return new MsgRemoveCodeUploadParamsAddressesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { + return new MsgRemoveCodeUploadParamsAddressesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { + return new MsgRemoveCodeUploadParamsAddressesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveCodeUploadParamsAddressesResponse | PlainMessage | undefined, b: MsgRemoveCodeUploadParamsAddressesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveCodeUploadParamsAddressesResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/fee/v1/ack_pb.ts b/src/protobufs/ibc/applications/fee/v1/ack_pb.ts new file mode 100644 index 00000000..6963d284 --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/ack_pb.ts @@ -0,0 +1,65 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/ack.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * IncentivizedAcknowledgement is the acknowledgement format to be used by applications wrapped in the fee middleware + * + * @generated from message ibc.applications.fee.v1.IncentivizedAcknowledgement + */ +export class IncentivizedAcknowledgement extends Message { + /** + * the underlying app acknowledgement bytes + * + * @generated from field: bytes app_acknowledgement = 1; + */ + appAcknowledgement = new Uint8Array(0); + + /** + * the relayer address which submits the recv packet message + * + * @generated from field: string forward_relayer_address = 2; + */ + forwardRelayerAddress = ""; + + /** + * success flag of the base application callback + * + * @generated from field: bool underlying_app_success = 3; + */ + underlyingAppSuccess = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.IncentivizedAcknowledgement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "app_acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "forward_relayer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "underlying_app_success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IncentivizedAcknowledgement { + return new IncentivizedAcknowledgement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IncentivizedAcknowledgement { + return new IncentivizedAcknowledgement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IncentivizedAcknowledgement { + return new IncentivizedAcknowledgement().fromJsonString(jsonString, options); + } + + static equals(a: IncentivizedAcknowledgement | PlainMessage | undefined, b: IncentivizedAcknowledgement | PlainMessage | undefined): boolean { + return proto3.util.equals(IncentivizedAcknowledgement, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/fee/v1/fee_pb.ts b/src/protobufs/ibc/applications/fee/v1/fee_pb.ts new file mode 100644 index 00000000..e120d6c5 --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/fee_pb.ts @@ -0,0 +1,214 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/fee.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; +import { PacketId } from "../../../core/channel/v1/channel_pb.js"; + +/** + * Fee defines the ICS29 receive, acknowledgement and timeout fees + * + * @generated from message ibc.applications.fee.v1.Fee + */ +export class Fee extends Message { + /** + * the packet receive fee + * + * @generated from field: repeated cosmos.base.v1beta1.Coin recv_fee = 1; + */ + recvFee: Coin[] = []; + + /** + * the packet acknowledgement fee + * + * @generated from field: repeated cosmos.base.v1beta1.Coin ack_fee = 2; + */ + ackFee: Coin[] = []; + + /** + * the packet timeout fee + * + * @generated from field: repeated cosmos.base.v1beta1.Coin timeout_fee = 3; + */ + timeoutFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.Fee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recv_fee", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "ack_fee", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "timeout_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Fee { + return new Fee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Fee { + return new Fee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Fee { + return new Fee().fromJsonString(jsonString, options); + } + + static equals(a: Fee | PlainMessage | undefined, b: Fee | PlainMessage | undefined): boolean { + return proto3.util.equals(Fee, a, b); + } +} + +/** + * PacketFee contains ICS29 relayer fees, refund address and optional list of permitted relayers + * + * @generated from message ibc.applications.fee.v1.PacketFee + */ +export class PacketFee extends Message { + /** + * fee encapsulates the recv, ack and timeout fees associated with an IBC packet + * + * @generated from field: ibc.applications.fee.v1.Fee fee = 1; + */ + fee?: Fee; + + /** + * the refund address for unspent fees + * + * @generated from field: string refund_address = 2; + */ + refundAddress = ""; + + /** + * optional list of relayers permitted to receive fees + * + * @generated from field: repeated string relayers = 3; + */ + relayers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.PacketFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee", kind: "message", T: Fee }, + { no: 2, name: "refund_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "relayers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketFee { + return new PacketFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketFee { + return new PacketFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketFee { + return new PacketFee().fromJsonString(jsonString, options); + } + + static equals(a: PacketFee | PlainMessage | undefined, b: PacketFee | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketFee, a, b); + } +} + +/** + * PacketFees contains a list of type PacketFee + * + * @generated from message ibc.applications.fee.v1.PacketFees + */ +export class PacketFees extends Message { + /** + * list of packet fees + * + * @generated from field: repeated ibc.applications.fee.v1.PacketFee packet_fees = 1; + */ + packetFees: PacketFee[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.PacketFees"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_fees", kind: "message", T: PacketFee, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketFees { + return new PacketFees().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketFees { + return new PacketFees().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketFees { + return new PacketFees().fromJsonString(jsonString, options); + } + + static equals(a: PacketFees | PlainMessage | undefined, b: PacketFees | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketFees, a, b); + } +} + +/** + * IdentifiedPacketFees contains a list of type PacketFee and associated PacketId + * + * @generated from message ibc.applications.fee.v1.IdentifiedPacketFees + */ +export class IdentifiedPacketFees extends Message { + /** + * unique packet identifier comprised of the channel ID, port ID and sequence + * + * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; + */ + packetId?: PacketId; + + /** + * list of packet fees + * + * @generated from field: repeated ibc.applications.fee.v1.PacketFee packet_fees = 2; + */ + packetFees: PacketFee[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.IdentifiedPacketFees"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_id", kind: "message", T: PacketId }, + { no: 2, name: "packet_fees", kind: "message", T: PacketFee, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedPacketFees { + return new IdentifiedPacketFees().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedPacketFees { + return new IdentifiedPacketFees().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IdentifiedPacketFees { + return new IdentifiedPacketFees().fromJsonString(jsonString, options); + } + + static equals(a: IdentifiedPacketFees | PlainMessage | undefined, b: IdentifiedPacketFees | PlainMessage | undefined): boolean { + return proto3.util.equals(IdentifiedPacketFees, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts b/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts new file mode 100644 index 00000000..e379baed --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts @@ -0,0 +1,296 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/genesis.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { IdentifiedPacketFees } from "./fee_pb.js"; +import { PacketId } from "../../../core/channel/v1/channel_pb.js"; + +/** + * GenesisState defines the ICS29 fee middleware genesis state + * + * @generated from message ibc.applications.fee.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * list of identified packet fees + * + * @generated from field: repeated ibc.applications.fee.v1.IdentifiedPacketFees identified_fees = 1; + */ + identifiedFees: IdentifiedPacketFees[] = []; + + /** + * list of fee enabled channels + * + * @generated from field: repeated ibc.applications.fee.v1.FeeEnabledChannel fee_enabled_channels = 2; + */ + feeEnabledChannels: FeeEnabledChannel[] = []; + + /** + * list of registered payees + * + * @generated from field: repeated ibc.applications.fee.v1.RegisteredPayee registered_payees = 3; + */ + registeredPayees: RegisteredPayee[] = []; + + /** + * list of registered counterparty payees + * + * @generated from field: repeated ibc.applications.fee.v1.RegisteredCounterpartyPayee registered_counterparty_payees = 4; + */ + registeredCounterpartyPayees: RegisteredCounterpartyPayee[] = []; + + /** + * list of forward relayer addresses + * + * @generated from field: repeated ibc.applications.fee.v1.ForwardRelayerAddress forward_relayers = 5; + */ + forwardRelayers: ForwardRelayerAddress[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identified_fees", kind: "message", T: IdentifiedPacketFees, repeated: true }, + { no: 2, name: "fee_enabled_channels", kind: "message", T: FeeEnabledChannel, repeated: true }, + { no: 3, name: "registered_payees", kind: "message", T: RegisteredPayee, repeated: true }, + { no: 4, name: "registered_counterparty_payees", kind: "message", T: RegisteredCounterpartyPayee, repeated: true }, + { no: 5, name: "forward_relayers", kind: "message", T: ForwardRelayerAddress, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * FeeEnabledChannel contains the PortID & ChannelID for a fee enabled channel + * + * @generated from message ibc.applications.fee.v1.FeeEnabledChannel + */ +export class FeeEnabledChannel extends Message { + /** + * unique port identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * unique channel identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.FeeEnabledChannel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeEnabledChannel { + return new FeeEnabledChannel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeEnabledChannel { + return new FeeEnabledChannel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeEnabledChannel { + return new FeeEnabledChannel().fromJsonString(jsonString, options); + } + + static equals(a: FeeEnabledChannel | PlainMessage | undefined, b: FeeEnabledChannel | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeEnabledChannel, a, b); + } +} + +/** + * RegisteredPayee contains the relayer address and payee address for a specific channel + * + * @generated from message ibc.applications.fee.v1.RegisteredPayee + */ +export class RegisteredPayee extends Message { + /** + * unique channel identifier + * + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * the relayer address + * + * @generated from field: string relayer = 2; + */ + relayer = ""; + + /** + * the payee address + * + * @generated from field: string payee = 3; + */ + payee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.RegisteredPayee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredPayee { + return new RegisteredPayee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredPayee { + return new RegisteredPayee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredPayee { + return new RegisteredPayee().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredPayee | PlainMessage | undefined, b: RegisteredPayee | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredPayee, a, b); + } +} + +/** + * RegisteredCounterpartyPayee contains the relayer address and counterparty payee address for a specific channel (used + * for recv fee distribution) + * + * @generated from message ibc.applications.fee.v1.RegisteredCounterpartyPayee + */ +export class RegisteredCounterpartyPayee extends Message { + /** + * unique channel identifier + * + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * the relayer address + * + * @generated from field: string relayer = 2; + */ + relayer = ""; + + /** + * the counterparty payee address + * + * @generated from field: string counterparty_payee = 3; + */ + counterpartyPayee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.RegisteredCounterpartyPayee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "counterparty_payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredCounterpartyPayee { + return new RegisteredCounterpartyPayee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredCounterpartyPayee { + return new RegisteredCounterpartyPayee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredCounterpartyPayee { + return new RegisteredCounterpartyPayee().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredCounterpartyPayee | PlainMessage | undefined, b: RegisteredCounterpartyPayee | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredCounterpartyPayee, a, b); + } +} + +/** + * ForwardRelayerAddress contains the forward relayer address and PacketId used for async acknowledgements + * + * @generated from message ibc.applications.fee.v1.ForwardRelayerAddress + */ +export class ForwardRelayerAddress extends Message { + /** + * the forward relayer address + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * unique packet identifer comprised of the channel ID, port ID and sequence + * + * @generated from field: ibc.core.channel.v1.PacketId packet_id = 2; + */ + packetId?: PacketId; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.ForwardRelayerAddress"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "packet_id", kind: "message", T: PacketId }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ForwardRelayerAddress { + return new ForwardRelayerAddress().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ForwardRelayerAddress { + return new ForwardRelayerAddress().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ForwardRelayerAddress { + return new ForwardRelayerAddress().fromJsonString(jsonString, options); + } + + static equals(a: ForwardRelayerAddress | PlainMessage | undefined, b: ForwardRelayerAddress | PlainMessage | undefined): boolean { + return proto3.util.equals(ForwardRelayerAddress, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts b/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts new file mode 100644 index 00000000..67da24f2 --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/metadata.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Metadata defines the ICS29 channel specific metadata encoded into the channel version bytestring + * See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning + * + * @generated from message ibc.applications.fee.v1.Metadata + */ +export class Metadata extends Message { + /** + * fee_version defines the ICS29 fee version + * + * @generated from field: string fee_version = 1; + */ + feeVersion = ""; + + /** + * app_version defines the underlying application version, which may or may not be a JSON encoded bytestring + * + * @generated from field: string app_version = 2; + */ + appVersion = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.Metadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { + return new Metadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { + return new Metadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Metadata { + return new Metadata().fromJsonString(jsonString, options); + } + + static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { + return proto3.util.equals(Metadata, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts b/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts new file mode 100644 index 00000000..e9551324 --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts @@ -0,0 +1,129 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/query.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCounterpartyPayeeRequest, QueryCounterpartyPayeeResponse, QueryFeeEnabledChannelRequest, QueryFeeEnabledChannelResponse, QueryFeeEnabledChannelsRequest, QueryFeeEnabledChannelsResponse, QueryIncentivizedPacketRequest, QueryIncentivizedPacketResponse, QueryIncentivizedPacketsForChannelRequest, QueryIncentivizedPacketsForChannelResponse, QueryIncentivizedPacketsRequest, QueryIncentivizedPacketsResponse, QueryPayeeRequest, QueryPayeeResponse, QueryTotalAckFeesRequest, QueryTotalAckFeesResponse, QueryTotalRecvFeesRequest, QueryTotalRecvFeesResponse, QueryTotalTimeoutFeesRequest, QueryTotalTimeoutFeesResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.applications.fee.v1.Query"; + +/** + * IncentivizedPackets returns all incentivized packets and their associated fees + * + * @generated from rpc ibc.applications.fee.v1.Query.IncentivizedPackets + */ +export const QueryIncentivizedPacketsService = { + typeName: TYPE_NAME, + method: "IncentivizedPackets", + Request: QueryIncentivizedPacketsRequest, + Response: QueryIncentivizedPacketsResponse, +} as const; + +/** + * IncentivizedPacket returns all packet fees for a packet given its identifier + * + * @generated from rpc ibc.applications.fee.v1.Query.IncentivizedPacket + */ +export const QueryIncentivizedPacketService = { + typeName: TYPE_NAME, + method: "IncentivizedPacket", + Request: QueryIncentivizedPacketRequest, + Response: QueryIncentivizedPacketResponse, +} as const; + +/** + * Gets all incentivized packets for a specific channel + * + * @generated from rpc ibc.applications.fee.v1.Query.IncentivizedPacketsForChannel + */ +export const QueryIncentivizedPacketsForChannelService = { + typeName: TYPE_NAME, + method: "IncentivizedPacketsForChannel", + Request: QueryIncentivizedPacketsForChannelRequest, + Response: QueryIncentivizedPacketsForChannelResponse, +} as const; + +/** + * TotalRecvFees returns the total receive fees for a packet given its identifier + * + * @generated from rpc ibc.applications.fee.v1.Query.TotalRecvFees + */ +export const QueryTotalRecvFeesService = { + typeName: TYPE_NAME, + method: "TotalRecvFees", + Request: QueryTotalRecvFeesRequest, + Response: QueryTotalRecvFeesResponse, +} as const; + +/** + * TotalAckFees returns the total acknowledgement fees for a packet given its identifier + * + * @generated from rpc ibc.applications.fee.v1.Query.TotalAckFees + */ +export const QueryTotalAckFeesService = { + typeName: TYPE_NAME, + method: "TotalAckFees", + Request: QueryTotalAckFeesRequest, + Response: QueryTotalAckFeesResponse, +} as const; + +/** + * TotalTimeoutFees returns the total timeout fees for a packet given its identifier + * + * @generated from rpc ibc.applications.fee.v1.Query.TotalTimeoutFees + */ +export const QueryTotalTimeoutFeesService = { + typeName: TYPE_NAME, + method: "TotalTimeoutFees", + Request: QueryTotalTimeoutFeesRequest, + Response: QueryTotalTimeoutFeesResponse, +} as const; + +/** + * Payee returns the registered payee address for a specific channel given the relayer address + * + * @generated from rpc ibc.applications.fee.v1.Query.Payee + */ +export const QueryPayeeService = { + typeName: TYPE_NAME, + method: "Payee", + Request: QueryPayeeRequest, + Response: QueryPayeeResponse, +} as const; + +/** + * CounterpartyPayee returns the registered counterparty payee for forward relaying + * + * @generated from rpc ibc.applications.fee.v1.Query.CounterpartyPayee + */ +export const QueryCounterpartyPayeeService = { + typeName: TYPE_NAME, + method: "CounterpartyPayee", + Request: QueryCounterpartyPayeeRequest, + Response: QueryCounterpartyPayeeResponse, +} as const; + +/** + * FeeEnabledChannels returns a list of all fee enabled channels + * + * @generated from rpc ibc.applications.fee.v1.Query.FeeEnabledChannels + */ +export const QueryFeeEnabledChannelsService = { + typeName: TYPE_NAME, + method: "FeeEnabledChannels", + Request: QueryFeeEnabledChannelsRequest, + Response: QueryFeeEnabledChannelsResponse, +} as const; + +/** + * FeeEnabledChannel returns true if the provided port and channel identifiers belong to a fee enabled channel + * + * @generated from rpc ibc.applications.fee.v1.Query.FeeEnabledChannel + */ +export const QueryFeeEnabledChannelService = { + typeName: TYPE_NAME, + method: "FeeEnabledChannel", + Request: QueryFeeEnabledChannelRequest, + Response: QueryFeeEnabledChannelResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/fee/v1/query_pb.ts b/src/protobufs/ibc/applications/fee/v1/query_pb.ts new file mode 100644 index 00000000..e5da471c --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/query_pb.ts @@ -0,0 +1,926 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/query.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { IdentifiedPacketFees } from "./fee_pb.js"; +import { PacketId } from "../../../core/channel/v1/channel_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; +import { FeeEnabledChannel } from "./genesis_pb.js"; + +/** + * QueryIncentivizedPacketsRequest defines the request type for the IncentivizedPackets rpc + * + * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + */ +export class QueryIncentivizedPacketsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * block height at which to query + * + * @generated from field: uint64 query_height = 2; + */ + queryHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsRequest { + return new QueryIncentivizedPacketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsRequest { + return new QueryIncentivizedPacketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsRequest { + return new QueryIncentivizedPacketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncentivizedPacketsRequest | PlainMessage | undefined, b: QueryIncentivizedPacketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncentivizedPacketsRequest, a, b); + } +} + +/** + * QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPackets rpc + * + * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + */ +export class QueryIncentivizedPacketsResponse extends Message { + /** + * list of identified fees for incentivized packets + * + * @generated from field: repeated ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packets = 1; + */ + incentivizedPackets: IdentifiedPacketFees[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "incentivized_packets", kind: "message", T: IdentifiedPacketFees, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsResponse { + return new QueryIncentivizedPacketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsResponse { + return new QueryIncentivizedPacketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsResponse { + return new QueryIncentivizedPacketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncentivizedPacketsResponse | PlainMessage | undefined, b: QueryIncentivizedPacketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncentivizedPacketsResponse, a, b); + } +} + +/** + * QueryIncentivizedPacketRequest defines the request type for the IncentivizedPacket rpc + * + * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketRequest + */ +export class QueryIncentivizedPacketRequest extends Message { + /** + * unique packet identifier comprised of channel ID, port ID and sequence + * + * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; + */ + packetId?: PacketId; + + /** + * block height at which to query + * + * @generated from field: uint64 query_height = 2; + */ + queryHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_id", kind: "message", T: PacketId }, + { no: 2, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketRequest { + return new QueryIncentivizedPacketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketRequest { + return new QueryIncentivizedPacketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketRequest { + return new QueryIncentivizedPacketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncentivizedPacketRequest | PlainMessage | undefined, b: QueryIncentivizedPacketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncentivizedPacketRequest, a, b); + } +} + +/** + * QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPacket rpc + * + * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketResponse + */ +export class QueryIncentivizedPacketResponse extends Message { + /** + * the identified fees for the incentivized packet + * + * @generated from field: ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packet = 1; + */ + incentivizedPacket?: IdentifiedPacketFees; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "incentivized_packet", kind: "message", T: IdentifiedPacketFees }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketResponse { + return new QueryIncentivizedPacketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketResponse { + return new QueryIncentivizedPacketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketResponse { + return new QueryIncentivizedPacketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncentivizedPacketResponse | PlainMessage | undefined, b: QueryIncentivizedPacketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncentivizedPacketResponse, a, b); + } +} + +/** + * QueryIncentivizedPacketsForChannelRequest defines the request type for querying for all incentivized packets + * for a specific channel + * + * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + */ +export class QueryIncentivizedPacketsForChannelRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 3; + */ + channelId = ""; + + /** + * Height to query at + * + * @generated from field: uint64 query_height = 4; + */ + queryHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsForChannelRequest { + return new QueryIncentivizedPacketsForChannelRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsForChannelRequest { + return new QueryIncentivizedPacketsForChannelRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsForChannelRequest { + return new QueryIncentivizedPacketsForChannelRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncentivizedPacketsForChannelRequest | PlainMessage | undefined, b: QueryIncentivizedPacketsForChannelRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncentivizedPacketsForChannelRequest, a, b); + } +} + +/** + * QueryIncentivizedPacketsResponse defines the response type for the incentivized packets RPC + * + * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + */ +export class QueryIncentivizedPacketsForChannelResponse extends Message { + /** + * Map of all incentivized_packets + * + * @generated from field: repeated ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packets = 1; + */ + incentivizedPackets: IdentifiedPacketFees[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "incentivized_packets", kind: "message", T: IdentifiedPacketFees, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsForChannelResponse { + return new QueryIncentivizedPacketsForChannelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsForChannelResponse { + return new QueryIncentivizedPacketsForChannelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsForChannelResponse { + return new QueryIncentivizedPacketsForChannelResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncentivizedPacketsForChannelResponse | PlainMessage | undefined, b: QueryIncentivizedPacketsForChannelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncentivizedPacketsForChannelResponse, a, b); + } +} + +/** + * QueryTotalRecvFeesRequest defines the request type for the TotalRecvFees rpc + * + * @generated from message ibc.applications.fee.v1.QueryTotalRecvFeesRequest + */ +export class QueryTotalRecvFeesRequest extends Message { + /** + * the packet identifier for the associated fees + * + * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; + */ + packetId?: PacketId; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryTotalRecvFeesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_id", kind: "message", T: PacketId }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalRecvFeesRequest { + return new QueryTotalRecvFeesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalRecvFeesRequest { + return new QueryTotalRecvFeesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalRecvFeesRequest { + return new QueryTotalRecvFeesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalRecvFeesRequest | PlainMessage | undefined, b: QueryTotalRecvFeesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalRecvFeesRequest, a, b); + } +} + +/** + * QueryTotalRecvFeesResponse defines the response type for the TotalRecvFees rpc + * + * @generated from message ibc.applications.fee.v1.QueryTotalRecvFeesResponse + */ +export class QueryTotalRecvFeesResponse extends Message { + /** + * the total packet receive fees + * + * @generated from field: repeated cosmos.base.v1beta1.Coin recv_fees = 1; + */ + recvFees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryTotalRecvFeesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recv_fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalRecvFeesResponse { + return new QueryTotalRecvFeesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalRecvFeesResponse { + return new QueryTotalRecvFeesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalRecvFeesResponse { + return new QueryTotalRecvFeesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalRecvFeesResponse | PlainMessage | undefined, b: QueryTotalRecvFeesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalRecvFeesResponse, a, b); + } +} + +/** + * QueryTotalAckFeesRequest defines the request type for the TotalAckFees rpc + * + * @generated from message ibc.applications.fee.v1.QueryTotalAckFeesRequest + */ +export class QueryTotalAckFeesRequest extends Message { + /** + * the packet identifier for the associated fees + * + * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; + */ + packetId?: PacketId; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryTotalAckFeesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_id", kind: "message", T: PacketId }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalAckFeesRequest { + return new QueryTotalAckFeesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalAckFeesRequest { + return new QueryTotalAckFeesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalAckFeesRequest { + return new QueryTotalAckFeesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalAckFeesRequest | PlainMessage | undefined, b: QueryTotalAckFeesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalAckFeesRequest, a, b); + } +} + +/** + * QueryTotalAckFeesResponse defines the response type for the TotalAckFees rpc + * + * @generated from message ibc.applications.fee.v1.QueryTotalAckFeesResponse + */ +export class QueryTotalAckFeesResponse extends Message { + /** + * the total packet acknowledgement fees + * + * @generated from field: repeated cosmos.base.v1beta1.Coin ack_fees = 1; + */ + ackFees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryTotalAckFeesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ack_fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalAckFeesResponse { + return new QueryTotalAckFeesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalAckFeesResponse { + return new QueryTotalAckFeesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalAckFeesResponse { + return new QueryTotalAckFeesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalAckFeesResponse | PlainMessage | undefined, b: QueryTotalAckFeesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalAckFeesResponse, a, b); + } +} + +/** + * QueryTotalTimeoutFeesRequest defines the request type for the TotalTimeoutFees rpc + * + * @generated from message ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + */ +export class QueryTotalTimeoutFeesRequest extends Message { + /** + * the packet identifier for the associated fees + * + * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; + */ + packetId?: PacketId; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_id", kind: "message", T: PacketId }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalTimeoutFeesRequest { + return new QueryTotalTimeoutFeesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalTimeoutFeesRequest { + return new QueryTotalTimeoutFeesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalTimeoutFeesRequest { + return new QueryTotalTimeoutFeesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalTimeoutFeesRequest | PlainMessage | undefined, b: QueryTotalTimeoutFeesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalTimeoutFeesRequest, a, b); + } +} + +/** + * QueryTotalTimeoutFeesResponse defines the response type for the TotalTimeoutFees rpc + * + * @generated from message ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + */ +export class QueryTotalTimeoutFeesResponse extends Message { + /** + * the total packet timeout fees + * + * @generated from field: repeated cosmos.base.v1beta1.Coin timeout_fees = 1; + */ + timeoutFees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timeout_fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalTimeoutFeesResponse { + return new QueryTotalTimeoutFeesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalTimeoutFeesResponse { + return new QueryTotalTimeoutFeesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalTimeoutFeesResponse { + return new QueryTotalTimeoutFeesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalTimeoutFeesResponse | PlainMessage | undefined, b: QueryTotalTimeoutFeesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalTimeoutFeesResponse, a, b); + } +} + +/** + * QueryPayeeRequest defines the request type for the Payee rpc + * + * @generated from message ibc.applications.fee.v1.QueryPayeeRequest + */ +export class QueryPayeeRequest extends Message { + /** + * unique channel identifier + * + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * the relayer address to which the distribution address is registered + * + * @generated from field: string relayer = 2; + */ + relayer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryPayeeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPayeeRequest { + return new QueryPayeeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPayeeRequest { + return new QueryPayeeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPayeeRequest { + return new QueryPayeeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPayeeRequest | PlainMessage | undefined, b: QueryPayeeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPayeeRequest, a, b); + } +} + +/** + * QueryPayeeResponse defines the response type for the Payee rpc + * + * @generated from message ibc.applications.fee.v1.QueryPayeeResponse + */ +export class QueryPayeeResponse extends Message { + /** + * the payee address to which packet fees are paid out + * + * @generated from field: string payee_address = 1; + */ + payeeAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryPayeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "payee_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPayeeResponse { + return new QueryPayeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPayeeResponse { + return new QueryPayeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPayeeResponse { + return new QueryPayeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPayeeResponse | PlainMessage | undefined, b: QueryPayeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPayeeResponse, a, b); + } +} + +/** + * QueryCounterpartyPayeeRequest defines the request type for the CounterpartyPayee rpc + * + * @generated from message ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + */ +export class QueryCounterpartyPayeeRequest extends Message { + /** + * unique channel identifier + * + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * the relayer address to which the counterparty is registered + * + * @generated from field: string relayer = 2; + */ + relayer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryCounterpartyPayeeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCounterpartyPayeeRequest { + return new QueryCounterpartyPayeeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCounterpartyPayeeRequest { + return new QueryCounterpartyPayeeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCounterpartyPayeeRequest { + return new QueryCounterpartyPayeeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCounterpartyPayeeRequest | PlainMessage | undefined, b: QueryCounterpartyPayeeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCounterpartyPayeeRequest, a, b); + } +} + +/** + * QueryCounterpartyPayeeResponse defines the response type for the CounterpartyPayee rpc + * + * @generated from message ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + */ +export class QueryCounterpartyPayeeResponse extends Message { + /** + * the counterparty payee address used to compensate forward relaying + * + * @generated from field: string counterparty_payee = 1; + */ + counterpartyPayee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryCounterpartyPayeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "counterparty_payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCounterpartyPayeeResponse { + return new QueryCounterpartyPayeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCounterpartyPayeeResponse { + return new QueryCounterpartyPayeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCounterpartyPayeeResponse { + return new QueryCounterpartyPayeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCounterpartyPayeeResponse | PlainMessage | undefined, b: QueryCounterpartyPayeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCounterpartyPayeeResponse, a, b); + } +} + +/** + * QueryFeeEnabledChannelsRequest defines the request type for the FeeEnabledChannels rpc + * + * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + */ +export class QueryFeeEnabledChannelsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * block height at which to query + * + * @generated from field: uint64 query_height = 2; + */ + queryHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelsRequest { + return new QueryFeeEnabledChannelsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelsRequest { + return new QueryFeeEnabledChannelsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelsRequest { + return new QueryFeeEnabledChannelsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeEnabledChannelsRequest | PlainMessage | undefined, b: QueryFeeEnabledChannelsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeEnabledChannelsRequest, a, b); + } +} + +/** + * QueryFeeEnabledChannelsResponse defines the response type for the FeeEnabledChannels rpc + * + * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + */ +export class QueryFeeEnabledChannelsResponse extends Message { + /** + * list of fee enabled channels + * + * @generated from field: repeated ibc.applications.fee.v1.FeeEnabledChannel fee_enabled_channels = 1; + */ + feeEnabledChannels: FeeEnabledChannel[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_enabled_channels", kind: "message", T: FeeEnabledChannel, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelsResponse { + return new QueryFeeEnabledChannelsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelsResponse { + return new QueryFeeEnabledChannelsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelsResponse { + return new QueryFeeEnabledChannelsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeEnabledChannelsResponse | PlainMessage | undefined, b: QueryFeeEnabledChannelsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeEnabledChannelsResponse, a, b); + } +} + +/** + * QueryFeeEnabledChannelRequest defines the request type for the FeeEnabledChannel rpc + * + * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + */ +export class QueryFeeEnabledChannelRequest extends Message { + /** + * unique port identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * unique channel identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelRequest { + return new QueryFeeEnabledChannelRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelRequest { + return new QueryFeeEnabledChannelRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelRequest { + return new QueryFeeEnabledChannelRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeEnabledChannelRequest | PlainMessage | undefined, b: QueryFeeEnabledChannelRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeEnabledChannelRequest, a, b); + } +} + +/** + * QueryFeeEnabledChannelResponse defines the response type for the FeeEnabledChannel rpc + * + * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + */ +export class QueryFeeEnabledChannelResponse extends Message { + /** + * boolean flag representing the fee enabled channel status + * + * @generated from field: bool fee_enabled = 1; + */ + feeEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelResponse { + return new QueryFeeEnabledChannelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelResponse { + return new QueryFeeEnabledChannelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelResponse { + return new QueryFeeEnabledChannelResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeEnabledChannelResponse | PlainMessage | undefined, b: QueryFeeEnabledChannelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeEnabledChannelResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts b/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts new file mode 100644 index 00000000..432bfd17 --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts @@ -0,0 +1,71 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/tx.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgPayPacketFee, MsgPayPacketFeeAsync, MsgPayPacketFeeAsyncResponse, MsgPayPacketFeeResponse, MsgRegisterCounterpartyPayee, MsgRegisterCounterpartyPayeeResponse, MsgRegisterPayee, MsgRegisterPayeeResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.applications.fee.v1.Msg"; + +/** + * RegisterPayee defines a rpc handler method for MsgRegisterPayee + * RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional + * payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on + * the source chain from which packets originate as this is where fee distribution takes place. This function may be + * called more than once by a relayer, in which case, the latest payee is always used. + * + * @generated from rpc ibc.applications.fee.v1.Msg.RegisterPayee + */ +export const MsgRegisterPayeeService = { + typeName: TYPE_NAME, + method: "RegisterPayee", + Request: MsgRegisterPayee, + Response: MsgRegisterPayeeResponse, +} as const; + +/** + * RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee + * RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty + * payee address before relaying. This ensures they will be properly compensated for forward relaying since + * the destination chain must include the registered counterparty payee address in the acknowledgement. This function + * may be called more than once by a relayer, in which case, the latest counterparty payee address is always used. + * + * @generated from rpc ibc.applications.fee.v1.Msg.RegisterCounterpartyPayee + */ +export const MsgRegisterCounterpartyPayeeService = { + typeName: TYPE_NAME, + method: "RegisterCounterpartyPayee", + Request: MsgRegisterCounterpartyPayee, + Response: MsgRegisterCounterpartyPayeeResponse, +} as const; + +/** + * PayPacketFee defines a rpc handler method for MsgPayPacketFee + * PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to + * incentivize the relaying of the packet at the next sequence + * NOTE: This method is intended to be used within a multi msg transaction, where the subsequent msg that follows + * initiates the lifecycle of the incentivized packet + * + * @generated from rpc ibc.applications.fee.v1.Msg.PayPacketFee + */ +export const MsgPayPacketFeeService = { + typeName: TYPE_NAME, + method: "PayPacketFee", + Request: MsgPayPacketFee, + Response: MsgPayPacketFeeResponse, +} as const; + +/** + * PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync + * PayPacketFeeAsync is an open callback that may be called by any module/user that wishes to escrow funds in order to + * incentivize the relaying of a known packet (i.e. at a particular sequence) + * + * @generated from rpc ibc.applications.fee.v1.Msg.PayPacketFeeAsync + */ +export const MsgPayPacketFeeAsyncService = { + typeName: TYPE_NAME, + method: "PayPacketFeeAsync", + Request: MsgPayPacketFeeAsync, + Response: MsgPayPacketFeeAsyncResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/fee/v1/tx_pb.ts b/src/protobufs/ibc/applications/fee/v1/tx_pb.ts new file mode 100644 index 00000000..d3cb9183 --- /dev/null +++ b/src/protobufs/ibc/applications/fee/v1/tx_pb.ts @@ -0,0 +1,397 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/fee/v1/tx.proto (package ibc.applications.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Fee, PacketFee } from "./fee_pb.js"; +import { PacketId } from "../../../core/channel/v1/channel_pb.js"; + +/** + * MsgRegisterPayee defines the request type for the RegisterPayee rpc + * + * @generated from message ibc.applications.fee.v1.MsgRegisterPayee + */ +export class MsgRegisterPayee extends Message { + /** + * unique port identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * unique channel identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * the relayer address + * + * @generated from field: string relayer = 3; + */ + relayer = ""; + + /** + * the payee address + * + * @generated from field: string payee = 4; + */ + payee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgRegisterPayee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterPayee { + return new MsgRegisterPayee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterPayee { + return new MsgRegisterPayee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterPayee { + return new MsgRegisterPayee().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterPayee | PlainMessage | undefined, b: MsgRegisterPayee | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterPayee, a, b); + } +} + +/** + * MsgRegisterPayeeResponse defines the response type for the RegisterPayee rpc + * + * @generated from message ibc.applications.fee.v1.MsgRegisterPayeeResponse + */ +export class MsgRegisterPayeeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgRegisterPayeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterPayeeResponse { + return new MsgRegisterPayeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterPayeeResponse { + return new MsgRegisterPayeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterPayeeResponse { + return new MsgRegisterPayeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterPayeeResponse | PlainMessage | undefined, b: MsgRegisterPayeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterPayeeResponse, a, b); + } +} + +/** + * MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc + * + * @generated from message ibc.applications.fee.v1.MsgRegisterCounterpartyPayee + */ +export class MsgRegisterCounterpartyPayee extends Message { + /** + * unique port identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * unique channel identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * the relayer address + * + * @generated from field: string relayer = 3; + */ + relayer = ""; + + /** + * the counterparty payee address + * + * @generated from field: string counterparty_payee = 4; + */ + counterpartyPayee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgRegisterCounterpartyPayee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "counterparty_payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterCounterpartyPayee { + return new MsgRegisterCounterpartyPayee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterCounterpartyPayee { + return new MsgRegisterCounterpartyPayee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterCounterpartyPayee { + return new MsgRegisterCounterpartyPayee().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterCounterpartyPayee | PlainMessage | undefined, b: MsgRegisterCounterpartyPayee | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterCounterpartyPayee, a, b); + } +} + +/** + * MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc + * + * @generated from message ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + */ +export class MsgRegisterCounterpartyPayeeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterCounterpartyPayeeResponse { + return new MsgRegisterCounterpartyPayeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterCounterpartyPayeeResponse { + return new MsgRegisterCounterpartyPayeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterCounterpartyPayeeResponse { + return new MsgRegisterCounterpartyPayeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterCounterpartyPayeeResponse | PlainMessage | undefined, b: MsgRegisterCounterpartyPayeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterCounterpartyPayeeResponse, a, b); + } +} + +/** + * MsgPayPacketFee defines the request type for the PayPacketFee rpc + * This Msg can be used to pay for a packet at the next sequence send & should be combined with the Msg that will be + * paid for + * + * @generated from message ibc.applications.fee.v1.MsgPayPacketFee + */ +export class MsgPayPacketFee extends Message { + /** + * fee encapsulates the recv, ack and timeout fees associated with an IBC packet + * + * @generated from field: ibc.applications.fee.v1.Fee fee = 1; + */ + fee?: Fee; + + /** + * the source port unique identifier + * + * @generated from field: string source_port_id = 2; + */ + sourcePortId = ""; + + /** + * the source channel unique identifer + * + * @generated from field: string source_channel_id = 3; + */ + sourceChannelId = ""; + + /** + * account address to refund fee if necessary + * + * @generated from field: string signer = 4; + */ + signer = ""; + + /** + * optional list of relayers permitted to the receive packet fees + * + * @generated from field: repeated string relayers = 5; + */ + relayers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee", kind: "message", T: Fee }, + { no: 2, name: "source_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "source_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "relayers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFee { + return new MsgPayPacketFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFee { + return new MsgPayPacketFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFee { + return new MsgPayPacketFee().fromJsonString(jsonString, options); + } + + static equals(a: MsgPayPacketFee | PlainMessage | undefined, b: MsgPayPacketFee | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPayPacketFee, a, b); + } +} + +/** + * MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc + * + * @generated from message ibc.applications.fee.v1.MsgPayPacketFeeResponse + */ +export class MsgPayPacketFeeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFeeResponse { + return new MsgPayPacketFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFeeResponse { + return new MsgPayPacketFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFeeResponse { + return new MsgPayPacketFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPayPacketFeeResponse | PlainMessage | undefined, b: MsgPayPacketFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPayPacketFeeResponse, a, b); + } +} + +/** + * MsgPayPacketFeeAsync defines the request type for the PayPacketFeeAsync rpc + * This Msg can be used to pay for a packet at a specified sequence (instead of the next sequence send) + * + * @generated from message ibc.applications.fee.v1.MsgPayPacketFeeAsync + */ +export class MsgPayPacketFeeAsync extends Message { + /** + * unique packet identifier comprised of the channel ID, port ID and sequence + * + * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; + */ + packetId?: PacketId; + + /** + * the packet fee associated with a particular IBC packet + * + * @generated from field: ibc.applications.fee.v1.PacketFee packet_fee = 2; + */ + packetFee?: PacketFee; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFeeAsync"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_id", kind: "message", T: PacketId }, + { no: 2, name: "packet_fee", kind: "message", T: PacketFee }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFeeAsync { + return new MsgPayPacketFeeAsync().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFeeAsync { + return new MsgPayPacketFeeAsync().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFeeAsync { + return new MsgPayPacketFeeAsync().fromJsonString(jsonString, options); + } + + static equals(a: MsgPayPacketFeeAsync | PlainMessage | undefined, b: MsgPayPacketFeeAsync | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPayPacketFeeAsync, a, b); + } +} + +/** + * MsgPayPacketFeeAsyncResponse defines the response type for the PayPacketFeeAsync rpc + * + * @generated from message ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse + */ +export class MsgPayPacketFeeAsyncResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFeeAsyncResponse { + return new MsgPayPacketFeeAsyncResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFeeAsyncResponse { + return new MsgPayPacketFeeAsyncResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFeeAsyncResponse { + return new MsgPayPacketFeeAsyncResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPayPacketFeeAsyncResponse | PlainMessage | undefined, b: MsgPayPacketFeeAsyncResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPayPacketFeeAsyncResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts new file mode 100644 index 00000000..834316b5 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/controller/v1/controller.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the set of on-chain interchain accounts parameters. + * The following parameters may be used to disable the controller submodule. + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.Params + */ +export class Params extends Message { + /** + * controller_enabled enables or disables the controller submodule. + * + * @generated from field: bool controller_enabled = 1; + */ + controllerEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts new file mode 100644 index 00000000..af11d258 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/controller/v1/query.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryInterchainAccountRequest, QueryInterchainAccountResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.applications.interchain_accounts.controller.v1.Query"; + +/** + * InterchainAccount returns the interchain account address for a given owner address on a given connection + * + * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccount + */ +export const QueryInterchainAccountService = { + typeName: TYPE_NAME, + method: "InterchainAccount", + Request: QueryInterchainAccountRequest, + Response: QueryInterchainAccountResponse, +} as const; + +/** + * Params queries all parameters of the ICA controller submodule. + * + * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts new file mode 100644 index 00000000..9b668827 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts @@ -0,0 +1,167 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/controller/v1/query.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./controller_pb.js"; + +/** + * QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method. + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + */ +export class QueryInterchainAccountRequest extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: string connection_id = 2; + */ + connectionId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterchainAccountRequest { + return new QueryInterchainAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterchainAccountRequest { + return new QueryInterchainAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterchainAccountRequest { + return new QueryInterchainAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterchainAccountRequest | PlainMessage | undefined, b: QueryInterchainAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterchainAccountRequest, a, b); + } +} + +/** + * QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + */ +export class QueryInterchainAccountResponse extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterchainAccountResponse { + return new QueryInterchainAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterchainAccountResponse { + return new QueryInterchainAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterchainAccountResponse { + return new QueryInterchainAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterchainAccountResponse | PlainMessage | undefined, b: QueryInterchainAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterchainAccountResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts new file mode 100644 index 00000000..76cc02f0 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/controller/v1/tx.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgRegisterInterchainAccount, MsgRegisterInterchainAccountResponse, MsgSendTx, MsgSendTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.applications.interchain_accounts.controller.v1.Msg"; + +/** + * RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount. + * + * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.RegisterInterchainAccount + */ +export const MsgRegisterInterchainAccountService = { + typeName: TYPE_NAME, + method: "RegisterInterchainAccount", + Request: MsgRegisterInterchainAccount, + Response: MsgRegisterInterchainAccountResponse, +} as const; + +/** + * SendTx defines a rpc handler for MsgSendTx. + * + * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.SendTx + */ +export const MsgSendTxService = { + typeName: TYPE_NAME, + method: "SendTx", + Request: MsgSendTx, + Response: MsgSendTxResponse, +} as const; + +/** + * UpdateParams defines a rpc handler for MsgUpdateParams. + * + * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts new file mode 100644 index 00000000..ed7534fa --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts @@ -0,0 +1,289 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/controller/v1/tx.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { InterchainAccountPacketData } from "../../v1/packet_pb.js"; +import { Params } from "./controller_pb.js"; + +/** + * MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + */ +export class MsgRegisterInterchainAccount extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: string connection_id = 2; + */ + connectionId = ""; + + /** + * @generated from field: string version = 3; + */ + version = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainAccount | PlainMessage | undefined, b: MsgRegisterInterchainAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainAccount, a, b); + } +} + +/** + * MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + */ +export class MsgRegisterInterchainAccountResponse extends Message { + /** + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainAccountResponse | PlainMessage | undefined, b: MsgRegisterInterchainAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainAccountResponse, a, b); + } +} + +/** + * MsgSendTx defines the payload for Msg/SendTx + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgSendTx + */ +export class MsgSendTx extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: string connection_id = 2; + */ + connectionId = ""; + + /** + * @generated from field: ibc.applications.interchain_accounts.v1.InterchainAccountPacketData packet_data = 3; + */ + packetData?: InterchainAccountPacketData; + + /** + * Relative timeout timestamp provided will be added to the current block time during transaction execution. + * The timeout timestamp must be non-zero. + * + * @generated from field: uint64 relative_timeout = 4; + */ + relativeTimeout = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgSendTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "packet_data", kind: "message", T: InterchainAccountPacketData }, + { no: 4, name: "relative_timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendTx { + return new MsgSendTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendTx { + return new MsgSendTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSendTx { + return new MsgSendTx().fromJsonString(jsonString, options); + } + + static equals(a: MsgSendTx | PlainMessage | undefined, b: MsgSendTx | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSendTx, a, b); + } +} + +/** + * MsgSendTxResponse defines the response for MsgSendTx + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + */ +export class MsgSendTxResponse extends Message { + /** + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendTxResponse { + return new MsgSendTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendTxResponse { + return new MsgSendTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSendTxResponse { + return new MsgSendTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSendTxResponse | PlainMessage | undefined, b: MsgSendTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSendTxResponse, a, b); + } +} + +/** + * MsgUpdateParams defines the payload for Msg/UpdateParams + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the 27-interchain-accounts/controller parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response for Msg/UpdateParams + * + * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts new file mode 100644 index 00000000..603afa03 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts @@ -0,0 +1,278 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/genesis/v1/genesis.proto (package ibc.applications.interchain_accounts.genesis.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "../../controller/v1/controller_pb.js"; +import { Params as Params$1 } from "../../host/v1/host_pb.js"; + +/** + * GenesisState defines the interchain accounts genesis state + * + * @generated from message ibc.applications.interchain_accounts.genesis.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState controller_genesis_state = 1; + */ + controllerGenesisState?: ControllerGenesisState; + + /** + * @generated from field: ibc.applications.interchain_accounts.genesis.v1.HostGenesisState host_genesis_state = 2; + */ + hostGenesisState?: HostGenesisState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller_genesis_state", kind: "message", T: ControllerGenesisState }, + { no: 2, name: "host_genesis_state", kind: "message", T: HostGenesisState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * ControllerGenesisState defines the interchain accounts controller genesis state + * + * @generated from message ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + */ +export class ControllerGenesisState extends Message { + /** + * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.ActiveChannel active_channels = 1; + */ + activeChannels: ActiveChannel[] = []; + + /** + * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount interchain_accounts = 2; + */ + interchainAccounts: RegisteredInterchainAccount[] = []; + + /** + * @generated from field: repeated string ports = 3; + */ + ports: string[] = []; + + /** + * @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 4; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active_channels", kind: "message", T: ActiveChannel, repeated: true }, + { no: 2, name: "interchain_accounts", kind: "message", T: RegisteredInterchainAccount, repeated: true }, + { no: 3, name: "ports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ControllerGenesisState { + return new ControllerGenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ControllerGenesisState { + return new ControllerGenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ControllerGenesisState { + return new ControllerGenesisState().fromJsonString(jsonString, options); + } + + static equals(a: ControllerGenesisState | PlainMessage | undefined, b: ControllerGenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(ControllerGenesisState, a, b); + } +} + +/** + * HostGenesisState defines the interchain accounts host genesis state + * + * @generated from message ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + */ +export class HostGenesisState extends Message { + /** + * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.ActiveChannel active_channels = 1; + */ + activeChannels: ActiveChannel[] = []; + + /** + * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount interchain_accounts = 2; + */ + interchainAccounts: RegisteredInterchainAccount[] = []; + + /** + * @generated from field: string port = 3; + */ + port = ""; + + /** + * @generated from field: ibc.applications.interchain_accounts.host.v1.Params params = 4; + */ + params?: Params$1; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.HostGenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active_channels", kind: "message", T: ActiveChannel, repeated: true }, + { no: 2, name: "interchain_accounts", kind: "message", T: RegisteredInterchainAccount, repeated: true }, + { no: 3, name: "port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "params", kind: "message", T: Params$1 }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HostGenesisState { + return new HostGenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HostGenesisState { + return new HostGenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HostGenesisState { + return new HostGenesisState().fromJsonString(jsonString, options); + } + + static equals(a: HostGenesisState | PlainMessage | undefined, b: HostGenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(HostGenesisState, a, b); + } +} + +/** + * ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to + * indicate if the channel is middleware enabled + * + * @generated from message ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + */ +export class ActiveChannel extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 3; + */ + channelId = ""; + + /** + * @generated from field: bool is_middleware_enabled = 4; + */ + isMiddlewareEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.ActiveChannel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "is_middleware_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActiveChannel { + return new ActiveChannel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActiveChannel { + return new ActiveChannel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActiveChannel { + return new ActiveChannel().fromJsonString(jsonString, options); + } + + static equals(a: ActiveChannel | PlainMessage | undefined, b: ActiveChannel | PlainMessage | undefined): boolean { + return proto3.util.equals(ActiveChannel, a, b); + } +} + +/** + * RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address + * + * @generated from message ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + */ +export class RegisteredInterchainAccount extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + /** + * @generated from field: string account_address = 3; + */ + accountAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredInterchainAccount { + return new RegisteredInterchainAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredInterchainAccount { + return new RegisteredInterchainAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredInterchainAccount { + return new RegisteredInterchainAccount().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredInterchainAccount | PlainMessage | undefined, b: RegisteredInterchainAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredInterchainAccount, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts new file mode 100644 index 00000000..0b2a16a0 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/host/v1/host.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the set of on-chain interchain accounts parameters. + * The following parameters may be used to disable the host submodule. + * + * @generated from message ibc.applications.interchain_accounts.host.v1.Params + */ +export class Params extends Message { + /** + * host_enabled enables or disables the host submodule. + * + * @generated from field: bool host_enabled = 1; + */ + hostEnabled = false; + + /** + * allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain. + * + * @generated from field: repeated string allow_messages = 2; + */ + allowMessages: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "allow_messages", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts new file mode 100644 index 00000000..89d60141 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/host/v1/query.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.applications.interchain_accounts.host.v1.Query"; + +/** + * Params queries all parameters of the ICA host submodule. + * + * @generated from rpc ibc.applications.interchain_accounts.host.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts new file mode 100644 index 00000000..13c0f9d4 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/host/v1/query.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./host_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: ibc.applications.interchain_accounts.host.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts new file mode 100644 index 00000000..b57d879b --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/host/v1/tx.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.applications.interchain_accounts.host.v1.Msg"; + +/** + * UpdateParams defines a rpc handler for MsgUpdateParams. + * + * @generated from rpc ibc.applications.interchain_accounts.host.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts new file mode 100644 index 00000000..41c50b7e --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/host/v1/tx.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./host_pb.js"; + +/** + * MsgUpdateParams defines the payload for Msg/UpdateParams + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the 27-interchain-accounts/host parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: ibc.applications.interchain_accounts.host.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response for Msg/UpdateParams + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts new file mode 100644 index 00000000..02fc1a9a --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts @@ -0,0 +1,54 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/v1/account.proto (package ibc.applications.interchain_accounts.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { BaseAccount } from "../../../../cosmos/auth/v1beta1/auth_pb.js"; + +/** + * An InterchainAccount is defined as a BaseAccount & the address of the account owner on the controller chain + * + * @generated from message ibc.applications.interchain_accounts.v1.InterchainAccount + */ +export class InterchainAccount extends Message { + /** + * @generated from field: cosmos.auth.v1beta1.BaseAccount base_account = 1; + */ + baseAccount?: BaseAccount; + + /** + * @generated from field: string account_owner = 2; + */ + accountOwner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.v1.InterchainAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_account", kind: "message", T: BaseAccount }, + { no: 2, name: "account_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterchainAccount { + return new InterchainAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterchainAccount { + return new InterchainAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterchainAccount { + return new InterchainAccount().fromJsonString(jsonString, options); + } + + static equals(a: InterchainAccount | PlainMessage | undefined, b: InterchainAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(InterchainAccount, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts new file mode 100644 index 00000000..42873d69 --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts @@ -0,0 +1,91 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/v1/metadata.proto (package ibc.applications.interchain_accounts.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring + * See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning + * + * @generated from message ibc.applications.interchain_accounts.v1.Metadata + */ +export class Metadata extends Message { + /** + * version defines the ICS27 protocol version + * + * @generated from field: string version = 1; + */ + version = ""; + + /** + * controller_connection_id is the connection identifier associated with the controller chain + * + * @generated from field: string controller_connection_id = 2; + */ + controllerConnectionId = ""; + + /** + * host_connection_id is the connection identifier associated with the host chain + * + * @generated from field: string host_connection_id = 3; + */ + hostConnectionId = ""; + + /** + * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step + * NOTE: the address field is empty on the OnChanOpenInit handshake step + * + * @generated from field: string address = 4; + */ + address = ""; + + /** + * encoding defines the supported codec format + * + * @generated from field: string encoding = 5; + */ + encoding = ""; + + /** + * tx_type defines the type of transactions the interchain account can execute + * + * @generated from field: string tx_type = 6; + */ + txType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.v1.Metadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "controller_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "host_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "encoding", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "tx_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { + return new Metadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { + return new Metadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Metadata { + return new Metadata().fromJsonString(jsonString, options); + } + + static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { + return proto3.util.equals(Metadata, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts new file mode 100644 index 00000000..5a3ac63d --- /dev/null +++ b/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts @@ -0,0 +1,125 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/interchain_accounts/v1/packet.proto (package ibc.applications.interchain_accounts.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Type defines a classification of message issued from a controller chain to its associated interchain accounts + * host + * + * @generated from enum ibc.applications.interchain_accounts.v1.Type + */ +export enum Type { + /** + * Default zero value enumeration + * + * @generated from enum value: TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Execute a transaction on an interchain accounts host chain + * + * @generated from enum value: TYPE_EXECUTE_TX = 1; + */ + EXECUTE_TX = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(Type) +proto3.util.setEnumType(Type, "ibc.applications.interchain_accounts.v1.Type", [ + { no: 0, name: "TYPE_UNSPECIFIED" }, + { no: 1, name: "TYPE_EXECUTE_TX" }, +]); + +/** + * InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. + * + * @generated from message ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + */ +export class InterchainAccountPacketData extends Message { + /** + * @generated from field: ibc.applications.interchain_accounts.v1.Type type = 1; + */ + type = Type.UNSPECIFIED; + + /** + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + /** + * @generated from field: string memo = 3; + */ + memo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.v1.InterchainAccountPacketData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(Type) }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterchainAccountPacketData { + return new InterchainAccountPacketData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterchainAccountPacketData { + return new InterchainAccountPacketData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterchainAccountPacketData { + return new InterchainAccountPacketData().fromJsonString(jsonString, options); + } + + static equals(a: InterchainAccountPacketData | PlainMessage | undefined, b: InterchainAccountPacketData | PlainMessage | undefined): boolean { + return proto3.util.equals(InterchainAccountPacketData, a, b); + } +} + +/** + * CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. + * + * @generated from message ibc.applications.interchain_accounts.v1.CosmosTx + */ +export class CosmosTx extends Message { + /** + * @generated from field: repeated google.protobuf.Any messages = 1; + */ + messages: Any[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.v1.CosmosTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "messages", kind: "message", T: Any, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CosmosTx { + return new CosmosTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CosmosTx { + return new CosmosTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CosmosTx { + return new CosmosTx().fromJsonString(jsonString, options); + } + + static equals(a: CosmosTx | PlainMessage | undefined, b: CosmosTx | PlainMessage | undefined): boolean { + return proto3.util.equals(CosmosTx, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts b/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts new file mode 100644 index 00000000..cd00e268 --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts @@ -0,0 +1,116 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/authz.proto (package ibc.applications.transfer.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Allocation defines the spend limit for a particular port and channel + * + * @generated from message ibc.applications.transfer.v1.Allocation + */ +export class Allocation extends Message { + /** + * the port on which the packet will be sent + * + * @generated from field: string source_port = 1; + */ + sourcePort = ""; + + /** + * the channel by which the packet will be sent + * + * @generated from field: string source_channel = 2; + */ + sourceChannel = ""; + + /** + * spend limitation on the channel + * + * @generated from field: repeated cosmos.base.v1beta1.Coin spend_limit = 3; + */ + spendLimit: Coin[] = []; + + /** + * allow list of receivers, an empty allow list permits any receiver address + * + * @generated from field: repeated string allow_list = 4; + */ + allowList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.Allocation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "source_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "spend_limit", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Allocation { + return new Allocation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Allocation { + return new Allocation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Allocation { + return new Allocation().fromJsonString(jsonString, options); + } + + static equals(a: Allocation | PlainMessage | undefined, b: Allocation | PlainMessage | undefined): boolean { + return proto3.util.equals(Allocation, a, b); + } +} + +/** + * TransferAuthorization allows the grantee to spend up to spend_limit coins from + * the granter's account for ibc transfer on a specific channel + * + * @generated from message ibc.applications.transfer.v1.TransferAuthorization + */ +export class TransferAuthorization extends Message { + /** + * port and channel amounts + * + * @generated from field: repeated ibc.applications.transfer.v1.Allocation allocations = 1; + */ + allocations: Allocation[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.TransferAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allocations", kind: "message", T: Allocation, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TransferAuthorization { + return new TransferAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TransferAuthorization { + return new TransferAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TransferAuthorization { + return new TransferAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: TransferAuthorization | PlainMessage | undefined, b: TransferAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(TransferAuthorization, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/transfer/v1/genesis_pb.ts b/src/protobufs/ibc/applications/transfer/v1/genesis_pb.ts new file mode 100644 index 00000000..66a0700f --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v1/genesis_pb.ts @@ -0,0 +1,70 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/genesis.proto (package ibc.applications.transfer.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DenomTrace, Params } from "./transfer_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * GenesisState defines the ibc-transfer genesis state + * + * @generated from message ibc.applications.transfer.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: repeated ibc.applications.transfer.v1.DenomTrace denom_traces = 2; + */ + denomTraces: DenomTrace[] = []; + + /** + * @generated from field: ibc.applications.transfer.v1.Params params = 3; + */ + params?: Params; + + /** + * total_escrowed contains the total amount of tokens escrowed + * by the transfer module + * + * @generated from field: repeated cosmos.base.v1beta1.Coin total_escrowed = 4; + */ + totalEscrowed: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom_traces", kind: "message", T: DenomTrace, repeated: true }, + { no: 3, name: "params", kind: "message", T: Params }, + { no: 4, name: "total_escrowed", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts b/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts new file mode 100644 index 00000000..57d732e0 --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/query.proto (package ibc.applications.transfer.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDenomHashRequest, QueryDenomHashResponse, QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse, QueryParamsRequest, QueryParamsResponse, QueryTotalEscrowForDenomRequest, QueryTotalEscrowForDenomResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.applications.transfer.v1.Query"; + +/** + * DenomTrace queries a denomination trace information. + * + * @generated from rpc ibc.applications.transfer.v1.Query.DenomTrace + */ +export const QueryDenomTraceService = { + typeName: TYPE_NAME, + method: "DenomTrace", + Request: QueryDenomTraceRequest, + Response: QueryDenomTraceResponse, +} as const; + +/** + * DenomTraces queries all denomination traces. + * + * @generated from rpc ibc.applications.transfer.v1.Query.DenomTraces + */ +export const QueryDenomTracesService = { + typeName: TYPE_NAME, + method: "DenomTraces", + Request: QueryDenomTracesRequest, + Response: QueryDenomTracesResponse, +} as const; + +/** + * Params queries all parameters of the ibc-transfer module. + * + * @generated from rpc ibc.applications.transfer.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * DenomHash queries a denomination hash information. + * + * @generated from rpc ibc.applications.transfer.v1.Query.DenomHash + */ +export const QueryDenomHashService = { + typeName: TYPE_NAME, + method: "DenomHash", + Request: QueryDenomHashRequest, + Response: QueryDenomHashResponse, +} as const; + +/** + * EscrowAddress returns the escrow address for a particular port and channel id. + * + * @generated from rpc ibc.applications.transfer.v1.Query.EscrowAddress + */ +export const QueryEscrowAddressService = { + typeName: TYPE_NAME, + method: "EscrowAddress", + Request: QueryEscrowAddressRequest, + Response: QueryEscrowAddressResponse, +} as const; + +/** + * TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom. + * + * @generated from rpc ibc.applications.transfer.v1.Query.TotalEscrowForDenom + */ +export const QueryTotalEscrowForDenomService = { + typeName: TYPE_NAME, + method: "TotalEscrowForDenom", + Request: QueryTotalEscrowForDenomRequest, + Response: QueryTotalEscrowForDenomResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/transfer/v1/query_pb.ts b/src/protobufs/ibc/applications/transfer/v1/query_pb.ts new file mode 100644 index 00000000..a2a38d75 --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v1/query_pb.ts @@ -0,0 +1,513 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/query.proto (package ibc.applications.transfer.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DenomTrace, Params } from "./transfer_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC + * method + * + * @generated from message ibc.applications.transfer.v1.QueryDenomTraceRequest + */ +export class QueryDenomTraceRequest extends Message { + /** + * hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. + * + * @generated from field: string hash = 1; + */ + hash = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryDenomTraceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomTraceRequest { + return new QueryDenomTraceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomTraceRequest { + return new QueryDenomTraceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomTraceRequest { + return new QueryDenomTraceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomTraceRequest | PlainMessage | undefined, b: QueryDenomTraceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomTraceRequest, a, b); + } +} + +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + * + * @generated from message ibc.applications.transfer.v1.QueryDenomTraceResponse + */ +export class QueryDenomTraceResponse extends Message { + /** + * denom_trace returns the requested denomination trace information. + * + * @generated from field: ibc.applications.transfer.v1.DenomTrace denom_trace = 1; + */ + denomTrace?: DenomTrace; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryDenomTraceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_trace", kind: "message", T: DenomTrace }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomTraceResponse { + return new QueryDenomTraceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomTraceResponse { + return new QueryDenomTraceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomTraceResponse { + return new QueryDenomTraceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomTraceResponse | PlainMessage | undefined, b: QueryDenomTraceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomTraceResponse, a, b); + } +} + +/** + * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC + * method + * + * @generated from message ibc.applications.transfer.v1.QueryDenomTracesRequest + */ +export class QueryDenomTracesRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryDenomTracesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomTracesRequest { + return new QueryDenomTracesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomTracesRequest { + return new QueryDenomTracesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomTracesRequest { + return new QueryDenomTracesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomTracesRequest | PlainMessage | undefined, b: QueryDenomTracesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomTracesRequest, a, b); + } +} + +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + * + * @generated from message ibc.applications.transfer.v1.QueryDenomTracesResponse + */ +export class QueryDenomTracesResponse extends Message { + /** + * denom_traces returns all denominations trace information. + * + * @generated from field: repeated ibc.applications.transfer.v1.DenomTrace denom_traces = 1; + */ + denomTraces: DenomTrace[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryDenomTracesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_traces", kind: "message", T: DenomTrace, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomTracesResponse { + return new QueryDenomTracesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomTracesResponse { + return new QueryDenomTracesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomTracesResponse { + return new QueryDenomTracesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomTracesResponse | PlainMessage | undefined, b: QueryDenomTracesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomTracesResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message ibc.applications.transfer.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message ibc.applications.transfer.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: ibc.applications.transfer.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDenomHashRequest is the request type for the Query/DenomHash RPC + * method + * + * @generated from message ibc.applications.transfer.v1.QueryDenomHashRequest + */ +export class QueryDenomHashRequest extends Message { + /** + * The denomination trace ([port_id]/[channel_id])+/[denom] + * + * @generated from field: string trace = 1; + */ + trace = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryDenomHashRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomHashRequest { + return new QueryDenomHashRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomHashRequest { + return new QueryDenomHashRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomHashRequest { + return new QueryDenomHashRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomHashRequest | PlainMessage | undefined, b: QueryDenomHashRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomHashRequest, a, b); + } +} + +/** + * QueryDenomHashResponse is the response type for the Query/DenomHash RPC + * method. + * + * @generated from message ibc.applications.transfer.v1.QueryDenomHashResponse + */ +export class QueryDenomHashResponse extends Message { + /** + * hash (in hex format) of the denomination trace information. + * + * @generated from field: string hash = 1; + */ + hash = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryDenomHashResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomHashResponse { + return new QueryDenomHashResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomHashResponse { + return new QueryDenomHashResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomHashResponse { + return new QueryDenomHashResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomHashResponse | PlainMessage | undefined, b: QueryDenomHashResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomHashResponse, a, b); + } +} + +/** + * QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. + * + * @generated from message ibc.applications.transfer.v1.QueryEscrowAddressRequest + */ +export class QueryEscrowAddressRequest extends Message { + /** + * unique port identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * unique channel identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryEscrowAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEscrowAddressRequest { + return new QueryEscrowAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEscrowAddressRequest { + return new QueryEscrowAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEscrowAddressRequest { + return new QueryEscrowAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEscrowAddressRequest | PlainMessage | undefined, b: QueryEscrowAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEscrowAddressRequest, a, b); + } +} + +/** + * QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. + * + * @generated from message ibc.applications.transfer.v1.QueryEscrowAddressResponse + */ +export class QueryEscrowAddressResponse extends Message { + /** + * the escrow account address + * + * @generated from field: string escrow_address = 1; + */ + escrowAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryEscrowAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "escrow_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEscrowAddressResponse { + return new QueryEscrowAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEscrowAddressResponse { + return new QueryEscrowAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEscrowAddressResponse { + return new QueryEscrowAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEscrowAddressResponse | PlainMessage | undefined, b: QueryEscrowAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEscrowAddressResponse, a, b); + } +} + +/** + * QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method. + * + * @generated from message ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + */ +export class QueryTotalEscrowForDenomRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalEscrowForDenomRequest { + return new QueryTotalEscrowForDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalEscrowForDenomRequest { + return new QueryTotalEscrowForDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalEscrowForDenomRequest { + return new QueryTotalEscrowForDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalEscrowForDenomRequest | PlainMessage | undefined, b: QueryTotalEscrowForDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalEscrowForDenomRequest, a, b); + } +} + +/** + * QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method. + * + * @generated from message ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse + */ +export class QueryTotalEscrowForDenomResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalEscrowForDenomResponse { + return new QueryTotalEscrowForDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalEscrowForDenomResponse { + return new QueryTotalEscrowForDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalEscrowForDenomResponse { + return new QueryTotalEscrowForDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalEscrowForDenomResponse | PlainMessage | undefined, b: QueryTotalEscrowForDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalEscrowForDenomResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts b/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts new file mode 100644 index 00000000..645a3885 --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts @@ -0,0 +1,113 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/transfer.proto (package ibc.applications.transfer.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + * + * @generated from message ibc.applications.transfer.v1.DenomTrace + */ +export class DenomTrace extends Message { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + * + * @generated from field: string path = 1; + */ + path = ""; + + /** + * base denomination of the relayed fungible token. + * + * @generated from field: string base_denom = 2; + */ + baseDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.DenomTrace"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomTrace { + return new DenomTrace().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomTrace { + return new DenomTrace().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomTrace { + return new DenomTrace().fromJsonString(jsonString, options); + } + + static equals(a: DenomTrace | PlainMessage | undefined, b: DenomTrace | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomTrace, a, b); + } +} + +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + * + * @generated from message ibc.applications.transfer.v1.Params + */ +export class Params extends Message { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + * + * @generated from field: bool send_enabled = 1; + */ + sendEnabled = false; + + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + * + * @generated from field: bool receive_enabled = 2; + */ + receiveEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "send_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "receive_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts b/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts new file mode 100644 index 00000000..d24c0766 --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/tx.proto (package ibc.applications.transfer.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgTransfer, MsgTransferResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.applications.transfer.v1.Msg"; + +/** + * Transfer defines a rpc handler method for MsgTransfer. + * + * @generated from rpc ibc.applications.transfer.v1.Msg.Transfer + */ +export const MsgTransferService = { + typeName: TYPE_NAME, + method: "Transfer", + Request: MsgTransfer, + Response: MsgTransferResponse, +} as const; + +/** + * UpdateParams defines a rpc handler for MsgUpdateParams. + * + * @generated from rpc ibc.applications.transfer.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts b/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts new file mode 100644 index 00000000..3cd65437 --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts @@ -0,0 +1,238 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/tx.proto (package ibc.applications.transfer.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; +import { Height } from "../../../core/client/v1/client_pb.js"; +import { Params } from "./transfer_pb.js"; + +/** + * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + * ICS20 enabled chains. See ICS Spec here: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + * + * @generated from message ibc.applications.transfer.v1.MsgTransfer + */ +export class MsgTransfer extends Message { + /** + * the port on which the packet will be sent + * + * @generated from field: string source_port = 1; + */ + sourcePort = ""; + + /** + * the channel by which the packet will be sent + * + * @generated from field: string source_channel = 2; + */ + sourceChannel = ""; + + /** + * the tokens to be transferred + * + * @generated from field: cosmos.base.v1beta1.Coin token = 3; + */ + token?: Coin; + + /** + * the sender address + * + * @generated from field: string sender = 4; + */ + sender = ""; + + /** + * the recipient address on the destination chain + * + * @generated from field: string receiver = 5; + */ + receiver = ""; + + /** + * Timeout height relative to the current block height. + * The timeout is disabled when set to 0. + * + * @generated from field: ibc.core.client.v1.Height timeout_height = 6; + */ + timeoutHeight?: Height; + + /** + * Timeout timestamp in absolute nanoseconds since unix epoch. + * The timeout is disabled when set to 0. + * + * @generated from field: uint64 timeout_timestamp = 7; + */ + timeoutTimestamp = protoInt64.zero; + + /** + * optional memo + * + * @generated from field: string memo = 8; + */ + memo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.MsgTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "source_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token", kind: "message", T: Coin }, + { no: 4, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "timeout_height", kind: "message", T: Height }, + { no: 7, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransfer { + return new MsgTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransfer { + return new MsgTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransfer { + return new MsgTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransfer | PlainMessage | undefined, b: MsgTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransfer, a, b); + } +} + +/** + * MsgTransferResponse defines the Msg/Transfer response type. + * + * @generated from message ibc.applications.transfer.v1.MsgTransferResponse + */ +export class MsgTransferResponse extends Message { + /** + * sequence number of the transfer packet sent + * + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.MsgTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferResponse | PlainMessage | undefined, b: MsgTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message ibc.applications.transfer.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the transfer parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: ibc.applications.transfer.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message ibc.applications.transfer.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts b/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts new file mode 100644 index 00000000..8d2fcd68 --- /dev/null +++ b/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v2/packet.proto (package ibc.applications.transfer.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * FungibleTokenPacketData defines a struct for the packet payload + * See FungibleTokenPacketData spec: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + * + * @generated from message ibc.applications.transfer.v2.FungibleTokenPacketData + */ +export class FungibleTokenPacketData extends Message { + /** + * the token denomination to be transferred + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * the token amount to be transferred + * + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * the sender address + * + * @generated from field: string sender = 3; + */ + sender = ""; + + /** + * the recipient address on the destination chain + * + * @generated from field: string receiver = 4; + */ + receiver = ""; + + /** + * optional memo + * + * @generated from field: string memo = 5; + */ + memo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.FungibleTokenPacketData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FungibleTokenPacketData { + return new FungibleTokenPacketData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FungibleTokenPacketData { + return new FungibleTokenPacketData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FungibleTokenPacketData { + return new FungibleTokenPacketData().fromJsonString(jsonString, options); + } + + static equals(a: FungibleTokenPacketData | PlainMessage | undefined, b: FungibleTokenPacketData | PlainMessage | undefined): boolean { + return proto3.util.equals(FungibleTokenPacketData, a, b); + } +} + diff --git a/src/protobufs/ibc/core/channel/v1/channel_pb.ts b/src/protobufs/ibc/core/channel/v1/channel_pb.ts new file mode 100644 index 00000000..e097cf38 --- /dev/null +++ b/src/protobufs/ibc/core/channel/v1/channel_pb.ts @@ -0,0 +1,650 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/channel/v1/channel.proto (package ibc.core.channel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Height } from "../../client/v1/client_pb.js"; + +/** + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * @generated from enum ibc.core.channel.v1.State + */ +export enum State { + /** + * Default State + * + * @generated from enum value: STATE_UNINITIALIZED_UNSPECIFIED = 0; + */ + UNINITIALIZED_UNSPECIFIED = 0, + + /** + * A channel has just started the opening handshake. + * + * @generated from enum value: STATE_INIT = 1; + */ + INIT = 1, + + /** + * A channel has acknowledged the handshake step on the counterparty chain. + * + * @generated from enum value: STATE_TRYOPEN = 2; + */ + TRYOPEN = 2, + + /** + * A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * + * @generated from enum value: STATE_OPEN = 3; + */ + OPEN = 3, + + /** + * A channel has been closed and can no longer be used to send or receive + * packets. + * + * @generated from enum value: STATE_CLOSED = 4; + */ + CLOSED = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(State) +proto3.util.setEnumType(State, "ibc.core.channel.v1.State", [ + { no: 0, name: "STATE_UNINITIALIZED_UNSPECIFIED" }, + { no: 1, name: "STATE_INIT" }, + { no: 2, name: "STATE_TRYOPEN" }, + { no: 3, name: "STATE_OPEN" }, + { no: 4, name: "STATE_CLOSED" }, +]); + +/** + * Order defines if a channel is ORDERED or UNORDERED + * + * @generated from enum ibc.core.channel.v1.Order + */ +export enum Order { + /** + * zero-value for channel ordering + * + * @generated from enum value: ORDER_NONE_UNSPECIFIED = 0; + */ + NONE_UNSPECIFIED = 0, + + /** + * packets can be delivered in any order, which may differ from the order in + * which they were sent. + * + * @generated from enum value: ORDER_UNORDERED = 1; + */ + UNORDERED = 1, + + /** + * packets are delivered exactly in the order which they were sent + * + * @generated from enum value: ORDER_ORDERED = 2; + */ + ORDERED = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(Order) +proto3.util.setEnumType(Order, "ibc.core.channel.v1.Order", [ + { no: 0, name: "ORDER_NONE_UNSPECIFIED" }, + { no: 1, name: "ORDER_UNORDERED" }, + { no: 2, name: "ORDER_ORDERED" }, +]); + +/** + * Channel defines pipeline for exactly-once packet delivery between specific + * modules on separate blockchains, which has at least one end capable of + * sending packets and one end capable of receiving packets. + * + * @generated from message ibc.core.channel.v1.Channel + */ +export class Channel extends Message { + /** + * current state of the channel end + * + * @generated from field: ibc.core.channel.v1.State state = 1; + */ + state = State.UNINITIALIZED_UNSPECIFIED; + + /** + * whether the channel is ordered or unordered + * + * @generated from field: ibc.core.channel.v1.Order ordering = 2; + */ + ordering = Order.NONE_UNSPECIFIED; + + /** + * counterparty channel end + * + * @generated from field: ibc.core.channel.v1.Counterparty counterparty = 3; + */ + counterparty?: Counterparty; + + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + * + * @generated from field: repeated string connection_hops = 4; + */ + connectionHops: string[] = []; + + /** + * opaque channel version, which is agreed upon during the handshake + * + * @generated from field: string version = 5; + */ + version = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.Channel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 2, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, + { no: 3, name: "counterparty", kind: "message", T: Counterparty }, + { no: 4, name: "connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Channel { + return new Channel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Channel { + return new Channel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Channel { + return new Channel().fromJsonString(jsonString, options); + } + + static equals(a: Channel | PlainMessage | undefined, b: Channel | PlainMessage | undefined): boolean { + return proto3.util.equals(Channel, a, b); + } +} + +/** + * IdentifiedChannel defines a channel with additional port and channel + * identifier fields. + * + * @generated from message ibc.core.channel.v1.IdentifiedChannel + */ +export class IdentifiedChannel extends Message { + /** + * current state of the channel end + * + * @generated from field: ibc.core.channel.v1.State state = 1; + */ + state = State.UNINITIALIZED_UNSPECIFIED; + + /** + * whether the channel is ordered or unordered + * + * @generated from field: ibc.core.channel.v1.Order ordering = 2; + */ + ordering = Order.NONE_UNSPECIFIED; + + /** + * counterparty channel end + * + * @generated from field: ibc.core.channel.v1.Counterparty counterparty = 3; + */ + counterparty?: Counterparty; + + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + * + * @generated from field: repeated string connection_hops = 4; + */ + connectionHops: string[] = []; + + /** + * opaque channel version, which is agreed upon during the handshake + * + * @generated from field: string version = 5; + */ + version = ""; + + /** + * port identifier + * + * @generated from field: string port_id = 6; + */ + portId = ""; + + /** + * channel identifier + * + * @generated from field: string channel_id = 7; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.IdentifiedChannel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 2, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, + { no: 3, name: "counterparty", kind: "message", T: Counterparty }, + { no: 4, name: "connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedChannel { + return new IdentifiedChannel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedChannel { + return new IdentifiedChannel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IdentifiedChannel { + return new IdentifiedChannel().fromJsonString(jsonString, options); + } + + static equals(a: IdentifiedChannel | PlainMessage | undefined, b: IdentifiedChannel | PlainMessage | undefined): boolean { + return proto3.util.equals(IdentifiedChannel, a, b); + } +} + +/** + * Counterparty defines a channel end counterparty + * + * @generated from message ibc.core.channel.v1.Counterparty + */ +export class Counterparty extends Message { + /** + * port on the counterparty chain which owns the other end of the channel. + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel end on the counterparty chain + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.Counterparty"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Counterparty { + return new Counterparty().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Counterparty { + return new Counterparty().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Counterparty { + return new Counterparty().fromJsonString(jsonString, options); + } + + static equals(a: Counterparty | PlainMessage | undefined, b: Counterparty | PlainMessage | undefined): boolean { + return proto3.util.equals(Counterparty, a, b); + } +} + +/** + * Packet defines a type that carries data across different chains through IBC + * + * @generated from message ibc.core.channel.v1.Packet + */ +export class Packet extends Message { + /** + * number corresponds to the order of sends and receives, where a Packet + * with an earlier sequence number must be sent and received before a Packet + * with a later sequence number. + * + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * identifies the port on the sending chain. + * + * @generated from field: string source_port = 2; + */ + sourcePort = ""; + + /** + * identifies the channel end on the sending chain. + * + * @generated from field: string source_channel = 3; + */ + sourceChannel = ""; + + /** + * identifies the port on the receiving chain. + * + * @generated from field: string destination_port = 4; + */ + destinationPort = ""; + + /** + * identifies the channel end on the receiving chain. + * + * @generated from field: string destination_channel = 5; + */ + destinationChannel = ""; + + /** + * actual opaque bytes transferred directly to the application module + * + * @generated from field: bytes data = 6; + */ + data = new Uint8Array(0); + + /** + * block height after which the packet times out + * + * @generated from field: ibc.core.client.v1.Height timeout_height = 7; + */ + timeoutHeight?: Height; + + /** + * block timestamp (in nanoseconds) after which the packet times out + * + * @generated from field: uint64 timeout_timestamp = 8; + */ + timeoutTimestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.Packet"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "source_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "source_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "destination_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "destination_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "timeout_height", kind: "message", T: Height }, + { no: 8, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Packet { + return new Packet().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Packet { + return new Packet().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Packet { + return new Packet().fromJsonString(jsonString, options); + } + + static equals(a: Packet | PlainMessage | undefined, b: Packet | PlainMessage | undefined): boolean { + return proto3.util.equals(Packet, a, b); + } +} + +/** + * PacketState defines the generic type necessary to retrieve and store + * packet commitments, acknowledgements, and receipts. + * Caller is responsible for knowing the context necessary to interpret this + * state as a commitment, acknowledgement, or a receipt. + * + * @generated from message ibc.core.channel.v1.PacketState + */ +export class PacketState extends Message { + /** + * channel port identifier. + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier. + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * packet sequence. + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + /** + * embedded data that represents packet state. + * + * @generated from field: bytes data = 4; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.PacketState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketState { + return new PacketState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketState { + return new PacketState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketState { + return new PacketState().fromJsonString(jsonString, options); + } + + static equals(a: PacketState | PlainMessage | undefined, b: PacketState | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketState, a, b); + } +} + +/** + * PacketId is an identifer for a unique Packet + * Source chains refer to packets by source port/channel + * Destination chains refer to packets by destination port/channel + * + * @generated from message ibc.core.channel.v1.PacketId + */ +export class PacketId extends Message { + /** + * channel port identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * packet sequence + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.PacketId"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketId { + return new PacketId().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketId { + return new PacketId().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketId { + return new PacketId().fromJsonString(jsonString, options); + } + + static equals(a: PacketId | PlainMessage | undefined, b: PacketId | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketId, a, b); + } +} + +/** + * Acknowledgement is the recommended acknowledgement format to be used by + * app-specific protocols. + * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental + * conflicts with other protobuf message formats used for acknowledgements. + * The first byte of any message with this format will be the non-ASCII values + * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: + * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope + * + * @generated from message ibc.core.channel.v1.Acknowledgement + */ +export class Acknowledgement extends Message { + /** + * response contains either a result or an error and must be non-empty + * + * @generated from oneof ibc.core.channel.v1.Acknowledgement.response + */ + response: { + /** + * @generated from field: bytes result = 21; + */ + value: Uint8Array; + case: "result"; + } | { + /** + * @generated from field: string error = 22; + */ + value: string; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.Acknowledgement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 21, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "response" }, + { no: 22, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "response" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Acknowledgement { + return new Acknowledgement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Acknowledgement { + return new Acknowledgement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Acknowledgement { + return new Acknowledgement().fromJsonString(jsonString, options); + } + + static equals(a: Acknowledgement | PlainMessage | undefined, b: Acknowledgement | PlainMessage | undefined): boolean { + return proto3.util.equals(Acknowledgement, a, b); + } +} + +/** + * Timeout defines an execution deadline structure for 04-channel handlers. + * This includes packet lifecycle handlers as well as the upgrade handshake handlers. + * A valid Timeout contains either one or both of a timestamp and block height (sequence). + * + * @generated from message ibc.core.channel.v1.Timeout + */ +export class Timeout extends Message { + /** + * block height after which the packet or upgrade times out + * + * @generated from field: ibc.core.client.v1.Height height = 1; + */ + height?: Height; + + /** + * block timestamp (in nanoseconds) after which the packet or upgrade times out + * + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.Timeout"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "message", T: Height }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Timeout { + return new Timeout().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Timeout { + return new Timeout().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Timeout { + return new Timeout().fromJsonString(jsonString, options); + } + + static equals(a: Timeout | PlainMessage | undefined, b: Timeout | PlainMessage | undefined): boolean { + return proto3.util.equals(Timeout, a, b); + } +} + diff --git a/src/protobufs/ibc/core/channel/v1/genesis_pb.ts b/src/protobufs/ibc/core/channel/v1/genesis_pb.ts new file mode 100644 index 00000000..f92262d4 --- /dev/null +++ b/src/protobufs/ibc/core/channel/v1/genesis_pb.ts @@ -0,0 +1,144 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/channel/v1/genesis.proto (package ibc.core.channel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { IdentifiedChannel, PacketState } from "./channel_pb.js"; + +/** + * GenesisState defines the ibc channel submodule's genesis state. + * + * @generated from message ibc.core.channel.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; + */ + channels: IdentifiedChannel[] = []; + + /** + * @generated from field: repeated ibc.core.channel.v1.PacketState acknowledgements = 2; + */ + acknowledgements: PacketState[] = []; + + /** + * @generated from field: repeated ibc.core.channel.v1.PacketState commitments = 3; + */ + commitments: PacketState[] = []; + + /** + * @generated from field: repeated ibc.core.channel.v1.PacketState receipts = 4; + */ + receipts: PacketState[] = []; + + /** + * @generated from field: repeated ibc.core.channel.v1.PacketSequence send_sequences = 5; + */ + sendSequences: PacketSequence[] = []; + + /** + * @generated from field: repeated ibc.core.channel.v1.PacketSequence recv_sequences = 6; + */ + recvSequences: PacketSequence[] = []; + + /** + * @generated from field: repeated ibc.core.channel.v1.PacketSequence ack_sequences = 7; + */ + ackSequences: PacketSequence[] = []; + + /** + * the sequence for the next generated channel identifier + * + * @generated from field: uint64 next_channel_sequence = 8; + */ + nextChannelSequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channels", kind: "message", T: IdentifiedChannel, repeated: true }, + { no: 2, name: "acknowledgements", kind: "message", T: PacketState, repeated: true }, + { no: 3, name: "commitments", kind: "message", T: PacketState, repeated: true }, + { no: 4, name: "receipts", kind: "message", T: PacketState, repeated: true }, + { no: 5, name: "send_sequences", kind: "message", T: PacketSequence, repeated: true }, + { no: 6, name: "recv_sequences", kind: "message", T: PacketSequence, repeated: true }, + { no: 7, name: "ack_sequences", kind: "message", T: PacketSequence, repeated: true }, + { no: 8, name: "next_channel_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * PacketSequence defines the genesis type necessary to retrieve and store + * next send and receive sequences. + * + * @generated from message ibc.core.channel.v1.PacketSequence + */ +export class PacketSequence extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.PacketSequence"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketSequence { + return new PacketSequence().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketSequence { + return new PacketSequence().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketSequence { + return new PacketSequence().fromJsonString(jsonString, options); + } + + static equals(a: PacketSequence | PlainMessage | undefined, b: PacketSequence | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketSequence, a, b); + } +} + diff --git a/src/protobufs/ibc/core/channel/v1/query_cosmes.ts b/src/protobufs/ibc/core/channel/v1/query_cosmes.ts new file mode 100644 index 00000000..e3b5f675 --- /dev/null +++ b/src/protobufs/ibc/core/channel/v1/query_cosmes.ts @@ -0,0 +1,185 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/core/channel/v1/query.proto (package ibc.core.channel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryChannelClientStateRequest, QueryChannelClientStateResponse, QueryChannelConsensusStateRequest, QueryChannelConsensusStateResponse, QueryChannelRequest, QueryChannelResponse, QueryChannelsRequest, QueryChannelsResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveResponse, QueryNextSequenceSendRequest, QueryNextSequenceSendResponse, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryPacketCommitmentRequest, QueryPacketCommitmentResponse, QueryPacketCommitmentsRequest, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketReceiptResponse, QueryUnreceivedAcksRequest, QueryUnreceivedAcksResponse, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.core.channel.v1.Query"; + +/** + * Channel queries an IBC Channel. + * + * @generated from rpc ibc.core.channel.v1.Query.Channel + */ +export const QueryChannelService = { + typeName: TYPE_NAME, + method: "Channel", + Request: QueryChannelRequest, + Response: QueryChannelResponse, +} as const; + +/** + * Channels queries all the IBC channels of a chain. + * + * @generated from rpc ibc.core.channel.v1.Query.Channels + */ +export const QueryChannelsService = { + typeName: TYPE_NAME, + method: "Channels", + Request: QueryChannelsRequest, + Response: QueryChannelsResponse, +} as const; + +/** + * ConnectionChannels queries all the channels associated with a connection + * end. + * + * @generated from rpc ibc.core.channel.v1.Query.ConnectionChannels + */ +export const QueryConnectionChannelsService = { + typeName: TYPE_NAME, + method: "ConnectionChannels", + Request: QueryConnectionChannelsRequest, + Response: QueryConnectionChannelsResponse, +} as const; + +/** + * ChannelClientState queries for the client state for the channel associated + * with the provided channel identifiers. + * + * @generated from rpc ibc.core.channel.v1.Query.ChannelClientState + */ +export const QueryChannelClientStateService = { + typeName: TYPE_NAME, + method: "ChannelClientState", + Request: QueryChannelClientStateRequest, + Response: QueryChannelClientStateResponse, +} as const; + +/** + * ChannelConsensusState queries for the consensus state for the channel + * associated with the provided channel identifiers. + * + * @generated from rpc ibc.core.channel.v1.Query.ChannelConsensusState + */ +export const QueryChannelConsensusStateService = { + typeName: TYPE_NAME, + method: "ChannelConsensusState", + Request: QueryChannelConsensusStateRequest, + Response: QueryChannelConsensusStateResponse, +} as const; + +/** + * PacketCommitment queries a stored packet commitment hash. + * + * @generated from rpc ibc.core.channel.v1.Query.PacketCommitment + */ +export const QueryPacketCommitmentService = { + typeName: TYPE_NAME, + method: "PacketCommitment", + Request: QueryPacketCommitmentRequest, + Response: QueryPacketCommitmentResponse, +} as const; + +/** + * PacketCommitments returns all the packet commitments hashes associated + * with a channel. + * + * @generated from rpc ibc.core.channel.v1.Query.PacketCommitments + */ +export const QueryPacketCommitmentsService = { + typeName: TYPE_NAME, + method: "PacketCommitments", + Request: QueryPacketCommitmentsRequest, + Response: QueryPacketCommitmentsResponse, +} as const; + +/** + * PacketReceipt queries if a given packet sequence has been received on the + * queried chain + * + * @generated from rpc ibc.core.channel.v1.Query.PacketReceipt + */ +export const QueryPacketReceiptService = { + typeName: TYPE_NAME, + method: "PacketReceipt", + Request: QueryPacketReceiptRequest, + Response: QueryPacketReceiptResponse, +} as const; + +/** + * PacketAcknowledgement queries a stored packet acknowledgement hash. + * + * @generated from rpc ibc.core.channel.v1.Query.PacketAcknowledgement + */ +export const QueryPacketAcknowledgementService = { + typeName: TYPE_NAME, + method: "PacketAcknowledgement", + Request: QueryPacketAcknowledgementRequest, + Response: QueryPacketAcknowledgementResponse, +} as const; + +/** + * PacketAcknowledgements returns all the packet acknowledgements associated + * with a channel. + * + * @generated from rpc ibc.core.channel.v1.Query.PacketAcknowledgements + */ +export const QueryPacketAcknowledgementsService = { + typeName: TYPE_NAME, + method: "PacketAcknowledgements", + Request: QueryPacketAcknowledgementsRequest, + Response: QueryPacketAcknowledgementsResponse, +} as const; + +/** + * UnreceivedPackets returns all the unreceived IBC packets associated with a + * channel and sequences. + * + * @generated from rpc ibc.core.channel.v1.Query.UnreceivedPackets + */ +export const QueryUnreceivedPacketsService = { + typeName: TYPE_NAME, + method: "UnreceivedPackets", + Request: QueryUnreceivedPacketsRequest, + Response: QueryUnreceivedPacketsResponse, +} as const; + +/** + * UnreceivedAcks returns all the unreceived IBC acknowledgements associated + * with a channel and sequences. + * + * @generated from rpc ibc.core.channel.v1.Query.UnreceivedAcks + */ +export const QueryUnreceivedAcksService = { + typeName: TYPE_NAME, + method: "UnreceivedAcks", + Request: QueryUnreceivedAcksRequest, + Response: QueryUnreceivedAcksResponse, +} as const; + +/** + * NextSequenceReceive returns the next receive sequence for a given channel. + * + * @generated from rpc ibc.core.channel.v1.Query.NextSequenceReceive + */ +export const QueryNextSequenceReceiveService = { + typeName: TYPE_NAME, + method: "NextSequenceReceive", + Request: QueryNextSequenceReceiveRequest, + Response: QueryNextSequenceReceiveResponse, +} as const; + +/** + * NextSequenceSend returns the next send sequence for a given channel. + * + * @generated from rpc ibc.core.channel.v1.Query.NextSequenceSend + */ +export const QueryNextSequenceSendService = { + typeName: TYPE_NAME, + method: "NextSequenceSend", + Request: QueryNextSequenceSendRequest, + Response: QueryNextSequenceSendResponse, +} as const; + diff --git a/src/protobufs/ibc/core/channel/v1/query_pb.ts b/src/protobufs/ibc/core/channel/v1/query_pb.ts new file mode 100644 index 00000000..5b3e3ce4 --- /dev/null +++ b/src/protobufs/ibc/core/channel/v1/query_pb.ts @@ -0,0 +1,1584 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/channel/v1/query.proto (package ibc.core.channel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Channel, IdentifiedChannel, PacketState } from "./channel_pb.js"; +import { Height, IdentifiedClientState } from "../../client/v1/client_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryChannelRequest is the request type for the Query/Channel RPC method + * + * @generated from message ibc.core.channel.v1.QueryChannelRequest + */ +export class QueryChannelRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelRequest { + return new QueryChannelRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelRequest { + return new QueryChannelRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelRequest { + return new QueryChannelRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelRequest | PlainMessage | undefined, b: QueryChannelRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelRequest, a, b); + } +} + +/** + * QueryChannelResponse is the response type for the Query/Channel RPC method. + * Besides the Channel end, it includes a proof and the height from which the + * proof was retrieved. + * + * @generated from message ibc.core.channel.v1.QueryChannelResponse + */ +export class QueryChannelResponse extends Message { + /** + * channel associated with the request identifiers + * + * @generated from field: ibc.core.channel.v1.Channel channel = 1; + */ + channel?: Channel; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel", kind: "message", T: Channel }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelResponse { + return new QueryChannelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelResponse { + return new QueryChannelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelResponse { + return new QueryChannelResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelResponse | PlainMessage | undefined, b: QueryChannelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelResponse, a, b); + } +} + +/** + * QueryChannelsRequest is the request type for the Query/Channels RPC method + * + * @generated from message ibc.core.channel.v1.QueryChannelsRequest + */ +export class QueryChannelsRequest extends Message { + /** + * pagination request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelsRequest { + return new QueryChannelsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelsRequest { + return new QueryChannelsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelsRequest { + return new QueryChannelsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelsRequest | PlainMessage | undefined, b: QueryChannelsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelsRequest, a, b); + } +} + +/** + * QueryChannelsResponse is the response type for the Query/Channels RPC method. + * + * @generated from message ibc.core.channel.v1.QueryChannelsResponse + */ +export class QueryChannelsResponse extends Message { + /** + * list of stored channels of the chain. + * + * @generated from field: repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; + */ + channels: IdentifiedChannel[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + /** + * query block height + * + * @generated from field: ibc.core.client.v1.Height height = 3; + */ + height?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channels", kind: "message", T: IdentifiedChannel, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + { no: 3, name: "height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelsResponse { + return new QueryChannelsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelsResponse { + return new QueryChannelsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelsResponse { + return new QueryChannelsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelsResponse | PlainMessage | undefined, b: QueryChannelsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelsResponse, a, b); + } +} + +/** + * QueryConnectionChannelsRequest is the request type for the + * Query/QueryConnectionChannels RPC method + * + * @generated from message ibc.core.channel.v1.QueryConnectionChannelsRequest + */ +export class QueryConnectionChannelsRequest extends Message { + /** + * connection unique identifier + * + * @generated from field: string connection = 1; + */ + connection = ""; + + /** + * pagination request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryConnectionChannelsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionChannelsRequest { + return new QueryConnectionChannelsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionChannelsRequest { + return new QueryConnectionChannelsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionChannelsRequest { + return new QueryConnectionChannelsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionChannelsRequest | PlainMessage | undefined, b: QueryConnectionChannelsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionChannelsRequest, a, b); + } +} + +/** + * QueryConnectionChannelsResponse is the Response type for the + * Query/QueryConnectionChannels RPC method + * + * @generated from message ibc.core.channel.v1.QueryConnectionChannelsResponse + */ +export class QueryConnectionChannelsResponse extends Message { + /** + * list of channels associated with a connection. + * + * @generated from field: repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; + */ + channels: IdentifiedChannel[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + /** + * query block height + * + * @generated from field: ibc.core.client.v1.Height height = 3; + */ + height?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryConnectionChannelsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channels", kind: "message", T: IdentifiedChannel, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + { no: 3, name: "height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionChannelsResponse { + return new QueryConnectionChannelsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionChannelsResponse { + return new QueryConnectionChannelsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionChannelsResponse { + return new QueryConnectionChannelsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionChannelsResponse | PlainMessage | undefined, b: QueryConnectionChannelsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionChannelsResponse, a, b); + } +} + +/** + * QueryChannelClientStateRequest is the request type for the Query/ClientState + * RPC method + * + * @generated from message ibc.core.channel.v1.QueryChannelClientStateRequest + */ +export class QueryChannelClientStateRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelClientStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelClientStateRequest { + return new QueryChannelClientStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelClientStateRequest { + return new QueryChannelClientStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelClientStateRequest { + return new QueryChannelClientStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelClientStateRequest | PlainMessage | undefined, b: QueryChannelClientStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelClientStateRequest, a, b); + } +} + +/** + * QueryChannelClientStateResponse is the Response type for the + * Query/QueryChannelClientState RPC method + * + * @generated from message ibc.core.channel.v1.QueryChannelClientStateResponse + */ +export class QueryChannelClientStateResponse extends Message { + /** + * client state associated with the channel + * + * @generated from field: ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; + */ + identifiedClientState?: IdentifiedClientState; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelClientStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identified_client_state", kind: "message", T: IdentifiedClientState }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelClientStateResponse { + return new QueryChannelClientStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelClientStateResponse { + return new QueryChannelClientStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelClientStateResponse { + return new QueryChannelClientStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelClientStateResponse | PlainMessage | undefined, b: QueryChannelClientStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelClientStateResponse, a, b); + } +} + +/** + * QueryChannelConsensusStateRequest is the request type for the + * Query/ConsensusState RPC method + * + * @generated from message ibc.core.channel.v1.QueryChannelConsensusStateRequest + */ +export class QueryChannelConsensusStateRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * revision number of the consensus state + * + * @generated from field: uint64 revision_number = 3; + */ + revisionNumber = protoInt64.zero; + + /** + * revision height of the consensus state + * + * @generated from field: uint64 revision_height = 4; + */ + revisionHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelConsensusStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelConsensusStateRequest { + return new QueryChannelConsensusStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelConsensusStateRequest { + return new QueryChannelConsensusStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelConsensusStateRequest { + return new QueryChannelConsensusStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelConsensusStateRequest | PlainMessage | undefined, b: QueryChannelConsensusStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelConsensusStateRequest, a, b); + } +} + +/** + * QueryChannelClientStateResponse is the Response type for the + * Query/QueryChannelClientState RPC method + * + * @generated from message ibc.core.channel.v1.QueryChannelConsensusStateResponse + */ +export class QueryChannelConsensusStateResponse extends Message { + /** + * consensus state associated with the channel + * + * @generated from field: google.protobuf.Any consensus_state = 1; + */ + consensusState?: Any; + + /** + * client ID associated with the consensus state + * + * @generated from field: string client_id = 2; + */ + clientId = ""; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 3; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 4; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelConsensusStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "consensus_state", kind: "message", T: Any }, + { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelConsensusStateResponse { + return new QueryChannelConsensusStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelConsensusStateResponse { + return new QueryChannelConsensusStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelConsensusStateResponse { + return new QueryChannelConsensusStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelConsensusStateResponse | PlainMessage | undefined, b: QueryChannelConsensusStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelConsensusStateResponse, a, b); + } +} + +/** + * QueryPacketCommitmentRequest is the request type for the + * Query/PacketCommitment RPC method + * + * @generated from message ibc.core.channel.v1.QueryPacketCommitmentRequest + */ +export class QueryPacketCommitmentRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * packet sequence + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentRequest { + return new QueryPacketCommitmentRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentRequest { + return new QueryPacketCommitmentRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentRequest { + return new QueryPacketCommitmentRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketCommitmentRequest | PlainMessage | undefined, b: QueryPacketCommitmentRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketCommitmentRequest, a, b); + } +} + +/** + * QueryPacketCommitmentResponse defines the client query response for a packet + * which also includes a proof and the height from which the proof was + * retrieved + * + * @generated from message ibc.core.channel.v1.QueryPacketCommitmentResponse + */ +export class QueryPacketCommitmentResponse extends Message { + /** + * packet associated with the request fields + * + * @generated from field: bytes commitment = 1; + */ + commitment = new Uint8Array(0); + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "commitment", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentResponse { + return new QueryPacketCommitmentResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentResponse { + return new QueryPacketCommitmentResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentResponse { + return new QueryPacketCommitmentResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketCommitmentResponse | PlainMessage | undefined, b: QueryPacketCommitmentResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketCommitmentResponse, a, b); + } +} + +/** + * QueryPacketCommitmentsRequest is the request type for the + * Query/QueryPacketCommitments RPC method + * + * @generated from message ibc.core.channel.v1.QueryPacketCommitmentsRequest + */ +export class QueryPacketCommitmentsRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * pagination request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentsRequest { + return new QueryPacketCommitmentsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentsRequest { + return new QueryPacketCommitmentsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentsRequest { + return new QueryPacketCommitmentsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketCommitmentsRequest | PlainMessage | undefined, b: QueryPacketCommitmentsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketCommitmentsRequest, a, b); + } +} + +/** + * QueryPacketCommitmentsResponse is the request type for the + * Query/QueryPacketCommitments RPC method + * + * @generated from message ibc.core.channel.v1.QueryPacketCommitmentsResponse + */ +export class QueryPacketCommitmentsResponse extends Message { + /** + * @generated from field: repeated ibc.core.channel.v1.PacketState commitments = 1; + */ + commitments: PacketState[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + /** + * query block height + * + * @generated from field: ibc.core.client.v1.Height height = 3; + */ + height?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "commitments", kind: "message", T: PacketState, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + { no: 3, name: "height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentsResponse { + return new QueryPacketCommitmentsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentsResponse { + return new QueryPacketCommitmentsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentsResponse { + return new QueryPacketCommitmentsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketCommitmentsResponse | PlainMessage | undefined, b: QueryPacketCommitmentsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketCommitmentsResponse, a, b); + } +} + +/** + * QueryPacketReceiptRequest is the request type for the + * Query/PacketReceipt RPC method + * + * @generated from message ibc.core.channel.v1.QueryPacketReceiptRequest + */ +export class QueryPacketReceiptRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * packet sequence + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketReceiptRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketReceiptRequest { + return new QueryPacketReceiptRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketReceiptRequest { + return new QueryPacketReceiptRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketReceiptRequest { + return new QueryPacketReceiptRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketReceiptRequest | PlainMessage | undefined, b: QueryPacketReceiptRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketReceiptRequest, a, b); + } +} + +/** + * QueryPacketReceiptResponse defines the client query response for a packet + * receipt which also includes a proof, and the height from which the proof was + * retrieved + * + * @generated from message ibc.core.channel.v1.QueryPacketReceiptResponse + */ +export class QueryPacketReceiptResponse extends Message { + /** + * success flag for if receipt exists + * + * @generated from field: bool received = 2; + */ + received = false; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 3; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 4; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketReceiptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "received", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketReceiptResponse { + return new QueryPacketReceiptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketReceiptResponse { + return new QueryPacketReceiptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketReceiptResponse { + return new QueryPacketReceiptResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketReceiptResponse | PlainMessage | undefined, b: QueryPacketReceiptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketReceiptResponse, a, b); + } +} + +/** + * QueryPacketAcknowledgementRequest is the request type for the + * Query/PacketAcknowledgement RPC method + * + * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementRequest + */ +export class QueryPacketAcknowledgementRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * packet sequence + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementRequest { + return new QueryPacketAcknowledgementRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementRequest { + return new QueryPacketAcknowledgementRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementRequest { + return new QueryPacketAcknowledgementRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketAcknowledgementRequest | PlainMessage | undefined, b: QueryPacketAcknowledgementRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketAcknowledgementRequest, a, b); + } +} + +/** + * QueryPacketAcknowledgementResponse defines the client query response for a + * packet which also includes a proof and the height from which the + * proof was retrieved + * + * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementResponse + */ +export class QueryPacketAcknowledgementResponse extends Message { + /** + * packet associated with the request fields + * + * @generated from field: bytes acknowledgement = 1; + */ + acknowledgement = new Uint8Array(0); + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementResponse { + return new QueryPacketAcknowledgementResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementResponse { + return new QueryPacketAcknowledgementResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementResponse { + return new QueryPacketAcknowledgementResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketAcknowledgementResponse | PlainMessage | undefined, b: QueryPacketAcknowledgementResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketAcknowledgementResponse, a, b); + } +} + +/** + * QueryPacketAcknowledgementsRequest is the request type for the + * Query/QueryPacketCommitments RPC method + * + * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + */ +export class QueryPacketAcknowledgementsRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * pagination request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + /** + * list of packet sequences + * + * @generated from field: repeated uint64 packet_commitment_sequences = 4; + */ + packetCommitmentSequences: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + { no: 4, name: "packet_commitment_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementsRequest { + return new QueryPacketAcknowledgementsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementsRequest { + return new QueryPacketAcknowledgementsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementsRequest { + return new QueryPacketAcknowledgementsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketAcknowledgementsRequest | PlainMessage | undefined, b: QueryPacketAcknowledgementsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketAcknowledgementsRequest, a, b); + } +} + +/** + * QueryPacketAcknowledgemetsResponse is the request type for the + * Query/QueryPacketAcknowledgements RPC method + * + * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + */ +export class QueryPacketAcknowledgementsResponse extends Message { + /** + * @generated from field: repeated ibc.core.channel.v1.PacketState acknowledgements = 1; + */ + acknowledgements: PacketState[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + /** + * query block height + * + * @generated from field: ibc.core.client.v1.Height height = 3; + */ + height?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "acknowledgements", kind: "message", T: PacketState, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + { no: 3, name: "height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementsResponse { + return new QueryPacketAcknowledgementsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementsResponse { + return new QueryPacketAcknowledgementsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementsResponse { + return new QueryPacketAcknowledgementsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPacketAcknowledgementsResponse | PlainMessage | undefined, b: QueryPacketAcknowledgementsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPacketAcknowledgementsResponse, a, b); + } +} + +/** + * QueryUnreceivedPacketsRequest is the request type for the + * Query/UnreceivedPackets RPC method + * + * @generated from message ibc.core.channel.v1.QueryUnreceivedPacketsRequest + */ +export class QueryUnreceivedPacketsRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * list of packet sequences + * + * @generated from field: repeated uint64 packet_commitment_sequences = 3; + */ + packetCommitmentSequences: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedPacketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "packet_commitment_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedPacketsRequest { + return new QueryUnreceivedPacketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedPacketsRequest { + return new QueryUnreceivedPacketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedPacketsRequest { + return new QueryUnreceivedPacketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnreceivedPacketsRequest | PlainMessage | undefined, b: QueryUnreceivedPacketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnreceivedPacketsRequest, a, b); + } +} + +/** + * QueryUnreceivedPacketsResponse is the response type for the + * Query/UnreceivedPacketCommitments RPC method + * + * @generated from message ibc.core.channel.v1.QueryUnreceivedPacketsResponse + */ +export class QueryUnreceivedPacketsResponse extends Message { + /** + * list of unreceived packet sequences + * + * @generated from field: repeated uint64 sequences = 1; + */ + sequences: bigint[] = []; + + /** + * query block height + * + * @generated from field: ibc.core.client.v1.Height height = 2; + */ + height?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedPacketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 2, name: "height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedPacketsResponse { + return new QueryUnreceivedPacketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedPacketsResponse { + return new QueryUnreceivedPacketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedPacketsResponse { + return new QueryUnreceivedPacketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnreceivedPacketsResponse | PlainMessage | undefined, b: QueryUnreceivedPacketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnreceivedPacketsResponse, a, b); + } +} + +/** + * QueryUnreceivedAcks is the request type for the + * Query/UnreceivedAcks RPC method + * + * @generated from message ibc.core.channel.v1.QueryUnreceivedAcksRequest + */ +export class QueryUnreceivedAcksRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * list of acknowledgement sequences + * + * @generated from field: repeated uint64 packet_ack_sequences = 3; + */ + packetAckSequences: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedAcksRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "packet_ack_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedAcksRequest { + return new QueryUnreceivedAcksRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedAcksRequest { + return new QueryUnreceivedAcksRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedAcksRequest { + return new QueryUnreceivedAcksRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnreceivedAcksRequest | PlainMessage | undefined, b: QueryUnreceivedAcksRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnreceivedAcksRequest, a, b); + } +} + +/** + * QueryUnreceivedAcksResponse is the response type for the + * Query/UnreceivedAcks RPC method + * + * @generated from message ibc.core.channel.v1.QueryUnreceivedAcksResponse + */ +export class QueryUnreceivedAcksResponse extends Message { + /** + * list of unreceived acknowledgement sequences + * + * @generated from field: repeated uint64 sequences = 1; + */ + sequences: bigint[] = []; + + /** + * query block height + * + * @generated from field: ibc.core.client.v1.Height height = 2; + */ + height?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedAcksResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 2, name: "height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedAcksResponse { + return new QueryUnreceivedAcksResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedAcksResponse { + return new QueryUnreceivedAcksResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedAcksResponse { + return new QueryUnreceivedAcksResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnreceivedAcksResponse | PlainMessage | undefined, b: QueryUnreceivedAcksResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnreceivedAcksResponse, a, b); + } +} + +/** + * QueryNextSequenceReceiveRequest is the request type for the + * Query/QueryNextSequenceReceiveRequest RPC method + * + * @generated from message ibc.core.channel.v1.QueryNextSequenceReceiveRequest + */ +export class QueryNextSequenceReceiveRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceReceiveRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceReceiveRequest { + return new QueryNextSequenceReceiveRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceReceiveRequest { + return new QueryNextSequenceReceiveRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceReceiveRequest { + return new QueryNextSequenceReceiveRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextSequenceReceiveRequest | PlainMessage | undefined, b: QueryNextSequenceReceiveRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextSequenceReceiveRequest, a, b); + } +} + +/** + * QuerySequenceResponse is the request type for the + * Query/QueryNextSequenceReceiveResponse RPC method + * + * @generated from message ibc.core.channel.v1.QueryNextSequenceReceiveResponse + */ +export class QueryNextSequenceReceiveResponse extends Message { + /** + * next sequence receive number + * + * @generated from field: uint64 next_sequence_receive = 1; + */ + nextSequenceReceive = protoInt64.zero; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceReceiveResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_sequence_receive", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceReceiveResponse { + return new QueryNextSequenceReceiveResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceReceiveResponse { + return new QueryNextSequenceReceiveResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceReceiveResponse { + return new QueryNextSequenceReceiveResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextSequenceReceiveResponse | PlainMessage | undefined, b: QueryNextSequenceReceiveResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextSequenceReceiveResponse, a, b); + } +} + +/** + * QueryNextSequenceSendRequest is the request type for the + * Query/QueryNextSequenceSend RPC method + * + * @generated from message ibc.core.channel.v1.QueryNextSequenceSendRequest + */ +export class QueryNextSequenceSendRequest extends Message { + /** + * port unique identifier + * + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * channel unique identifier + * + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceSendRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceSendRequest { + return new QueryNextSequenceSendRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceSendRequest { + return new QueryNextSequenceSendRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceSendRequest { + return new QueryNextSequenceSendRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextSequenceSendRequest | PlainMessage | undefined, b: QueryNextSequenceSendRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextSequenceSendRequest, a, b); + } +} + +/** + * QueryNextSequenceSendResponse is the request type for the + * Query/QueryNextSequenceSend RPC method + * + * @generated from message ibc.core.channel.v1.QueryNextSequenceSendResponse + */ +export class QueryNextSequenceSendResponse extends Message { + /** + * next sequence send number + * + * @generated from field: uint64 next_sequence_send = 1; + */ + nextSequenceSend = protoInt64.zero; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceSendResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_sequence_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceSendResponse { + return new QueryNextSequenceSendResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceSendResponse { + return new QueryNextSequenceSendResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceSendResponse { + return new QueryNextSequenceSendResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextSequenceSendResponse | PlainMessage | undefined, b: QueryNextSequenceSendResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextSequenceSendResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts b/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts new file mode 100644 index 00000000..ab1ebf9c --- /dev/null +++ b/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts @@ -0,0 +1,130 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/core/channel/v1/tx.proto (package ibc.core.channel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAcknowledgement, MsgAcknowledgementResponse, MsgChannelCloseConfirm, MsgChannelCloseConfirmResponse, MsgChannelCloseInit, MsgChannelCloseInitResponse, MsgChannelOpenAck, MsgChannelOpenAckResponse, MsgChannelOpenConfirm, MsgChannelOpenConfirmResponse, MsgChannelOpenInit, MsgChannelOpenInitResponse, MsgChannelOpenTry, MsgChannelOpenTryResponse, MsgRecvPacket, MsgRecvPacketResponse, MsgTimeout, MsgTimeoutOnClose, MsgTimeoutOnCloseResponse, MsgTimeoutResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.core.channel.v1.Msg"; + +/** + * ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenInit + */ +export const MsgChannelOpenInitService = { + typeName: TYPE_NAME, + method: "ChannelOpenInit", + Request: MsgChannelOpenInit, + Response: MsgChannelOpenInitResponse, +} as const; + +/** + * ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenTry + */ +export const MsgChannelOpenTryService = { + typeName: TYPE_NAME, + method: "ChannelOpenTry", + Request: MsgChannelOpenTry, + Response: MsgChannelOpenTryResponse, +} as const; + +/** + * ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenAck + */ +export const MsgChannelOpenAckService = { + typeName: TYPE_NAME, + method: "ChannelOpenAck", + Request: MsgChannelOpenAck, + Response: MsgChannelOpenAckResponse, +} as const; + +/** + * ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenConfirm + */ +export const MsgChannelOpenConfirmService = { + typeName: TYPE_NAME, + method: "ChannelOpenConfirm", + Request: MsgChannelOpenConfirm, + Response: MsgChannelOpenConfirmResponse, +} as const; + +/** + * ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelCloseInit + */ +export const MsgChannelCloseInitService = { + typeName: TYPE_NAME, + method: "ChannelCloseInit", + Request: MsgChannelCloseInit, + Response: MsgChannelCloseInitResponse, +} as const; + +/** + * ChannelCloseConfirm defines a rpc handler method for + * MsgChannelCloseConfirm. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelCloseConfirm + */ +export const MsgChannelCloseConfirmService = { + typeName: TYPE_NAME, + method: "ChannelCloseConfirm", + Request: MsgChannelCloseConfirm, + Response: MsgChannelCloseConfirmResponse, +} as const; + +/** + * RecvPacket defines a rpc handler method for MsgRecvPacket. + * + * @generated from rpc ibc.core.channel.v1.Msg.RecvPacket + */ +export const MsgRecvPacketService = { + typeName: TYPE_NAME, + method: "RecvPacket", + Request: MsgRecvPacket, + Response: MsgRecvPacketResponse, +} as const; + +/** + * Timeout defines a rpc handler method for MsgTimeout. + * + * @generated from rpc ibc.core.channel.v1.Msg.Timeout + */ +export const MsgTimeoutService = { + typeName: TYPE_NAME, + method: "Timeout", + Request: MsgTimeout, + Response: MsgTimeoutResponse, +} as const; + +/** + * TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. + * + * @generated from rpc ibc.core.channel.v1.Msg.TimeoutOnClose + */ +export const MsgTimeoutOnCloseService = { + typeName: TYPE_NAME, + method: "TimeoutOnClose", + Request: MsgTimeoutOnClose, + Response: MsgTimeoutOnCloseResponse, +} as const; + +/** + * Acknowledgement defines a rpc handler method for MsgAcknowledgement. + * + * @generated from rpc ibc.core.channel.v1.Msg.Acknowledgement + */ +export const MsgAcknowledgementService = { + typeName: TYPE_NAME, + method: "Acknowledgement", + Request: MsgAcknowledgement, + Response: MsgAcknowledgementResponse, +} as const; + diff --git a/src/protobufs/ibc/core/channel/v1/tx_pb.ts b/src/protobufs/ibc/core/channel/v1/tx_pb.ts new file mode 100644 index 00000000..b8325a10 --- /dev/null +++ b/src/protobufs/ibc/core/channel/v1/tx_pb.ts @@ -0,0 +1,1066 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/channel/v1/tx.proto (package ibc.core.channel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Channel, Packet } from "./channel_pb.js"; +import { Height } from "../../client/v1/client_pb.js"; + +/** + * ResponseResultType defines the possible outcomes of the execution of a message + * + * @generated from enum ibc.core.channel.v1.ResponseResultType + */ +export enum ResponseResultType { + /** + * Default zero value enumeration + * + * @generated from enum value: RESPONSE_RESULT_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) + * + * @generated from enum value: RESPONSE_RESULT_TYPE_NOOP = 1; + */ + NOOP = 1, + + /** + * The message was executed successfully + * + * @generated from enum value: RESPONSE_RESULT_TYPE_SUCCESS = 2; + */ + SUCCESS = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(ResponseResultType) +proto3.util.setEnumType(ResponseResultType, "ibc.core.channel.v1.ResponseResultType", [ + { no: 0, name: "RESPONSE_RESULT_TYPE_UNSPECIFIED" }, + { no: 1, name: "RESPONSE_RESULT_TYPE_NOOP" }, + { no: 2, name: "RESPONSE_RESULT_TYPE_SUCCESS" }, +]); + +/** + * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It + * is called by a relayer on Chain A. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenInit + */ +export class MsgChannelOpenInit extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: ibc.core.channel.v1.Channel channel = 2; + */ + channel?: Channel; + + /** + * @generated from field: string signer = 3; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenInit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel", kind: "message", T: Channel }, + { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenInit { + return new MsgChannelOpenInit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenInit { + return new MsgChannelOpenInit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenInit { + return new MsgChannelOpenInit().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenInit | PlainMessage | undefined, b: MsgChannelOpenInit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenInit, a, b); + } +} + +/** + * MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenInitResponse + */ +export class MsgChannelOpenInitResponse extends Message { + /** + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * @generated from field: string version = 2; + */ + version = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenInitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenInitResponse { + return new MsgChannelOpenInitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenInitResponse { + return new MsgChannelOpenInitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenInitResponse { + return new MsgChannelOpenInitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenInitResponse | PlainMessage | undefined, b: MsgChannelOpenInitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenInitResponse, a, b); + } +} + +/** + * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel + * on Chain B. The version field within the Channel field has been deprecated. Its + * value will be ignored by core IBC. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenTry + */ +export class MsgChannelOpenTry extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * Deprecated: this field is unused. Crossing hello's are no longer supported in core IBC. + * + * @generated from field: string previous_channel_id = 2 [deprecated = true]; + * @deprecated + */ + previousChannelId = ""; + + /** + * NOTE: the version field within the channel has been deprecated. Its value will be ignored by core IBC. + * + * @generated from field: ibc.core.channel.v1.Channel channel = 3; + */ + channel?: Channel; + + /** + * @generated from field: string counterparty_version = 4; + */ + counterpartyVersion = ""; + + /** + * @generated from field: bytes proof_init = 5; + */ + proofInit = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 6; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 7; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenTry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "previous_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "channel", kind: "message", T: Channel }, + { no: 4, name: "counterparty_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "proof_init", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "proof_height", kind: "message", T: Height }, + { no: 7, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenTry { + return new MsgChannelOpenTry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenTry { + return new MsgChannelOpenTry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenTry { + return new MsgChannelOpenTry().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenTry | PlainMessage | undefined, b: MsgChannelOpenTry | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenTry, a, b); + } +} + +/** + * MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenTryResponse + */ +export class MsgChannelOpenTryResponse extends Message { + /** + * @generated from field: string version = 1; + */ + version = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenTryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenTryResponse { + return new MsgChannelOpenTryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenTryResponse { + return new MsgChannelOpenTryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenTryResponse { + return new MsgChannelOpenTryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenTryResponse | PlainMessage | undefined, b: MsgChannelOpenTryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenTryResponse, a, b); + } +} + +/** + * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge + * the change of channel state to TRYOPEN on Chain B. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenAck + */ +export class MsgChannelOpenAck extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: string counterparty_channel_id = 3; + */ + counterpartyChannelId = ""; + + /** + * @generated from field: string counterparty_version = 4; + */ + counterpartyVersion = ""; + + /** + * @generated from field: bytes proof_try = 5; + */ + proofTry = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 6; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 7; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenAck"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "counterparty_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "counterparty_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "proof_try", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "proof_height", kind: "message", T: Height }, + { no: 7, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenAck { + return new MsgChannelOpenAck().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenAck { + return new MsgChannelOpenAck().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenAck { + return new MsgChannelOpenAck().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenAck | PlainMessage | undefined, b: MsgChannelOpenAck | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenAck, a, b); + } +} + +/** + * MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenAckResponse + */ +export class MsgChannelOpenAckResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenAckResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenAckResponse { + return new MsgChannelOpenAckResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenAckResponse { + return new MsgChannelOpenAckResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenAckResponse { + return new MsgChannelOpenAckResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenAckResponse | PlainMessage | undefined, b: MsgChannelOpenAckResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenAckResponse, a, b); + } +} + +/** + * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to + * acknowledge the change of channel state to OPEN on Chain A. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenConfirm + */ +export class MsgChannelOpenConfirm extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: bytes proof_ack = 3; + */ + proofAck = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 4; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 5; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenConfirm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proof_ack", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "proof_height", kind: "message", T: Height }, + { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenConfirm { + return new MsgChannelOpenConfirm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenConfirm { + return new MsgChannelOpenConfirm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenConfirm { + return new MsgChannelOpenConfirm().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenConfirm | PlainMessage | undefined, b: MsgChannelOpenConfirm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenConfirm, a, b); + } +} + +/** + * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response + * type. + * + * @generated from message ibc.core.channel.v1.MsgChannelOpenConfirmResponse + */ +export class MsgChannelOpenConfirmResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenConfirmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenConfirmResponse { + return new MsgChannelOpenConfirmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenConfirmResponse { + return new MsgChannelOpenConfirmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenConfirmResponse { + return new MsgChannelOpenConfirmResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelOpenConfirmResponse | PlainMessage | undefined, b: MsgChannelOpenConfirmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelOpenConfirmResponse, a, b); + } +} + +/** + * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A + * to close a channel with Chain B. + * + * @generated from message ibc.core.channel.v1.MsgChannelCloseInit + */ +export class MsgChannelCloseInit extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: string signer = 3; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseInit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseInit { + return new MsgChannelCloseInit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseInit { + return new MsgChannelCloseInit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseInit { + return new MsgChannelCloseInit().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelCloseInit | PlainMessage | undefined, b: MsgChannelCloseInit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelCloseInit, a, b); + } +} + +/** + * MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. + * + * @generated from message ibc.core.channel.v1.MsgChannelCloseInitResponse + */ +export class MsgChannelCloseInitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseInitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseInitResponse { + return new MsgChannelCloseInitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseInitResponse { + return new MsgChannelCloseInitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseInitResponse { + return new MsgChannelCloseInitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelCloseInitResponse | PlainMessage | undefined, b: MsgChannelCloseInitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelCloseInitResponse, a, b); + } +} + +/** + * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B + * to acknowledge the change of channel state to CLOSED on Chain A. + * + * @generated from message ibc.core.channel.v1.MsgChannelCloseConfirm + */ +export class MsgChannelCloseConfirm extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: bytes proof_init = 3; + */ + proofInit = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 4; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 5; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseConfirm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proof_init", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "proof_height", kind: "message", T: Height }, + { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseConfirm { + return new MsgChannelCloseConfirm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseConfirm { + return new MsgChannelCloseConfirm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseConfirm { + return new MsgChannelCloseConfirm().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelCloseConfirm | PlainMessage | undefined, b: MsgChannelCloseConfirm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelCloseConfirm, a, b); + } +} + +/** + * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response + * type. + * + * @generated from message ibc.core.channel.v1.MsgChannelCloseConfirmResponse + */ +export class MsgChannelCloseConfirmResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseConfirmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseConfirmResponse { + return new MsgChannelCloseConfirmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseConfirmResponse { + return new MsgChannelCloseConfirmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseConfirmResponse { + return new MsgChannelCloseConfirmResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelCloseConfirmResponse | PlainMessage | undefined, b: MsgChannelCloseConfirmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelCloseConfirmResponse, a, b); + } +} + +/** + * MsgRecvPacket receives incoming IBC packet + * + * @generated from message ibc.core.channel.v1.MsgRecvPacket + */ +export class MsgRecvPacket extends Message { + /** + * @generated from field: ibc.core.channel.v1.Packet packet = 1; + */ + packet?: Packet; + + /** + * @generated from field: bytes proof_commitment = 2; + */ + proofCommitment = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 4; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgRecvPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet", kind: "message", T: Packet }, + { no: 2, name: "proof_commitment", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecvPacket { + return new MsgRecvPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecvPacket { + return new MsgRecvPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRecvPacket { + return new MsgRecvPacket().fromJsonString(jsonString, options); + } + + static equals(a: MsgRecvPacket | PlainMessage | undefined, b: MsgRecvPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRecvPacket, a, b); + } +} + +/** + * MsgRecvPacketResponse defines the Msg/RecvPacket response type. + * + * @generated from message ibc.core.channel.v1.MsgRecvPacketResponse + */ +export class MsgRecvPacketResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; + */ + result = ResponseResultType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgRecvPacketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecvPacketResponse { + return new MsgRecvPacketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecvPacketResponse { + return new MsgRecvPacketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRecvPacketResponse { + return new MsgRecvPacketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRecvPacketResponse | PlainMessage | undefined, b: MsgRecvPacketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRecvPacketResponse, a, b); + } +} + +/** + * MsgTimeout receives timed-out packet + * + * @generated from message ibc.core.channel.v1.MsgTimeout + */ +export class MsgTimeout extends Message { + /** + * @generated from field: ibc.core.channel.v1.Packet packet = 1; + */ + packet?: Packet; + + /** + * @generated from field: bytes proof_unreceived = 2; + */ + proofUnreceived = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + /** + * @generated from field: uint64 next_sequence_recv = 4; + */ + nextSequenceRecv = protoInt64.zero; + + /** + * @generated from field: string signer = 5; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgTimeout"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet", kind: "message", T: Packet }, + { no: 2, name: "proof_unreceived", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + { no: 4, name: "next_sequence_recv", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeout { + return new MsgTimeout().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeout { + return new MsgTimeout().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTimeout { + return new MsgTimeout().fromJsonString(jsonString, options); + } + + static equals(a: MsgTimeout | PlainMessage | undefined, b: MsgTimeout | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTimeout, a, b); + } +} + +/** + * MsgTimeoutResponse defines the Msg/Timeout response type. + * + * @generated from message ibc.core.channel.v1.MsgTimeoutResponse + */ +export class MsgTimeoutResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; + */ + result = ResponseResultType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgTimeoutResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeoutResponse { + return new MsgTimeoutResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeoutResponse { + return new MsgTimeoutResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTimeoutResponse { + return new MsgTimeoutResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTimeoutResponse | PlainMessage | undefined, b: MsgTimeoutResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTimeoutResponse, a, b); + } +} + +/** + * MsgTimeoutOnClose timed-out packet upon counterparty channel closure. + * + * @generated from message ibc.core.channel.v1.MsgTimeoutOnClose + */ +export class MsgTimeoutOnClose extends Message { + /** + * @generated from field: ibc.core.channel.v1.Packet packet = 1; + */ + packet?: Packet; + + /** + * @generated from field: bytes proof_unreceived = 2; + */ + proofUnreceived = new Uint8Array(0); + + /** + * @generated from field: bytes proof_close = 3; + */ + proofClose = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 4; + */ + proofHeight?: Height; + + /** + * @generated from field: uint64 next_sequence_recv = 5; + */ + nextSequenceRecv = protoInt64.zero; + + /** + * @generated from field: string signer = 6; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgTimeoutOnClose"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet", kind: "message", T: Packet }, + { no: 2, name: "proof_unreceived", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_close", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "proof_height", kind: "message", T: Height }, + { no: 5, name: "next_sequence_recv", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeoutOnClose { + return new MsgTimeoutOnClose().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeoutOnClose { + return new MsgTimeoutOnClose().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTimeoutOnClose { + return new MsgTimeoutOnClose().fromJsonString(jsonString, options); + } + + static equals(a: MsgTimeoutOnClose | PlainMessage | undefined, b: MsgTimeoutOnClose | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTimeoutOnClose, a, b); + } +} + +/** + * MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. + * + * @generated from message ibc.core.channel.v1.MsgTimeoutOnCloseResponse + */ +export class MsgTimeoutOnCloseResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; + */ + result = ResponseResultType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgTimeoutOnCloseResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeoutOnCloseResponse { + return new MsgTimeoutOnCloseResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeoutOnCloseResponse { + return new MsgTimeoutOnCloseResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTimeoutOnCloseResponse { + return new MsgTimeoutOnCloseResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTimeoutOnCloseResponse | PlainMessage | undefined, b: MsgTimeoutOnCloseResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTimeoutOnCloseResponse, a, b); + } +} + +/** + * MsgAcknowledgement receives incoming IBC acknowledgement + * + * @generated from message ibc.core.channel.v1.MsgAcknowledgement + */ +export class MsgAcknowledgement extends Message { + /** + * @generated from field: ibc.core.channel.v1.Packet packet = 1; + */ + packet?: Packet; + + /** + * @generated from field: bytes acknowledgement = 2; + */ + acknowledgement = new Uint8Array(0); + + /** + * @generated from field: bytes proof_acked = 3; + */ + proofAcked = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 4; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 5; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgAcknowledgement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet", kind: "message", T: Packet }, + { no: 2, name: "acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_acked", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "proof_height", kind: "message", T: Height }, + { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAcknowledgement { + return new MsgAcknowledgement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAcknowledgement { + return new MsgAcknowledgement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAcknowledgement { + return new MsgAcknowledgement().fromJsonString(jsonString, options); + } + + static equals(a: MsgAcknowledgement | PlainMessage | undefined, b: MsgAcknowledgement | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAcknowledgement, a, b); + } +} + +/** + * MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. + * + * @generated from message ibc.core.channel.v1.MsgAcknowledgementResponse + */ +export class MsgAcknowledgementResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; + */ + result = ResponseResultType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgAcknowledgementResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAcknowledgementResponse { + return new MsgAcknowledgementResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAcknowledgementResponse { + return new MsgAcknowledgementResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAcknowledgementResponse { + return new MsgAcknowledgementResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAcknowledgementResponse | PlainMessage | undefined, b: MsgAcknowledgementResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAcknowledgementResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/core/client/v1/client_pb.ts b/src/protobufs/ibc/core/client/v1/client_pb.ts new file mode 100644 index 00000000..6805be0c --- /dev/null +++ b/src/protobufs/ibc/core/client/v1/client_pb.ts @@ -0,0 +1,394 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/client/v1/client.proto (package ibc.core.client.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade_pb.js"; + +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + * + * @generated from message ibc.core.client.v1.IdentifiedClientState + */ +export class IdentifiedClientState extends Message { + /** + * client identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * client state + * + * @generated from field: google.protobuf.Any client_state = 2; + */ + clientState?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.IdentifiedClientState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "client_state", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedClientState { + return new IdentifiedClientState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedClientState { + return new IdentifiedClientState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IdentifiedClientState { + return new IdentifiedClientState().fromJsonString(jsonString, options); + } + + static equals(a: IdentifiedClientState | PlainMessage | undefined, b: IdentifiedClientState | PlainMessage | undefined): boolean { + return proto3.util.equals(IdentifiedClientState, a, b); + } +} + +/** + * ConsensusStateWithHeight defines a consensus state with an additional height + * field. + * + * @generated from message ibc.core.client.v1.ConsensusStateWithHeight + */ +export class ConsensusStateWithHeight extends Message { + /** + * consensus state height + * + * @generated from field: ibc.core.client.v1.Height height = 1; + */ + height?: Height; + + /** + * consensus state + * + * @generated from field: google.protobuf.Any consensus_state = 2; + */ + consensusState?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.ConsensusStateWithHeight"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "message", T: Height }, + { no: 2, name: "consensus_state", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusStateWithHeight { + return new ConsensusStateWithHeight().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusStateWithHeight { + return new ConsensusStateWithHeight().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConsensusStateWithHeight { + return new ConsensusStateWithHeight().fromJsonString(jsonString, options); + } + + static equals(a: ConsensusStateWithHeight | PlainMessage | undefined, b: ConsensusStateWithHeight | PlainMessage | undefined): boolean { + return proto3.util.equals(ConsensusStateWithHeight, a, b); + } +} + +/** + * ClientConsensusStates defines all the stored consensus states for a given + * client. + * + * @generated from message ibc.core.client.v1.ClientConsensusStates + */ +export class ClientConsensusStates extends Message { + /** + * client identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * consensus states and their heights associated with the client + * + * @generated from field: repeated ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2; + */ + consensusStates: ConsensusStateWithHeight[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.ClientConsensusStates"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "consensus_states", kind: "message", T: ConsensusStateWithHeight, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientConsensusStates { + return new ClientConsensusStates().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientConsensusStates { + return new ClientConsensusStates().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientConsensusStates { + return new ClientConsensusStates().fromJsonString(jsonString, options); + } + + static equals(a: ClientConsensusStates | PlainMessage | undefined, b: ClientConsensusStates | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientConsensusStates, a, b); + } +} + +/** + * ClientUpdateProposal is a governance proposal. If it passes, the substitute + * client's latest consensus state is copied over to the subject client. The proposal + * handler may fail if the subject and the substitute do not match in client and + * chain parameters (with exception to latest height, frozen height, and chain-id). + * + * @generated from message ibc.core.client.v1.ClientUpdateProposal + */ +export class ClientUpdateProposal extends Message { + /** + * the title of the update proposal + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * the description of the proposal + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * the client identifier for the client to be updated if the proposal passes + * + * @generated from field: string subject_client_id = 3; + */ + subjectClientId = ""; + + /** + * the substitute client identifier for the client standing in for the subject + * client + * + * @generated from field: string substitute_client_id = 4; + */ + substituteClientId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.ClientUpdateProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subject_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "substitute_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientUpdateProposal { + return new ClientUpdateProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientUpdateProposal { + return new ClientUpdateProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientUpdateProposal { + return new ClientUpdateProposal().fromJsonString(jsonString, options); + } + + static equals(a: ClientUpdateProposal | PlainMessage | undefined, b: ClientUpdateProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientUpdateProposal, a, b); + } +} + +/** + * UpgradeProposal is a gov Content type for initiating an IBC breaking + * upgrade. + * + * @generated from message ibc.core.client.v1.UpgradeProposal + */ +export class UpgradeProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: cosmos.upgrade.v1beta1.Plan plan = 3; + */ + plan?: Plan; + + /** + * An UpgradedClientState must be provided to perform an IBC breaking upgrade. + * This will make the chain commit to the correct upgraded (self) client state + * before the upgrade occurs, so that connecting chains can verify that the + * new upgraded client is valid by verifying a proof on the previous version + * of the chain. This will allow IBC connections to persist smoothly across + * planned chain upgrades + * + * @generated from field: google.protobuf.Any upgraded_client_state = 4; + */ + upgradedClientState?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.UpgradeProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "plan", kind: "message", T: Plan }, + { no: 4, name: "upgraded_client_state", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpgradeProposal { + return new UpgradeProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpgradeProposal { + return new UpgradeProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpgradeProposal { + return new UpgradeProposal().fromJsonString(jsonString, options); + } + + static equals(a: UpgradeProposal | PlainMessage | undefined, b: UpgradeProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(UpgradeProposal, a, b); + } +} + +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * + * Normally the RevisionHeight is incremented at each height while keeping + * RevisionNumber the same. However some consensus algorithms may choose to + * reset the height in certain conditions e.g. hard forks, state-machine + * breaking changes In these cases, the RevisionNumber is incremented so that + * height continues to be monitonically increasing even as the RevisionHeight + * gets reset + * + * @generated from message ibc.core.client.v1.Height + */ +export class Height extends Message { + /** + * the revision that the client is currently on + * + * @generated from field: uint64 revision_number = 1; + */ + revisionNumber = protoInt64.zero; + + /** + * the height within the given revision + * + * @generated from field: uint64 revision_height = 2; + */ + revisionHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.Height"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Height { + return new Height().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Height { + return new Height().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Height { + return new Height().fromJsonString(jsonString, options); + } + + static equals(a: Height | PlainMessage | undefined, b: Height | PlainMessage | undefined): boolean { + return proto3.util.equals(Height, a, b); + } +} + +/** + * Params defines the set of IBC light client parameters. + * + * @generated from message ibc.core.client.v1.Params + */ +export class Params extends Message { + /** + * allowed_clients defines the list of allowed client state types which can be created + * and interacted with. If a client type is removed from the allowed clients list, usage + * of this client will be disabled until it is added again to the list. + * + * @generated from field: repeated string allowed_clients = 1; + */ + allowedClients: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allowed_clients", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/ibc/core/client/v1/genesis_pb.ts b/src/protobufs/ibc/core/client/v1/genesis_pb.ts new file mode 100644 index 00000000..74388998 --- /dev/null +++ b/src/protobufs/ibc/core/client/v1/genesis_pb.ts @@ -0,0 +1,186 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/client/v1/genesis.proto (package ibc.core.client.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ClientConsensusStates, IdentifiedClientState, Params } from "./client_pb.js"; + +/** + * GenesisState defines the ibc client submodule's genesis state. + * + * @generated from message ibc.core.client.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * client states with their corresponding identifiers + * + * @generated from field: repeated ibc.core.client.v1.IdentifiedClientState clients = 1; + */ + clients: IdentifiedClientState[] = []; + + /** + * consensus states from each client + * + * @generated from field: repeated ibc.core.client.v1.ClientConsensusStates clients_consensus = 2; + */ + clientsConsensus: ClientConsensusStates[] = []; + + /** + * metadata from each client + * + * @generated from field: repeated ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3; + */ + clientsMetadata: IdentifiedGenesisMetadata[] = []; + + /** + * @generated from field: ibc.core.client.v1.Params params = 4; + */ + params?: Params; + + /** + * Deprecated: create_localhost has been deprecated. + * The localhost client is automatically created at genesis. + * + * @generated from field: bool create_localhost = 5 [deprecated = true]; + * @deprecated + */ + createLocalhost = false; + + /** + * the sequence for the next generated client identifier + * + * @generated from field: uint64 next_client_sequence = 6; + */ + nextClientSequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "clients", kind: "message", T: IdentifiedClientState, repeated: true }, + { no: 2, name: "clients_consensus", kind: "message", T: ClientConsensusStates, repeated: true }, + { no: 3, name: "clients_metadata", kind: "message", T: IdentifiedGenesisMetadata, repeated: true }, + { no: 4, name: "params", kind: "message", T: Params }, + { no: 5, name: "create_localhost", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "next_client_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata + * + * @generated from message ibc.core.client.v1.GenesisMetadata + */ +export class GenesisMetadata extends Message { + /** + * store key of metadata without clientID-prefix + * + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + /** + * metadata value + * + * @generated from field: bytes value = 2; + */ + value = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.GenesisMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisMetadata { + return new GenesisMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisMetadata { + return new GenesisMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisMetadata { + return new GenesisMetadata().fromJsonString(jsonString, options); + } + + static equals(a: GenesisMetadata | PlainMessage | undefined, b: GenesisMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisMetadata, a, b); + } +} + +/** + * IdentifiedGenesisMetadata has the client metadata with the corresponding + * client id. + * + * @generated from message ibc.core.client.v1.IdentifiedGenesisMetadata + */ +export class IdentifiedGenesisMetadata extends Message { + /** + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * @generated from field: repeated ibc.core.client.v1.GenesisMetadata client_metadata = 2; + */ + clientMetadata: GenesisMetadata[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.IdentifiedGenesisMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "client_metadata", kind: "message", T: GenesisMetadata, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedGenesisMetadata { + return new IdentifiedGenesisMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedGenesisMetadata { + return new IdentifiedGenesisMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IdentifiedGenesisMetadata { + return new IdentifiedGenesisMetadata().fromJsonString(jsonString, options); + } + + static equals(a: IdentifiedGenesisMetadata | PlainMessage | undefined, b: IdentifiedGenesisMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(IdentifiedGenesisMetadata, a, b); + } +} + diff --git a/src/protobufs/ibc/core/client/v1/query_cosmes.ts b/src/protobufs/ibc/core/client/v1/query_cosmes.ts new file mode 100644 index 00000000..95963b27 --- /dev/null +++ b/src/protobufs/ibc/core/client/v1/query_cosmes.ts @@ -0,0 +1,119 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/core/client/v1/query.proto (package ibc.core.client.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryClientParamsRequest, QueryClientParamsResponse, QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.core.client.v1.Query"; + +/** + * ClientState queries an IBC light client. + * + * @generated from rpc ibc.core.client.v1.Query.ClientState + */ +export const QueryClientStateService = { + typeName: TYPE_NAME, + method: "ClientState", + Request: QueryClientStateRequest, + Response: QueryClientStateResponse, +} as const; + +/** + * ClientStates queries all the IBC light clients of a chain. + * + * @generated from rpc ibc.core.client.v1.Query.ClientStates + */ +export const QueryClientStatesService = { + typeName: TYPE_NAME, + method: "ClientStates", + Request: QueryClientStatesRequest, + Response: QueryClientStatesResponse, +} as const; + +/** + * ConsensusState queries a consensus state associated with a client state at + * a given height. + * + * @generated from rpc ibc.core.client.v1.Query.ConsensusState + */ +export const QueryConsensusStateService = { + typeName: TYPE_NAME, + method: "ConsensusState", + Request: QueryConsensusStateRequest, + Response: QueryConsensusStateResponse, +} as const; + +/** + * ConsensusStates queries all the consensus state associated with a given + * client. + * + * @generated from rpc ibc.core.client.v1.Query.ConsensusStates + */ +export const QueryConsensusStatesService = { + typeName: TYPE_NAME, + method: "ConsensusStates", + Request: QueryConsensusStatesRequest, + Response: QueryConsensusStatesResponse, +} as const; + +/** + * ConsensusStateHeights queries the height of every consensus states associated with a given client. + * + * @generated from rpc ibc.core.client.v1.Query.ConsensusStateHeights + */ +export const QueryConsensusStateHeightsService = { + typeName: TYPE_NAME, + method: "ConsensusStateHeights", + Request: QueryConsensusStateHeightsRequest, + Response: QueryConsensusStateHeightsResponse, +} as const; + +/** + * Status queries the status of an IBC client. + * + * @generated from rpc ibc.core.client.v1.Query.ClientStatus + */ +export const QueryClientStatusService = { + typeName: TYPE_NAME, + method: "ClientStatus", + Request: QueryClientStatusRequest, + Response: QueryClientStatusResponse, +} as const; + +/** + * ClientParams queries all parameters of the ibc client submodule. + * + * @generated from rpc ibc.core.client.v1.Query.ClientParams + */ +export const QueryClientParamsService = { + typeName: TYPE_NAME, + method: "ClientParams", + Request: QueryClientParamsRequest, + Response: QueryClientParamsResponse, +} as const; + +/** + * UpgradedClientState queries an Upgraded IBC light client. + * + * @generated from rpc ibc.core.client.v1.Query.UpgradedClientState + */ +export const QueryUpgradedClientStateService = { + typeName: TYPE_NAME, + method: "UpgradedClientState", + Request: QueryUpgradedClientStateRequest, + Response: QueryUpgradedClientStateResponse, +} as const; + +/** + * UpgradedConsensusState queries an Upgraded IBC consensus state. + * + * @generated from rpc ibc.core.client.v1.Query.UpgradedConsensusState + */ +export const QueryUpgradedConsensusStateService = { + typeName: TYPE_NAME, + method: "UpgradedConsensusState", + Request: QueryUpgradedConsensusStateRequest, + Response: QueryUpgradedConsensusStateResponse, +} as const; + diff --git a/src/protobufs/ibc/core/client/v1/query_pb.ts b/src/protobufs/ibc/core/client/v1/query_pb.ts new file mode 100644 index 00000000..7ad31f03 --- /dev/null +++ b/src/protobufs/ibc/core/client/v1/query_pb.ts @@ -0,0 +1,839 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/client/v1/query.proto (package ibc.core.client.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryClientStateRequest is the request type for the Query/ClientState RPC + * method + * + * @generated from message ibc.core.client.v1.QueryClientStateRequest + */ +export class QueryClientStateRequest extends Message { + /** + * client state unique identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStateRequest { + return new QueryClientStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStateRequest { + return new QueryClientStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientStateRequest { + return new QueryClientStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientStateRequest | PlainMessage | undefined, b: QueryClientStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientStateRequest, a, b); + } +} + +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + * + * @generated from message ibc.core.client.v1.QueryClientStateResponse + */ +export class QueryClientStateResponse extends Message { + /** + * client state associated with the request identifier + * + * @generated from field: google.protobuf.Any client_state = 1; + */ + clientState?: Any; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_state", kind: "message", T: Any }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStateResponse { + return new QueryClientStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStateResponse { + return new QueryClientStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientStateResponse { + return new QueryClientStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientStateResponse | PlainMessage | undefined, b: QueryClientStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientStateResponse, a, b); + } +} + +/** + * QueryClientStatesRequest is the request type for the Query/ClientStates RPC + * method + * + * @generated from message ibc.core.client.v1.QueryClientStatesRequest + */ +export class QueryClientStatesRequest extends Message { + /** + * pagination request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientStatesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatesRequest { + return new QueryClientStatesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatesRequest { + return new QueryClientStatesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientStatesRequest { + return new QueryClientStatesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientStatesRequest | PlainMessage | undefined, b: QueryClientStatesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientStatesRequest, a, b); + } +} + +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + * + * @generated from message ibc.core.client.v1.QueryClientStatesResponse + */ +export class QueryClientStatesResponse extends Message { + /** + * list of stored ClientStates of the chain. + * + * @generated from field: repeated ibc.core.client.v1.IdentifiedClientState client_states = 1; + */ + clientStates: IdentifiedClientState[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientStatesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_states", kind: "message", T: IdentifiedClientState, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatesResponse { + return new QueryClientStatesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatesResponse { + return new QueryClientStatesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientStatesResponse { + return new QueryClientStatesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientStatesResponse | PlainMessage | undefined, b: QueryClientStatesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientStatesResponse, a, b); + } +} + +/** + * QueryConsensusStateRequest is the request type for the Query/ConsensusState + * RPC method. Besides the consensus state, it includes a proof and the height + * from which the proof was retrieved. + * + * @generated from message ibc.core.client.v1.QueryConsensusStateRequest + */ +export class QueryConsensusStateRequest extends Message { + /** + * client identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * consensus state revision number + * + * @generated from field: uint64 revision_number = 2; + */ + revisionNumber = protoInt64.zero; + + /** + * consensus state revision height + * + * @generated from field: uint64 revision_height = 3; + */ + revisionHeight = protoInt64.zero; + + /** + * latest_height overrrides the height field and queries the latest stored + * ConsensusState + * + * @generated from field: bool latest_height = 4; + */ + latestHeight = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryConsensusStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "latest_height", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateRequest { + return new QueryConsensusStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateRequest { + return new QueryConsensusStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateRequest { + return new QueryConsensusStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStateRequest | PlainMessage | undefined, b: QueryConsensusStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStateRequest, a, b); + } +} + +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + * + * @generated from message ibc.core.client.v1.QueryConsensusStateResponse + */ +export class QueryConsensusStateResponse extends Message { + /** + * consensus state associated with the client identifier at the given height + * + * @generated from field: google.protobuf.Any consensus_state = 1; + */ + consensusState?: Any; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryConsensusStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "consensus_state", kind: "message", T: Any }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateResponse { + return new QueryConsensusStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateResponse { + return new QueryConsensusStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateResponse { + return new QueryConsensusStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStateResponse | PlainMessage | undefined, b: QueryConsensusStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStateResponse, a, b); + } +} + +/** + * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates + * RPC method. + * + * @generated from message ibc.core.client.v1.QueryConsensusStatesRequest + */ +export class QueryConsensusStatesRequest extends Message { + /** + * client identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * pagination request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryConsensusStatesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStatesRequest { + return new QueryConsensusStatesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStatesRequest { + return new QueryConsensusStatesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStatesRequest { + return new QueryConsensusStatesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStatesRequest | PlainMessage | undefined, b: QueryConsensusStatesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStatesRequest, a, b); + } +} + +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + * + * @generated from message ibc.core.client.v1.QueryConsensusStatesResponse + */ +export class QueryConsensusStatesResponse extends Message { + /** + * consensus states associated with the identifier + * + * @generated from field: repeated ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1; + */ + consensusStates: ConsensusStateWithHeight[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryConsensusStatesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "consensus_states", kind: "message", T: ConsensusStateWithHeight, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStatesResponse { + return new QueryConsensusStatesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStatesResponse { + return new QueryConsensusStatesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStatesResponse { + return new QueryConsensusStatesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStatesResponse | PlainMessage | undefined, b: QueryConsensusStatesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStatesResponse, a, b); + } +} + +/** + * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights + * RPC method. + * + * @generated from message ibc.core.client.v1.QueryConsensusStateHeightsRequest + */ +export class QueryConsensusStateHeightsRequest extends Message { + /** + * client identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * pagination request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryConsensusStateHeightsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateHeightsRequest { + return new QueryConsensusStateHeightsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateHeightsRequest { + return new QueryConsensusStateHeightsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateHeightsRequest { + return new QueryConsensusStateHeightsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStateHeightsRequest | PlainMessage | undefined, b: QueryConsensusStateHeightsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStateHeightsRequest, a, b); + } +} + +/** + * QueryConsensusStateHeightsResponse is the response type for the + * Query/ConsensusStateHeights RPC method + * + * @generated from message ibc.core.client.v1.QueryConsensusStateHeightsResponse + */ +export class QueryConsensusStateHeightsResponse extends Message { + /** + * consensus state heights + * + * @generated from field: repeated ibc.core.client.v1.Height consensus_state_heights = 1; + */ + consensusStateHeights: Height[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryConsensusStateHeightsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "consensus_state_heights", kind: "message", T: Height, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateHeightsResponse { + return new QueryConsensusStateHeightsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateHeightsResponse { + return new QueryConsensusStateHeightsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateHeightsResponse { + return new QueryConsensusStateHeightsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStateHeightsResponse | PlainMessage | undefined, b: QueryConsensusStateHeightsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStateHeightsResponse, a, b); + } +} + +/** + * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC + * method + * + * @generated from message ibc.core.client.v1.QueryClientStatusRequest + */ +export class QueryClientStatusRequest extends Message { + /** + * client unique identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientStatusRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatusRequest { + return new QueryClientStatusRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatusRequest { + return new QueryClientStatusRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientStatusRequest { + return new QueryClientStatusRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientStatusRequest | PlainMessage | undefined, b: QueryClientStatusRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientStatusRequest, a, b); + } +} + +/** + * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC + * method. It returns the current status of the IBC client. + * + * @generated from message ibc.core.client.v1.QueryClientStatusResponse + */ +export class QueryClientStatusResponse extends Message { + /** + * @generated from field: string status = 1; + */ + status = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientStatusResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatusResponse { + return new QueryClientStatusResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatusResponse { + return new QueryClientStatusResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientStatusResponse { + return new QueryClientStatusResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientStatusResponse | PlainMessage | undefined, b: QueryClientStatusResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientStatusResponse, a, b); + } +} + +/** + * QueryClientParamsRequest is the request type for the Query/ClientParams RPC + * method. + * + * @generated from message ibc.core.client.v1.QueryClientParamsRequest + */ +export class QueryClientParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientParamsRequest { + return new QueryClientParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientParamsRequest { + return new QueryClientParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientParamsRequest { + return new QueryClientParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientParamsRequest | PlainMessage | undefined, b: QueryClientParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientParamsRequest, a, b); + } +} + +/** + * QueryClientParamsResponse is the response type for the Query/ClientParams RPC + * method. + * + * @generated from message ibc.core.client.v1.QueryClientParamsResponse + */ +export class QueryClientParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: ibc.core.client.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryClientParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientParamsResponse { + return new QueryClientParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientParamsResponse { + return new QueryClientParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientParamsResponse { + return new QueryClientParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientParamsResponse | PlainMessage | undefined, b: QueryClientParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientParamsResponse, a, b); + } +} + +/** + * QueryUpgradedClientStateRequest is the request type for the + * Query/UpgradedClientState RPC method + * + * @generated from message ibc.core.client.v1.QueryUpgradedClientStateRequest + */ +export class QueryUpgradedClientStateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryUpgradedClientStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedClientStateRequest { + return new QueryUpgradedClientStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedClientStateRequest { + return new QueryUpgradedClientStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedClientStateRequest { + return new QueryUpgradedClientStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradedClientStateRequest | PlainMessage | undefined, b: QueryUpgradedClientStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradedClientStateRequest, a, b); + } +} + +/** + * QueryUpgradedClientStateResponse is the response type for the + * Query/UpgradedClientState RPC method. + * + * @generated from message ibc.core.client.v1.QueryUpgradedClientStateResponse + */ +export class QueryUpgradedClientStateResponse extends Message { + /** + * client state associated with the request identifier + * + * @generated from field: google.protobuf.Any upgraded_client_state = 1; + */ + upgradedClientState?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryUpgradedClientStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "upgraded_client_state", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedClientStateResponse { + return new QueryUpgradedClientStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedClientStateResponse { + return new QueryUpgradedClientStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedClientStateResponse { + return new QueryUpgradedClientStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradedClientStateResponse | PlainMessage | undefined, b: QueryUpgradedClientStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradedClientStateResponse, a, b); + } +} + +/** + * QueryUpgradedConsensusStateRequest is the request type for the + * Query/UpgradedConsensusState RPC method + * + * @generated from message ibc.core.client.v1.QueryUpgradedConsensusStateRequest + */ +export class QueryUpgradedConsensusStateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateRequest { + return new QueryUpgradedConsensusStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateRequest { + return new QueryUpgradedConsensusStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateRequest { + return new QueryUpgradedConsensusStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradedConsensusStateRequest | PlainMessage | undefined, b: QueryUpgradedConsensusStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradedConsensusStateRequest, a, b); + } +} + +/** + * QueryUpgradedConsensusStateResponse is the response type for the + * Query/UpgradedConsensusState RPC method. + * + * @generated from message ibc.core.client.v1.QueryUpgradedConsensusStateResponse + */ +export class QueryUpgradedConsensusStateResponse extends Message { + /** + * Consensus state associated with the request identifier + * + * @generated from field: google.protobuf.Any upgraded_consensus_state = 1; + */ + upgradedConsensusState?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "upgraded_consensus_state", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateResponse { + return new QueryUpgradedConsensusStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateResponse { + return new QueryUpgradedConsensusStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateResponse { + return new QueryUpgradedConsensusStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradedConsensusStateResponse | PlainMessage | undefined, b: QueryUpgradedConsensusStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradedConsensusStateResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/core/client/v1/tx_cosmes.ts b/src/protobufs/ibc/core/client/v1/tx_cosmes.ts new file mode 100644 index 00000000..a14d6f9e --- /dev/null +++ b/src/protobufs/ibc/core/client/v1/tx_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/core/client/v1/tx.proto (package ibc.core.client.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCreateClient, MsgCreateClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpgradeClient, MsgUpgradeClientResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.core.client.v1.Msg"; + +/** + * CreateClient defines a rpc handler method for MsgCreateClient. + * + * @generated from rpc ibc.core.client.v1.Msg.CreateClient + */ +export const MsgCreateClientService = { + typeName: TYPE_NAME, + method: "CreateClient", + Request: MsgCreateClient, + Response: MsgCreateClientResponse, +} as const; + +/** + * UpdateClient defines a rpc handler method for MsgUpdateClient. + * + * @generated from rpc ibc.core.client.v1.Msg.UpdateClient + */ +export const MsgUpdateClientService = { + typeName: TYPE_NAME, + method: "UpdateClient", + Request: MsgUpdateClient, + Response: MsgUpdateClientResponse, +} as const; + +/** + * UpgradeClient defines a rpc handler method for MsgUpgradeClient. + * + * @generated from rpc ibc.core.client.v1.Msg.UpgradeClient + */ +export const MsgUpgradeClientService = { + typeName: TYPE_NAME, + method: "UpgradeClient", + Request: MsgUpgradeClient, + Response: MsgUpgradeClientResponse, +} as const; + +/** + * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. + * + * @generated from rpc ibc.core.client.v1.Msg.SubmitMisbehaviour + */ +export const MsgSubmitMisbehaviourService = { + typeName: TYPE_NAME, + method: "SubmitMisbehaviour", + Request: MsgSubmitMisbehaviour, + Response: MsgSubmitMisbehaviourResponse, +} as const; + +/** + * UpdateClientParams defines a rpc handler method for MsgUpdateParams. + * + * @generated from rpc ibc.core.client.v1.Msg.UpdateClientParams + */ +export const MsgUpdateClientParamsService = { + typeName: TYPE_NAME, + method: "UpdateClientParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/core/client/v1/tx_pb.ts b/src/protobufs/ibc/core/client/v1/tx_pb.ts new file mode 100644 index 00000000..0ee71d7c --- /dev/null +++ b/src/protobufs/ibc/core/client/v1/tx_pb.ts @@ -0,0 +1,485 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/client/v1/tx.proto (package ibc.core.client.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./client_pb.js"; + +/** + * MsgCreateClient defines a message to create an IBC client + * + * @generated from message ibc.core.client.v1.MsgCreateClient + */ +export class MsgCreateClient extends Message { + /** + * light client state + * + * @generated from field: google.protobuf.Any client_state = 1; + */ + clientState?: Any; + + /** + * consensus state associated with the client that corresponds to a given + * height. + * + * @generated from field: google.protobuf.Any consensus_state = 2; + */ + consensusState?: Any; + + /** + * signer address + * + * @generated from field: string signer = 3; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgCreateClient"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_state", kind: "message", T: Any }, + { no: 2, name: "consensus_state", kind: "message", T: Any }, + { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClient { + return new MsgCreateClient().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClient { + return new MsgCreateClient().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateClient { + return new MsgCreateClient().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateClient | PlainMessage | undefined, b: MsgCreateClient | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateClient, a, b); + } +} + +/** + * MsgCreateClientResponse defines the Msg/CreateClient response type. + * + * @generated from message ibc.core.client.v1.MsgCreateClientResponse + */ +export class MsgCreateClientResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgCreateClientResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClientResponse { + return new MsgCreateClientResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClientResponse { + return new MsgCreateClientResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateClientResponse { + return new MsgCreateClientResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateClientResponse | PlainMessage | undefined, b: MsgCreateClientResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateClientResponse, a, b); + } +} + +/** + * MsgUpdateClient defines an sdk.Msg to update a IBC client state using + * the given client message. + * + * @generated from message ibc.core.client.v1.MsgUpdateClient + */ +export class MsgUpdateClient extends Message { + /** + * client unique identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * client message to update the light client + * + * @generated from field: google.protobuf.Any client_message = 2; + */ + clientMessage?: Any; + + /** + * signer address + * + * @generated from field: string signer = 3; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgUpdateClient"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "client_message", kind: "message", T: Any }, + { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateClient { + return new MsgUpdateClient().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateClient { + return new MsgUpdateClient().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateClient { + return new MsgUpdateClient().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateClient | PlainMessage | undefined, b: MsgUpdateClient | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateClient, a, b); + } +} + +/** + * MsgUpdateClientResponse defines the Msg/UpdateClient response type. + * + * @generated from message ibc.core.client.v1.MsgUpdateClientResponse + */ +export class MsgUpdateClientResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgUpdateClientResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateClientResponse { + return new MsgUpdateClientResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateClientResponse { + return new MsgUpdateClientResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateClientResponse { + return new MsgUpdateClientResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateClientResponse | PlainMessage | undefined, b: MsgUpdateClientResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateClientResponse, a, b); + } +} + +/** + * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client + * state + * + * @generated from message ibc.core.client.v1.MsgUpgradeClient + */ +export class MsgUpgradeClient extends Message { + /** + * client unique identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * upgraded client state + * + * @generated from field: google.protobuf.Any client_state = 2; + */ + clientState?: Any; + + /** + * upgraded consensus state, only contains enough information to serve as a + * basis of trust in update logic + * + * @generated from field: google.protobuf.Any consensus_state = 3; + */ + consensusState?: Any; + + /** + * proof that old chain committed to new client + * + * @generated from field: bytes proof_upgrade_client = 4; + */ + proofUpgradeClient = new Uint8Array(0); + + /** + * proof that old chain committed to new consensus state + * + * @generated from field: bytes proof_upgrade_consensus_state = 5; + */ + proofUpgradeConsensusState = new Uint8Array(0); + + /** + * signer address + * + * @generated from field: string signer = 6; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgUpgradeClient"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "client_state", kind: "message", T: Any }, + { no: 3, name: "consensus_state", kind: "message", T: Any }, + { no: 4, name: "proof_upgrade_client", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "proof_upgrade_consensus_state", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpgradeClient { + return new MsgUpgradeClient().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpgradeClient { + return new MsgUpgradeClient().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpgradeClient { + return new MsgUpgradeClient().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpgradeClient | PlainMessage | undefined, b: MsgUpgradeClient | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpgradeClient, a, b); + } +} + +/** + * MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. + * + * @generated from message ibc.core.client.v1.MsgUpgradeClientResponse + */ +export class MsgUpgradeClientResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgUpgradeClientResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpgradeClientResponse { + return new MsgUpgradeClientResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpgradeClientResponse { + return new MsgUpgradeClientResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpgradeClientResponse { + return new MsgUpgradeClientResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpgradeClientResponse | PlainMessage | undefined, b: MsgUpgradeClientResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpgradeClientResponse, a, b); + } +} + +/** + * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + * light client misbehaviour. + * This message has been deprecated. Use MsgUpdateClient instead. + * + * @generated from message ibc.core.client.v1.MsgSubmitMisbehaviour + * @deprecated + */ +export class MsgSubmitMisbehaviour extends Message { + /** + * client unique identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * misbehaviour used for freezing the light client + * + * @generated from field: google.protobuf.Any misbehaviour = 2; + */ + misbehaviour?: Any; + + /** + * signer address + * + * @generated from field: string signer = 3; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgSubmitMisbehaviour"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "misbehaviour", kind: "message", T: Any }, + { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitMisbehaviour { + return new MsgSubmitMisbehaviour().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitMisbehaviour { + return new MsgSubmitMisbehaviour().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitMisbehaviour { + return new MsgSubmitMisbehaviour().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitMisbehaviour | PlainMessage | undefined, b: MsgSubmitMisbehaviour | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitMisbehaviour, a, b); + } +} + +/** + * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + * type. + * + * @generated from message ibc.core.client.v1.MsgSubmitMisbehaviourResponse + */ +export class MsgSubmitMisbehaviourResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitMisbehaviourResponse { + return new MsgSubmitMisbehaviourResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitMisbehaviourResponse { + return new MsgSubmitMisbehaviourResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitMisbehaviourResponse { + return new MsgSubmitMisbehaviourResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitMisbehaviourResponse | PlainMessage | undefined, b: MsgSubmitMisbehaviourResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitMisbehaviourResponse, a, b); + } +} + +/** + * MsgUpdateParams defines the sdk.Msg type to update the client parameters. + * + * @generated from message ibc.core.client.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the client parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: ibc.core.client.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the MsgUpdateParams response type. + * + * @generated from message ibc.core.client.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts b/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts new file mode 100644 index 00000000..7fc1494d --- /dev/null +++ b/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts @@ -0,0 +1,174 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/commitment/v1/commitment.proto (package ibc.core.commitment.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { CommitmentProof } from "../../../../cosmos/ics23/v1/proofs_pb.js"; + +/** + * MerkleRoot defines a merkle root hash. + * In the Cosmos SDK, the AppHash of a block header becomes the root. + * + * @generated from message ibc.core.commitment.v1.MerkleRoot + */ +export class MerkleRoot extends Message { + /** + * @generated from field: bytes hash = 1; + */ + hash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.commitment.v1.MerkleRoot"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MerkleRoot { + return new MerkleRoot().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MerkleRoot { + return new MerkleRoot().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MerkleRoot { + return new MerkleRoot().fromJsonString(jsonString, options); + } + + static equals(a: MerkleRoot | PlainMessage | undefined, b: MerkleRoot | PlainMessage | undefined): boolean { + return proto3.util.equals(MerkleRoot, a, b); + } +} + +/** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * + * @generated from message ibc.core.commitment.v1.MerklePrefix + */ +export class MerklePrefix extends Message { + /** + * @generated from field: bytes key_prefix = 1; + */ + keyPrefix = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.commitment.v1.MerklePrefix"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key_prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MerklePrefix { + return new MerklePrefix().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MerklePrefix { + return new MerklePrefix().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MerklePrefix { + return new MerklePrefix().fromJsonString(jsonString, options); + } + + static equals(a: MerklePrefix | PlainMessage | undefined, b: MerklePrefix | PlainMessage | undefined): boolean { + return proto3.util.equals(MerklePrefix, a, b); + } +} + +/** + * MerklePath is the path used to verify commitment proofs, which can be an + * arbitrary structured object (defined by a commitment type). + * MerklePath is represented from root-to-leaf + * + * @generated from message ibc.core.commitment.v1.MerklePath + */ +export class MerklePath extends Message { + /** + * @generated from field: repeated string key_path = 1; + */ + keyPath: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.commitment.v1.MerklePath"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key_path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MerklePath { + return new MerklePath().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MerklePath { + return new MerklePath().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MerklePath { + return new MerklePath().fromJsonString(jsonString, options); + } + + static equals(a: MerklePath | PlainMessage | undefined, b: MerklePath | PlainMessage | undefined): boolean { + return proto3.util.equals(MerklePath, a, b); + } +} + +/** + * MerkleProof is a wrapper type over a chain of CommitmentProofs. + * It demonstrates membership or non-membership for an element or set of + * elements, verifiable in conjunction with a known commitment root. Proofs + * should be succinct. + * MerkleProofs are ordered from leaf-to-root + * + * @generated from message ibc.core.commitment.v1.MerkleProof + */ +export class MerkleProof extends Message { + /** + * @generated from field: repeated cosmos.ics23.v1.CommitmentProof proofs = 1; + */ + proofs: CommitmentProof[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.commitment.v1.MerkleProof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proofs", kind: "message", T: CommitmentProof, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MerkleProof { + return new MerkleProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MerkleProof { + return new MerkleProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MerkleProof { + return new MerkleProof().fromJsonString(jsonString, options); + } + + static equals(a: MerkleProof | PlainMessage | undefined, b: MerkleProof | PlainMessage | undefined): boolean { + return proto3.util.equals(MerkleProof, a, b); + } +} + diff --git a/src/protobufs/ibc/core/connection/v1/connection_pb.ts b/src/protobufs/ibc/core/connection/v1/connection_pb.ts new file mode 100644 index 00000000..b6a56826 --- /dev/null +++ b/src/protobufs/ibc/core/connection/v1/connection_pb.ts @@ -0,0 +1,457 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/connection/v1/connection.proto (package ibc.core.connection.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { MerklePrefix } from "../../commitment/v1/commitment_pb.js"; + +/** + * State defines if a connection is in one of the following states: + * INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * @generated from enum ibc.core.connection.v1.State + */ +export enum State { + /** + * Default State + * + * @generated from enum value: STATE_UNINITIALIZED_UNSPECIFIED = 0; + */ + UNINITIALIZED_UNSPECIFIED = 0, + + /** + * A connection end has just started the opening handshake. + * + * @generated from enum value: STATE_INIT = 1; + */ + INIT = 1, + + /** + * A connection end has acknowledged the handshake step on the counterparty + * chain. + * + * @generated from enum value: STATE_TRYOPEN = 2; + */ + TRYOPEN = 2, + + /** + * A connection end has completed the handshake. + * + * @generated from enum value: STATE_OPEN = 3; + */ + OPEN = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(State) +proto3.util.setEnumType(State, "ibc.core.connection.v1.State", [ + { no: 0, name: "STATE_UNINITIALIZED_UNSPECIFIED" }, + { no: 1, name: "STATE_INIT" }, + { no: 2, name: "STATE_TRYOPEN" }, + { no: 3, name: "STATE_OPEN" }, +]); + +/** + * ConnectionEnd defines a stateful object on a chain connected to another + * separate one. + * NOTE: there must only be 2 defined ConnectionEnds to establish + * a connection between two chains. + * + * @generated from message ibc.core.connection.v1.ConnectionEnd + */ +export class ConnectionEnd extends Message { + /** + * client associated with this connection. + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection. + * + * @generated from field: repeated ibc.core.connection.v1.Version versions = 2; + */ + versions: Version[] = []; + + /** + * current state of the connection end. + * + * @generated from field: ibc.core.connection.v1.State state = 3; + */ + state = State.UNINITIALIZED_UNSPECIFIED; + + /** + * counterparty chain associated with this connection. + * + * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 4; + */ + counterparty?: Counterparty; + + /** + * delay period that must pass before a consensus state can be used for + * packet-verification NOTE: delay period logic is only implemented by some + * clients. + * + * @generated from field: uint64 delay_period = 5; + */ + delayPeriod = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.ConnectionEnd"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "versions", kind: "message", T: Version, repeated: true }, + { no: 3, name: "state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 4, name: "counterparty", kind: "message", T: Counterparty }, + { no: 5, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionEnd { + return new ConnectionEnd().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionEnd { + return new ConnectionEnd().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConnectionEnd { + return new ConnectionEnd().fromJsonString(jsonString, options); + } + + static equals(a: ConnectionEnd | PlainMessage | undefined, b: ConnectionEnd | PlainMessage | undefined): boolean { + return proto3.util.equals(ConnectionEnd, a, b); + } +} + +/** + * IdentifiedConnection defines a connection with additional connection + * identifier field. + * + * @generated from message ibc.core.connection.v1.IdentifiedConnection + */ +export class IdentifiedConnection extends Message { + /** + * connection identifier. + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * client associated with this connection. + * + * @generated from field: string client_id = 2; + */ + clientId = ""; + + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection + * + * @generated from field: repeated ibc.core.connection.v1.Version versions = 3; + */ + versions: Version[] = []; + + /** + * current state of the connection end. + * + * @generated from field: ibc.core.connection.v1.State state = 4; + */ + state = State.UNINITIALIZED_UNSPECIFIED; + + /** + * counterparty chain associated with this connection. + * + * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 5; + */ + counterparty?: Counterparty; + + /** + * delay period associated with this connection. + * + * @generated from field: uint64 delay_period = 6; + */ + delayPeriod = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.IdentifiedConnection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "versions", kind: "message", T: Version, repeated: true }, + { no: 4, name: "state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 5, name: "counterparty", kind: "message", T: Counterparty }, + { no: 6, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedConnection { + return new IdentifiedConnection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedConnection { + return new IdentifiedConnection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IdentifiedConnection { + return new IdentifiedConnection().fromJsonString(jsonString, options); + } + + static equals(a: IdentifiedConnection | PlainMessage | undefined, b: IdentifiedConnection | PlainMessage | undefined): boolean { + return proto3.util.equals(IdentifiedConnection, a, b); + } +} + +/** + * Counterparty defines the counterparty chain associated with a connection end. + * + * @generated from message ibc.core.connection.v1.Counterparty + */ +export class Counterparty extends Message { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + * + * @generated from field: string connection_id = 2; + */ + connectionId = ""; + + /** + * commitment merkle prefix of the counterparty chain. + * + * @generated from field: ibc.core.commitment.v1.MerklePrefix prefix = 3; + */ + prefix?: MerklePrefix; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.Counterparty"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "prefix", kind: "message", T: MerklePrefix }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Counterparty { + return new Counterparty().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Counterparty { + return new Counterparty().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Counterparty { + return new Counterparty().fromJsonString(jsonString, options); + } + + static equals(a: Counterparty | PlainMessage | undefined, b: Counterparty | PlainMessage | undefined): boolean { + return proto3.util.equals(Counterparty, a, b); + } +} + +/** + * ClientPaths define all the connection paths for a client state. + * + * @generated from message ibc.core.connection.v1.ClientPaths + */ +export class ClientPaths extends Message { + /** + * list of connection paths + * + * @generated from field: repeated string paths = 1; + */ + paths: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.ClientPaths"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientPaths { + return new ClientPaths().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientPaths { + return new ClientPaths().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientPaths { + return new ClientPaths().fromJsonString(jsonString, options); + } + + static equals(a: ClientPaths | PlainMessage | undefined, b: ClientPaths | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientPaths, a, b); + } +} + +/** + * ConnectionPaths define all the connection paths for a given client state. + * + * @generated from message ibc.core.connection.v1.ConnectionPaths + */ +export class ConnectionPaths extends Message { + /** + * client state unique identifier + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * list of connection paths + * + * @generated from field: repeated string paths = 2; + */ + paths: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.ConnectionPaths"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionPaths { + return new ConnectionPaths().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionPaths { + return new ConnectionPaths().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConnectionPaths { + return new ConnectionPaths().fromJsonString(jsonString, options); + } + + static equals(a: ConnectionPaths | PlainMessage | undefined, b: ConnectionPaths | PlainMessage | undefined): boolean { + return proto3.util.equals(ConnectionPaths, a, b); + } +} + +/** + * Version defines the versioning scheme used to negotiate the IBC verison in + * the connection handshake. + * + * @generated from message ibc.core.connection.v1.Version + */ +export class Version extends Message { + /** + * unique version identifier + * + * @generated from field: string identifier = 1; + */ + identifier = ""; + + /** + * list of features compatible with the specified identifier + * + * @generated from field: repeated string features = 2; + */ + features: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.Version"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "features", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Version { + return new Version().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Version { + return new Version().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Version { + return new Version().fromJsonString(jsonString, options); + } + + static equals(a: Version | PlainMessage | undefined, b: Version | PlainMessage | undefined): boolean { + return proto3.util.equals(Version, a, b); + } +} + +/** + * Params defines the set of Connection parameters. + * + * @generated from message ibc.core.connection.v1.Params + */ +export class Params extends Message { + /** + * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the + * largest amount of time that the chain might reasonably take to produce the next block under normal operating + * conditions. A safe choice is 3-5x the expected time per block. + * + * @generated from field: uint64 max_expected_time_per_block = 1; + */ + maxExpectedTimePerBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max_expected_time_per_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/ibc/core/connection/v1/genesis_pb.ts b/src/protobufs/ibc/core/connection/v1/genesis_pb.ts new file mode 100644 index 00000000..8a479889 --- /dev/null +++ b/src/protobufs/ibc/core/connection/v1/genesis_pb.ts @@ -0,0 +1,68 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/connection/v1/genesis.proto (package ibc.core.connection.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ConnectionPaths, IdentifiedConnection, Params } from "./connection_pb.js"; + +/** + * GenesisState defines the ibc connection submodule's genesis state. + * + * @generated from message ibc.core.connection.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated ibc.core.connection.v1.IdentifiedConnection connections = 1; + */ + connections: IdentifiedConnection[] = []; + + /** + * @generated from field: repeated ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2; + */ + clientConnectionPaths: ConnectionPaths[] = []; + + /** + * the sequence for the next generated connection identifier + * + * @generated from field: uint64 next_connection_sequence = 3; + */ + nextConnectionSequence = protoInt64.zero; + + /** + * @generated from field: ibc.core.connection.v1.Params params = 4; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connections", kind: "message", T: IdentifiedConnection, repeated: true }, + { no: 2, name: "client_connection_paths", kind: "message", T: ConnectionPaths, repeated: true }, + { no: 3, name: "next_connection_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/ibc/core/connection/v1/query_cosmes.ts b/src/protobufs/ibc/core/connection/v1/query_cosmes.ts new file mode 100644 index 00000000..0a65f866 --- /dev/null +++ b/src/protobufs/ibc/core/connection/v1/query_cosmes.ts @@ -0,0 +1,84 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/core/connection/v1/query.proto (package ibc.core.connection.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryClientConnectionsRequest, QueryClientConnectionsResponse, QueryConnectionClientStateRequest, QueryConnectionClientStateResponse, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateResponse, QueryConnectionParamsRequest, QueryConnectionParamsResponse, QueryConnectionRequest, QueryConnectionResponse, QueryConnectionsRequest, QueryConnectionsResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.core.connection.v1.Query"; + +/** + * Connection queries an IBC connection end. + * + * @generated from rpc ibc.core.connection.v1.Query.Connection + */ +export const QueryConnectionService = { + typeName: TYPE_NAME, + method: "Connection", + Request: QueryConnectionRequest, + Response: QueryConnectionResponse, +} as const; + +/** + * Connections queries all the IBC connections of a chain. + * + * @generated from rpc ibc.core.connection.v1.Query.Connections + */ +export const QueryConnectionsService = { + typeName: TYPE_NAME, + method: "Connections", + Request: QueryConnectionsRequest, + Response: QueryConnectionsResponse, +} as const; + +/** + * ClientConnections queries the connection paths associated with a client + * state. + * + * @generated from rpc ibc.core.connection.v1.Query.ClientConnections + */ +export const QueryClientConnectionsService = { + typeName: TYPE_NAME, + method: "ClientConnections", + Request: QueryClientConnectionsRequest, + Response: QueryClientConnectionsResponse, +} as const; + +/** + * ConnectionClientState queries the client state associated with the + * connection. + * + * @generated from rpc ibc.core.connection.v1.Query.ConnectionClientState + */ +export const QueryConnectionClientStateService = { + typeName: TYPE_NAME, + method: "ConnectionClientState", + Request: QueryConnectionClientStateRequest, + Response: QueryConnectionClientStateResponse, +} as const; + +/** + * ConnectionConsensusState queries the consensus state associated with the + * connection. + * + * @generated from rpc ibc.core.connection.v1.Query.ConnectionConsensusState + */ +export const QueryConnectionConsensusStateService = { + typeName: TYPE_NAME, + method: "ConnectionConsensusState", + Request: QueryConnectionConsensusStateRequest, + Response: QueryConnectionConsensusStateResponse, +} as const; + +/** + * ConnectionParams queries all parameters of the ibc connection submodule. + * + * @generated from rpc ibc.core.connection.v1.Query.ConnectionParams + */ +export const QueryConnectionParamsService = { + typeName: TYPE_NAME, + method: "ConnectionParams", + Request: QueryConnectionParamsRequest, + Response: QueryConnectionParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/core/connection/v1/query_pb.ts b/src/protobufs/ibc/core/connection/v1/query_pb.ts new file mode 100644 index 00000000..82330dc9 --- /dev/null +++ b/src/protobufs/ibc/core/connection/v1/query_pb.ts @@ -0,0 +1,604 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/connection/v1/query.proto (package ibc.core.connection.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ConnectionEnd, IdentifiedConnection, Params } from "./connection_pb.js"; +import { Height, IdentifiedClientState } from "../../client/v1/client_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryConnectionRequest is the request type for the Query/Connection RPC + * method + * + * @generated from message ibc.core.connection.v1.QueryConnectionRequest + */ +export class QueryConnectionRequest extends Message { + /** + * connection unique identifier + * + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionRequest { + return new QueryConnectionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionRequest { + return new QueryConnectionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionRequest { + return new QueryConnectionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionRequest | PlainMessage | undefined, b: QueryConnectionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionRequest, a, b); + } +} + +/** + * QueryConnectionResponse is the response type for the Query/Connection RPC + * method. Besides the connection end, it includes a proof and the height from + * which the proof was retrieved. + * + * @generated from message ibc.core.connection.v1.QueryConnectionResponse + */ +export class QueryConnectionResponse extends Message { + /** + * connection associated with the request identifier + * + * @generated from field: ibc.core.connection.v1.ConnectionEnd connection = 1; + */ + connection?: ConnectionEnd; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection", kind: "message", T: ConnectionEnd }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionResponse { + return new QueryConnectionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionResponse { + return new QueryConnectionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionResponse { + return new QueryConnectionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionResponse | PlainMessage | undefined, b: QueryConnectionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionResponse, a, b); + } +} + +/** + * QueryConnectionsRequest is the request type for the Query/Connections RPC + * method + * + * @generated from message ibc.core.connection.v1.QueryConnectionsRequest + */ +export class QueryConnectionsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionsRequest { + return new QueryConnectionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionsRequest { + return new QueryConnectionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionsRequest { + return new QueryConnectionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionsRequest | PlainMessage | undefined, b: QueryConnectionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionsRequest, a, b); + } +} + +/** + * QueryConnectionsResponse is the response type for the Query/Connections RPC + * method. + * + * @generated from message ibc.core.connection.v1.QueryConnectionsResponse + */ +export class QueryConnectionsResponse extends Message { + /** + * list of stored connections of the chain. + * + * @generated from field: repeated ibc.core.connection.v1.IdentifiedConnection connections = 1; + */ + connections: IdentifiedConnection[] = []; + + /** + * pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + /** + * query block height + * + * @generated from field: ibc.core.client.v1.Height height = 3; + */ + height?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connections", kind: "message", T: IdentifiedConnection, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + { no: 3, name: "height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionsResponse { + return new QueryConnectionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionsResponse { + return new QueryConnectionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionsResponse { + return new QueryConnectionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionsResponse | PlainMessage | undefined, b: QueryConnectionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionsResponse, a, b); + } +} + +/** + * QueryClientConnectionsRequest is the request type for the + * Query/ClientConnections RPC method + * + * @generated from message ibc.core.connection.v1.QueryClientConnectionsRequest + */ +export class QueryClientConnectionsRequest extends Message { + /** + * client identifier associated with a connection + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryClientConnectionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientConnectionsRequest { + return new QueryClientConnectionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientConnectionsRequest { + return new QueryClientConnectionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientConnectionsRequest { + return new QueryClientConnectionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientConnectionsRequest | PlainMessage | undefined, b: QueryClientConnectionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientConnectionsRequest, a, b); + } +} + +/** + * QueryClientConnectionsResponse is the response type for the + * Query/ClientConnections RPC method + * + * @generated from message ibc.core.connection.v1.QueryClientConnectionsResponse + */ +export class QueryClientConnectionsResponse extends Message { + /** + * slice of all the connection paths associated with a client. + * + * @generated from field: repeated string connection_paths = 1; + */ + connectionPaths: string[] = []; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was generated + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryClientConnectionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientConnectionsResponse { + return new QueryClientConnectionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientConnectionsResponse { + return new QueryClientConnectionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClientConnectionsResponse { + return new QueryClientConnectionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClientConnectionsResponse | PlainMessage | undefined, b: QueryClientConnectionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClientConnectionsResponse, a, b); + } +} + +/** + * QueryConnectionClientStateRequest is the request type for the + * Query/ConnectionClientState RPC method + * + * @generated from message ibc.core.connection.v1.QueryConnectionClientStateRequest + */ +export class QueryConnectionClientStateRequest extends Message { + /** + * connection identifier + * + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionClientStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionClientStateRequest { + return new QueryConnectionClientStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionClientStateRequest { + return new QueryConnectionClientStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionClientStateRequest { + return new QueryConnectionClientStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionClientStateRequest | PlainMessage | undefined, b: QueryConnectionClientStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionClientStateRequest, a, b); + } +} + +/** + * QueryConnectionClientStateResponse is the response type for the + * Query/ConnectionClientState RPC method + * + * @generated from message ibc.core.connection.v1.QueryConnectionClientStateResponse + */ +export class QueryConnectionClientStateResponse extends Message { + /** + * client state associated with the channel + * + * @generated from field: ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; + */ + identifiedClientState?: IdentifiedClientState; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionClientStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identified_client_state", kind: "message", T: IdentifiedClientState }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionClientStateResponse { + return new QueryConnectionClientStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionClientStateResponse { + return new QueryConnectionClientStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionClientStateResponse { + return new QueryConnectionClientStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionClientStateResponse | PlainMessage | undefined, b: QueryConnectionClientStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionClientStateResponse, a, b); + } +} + +/** + * QueryConnectionConsensusStateRequest is the request type for the + * Query/ConnectionConsensusState RPC method + * + * @generated from message ibc.core.connection.v1.QueryConnectionConsensusStateRequest + */ +export class QueryConnectionConsensusStateRequest extends Message { + /** + * connection identifier + * + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * @generated from field: uint64 revision_number = 2; + */ + revisionNumber = protoInt64.zero; + + /** + * @generated from field: uint64 revision_height = 3; + */ + revisionHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionConsensusStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionConsensusStateRequest { + return new QueryConnectionConsensusStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionConsensusStateRequest { + return new QueryConnectionConsensusStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionConsensusStateRequest { + return new QueryConnectionConsensusStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionConsensusStateRequest | PlainMessage | undefined, b: QueryConnectionConsensusStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionConsensusStateRequest, a, b); + } +} + +/** + * QueryConnectionConsensusStateResponse is the response type for the + * Query/ConnectionConsensusState RPC method + * + * @generated from message ibc.core.connection.v1.QueryConnectionConsensusStateResponse + */ +export class QueryConnectionConsensusStateResponse extends Message { + /** + * consensus state associated with the channel + * + * @generated from field: google.protobuf.Any consensus_state = 1; + */ + consensusState?: Any; + + /** + * client ID associated with the consensus state + * + * @generated from field: string client_id = 2; + */ + clientId = ""; + + /** + * merkle proof of existence + * + * @generated from field: bytes proof = 3; + */ + proof = new Uint8Array(0); + + /** + * height at which the proof was retrieved + * + * @generated from field: ibc.core.client.v1.Height proof_height = 4; + */ + proofHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionConsensusStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "consensus_state", kind: "message", T: Any }, + { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "proof_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionConsensusStateResponse { + return new QueryConnectionConsensusStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionConsensusStateResponse { + return new QueryConnectionConsensusStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionConsensusStateResponse { + return new QueryConnectionConsensusStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionConsensusStateResponse | PlainMessage | undefined, b: QueryConnectionConsensusStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionConsensusStateResponse, a, b); + } +} + +/** + * QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. + * + * @generated from message ibc.core.connection.v1.QueryConnectionParamsRequest + */ +export class QueryConnectionParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionParamsRequest { + return new QueryConnectionParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionParamsRequest { + return new QueryConnectionParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionParamsRequest { + return new QueryConnectionParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionParamsRequest | PlainMessage | undefined, b: QueryConnectionParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionParamsRequest, a, b); + } +} + +/** + * QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. + * + * @generated from message ibc.core.connection.v1.QueryConnectionParamsResponse + */ +export class QueryConnectionParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: ibc.core.connection.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.QueryConnectionParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionParamsResponse { + return new QueryConnectionParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionParamsResponse { + return new QueryConnectionParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConnectionParamsResponse { + return new QueryConnectionParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConnectionParamsResponse | PlainMessage | undefined, b: QueryConnectionParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConnectionParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts b/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts new file mode 100644 index 00000000..a68bae28 --- /dev/null +++ b/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts @@ -0,0 +1,71 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/core/connection/v1/tx.proto (package ibc.core.connection.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgConnectionOpenAck, MsgConnectionOpenAckResponse, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse, MsgConnectionOpenInit, MsgConnectionOpenInitResponse, MsgConnectionOpenTry, MsgConnectionOpenTryResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.core.connection.v1.Msg"; + +/** + * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. + * + * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenInit + */ +export const MsgConnectionOpenInitService = { + typeName: TYPE_NAME, + method: "ConnectionOpenInit", + Request: MsgConnectionOpenInit, + Response: MsgConnectionOpenInitResponse, +} as const; + +/** + * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. + * + * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenTry + */ +export const MsgConnectionOpenTryService = { + typeName: TYPE_NAME, + method: "ConnectionOpenTry", + Request: MsgConnectionOpenTry, + Response: MsgConnectionOpenTryResponse, +} as const; + +/** + * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. + * + * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenAck + */ +export const MsgConnectionOpenAckService = { + typeName: TYPE_NAME, + method: "ConnectionOpenAck", + Request: MsgConnectionOpenAck, + Response: MsgConnectionOpenAckResponse, +} as const; + +/** + * ConnectionOpenConfirm defines a rpc handler method for + * MsgConnectionOpenConfirm. + * + * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenConfirm + */ +export const MsgConnectionOpenConfirmService = { + typeName: TYPE_NAME, + method: "ConnectionOpenConfirm", + Request: MsgConnectionOpenConfirm, + Response: MsgConnectionOpenConfirmResponse, +} as const; + +/** + * UpdateConnectionParams defines a rpc handler method for + * MsgUpdateParams. + * + * @generated from rpc ibc.core.connection.v1.Msg.UpdateConnectionParams + */ +export const MsgUpdateConnectionParamsService = { + typeName: TYPE_NAME, + method: "UpdateConnectionParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/ibc/core/connection/v1/tx_pb.ts b/src/protobufs/ibc/core/connection/v1/tx_pb.ts new file mode 100644 index 00000000..1ee9ba82 --- /dev/null +++ b/src/protobufs/ibc/core/connection/v1/tx_pb.ts @@ -0,0 +1,585 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/connection/v1/tx.proto (package ibc.core.connection.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Counterparty, Params, Version } from "./connection_pb.js"; +import { Height } from "../../client/v1/client_pb.js"; + +/** + * MsgConnectionOpenInit defines the msg sent by an account on Chain A to + * initialize a connection with Chain B. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenInit + */ +export class MsgConnectionOpenInit extends Message { + /** + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 2; + */ + counterparty?: Counterparty; + + /** + * @generated from field: ibc.core.connection.v1.Version version = 3; + */ + version?: Version; + + /** + * @generated from field: uint64 delay_period = 4; + */ + delayPeriod = protoInt64.zero; + + /** + * @generated from field: string signer = 5; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenInit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "counterparty", kind: "message", T: Counterparty }, + { no: 3, name: "version", kind: "message", T: Version }, + { no: 4, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenInit { + return new MsgConnectionOpenInit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenInit { + return new MsgConnectionOpenInit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenInit { + return new MsgConnectionOpenInit().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenInit | PlainMessage | undefined, b: MsgConnectionOpenInit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenInit, a, b); + } +} + +/** + * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response + * type. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenInitResponse + */ +export class MsgConnectionOpenInitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenInitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenInitResponse { + return new MsgConnectionOpenInitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenInitResponse { + return new MsgConnectionOpenInitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenInitResponse { + return new MsgConnectionOpenInitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenInitResponse | PlainMessage | undefined, b: MsgConnectionOpenInitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenInitResponse, a, b); + } +} + +/** + * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a + * connection on Chain B. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenTry + */ +export class MsgConnectionOpenTry extends Message { + /** + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * Deprecated: this field is unused. Crossing hellos are no longer supported in core IBC. + * + * @generated from field: string previous_connection_id = 2 [deprecated = true]; + * @deprecated + */ + previousConnectionId = ""; + + /** + * @generated from field: google.protobuf.Any client_state = 3; + */ + clientState?: Any; + + /** + * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 4; + */ + counterparty?: Counterparty; + + /** + * @generated from field: uint64 delay_period = 5; + */ + delayPeriod = protoInt64.zero; + + /** + * @generated from field: repeated ibc.core.connection.v1.Version counterparty_versions = 6; + */ + counterpartyVersions: Version[] = []; + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 7; + */ + proofHeight?: Height; + + /** + * proof of the initialization the connection on Chain A: `UNITIALIZED -> + * INIT` + * + * @generated from field: bytes proof_init = 8; + */ + proofInit = new Uint8Array(0); + + /** + * proof of client state included in message + * + * @generated from field: bytes proof_client = 9; + */ + proofClient = new Uint8Array(0); + + /** + * proof of client consensus state + * + * @generated from field: bytes proof_consensus = 10; + */ + proofConsensus = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height consensus_height = 11; + */ + consensusHeight?: Height; + + /** + * @generated from field: string signer = 12; + */ + signer = ""; + + /** + * optional proof data for host state machines that are unable to introspect their own consensus state + * + * @generated from field: bytes host_consensus_state_proof = 13; + */ + hostConsensusStateProof = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenTry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "previous_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "client_state", kind: "message", T: Any }, + { no: 4, name: "counterparty", kind: "message", T: Counterparty }, + { no: 5, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "counterparty_versions", kind: "message", T: Version, repeated: true }, + { no: 7, name: "proof_height", kind: "message", T: Height }, + { no: 8, name: "proof_init", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "proof_client", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 10, name: "proof_consensus", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 11, name: "consensus_height", kind: "message", T: Height }, + { no: 12, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "host_consensus_state_proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenTry { + return new MsgConnectionOpenTry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenTry { + return new MsgConnectionOpenTry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenTry { + return new MsgConnectionOpenTry().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenTry | PlainMessage | undefined, b: MsgConnectionOpenTry | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenTry, a, b); + } +} + +/** + * MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenTryResponse + */ +export class MsgConnectionOpenTryResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenTryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenTryResponse { + return new MsgConnectionOpenTryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenTryResponse { + return new MsgConnectionOpenTryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenTryResponse { + return new MsgConnectionOpenTryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenTryResponse | PlainMessage | undefined, b: MsgConnectionOpenTryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenTryResponse, a, b); + } +} + +/** + * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to + * acknowledge the change of connection state to TRYOPEN on Chain B. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenAck + */ +export class MsgConnectionOpenAck extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * @generated from field: string counterparty_connection_id = 2; + */ + counterpartyConnectionId = ""; + + /** + * @generated from field: ibc.core.connection.v1.Version version = 3; + */ + version?: Version; + + /** + * @generated from field: google.protobuf.Any client_state = 4; + */ + clientState?: Any; + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 5; + */ + proofHeight?: Height; + + /** + * proof of the initialization the connection on Chain B: `UNITIALIZED -> + * TRYOPEN` + * + * @generated from field: bytes proof_try = 6; + */ + proofTry = new Uint8Array(0); + + /** + * proof of client state included in message + * + * @generated from field: bytes proof_client = 7; + */ + proofClient = new Uint8Array(0); + + /** + * proof of client consensus state + * + * @generated from field: bytes proof_consensus = 8; + */ + proofConsensus = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height consensus_height = 9; + */ + consensusHeight?: Height; + + /** + * @generated from field: string signer = 10; + */ + signer = ""; + + /** + * optional proof data for host state machines that are unable to introspect their own consensus state + * + * @generated from field: bytes host_consensus_state_proof = 11; + */ + hostConsensusStateProof = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenAck"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "counterparty_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "version", kind: "message", T: Version }, + { no: 4, name: "client_state", kind: "message", T: Any }, + { no: 5, name: "proof_height", kind: "message", T: Height }, + { no: 6, name: "proof_try", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "proof_client", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "proof_consensus", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "consensus_height", kind: "message", T: Height }, + { no: 10, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "host_consensus_state_proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenAck { + return new MsgConnectionOpenAck().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenAck { + return new MsgConnectionOpenAck().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenAck { + return new MsgConnectionOpenAck().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenAck | PlainMessage | undefined, b: MsgConnectionOpenAck | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenAck, a, b); + } +} + +/** + * MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenAckResponse + */ +export class MsgConnectionOpenAckResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenAckResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenAckResponse { + return new MsgConnectionOpenAckResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenAckResponse { + return new MsgConnectionOpenAckResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenAckResponse { + return new MsgConnectionOpenAckResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenAckResponse | PlainMessage | undefined, b: MsgConnectionOpenAckResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenAckResponse, a, b); + } +} + +/** + * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to + * acknowledge the change of connection state to OPEN on Chain A. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenConfirm + */ +export class MsgConnectionOpenConfirm extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * proof for the change of the connection state on Chain A: `INIT -> OPEN` + * + * @generated from field: bytes proof_ack = 2; + */ + proofAck = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 4; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenConfirm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proof_ack", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenConfirm { + return new MsgConnectionOpenConfirm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenConfirm { + return new MsgConnectionOpenConfirm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenConfirm { + return new MsgConnectionOpenConfirm().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenConfirm | PlainMessage | undefined, b: MsgConnectionOpenConfirm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenConfirm, a, b); + } +} + +/** + * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm + * response type. + * + * @generated from message ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + */ +export class MsgConnectionOpenConfirmResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenConfirmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenConfirmResponse { + return new MsgConnectionOpenConfirmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenConfirmResponse { + return new MsgConnectionOpenConfirmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenConfirmResponse { + return new MsgConnectionOpenConfirmResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConnectionOpenConfirmResponse | PlainMessage | undefined, b: MsgConnectionOpenConfirmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConnectionOpenConfirmResponse, a, b); + } +} + +/** + * MsgUpdateParams defines the sdk.Msg type to update the connection parameters. + * + * @generated from message ibc.core.connection.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the connection parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: ibc.core.connection.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the MsgUpdateParams response type. + * + * @generated from message ibc.core.connection.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.connection.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/core/types/v1/genesis_pb.ts b/src/protobufs/ibc/core/types/v1/genesis_pb.ts new file mode 100644 index 00000000..50f8307d --- /dev/null +++ b/src/protobufs/ibc/core/types/v1/genesis_pb.ts @@ -0,0 +1,68 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/types/v1/genesis.proto (package ibc.core.types.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { GenesisState as GenesisState$1 } from "../../client/v1/genesis_pb.js"; +import { GenesisState as GenesisState$2 } from "../../connection/v1/genesis_pb.js"; +import { GenesisState as GenesisState$3 } from "../../channel/v1/genesis_pb.js"; + +/** + * GenesisState defines the ibc module's genesis state. + * + * @generated from message ibc.core.types.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * ICS002 - Clients genesis state + * + * @generated from field: ibc.core.client.v1.GenesisState client_genesis = 1; + */ + clientGenesis?: GenesisState$1; + + /** + * ICS003 - Connections genesis state + * + * @generated from field: ibc.core.connection.v1.GenesisState connection_genesis = 2; + */ + connectionGenesis?: GenesisState$2; + + /** + * ICS004 - Channel genesis state + * + * @generated from field: ibc.core.channel.v1.GenesisState channel_genesis = 3; + */ + channelGenesis?: GenesisState$3; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.types.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_genesis", kind: "message", T: GenesisState$1 }, + { no: 2, name: "connection_genesis", kind: "message", T: GenesisState$2 }, + { no: 3, name: "channel_genesis", kind: "message", T: GenesisState$3 }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/ibc/lightclients/localhost/v2/localhost_pb.ts b/src/protobufs/ibc/lightclients/localhost/v2/localhost_pb.ts new file mode 100644 index 00000000..05b7c195 --- /dev/null +++ b/src/protobufs/ibc/lightclients/localhost/v2/localhost_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/localhost/v2/localhost.proto (package ibc.lightclients.localhost.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Height } from "../../../core/client/v1/client_pb.js"; + +/** + * ClientState defines the 09-localhost client state + * + * @generated from message ibc.lightclients.localhost.v2.ClientState + */ +export class ClientState extends Message { + /** + * the latest block height + * + * @generated from field: ibc.core.client.v1.Height latest_height = 1; + */ + latestHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.localhost.v2.ClientState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "latest_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { + return new ClientState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { + return new ClientState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientState { + return new ClientState().fromJsonString(jsonString, options); + } + + static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientState, a, b); + } +} + diff --git a/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts b/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts new file mode 100644 index 00000000..c242e2f6 --- /dev/null +++ b/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts @@ -0,0 +1,929 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/solomachine/v2/solomachine.proto (package ibc.lightclients.solomachine.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ConnectionEnd } from "../../../core/connection/v1/connection_pb.js"; +import { Channel } from "../../../core/channel/v1/channel_pb.js"; + +/** + * DataType defines the type of solo machine proof being created. This is done + * to preserve uniqueness of different data sign byte encodings. + * + * @generated from enum ibc.lightclients.solomachine.v2.DataType + */ +export enum DataType { + /** + * Default State + * + * @generated from enum value: DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0; + */ + UNINITIALIZED_UNSPECIFIED = 0, + + /** + * Data type for client state verification + * + * @generated from enum value: DATA_TYPE_CLIENT_STATE = 1; + */ + CLIENT_STATE = 1, + + /** + * Data type for consensus state verification + * + * @generated from enum value: DATA_TYPE_CONSENSUS_STATE = 2; + */ + CONSENSUS_STATE = 2, + + /** + * Data type for connection state verification + * + * @generated from enum value: DATA_TYPE_CONNECTION_STATE = 3; + */ + CONNECTION_STATE = 3, + + /** + * Data type for channel state verification + * + * @generated from enum value: DATA_TYPE_CHANNEL_STATE = 4; + */ + CHANNEL_STATE = 4, + + /** + * Data type for packet commitment verification + * + * @generated from enum value: DATA_TYPE_PACKET_COMMITMENT = 5; + */ + PACKET_COMMITMENT = 5, + + /** + * Data type for packet acknowledgement verification + * + * @generated from enum value: DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6; + */ + PACKET_ACKNOWLEDGEMENT = 6, + + /** + * Data type for packet receipt absence verification + * + * @generated from enum value: DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7; + */ + PACKET_RECEIPT_ABSENCE = 7, + + /** + * Data type for next sequence recv verification + * + * @generated from enum value: DATA_TYPE_NEXT_SEQUENCE_RECV = 8; + */ + NEXT_SEQUENCE_RECV = 8, + + /** + * Data type for header verification + * + * @generated from enum value: DATA_TYPE_HEADER = 9; + */ + HEADER = 9, +} +// Retrieve enum metadata with: proto3.getEnumType(DataType) +proto3.util.setEnumType(DataType, "ibc.lightclients.solomachine.v2.DataType", [ + { no: 0, name: "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" }, + { no: 1, name: "DATA_TYPE_CLIENT_STATE" }, + { no: 2, name: "DATA_TYPE_CONSENSUS_STATE" }, + { no: 3, name: "DATA_TYPE_CONNECTION_STATE" }, + { no: 4, name: "DATA_TYPE_CHANNEL_STATE" }, + { no: 5, name: "DATA_TYPE_PACKET_COMMITMENT" }, + { no: 6, name: "DATA_TYPE_PACKET_ACKNOWLEDGEMENT" }, + { no: 7, name: "DATA_TYPE_PACKET_RECEIPT_ABSENCE" }, + { no: 8, name: "DATA_TYPE_NEXT_SEQUENCE_RECV" }, + { no: 9, name: "DATA_TYPE_HEADER" }, +]); + +/** + * ClientState defines a solo machine client that tracks the current consensus + * state and if the client is frozen. + * + * @generated from message ibc.lightclients.solomachine.v2.ClientState + */ +export class ClientState extends Message { + /** + * latest sequence of the client state + * + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * frozen sequence of the solo machine + * + * @generated from field: bool is_frozen = 2; + */ + isFrozen = false; + + /** + * @generated from field: ibc.lightclients.solomachine.v2.ConsensusState consensus_state = 3; + */ + consensusState?: ConsensusState; + + /** + * when set to true, will allow governance to update a solo machine client. + * The client will be unfrozen if it is frozen. + * + * @generated from field: bool allow_update_after_proposal = 4; + */ + allowUpdateAfterProposal = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.ClientState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "is_frozen", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "consensus_state", kind: "message", T: ConsensusState }, + { no: 4, name: "allow_update_after_proposal", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { + return new ClientState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { + return new ClientState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientState { + return new ClientState().fromJsonString(jsonString, options); + } + + static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientState, a, b); + } +} + +/** + * ConsensusState defines a solo machine consensus state. The sequence of a + * consensus state is contained in the "height" key used in storing the + * consensus state. + * + * @generated from message ibc.lightclients.solomachine.v2.ConsensusState + */ +export class ConsensusState extends Message { + /** + * public key of the solo machine + * + * @generated from field: google.protobuf.Any public_key = 1; + */ + publicKey?: Any; + + /** + * diversifier allows the same public key to be re-used across different solo + * machine clients (potentially on different chains) without being considered + * misbehaviour. + * + * @generated from field: string diversifier = 2; + */ + diversifier = ""; + + /** + * @generated from field: uint64 timestamp = 3; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.ConsensusState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "public_key", kind: "message", T: Any }, + { no: 2, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { + return new ConsensusState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { + return new ConsensusState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConsensusState { + return new ConsensusState().fromJsonString(jsonString, options); + } + + static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { + return proto3.util.equals(ConsensusState, a, b); + } +} + +/** + * Header defines a solo machine consensus header + * + * @generated from message ibc.lightclients.solomachine.v2.Header + */ +export class Header extends Message
{ + /** + * sequence to update solo machine public key at + * + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: bytes signature = 3; + */ + signature = new Uint8Array(0); + + /** + * @generated from field: google.protobuf.Any new_public_key = 4; + */ + newPublicKey?: Any; + + /** + * @generated from field: string new_diversifier = 5; + */ + newDiversifier = ""; + + constructor(data?: PartialMessage
) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.Header"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "new_public_key", kind: "message", T: Any }, + { no: 5, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Header { + return new Header().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Header { + return new Header().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Header { + return new Header().fromJsonString(jsonString, options); + } + + static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { + return proto3.util.equals(Header, a, b); + } +} + +/** + * Misbehaviour defines misbehaviour for a solo machine which consists + * of a sequence and two signatures over different messages at that sequence. + * + * @generated from message ibc.lightclients.solomachine.v2.Misbehaviour + */ +export class Misbehaviour extends Message { + /** + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * @generated from field: uint64 sequence = 2; + */ + sequence = protoInt64.zero; + + /** + * @generated from field: ibc.lightclients.solomachine.v2.SignatureAndData signature_one = 3; + */ + signatureOne?: SignatureAndData; + + /** + * @generated from field: ibc.lightclients.solomachine.v2.SignatureAndData signature_two = 4; + */ + signatureTwo?: SignatureAndData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.Misbehaviour"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "signature_one", kind: "message", T: SignatureAndData }, + { no: 4, name: "signature_two", kind: "message", T: SignatureAndData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Misbehaviour { + return new Misbehaviour().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Misbehaviour { + return new Misbehaviour().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Misbehaviour { + return new Misbehaviour().fromJsonString(jsonString, options); + } + + static equals(a: Misbehaviour | PlainMessage | undefined, b: Misbehaviour | PlainMessage | undefined): boolean { + return proto3.util.equals(Misbehaviour, a, b); + } +} + +/** + * SignatureAndData contains a signature and the data signed over to create that + * signature. + * + * @generated from message ibc.lightclients.solomachine.v2.SignatureAndData + */ +export class SignatureAndData extends Message { + /** + * @generated from field: bytes signature = 1; + */ + signature = new Uint8Array(0); + + /** + * @generated from field: ibc.lightclients.solomachine.v2.DataType data_type = 2; + */ + dataType = DataType.UNINITIALIZED_UNSPECIFIED; + + /** + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + /** + * @generated from field: uint64 timestamp = 4; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.SignatureAndData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "data_type", kind: "enum", T: proto3.getEnumType(DataType) }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignatureAndData { + return new SignatureAndData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignatureAndData { + return new SignatureAndData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignatureAndData { + return new SignatureAndData().fromJsonString(jsonString, options); + } + + static equals(a: SignatureAndData | PlainMessage | undefined, b: SignatureAndData | PlainMessage | undefined): boolean { + return proto3.util.equals(SignatureAndData, a, b); + } +} + +/** + * TimestampedSignatureData contains the signature data and the timestamp of the + * signature. + * + * @generated from message ibc.lightclients.solomachine.v2.TimestampedSignatureData + */ +export class TimestampedSignatureData extends Message { + /** + * @generated from field: bytes signature_data = 1; + */ + signatureData = new Uint8Array(0); + + /** + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.TimestampedSignatureData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signature_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TimestampedSignatureData { + return new TimestampedSignatureData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TimestampedSignatureData { + return new TimestampedSignatureData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TimestampedSignatureData { + return new TimestampedSignatureData().fromJsonString(jsonString, options); + } + + static equals(a: TimestampedSignatureData | PlainMessage | undefined, b: TimestampedSignatureData | PlainMessage | undefined): boolean { + return proto3.util.equals(TimestampedSignatureData, a, b); + } +} + +/** + * SignBytes defines the signed bytes used for signature verification. + * + * @generated from message ibc.lightclients.solomachine.v2.SignBytes + */ +export class SignBytes extends Message { + /** + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: string diversifier = 3; + */ + diversifier = ""; + + /** + * type of the data used + * + * @generated from field: ibc.lightclients.solomachine.v2.DataType data_type = 4; + */ + dataType = DataType.UNINITIALIZED_UNSPECIFIED; + + /** + * marshaled data + * + * @generated from field: bytes data = 5; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.SignBytes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "data_type", kind: "enum", T: proto3.getEnumType(DataType) }, + { no: 5, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignBytes { + return new SignBytes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignBytes { + return new SignBytes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignBytes { + return new SignBytes().fromJsonString(jsonString, options); + } + + static equals(a: SignBytes | PlainMessage | undefined, b: SignBytes | PlainMessage | undefined): boolean { + return proto3.util.equals(SignBytes, a, b); + } +} + +/** + * HeaderData returns the SignBytes data for update verification. + * + * @generated from message ibc.lightclients.solomachine.v2.HeaderData + */ +export class HeaderData extends Message { + /** + * header public key + * + * @generated from field: google.protobuf.Any new_pub_key = 1; + */ + newPubKey?: Any; + + /** + * header diversifier + * + * @generated from field: string new_diversifier = 2; + */ + newDiversifier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.HeaderData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_pub_key", kind: "message", T: Any }, + { no: 2, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HeaderData { + return new HeaderData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HeaderData { + return new HeaderData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HeaderData { + return new HeaderData().fromJsonString(jsonString, options); + } + + static equals(a: HeaderData | PlainMessage | undefined, b: HeaderData | PlainMessage | undefined): boolean { + return proto3.util.equals(HeaderData, a, b); + } +} + +/** + * ClientStateData returns the SignBytes data for client state verification. + * + * @generated from message ibc.lightclients.solomachine.v2.ClientStateData + */ +export class ClientStateData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + /** + * @generated from field: google.protobuf.Any client_state = 2; + */ + clientState?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.ClientStateData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "client_state", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientStateData { + return new ClientStateData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientStateData { + return new ClientStateData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientStateData { + return new ClientStateData().fromJsonString(jsonString, options); + } + + static equals(a: ClientStateData | PlainMessage | undefined, b: ClientStateData | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientStateData, a, b); + } +} + +/** + * ConsensusStateData returns the SignBytes data for consensus state + * verification. + * + * @generated from message ibc.lightclients.solomachine.v2.ConsensusStateData + */ +export class ConsensusStateData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + /** + * @generated from field: google.protobuf.Any consensus_state = 2; + */ + consensusState?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.ConsensusStateData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "consensus_state", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusStateData { + return new ConsensusStateData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusStateData { + return new ConsensusStateData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConsensusStateData { + return new ConsensusStateData().fromJsonString(jsonString, options); + } + + static equals(a: ConsensusStateData | PlainMessage | undefined, b: ConsensusStateData | PlainMessage | undefined): boolean { + return proto3.util.equals(ConsensusStateData, a, b); + } +} + +/** + * ConnectionStateData returns the SignBytes data for connection state + * verification. + * + * @generated from message ibc.lightclients.solomachine.v2.ConnectionStateData + */ +export class ConnectionStateData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + /** + * @generated from field: ibc.core.connection.v1.ConnectionEnd connection = 2; + */ + connection?: ConnectionEnd; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.ConnectionStateData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "connection", kind: "message", T: ConnectionEnd }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionStateData { + return new ConnectionStateData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionStateData { + return new ConnectionStateData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConnectionStateData { + return new ConnectionStateData().fromJsonString(jsonString, options); + } + + static equals(a: ConnectionStateData | PlainMessage | undefined, b: ConnectionStateData | PlainMessage | undefined): boolean { + return proto3.util.equals(ConnectionStateData, a, b); + } +} + +/** + * ChannelStateData returns the SignBytes data for channel state + * verification. + * + * @generated from message ibc.lightclients.solomachine.v2.ChannelStateData + */ +export class ChannelStateData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + /** + * @generated from field: ibc.core.channel.v1.Channel channel = 2; + */ + channel?: Channel; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.ChannelStateData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "channel", kind: "message", T: Channel }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ChannelStateData { + return new ChannelStateData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ChannelStateData { + return new ChannelStateData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ChannelStateData { + return new ChannelStateData().fromJsonString(jsonString, options); + } + + static equals(a: ChannelStateData | PlainMessage | undefined, b: ChannelStateData | PlainMessage | undefined): boolean { + return proto3.util.equals(ChannelStateData, a, b); + } +} + +/** + * PacketCommitmentData returns the SignBytes data for packet commitment + * verification. + * + * @generated from message ibc.lightclients.solomachine.v2.PacketCommitmentData + */ +export class PacketCommitmentData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + /** + * @generated from field: bytes commitment = 2; + */ + commitment = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.PacketCommitmentData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "commitment", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketCommitmentData { + return new PacketCommitmentData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketCommitmentData { + return new PacketCommitmentData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketCommitmentData { + return new PacketCommitmentData().fromJsonString(jsonString, options); + } + + static equals(a: PacketCommitmentData | PlainMessage | undefined, b: PacketCommitmentData | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketCommitmentData, a, b); + } +} + +/** + * PacketAcknowledgementData returns the SignBytes data for acknowledgement + * verification. + * + * @generated from message ibc.lightclients.solomachine.v2.PacketAcknowledgementData + */ +export class PacketAcknowledgementData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + /** + * @generated from field: bytes acknowledgement = 2; + */ + acknowledgement = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.PacketAcknowledgementData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketAcknowledgementData { + return new PacketAcknowledgementData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketAcknowledgementData { + return new PacketAcknowledgementData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketAcknowledgementData { + return new PacketAcknowledgementData().fromJsonString(jsonString, options); + } + + static equals(a: PacketAcknowledgementData | PlainMessage | undefined, b: PacketAcknowledgementData | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketAcknowledgementData, a, b); + } +} + +/** + * PacketReceiptAbsenceData returns the SignBytes data for + * packet receipt absence verification. + * + * @generated from message ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + */ +export class PacketReceiptAbsenceData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketReceiptAbsenceData { + return new PacketReceiptAbsenceData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketReceiptAbsenceData { + return new PacketReceiptAbsenceData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketReceiptAbsenceData { + return new PacketReceiptAbsenceData().fromJsonString(jsonString, options); + } + + static equals(a: PacketReceiptAbsenceData | PlainMessage | undefined, b: PacketReceiptAbsenceData | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketReceiptAbsenceData, a, b); + } +} + +/** + * NextSequenceRecvData returns the SignBytes data for verification of the next + * sequence to be received. + * + * @generated from message ibc.lightclients.solomachine.v2.NextSequenceRecvData + */ +export class NextSequenceRecvData extends Message { + /** + * @generated from field: bytes path = 1; + */ + path = new Uint8Array(0); + + /** + * @generated from field: uint64 next_seq_recv = 2; + */ + nextSeqRecv = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v2.NextSequenceRecvData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "next_seq_recv", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NextSequenceRecvData { + return new NextSequenceRecvData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NextSequenceRecvData { + return new NextSequenceRecvData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NextSequenceRecvData { + return new NextSequenceRecvData().fromJsonString(jsonString, options); + } + + static equals(a: NextSequenceRecvData | PlainMessage | undefined, b: NextSequenceRecvData | PlainMessage | undefined): boolean { + return proto3.util.equals(NextSequenceRecvData, a, b); + } +} + diff --git a/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts b/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts new file mode 100644 index 00000000..2cbd7ae3 --- /dev/null +++ b/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts @@ -0,0 +1,458 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/solomachine/v3/solomachine.proto (package ibc.lightclients.solomachine.v3, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * ClientState defines a solo machine client that tracks the current consensus + * state and if the client is frozen. + * + * @generated from message ibc.lightclients.solomachine.v3.ClientState + */ +export class ClientState extends Message { + /** + * latest sequence of the client state + * + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * frozen sequence of the solo machine + * + * @generated from field: bool is_frozen = 2; + */ + isFrozen = false; + + /** + * @generated from field: ibc.lightclients.solomachine.v3.ConsensusState consensus_state = 3; + */ + consensusState?: ConsensusState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.ClientState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "is_frozen", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "consensus_state", kind: "message", T: ConsensusState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { + return new ClientState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { + return new ClientState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientState { + return new ClientState().fromJsonString(jsonString, options); + } + + static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientState, a, b); + } +} + +/** + * ConsensusState defines a solo machine consensus state. The sequence of a + * consensus state is contained in the "height" key used in storing the + * consensus state. + * + * @generated from message ibc.lightclients.solomachine.v3.ConsensusState + */ +export class ConsensusState extends Message { + /** + * public key of the solo machine + * + * @generated from field: google.protobuf.Any public_key = 1; + */ + publicKey?: Any; + + /** + * diversifier allows the same public key to be re-used across different solo + * machine clients (potentially on different chains) without being considered + * misbehaviour. + * + * @generated from field: string diversifier = 2; + */ + diversifier = ""; + + /** + * @generated from field: uint64 timestamp = 3; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.ConsensusState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "public_key", kind: "message", T: Any }, + { no: 2, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { + return new ConsensusState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { + return new ConsensusState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConsensusState { + return new ConsensusState().fromJsonString(jsonString, options); + } + + static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { + return proto3.util.equals(ConsensusState, a, b); + } +} + +/** + * Header defines a solo machine consensus header + * + * @generated from message ibc.lightclients.solomachine.v3.Header + */ +export class Header extends Message
{ + /** + * @generated from field: uint64 timestamp = 1; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: bytes signature = 2; + */ + signature = new Uint8Array(0); + + /** + * @generated from field: google.protobuf.Any new_public_key = 3; + */ + newPublicKey?: Any; + + /** + * @generated from field: string new_diversifier = 4; + */ + newDiversifier = ""; + + constructor(data?: PartialMessage
) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.Header"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "new_public_key", kind: "message", T: Any }, + { no: 4, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Header { + return new Header().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Header { + return new Header().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Header { + return new Header().fromJsonString(jsonString, options); + } + + static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { + return proto3.util.equals(Header, a, b); + } +} + +/** + * Misbehaviour defines misbehaviour for a solo machine which consists + * of a sequence and two signatures over different messages at that sequence. + * + * @generated from message ibc.lightclients.solomachine.v3.Misbehaviour + */ +export class Misbehaviour extends Message { + /** + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * @generated from field: ibc.lightclients.solomachine.v3.SignatureAndData signature_one = 2; + */ + signatureOne?: SignatureAndData; + + /** + * @generated from field: ibc.lightclients.solomachine.v3.SignatureAndData signature_two = 3; + */ + signatureTwo?: SignatureAndData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.Misbehaviour"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "signature_one", kind: "message", T: SignatureAndData }, + { no: 3, name: "signature_two", kind: "message", T: SignatureAndData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Misbehaviour { + return new Misbehaviour().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Misbehaviour { + return new Misbehaviour().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Misbehaviour { + return new Misbehaviour().fromJsonString(jsonString, options); + } + + static equals(a: Misbehaviour | PlainMessage | undefined, b: Misbehaviour | PlainMessage | undefined): boolean { + return proto3.util.equals(Misbehaviour, a, b); + } +} + +/** + * SignatureAndData contains a signature and the data signed over to create that + * signature. + * + * @generated from message ibc.lightclients.solomachine.v3.SignatureAndData + */ +export class SignatureAndData extends Message { + /** + * @generated from field: bytes signature = 1; + */ + signature = new Uint8Array(0); + + /** + * @generated from field: bytes path = 2; + */ + path = new Uint8Array(0); + + /** + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + /** + * @generated from field: uint64 timestamp = 4; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.SignatureAndData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignatureAndData { + return new SignatureAndData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignatureAndData { + return new SignatureAndData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignatureAndData { + return new SignatureAndData().fromJsonString(jsonString, options); + } + + static equals(a: SignatureAndData | PlainMessage | undefined, b: SignatureAndData | PlainMessage | undefined): boolean { + return proto3.util.equals(SignatureAndData, a, b); + } +} + +/** + * TimestampedSignatureData contains the signature data and the timestamp of the + * signature. + * + * @generated from message ibc.lightclients.solomachine.v3.TimestampedSignatureData + */ +export class TimestampedSignatureData extends Message { + /** + * @generated from field: bytes signature_data = 1; + */ + signatureData = new Uint8Array(0); + + /** + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.TimestampedSignatureData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signature_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TimestampedSignatureData { + return new TimestampedSignatureData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TimestampedSignatureData { + return new TimestampedSignatureData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TimestampedSignatureData { + return new TimestampedSignatureData().fromJsonString(jsonString, options); + } + + static equals(a: TimestampedSignatureData | PlainMessage | undefined, b: TimestampedSignatureData | PlainMessage | undefined): boolean { + return proto3.util.equals(TimestampedSignatureData, a, b); + } +} + +/** + * SignBytes defines the signed bytes used for signature verification. + * + * @generated from message ibc.lightclients.solomachine.v3.SignBytes + */ +export class SignBytes extends Message { + /** + * the sequence number + * + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * the proof timestamp + * + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + /** + * the public key diversifier + * + * @generated from field: string diversifier = 3; + */ + diversifier = ""; + + /** + * the standardised path bytes + * + * @generated from field: bytes path = 4; + */ + path = new Uint8Array(0); + + /** + * the marshaled data bytes + * + * @generated from field: bytes data = 5; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.SignBytes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignBytes { + return new SignBytes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignBytes { + return new SignBytes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignBytes { + return new SignBytes().fromJsonString(jsonString, options); + } + + static equals(a: SignBytes | PlainMessage | undefined, b: SignBytes | PlainMessage | undefined): boolean { + return proto3.util.equals(SignBytes, a, b); + } +} + +/** + * HeaderData returns the SignBytes data for update verification. + * + * @generated from message ibc.lightclients.solomachine.v3.HeaderData + */ +export class HeaderData extends Message { + /** + * header public key + * + * @generated from field: google.protobuf.Any new_pub_key = 1; + */ + newPubKey?: Any; + + /** + * header diversifier + * + * @generated from field: string new_diversifier = 2; + */ + newDiversifier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.solomachine.v3.HeaderData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_pub_key", kind: "message", T: Any }, + { no: 2, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HeaderData { + return new HeaderData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HeaderData { + return new HeaderData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HeaderData { + return new HeaderData().fromJsonString(jsonString, options); + } + + static equals(a: HeaderData | PlainMessage | undefined, b: HeaderData | PlainMessage | undefined): boolean { + return proto3.util.equals(HeaderData, a, b); + } +} + diff --git a/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts b/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts new file mode 100644 index 00000000..d6495885 --- /dev/null +++ b/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts @@ -0,0 +1,365 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/tendermint/v1/tendermint.proto (package ibc.lightclients.tendermint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Height } from "../../../core/client/v1/client_pb.js"; +import { ProofSpec } from "../../../../cosmos/ics23/v1/proofs_pb.js"; +import { MerkleRoot } from "../../../core/commitment/v1/commitment_pb.js"; +import { SignedHeader } from "../../../../tendermint/types/types_pb.js"; +import { ValidatorSet } from "../../../../tendermint/types/validator_pb.js"; + +/** + * ClientState from Tendermint tracks the current validator set, latest height, + * and a possible frozen height. + * + * @generated from message ibc.lightclients.tendermint.v1.ClientState + */ +export class ClientState extends Message { + /** + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + /** + * @generated from field: ibc.lightclients.tendermint.v1.Fraction trust_level = 2; + */ + trustLevel?: Fraction; + + /** + * duration of the period since the LastestTimestamp during which the + * submitted headers are valid for upgrade + * + * @generated from field: google.protobuf.Duration trusting_period = 3; + */ + trustingPeriod?: Duration; + + /** + * duration of the staking unbonding period + * + * @generated from field: google.protobuf.Duration unbonding_period = 4; + */ + unbondingPeriod?: Duration; + + /** + * defines how much new (untrusted) header's Time can drift into the future. + * + * @generated from field: google.protobuf.Duration max_clock_drift = 5; + */ + maxClockDrift?: Duration; + + /** + * Block height when the client was frozen due to a misbehaviour + * + * @generated from field: ibc.core.client.v1.Height frozen_height = 6; + */ + frozenHeight?: Height; + + /** + * Latest height the client was updated to + * + * @generated from field: ibc.core.client.v1.Height latest_height = 7; + */ + latestHeight?: Height; + + /** + * Proof specifications used in verifying counterparty state + * + * @generated from field: repeated cosmos.ics23.v1.ProofSpec proof_specs = 8; + */ + proofSpecs: ProofSpec[] = []; + + /** + * Path at which next upgraded client will be committed. + * Each element corresponds to the key for a single CommitmentProof in the + * chained proof. NOTE: ClientState must stored under + * `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored + * under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using + * the default upgrade module, upgrade_path should be []string{"upgrade", + * "upgradedIBCState"}` + * + * @generated from field: repeated string upgrade_path = 9; + */ + upgradePath: string[] = []; + + /** + * allow_update_after_expiry is deprecated + * + * @generated from field: bool allow_update_after_expiry = 10 [deprecated = true]; + * @deprecated + */ + allowUpdateAfterExpiry = false; + + /** + * allow_update_after_misbehaviour is deprecated + * + * @generated from field: bool allow_update_after_misbehaviour = 11 [deprecated = true]; + * @deprecated + */ + allowUpdateAfterMisbehaviour = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.tendermint.v1.ClientState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "trust_level", kind: "message", T: Fraction }, + { no: 3, name: "trusting_period", kind: "message", T: Duration }, + { no: 4, name: "unbonding_period", kind: "message", T: Duration }, + { no: 5, name: "max_clock_drift", kind: "message", T: Duration }, + { no: 6, name: "frozen_height", kind: "message", T: Height }, + { no: 7, name: "latest_height", kind: "message", T: Height }, + { no: 8, name: "proof_specs", kind: "message", T: ProofSpec, repeated: true }, + { no: 9, name: "upgrade_path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 10, name: "allow_update_after_expiry", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 11, name: "allow_update_after_misbehaviour", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { + return new ClientState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { + return new ClientState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientState { + return new ClientState().fromJsonString(jsonString, options); + } + + static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientState, a, b); + } +} + +/** + * ConsensusState defines the consensus state from Tendermint. + * + * @generated from message ibc.lightclients.tendermint.v1.ConsensusState + */ +export class ConsensusState extends Message { + /** + * timestamp that corresponds to the block height in which the ConsensusState + * was stored. + * + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp?: Timestamp; + + /** + * commitment root (i.e app hash) + * + * @generated from field: ibc.core.commitment.v1.MerkleRoot root = 2; + */ + root?: MerkleRoot; + + /** + * @generated from field: bytes next_validators_hash = 3; + */ + nextValidatorsHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.tendermint.v1.ConsensusState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timestamp", kind: "message", T: Timestamp }, + { no: 2, name: "root", kind: "message", T: MerkleRoot }, + { no: 3, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { + return new ConsensusState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { + return new ConsensusState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConsensusState { + return new ConsensusState().fromJsonString(jsonString, options); + } + + static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { + return proto3.util.equals(ConsensusState, a, b); + } +} + +/** + * Misbehaviour is a wrapper over two conflicting Headers + * that implements Misbehaviour interface expected by ICS-02 + * + * @generated from message ibc.lightclients.tendermint.v1.Misbehaviour + */ +export class Misbehaviour extends Message { + /** + * ClientID is deprecated + * + * @generated from field: string client_id = 1 [deprecated = true]; + * @deprecated + */ + clientId = ""; + + /** + * @generated from field: ibc.lightclients.tendermint.v1.Header header_1 = 2; + */ + header1?: Header; + + /** + * @generated from field: ibc.lightclients.tendermint.v1.Header header_2 = 3; + */ + header2?: Header; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.tendermint.v1.Misbehaviour"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "header_1", kind: "message", T: Header }, + { no: 3, name: "header_2", kind: "message", T: Header }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Misbehaviour { + return new Misbehaviour().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Misbehaviour { + return new Misbehaviour().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Misbehaviour { + return new Misbehaviour().fromJsonString(jsonString, options); + } + + static equals(a: Misbehaviour | PlainMessage | undefined, b: Misbehaviour | PlainMessage | undefined): boolean { + return proto3.util.equals(Misbehaviour, a, b); + } +} + +/** + * Header defines the Tendermint client consensus Header. + * It encapsulates all the information necessary to update from a trusted + * Tendermint ConsensusState. The inclusion of TrustedHeight and + * TrustedValidators allows this update to process correctly, so long as the + * ConsensusState for the TrustedHeight exists, this removes race conditions + * among relayers The SignedHeader and ValidatorSet are the new untrusted update + * fields for the client. The TrustedHeight is the height of a stored + * ConsensusState on the client that will be used to verify the new untrusted + * header. The Trusted ConsensusState must be within the unbonding period of + * current time in order to correctly verify, and the TrustedValidators must + * hash to TrustedConsensusState.NextValidatorsHash since that is the last + * trusted validator set at the TrustedHeight. + * + * @generated from message ibc.lightclients.tendermint.v1.Header + */ +export class Header extends Message
{ + /** + * @generated from field: tendermint.types.SignedHeader signed_header = 1; + */ + signedHeader?: SignedHeader; + + /** + * @generated from field: tendermint.types.ValidatorSet validator_set = 2; + */ + validatorSet?: ValidatorSet; + + /** + * @generated from field: ibc.core.client.v1.Height trusted_height = 3; + */ + trustedHeight?: Height; + + /** + * @generated from field: tendermint.types.ValidatorSet trusted_validators = 4; + */ + trustedValidators?: ValidatorSet; + + constructor(data?: PartialMessage
) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.tendermint.v1.Header"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signed_header", kind: "message", T: SignedHeader }, + { no: 2, name: "validator_set", kind: "message", T: ValidatorSet }, + { no: 3, name: "trusted_height", kind: "message", T: Height }, + { no: 4, name: "trusted_validators", kind: "message", T: ValidatorSet }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Header { + return new Header().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Header { + return new Header().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Header { + return new Header().fromJsonString(jsonString, options); + } + + static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { + return proto3.util.equals(Header, a, b); + } +} + +/** + * Fraction defines the protobuf message type for tmmath.Fraction that only + * supports positive values. + * + * @generated from message ibc.lightclients.tendermint.v1.Fraction + */ +export class Fraction extends Message { + /** + * @generated from field: uint64 numerator = 1; + */ + numerator = protoInt64.zero; + + /** + * @generated from field: uint64 denominator = 2; + */ + denominator = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.tendermint.v1.Fraction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "numerator", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denominator", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Fraction { + return new Fraction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Fraction { + return new Fraction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Fraction { + return new Fraction().fromJsonString(jsonString, options); + } + + static equals(a: Fraction | PlainMessage | undefined, b: Fraction | PlainMessage | undefined): boolean { + return proto3.util.equals(Fraction, a, b); + } +} + diff --git a/src/protobufs/index.ts b/src/protobufs/index.ts index e5f2aca0..75485466 100644 --- a/src/protobufs/index.ts +++ b/src/protobufs/index.ts @@ -292,6 +292,8 @@ export { MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse as OsmosisSuperfluidMsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse, MsgAddToConcentratedLiquiditySuperfluidPosition as OsmosisSuperfluidMsgAddToConcentratedLiquiditySuperfluidPosition, MsgAddToConcentratedLiquiditySuperfluidPositionResponse as OsmosisSuperfluidMsgAddToConcentratedLiquiditySuperfluidPositionResponse, + MsgUnbondConvertAndStake as OsmosisSuperfluidMsgUnbondConvertAndStake, + MsgUnbondConvertAndStakeResponse as OsmosisSuperfluidMsgUnbondConvertAndStakeResponse, } from "./osmosis/superfluid/tx_pb.js"; export { MsgSuperfluidDelegateService as OsmosisSuperfluidMsgSuperfluidDelegateService, @@ -303,6 +305,7 @@ export { MsgUnPoolWhitelistedPoolService as OsmosisSuperfluidMsgUnPoolWhitelistedPoolService, MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionService as OsmosisSuperfluidMsgUnlockAndMigrateSharesToFullRangeConcentratedPositionService, MsgAddToConcentratedLiquiditySuperfluidPositionService as OsmosisSuperfluidMsgAddToConcentratedLiquiditySuperfluidPositionService, + MsgUnbondConvertAndStakeService as OsmosisSuperfluidMsgUnbondConvertAndStakeService, } from "./osmosis/superfluid/tx_cosmes.js"; export { SuperfluidAssetType as OsmosisSuperfluidSuperfluidAssetType, @@ -392,8 +395,8 @@ export { MsgSetHotRoutesResponse as OsmosisProtorevV1beta1MsgSetHotRoutesResponse, MsgSetDeveloperAccount as OsmosisProtorevV1beta1MsgSetDeveloperAccount, MsgSetDeveloperAccountResponse as OsmosisProtorevV1beta1MsgSetDeveloperAccountResponse, - MsgSetPoolWeights as OsmosisProtorevV1beta1MsgSetPoolWeights, - MsgSetPoolWeightsResponse as OsmosisProtorevV1beta1MsgSetPoolWeightsResponse, + MsgSetInfoByPoolType as OsmosisProtorevV1beta1MsgSetInfoByPoolType, + MsgSetInfoByPoolTypeResponse as OsmosisProtorevV1beta1MsgSetInfoByPoolTypeResponse, MsgSetMaxPoolPointsPerTx as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerTx, MsgSetMaxPoolPointsPerTxResponse as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerTxResponse, MsgSetMaxPoolPointsPerBlock as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerBlock, @@ -406,7 +409,7 @@ export { MsgSetDeveloperAccountService as OsmosisProtorevV1beta1MsgSetDeveloperAccountService, MsgSetMaxPoolPointsPerTxService as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerTxService, MsgSetMaxPoolPointsPerBlockService as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerBlockService, - MsgSetPoolWeightsService as OsmosisProtorevV1beta1MsgSetPoolWeightsService, + MsgSetInfoByPoolTypeService as OsmosisProtorevV1beta1MsgSetInfoByPoolTypeService, MsgSetBaseDenomsService as OsmosisProtorevV1beta1MsgSetBaseDenomsService, } from "./osmosis/protorev/v1beta1/tx_cosmes.js"; export { @@ -428,8 +431,8 @@ export { QueryGetProtoRevAdminAccountResponse as OsmosisProtorevV1beta1QueryGetProtoRevAdminAccountResponse, QueryGetProtoRevDeveloperAccountRequest as OsmosisProtorevV1beta1QueryGetProtoRevDeveloperAccountRequest, QueryGetProtoRevDeveloperAccountResponse as OsmosisProtorevV1beta1QueryGetProtoRevDeveloperAccountResponse, - QueryGetProtoRevPoolWeightsRequest as OsmosisProtorevV1beta1QueryGetProtoRevPoolWeightsRequest, - QueryGetProtoRevPoolWeightsResponse as OsmosisProtorevV1beta1QueryGetProtoRevPoolWeightsResponse, + QueryGetProtoRevInfoByPoolTypeRequest as OsmosisProtorevV1beta1QueryGetProtoRevInfoByPoolTypeRequest, + QueryGetProtoRevInfoByPoolTypeResponse as OsmosisProtorevV1beta1QueryGetProtoRevInfoByPoolTypeResponse, QueryGetProtoRevMaxPoolPointsPerBlockRequest as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerBlockRequest, QueryGetProtoRevMaxPoolPointsPerBlockResponse as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerBlockResponse, QueryGetProtoRevMaxPoolPointsPerTxRequest as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerTxRequest, @@ -451,7 +454,7 @@ export { QueryGetProtoRevTokenPairArbRoutesService as OsmosisProtorevV1beta1QueryGetProtoRevTokenPairArbRoutesService, QueryGetProtoRevAdminAccountService as OsmosisProtorevV1beta1QueryGetProtoRevAdminAccountService, QueryGetProtoRevDeveloperAccountService as OsmosisProtorevV1beta1QueryGetProtoRevDeveloperAccountService, - QueryGetProtoRevPoolWeightsService as OsmosisProtorevV1beta1QueryGetProtoRevPoolWeightsService, + QueryGetProtoRevInfoByPoolTypeService as OsmosisProtorevV1beta1QueryGetProtoRevInfoByPoolTypeService, QueryGetProtoRevMaxPoolPointsPerTxService as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerTxService, QueryGetProtoRevMaxPoolPointsPerBlockService as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerBlockService, QueryGetProtoRevBaseDenomsService as OsmosisProtorevV1beta1QueryGetProtoRevBaseDenomsService, @@ -464,6 +467,12 @@ export { Trade as OsmosisProtorevV1beta1Trade, RouteStatistics as OsmosisProtorevV1beta1RouteStatistics, PoolWeights as OsmosisProtorevV1beta1PoolWeights, + InfoByPoolType as OsmosisProtorevV1beta1InfoByPoolType, + StablePoolInfo as OsmosisProtorevV1beta1StablePoolInfo, + BalancerPoolInfo as OsmosisProtorevV1beta1BalancerPoolInfo, + ConcentratedPoolInfo as OsmosisProtorevV1beta1ConcentratedPoolInfo, + CosmwasmPoolInfo as OsmosisProtorevV1beta1CosmwasmPoolInfo, + WeightMap as OsmosisProtorevV1beta1WeightMap, BaseDenom as OsmosisProtorevV1beta1BaseDenom, } from "./osmosis/protorev/v1beta1/protorev_pb.js"; export { @@ -502,9 +511,11 @@ export { ParamsRequest as OsmosisPoolmanagerV1beta1ParamsRequest, ParamsResponse as OsmosisPoolmanagerV1beta1ParamsResponse, EstimateSwapExactAmountInRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountInRequest, + EstimateSwapExactAmountInWithPrimitiveTypesRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountInWithPrimitiveTypesRequest, EstimateSinglePoolSwapExactAmountInRequest as OsmosisPoolmanagerV1beta1EstimateSinglePoolSwapExactAmountInRequest, EstimateSwapExactAmountInResponse as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountInResponse, EstimateSwapExactAmountOutRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountOutRequest, + EstimateSwapExactAmountOutWithPrimitiveTypesRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountOutWithPrimitiveTypesRequest, EstimateSinglePoolSwapExactAmountOutRequest as OsmosisPoolmanagerV1beta1EstimateSinglePoolSwapExactAmountOutRequest, EstimateSwapExactAmountOutResponse as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountOutResponse, NumPoolsRequest as OsmosisPoolmanagerV1beta1NumPoolsRequest, @@ -523,8 +534,10 @@ export { export { QueryParamsService as OsmosisPoolmanagerV1beta1QueryParamsService, QueryEstimateSwapExactAmountInService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountInService, + QueryEstimateSwapExactAmountInWithPrimitiveTypesService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountInWithPrimitiveTypesService, QueryEstimateSinglePoolSwapExactAmountInService as OsmosisPoolmanagerV1beta1QueryEstimateSinglePoolSwapExactAmountInService, QueryEstimateSwapExactAmountOutService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountOutService, + QueryEstimateSwapExactAmountOutWithPrimitiveTypesService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountOutWithPrimitiveTypesService, QueryEstimateSinglePoolSwapExactAmountOutService as OsmosisPoolmanagerV1beta1QueryEstimateSinglePoolSwapExactAmountOutService, QueryNumPoolsService as OsmosisPoolmanagerV1beta1QueryNumPoolsService, QueryPoolService as OsmosisPoolmanagerV1beta1QueryPoolService, @@ -765,6 +778,19 @@ export { export { GenesisState as OsmosisIbcRateLimitV1beta1GenesisState, } from "./osmosis/ibc-rate-limit/v1beta1/genesis_pb.js"; +export { + MsgEmitIBCAck as OsmosisIbcHooksMsgEmitIBCAck, + MsgEmitIBCAckResponse as OsmosisIbcHooksMsgEmitIBCAckResponse, +} from "./osmosis/ibc-hooks/tx_pb.js"; +export { + MsgEmitIBCAckService as OsmosisIbcHooksMsgEmitIBCAckService, +} from "./osmosis/ibc-hooks/tx_cosmes.js"; +export { + Params as OsmosisIbcHooksParams, +} from "./osmosis/ibc-hooks/params_pb.js"; +export { + GenesisState as OsmosisIbcHooksGenesisState, +} from "./osmosis/ibc-hooks/genesis_pb.js"; export { QuerySpotPriceRequest as OsmosisGammV2QuerySpotPriceRequest, QuerySpotPriceResponse as OsmosisGammV2QuerySpotPriceResponse, @@ -837,6 +863,8 @@ export { QueryTotalLiquidityResponse as OsmosisGammV1beta1QueryTotalLiquidityResponse, QueryConcentratedPoolIdLinkFromCFMMRequest as OsmosisGammV1beta1QueryConcentratedPoolIdLinkFromCFMMRequest, QueryConcentratedPoolIdLinkFromCFMMResponse as OsmosisGammV1beta1QueryConcentratedPoolIdLinkFromCFMMResponse, + QueryCFMMConcentratedPoolLinksRequest as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksRequest, + QueryCFMMConcentratedPoolLinksResponse as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksResponse, } from "./osmosis/gamm/v1beta1/query_pb.js"; export { QueryPoolsService as OsmosisGammV1beta1QueryPoolsService, @@ -855,10 +883,14 @@ export { QueryEstimateSwapExactAmountInService as OsmosisGammV1beta1QueryEstimateSwapExactAmountInService, QueryEstimateSwapExactAmountOutService as OsmosisGammV1beta1QueryEstimateSwapExactAmountOutService, QueryConcentratedPoolIdLinkFromCFMMService as OsmosisGammV1beta1QueryConcentratedPoolIdLinkFromCFMMService, + QueryCFMMConcentratedPoolLinksService as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksService, } from "./osmosis/gamm/v1beta1/query_cosmes.js"; export { ReplaceMigrationRecordsProposal as OsmosisGammV1beta1ReplaceMigrationRecordsProposal, UpdateMigrationRecordsProposal as OsmosisGammV1beta1UpdateMigrationRecordsProposal, + PoolRecordWithCFMMLink as OsmosisGammV1beta1PoolRecordWithCFMMLink, + CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal as OsmosisGammV1beta1CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal, + SetScalingFactorControllerProposal as OsmosisGammV1beta1SetScalingFactorControllerProposal, } from "./osmosis/gamm/v1beta1/gov_pb.js"; export { Params as OsmosisGammV1beta1Params, @@ -1106,6 +1138,445 @@ export { Options as OsmosisAccumV1beta1Options, Record as OsmosisAccumV1beta1Record, } from "./osmosis/accum/v1beta1/accum_pb.js"; +export { + ClientState as IbcLightclientsTendermintV1ClientState, + ConsensusState as IbcLightclientsTendermintV1ConsensusState, + Misbehaviour as IbcLightclientsTendermintV1Misbehaviour, + Header as IbcLightclientsTendermintV1Header, + Fraction as IbcLightclientsTendermintV1Fraction, +} from "./ibc/lightclients/tendermint/v1/tendermint_pb.js"; +export { + ClientState as IbcLightclientsSolomachineV3ClientState, + ConsensusState as IbcLightclientsSolomachineV3ConsensusState, + Header as IbcLightclientsSolomachineV3Header, + Misbehaviour as IbcLightclientsSolomachineV3Misbehaviour, + SignatureAndData as IbcLightclientsSolomachineV3SignatureAndData, + TimestampedSignatureData as IbcLightclientsSolomachineV3TimestampedSignatureData, + SignBytes as IbcLightclientsSolomachineV3SignBytes, + HeaderData as IbcLightclientsSolomachineV3HeaderData, +} from "./ibc/lightclients/solomachine/v3/solomachine_pb.js"; +export { + DataType as IbcLightclientsSolomachineV2DataType, + ClientState as IbcLightclientsSolomachineV2ClientState, + ConsensusState as IbcLightclientsSolomachineV2ConsensusState, + Header as IbcLightclientsSolomachineV2Header, + Misbehaviour as IbcLightclientsSolomachineV2Misbehaviour, + SignatureAndData as IbcLightclientsSolomachineV2SignatureAndData, + TimestampedSignatureData as IbcLightclientsSolomachineV2TimestampedSignatureData, + SignBytes as IbcLightclientsSolomachineV2SignBytes, + HeaderData as IbcLightclientsSolomachineV2HeaderData, + ClientStateData as IbcLightclientsSolomachineV2ClientStateData, + ConsensusStateData as IbcLightclientsSolomachineV2ConsensusStateData, + ConnectionStateData as IbcLightclientsSolomachineV2ConnectionStateData, + ChannelStateData as IbcLightclientsSolomachineV2ChannelStateData, + PacketCommitmentData as IbcLightclientsSolomachineV2PacketCommitmentData, + PacketAcknowledgementData as IbcLightclientsSolomachineV2PacketAcknowledgementData, + PacketReceiptAbsenceData as IbcLightclientsSolomachineV2PacketReceiptAbsenceData, + NextSequenceRecvData as IbcLightclientsSolomachineV2NextSequenceRecvData, +} from "./ibc/lightclients/solomachine/v2/solomachine_pb.js"; +export { + ClientState as IbcLightclientsLocalhostV2ClientState, +} from "./ibc/lightclients/localhost/v2/localhost_pb.js"; +export { + GenesisState as IbcCoreTypesV1GenesisState, +} from "./ibc/core/types/v1/genesis_pb.js"; +export { + MsgConnectionOpenInit as IbcCoreConnectionV1MsgConnectionOpenInit, + MsgConnectionOpenInitResponse as IbcCoreConnectionV1MsgConnectionOpenInitResponse, + MsgConnectionOpenTry as IbcCoreConnectionV1MsgConnectionOpenTry, + MsgConnectionOpenTryResponse as IbcCoreConnectionV1MsgConnectionOpenTryResponse, + MsgConnectionOpenAck as IbcCoreConnectionV1MsgConnectionOpenAck, + MsgConnectionOpenAckResponse as IbcCoreConnectionV1MsgConnectionOpenAckResponse, + MsgConnectionOpenConfirm as IbcCoreConnectionV1MsgConnectionOpenConfirm, + MsgConnectionOpenConfirmResponse as IbcCoreConnectionV1MsgConnectionOpenConfirmResponse, + MsgUpdateParams as IbcCoreConnectionV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcCoreConnectionV1MsgUpdateParamsResponse, +} from "./ibc/core/connection/v1/tx_pb.js"; +export { + MsgConnectionOpenInitService as IbcCoreConnectionV1MsgConnectionOpenInitService, + MsgConnectionOpenTryService as IbcCoreConnectionV1MsgConnectionOpenTryService, + MsgConnectionOpenAckService as IbcCoreConnectionV1MsgConnectionOpenAckService, + MsgConnectionOpenConfirmService as IbcCoreConnectionV1MsgConnectionOpenConfirmService, + MsgUpdateConnectionParamsService as IbcCoreConnectionV1MsgUpdateConnectionParamsService, +} from "./ibc/core/connection/v1/tx_cosmes.js"; +export { + QueryConnectionRequest as IbcCoreConnectionV1QueryConnectionRequest, + QueryConnectionResponse as IbcCoreConnectionV1QueryConnectionResponse, + QueryConnectionsRequest as IbcCoreConnectionV1QueryConnectionsRequest, + QueryConnectionsResponse as IbcCoreConnectionV1QueryConnectionsResponse, + QueryClientConnectionsRequest as IbcCoreConnectionV1QueryClientConnectionsRequest, + QueryClientConnectionsResponse as IbcCoreConnectionV1QueryClientConnectionsResponse, + QueryConnectionClientStateRequest as IbcCoreConnectionV1QueryConnectionClientStateRequest, + QueryConnectionClientStateResponse as IbcCoreConnectionV1QueryConnectionClientStateResponse, + QueryConnectionConsensusStateRequest as IbcCoreConnectionV1QueryConnectionConsensusStateRequest, + QueryConnectionConsensusStateResponse as IbcCoreConnectionV1QueryConnectionConsensusStateResponse, + QueryConnectionParamsRequest as IbcCoreConnectionV1QueryConnectionParamsRequest, + QueryConnectionParamsResponse as IbcCoreConnectionV1QueryConnectionParamsResponse, +} from "./ibc/core/connection/v1/query_pb.js"; +export { + QueryConnectionService as IbcCoreConnectionV1QueryConnectionService, + QueryConnectionsService as IbcCoreConnectionV1QueryConnectionsService, + QueryClientConnectionsService as IbcCoreConnectionV1QueryClientConnectionsService, + QueryConnectionClientStateService as IbcCoreConnectionV1QueryConnectionClientStateService, + QueryConnectionConsensusStateService as IbcCoreConnectionV1QueryConnectionConsensusStateService, + QueryConnectionParamsService as IbcCoreConnectionV1QueryConnectionParamsService, +} from "./ibc/core/connection/v1/query_cosmes.js"; +export { + GenesisState as IbcCoreConnectionV1GenesisState, +} from "./ibc/core/connection/v1/genesis_pb.js"; +export { + State as IbcCoreConnectionV1State, + ConnectionEnd as IbcCoreConnectionV1ConnectionEnd, + IdentifiedConnection as IbcCoreConnectionV1IdentifiedConnection, + Counterparty as IbcCoreConnectionV1Counterparty, + ClientPaths as IbcCoreConnectionV1ClientPaths, + ConnectionPaths as IbcCoreConnectionV1ConnectionPaths, + Version as IbcCoreConnectionV1Version, + Params as IbcCoreConnectionV1Params, +} from "./ibc/core/connection/v1/connection_pb.js"; +export { + MerkleRoot as IbcCoreCommitmentV1MerkleRoot, + MerklePrefix as IbcCoreCommitmentV1MerklePrefix, + MerklePath as IbcCoreCommitmentV1MerklePath, + MerkleProof as IbcCoreCommitmentV1MerkleProof, +} from "./ibc/core/commitment/v1/commitment_pb.js"; +export { + MsgCreateClient as IbcCoreClientV1MsgCreateClient, + MsgCreateClientResponse as IbcCoreClientV1MsgCreateClientResponse, + MsgUpdateClient as IbcCoreClientV1MsgUpdateClient, + MsgUpdateClientResponse as IbcCoreClientV1MsgUpdateClientResponse, + MsgUpgradeClient as IbcCoreClientV1MsgUpgradeClient, + MsgUpgradeClientResponse as IbcCoreClientV1MsgUpgradeClientResponse, + MsgSubmitMisbehaviour as IbcCoreClientV1MsgSubmitMisbehaviour, + MsgSubmitMisbehaviourResponse as IbcCoreClientV1MsgSubmitMisbehaviourResponse, + MsgUpdateParams as IbcCoreClientV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcCoreClientV1MsgUpdateParamsResponse, +} from "./ibc/core/client/v1/tx_pb.js"; +export { + MsgCreateClientService as IbcCoreClientV1MsgCreateClientService, + MsgUpdateClientService as IbcCoreClientV1MsgUpdateClientService, + MsgUpgradeClientService as IbcCoreClientV1MsgUpgradeClientService, + MsgSubmitMisbehaviourService as IbcCoreClientV1MsgSubmitMisbehaviourService, + MsgUpdateClientParamsService as IbcCoreClientV1MsgUpdateClientParamsService, +} from "./ibc/core/client/v1/tx_cosmes.js"; +export { + QueryClientStateRequest as IbcCoreClientV1QueryClientStateRequest, + QueryClientStateResponse as IbcCoreClientV1QueryClientStateResponse, + QueryClientStatesRequest as IbcCoreClientV1QueryClientStatesRequest, + QueryClientStatesResponse as IbcCoreClientV1QueryClientStatesResponse, + QueryConsensusStateRequest as IbcCoreClientV1QueryConsensusStateRequest, + QueryConsensusStateResponse as IbcCoreClientV1QueryConsensusStateResponse, + QueryConsensusStatesRequest as IbcCoreClientV1QueryConsensusStatesRequest, + QueryConsensusStatesResponse as IbcCoreClientV1QueryConsensusStatesResponse, + QueryConsensusStateHeightsRequest as IbcCoreClientV1QueryConsensusStateHeightsRequest, + QueryConsensusStateHeightsResponse as IbcCoreClientV1QueryConsensusStateHeightsResponse, + QueryClientStatusRequest as IbcCoreClientV1QueryClientStatusRequest, + QueryClientStatusResponse as IbcCoreClientV1QueryClientStatusResponse, + QueryClientParamsRequest as IbcCoreClientV1QueryClientParamsRequest, + QueryClientParamsResponse as IbcCoreClientV1QueryClientParamsResponse, + QueryUpgradedClientStateRequest as IbcCoreClientV1QueryUpgradedClientStateRequest, + QueryUpgradedClientStateResponse as IbcCoreClientV1QueryUpgradedClientStateResponse, + QueryUpgradedConsensusStateRequest as IbcCoreClientV1QueryUpgradedConsensusStateRequest, + QueryUpgradedConsensusStateResponse as IbcCoreClientV1QueryUpgradedConsensusStateResponse, +} from "./ibc/core/client/v1/query_pb.js"; +export { + QueryClientStateService as IbcCoreClientV1QueryClientStateService, + QueryClientStatesService as IbcCoreClientV1QueryClientStatesService, + QueryConsensusStateService as IbcCoreClientV1QueryConsensusStateService, + QueryConsensusStatesService as IbcCoreClientV1QueryConsensusStatesService, + QueryConsensusStateHeightsService as IbcCoreClientV1QueryConsensusStateHeightsService, + QueryClientStatusService as IbcCoreClientV1QueryClientStatusService, + QueryClientParamsService as IbcCoreClientV1QueryClientParamsService, + QueryUpgradedClientStateService as IbcCoreClientV1QueryUpgradedClientStateService, + QueryUpgradedConsensusStateService as IbcCoreClientV1QueryUpgradedConsensusStateService, +} from "./ibc/core/client/v1/query_cosmes.js"; +export { + GenesisState as IbcCoreClientV1GenesisState, + GenesisMetadata as IbcCoreClientV1GenesisMetadata, + IdentifiedGenesisMetadata as IbcCoreClientV1IdentifiedGenesisMetadata, +} from "./ibc/core/client/v1/genesis_pb.js"; +export { + IdentifiedClientState as IbcCoreClientV1IdentifiedClientState, + ConsensusStateWithHeight as IbcCoreClientV1ConsensusStateWithHeight, + ClientConsensusStates as IbcCoreClientV1ClientConsensusStates, + ClientUpdateProposal as IbcCoreClientV1ClientUpdateProposal, + UpgradeProposal as IbcCoreClientV1UpgradeProposal, + Height as IbcCoreClientV1Height, + Params as IbcCoreClientV1Params, +} from "./ibc/core/client/v1/client_pb.js"; +export { + ResponseResultType as IbcCoreChannelV1ResponseResultType, + MsgChannelOpenInit as IbcCoreChannelV1MsgChannelOpenInit, + MsgChannelOpenInitResponse as IbcCoreChannelV1MsgChannelOpenInitResponse, + MsgChannelOpenTry as IbcCoreChannelV1MsgChannelOpenTry, + MsgChannelOpenTryResponse as IbcCoreChannelV1MsgChannelOpenTryResponse, + MsgChannelOpenAck as IbcCoreChannelV1MsgChannelOpenAck, + MsgChannelOpenAckResponse as IbcCoreChannelV1MsgChannelOpenAckResponse, + MsgChannelOpenConfirm as IbcCoreChannelV1MsgChannelOpenConfirm, + MsgChannelOpenConfirmResponse as IbcCoreChannelV1MsgChannelOpenConfirmResponse, + MsgChannelCloseInit as IbcCoreChannelV1MsgChannelCloseInit, + MsgChannelCloseInitResponse as IbcCoreChannelV1MsgChannelCloseInitResponse, + MsgChannelCloseConfirm as IbcCoreChannelV1MsgChannelCloseConfirm, + MsgChannelCloseConfirmResponse as IbcCoreChannelV1MsgChannelCloseConfirmResponse, + MsgRecvPacket as IbcCoreChannelV1MsgRecvPacket, + MsgRecvPacketResponse as IbcCoreChannelV1MsgRecvPacketResponse, + MsgTimeout as IbcCoreChannelV1MsgTimeout, + MsgTimeoutResponse as IbcCoreChannelV1MsgTimeoutResponse, + MsgTimeoutOnClose as IbcCoreChannelV1MsgTimeoutOnClose, + MsgTimeoutOnCloseResponse as IbcCoreChannelV1MsgTimeoutOnCloseResponse, + MsgAcknowledgement as IbcCoreChannelV1MsgAcknowledgement, + MsgAcknowledgementResponse as IbcCoreChannelV1MsgAcknowledgementResponse, +} from "./ibc/core/channel/v1/tx_pb.js"; +export { + MsgChannelOpenInitService as IbcCoreChannelV1MsgChannelOpenInitService, + MsgChannelOpenTryService as IbcCoreChannelV1MsgChannelOpenTryService, + MsgChannelOpenAckService as IbcCoreChannelV1MsgChannelOpenAckService, + MsgChannelOpenConfirmService as IbcCoreChannelV1MsgChannelOpenConfirmService, + MsgChannelCloseInitService as IbcCoreChannelV1MsgChannelCloseInitService, + MsgChannelCloseConfirmService as IbcCoreChannelV1MsgChannelCloseConfirmService, + MsgRecvPacketService as IbcCoreChannelV1MsgRecvPacketService, + MsgTimeoutService as IbcCoreChannelV1MsgTimeoutService, + MsgTimeoutOnCloseService as IbcCoreChannelV1MsgTimeoutOnCloseService, + MsgAcknowledgementService as IbcCoreChannelV1MsgAcknowledgementService, +} from "./ibc/core/channel/v1/tx_cosmes.js"; +export { + QueryChannelRequest as IbcCoreChannelV1QueryChannelRequest, + QueryChannelResponse as IbcCoreChannelV1QueryChannelResponse, + QueryChannelsRequest as IbcCoreChannelV1QueryChannelsRequest, + QueryChannelsResponse as IbcCoreChannelV1QueryChannelsResponse, + QueryConnectionChannelsRequest as IbcCoreChannelV1QueryConnectionChannelsRequest, + QueryConnectionChannelsResponse as IbcCoreChannelV1QueryConnectionChannelsResponse, + QueryChannelClientStateRequest as IbcCoreChannelV1QueryChannelClientStateRequest, + QueryChannelClientStateResponse as IbcCoreChannelV1QueryChannelClientStateResponse, + QueryChannelConsensusStateRequest as IbcCoreChannelV1QueryChannelConsensusStateRequest, + QueryChannelConsensusStateResponse as IbcCoreChannelV1QueryChannelConsensusStateResponse, + QueryPacketCommitmentRequest as IbcCoreChannelV1QueryPacketCommitmentRequest, + QueryPacketCommitmentResponse as IbcCoreChannelV1QueryPacketCommitmentResponse, + QueryPacketCommitmentsRequest as IbcCoreChannelV1QueryPacketCommitmentsRequest, + QueryPacketCommitmentsResponse as IbcCoreChannelV1QueryPacketCommitmentsResponse, + QueryPacketReceiptRequest as IbcCoreChannelV1QueryPacketReceiptRequest, + QueryPacketReceiptResponse as IbcCoreChannelV1QueryPacketReceiptResponse, + QueryPacketAcknowledgementRequest as IbcCoreChannelV1QueryPacketAcknowledgementRequest, + QueryPacketAcknowledgementResponse as IbcCoreChannelV1QueryPacketAcknowledgementResponse, + QueryPacketAcknowledgementsRequest as IbcCoreChannelV1QueryPacketAcknowledgementsRequest, + QueryPacketAcknowledgementsResponse as IbcCoreChannelV1QueryPacketAcknowledgementsResponse, + QueryUnreceivedPacketsRequest as IbcCoreChannelV1QueryUnreceivedPacketsRequest, + QueryUnreceivedPacketsResponse as IbcCoreChannelV1QueryUnreceivedPacketsResponse, + QueryUnreceivedAcksRequest as IbcCoreChannelV1QueryUnreceivedAcksRequest, + QueryUnreceivedAcksResponse as IbcCoreChannelV1QueryUnreceivedAcksResponse, + QueryNextSequenceReceiveRequest as IbcCoreChannelV1QueryNextSequenceReceiveRequest, + QueryNextSequenceReceiveResponse as IbcCoreChannelV1QueryNextSequenceReceiveResponse, + QueryNextSequenceSendRequest as IbcCoreChannelV1QueryNextSequenceSendRequest, + QueryNextSequenceSendResponse as IbcCoreChannelV1QueryNextSequenceSendResponse, +} from "./ibc/core/channel/v1/query_pb.js"; +export { + QueryChannelService as IbcCoreChannelV1QueryChannelService, + QueryChannelsService as IbcCoreChannelV1QueryChannelsService, + QueryConnectionChannelsService as IbcCoreChannelV1QueryConnectionChannelsService, + QueryChannelClientStateService as IbcCoreChannelV1QueryChannelClientStateService, + QueryChannelConsensusStateService as IbcCoreChannelV1QueryChannelConsensusStateService, + QueryPacketCommitmentService as IbcCoreChannelV1QueryPacketCommitmentService, + QueryPacketCommitmentsService as IbcCoreChannelV1QueryPacketCommitmentsService, + QueryPacketReceiptService as IbcCoreChannelV1QueryPacketReceiptService, + QueryPacketAcknowledgementService as IbcCoreChannelV1QueryPacketAcknowledgementService, + QueryPacketAcknowledgementsService as IbcCoreChannelV1QueryPacketAcknowledgementsService, + QueryUnreceivedPacketsService as IbcCoreChannelV1QueryUnreceivedPacketsService, + QueryUnreceivedAcksService as IbcCoreChannelV1QueryUnreceivedAcksService, + QueryNextSequenceReceiveService as IbcCoreChannelV1QueryNextSequenceReceiveService, + QueryNextSequenceSendService as IbcCoreChannelV1QueryNextSequenceSendService, +} from "./ibc/core/channel/v1/query_cosmes.js"; +export { + GenesisState as IbcCoreChannelV1GenesisState, + PacketSequence as IbcCoreChannelV1PacketSequence, +} from "./ibc/core/channel/v1/genesis_pb.js"; +export { + State as IbcCoreChannelV1State, + Order as IbcCoreChannelV1Order, + Channel as IbcCoreChannelV1Channel, + IdentifiedChannel as IbcCoreChannelV1IdentifiedChannel, + Counterparty as IbcCoreChannelV1Counterparty, + Packet as IbcCoreChannelV1Packet, + PacketState as IbcCoreChannelV1PacketState, + PacketId as IbcCoreChannelV1PacketId, + Acknowledgement as IbcCoreChannelV1Acknowledgement, + Timeout as IbcCoreChannelV1Timeout, +} from "./ibc/core/channel/v1/channel_pb.js"; +export { + FungibleTokenPacketData as IbcApplicationsTransferV2FungibleTokenPacketData, +} from "./ibc/applications/transfer/v2/packet_pb.js"; +export { + MsgTransfer as IbcApplicationsTransferV1MsgTransfer, + MsgTransferResponse as IbcApplicationsTransferV1MsgTransferResponse, + MsgUpdateParams as IbcApplicationsTransferV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcApplicationsTransferV1MsgUpdateParamsResponse, +} from "./ibc/applications/transfer/v1/tx_pb.js"; +export { + MsgTransferService as IbcApplicationsTransferV1MsgTransferService, + MsgUpdateParamsService as IbcApplicationsTransferV1MsgUpdateParamsService, +} from "./ibc/applications/transfer/v1/tx_cosmes.js"; +export { + DenomTrace as IbcApplicationsTransferV1DenomTrace, + Params as IbcApplicationsTransferV1Params, +} from "./ibc/applications/transfer/v1/transfer_pb.js"; +export { + QueryDenomTraceRequest as IbcApplicationsTransferV1QueryDenomTraceRequest, + QueryDenomTraceResponse as IbcApplicationsTransferV1QueryDenomTraceResponse, + QueryDenomTracesRequest as IbcApplicationsTransferV1QueryDenomTracesRequest, + QueryDenomTracesResponse as IbcApplicationsTransferV1QueryDenomTracesResponse, + QueryParamsRequest as IbcApplicationsTransferV1QueryParamsRequest, + QueryParamsResponse as IbcApplicationsTransferV1QueryParamsResponse, + QueryDenomHashRequest as IbcApplicationsTransferV1QueryDenomHashRequest, + QueryDenomHashResponse as IbcApplicationsTransferV1QueryDenomHashResponse, + QueryEscrowAddressRequest as IbcApplicationsTransferV1QueryEscrowAddressRequest, + QueryEscrowAddressResponse as IbcApplicationsTransferV1QueryEscrowAddressResponse, + QueryTotalEscrowForDenomRequest as IbcApplicationsTransferV1QueryTotalEscrowForDenomRequest, + QueryTotalEscrowForDenomResponse as IbcApplicationsTransferV1QueryTotalEscrowForDenomResponse, +} from "./ibc/applications/transfer/v1/query_pb.js"; +export { + QueryDenomTraceService as IbcApplicationsTransferV1QueryDenomTraceService, + QueryDenomTracesService as IbcApplicationsTransferV1QueryDenomTracesService, + QueryParamsService as IbcApplicationsTransferV1QueryParamsService, + QueryDenomHashService as IbcApplicationsTransferV1QueryDenomHashService, + QueryEscrowAddressService as IbcApplicationsTransferV1QueryEscrowAddressService, + QueryTotalEscrowForDenomService as IbcApplicationsTransferV1QueryTotalEscrowForDenomService, +} from "./ibc/applications/transfer/v1/query_cosmes.js"; +export { + GenesisState as IbcApplicationsTransferV1GenesisState, +} from "./ibc/applications/transfer/v1/genesis_pb.js"; +export { + Allocation as IbcApplicationsTransferV1Allocation, + TransferAuthorization as IbcApplicationsTransferV1TransferAuthorization, +} from "./ibc/applications/transfer/v1/authz_pb.js"; +export { + Type as IbcApplicationsInterchain_accountsV1Type, + InterchainAccountPacketData as IbcApplicationsInterchain_accountsV1InterchainAccountPacketData, + CosmosTx as IbcApplicationsInterchain_accountsV1CosmosTx, +} from "./ibc/applications/interchain_accounts/v1/packet_pb.js"; +export { + Metadata as IbcApplicationsInterchain_accountsV1Metadata, +} from "./ibc/applications/interchain_accounts/v1/metadata_pb.js"; +export { + InterchainAccount as IbcApplicationsInterchain_accountsV1InterchainAccount, +} from "./ibc/applications/interchain_accounts/v1/account_pb.js"; +export { + MsgUpdateParams as IbcApplicationsInterchain_accountsHostV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcApplicationsInterchain_accountsHostV1MsgUpdateParamsResponse, +} from "./ibc/applications/interchain_accounts/host/v1/tx_pb.js"; +export { + MsgUpdateParamsService as IbcApplicationsInterchain_accountsHostV1MsgUpdateParamsService, +} from "./ibc/applications/interchain_accounts/host/v1/tx_cosmes.js"; +export { + QueryParamsRequest as IbcApplicationsInterchain_accountsHostV1QueryParamsRequest, + QueryParamsResponse as IbcApplicationsInterchain_accountsHostV1QueryParamsResponse, +} from "./ibc/applications/interchain_accounts/host/v1/query_pb.js"; +export { + QueryParamsService as IbcApplicationsInterchain_accountsHostV1QueryParamsService, +} from "./ibc/applications/interchain_accounts/host/v1/query_cosmes.js"; +export { + Params as IbcApplicationsInterchain_accountsHostV1Params, +} from "./ibc/applications/interchain_accounts/host/v1/host_pb.js"; +export { + GenesisState as IbcApplicationsInterchain_accountsGenesisV1GenesisState, + ControllerGenesisState as IbcApplicationsInterchain_accountsGenesisV1ControllerGenesisState, + HostGenesisState as IbcApplicationsInterchain_accountsGenesisV1HostGenesisState, + ActiveChannel as IbcApplicationsInterchain_accountsGenesisV1ActiveChannel, + RegisteredInterchainAccount as IbcApplicationsInterchain_accountsGenesisV1RegisteredInterchainAccount, +} from "./ibc/applications/interchain_accounts/genesis/v1/genesis_pb.js"; +export { + MsgRegisterInterchainAccount as IbcApplicationsInterchain_accountsControllerV1MsgRegisterInterchainAccount, + MsgRegisterInterchainAccountResponse as IbcApplicationsInterchain_accountsControllerV1MsgRegisterInterchainAccountResponse, + MsgSendTx as IbcApplicationsInterchain_accountsControllerV1MsgSendTx, + MsgSendTxResponse as IbcApplicationsInterchain_accountsControllerV1MsgSendTxResponse, + MsgUpdateParams as IbcApplicationsInterchain_accountsControllerV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcApplicationsInterchain_accountsControllerV1MsgUpdateParamsResponse, +} from "./ibc/applications/interchain_accounts/controller/v1/tx_pb.js"; +export { + MsgRegisterInterchainAccountService as IbcApplicationsInterchain_accountsControllerV1MsgRegisterInterchainAccountService, + MsgSendTxService as IbcApplicationsInterchain_accountsControllerV1MsgSendTxService, + MsgUpdateParamsService as IbcApplicationsInterchain_accountsControllerV1MsgUpdateParamsService, +} from "./ibc/applications/interchain_accounts/controller/v1/tx_cosmes.js"; +export { + QueryInterchainAccountRequest as IbcApplicationsInterchain_accountsControllerV1QueryInterchainAccountRequest, + QueryInterchainAccountResponse as IbcApplicationsInterchain_accountsControllerV1QueryInterchainAccountResponse, + QueryParamsRequest as IbcApplicationsInterchain_accountsControllerV1QueryParamsRequest, + QueryParamsResponse as IbcApplicationsInterchain_accountsControllerV1QueryParamsResponse, +} from "./ibc/applications/interchain_accounts/controller/v1/query_pb.js"; +export { + QueryInterchainAccountService as IbcApplicationsInterchain_accountsControllerV1QueryInterchainAccountService, + QueryParamsService as IbcApplicationsInterchain_accountsControllerV1QueryParamsService, +} from "./ibc/applications/interchain_accounts/controller/v1/query_cosmes.js"; +export { + Params as IbcApplicationsInterchain_accountsControllerV1Params, +} from "./ibc/applications/interchain_accounts/controller/v1/controller_pb.js"; +export { + MsgRegisterPayee as IbcApplicationsFeeV1MsgRegisterPayee, + MsgRegisterPayeeResponse as IbcApplicationsFeeV1MsgRegisterPayeeResponse, + MsgRegisterCounterpartyPayee as IbcApplicationsFeeV1MsgRegisterCounterpartyPayee, + MsgRegisterCounterpartyPayeeResponse as IbcApplicationsFeeV1MsgRegisterCounterpartyPayeeResponse, + MsgPayPacketFee as IbcApplicationsFeeV1MsgPayPacketFee, + MsgPayPacketFeeResponse as IbcApplicationsFeeV1MsgPayPacketFeeResponse, + MsgPayPacketFeeAsync as IbcApplicationsFeeV1MsgPayPacketFeeAsync, + MsgPayPacketFeeAsyncResponse as IbcApplicationsFeeV1MsgPayPacketFeeAsyncResponse, +} from "./ibc/applications/fee/v1/tx_pb.js"; +export { + MsgRegisterPayeeService as IbcApplicationsFeeV1MsgRegisterPayeeService, + MsgRegisterCounterpartyPayeeService as IbcApplicationsFeeV1MsgRegisterCounterpartyPayeeService, + MsgPayPacketFeeService as IbcApplicationsFeeV1MsgPayPacketFeeService, + MsgPayPacketFeeAsyncService as IbcApplicationsFeeV1MsgPayPacketFeeAsyncService, +} from "./ibc/applications/fee/v1/tx_cosmes.js"; +export { + QueryIncentivizedPacketsRequest as IbcApplicationsFeeV1QueryIncentivizedPacketsRequest, + QueryIncentivizedPacketsResponse as IbcApplicationsFeeV1QueryIncentivizedPacketsResponse, + QueryIncentivizedPacketRequest as IbcApplicationsFeeV1QueryIncentivizedPacketRequest, + QueryIncentivizedPacketResponse as IbcApplicationsFeeV1QueryIncentivizedPacketResponse, + QueryIncentivizedPacketsForChannelRequest as IbcApplicationsFeeV1QueryIncentivizedPacketsForChannelRequest, + QueryIncentivizedPacketsForChannelResponse as IbcApplicationsFeeV1QueryIncentivizedPacketsForChannelResponse, + QueryTotalRecvFeesRequest as IbcApplicationsFeeV1QueryTotalRecvFeesRequest, + QueryTotalRecvFeesResponse as IbcApplicationsFeeV1QueryTotalRecvFeesResponse, + QueryTotalAckFeesRequest as IbcApplicationsFeeV1QueryTotalAckFeesRequest, + QueryTotalAckFeesResponse as IbcApplicationsFeeV1QueryTotalAckFeesResponse, + QueryTotalTimeoutFeesRequest as IbcApplicationsFeeV1QueryTotalTimeoutFeesRequest, + QueryTotalTimeoutFeesResponse as IbcApplicationsFeeV1QueryTotalTimeoutFeesResponse, + QueryPayeeRequest as IbcApplicationsFeeV1QueryPayeeRequest, + QueryPayeeResponse as IbcApplicationsFeeV1QueryPayeeResponse, + QueryCounterpartyPayeeRequest as IbcApplicationsFeeV1QueryCounterpartyPayeeRequest, + QueryCounterpartyPayeeResponse as IbcApplicationsFeeV1QueryCounterpartyPayeeResponse, + QueryFeeEnabledChannelsRequest as IbcApplicationsFeeV1QueryFeeEnabledChannelsRequest, + QueryFeeEnabledChannelsResponse as IbcApplicationsFeeV1QueryFeeEnabledChannelsResponse, + QueryFeeEnabledChannelRequest as IbcApplicationsFeeV1QueryFeeEnabledChannelRequest, + QueryFeeEnabledChannelResponse as IbcApplicationsFeeV1QueryFeeEnabledChannelResponse, +} from "./ibc/applications/fee/v1/query_pb.js"; +export { + QueryIncentivizedPacketsService as IbcApplicationsFeeV1QueryIncentivizedPacketsService, + QueryIncentivizedPacketService as IbcApplicationsFeeV1QueryIncentivizedPacketService, + QueryIncentivizedPacketsForChannelService as IbcApplicationsFeeV1QueryIncentivizedPacketsForChannelService, + QueryTotalRecvFeesService as IbcApplicationsFeeV1QueryTotalRecvFeesService, + QueryTotalAckFeesService as IbcApplicationsFeeV1QueryTotalAckFeesService, + QueryTotalTimeoutFeesService as IbcApplicationsFeeV1QueryTotalTimeoutFeesService, + QueryPayeeService as IbcApplicationsFeeV1QueryPayeeService, + QueryCounterpartyPayeeService as IbcApplicationsFeeV1QueryCounterpartyPayeeService, + QueryFeeEnabledChannelsService as IbcApplicationsFeeV1QueryFeeEnabledChannelsService, + QueryFeeEnabledChannelService as IbcApplicationsFeeV1QueryFeeEnabledChannelService, +} from "./ibc/applications/fee/v1/query_cosmes.js"; +export { + Metadata as IbcApplicationsFeeV1Metadata, +} from "./ibc/applications/fee/v1/metadata_pb.js"; +export { + GenesisState as IbcApplicationsFeeV1GenesisState, + FeeEnabledChannel as IbcApplicationsFeeV1FeeEnabledChannel, + RegisteredPayee as IbcApplicationsFeeV1RegisteredPayee, + RegisteredCounterpartyPayee as IbcApplicationsFeeV1RegisteredCounterpartyPayee, + ForwardRelayerAddress as IbcApplicationsFeeV1ForwardRelayerAddress, +} from "./ibc/applications/fee/v1/genesis_pb.js"; +export { + Fee as IbcApplicationsFeeV1Fee, + PacketFee as IbcApplicationsFeeV1PacketFee, + PacketFees as IbcApplicationsFeeV1PacketFees, + IdentifiedPacketFees as IbcApplicationsFeeV1IdentifiedPacketFees, +} from "./ibc/applications/fee/v1/fee_pb.js"; +export { + IncentivizedAcknowledgement as IbcApplicationsFeeV1IncentivizedAcknowledgement, +} from "./ibc/applications/fee/v1/ack_pb.js"; export { AccessType as CosmwasmWasmV1AccessType, ContractCodeHistoryOperationType as CosmwasmWasmV1ContractCodeHistoryOperationType, @@ -1145,6 +1616,10 @@ export { MsgUnpinCodesResponse as CosmwasmWasmV1MsgUnpinCodesResponse, MsgStoreAndInstantiateContract as CosmwasmWasmV1MsgStoreAndInstantiateContract, MsgStoreAndInstantiateContractResponse as CosmwasmWasmV1MsgStoreAndInstantiateContractResponse, + MsgAddCodeUploadParamsAddresses as CosmwasmWasmV1MsgAddCodeUploadParamsAddresses, + MsgAddCodeUploadParamsAddressesResponse as CosmwasmWasmV1MsgAddCodeUploadParamsAddressesResponse, + MsgRemoveCodeUploadParamsAddresses as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddresses, + MsgRemoveCodeUploadParamsAddressesResponse as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddressesResponse, } from "./cosmwasm/wasm/v1/tx_pb.js"; export { MsgStoreCodeService as CosmwasmWasmV1MsgStoreCodeService, @@ -1160,6 +1635,8 @@ export { MsgPinCodesService as CosmwasmWasmV1MsgPinCodesService, MsgUnpinCodesService as CosmwasmWasmV1MsgUnpinCodesService, MsgStoreAndInstantiateContractService as CosmwasmWasmV1MsgStoreAndInstantiateContractService, + MsgRemoveCodeUploadParamsAddressesService as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddressesService, + MsgAddCodeUploadParamsAddressesService as CosmwasmWasmV1MsgAddCodeUploadParamsAddressesService, } from "./cosmwasm/wasm/v1/tx_cosmes.js"; export { QueryContractInfoRequest as CosmwasmWasmV1QueryContractInfoRequest, @@ -2321,6 +2798,8 @@ export { QueryDenomsMetadataResponse as CosmosBankV1beta1QueryDenomsMetadataResponse, QueryDenomMetadataRequest as CosmosBankV1beta1QueryDenomMetadataRequest, QueryDenomMetadataResponse as CosmosBankV1beta1QueryDenomMetadataResponse, + QueryDenomMetadataByQueryStringRequest as CosmosBankV1beta1QueryDenomMetadataByQueryStringRequest, + QueryDenomMetadataByQueryStringResponse as CosmosBankV1beta1QueryDenomMetadataByQueryStringResponse, QueryDenomOwnersRequest as CosmosBankV1beta1QueryDenomOwnersRequest, DenomOwner as CosmosBankV1beta1DenomOwner, QueryDenomOwnersResponse as CosmosBankV1beta1QueryDenomOwnersResponse, @@ -2336,6 +2815,7 @@ export { QuerySupplyOfService as CosmosBankV1beta1QuerySupplyOfService, QueryParamsService as CosmosBankV1beta1QueryParamsService, QueryDenomMetadataService as CosmosBankV1beta1QueryDenomMetadataService, + QueryDenomMetadataByQueryStringService as CosmosBankV1beta1QueryDenomMetadataByQueryStringService, QueryDenomsMetadataService as CosmosBankV1beta1QueryDenomsMetadataService, QueryDenomOwnersService as CosmosBankV1beta1QueryDenomOwnersService, QuerySendEnabledService as CosmosBankV1beta1QuerySendEnabledService, @@ -2490,3 +2970,12 @@ export { Module as CosmosAppRuntimeV1alpha1Module, StoreKeyConfig as CosmosAppRuntimeV1alpha1StoreKeyConfig, } from "./cosmos/app/runtime/v1alpha1/module_pb.js"; +export { + GenesisOwners as CapabilityV1GenesisOwners, + GenesisState as CapabilityV1GenesisState, +} from "./capability/v1/genesis_pb.js"; +export { + Capability as CapabilityV1Capability, + Owner as CapabilityV1Owner, + CapabilityOwners as CapabilityV1CapabilityOwners, +} from "./capability/v1/capability_pb.js"; diff --git a/src/protobufs/osmosis/concentrated-liquidity/gov_pb.ts b/src/protobufs/osmosis/concentrated-liquidity/gov_pb.ts index 56c1f130..e8094f64 100644 --- a/src/protobufs/osmosis/concentrated-liquidity/gov_pb.ts +++ b/src/protobufs/osmosis/concentrated-liquidity/gov_pb.ts @@ -178,11 +178,6 @@ export class PoolRecord extends Message { */ tickSpacing = protoInt64.zero; - /** - * @generated from field: string exponent_at_price_one = 4; - */ - exponentAtPriceOne = ""; - /** * @generated from field: string spread_factor = 5; */ @@ -199,7 +194,6 @@ export class PoolRecord extends Message { { no: 1, name: "denom0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "denom1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "exponent_at_price_one", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "spread_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); diff --git a/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts b/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts index 8eb94b9c..d1031561 100644 --- a/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts +++ b/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts @@ -4,7 +4,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { BalancerToConcentratedPoolLink } from "./shared_pb.js"; /** @@ -120,3 +120,180 @@ export class UpdateMigrationRecordsProposal extends Message { + /** + * @generated from field: string denom0 = 1; + */ + denom0 = ""; + + /** + * @generated from field: string denom1 = 2; + */ + denom1 = ""; + + /** + * @generated from field: uint64 tick_spacing = 3; + */ + tickSpacing = protoInt64.zero; + + /** + * @generated from field: string exponent_at_price_one = 4; + */ + exponentAtPriceOne = ""; + + /** + * @generated from field: string spread_factor = 5; + */ + spreadFactor = ""; + + /** + * @generated from field: uint64 balancer_pool_id = 6; + */ + balancerPoolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.gamm.v1beta1.PoolRecordWithCFMMLink"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "exponent_at_price_one", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "spread_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "balancer_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRecordWithCFMMLink { + return new PoolRecordWithCFMMLink().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRecordWithCFMMLink { + return new PoolRecordWithCFMMLink().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRecordWithCFMMLink { + return new PoolRecordWithCFMMLink().fromJsonString(jsonString, options); + } + + static equals(a: PoolRecordWithCFMMLink | PlainMessage | undefined, b: PoolRecordWithCFMMLink | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRecordWithCFMMLink, a, b); + } +} + +/** + * CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal is a gov Content type + * for creating concentrated liquidity pools and linking it to a CFMM pool. + * + * @generated from message osmosis.gamm.v1beta1.CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal + */ +export class CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated osmosis.gamm.v1beta1.PoolRecordWithCFMMLink pool_records_with_cfmm_link = 3; + */ + poolRecordsWithCfmmLink: PoolRecordWithCFMMLink[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.gamm.v1beta1.CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_records_with_cfmm_link", kind: "message", T: PoolRecordWithCFMMLink, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal { + return new CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal { + return new CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal { + return new CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal().fromJsonString(jsonString, options); + } + + static equals(a: CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal | PlainMessage | undefined, b: CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal, a, b); + } +} + +/** + * SetScalingFactorControllerProposal is a gov Content type for updating the + * scaling factor controller address of a stableswap pool + * + * @generated from message osmosis.gamm.v1beta1.SetScalingFactorControllerProposal + */ +export class SetScalingFactorControllerProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string controller_address = 4; + */ + controllerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.gamm.v1beta1.SetScalingFactorControllerProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "controller_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetScalingFactorControllerProposal { + return new SetScalingFactorControllerProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetScalingFactorControllerProposal { + return new SetScalingFactorControllerProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetScalingFactorControllerProposal { + return new SetScalingFactorControllerProposal().fromJsonString(jsonString, options); + } + + static equals(a: SetScalingFactorControllerProposal | PlainMessage | undefined, b: SetScalingFactorControllerProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(SetScalingFactorControllerProposal, a, b); + } +} + diff --git a/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts index b10696b3..1fb46b4a 100644 --- a/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesResponse, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesResponse, QueryConcentratedPoolIdLinkFromCFMMRequest, QueryConcentratedPoolIdLinkFromCFMMResponse, QueryNumPoolsRequest, QueryNumPoolsResponse, QueryPoolParamsRequest, QueryPoolParamsResponse, QueryPoolRequest, QueryPoolResponse, QueryPoolsRequest, QueryPoolsResponse, QueryPoolsWithFilterRequest, QueryPoolsWithFilterResponse, QueryPoolTypeRequest, QueryPoolTypeResponse, QuerySpotPriceRequest, QuerySpotPriceResponse, QuerySwapExactAmountInRequest, QuerySwapExactAmountInResponse, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutResponse, QueryTotalLiquidityRequest, QueryTotalLiquidityResponse, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityResponse, QueryTotalSharesRequest, QueryTotalSharesResponse } from "./query_pb.js"; +import { QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesResponse, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesResponse, QueryCFMMConcentratedPoolLinksRequest, QueryCFMMConcentratedPoolLinksResponse, QueryConcentratedPoolIdLinkFromCFMMRequest, QueryConcentratedPoolIdLinkFromCFMMResponse, QueryNumPoolsRequest, QueryNumPoolsResponse, QueryPoolParamsRequest, QueryPoolParamsResponse, QueryPoolRequest, QueryPoolResponse, QueryPoolsRequest, QueryPoolsResponse, QueryPoolsWithFilterRequest, QueryPoolsWithFilterResponse, QueryPoolTypeRequest, QueryPoolTypeResponse, QuerySpotPriceRequest, QuerySpotPriceResponse, QuerySwapExactAmountInRequest, QuerySwapExactAmountInResponse, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutResponse, QueryTotalLiquidityRequest, QueryTotalLiquidityResponse, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityResponse, QueryTotalSharesRequest, QueryTotalSharesResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.gamm.v1beta1.Query"; @@ -199,3 +199,16 @@ export const QueryConcentratedPoolIdLinkFromCFMMService = { Response: QueryConcentratedPoolIdLinkFromCFMMResponse, } as const; +/** + * CFMMConcentratedPoolLinks returns migration links between CFMM and + * Concentrated pools. + * + * @generated from rpc osmosis.gamm.v1beta1.Query.CFMMConcentratedPoolLinks + */ +export const QueryCFMMConcentratedPoolLinksService = { + typeName: TYPE_NAME, + method: "CFMMConcentratedPoolLinks", + Request: QueryCFMMConcentratedPoolLinksRequest, + Response: QueryCFMMConcentratedPoolLinksResponse, +} as const; + diff --git a/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts b/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts index 67f5f0b9..75fe3566 100644 --- a/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts @@ -8,6 +8,7 @@ import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { SwapAmountInRoute, SwapAmountOutRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; +import { MigrationRecords } from "./shared_pb.js"; /** * =============================== Pool @@ -1344,3 +1345,73 @@ export class QueryConcentratedPoolIdLinkFromCFMMResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.gamm.v1beta1.QueryCFMMConcentratedPoolLinksRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCFMMConcentratedPoolLinksRequest { + return new QueryCFMMConcentratedPoolLinksRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCFMMConcentratedPoolLinksRequest { + return new QueryCFMMConcentratedPoolLinksRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCFMMConcentratedPoolLinksRequest { + return new QueryCFMMConcentratedPoolLinksRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCFMMConcentratedPoolLinksRequest | PlainMessage | undefined, b: QueryCFMMConcentratedPoolLinksRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCFMMConcentratedPoolLinksRequest, a, b); + } +} + +/** + * @generated from message osmosis.gamm.v1beta1.QueryCFMMConcentratedPoolLinksResponse + */ +export class QueryCFMMConcentratedPoolLinksResponse extends Message { + /** + * @generated from field: osmosis.gamm.v1beta1.MigrationRecords migration_records = 1; + */ + migrationRecords?: MigrationRecords; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.gamm.v1beta1.QueryCFMMConcentratedPoolLinksResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "migration_records", kind: "message", T: MigrationRecords }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCFMMConcentratedPoolLinksResponse { + return new QueryCFMMConcentratedPoolLinksResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCFMMConcentratedPoolLinksResponse { + return new QueryCFMMConcentratedPoolLinksResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCFMMConcentratedPoolLinksResponse { + return new QueryCFMMConcentratedPoolLinksResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCFMMConcentratedPoolLinksResponse | PlainMessage | undefined, b: QueryCFMMConcentratedPoolLinksResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCFMMConcentratedPoolLinksResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/ibc-hooks/genesis_pb.ts b/src/protobufs/osmosis/ibc-hooks/genesis_pb.ts new file mode 100644 index 00000000..cd870454 --- /dev/null +++ b/src/protobufs/osmosis/ibc-hooks/genesis_pb.ts @@ -0,0 +1,46 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/ibc-hooks/genesis.proto (package osmosis.ibchooks, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message osmosis.ibchooks.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: osmosis.ibchooks.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.ibchooks.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/osmosis/ibc-hooks/params_pb.ts b/src/protobufs/osmosis/ibc-hooks/params_pb.ts new file mode 100644 index 00000000..5b2c2429 --- /dev/null +++ b/src/protobufs/osmosis/ibc-hooks/params_pb.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/ibc-hooks/params.proto (package osmosis.ibchooks, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message osmosis.ibchooks.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated string allowed_async_ack_contracts = 1; + */ + allowedAsyncAckContracts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.ibchooks.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allowed_async_ack_contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/osmosis/ibc-hooks/tx_cosmes.ts b/src/protobufs/osmosis/ibc-hooks/tx_cosmes.ts new file mode 100644 index 00000000..9dc2aa7a --- /dev/null +++ b/src/protobufs/osmosis/ibc-hooks/tx_cosmes.ts @@ -0,0 +1,22 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/ibc-hooks/tx.proto (package osmosis.ibchooks, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgEmitIBCAck, MsgEmitIBCAckResponse } from "./tx_pb.js"; + +const TYPE_NAME = "osmosis.ibchooks.Msg"; + +/** + * EmitIBCAck checks the sender can emit the ack and writes the IBC + * acknowledgement + * + * @generated from rpc osmosis.ibchooks.Msg.EmitIBCAck + */ +export const MsgEmitIBCAckService = { + typeName: TYPE_NAME, + method: "EmitIBCAck", + Request: MsgEmitIBCAck, + Response: MsgEmitIBCAckResponse, +} as const; + diff --git a/src/protobufs/osmosis/ibc-hooks/tx_pb.ts b/src/protobufs/osmosis/ibc-hooks/tx_pb.ts new file mode 100644 index 00000000..50c62168 --- /dev/null +++ b/src/protobufs/osmosis/ibc-hooks/tx_pb.ts @@ -0,0 +1,100 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/ibc-hooks/tx.proto (package osmosis.ibchooks, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message osmosis.ibchooks.MsgEmitIBCAck + */ +export class MsgEmitIBCAck extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 packet_sequence = 2; + */ + packetSequence = protoInt64.zero; + + /** + * @generated from field: string channel = 3; + */ + channel = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.ibchooks.MsgEmitIBCAck"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "packet_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEmitIBCAck { + return new MsgEmitIBCAck().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEmitIBCAck { + return new MsgEmitIBCAck().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEmitIBCAck { + return new MsgEmitIBCAck().fromJsonString(jsonString, options); + } + + static equals(a: MsgEmitIBCAck | PlainMessage | undefined, b: MsgEmitIBCAck | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEmitIBCAck, a, b); + } +} + +/** + * @generated from message osmosis.ibchooks.MsgEmitIBCAckResponse + */ +export class MsgEmitIBCAckResponse extends Message { + /** + * @generated from field: string contract_result = 1; + */ + contractResult = ""; + + /** + * @generated from field: string ibc_ack = 2; + */ + ibcAck = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.ibchooks.MsgEmitIBCAckResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ibc_ack", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEmitIBCAckResponse { + return new MsgEmitIBCAckResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEmitIBCAckResponse { + return new MsgEmitIBCAckResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEmitIBCAckResponse { + return new MsgEmitIBCAckResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEmitIBCAckResponse | PlainMessage | undefined, b: MsgEmitIBCAckResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEmitIBCAckResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts index 9364f560..11321fc4 100644 --- a/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { AllPoolsRequest, AllPoolsResponse, EstimateSinglePoolSwapExactAmountInRequest, EstimateSinglePoolSwapExactAmountOutRequest, EstimateSwapExactAmountInRequest, EstimateSwapExactAmountInResponse, EstimateSwapExactAmountOutRequest, EstimateSwapExactAmountOutResponse, NumPoolsRequest, NumPoolsResponse, ParamsRequest, ParamsResponse, PoolRequest, PoolResponse, SpotPriceRequest, SpotPriceResponse, TotalLiquidityRequest, TotalLiquidityResponse, TotalPoolLiquidityRequest, TotalPoolLiquidityResponse } from "./query_pb.js"; +import { AllPoolsRequest, AllPoolsResponse, EstimateSinglePoolSwapExactAmountInRequest, EstimateSinglePoolSwapExactAmountOutRequest, EstimateSwapExactAmountInRequest, EstimateSwapExactAmountInResponse, EstimateSwapExactAmountInWithPrimitiveTypesRequest, EstimateSwapExactAmountOutRequest, EstimateSwapExactAmountOutResponse, EstimateSwapExactAmountOutWithPrimitiveTypesRequest, NumPoolsRequest, NumPoolsResponse, ParamsRequest, ParamsResponse, PoolRequest, PoolResponse, SpotPriceRequest, SpotPriceResponse, TotalLiquidityRequest, TotalLiquidityResponse, TotalPoolLiquidityRequest, TotalPoolLiquidityResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.poolmanager.v1beta1.Query"; @@ -29,6 +29,27 @@ export const QueryEstimateSwapExactAmountInService = { Response: EstimateSwapExactAmountInResponse, } as const; +/** + * EstimateSwapExactAmountInWithPrimitiveTypes is an alternative query for + * EstimateSwapExactAmountIn. Supports query via GRPC-Gateway by using + * primitive types instead of repeated structs. Each index in the + * routes_pool_id field corresponds to the respective routes_token_out_denom + * value, thus they are required to have the same length and are grouped + * together as pairs. + * example usage: + * http://0.0.0.0:1317/osmosis/poolmanager/v1beta1/1/estimate/ + * swap_exact_amount_in_with_primitive_types?token_in=100000stake&routes_token_out_denom=uatom + * &routes_token_out_denom=uion&routes_pool_id=1&routes_pool_id=2 + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSwapExactAmountInWithPrimitiveTypes + */ +export const QueryEstimateSwapExactAmountInWithPrimitiveTypesService = { + typeName: TYPE_NAME, + method: "EstimateSwapExactAmountInWithPrimitiveTypes", + Request: EstimateSwapExactAmountInWithPrimitiveTypesRequest, + Response: EstimateSwapExactAmountInResponse, +} as const; + /** * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSinglePoolSwapExactAmountIn */ @@ -51,6 +72,18 @@ export const QueryEstimateSwapExactAmountOutService = { Response: EstimateSwapExactAmountOutResponse, } as const; +/** + * Estimates swap amount in given out. + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSwapExactAmountOutWithPrimitiveTypes + */ +export const QueryEstimateSwapExactAmountOutWithPrimitiveTypesService = { + typeName: TYPE_NAME, + method: "EstimateSwapExactAmountOutWithPrimitiveTypes", + Request: EstimateSwapExactAmountOutWithPrimitiveTypesRequest, + Response: EstimateSwapExactAmountOutResponse, +} as const; + /** * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSinglePoolSwapExactAmountOut */ diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts b/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts index d6cc3f5a..f75607e9 100644 --- a/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts @@ -130,6 +130,61 @@ export class EstimateSwapExactAmountInRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: repeated uint64 routes_pool_id = 3; + */ + routesPoolId: bigint[] = []; + + /** + * @generated from field: repeated string routes_token_out_denom = 4; + */ + routesTokenOutDenom: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInWithPrimitiveTypesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "routes_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 4, name: "routes_token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { + return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { + return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { + return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromJsonString(jsonString, options); + } + + static equals(a: EstimateSwapExactAmountInWithPrimitiveTypesRequest | PlainMessage | undefined, b: EstimateSwapExactAmountInWithPrimitiveTypesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EstimateSwapExactAmountInWithPrimitiveTypesRequest, a, b); + } +} + /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountInRequest */ @@ -267,6 +322,61 @@ export class EstimateSwapExactAmountOutRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated uint64 routes_pool_id = 2; + */ + routesPoolId: bigint[] = []; + + /** + * @generated from field: repeated string routes_token_in_denom = 3; + */ + routesTokenInDenom: string[] = []; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutWithPrimitiveTypesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "routes_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "routes_token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { + return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { + return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { + return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromJsonString(jsonString, options); + } + + static equals(a: EstimateSwapExactAmountOutWithPrimitiveTypesRequest | PlainMessage | undefined, b: EstimateSwapExactAmountOutWithPrimitiveTypesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EstimateSwapExactAmountOutWithPrimitiveTypesRequest, a, b); + } +} + /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountOutRequest */ diff --git a/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts index 35a3c85e..9dd8990e 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts @@ -6,7 +6,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; -import { BaseDenom, PoolWeights, TokenPairArbRoutes } from "./protorev_pb.js"; +import { BaseDenom, InfoByPoolType, PoolWeights, TokenPairArbRoutes } from "./protorev_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** @@ -41,6 +41,9 @@ export class GenesisState extends Message { * The pool weights that are being used to calculate the weight (compute cost) * of each route. * + * DEPRECATED: This field is deprecated and will be removed in the next + * release. It is replaced by the `info_by_pool_type` field. + * * @generated from field: osmosis.protorev.v1beta1.PoolWeights pool_weights = 4; */ poolWeights?: PoolWeights; @@ -103,6 +106,14 @@ export class GenesisState extends Message { */ profits: Coin[] = []; + /** + * Information that is used to estimate execution time / gas + * consumption of a swap on a given pool type. + * + * @generated from field: osmosis.protorev.v1beta1.InfoByPoolType info_by_pool_type = 13; + */ + infoByPoolType?: InfoByPoolType; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -123,6 +134,7 @@ export class GenesisState extends Message { { no: 10, name: "max_pool_points_per_tx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 11, name: "point_count_for_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 12, name: "profits", kind: "message", T: Coin, repeated: true }, + { no: 13, name: "info_by_pool_type", kind: "message", T: InfoByPoolType }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts b/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts index 97f99b2c..500d6eea 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts @@ -238,6 +238,9 @@ export class RouteStatistics extends Message { * corresponds to the amount of time (in ms) it takes to execute a swap on that * pool type. * + * DEPRECATED: This field is deprecated and will be removed in the next + * release. It is replaced by the `info_by_pool_type` field. + * * @generated from message osmosis.protorev.v1beta1.PoolWeights */ export class PoolWeights extends Message { @@ -262,6 +265,13 @@ export class PoolWeights extends Message { */ concentratedWeight = protoInt64.zero; + /** + * The weight of a cosmwasm pool + * + * @generated from field: uint64 cosmwasm_weight = 4; + */ + cosmwasmWeight = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -273,6 +283,7 @@ export class PoolWeights extends Message { { no: 1, name: "stable_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "balancer_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "concentrated_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "cosmwasm_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PoolWeights { @@ -292,6 +303,297 @@ export class PoolWeights extends Message { } } +/** + * InfoByPoolType contains information pertaining to how expensive (in terms of + * gas and time) it is to execute a swap on a given pool type. This distinction + * is made and necessary because the execution time ranges significantly between + * the different pool types. + * + * @generated from message osmosis.protorev.v1beta1.InfoByPoolType + */ +export class InfoByPoolType extends Message { + /** + * The stable pool info + * + * @generated from field: osmosis.protorev.v1beta1.StablePoolInfo stable = 1; + */ + stable?: StablePoolInfo; + + /** + * The balancer pool info + * + * @generated from field: osmosis.protorev.v1beta1.BalancerPoolInfo balancer = 2; + */ + balancer?: BalancerPoolInfo; + + /** + * The concentrated pool info + * + * @generated from field: osmosis.protorev.v1beta1.ConcentratedPoolInfo concentrated = 3; + */ + concentrated?: ConcentratedPoolInfo; + + /** + * The cosmwasm pool info + * + * @generated from field: osmosis.protorev.v1beta1.CosmwasmPoolInfo cosmwasm = 4; + */ + cosmwasm?: CosmwasmPoolInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.protorev.v1beta1.InfoByPoolType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "stable", kind: "message", T: StablePoolInfo }, + { no: 2, name: "balancer", kind: "message", T: BalancerPoolInfo }, + { no: 3, name: "concentrated", kind: "message", T: ConcentratedPoolInfo }, + { no: 4, name: "cosmwasm", kind: "message", T: CosmwasmPoolInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InfoByPoolType { + return new InfoByPoolType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InfoByPoolType { + return new InfoByPoolType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InfoByPoolType { + return new InfoByPoolType().fromJsonString(jsonString, options); + } + + static equals(a: InfoByPoolType | PlainMessage | undefined, b: InfoByPoolType | PlainMessage | undefined): boolean { + return proto3.util.equals(InfoByPoolType, a, b); + } +} + +/** + * StablePoolInfo contains meta data pertaining to a stableswap pool type. + * + * @generated from message osmosis.protorev.v1beta1.StablePoolInfo + */ +export class StablePoolInfo extends Message { + /** + * The weight of a stableswap pool + * + * @generated from field: uint64 weight = 1; + */ + weight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.protorev.v1beta1.StablePoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StablePoolInfo { + return new StablePoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StablePoolInfo { + return new StablePoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StablePoolInfo { + return new StablePoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: StablePoolInfo | PlainMessage | undefined, b: StablePoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(StablePoolInfo, a, b); + } +} + +/** + * BalancerPoolInfo contains meta data pertaining to a balancer pool type. + * + * @generated from message osmosis.protorev.v1beta1.BalancerPoolInfo + */ +export class BalancerPoolInfo extends Message { + /** + * The weight of a balancer pool + * + * @generated from field: uint64 weight = 1; + */ + weight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.protorev.v1beta1.BalancerPoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BalancerPoolInfo { + return new BalancerPoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BalancerPoolInfo { + return new BalancerPoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BalancerPoolInfo { + return new BalancerPoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: BalancerPoolInfo | PlainMessage | undefined, b: BalancerPoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(BalancerPoolInfo, a, b); + } +} + +/** + * ConcentratedPoolInfo contains meta data pertaining to a concentrated pool + * type. + * + * @generated from message osmosis.protorev.v1beta1.ConcentratedPoolInfo + */ +export class ConcentratedPoolInfo extends Message { + /** + * The weight of a concentrated pool + * + * @generated from field: uint64 weight = 1; + */ + weight = protoInt64.zero; + + /** + * The maximum number of ticks we can move when rebalancing + * + * @generated from field: uint64 max_ticks_crossed = 2; + */ + maxTicksCrossed = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.protorev.v1beta1.ConcentratedPoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "max_ticks_crossed", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConcentratedPoolInfo { + return new ConcentratedPoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConcentratedPoolInfo { + return new ConcentratedPoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConcentratedPoolInfo { + return new ConcentratedPoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: ConcentratedPoolInfo | PlainMessage | undefined, b: ConcentratedPoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(ConcentratedPoolInfo, a, b); + } +} + +/** + * CosmwasmPoolInfo contains meta data pertaining to a cosmwasm pool type. + * + * @generated from message osmosis.protorev.v1beta1.CosmwasmPoolInfo + */ +export class CosmwasmPoolInfo extends Message { + /** + * The weight of a cosmwasm pool (by contract address) + * + * @generated from field: repeated osmosis.protorev.v1beta1.WeightMap weight_maps = 1; + */ + weightMaps: WeightMap[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.protorev.v1beta1.CosmwasmPoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight_maps", kind: "message", T: WeightMap, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CosmwasmPoolInfo { + return new CosmwasmPoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CosmwasmPoolInfo { + return new CosmwasmPoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CosmwasmPoolInfo { + return new CosmwasmPoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: CosmwasmPoolInfo | PlainMessage | undefined, b: CosmwasmPoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(CosmwasmPoolInfo, a, b); + } +} + +/** + * WeightMap maps a contract address to a weight. The weight of an address + * corresponds to the amount of ms required to execute a swap on that contract. + * + * @generated from message osmosis.protorev.v1beta1.WeightMap + */ +export class WeightMap extends Message { + /** + * The weight of a cosmwasm pool (by contract address) + * + * @generated from field: uint64 weight = 1; + */ + weight = protoInt64.zero; + + /** + * The contract address + * + * @generated from field: string contract_address = 2; + */ + contractAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.protorev.v1beta1.WeightMap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightMap { + return new WeightMap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightMap { + return new WeightMap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightMap { + return new WeightMap().fromJsonString(jsonString, options); + } + + static equals(a: WeightMap | PlainMessage | undefined, b: WeightMap | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightMap, a, b); + } +} + /** * BaseDenom represents a single base denom that the module uses for its * arbitrage trades. It contains the denom name alongside the step size of the diff --git a/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts index 45ac13db..57bd369f 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryGetProtoRevAdminAccountRequest, QueryGetProtoRevAdminAccountResponse, QueryGetProtoRevAllProfitsRequest, QueryGetProtoRevAllProfitsResponse, QueryGetProtoRevAllRouteStatisticsRequest, QueryGetProtoRevAllRouteStatisticsResponse, QueryGetProtoRevBaseDenomsRequest, QueryGetProtoRevBaseDenomsResponse, QueryGetProtoRevDeveloperAccountRequest, QueryGetProtoRevDeveloperAccountResponse, QueryGetProtoRevEnabledRequest, QueryGetProtoRevEnabledResponse, QueryGetProtoRevMaxPoolPointsPerBlockRequest, QueryGetProtoRevMaxPoolPointsPerBlockResponse, QueryGetProtoRevMaxPoolPointsPerTxRequest, QueryGetProtoRevMaxPoolPointsPerTxResponse, QueryGetProtoRevNumberOfTradesRequest, QueryGetProtoRevNumberOfTradesResponse, QueryGetProtoRevPoolRequest, QueryGetProtoRevPoolResponse, QueryGetProtoRevPoolWeightsRequest, QueryGetProtoRevPoolWeightsResponse, QueryGetProtoRevProfitsByDenomRequest, QueryGetProtoRevProfitsByDenomResponse, QueryGetProtoRevStatisticsByRouteRequest, QueryGetProtoRevStatisticsByRouteResponse, QueryGetProtoRevTokenPairArbRoutesRequest, QueryGetProtoRevTokenPairArbRoutesResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; +import { QueryGetProtoRevAdminAccountRequest, QueryGetProtoRevAdminAccountResponse, QueryGetProtoRevAllProfitsRequest, QueryGetProtoRevAllProfitsResponse, QueryGetProtoRevAllRouteStatisticsRequest, QueryGetProtoRevAllRouteStatisticsResponse, QueryGetProtoRevBaseDenomsRequest, QueryGetProtoRevBaseDenomsResponse, QueryGetProtoRevDeveloperAccountRequest, QueryGetProtoRevDeveloperAccountResponse, QueryGetProtoRevEnabledRequest, QueryGetProtoRevEnabledResponse, QueryGetProtoRevInfoByPoolTypeRequest, QueryGetProtoRevInfoByPoolTypeResponse, QueryGetProtoRevMaxPoolPointsPerBlockRequest, QueryGetProtoRevMaxPoolPointsPerBlockResponse, QueryGetProtoRevMaxPoolPointsPerTxRequest, QueryGetProtoRevMaxPoolPointsPerTxResponse, QueryGetProtoRevNumberOfTradesRequest, QueryGetProtoRevNumberOfTradesResponse, QueryGetProtoRevPoolRequest, QueryGetProtoRevPoolResponse, QueryGetProtoRevProfitsByDenomRequest, QueryGetProtoRevProfitsByDenomResponse, QueryGetProtoRevStatisticsByRouteRequest, QueryGetProtoRevStatisticsByRouteResponse, QueryGetProtoRevTokenPairArbRoutesRequest, QueryGetProtoRevTokenPairArbRoutesResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.protorev.v1beta1.Query"; @@ -121,16 +121,16 @@ export const QueryGetProtoRevDeveloperAccountService = { } as const; /** - * GetProtoRevPoolWeights queries the weights of each pool type currently - * being used by the module + * GetProtoRevInfoByPoolType queries pool type information that is currently + * being utilized by the module * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevPoolWeights + * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevInfoByPoolType */ -export const QueryGetProtoRevPoolWeightsService = { +export const QueryGetProtoRevInfoByPoolTypeService = { typeName: TYPE_NAME, - method: "GetProtoRevPoolWeights", - Request: QueryGetProtoRevPoolWeightsRequest, - Response: QueryGetProtoRevPoolWeightsResponse, + method: "GetProtoRevInfoByPoolType", + Request: QueryGetProtoRevInfoByPoolTypeRequest, + Response: QueryGetProtoRevInfoByPoolTypeResponse, } as const; /** diff --git a/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts b/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts index dcf1c410..8f718bdb 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts @@ -7,7 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { BaseDenom, PoolWeights, RouteStatistics, TokenPairArbRoutes } from "./protorev_pb.js"; +import { BaseDenom, InfoByPoolType, RouteStatistics, TokenPairArbRoutes } from "./protorev_pb.js"; /** * QueryParamsRequest is request type for the Query/Params RPC method. @@ -711,78 +711,79 @@ export class QueryGetProtoRevDeveloperAccountResponse extends Message { - constructor(data?: PartialMessage) { +export class QueryGetProtoRevInfoByPoolTypeRequest extends Message { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevPoolWeightsRequest"; + static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevInfoByPoolTypeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevPoolWeightsRequest { - return new QueryGetProtoRevPoolWeightsRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevInfoByPoolTypeRequest { + return new QueryGetProtoRevInfoByPoolTypeRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevPoolWeightsRequest { - return new QueryGetProtoRevPoolWeightsRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevInfoByPoolTypeRequest { + return new QueryGetProtoRevInfoByPoolTypeRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevPoolWeightsRequest { - return new QueryGetProtoRevPoolWeightsRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevInfoByPoolTypeRequest { + return new QueryGetProtoRevInfoByPoolTypeRequest().fromJsonString(jsonString, options); } - static equals(a: QueryGetProtoRevPoolWeightsRequest | PlainMessage | undefined, b: QueryGetProtoRevPoolWeightsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevPoolWeightsRequest, a, b); + static equals(a: QueryGetProtoRevInfoByPoolTypeRequest | PlainMessage | undefined, b: QueryGetProtoRevInfoByPoolTypeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetProtoRevInfoByPoolTypeRequest, a, b); } } /** - * QueryGetProtoRevPoolWeightsResponse is response type for the - * Query/GetProtoRevPoolWeights RPC method. + * QueryGetProtoRevInfoByPoolTypeResponse is response type for the + * Query/GetProtoRevInfoByPoolType RPC method. * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevPoolWeightsResponse + * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevInfoByPoolTypeResponse */ -export class QueryGetProtoRevPoolWeightsResponse extends Message { +export class QueryGetProtoRevInfoByPoolTypeResponse extends Message { /** - * pool_weights is a list of all of the pool weights + * InfoByPoolType contains all information pertaining to how different + * pool types are handled by the module. * - * @generated from field: osmosis.protorev.v1beta1.PoolWeights pool_weights = 1; + * @generated from field: osmosis.protorev.v1beta1.InfoByPoolType info_by_pool_type = 1; */ - poolWeights?: PoolWeights; + infoByPoolType?: InfoByPoolType; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevPoolWeightsResponse"; + static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevInfoByPoolTypeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_weights", kind: "message", T: PoolWeights }, + { no: 1, name: "info_by_pool_type", kind: "message", T: InfoByPoolType }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevPoolWeightsResponse { - return new QueryGetProtoRevPoolWeightsResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevInfoByPoolTypeResponse { + return new QueryGetProtoRevInfoByPoolTypeResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevPoolWeightsResponse { - return new QueryGetProtoRevPoolWeightsResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevInfoByPoolTypeResponse { + return new QueryGetProtoRevInfoByPoolTypeResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevPoolWeightsResponse { - return new QueryGetProtoRevPoolWeightsResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevInfoByPoolTypeResponse { + return new QueryGetProtoRevInfoByPoolTypeResponse().fromJsonString(jsonString, options); } - static equals(a: QueryGetProtoRevPoolWeightsResponse | PlainMessage | undefined, b: QueryGetProtoRevPoolWeightsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevPoolWeightsResponse, a, b); + static equals(a: QueryGetProtoRevInfoByPoolTypeResponse | PlainMessage | undefined, b: QueryGetProtoRevInfoByPoolTypeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetProtoRevInfoByPoolTypeResponse, a, b); } } diff --git a/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts b/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts index 5ca1dca5..ed074757 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgSetBaseDenoms, MsgSetBaseDenomsResponse, MsgSetDeveloperAccount, MsgSetDeveloperAccountResponse, MsgSetHotRoutes, MsgSetHotRoutesResponse, MsgSetMaxPoolPointsPerBlock, MsgSetMaxPoolPointsPerBlockResponse, MsgSetMaxPoolPointsPerTx, MsgSetMaxPoolPointsPerTxResponse, MsgSetPoolWeights, MsgSetPoolWeightsResponse } from "./tx_pb.js"; +import { MsgSetBaseDenoms, MsgSetBaseDenomsResponse, MsgSetDeveloperAccount, MsgSetDeveloperAccountResponse, MsgSetHotRoutes, MsgSetHotRoutesResponse, MsgSetInfoByPoolType, MsgSetInfoByPoolTypeResponse, MsgSetMaxPoolPointsPerBlock, MsgSetMaxPoolPointsPerBlockResponse, MsgSetMaxPoolPointsPerTx, MsgSetMaxPoolPointsPerTxResponse } from "./tx_pb.js"; const TYPE_NAME = "osmosis.protorev.v1beta1.Msg"; @@ -60,16 +60,16 @@ export const MsgSetMaxPoolPointsPerBlockService = { } as const; /** - * SetPoolWeights sets the weights of each pool type in the store. Can only be - * called by the admin account. + * SetInfoByPoolType sets the pool type information needed to make smart + * assumptions about swapping on different pool types * - * @generated from rpc osmosis.protorev.v1beta1.Msg.SetPoolWeights + * @generated from rpc osmosis.protorev.v1beta1.Msg.SetInfoByPoolType */ -export const MsgSetPoolWeightsService = { +export const MsgSetInfoByPoolTypeService = { typeName: TYPE_NAME, - method: "SetPoolWeights", - Request: MsgSetPoolWeights, - Response: MsgSetPoolWeightsResponse, + method: "SetInfoByPoolType", + Request: MsgSetInfoByPoolType, + Response: MsgSetInfoByPoolTypeResponse, } as const; /** diff --git a/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts b/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts index 9bcdff12..acfe454a 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { BaseDenom, PoolWeights, TokenPairArbRoutes } from "./protorev_pb.js"; +import { BaseDenom, InfoByPoolType, TokenPairArbRoutes } from "./protorev_pb.js"; /** * MsgSetHotRoutes defines the Msg/SetHotRoutes request type. @@ -174,11 +174,11 @@ export class MsgSetDeveloperAccountResponse extends Message { +export class MsgSetInfoByPoolType extends Message { /** * admin is the account that is authorized to set the pool weights. * @@ -187,71 +187,71 @@ export class MsgSetPoolWeights extends Message { admin = ""; /** - * pool_weights is the list of pool weights to set. + * info_by_pool_type contains information about the pool types. * - * @generated from field: osmosis.protorev.v1beta1.PoolWeights pool_weights = 2; + * @generated from field: osmosis.protorev.v1beta1.InfoByPoolType info_by_pool_type = 2; */ - poolWeights?: PoolWeights; + infoByPoolType?: InfoByPoolType; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetPoolWeights"; + static readonly typeName = "osmosis.protorev.v1beta1.MsgSetInfoByPoolType"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_weights", kind: "message", T: PoolWeights }, + { no: 2, name: "info_by_pool_type", kind: "message", T: InfoByPoolType }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolWeights { - return new MsgSetPoolWeights().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetInfoByPoolType { + return new MsgSetInfoByPoolType().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolWeights { - return new MsgSetPoolWeights().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetInfoByPoolType { + return new MsgSetInfoByPoolType().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolWeights { - return new MsgSetPoolWeights().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgSetInfoByPoolType { + return new MsgSetInfoByPoolType().fromJsonString(jsonString, options); } - static equals(a: MsgSetPoolWeights | PlainMessage | undefined, b: MsgSetPoolWeights | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetPoolWeights, a, b); + static equals(a: MsgSetInfoByPoolType | PlainMessage | undefined, b: MsgSetInfoByPoolType | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetInfoByPoolType, a, b); } } /** - * MsgSetPoolWeightsResponse defines the Msg/SetPoolWeights response type. + * MsgSetInfoByPoolTypeResponse defines the Msg/SetInfoByPoolType response type. * - * @generated from message osmosis.protorev.v1beta1.MsgSetPoolWeightsResponse + * @generated from message osmosis.protorev.v1beta1.MsgSetInfoByPoolTypeResponse */ -export class MsgSetPoolWeightsResponse extends Message { - constructor(data?: PartialMessage) { +export class MsgSetInfoByPoolTypeResponse extends Message { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetPoolWeightsResponse"; + static readonly typeName = "osmosis.protorev.v1beta1.MsgSetInfoByPoolTypeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolWeightsResponse { - return new MsgSetPoolWeightsResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetInfoByPoolTypeResponse { + return new MsgSetInfoByPoolTypeResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolWeightsResponse { - return new MsgSetPoolWeightsResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetInfoByPoolTypeResponse { + return new MsgSetInfoByPoolTypeResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolWeightsResponse { - return new MsgSetPoolWeightsResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgSetInfoByPoolTypeResponse { + return new MsgSetInfoByPoolTypeResponse().fromJsonString(jsonString, options); } - static equals(a: MsgSetPoolWeightsResponse | PlainMessage | undefined, b: MsgSetPoolWeightsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetPoolWeightsResponse, a, b); + static equals(a: MsgSetInfoByPoolTypeResponse | PlainMessage | undefined, b: MsgSetInfoByPoolTypeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetInfoByPoolTypeResponse, a, b); } } diff --git a/src/protobufs/osmosis/superfluid/query_cosmes.ts b/src/protobufs/osmosis/superfluid/query_cosmes.ts index e633d1fa..7b33a4f7 100644 --- a/src/protobufs/osmosis/superfluid/query_cosmes.ts +++ b/src/protobufs/osmosis/superfluid/query_cosmes.ts @@ -194,6 +194,8 @@ export const QueryUnpoolWhitelistService = { } as const; /** + * Returns all of a user's full range CL positions that are superfluid staked. + * * @generated from rpc osmosis.superfluid.Query.UserConcentratedSuperfluidPositionsDelegated */ export const QueryUserConcentratedSuperfluidPositionsDelegatedService = { diff --git a/src/protobufs/osmosis/superfluid/tx_cosmes.ts b/src/protobufs/osmosis/superfluid/tx_cosmes.ts index 78d923cc..4796087c 100644 --- a/src/protobufs/osmosis/superfluid/tx_cosmes.ts +++ b/src/protobufs/osmosis/superfluid/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgAddToConcentratedLiquiditySuperfluidPosition, MsgAddToConcentratedLiquiditySuperfluidPositionResponse, MsgCreateFullRangePositionAndSuperfluidDelegate, MsgCreateFullRangePositionAndSuperfluidDelegateResponse, MsgLockAndSuperfluidDelegate, MsgLockAndSuperfluidDelegateResponse, MsgSuperfluidDelegate, MsgSuperfluidDelegateResponse, MsgSuperfluidUnbondLock, MsgSuperfluidUnbondLockResponse, MsgSuperfluidUndelegate, MsgSuperfluidUndelegateAndUnbondLock, MsgSuperfluidUndelegateAndUnbondLockResponse, MsgSuperfluidUndelegateResponse, MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition, MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse, MsgUnPoolWhitelistedPool, MsgUnPoolWhitelistedPoolResponse } from "./tx_pb.js"; +import { MsgAddToConcentratedLiquiditySuperfluidPosition, MsgAddToConcentratedLiquiditySuperfluidPositionResponse, MsgCreateFullRangePositionAndSuperfluidDelegate, MsgCreateFullRangePositionAndSuperfluidDelegateResponse, MsgLockAndSuperfluidDelegate, MsgLockAndSuperfluidDelegateResponse, MsgSuperfluidDelegate, MsgSuperfluidDelegateResponse, MsgSuperfluidUnbondLock, MsgSuperfluidUnbondLockResponse, MsgSuperfluidUndelegate, MsgSuperfluidUndelegateAndUnbondLock, MsgSuperfluidUndelegateAndUnbondLockResponse, MsgSuperfluidUndelegateResponse, MsgUnbondConvertAndStake, MsgUnbondConvertAndStakeResponse, MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition, MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse, MsgUnPoolWhitelistedPool, MsgUnPoolWhitelistedPoolResponse } from "./tx_pb.js"; const TYPE_NAME = "osmosis.superfluid.Msg"; @@ -108,3 +108,16 @@ export const MsgAddToConcentratedLiquiditySuperfluidPositionService = { Response: MsgAddToConcentratedLiquiditySuperfluidPositionResponse, } as const; +/** + * UnbondConvertAndStake breaks all locks / superfluid staked assets, + * converts them to osmo then stakes the osmo to the designated validator. + * + * @generated from rpc osmosis.superfluid.Msg.UnbondConvertAndStake + */ +export const MsgUnbondConvertAndStakeService = { + typeName: TYPE_NAME, + method: "UnbondConvertAndStake", + Request: MsgUnbondConvertAndStake, + Response: MsgUnbondConvertAndStakeResponse, +} as const; + diff --git a/src/protobufs/osmosis/superfluid/tx_pb.ts b/src/protobufs/osmosis/superfluid/tx_pb.ts index 7cddd312..c31e9323 100644 --- a/src/protobufs/osmosis/superfluid/tx_pb.ts +++ b/src/protobufs/osmosis/superfluid/tx_pb.ts @@ -844,3 +844,116 @@ export class MsgAddToConcentratedLiquiditySuperfluidPositionResponse extends Mes } } +/** + * ===================== MsgUnbondConvertAndStake + * + * @generated from message osmosis.superfluid.MsgUnbondConvertAndStake + */ +export class MsgUnbondConvertAndStake extends Message { + /** + * lock ID to convert and stake. + * lock id with 0 should be provided if converting liquid gamm shares to stake + * + * @generated from field: uint64 lock_id = 1; + */ + lockId = protoInt64.zero; + + /** + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * validator address to delegate to. + * If provided empty string, we use the validators returned from + * valset-preference module. + * + * @generated from field: string val_addr = 3; + */ + valAddr = ""; + + /** + * min_amt_to_stake indicates the minimum amount to stake after conversion + * + * @generated from field: string min_amt_to_stake = 4; + */ + minAmtToStake = ""; + + /** + * shares_to_convert indicates shares wanted to stake. + * Note that this field is only used for liquid(unlocked) gamm shares. + * For all other cases, this field would be disregarded. + * + * @generated from field: cosmos.base.v1beta1.Coin shares_to_convert = 5; + */ + sharesToConvert?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.superfluid.MsgUnbondConvertAndStake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_amt_to_stake", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "shares_to_convert", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbondConvertAndStake { + return new MsgUnbondConvertAndStake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbondConvertAndStake { + return new MsgUnbondConvertAndStake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbondConvertAndStake { + return new MsgUnbondConvertAndStake().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbondConvertAndStake | PlainMessage | undefined, b: MsgUnbondConvertAndStake | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbondConvertAndStake, a, b); + } +} + +/** + * @generated from message osmosis.superfluid.MsgUnbondConvertAndStakeResponse + */ +export class MsgUnbondConvertAndStakeResponse extends Message { + /** + * @generated from field: string total_amt_staked = 1; + */ + totalAmtStaked = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.superfluid.MsgUnbondConvertAndStakeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_amt_staked", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbondConvertAndStakeResponse { + return new MsgUnbondConvertAndStakeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbondConvertAndStakeResponse { + return new MsgUnbondConvertAndStakeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbondConvertAndStakeResponse { + return new MsgUnbondConvertAndStakeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbondConvertAndStakeResponse | PlainMessage | undefined, b: MsgUnbondConvertAndStakeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbondConvertAndStakeResponse, a, b); + } +} + From 7a074640c0fdd581ddcf5a08f079638829477ae0 Mon Sep 17 00:00:00 2001 From: Ryan Conceicao Date: Fri, 18 Aug 2023 00:39:18 +0000 Subject: [PATCH 3/6] refactor: rename to MsgIbcTransfer --- src/client/models/{MsgTransfer.ts => MsgIbcTransfer.ts} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/client/models/{MsgTransfer.ts => MsgIbcTransfer.ts} (58%) diff --git a/src/client/models/MsgTransfer.ts b/src/client/models/MsgIbcTransfer.ts similarity index 58% rename from src/client/models/MsgTransfer.ts rename to src/client/models/MsgIbcTransfer.ts index b459ad91..94d367da 100644 --- a/src/client/models/MsgTransfer.ts +++ b/src/client/models/MsgIbcTransfer.ts @@ -1,12 +1,12 @@ import { PlainMessage } from "@bufbuild/protobuf"; -import { IbcApplicationsTransferV1MsgTransfer as ProtoMsgTransfer } from "cosmes/protobufs"; +import { IbcApplicationsTransferV1MsgTransfer as ProtoMsgIbcTransfer } from "cosmes/protobufs"; import { DeepPrettify } from "../../typeutils/prettify"; import { Adapter } from "./Adapter"; -type Data = DeepPrettify>; +type Data = DeepPrettify>; -export class MsgTransfer implements Adapter { +export class MsgIbcTransfer implements Adapter { private readonly data: Data; constructor(data: Data) { @@ -14,7 +14,7 @@ export class MsgTransfer implements Adapter { } public toProto() { - return new ProtoMsgTransfer(this.data); + return new ProtoMsgIbcTransfer(this.data); } public toAmino() { From 7633ee9b29ff885fe882b3b064bdfc5e09081b36 Mon Sep 17 00:00:00 2001 From: Ryan Conceicao Date: Fri, 18 Aug 2023 00:48:42 +0000 Subject: [PATCH 4/6] fix: toAmino conversion --- src/client/models/MsgIbcTransfer.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/client/models/MsgIbcTransfer.ts b/src/client/models/MsgIbcTransfer.ts index 94d367da..ea4de802 100644 --- a/src/client/models/MsgIbcTransfer.ts +++ b/src/client/models/MsgIbcTransfer.ts @@ -19,8 +19,21 @@ export class MsgIbcTransfer implements Adapter { public toAmino() { return { - type: "ibc/MsgTransfer", - value: this.data, + type: "cosmos-sdk/MsgTransfer", + value: { + source_port: this.data.sourcePort, + source_channel: this.data.sourceChannel, + token: this.data.token, + sender: this.data.sender, + receiver: this.data.receiver, + /** + * Protobuf type is optional, but Amino type is non-optional. + * + * @see https://github.com/cosmos/cosmjs/blob/358260bff71c9d3e7ad6644fcf64dc00325cdfb9/packages/stargate/src/modules/ibc/aminomessages.ts#L16-L42 + */ + timeout_height: this.data.timeoutHeight ?? {}, + timeout_timestamp: this.data.timeoutTimestamp, + }, }; } } From 2c68dffb23c444f2d068e1bcb1c368cb3cd6ce7c Mon Sep 17 00:00:00 2001 From: Ryan Conceicao Date: Fri, 18 Aug 2023 00:55:19 +0000 Subject: [PATCH 5/6] fix: amino big ints --- src/client/models/MsgIbcTransfer.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/client/models/MsgIbcTransfer.ts b/src/client/models/MsgIbcTransfer.ts index ea4de802..93164ee3 100644 --- a/src/client/models/MsgIbcTransfer.ts +++ b/src/client/models/MsgIbcTransfer.ts @@ -28,11 +28,18 @@ export class MsgIbcTransfer implements Adapter { receiver: this.data.receiver, /** * Protobuf type is optional, but Amino type is non-optional. - * + * * @see https://github.com/cosmos/cosmjs/blob/358260bff71c9d3e7ad6644fcf64dc00325cdfb9/packages/stargate/src/modules/ibc/aminomessages.ts#L16-L42 */ - timeout_height: this.data.timeoutHeight ?? {}, - timeout_timestamp: this.data.timeoutTimestamp, + timeout_height: this.data.timeoutHeight + ? { + revision_number: + this.data.timeoutHeight.revisionNumber.toString(), + revision_height: + this.data.timeoutHeight.revisionHeight.toString(), + } + : {}, + timeout_timestamp: this.data.timeoutTimestamp.toString(), }, }; } From 1346ba126846dadcbf6453b937f0486c69dc2c32 Mon Sep 17 00:00:00 2001 From: Aaron Choo Date: Fri, 18 Aug 2023 10:39:04 +0800 Subject: [PATCH 6/6] fix: convert names to pascal case --- scripts/gen-protobufs.mjs | 8 ++--- src/protobufs/index.ts | 66 +++++++++++++++++++-------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/scripts/gen-protobufs.mjs b/scripts/gen-protobufs.mjs index 05aade95..8846071c 100644 --- a/scripts/gen-protobufs.mjs +++ b/scripts/gen-protobufs.mjs @@ -35,13 +35,13 @@ const REPOS = [ paths: ["proto"], }, { - repo: "osmosis-labs/osmosis", + repo: "osmosis-labs/osmosis#main", paths: ["proto"], }, { repo: "cosmos/ibc-go#main", paths: ["proto"], - } + }, ]; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -95,8 +95,8 @@ function generateIndexExports(dir) { .replace(PROTOBUFS_DIR + "/", "") .split("/") .map((name) => - // convert name to PascalCase - name.split("-").map(capitalize).join("") + // convert all names to PascalCase + name.split(/[-_]/).map(capitalize).join("") ) .join(""); for (const file of files) { diff --git a/src/protobufs/index.ts b/src/protobufs/index.ts index 75485466..1104ce24 100644 --- a/src/protobufs/index.ts +++ b/src/protobufs/index.ts @@ -1448,65 +1448,65 @@ export { TransferAuthorization as IbcApplicationsTransferV1TransferAuthorization, } from "./ibc/applications/transfer/v1/authz_pb.js"; export { - Type as IbcApplicationsInterchain_accountsV1Type, - InterchainAccountPacketData as IbcApplicationsInterchain_accountsV1InterchainAccountPacketData, - CosmosTx as IbcApplicationsInterchain_accountsV1CosmosTx, + Type as IbcApplicationsInterchainAccountsV1Type, + InterchainAccountPacketData as IbcApplicationsInterchainAccountsV1InterchainAccountPacketData, + CosmosTx as IbcApplicationsInterchainAccountsV1CosmosTx, } from "./ibc/applications/interchain_accounts/v1/packet_pb.js"; export { - Metadata as IbcApplicationsInterchain_accountsV1Metadata, + Metadata as IbcApplicationsInterchainAccountsV1Metadata, } from "./ibc/applications/interchain_accounts/v1/metadata_pb.js"; export { - InterchainAccount as IbcApplicationsInterchain_accountsV1InterchainAccount, + InterchainAccount as IbcApplicationsInterchainAccountsV1InterchainAccount, } from "./ibc/applications/interchain_accounts/v1/account_pb.js"; export { - MsgUpdateParams as IbcApplicationsInterchain_accountsHostV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcApplicationsInterchain_accountsHostV1MsgUpdateParamsResponse, + MsgUpdateParams as IbcApplicationsInterchainAccountsHostV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsResponse, } from "./ibc/applications/interchain_accounts/host/v1/tx_pb.js"; export { - MsgUpdateParamsService as IbcApplicationsInterchain_accountsHostV1MsgUpdateParamsService, + MsgUpdateParamsService as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsService, } from "./ibc/applications/interchain_accounts/host/v1/tx_cosmes.js"; export { - QueryParamsRequest as IbcApplicationsInterchain_accountsHostV1QueryParamsRequest, - QueryParamsResponse as IbcApplicationsInterchain_accountsHostV1QueryParamsResponse, + QueryParamsRequest as IbcApplicationsInterchainAccountsHostV1QueryParamsRequest, + QueryParamsResponse as IbcApplicationsInterchainAccountsHostV1QueryParamsResponse, } from "./ibc/applications/interchain_accounts/host/v1/query_pb.js"; export { - QueryParamsService as IbcApplicationsInterchain_accountsHostV1QueryParamsService, + QueryParamsService as IbcApplicationsInterchainAccountsHostV1QueryParamsService, } from "./ibc/applications/interchain_accounts/host/v1/query_cosmes.js"; export { - Params as IbcApplicationsInterchain_accountsHostV1Params, + Params as IbcApplicationsInterchainAccountsHostV1Params, } from "./ibc/applications/interchain_accounts/host/v1/host_pb.js"; export { - GenesisState as IbcApplicationsInterchain_accountsGenesisV1GenesisState, - ControllerGenesisState as IbcApplicationsInterchain_accountsGenesisV1ControllerGenesisState, - HostGenesisState as IbcApplicationsInterchain_accountsGenesisV1HostGenesisState, - ActiveChannel as IbcApplicationsInterchain_accountsGenesisV1ActiveChannel, - RegisteredInterchainAccount as IbcApplicationsInterchain_accountsGenesisV1RegisteredInterchainAccount, + GenesisState as IbcApplicationsInterchainAccountsGenesisV1GenesisState, + ControllerGenesisState as IbcApplicationsInterchainAccountsGenesisV1ControllerGenesisState, + HostGenesisState as IbcApplicationsInterchainAccountsGenesisV1HostGenesisState, + ActiveChannel as IbcApplicationsInterchainAccountsGenesisV1ActiveChannel, + RegisteredInterchainAccount as IbcApplicationsInterchainAccountsGenesisV1RegisteredInterchainAccount, } from "./ibc/applications/interchain_accounts/genesis/v1/genesis_pb.js"; export { - MsgRegisterInterchainAccount as IbcApplicationsInterchain_accountsControllerV1MsgRegisterInterchainAccount, - MsgRegisterInterchainAccountResponse as IbcApplicationsInterchain_accountsControllerV1MsgRegisterInterchainAccountResponse, - MsgSendTx as IbcApplicationsInterchain_accountsControllerV1MsgSendTx, - MsgSendTxResponse as IbcApplicationsInterchain_accountsControllerV1MsgSendTxResponse, - MsgUpdateParams as IbcApplicationsInterchain_accountsControllerV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcApplicationsInterchain_accountsControllerV1MsgUpdateParamsResponse, + MsgRegisterInterchainAccount as IbcApplicationsInterchainAccountsControllerV1MsgRegisterInterchainAccount, + MsgRegisterInterchainAccountResponse as IbcApplicationsInterchainAccountsControllerV1MsgRegisterInterchainAccountResponse, + MsgSendTx as IbcApplicationsInterchainAccountsControllerV1MsgSendTx, + MsgSendTxResponse as IbcApplicationsInterchainAccountsControllerV1MsgSendTxResponse, + MsgUpdateParams as IbcApplicationsInterchainAccountsControllerV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcApplicationsInterchainAccountsControllerV1MsgUpdateParamsResponse, } from "./ibc/applications/interchain_accounts/controller/v1/tx_pb.js"; export { - MsgRegisterInterchainAccountService as IbcApplicationsInterchain_accountsControllerV1MsgRegisterInterchainAccountService, - MsgSendTxService as IbcApplicationsInterchain_accountsControllerV1MsgSendTxService, - MsgUpdateParamsService as IbcApplicationsInterchain_accountsControllerV1MsgUpdateParamsService, + MsgRegisterInterchainAccountService as IbcApplicationsInterchainAccountsControllerV1MsgRegisterInterchainAccountService, + MsgSendTxService as IbcApplicationsInterchainAccountsControllerV1MsgSendTxService, + MsgUpdateParamsService as IbcApplicationsInterchainAccountsControllerV1MsgUpdateParamsService, } from "./ibc/applications/interchain_accounts/controller/v1/tx_cosmes.js"; export { - QueryInterchainAccountRequest as IbcApplicationsInterchain_accountsControllerV1QueryInterchainAccountRequest, - QueryInterchainAccountResponse as IbcApplicationsInterchain_accountsControllerV1QueryInterchainAccountResponse, - QueryParamsRequest as IbcApplicationsInterchain_accountsControllerV1QueryParamsRequest, - QueryParamsResponse as IbcApplicationsInterchain_accountsControllerV1QueryParamsResponse, + QueryInterchainAccountRequest as IbcApplicationsInterchainAccountsControllerV1QueryInterchainAccountRequest, + QueryInterchainAccountResponse as IbcApplicationsInterchainAccountsControllerV1QueryInterchainAccountResponse, + QueryParamsRequest as IbcApplicationsInterchainAccountsControllerV1QueryParamsRequest, + QueryParamsResponse as IbcApplicationsInterchainAccountsControllerV1QueryParamsResponse, } from "./ibc/applications/interchain_accounts/controller/v1/query_pb.js"; export { - QueryInterchainAccountService as IbcApplicationsInterchain_accountsControllerV1QueryInterchainAccountService, - QueryParamsService as IbcApplicationsInterchain_accountsControllerV1QueryParamsService, + QueryInterchainAccountService as IbcApplicationsInterchainAccountsControllerV1QueryInterchainAccountService, + QueryParamsService as IbcApplicationsInterchainAccountsControllerV1QueryParamsService, } from "./ibc/applications/interchain_accounts/controller/v1/query_cosmes.js"; export { - Params as IbcApplicationsInterchain_accountsControllerV1Params, + Params as IbcApplicationsInterchainAccountsControllerV1Params, } from "./ibc/applications/interchain_accounts/controller/v1/controller_pb.js"; export { MsgRegisterPayee as IbcApplicationsFeeV1MsgRegisterPayee,