diff --git a/libs/es-client/src/client/index.ts b/libs/es-client/src/client/index.ts index 72f0acd..1800d43 100644 --- a/libs/es-client/src/client/index.ts +++ b/libs/es-client/src/client/index.ts @@ -22,10 +22,7 @@ export { export { simulateTx, type SimulateTxParams } from "./apis/simulateTx"; export { RpcClient } from "./clients/RpcClient"; export { type Adapter } from "./models/Adapter"; -export { MsgExecuteContract } from "./models/MsgExecuteContract"; -export { MsgInstantiateContract } from "./models/MsgInstantiateContract"; export { MsgStoreCode } from "./models/MsgStoreCode"; -export { MsgMigrateContract } from "./models/MsgMigrateContract"; export { MsgIbcTransfer } from "./models/MsgIbcTransfer"; export { MsgSend } from "./models/MsgSend"; export { MsgDelegate } from "./models/MsgDelegate"; diff --git a/libs/es-client/src/client/models/MsgBeginRedelegate.ts b/libs/es-client/src/client/models/MsgBeginRedelegate.ts index 6eea8f9..4b4aeb8 100644 --- a/libs/es-client/src/client/models/MsgBeginRedelegate.ts +++ b/libs/es-client/src/client/models/MsgBeginRedelegate.ts @@ -1,5 +1,5 @@ import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosStakingV1beta1MsgBeginRedelegate as ProtoMsgBeginRedelegate } from "@onsonr/es/protobufs"; +import { CosmosStakingV1beta1MsgBeginRedelegate as ProtoMsgBeginRedelegate } from "../../protobufs"; import { DeepPrettify } from "../../typeutils/prettify"; import { Adapter } from "./Adapter"; @@ -25,7 +25,8 @@ export class MsgBeginRedelegate implements Adapter { validator_src_address: this.data.validatorSrcAddress, validator_dst_address: this.data.validatorDstAddress, amount: this.data.amount, - }, + }, }; } -} \ No newline at end of file +} + diff --git a/libs/es-client/src/client/models/MsgDelegate.ts b/libs/es-client/src/client/models/MsgDelegate.ts index 50be9cf..92bacd1 100644 --- a/libs/es-client/src/client/models/MsgDelegate.ts +++ b/libs/es-client/src/client/models/MsgDelegate.ts @@ -1,5 +1,5 @@ import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosStakingV1beta1MsgDelegate as ProtoMsgDelegate } from "@onsonr/es/protobufs"; +import { CosmosStakingV1beta1MsgDelegate as ProtoMsgDelegate } from "../..//protobufs"; import { DeepPrettify } from "../../typeutils/prettify"; import { Adapter } from "./Adapter"; @@ -24,7 +24,8 @@ export class MsgDelegate implements Adapter { delegator_address: this.data.delegatorAddress, validator_address: this.data.validatorAddress, amount: this.data.amount, - }, + }, }; } -} \ No newline at end of file +} + diff --git a/libs/es-client/src/client/models/MsgExecuteContract.ts b/libs/es-client/src/client/models/MsgExecuteContract.ts deleted file mode 100644 index 28df241..0000000 --- a/libs/es-client/src/client/models/MsgExecuteContract.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { utf8 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1MsgExecuteContract as ProtoMsgExecuteContract } from "@onsonr/es/protobufs"; - -import { DeepPrettify, Prettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = Prettify< - DeepPrettify, "msg">> & { - msg: T; - } ->; - -export class MsgExecuteContract implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgExecuteContract({ - ...this.data, - msg: utf8.decode(JSON.stringify(this.data.msg)), - }); - } - - public toAmino() { - return { - type: "wasm/MsgExecuteContract", - value: this.data, - }; - } -} diff --git a/libs/es-client/src/client/models/MsgIbcTransfer.ts b/libs/es-client/src/client/models/MsgIbcTransfer.ts index 6c490d8..08d4869 100644 --- a/libs/es-client/src/client/models/MsgIbcTransfer.ts +++ b/libs/es-client/src/client/models/MsgIbcTransfer.ts @@ -1,5 +1,5 @@ import { PlainMessage } from "@bufbuild/protobuf"; -import { IbcApplicationsTransferV1MsgTransfer as ProtoMsgIbcTransfer } from "@onsonr/es/protobufs"; +import { IbcApplicationsTransferV1MsgTransfer as ProtoMsgIbcTransfer } from "../../protobufs"; import { DeepPrettify } from "../../typeutils/prettify"; import { Adapter } from "./Adapter"; diff --git a/libs/es-client/src/client/models/MsgInstantiateContract.ts b/libs/es-client/src/client/models/MsgInstantiateContract.ts deleted file mode 100644 index 026429a..0000000 --- a/libs/es-client/src/client/models/MsgInstantiateContract.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { utf8 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1MsgInstantiateContract as ProtoMsgInstantiateContract } from "@onsonr/es/protobufs"; - -import { DeepPrettify, Prettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = Prettify< - DeepPrettify, "msg">> & { - msg: T; - } ->; - -export class MsgInstantiateContract implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgInstantiateContract({ - ...this.data, - msg: utf8.decode(JSON.stringify(this.data.msg)), - }); - } - - public toAmino() { - return { - type: "wasm/MsgInstantiateContract", - value: { - sender: this.data.sender, - admin: this.data.admin, - code_id: this.data.codeId.toString(), - label: this.data.label, - msg: this.data.msg, - funds: this.data.funds, - }, - }; - } -} diff --git a/libs/es-client/src/client/models/MsgMigrateContract.ts b/libs/es-client/src/client/models/MsgMigrateContract.ts deleted file mode 100644 index 6ecb8d7..0000000 --- a/libs/es-client/src/client/models/MsgMigrateContract.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { utf8 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1MsgMigrateContract as ProtoMsgMigrateContract } from "@onsonr/es/protobufs"; - -import { DeepPrettify, Prettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = Prettify< - DeepPrettify, "msg">> & { - msg: T; - } ->; - -export class MsgMigrateContract implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgMigrateContract({ - ...this.data, - msg: utf8.decode(JSON.stringify(this.data.msg)), - }); - } - - public toAmino() { - return { - type: "wasm/MsgMigrateContract", - value: { - sender: this.data.sender, - code_id: this.data.codeId, - contract: this.data.contract, - msg: this.data.msg, - } - }; - } -} diff --git a/libs/es-client/src/protobufs/cosmos/ics23/v1/proofs_pb.ts b/libs/es-client/src/protobufs/cosmos/ics23/v1/proofs_pb.ts new file mode 100644 index 0000000..3abc472 --- /dev/null +++ b/libs/es-client/src/protobufs/cosmos/ics23/v1/proofs_pb.ts @@ -0,0 +1,978 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/ics23/v1/proofs.proto (package cosmos.ics23.v1, 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 enum cosmos.ics23.v1.HashOp + */ +export enum HashOp { + /** + * NO_HASH is the default if no data passed. Note this is an illegal argument some places. + * + * @generated from enum value: NO_HASH = 0; + */ + NO_HASH = 0, + + /** + * @generated from enum value: SHA256 = 1; + */ + SHA256 = 1, + + /** + * @generated from enum value: SHA512 = 2; + */ + SHA512 = 2, + + /** + * @generated from enum value: KECCAK256 = 3; + */ + KECCAK256 = 3, + + /** + * @generated from enum value: RIPEMD160 = 4; + */ + RIPEMD160 = 4, + + /** + * ripemd160(sha256(x)) + * + * @generated from enum value: BITCOIN = 5; + */ + BITCOIN = 5, + + /** + * @generated from enum value: SHA512_256 = 6; + */ + SHA512_256 = 6, + + /** + * @generated from enum value: BLAKE2B_512 = 7; + */ + BLAKE2B_512 = 7, + + /** + * @generated from enum value: BLAKE2S_256 = 8; + */ + BLAKE2S_256 = 8, + + /** + * @generated from enum value: BLAKE3 = 9; + */ + BLAKE3 = 9, +} +// Retrieve enum metadata with: proto3.getEnumType(HashOp) +proto3.util.setEnumType(HashOp, "cosmos.ics23.v1.HashOp", [ + { no: 0, name: "NO_HASH" }, + { no: 1, name: "SHA256" }, + { no: 2, name: "SHA512" }, + { no: 3, name: "KECCAK256" }, + { no: 4, name: "RIPEMD160" }, + { no: 5, name: "BITCOIN" }, + { no: 6, name: "SHA512_256" }, + { no: 7, name: "BLAKE2B_512" }, + { no: 8, name: "BLAKE2S_256" }, + { no: 9, name: "BLAKE3" }, +]); + +/** + * * + * LengthOp defines how to process the key and value of the LeafOp + * to include length information. After encoding the length with the given + * algorithm, the length will be prepended to the key and value bytes. + * (Each one with it's own encoded length) + * + * @generated from enum cosmos.ics23.v1.LengthOp + */ +export enum LengthOp { + /** + * NO_PREFIX don't include any length info + * + * @generated from enum value: NO_PREFIX = 0; + */ + NO_PREFIX = 0, + + /** + * VAR_PROTO uses protobuf (and go-amino) varint encoding of the length + * + * @generated from enum value: VAR_PROTO = 1; + */ + VAR_PROTO = 1, + + /** + * VAR_RLP uses rlp int encoding of the length + * + * @generated from enum value: VAR_RLP = 2; + */ + VAR_RLP = 2, + + /** + * FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer + * + * @generated from enum value: FIXED32_BIG = 3; + */ + FIXED32_BIG = 3, + + /** + * FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer + * + * @generated from enum value: FIXED32_LITTLE = 4; + */ + FIXED32_LITTLE = 4, + + /** + * FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer + * + * @generated from enum value: FIXED64_BIG = 5; + */ + FIXED64_BIG = 5, + + /** + * FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer + * + * @generated from enum value: FIXED64_LITTLE = 6; + */ + FIXED64_LITTLE = 6, + + /** + * REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) + * + * @generated from enum value: REQUIRE_32_BYTES = 7; + */ + REQUIRE_32_BYTES = 7, + + /** + * REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) + * + * @generated from enum value: REQUIRE_64_BYTES = 8; + */ + REQUIRE_64_BYTES = 8, +} +// Retrieve enum metadata with: proto3.getEnumType(LengthOp) +proto3.util.setEnumType(LengthOp, "cosmos.ics23.v1.LengthOp", [ + { no: 0, name: "NO_PREFIX" }, + { no: 1, name: "VAR_PROTO" }, + { no: 2, name: "VAR_RLP" }, + { no: 3, name: "FIXED32_BIG" }, + { no: 4, name: "FIXED32_LITTLE" }, + { no: 5, name: "FIXED64_BIG" }, + { no: 6, name: "FIXED64_LITTLE" }, + { no: 7, name: "REQUIRE_32_BYTES" }, + { no: 8, name: "REQUIRE_64_BYTES" }, +]); + +/** + * * + * ExistenceProof takes a key and a value and a set of steps to perform on it. + * The result of peforming all these steps will provide a "root hash", which can + * be compared to the value in a header. + * + * Since it is computationally infeasible to produce a hash collission for any of the used + * cryptographic hash functions, if someone can provide a series of operations to transform + * a given key and value into a root hash that matches some trusted root, these key and values + * must be in the referenced merkle tree. + * + * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, + * which should be controlled by a spec. Eg. with lengthOp as NONE, + * prefix = FOO, key = BAR, value = CHOICE + * and + * prefix = F, key = OOBAR, value = CHOICE + * would produce the same value. + * + * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field + * in the ProofSpec is valuable to prevent this mutability. And why all trees should + * length-prefix the data before hashing it. + * + * @generated from message cosmos.ics23.v1.ExistenceProof + */ +export class ExistenceProof extends Message { + /** + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + /** + * @generated from field: bytes value = 2; + */ + value = new Uint8Array(0); + + /** + * @generated from field: cosmos.ics23.v1.LeafOp leaf = 3; + */ + leaf?: LeafOp; + + /** + * @generated from field: repeated cosmos.ics23.v1.InnerOp path = 4; + */ + path: InnerOp[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.ExistenceProof"; + 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 */ }, + { no: 3, name: "leaf", kind: "message", T: LeafOp }, + { no: 4, name: "path", kind: "message", T: InnerOp, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExistenceProof { + return new ExistenceProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExistenceProof { + return new ExistenceProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExistenceProof { + return new ExistenceProof().fromJsonString(jsonString, options); + } + + static equals(a: ExistenceProof | PlainMessage | undefined, b: ExistenceProof | PlainMessage | undefined): boolean { + return proto3.util.equals(ExistenceProof, a, b); + } +} + +/** + * + * NonExistenceProof takes a proof of two neighbors, one left of the desired key, + * one right of the desired key. If both proofs are valid AND they are neighbors, + * then there is no valid proof for the given key. + * + * @generated from message cosmos.ics23.v1.NonExistenceProof + */ +export class NonExistenceProof extends Message { + /** + * TODO: remove this as unnecessary??? we prove a range + * + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + /** + * @generated from field: cosmos.ics23.v1.ExistenceProof left = 2; + */ + left?: ExistenceProof; + + /** + * @generated from field: cosmos.ics23.v1.ExistenceProof right = 3; + */ + right?: ExistenceProof; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.NonExistenceProof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "left", kind: "message", T: ExistenceProof }, + { no: 3, name: "right", kind: "message", T: ExistenceProof }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NonExistenceProof { + return new NonExistenceProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NonExistenceProof { + return new NonExistenceProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NonExistenceProof { + return new NonExistenceProof().fromJsonString(jsonString, options); + } + + static equals(a: NonExistenceProof | PlainMessage | undefined, b: NonExistenceProof | PlainMessage | undefined): boolean { + return proto3.util.equals(NonExistenceProof, a, b); + } +} + +/** + * + * CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages + * + * @generated from message cosmos.ics23.v1.CommitmentProof + */ +export class CommitmentProof extends Message { + /** + * @generated from oneof cosmos.ics23.v1.CommitmentProof.proof + */ + proof: { + /** + * @generated from field: cosmos.ics23.v1.ExistenceProof exist = 1; + */ + value: ExistenceProof; + case: "exist"; + } | { + /** + * @generated from field: cosmos.ics23.v1.NonExistenceProof nonexist = 2; + */ + value: NonExistenceProof; + case: "nonexist"; + } | { + /** + * @generated from field: cosmos.ics23.v1.BatchProof batch = 3; + */ + value: BatchProof; + case: "batch"; + } | { + /** + * @generated from field: cosmos.ics23.v1.CompressedBatchProof compressed = 4; + */ + value: CompressedBatchProof; + case: "compressed"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.CommitmentProof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exist", kind: "message", T: ExistenceProof, oneof: "proof" }, + { no: 2, name: "nonexist", kind: "message", T: NonExistenceProof, oneof: "proof" }, + { no: 3, name: "batch", kind: "message", T: BatchProof, oneof: "proof" }, + { no: 4, name: "compressed", kind: "message", T: CompressedBatchProof, oneof: "proof" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommitmentProof { + return new CommitmentProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommitmentProof { + return new CommitmentProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommitmentProof { + return new CommitmentProof().fromJsonString(jsonString, options); + } + + static equals(a: CommitmentProof | PlainMessage | undefined, b: CommitmentProof | PlainMessage | undefined): boolean { + return proto3.util.equals(CommitmentProof, a, b); + } +} + +/** + * * + * LeafOp represents the raw key-value data we wish to prove, and + * must be flexible to represent the internal transformation from + * the original key-value pairs into the basis hash, for many existing + * merkle trees. + * + * key and value are passed in. So that the signature of this operation is: + * leafOp(key, value) -> output + * + * To process this, first prehash the keys and values if needed (ANY means no hash in this case): + * hkey = prehashKey(key) + * hvalue = prehashValue(value) + * + * Then combine the bytes, and hash it + * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) + * + * @generated from message cosmos.ics23.v1.LeafOp + */ +export class LeafOp extends Message { + /** + * @generated from field: cosmos.ics23.v1.HashOp hash = 1; + */ + hash = HashOp.NO_HASH; + + /** + * @generated from field: cosmos.ics23.v1.HashOp prehash_key = 2; + */ + prehashKey = HashOp.NO_HASH; + + /** + * @generated from field: cosmos.ics23.v1.HashOp prehash_value = 3; + */ + prehashValue = HashOp.NO_HASH; + + /** + * @generated from field: cosmos.ics23.v1.LengthOp length = 4; + */ + length = LengthOp.NO_PREFIX; + + /** + * prefix is a fixed bytes that may optionally be included at the beginning to differentiate + * a leaf node from an inner node. + * + * @generated from field: bytes prefix = 5; + */ + prefix = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.LeafOp"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "enum", T: proto3.getEnumType(HashOp) }, + { no: 2, name: "prehash_key", kind: "enum", T: proto3.getEnumType(HashOp) }, + { no: 3, name: "prehash_value", kind: "enum", T: proto3.getEnumType(HashOp) }, + { no: 4, name: "length", kind: "enum", T: proto3.getEnumType(LengthOp) }, + { no: 5, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LeafOp { + return new LeafOp().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LeafOp { + return new LeafOp().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LeafOp { + return new LeafOp().fromJsonString(jsonString, options); + } + + static equals(a: LeafOp | PlainMessage | undefined, b: LeafOp | PlainMessage | undefined): boolean { + return proto3.util.equals(LeafOp, a, b); + } +} + +/** + * * + * InnerOp represents a merkle-proof step that is not a leaf. + * It represents concatenating two children and hashing them to provide the next result. + * + * The result of the previous step is passed in, so the signature of this op is: + * innerOp(child) -> output + * + * The result of applying InnerOp should be: + * output = op.hash(op.prefix || child || op.suffix) + * + * where the || operator is concatenation of binary data, + * and child is the result of hashing all the tree below this step. + * + * Any special data, like prepending child with the length, or prepending the entire operation with + * some value to differentiate from leaf nodes, should be included in prefix and suffix. + * If either of prefix or suffix is empty, we just treat it as an empty string + * + * @generated from message cosmos.ics23.v1.InnerOp + */ +export class InnerOp extends Message { + /** + * @generated from field: cosmos.ics23.v1.HashOp hash = 1; + */ + hash = HashOp.NO_HASH; + + /** + * @generated from field: bytes prefix = 2; + */ + prefix = new Uint8Array(0); + + /** + * @generated from field: bytes suffix = 3; + */ + suffix = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.InnerOp"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "enum", T: proto3.getEnumType(HashOp) }, + { no: 2, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "suffix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InnerOp { + return new InnerOp().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InnerOp { + return new InnerOp().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InnerOp { + return new InnerOp().fromJsonString(jsonString, options); + } + + static equals(a: InnerOp | PlainMessage | undefined, b: InnerOp | PlainMessage | undefined): boolean { + return proto3.util.equals(InnerOp, a, b); + } +} + +/** + * * + * ProofSpec defines what the expected parameters are for a given proof type. + * This can be stored in the client and used to validate any incoming proofs. + * + * verify(ProofSpec, Proof) -> Proof | Error + * + * As demonstrated in tests, if we don't fix the algorithm used to calculate the + * LeafHash for a given tree, there are many possible key-value pairs that can + * generate a given hash (by interpretting the preimage differently). + * We need this for proper security, requires client knows a priori what + * tree format server uses. But not in code, rather a configuration object. + * + * @generated from message cosmos.ics23.v1.ProofSpec + */ +export class ProofSpec extends Message { + /** + * any field in the ExistenceProof must be the same as in this spec. + * except Prefix, which is just the first bytes of prefix (spec can be longer) + * + * @generated from field: cosmos.ics23.v1.LeafOp leaf_spec = 1; + */ + leafSpec?: LeafOp; + + /** + * @generated from field: cosmos.ics23.v1.InnerSpec inner_spec = 2; + */ + innerSpec?: InnerSpec; + + /** + * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) + * the max_depth is interpreted as 128 if set to 0 + * + * @generated from field: int32 max_depth = 3; + */ + maxDepth = 0; + + /** + * min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) + * + * @generated from field: int32 min_depth = 4; + */ + minDepth = 0; + + /** + * prehash_key_before_comparison is a flag that indicates whether to use the + * prehash_key specified by LeafOp to compare lexical ordering of keys for + * non-existence proofs. + * + * @generated from field: bool prehash_key_before_comparison = 5; + */ + prehashKeyBeforeComparison = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.ProofSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "leaf_spec", kind: "message", T: LeafOp }, + { no: 2, name: "inner_spec", kind: "message", T: InnerSpec }, + { no: 3, name: "max_depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "min_depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "prehash_key_before_comparison", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProofSpec { + return new ProofSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProofSpec { + return new ProofSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProofSpec { + return new ProofSpec().fromJsonString(jsonString, options); + } + + static equals(a: ProofSpec | PlainMessage | undefined, b: ProofSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(ProofSpec, a, b); + } +} + +/** + * + * InnerSpec contains all store-specific structure info to determine if two proofs from a + * given store are neighbors. + * + * This enables: + * + * isLeftMost(spec: InnerSpec, op: InnerOp) + * isRightMost(spec: InnerSpec, op: InnerOp) + * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) + * + * @generated from message cosmos.ics23.v1.InnerSpec + */ +export class InnerSpec extends Message { + /** + * Child order is the ordering of the children node, must count from 0 + * iavl tree is [0, 1] (left then right) + * merk is [0, 2, 1] (left, right, here) + * + * @generated from field: repeated int32 child_order = 1; + */ + childOrder: number[] = []; + + /** + * @generated from field: int32 child_size = 2; + */ + childSize = 0; + + /** + * @generated from field: int32 min_prefix_length = 3; + */ + minPrefixLength = 0; + + /** + * the max prefix length must be less than the minimum prefix length + child size + * + * @generated from field: int32 max_prefix_length = 4; + */ + maxPrefixLength = 0; + + /** + * empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) + * + * @generated from field: bytes empty_child = 5; + */ + emptyChild = new Uint8Array(0); + + /** + * hash is the algorithm that must be used for each InnerOp + * + * @generated from field: cosmos.ics23.v1.HashOp hash = 6; + */ + hash = HashOp.NO_HASH; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.InnerSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "child_order", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, + { no: 2, name: "child_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "min_prefix_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "max_prefix_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "empty_child", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "hash", kind: "enum", T: proto3.getEnumType(HashOp) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InnerSpec { + return new InnerSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InnerSpec { + return new InnerSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InnerSpec { + return new InnerSpec().fromJsonString(jsonString, options); + } + + static equals(a: InnerSpec | PlainMessage | undefined, b: InnerSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(InnerSpec, a, b); + } +} + +/** + * + * BatchProof is a group of multiple proof types than can be compressed + * + * @generated from message cosmos.ics23.v1.BatchProof + */ +export class BatchProof extends Message { + /** + * @generated from field: repeated cosmos.ics23.v1.BatchEntry entries = 1; + */ + entries: BatchEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.BatchProof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entries", kind: "message", T: BatchEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchProof { + return new BatchProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchProof { + return new BatchProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchProof { + return new BatchProof().fromJsonString(jsonString, options); + } + + static equals(a: BatchProof | PlainMessage | undefined, b: BatchProof | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchProof, a, b); + } +} + +/** + * Use BatchEntry not CommitmentProof, to avoid recursion + * + * @generated from message cosmos.ics23.v1.BatchEntry + */ +export class BatchEntry extends Message { + /** + * @generated from oneof cosmos.ics23.v1.BatchEntry.proof + */ + proof: { + /** + * @generated from field: cosmos.ics23.v1.ExistenceProof exist = 1; + */ + value: ExistenceProof; + case: "exist"; + } | { + /** + * @generated from field: cosmos.ics23.v1.NonExistenceProof nonexist = 2; + */ + value: NonExistenceProof; + case: "nonexist"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.BatchEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exist", kind: "message", T: ExistenceProof, oneof: "proof" }, + { no: 2, name: "nonexist", kind: "message", T: NonExistenceProof, oneof: "proof" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchEntry { + return new BatchEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchEntry { + return new BatchEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchEntry { + return new BatchEntry().fromJsonString(jsonString, options); + } + + static equals(a: BatchEntry | PlainMessage | undefined, b: BatchEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchEntry, a, b); + } +} + +/** + * @generated from message cosmos.ics23.v1.CompressedBatchProof + */ +export class CompressedBatchProof extends Message { + /** + * @generated from field: repeated cosmos.ics23.v1.CompressedBatchEntry entries = 1; + */ + entries: CompressedBatchEntry[] = []; + + /** + * @generated from field: repeated cosmos.ics23.v1.InnerOp lookup_inners = 2; + */ + lookupInners: InnerOp[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.CompressedBatchProof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entries", kind: "message", T: CompressedBatchEntry, repeated: true }, + { no: 2, name: "lookup_inners", kind: "message", T: InnerOp, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompressedBatchProof { + return new CompressedBatchProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompressedBatchProof { + return new CompressedBatchProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompressedBatchProof { + return new CompressedBatchProof().fromJsonString(jsonString, options); + } + + static equals(a: CompressedBatchProof | PlainMessage | undefined, b: CompressedBatchProof | PlainMessage | undefined): boolean { + return proto3.util.equals(CompressedBatchProof, a, b); + } +} + +/** + * Use BatchEntry not CommitmentProof, to avoid recursion + * + * @generated from message cosmos.ics23.v1.CompressedBatchEntry + */ +export class CompressedBatchEntry extends Message { + /** + * @generated from oneof cosmos.ics23.v1.CompressedBatchEntry.proof + */ + proof: { + /** + * @generated from field: cosmos.ics23.v1.CompressedExistenceProof exist = 1; + */ + value: CompressedExistenceProof; + case: "exist"; + } | { + /** + * @generated from field: cosmos.ics23.v1.CompressedNonExistenceProof nonexist = 2; + */ + value: CompressedNonExistenceProof; + case: "nonexist"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.CompressedBatchEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exist", kind: "message", T: CompressedExistenceProof, oneof: "proof" }, + { no: 2, name: "nonexist", kind: "message", T: CompressedNonExistenceProof, oneof: "proof" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompressedBatchEntry { + return new CompressedBatchEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompressedBatchEntry { + return new CompressedBatchEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompressedBatchEntry { + return new CompressedBatchEntry().fromJsonString(jsonString, options); + } + + static equals(a: CompressedBatchEntry | PlainMessage | undefined, b: CompressedBatchEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(CompressedBatchEntry, a, b); + } +} + +/** + * @generated from message cosmos.ics23.v1.CompressedExistenceProof + */ +export class CompressedExistenceProof extends Message { + /** + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + /** + * @generated from field: bytes value = 2; + */ + value = new Uint8Array(0); + + /** + * @generated from field: cosmos.ics23.v1.LeafOp leaf = 3; + */ + leaf?: LeafOp; + + /** + * these are indexes into the lookup_inners table in CompressedBatchProof + * + * @generated from field: repeated int32 path = 4; + */ + path: number[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.CompressedExistenceProof"; + 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 */ }, + { no: 3, name: "leaf", kind: "message", T: LeafOp }, + { no: 4, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompressedExistenceProof { + return new CompressedExistenceProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompressedExistenceProof { + return new CompressedExistenceProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompressedExistenceProof { + return new CompressedExistenceProof().fromJsonString(jsonString, options); + } + + static equals(a: CompressedExistenceProof | PlainMessage | undefined, b: CompressedExistenceProof | PlainMessage | undefined): boolean { + return proto3.util.equals(CompressedExistenceProof, a, b); + } +} + +/** + * @generated from message cosmos.ics23.v1.CompressedNonExistenceProof + */ +export class CompressedNonExistenceProof extends Message { + /** + * TODO: remove this as unnecessary??? we prove a range + * + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + /** + * @generated from field: cosmos.ics23.v1.CompressedExistenceProof left = 2; + */ + left?: CompressedExistenceProof; + + /** + * @generated from field: cosmos.ics23.v1.CompressedExistenceProof right = 3; + */ + right?: CompressedExistenceProof; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.ics23.v1.CompressedNonExistenceProof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "left", kind: "message", T: CompressedExistenceProof }, + { no: 3, name: "right", kind: "message", T: CompressedExistenceProof }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompressedNonExistenceProof { + return new CompressedNonExistenceProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompressedNonExistenceProof { + return new CompressedNonExistenceProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompressedNonExistenceProof { + return new CompressedNonExistenceProof().fromJsonString(jsonString, options); + } + + static equals(a: CompressedNonExistenceProof | PlainMessage | undefined, b: CompressedNonExistenceProof | PlainMessage | undefined): boolean { + return proto3.util.equals(CompressedNonExistenceProof, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/authz_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/authz_pb.ts new file mode 100644 index 0000000..4097fdf --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/authz_pb.ts @@ -0,0 +1,505 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/authz.proto (package cosmwasm.wasm.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 { AccessConfig } from "./types_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * StoreCodeAuthorization defines authorization for wasm code upload. + * Since: wasmd 0.42 + * + * @generated from message cosmwasm.wasm.v1.StoreCodeAuthorization + */ +export class StoreCodeAuthorization extends Message { + /** + * Grants for code upload + * + * @generated from field: repeated cosmwasm.wasm.v1.CodeGrant grants = 1; + */ + grants: CodeGrant[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.StoreCodeAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grants", kind: "message", T: CodeGrant, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StoreCodeAuthorization { + return new StoreCodeAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StoreCodeAuthorization { + return new StoreCodeAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StoreCodeAuthorization { + return new StoreCodeAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: StoreCodeAuthorization | PlainMessage | undefined, b: StoreCodeAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(StoreCodeAuthorization, a, b); + } +} + +/** + * ContractExecutionAuthorization defines authorization for wasm execute. + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.ContractExecutionAuthorization + */ +export class ContractExecutionAuthorization extends Message { + /** + * Grants for contract executions + * + * @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1; + */ + grants: ContractGrant[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.ContractExecutionAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContractExecutionAuthorization { + return new ContractExecutionAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContractExecutionAuthorization { + return new ContractExecutionAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContractExecutionAuthorization { + return new ContractExecutionAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: ContractExecutionAuthorization | PlainMessage | undefined, b: ContractExecutionAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(ContractExecutionAuthorization, a, b); + } +} + +/** + * ContractMigrationAuthorization defines authorization for wasm contract + * migration. Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.ContractMigrationAuthorization + */ +export class ContractMigrationAuthorization extends Message { + /** + * Grants for contract migrations + * + * @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1; + */ + grants: ContractGrant[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.ContractMigrationAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContractMigrationAuthorization { + return new ContractMigrationAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContractMigrationAuthorization { + return new ContractMigrationAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContractMigrationAuthorization { + return new ContractMigrationAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: ContractMigrationAuthorization | PlainMessage | undefined, b: ContractMigrationAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(ContractMigrationAuthorization, a, b); + } +} + +/** + * CodeGrant a granted permission for a single code + * + * @generated from message cosmwasm.wasm.v1.CodeGrant + */ +export class CodeGrant extends Message { + /** + * CodeHash is the unique identifier created by wasmvm + * Wildcard "*" is used to specify any kind of grant. + * + * @generated from field: bytes code_hash = 1; + */ + codeHash = new Uint8Array(0); + + /** + * InstantiatePermission is the superset access control to apply + * on contract creation. + * Optional + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 2; + */ + instantiatePermission?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.CodeGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "instantiate_permission", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CodeGrant { + return new CodeGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CodeGrant { + return new CodeGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CodeGrant { + return new CodeGrant().fromJsonString(jsonString, options); + } + + static equals(a: CodeGrant | PlainMessage | undefined, b: CodeGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(CodeGrant, a, b); + } +} + +/** + * ContractGrant a granted permission for a single contract + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.ContractGrant + */ +export class ContractGrant extends Message { + /** + * Contract is the bech32 address of the smart contract + * + * @generated from field: string contract = 1; + */ + contract = ""; + + /** + * Limit defines execution limits that are enforced and updated when the grant + * is applied. When the limit lapsed the grant is removed. + * + * @generated from field: google.protobuf.Any limit = 2; + */ + limit?: Any; + + /** + * Filter define more fine-grained control on the message payload passed + * to the contract in the operation. When no filter applies on execution, the + * operation is prohibited. + * + * @generated from field: google.protobuf.Any filter = 3; + */ + filter?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.ContractGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "message", T: Any }, + { no: 3, name: "filter", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContractGrant { + return new ContractGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContractGrant { + return new ContractGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContractGrant { + return new ContractGrant().fromJsonString(jsonString, options); + } + + static equals(a: ContractGrant | PlainMessage | undefined, b: ContractGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(ContractGrant, a, b); + } +} + +/** + * MaxCallsLimit limited number of calls to the contract. No funds transferable. + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.MaxCallsLimit + */ +export class MaxCallsLimit extends Message { + /** + * Remaining number that is decremented on each execution + * + * @generated from field: uint64 remaining = 1; + */ + remaining = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MaxCallsLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MaxCallsLimit { + return new MaxCallsLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MaxCallsLimit { + return new MaxCallsLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MaxCallsLimit { + return new MaxCallsLimit().fromJsonString(jsonString, options); + } + + static equals(a: MaxCallsLimit | PlainMessage | undefined, b: MaxCallsLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(MaxCallsLimit, a, b); + } +} + +/** + * MaxFundsLimit defines the maximal amounts that can be sent to the contract. + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.MaxFundsLimit + */ +export class MaxFundsLimit extends Message { + /** + * Amounts is the maximal amount of tokens transferable to the contract. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 1; + */ + amounts: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MaxFundsLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amounts", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MaxFundsLimit { + return new MaxFundsLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MaxFundsLimit { + return new MaxFundsLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MaxFundsLimit { + return new MaxFundsLimit().fromJsonString(jsonString, options); + } + + static equals(a: MaxFundsLimit | PlainMessage | undefined, b: MaxFundsLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(MaxFundsLimit, a, b); + } +} + +/** + * CombinedLimit defines the maximal amounts that can be sent to a contract and + * the maximal number of calls executable. Both need to remain >0 to be valid. + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.CombinedLimit + */ +export class CombinedLimit extends Message { + /** + * Remaining number that is decremented on each execution + * + * @generated from field: uint64 calls_remaining = 1; + */ + callsRemaining = protoInt64.zero; + + /** + * Amounts is the maximal amount of tokens transferable to the contract. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 2; + */ + amounts: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.CombinedLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "calls_remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amounts", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CombinedLimit { + return new CombinedLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CombinedLimit { + return new CombinedLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CombinedLimit { + return new CombinedLimit().fromJsonString(jsonString, options); + } + + static equals(a: CombinedLimit | PlainMessage | undefined, b: CombinedLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(CombinedLimit, a, b); + } +} + +/** + * AllowAllMessagesFilter is a wildcard to allow any type of contract payload + * message. + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.AllowAllMessagesFilter + */ +export class AllowAllMessagesFilter extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.AllowAllMessagesFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllowAllMessagesFilter { + return new AllowAllMessagesFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllowAllMessagesFilter { + return new AllowAllMessagesFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllowAllMessagesFilter { + return new AllowAllMessagesFilter().fromJsonString(jsonString, options); + } + + static equals(a: AllowAllMessagesFilter | PlainMessage | undefined, b: AllowAllMessagesFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(AllowAllMessagesFilter, a, b); + } +} + +/** + * AcceptedMessageKeysFilter accept only the specific contract message keys in + * the json object to be executed. + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.AcceptedMessageKeysFilter + */ +export class AcceptedMessageKeysFilter extends Message { + /** + * Messages is the list of unique keys + * + * @generated from field: repeated string keys = 1; + */ + keys: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessageKeysFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AcceptedMessageKeysFilter { + return new AcceptedMessageKeysFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AcceptedMessageKeysFilter { + return new AcceptedMessageKeysFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AcceptedMessageKeysFilter { + return new AcceptedMessageKeysFilter().fromJsonString(jsonString, options); + } + + static equals(a: AcceptedMessageKeysFilter | PlainMessage | undefined, b: AcceptedMessageKeysFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(AcceptedMessageKeysFilter, a, b); + } +} + +/** + * AcceptedMessagesFilter accept only the specific raw contract messages to be + * executed. + * Since: wasmd 0.30 + * + * @generated from message cosmwasm.wasm.v1.AcceptedMessagesFilter + */ +export class AcceptedMessagesFilter extends Message { + /** + * Messages is the list of raw contract messages + * + * @generated from field: repeated bytes messages = 1; + */ + messages: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessagesFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "messages", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AcceptedMessagesFilter { + return new AcceptedMessagesFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AcceptedMessagesFilter { + return new AcceptedMessagesFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AcceptedMessagesFilter { + return new AcceptedMessagesFilter().fromJsonString(jsonString, options); + } + + static equals(a: AcceptedMessagesFilter | PlainMessage | undefined, b: AcceptedMessagesFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(AcceptedMessagesFilter, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/genesis_pb.ts new file mode 100644 index 0000000..66ec9d4 --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/genesis_pb.ts @@ -0,0 +1,227 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/genesis.proto (package cosmwasm.wasm.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 { CodeInfo, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types_pb.js"; + +/** + * GenesisState - genesis state of x/wasm + * + * @generated from message cosmwasm.wasm.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: cosmwasm.wasm.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated cosmwasm.wasm.v1.Code codes = 2; + */ + codes: Code[] = []; + + /** + * @generated from field: repeated cosmwasm.wasm.v1.Contract contracts = 3; + */ + contracts: Contract[] = []; + + /** + * @generated from field: repeated cosmwasm.wasm.v1.Sequence sequences = 4; + */ + sequences: Sequence[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "codes", kind: "message", T: Code, repeated: true }, + { no: 3, name: "contracts", kind: "message", T: Contract, repeated: true }, + { no: 4, name: "sequences", kind: "message", T: Sequence, 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); + } +} + +/** + * Code struct encompasses CodeInfo and CodeBytes + * + * @generated from message cosmwasm.wasm.v1.Code + */ +export class Code extends Message { + /** + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * @generated from field: cosmwasm.wasm.v1.CodeInfo code_info = 2; + */ + codeInfo?: CodeInfo; + + /** + * @generated from field: bytes code_bytes = 3; + */ + codeBytes = new Uint8Array(0); + + /** + * Pinned to wasmvm cache + * + * @generated from field: bool pinned = 4; + */ + pinned = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.Code"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "code_info", kind: "message", T: CodeInfo }, + { no: 3, name: "code_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "pinned", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Code { + return new Code().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Code { + return new Code().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Code { + return new Code().fromJsonString(jsonString, options); + } + + static equals(a: Code | PlainMessage | undefined, b: Code | PlainMessage | undefined): boolean { + return proto3.util.equals(Code, a, b); + } +} + +/** + * Contract struct encompasses ContractAddress, ContractInfo, and ContractState + * + * @generated from message cosmwasm.wasm.v1.Contract + */ +export class Contract extends Message { + /** + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * @generated from field: cosmwasm.wasm.v1.ContractInfo contract_info = 2; + */ + contractInfo?: ContractInfo; + + /** + * @generated from field: repeated cosmwasm.wasm.v1.Model contract_state = 3; + */ + contractState: Model[] = []; + + /** + * @generated from field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry contract_code_history = 4; + */ + contractCodeHistory: ContractCodeHistoryEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.Contract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract_info", kind: "message", T: ContractInfo }, + { no: 3, name: "contract_state", kind: "message", T: Model, repeated: true }, + { no: 4, name: "contract_code_history", kind: "message", T: ContractCodeHistoryEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Contract { + return new Contract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Contract { + return new Contract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Contract { + return new Contract().fromJsonString(jsonString, options); + } + + static equals(a: Contract | PlainMessage | undefined, b: Contract | PlainMessage | undefined): boolean { + return proto3.util.equals(Contract, a, b); + } +} + +/** + * Sequence key and value of an id generation counter + * + * @generated from message cosmwasm.wasm.v1.Sequence + */ +export class Sequence extends Message { + /** + * @generated from field: bytes id_key = 1; + */ + idKey = new Uint8Array(0); + + /** + * @generated from field: uint64 value = 2; + */ + value = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.Sequence"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Sequence { + return new Sequence().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Sequence { + return new Sequence().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Sequence { + return new Sequence().fromJsonString(jsonString, options); + } + + static equals(a: Sequence | PlainMessage | undefined, b: Sequence | PlainMessage | undefined): boolean { + return proto3.util.equals(Sequence, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts new file mode 100644 index 0000000..4704b63 --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts @@ -0,0 +1,189 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/ibc.proto (package cosmwasm.wasm.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"; + +/** + * MsgIBCSend + * + * @generated from message cosmwasm.wasm.v1.MsgIBCSend + */ +export class MsgIBCSend extends Message { + /** + * the channel by which the packet will be sent + * + * @generated from field: string channel = 2; + */ + channel = ""; + + /** + * Timeout height relative to the current block height. + * The timeout is disabled when set to 0. + * + * @generated from field: uint64 timeout_height = 4; + */ + timeoutHeight = protoInt64.zero; + + /** + * Timeout timestamp (in nanoseconds) relative to the current block timestamp. + * The timeout is disabled when set to 0. + * + * @generated from field: uint64 timeout_timestamp = 5; + */ + timeoutTimestamp = protoInt64.zero; + + /** + * Data is the payload to transfer. We must not make assumption what format or + * content is in here. + * + * @generated from field: bytes data = 6; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgIBCSend"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "timeout_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSend { + return new MsgIBCSend().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSend { + return new MsgIBCSend().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIBCSend { + return new MsgIBCSend().fromJsonString(jsonString, options); + } + + static equals(a: MsgIBCSend | PlainMessage | undefined, b: MsgIBCSend | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIBCSend, a, b); + } +} + +/** + * MsgIBCSendResponse + * + * @generated from message cosmwasm.wasm.v1.MsgIBCSendResponse + */ +export class MsgIBCSendResponse extends Message { + /** + * Sequence number of the IBC 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 = "cosmwasm.wasm.v1.MsgIBCSendResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSendResponse { + return new MsgIBCSendResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSendResponse { + return new MsgIBCSendResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIBCSendResponse { + return new MsgIBCSendResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIBCSendResponse | PlainMessage | undefined, b: MsgIBCSendResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIBCSendResponse, a, b); + } +} + +/** + * MsgIBCWriteAcknowledgementResponse + * + * @generated from message cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse + */ +export class MsgIBCWriteAcknowledgementResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCWriteAcknowledgementResponse { + return new MsgIBCWriteAcknowledgementResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCWriteAcknowledgementResponse { + return new MsgIBCWriteAcknowledgementResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIBCWriteAcknowledgementResponse { + return new MsgIBCWriteAcknowledgementResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIBCWriteAcknowledgementResponse | PlainMessage | undefined, b: MsgIBCWriteAcknowledgementResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIBCWriteAcknowledgementResponse, a, b); + } +} + +/** + * MsgIBCCloseChannel port and channel need to be owned by the contract + * + * @generated from message cosmwasm.wasm.v1.MsgIBCCloseChannel + */ +export class MsgIBCCloseChannel extends Message { + /** + * @generated from field: string channel = 2; + */ + channel = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgIBCCloseChannel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCCloseChannel { + return new MsgIBCCloseChannel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCCloseChannel { + return new MsgIBCCloseChannel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIBCCloseChannel { + return new MsgIBCCloseChannel().fromJsonString(jsonString, options); + } + + static equals(a: MsgIBCCloseChannel | PlainMessage | undefined, b: MsgIBCCloseChannel | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIBCCloseChannel, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts new file mode 100644 index 0000000..bad308b --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts @@ -0,0 +1,1080 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/proposal_legacy.proto (package cosmwasm.wasm.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 { AccessConfig } from "./types_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit StoreCodeProposal. To submit WASM code to the system, + * a simple MsgStoreCode can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.StoreCodeProposal + * @deprecated + */ +export class StoreCodeProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * RunAs is the address that is passed to the contract's environment as sender + * + * @generated from field: string run_as = 3; + */ + runAs = ""; + + /** + * WASMByteCode can be raw or gzip compressed + * + * @generated from field: bytes wasm_byte_code = 4; + */ + wasmByteCode = new Uint8Array(0); + + /** + * InstantiatePermission to apply on contract creation, optional + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 7; + */ + instantiatePermission?: AccessConfig; + + /** + * UnpinCode code on upload, optional + * + * @generated from field: bool unpin_code = 8; + */ + unpinCode = false; + + /** + * Source is the URL where the code is hosted + * + * @generated from field: string source = 9; + */ + source = ""; + + /** + * Builder is the docker image used to build the code deterministically, used + * for smart contract verification + * + * @generated from field: string builder = 10; + */ + builder = ""; + + /** + * CodeHash is the SHA256 sum of the code outputted by builder, used for smart + * contract verification + * + * @generated from field: bytes code_hash = 11; + */ + codeHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.StoreCodeProposal"; + 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: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "instantiate_permission", kind: "message", T: AccessConfig }, + { no: 8, name: "unpin_code", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "builder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StoreCodeProposal { + return new StoreCodeProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StoreCodeProposal { + return new StoreCodeProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StoreCodeProposal { + return new StoreCodeProposal().fromJsonString(jsonString, options); + } + + static equals(a: StoreCodeProposal | PlainMessage | undefined, b: StoreCodeProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(StoreCodeProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit InstantiateContractProposal. To instantiate a contract, + * a simple MsgInstantiateContract can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.InstantiateContractProposal + * @deprecated + */ +export class InstantiateContractProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * RunAs is the address that is passed to the contract's environment as sender + * + * @generated from field: string run_as = 3; + */ + runAs = ""; + + /** + * Admin is an optional address that can execute migrations + * + * @generated from field: string admin = 4; + */ + admin = ""; + + /** + * CodeID is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 5; + */ + codeId = protoInt64.zero; + + /** + * Label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 6; + */ + label = ""; + + /** + * Msg json encoded message to be passed to the contract on instantiation + * + * @generated from field: bytes msg = 7; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred to the contract on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 8; + */ + funds: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.InstantiateContractProposal"; + 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: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "funds", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InstantiateContractProposal { + return new InstantiateContractProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InstantiateContractProposal { + return new InstantiateContractProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InstantiateContractProposal { + return new InstantiateContractProposal().fromJsonString(jsonString, options); + } + + static equals(a: InstantiateContractProposal | PlainMessage | undefined, b: InstantiateContractProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(InstantiateContractProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit InstantiateContract2Proposal. To instantiate contract 2, + * a simple MsgInstantiateContract2 can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.InstantiateContract2Proposal + * @deprecated + */ +export class InstantiateContract2Proposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * RunAs is the address that is passed to the contract's environment as sender + * + * @generated from field: string run_as = 3; + */ + runAs = ""; + + /** + * Admin is an optional address that can execute migrations + * + * @generated from field: string admin = 4; + */ + admin = ""; + + /** + * CodeID is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 5; + */ + codeId = protoInt64.zero; + + /** + * Label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 6; + */ + label = ""; + + /** + * Msg json encode message to be passed to the contract on instantiation + * + * @generated from field: bytes msg = 7; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred to the contract on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 8; + */ + funds: Coin[] = []; + + /** + * Salt is an arbitrary value provided by the sender. Size can be 1 to 64. + * + * @generated from field: bytes salt = 9; + */ + salt = new Uint8Array(0); + + /** + * FixMsg include the msg value into the hash for the predictable address. + * Default is false + * + * @generated from field: bool fix_msg = 10; + */ + fixMsg = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.InstantiateContract2Proposal"; + 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: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "funds", kind: "message", T: Coin, repeated: true }, + { no: 9, name: "salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 10, name: "fix_msg", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InstantiateContract2Proposal { + return new InstantiateContract2Proposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InstantiateContract2Proposal { + return new InstantiateContract2Proposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InstantiateContract2Proposal { + return new InstantiateContract2Proposal().fromJsonString(jsonString, options); + } + + static equals(a: InstantiateContract2Proposal | PlainMessage | undefined, b: InstantiateContract2Proposal | PlainMessage | undefined): boolean { + return proto3.util.equals(InstantiateContract2Proposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit MigrateContractProposal. To migrate a contract, + * a simple MsgMigrateContract can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.MigrateContractProposal + * @deprecated + */ +export class MigrateContractProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * Note: skipping 3 as this was previously used for unneeded run_as + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 4; + */ + contract = ""; + + /** + * CodeID references the new WASM code + * + * @generated from field: uint64 code_id = 5; + */ + codeId = protoInt64.zero; + + /** + * Msg json encoded message to be passed to the contract on migration + * + * @generated from field: bytes msg = 6; + */ + msg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MigrateContractProposal"; + 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: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MigrateContractProposal { + return new MigrateContractProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MigrateContractProposal { + return new MigrateContractProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MigrateContractProposal { + return new MigrateContractProposal().fromJsonString(jsonString, options); + } + + static equals(a: MigrateContractProposal | PlainMessage | undefined, b: MigrateContractProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MigrateContractProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit SudoContractProposal. To call sudo on a contract, + * a simple MsgSudoContract can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.SudoContractProposal + * @deprecated + */ +export class SudoContractProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 3; + */ + contract = ""; + + /** + * Msg json encoded message to be passed to the contract as sudo + * + * @generated from field: bytes msg = 4; + */ + msg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.SudoContractProposal"; + 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: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SudoContractProposal { + return new SudoContractProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SudoContractProposal { + return new SudoContractProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SudoContractProposal { + return new SudoContractProposal().fromJsonString(jsonString, options); + } + + static equals(a: SudoContractProposal | PlainMessage | undefined, b: SudoContractProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(SudoContractProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit ExecuteContractProposal. To call execute on a contract, + * a simple MsgExecuteContract can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.ExecuteContractProposal + * @deprecated + */ +export class ExecuteContractProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * RunAs is the address that is passed to the contract's environment as sender + * + * @generated from field: string run_as = 3; + */ + runAs = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 4; + */ + contract = ""; + + /** + * Msg json encoded message to be passed to the contract as execute + * + * @generated from field: bytes msg = 5; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred to the contract on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; + */ + funds: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.ExecuteContractProposal"; + 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: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteContractProposal { + return new ExecuteContractProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteContractProposal { + return new ExecuteContractProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecuteContractProposal { + return new ExecuteContractProposal().fromJsonString(jsonString, options); + } + + static equals(a: ExecuteContractProposal | PlainMessage | undefined, b: ExecuteContractProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecuteContractProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit UpdateAdminProposal. To set an admin for a contract, + * a simple MsgUpdateAdmin can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.UpdateAdminProposal + * @deprecated + */ +export class UpdateAdminProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * NewAdmin address to be set + * + * @generated from field: string new_admin = 3; + */ + newAdmin = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 4; + */ + contract = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.UpdateAdminProposal"; + 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: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAdminProposal { + return new UpdateAdminProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAdminProposal { + return new UpdateAdminProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateAdminProposal { + return new UpdateAdminProposal().fromJsonString(jsonString, options); + } + + static equals(a: UpdateAdminProposal | PlainMessage | undefined, b: UpdateAdminProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateAdminProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit ClearAdminProposal. To clear the admin of a contract, + * a simple MsgClearAdmin can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.ClearAdminProposal + * @deprecated + */ +export class ClearAdminProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 3; + */ + contract = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.ClearAdminProposal"; + 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: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClearAdminProposal { + return new ClearAdminProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClearAdminProposal { + return new ClearAdminProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClearAdminProposal { + return new ClearAdminProposal().fromJsonString(jsonString, options); + } + + static equals(a: ClearAdminProposal | PlainMessage | undefined, b: ClearAdminProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(ClearAdminProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit PinCodesProposal. To pin a set of code ids in the wasmvm + * cache, a simple MsgPinCodes can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.PinCodesProposal + * @deprecated + */ +export class PinCodesProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * CodeIDs references the new WASM codes + * + * @generated from field: repeated uint64 code_ids = 3; + */ + codeIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.PinCodesProposal"; + 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: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PinCodesProposal { + return new PinCodesProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PinCodesProposal { + return new PinCodesProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PinCodesProposal { + return new PinCodesProposal().fromJsonString(jsonString, options); + } + + static equals(a: PinCodesProposal | PlainMessage | undefined, b: PinCodesProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(PinCodesProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm + * cache, a simple MsgUnpinCodes can be invoked from the x/gov module via + * a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.UnpinCodesProposal + * @deprecated + */ +export class UnpinCodesProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * CodeIDs references the WASM codes + * + * @generated from field: repeated uint64 code_ids = 3; + */ + codeIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.UnpinCodesProposal"; + 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: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnpinCodesProposal { + return new UnpinCodesProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnpinCodesProposal { + return new UnpinCodesProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnpinCodesProposal { + return new UnpinCodesProposal().fromJsonString(jsonString, options); + } + + static equals(a: UnpinCodesProposal | PlainMessage | undefined, b: UnpinCodesProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(UnpinCodesProposal, a, b); + } +} + +/** + * AccessConfigUpdate contains the code id and the access config to be + * applied. + * + * @generated from message cosmwasm.wasm.v1.AccessConfigUpdate + */ +export class AccessConfigUpdate extends Message { + /** + * CodeID is the reference to the stored WASM code to be updated + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * InstantiatePermission to apply to the set of code ids + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 2; + */ + instantiatePermission?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.AccessConfigUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "instantiate_permission", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessConfigUpdate { + return new AccessConfigUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessConfigUpdate { + return new AccessConfigUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessConfigUpdate { + return new AccessConfigUpdate().fromJsonString(jsonString, options); + } + + static equals(a: AccessConfigUpdate | PlainMessage | undefined, b: AccessConfigUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessConfigUpdate, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit UpdateInstantiateConfigProposal. To update instantiate config + * to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from + * the x/gov module via a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.UpdateInstantiateConfigProposal + * @deprecated + */ +export class UpdateInstantiateConfigProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * AccessConfigUpdate contains the list of code ids and the access config + * to be applied. + * + * @generated from field: repeated cosmwasm.wasm.v1.AccessConfigUpdate access_config_updates = 3; + */ + accessConfigUpdates: AccessConfigUpdate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.UpdateInstantiateConfigProposal"; + 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: "access_config_updates", kind: "message", T: AccessConfigUpdate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateInstantiateConfigProposal { + return new UpdateInstantiateConfigProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateInstantiateConfigProposal { + return new UpdateInstantiateConfigProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateInstantiateConfigProposal { + return new UpdateInstantiateConfigProposal().fromJsonString(jsonString, options); + } + + static equals(a: UpdateInstantiateConfigProposal | PlainMessage | undefined, b: UpdateInstantiateConfigProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateInstantiateConfigProposal, a, b); + } +} + +/** + * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for + * an explicit StoreAndInstantiateContractProposal. To store and instantiate + * the contract, a simple MsgStoreAndInstantiateContract can be invoked from + * the x/gov module via a v1 governance proposal. + * + * @generated from message cosmwasm.wasm.v1.StoreAndInstantiateContractProposal + * @deprecated + */ +export class StoreAndInstantiateContractProposal extends Message { + /** + * Title is a short summary + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * Description is a human readable text + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * RunAs is the address that is passed to the contract's environment as sender + * + * @generated from field: string run_as = 3; + */ + runAs = ""; + + /** + * WASMByteCode can be raw or gzip compressed + * + * @generated from field: bytes wasm_byte_code = 4; + */ + wasmByteCode = new Uint8Array(0); + + /** + * InstantiatePermission to apply on contract creation, optional + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 5; + */ + instantiatePermission?: AccessConfig; + + /** + * UnpinCode code on upload, optional + * + * @generated from field: bool unpin_code = 6; + */ + unpinCode = false; + + /** + * Admin is an optional address that can execute migrations + * + * @generated from field: string admin = 7; + */ + admin = ""; + + /** + * Label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 8; + */ + label = ""; + + /** + * Msg json encoded message to be passed to the contract on instantiation + * + * @generated from field: bytes msg = 9; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred to the contract on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 10; + */ + funds: Coin[] = []; + + /** + * Source is the URL where the code is hosted + * + * @generated from field: string source = 11; + */ + source = ""; + + /** + * Builder is the docker image used to build the code deterministically, used + * for smart contract verification + * + * @generated from field: string builder = 12; + */ + builder = ""; + + /** + * CodeHash is the SHA256 sum of the code outputted by builder, used for smart + * contract verification + * + * @generated from field: bytes code_hash = 13; + */ + codeHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.StoreAndInstantiateContractProposal"; + 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: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "instantiate_permission", kind: "message", T: AccessConfig }, + { no: 6, name: "unpin_code", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 10, name: "funds", kind: "message", T: Coin, repeated: true }, + { no: 11, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "builder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StoreAndInstantiateContractProposal { + return new StoreAndInstantiateContractProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StoreAndInstantiateContractProposal { + return new StoreAndInstantiateContractProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StoreAndInstantiateContractProposal { + return new StoreAndInstantiateContractProposal().fromJsonString(jsonString, options); + } + + static equals(a: StoreAndInstantiateContractProposal | PlainMessage | undefined, b: StoreAndInstantiateContractProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(StoreAndInstantiateContractProposal, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_cosmes.ts new file mode 100644 index 0000000..369a436 --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_cosmes.ts @@ -0,0 +1,178 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/query.proto (package cosmwasm.wasm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllContractStateRequest, QueryAllContractStateResponse, QueryBuildAddressRequest, QueryBuildAddressResponse, QueryCodeInfoRequest, QueryCodeInfoResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse, QueryParamsRequest, QueryParamsResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryWasmLimitsConfigRequest, QueryWasmLimitsConfigResponse } from "./query_pb.js"; + +const TYPE_NAME = "cosmwasm.wasm.v1.Query"; + +/** + * ContractInfo gets the contract meta data + * + * @generated from rpc cosmwasm.wasm.v1.Query.ContractInfo + */ +export const QueryContractInfoService = { + typeName: TYPE_NAME, + method: "ContractInfo", + Request: QueryContractInfoRequest, + Response: QueryContractInfoResponse, +} as const; + +/** + * ContractHistory gets the contract code history + * + * @generated from rpc cosmwasm.wasm.v1.Query.ContractHistory + */ +export const QueryContractHistoryService = { + typeName: TYPE_NAME, + method: "ContractHistory", + Request: QueryContractHistoryRequest, + Response: QueryContractHistoryResponse, +} as const; + +/** + * ContractsByCode lists all smart contracts for a code id + * + * @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCode + */ +export const QueryContractsByCodeService = { + typeName: TYPE_NAME, + method: "ContractsByCode", + Request: QueryContractsByCodeRequest, + Response: QueryContractsByCodeResponse, +} as const; + +/** + * AllContractState gets all raw store data for a single contract + * + * @generated from rpc cosmwasm.wasm.v1.Query.AllContractState + */ +export const QueryAllContractStateService = { + typeName: TYPE_NAME, + method: "AllContractState", + Request: QueryAllContractStateRequest, + Response: QueryAllContractStateResponse, +} as const; + +/** + * RawContractState gets single key from the raw store data of a contract + * + * @generated from rpc cosmwasm.wasm.v1.Query.RawContractState + */ +export const QueryRawContractStateService = { + typeName: TYPE_NAME, + method: "RawContractState", + Request: QueryRawContractStateRequest, + Response: QueryRawContractStateResponse, +} as const; + +/** + * SmartContractState get smart query result from the contract + * + * @generated from rpc cosmwasm.wasm.v1.Query.SmartContractState + */ +export const QuerySmartContractStateService = { + typeName: TYPE_NAME, + method: "SmartContractState", + Request: QuerySmartContractStateRequest, + Response: QuerySmartContractStateResponse, +} as const; + +/** + * Code gets the binary code and metadata for a single wasm code + * + * @generated from rpc cosmwasm.wasm.v1.Query.Code + */ +export const QueryCodeService = { + typeName: TYPE_NAME, + method: "Code", + Request: QueryCodeRequest, + Response: QueryCodeResponse, +} as const; + +/** + * Codes gets the metadata for all stored wasm codes + * + * @generated from rpc cosmwasm.wasm.v1.Query.Codes + */ +export const QueryCodesService = { + typeName: TYPE_NAME, + method: "Codes", + Request: QueryCodesRequest, + Response: QueryCodesResponse, +} as const; + +/** + * CodeInfo gets the metadata for a single wasm code + * + * @generated from rpc cosmwasm.wasm.v1.Query.CodeInfo + */ +export const QueryCodeInfoService = { + typeName: TYPE_NAME, + method: "CodeInfo", + Request: QueryCodeInfoRequest, + Response: QueryCodeInfoResponse, +} as const; + +/** + * PinnedCodes gets the pinned code ids + * + * @generated from rpc cosmwasm.wasm.v1.Query.PinnedCodes + */ +export const QueryPinnedCodesService = { + typeName: TYPE_NAME, + method: "PinnedCodes", + Request: QueryPinnedCodesRequest, + Response: QueryPinnedCodesResponse, +} as const; + +/** + * Params gets the module params + * + * @generated from rpc cosmwasm.wasm.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * ContractsByCreator gets the contracts by creator + * + * @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCreator + */ +export const QueryContractsByCreatorService = { + typeName: TYPE_NAME, + method: "ContractsByCreator", + Request: QueryContractsByCreatorRequest, + Response: QueryContractsByCreatorResponse, +} as const; + +/** + * WasmLimitsConfig gets the configured limits for static validation of Wasm + * files, encoded in JSON. + * + * @generated from rpc cosmwasm.wasm.v1.Query.WasmLimitsConfig + */ +export const QueryWasmLimitsConfigService = { + typeName: TYPE_NAME, + method: "WasmLimitsConfig", + Request: QueryWasmLimitsConfigRequest, + Response: QueryWasmLimitsConfigResponse, +} as const; + +/** + * BuildAddress builds a contract address + * + * @generated from rpc cosmwasm.wasm.v1.Query.BuildAddress + */ +export const QueryBuildAddressService = { + typeName: TYPE_NAME, + method: "BuildAddress", + Request: QueryBuildAddressRequest, + Response: QueryBuildAddressResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_pb.ts new file mode 100644 index 0000000..87bef60 --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_pb.ts @@ -0,0 +1,1357 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/query.proto (package cosmwasm.wasm.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 { AccessConfig, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryContractInfoRequest is the request type for the Query/ContractInfo RPC + * method + * + * @generated from message cosmwasm.wasm.v1.QueryContractInfoRequest + */ +export class QueryContractInfoRequest extends Message { + /** + * address is the address of the contract to query + * + * @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 = "cosmwasm.wasm.v1.QueryContractInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractInfoRequest { + return new QueryContractInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractInfoRequest { + return new QueryContractInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractInfoRequest { + return new QueryContractInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractInfoRequest | PlainMessage | undefined, b: QueryContractInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractInfoRequest, a, b); + } +} + +/** + * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC + * method + * + * @generated from message cosmwasm.wasm.v1.QueryContractInfoResponse + */ +export class QueryContractInfoResponse extends Message { + /** + * address is the address of the contract + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmwasm.wasm.v1.ContractInfo contract_info = 2; + */ + contractInfo?: ContractInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryContractInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract_info", kind: "message", T: ContractInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractInfoResponse { + return new QueryContractInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractInfoResponse { + return new QueryContractInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractInfoResponse { + return new QueryContractInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractInfoResponse | PlainMessage | undefined, b: QueryContractInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractInfoResponse, a, b); + } +} + +/** + * QueryContractHistoryRequest is the request type for the Query/ContractHistory + * RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryContractHistoryRequest + */ +export class QueryContractHistoryRequest extends Message { + /** + * address is the address of the contract to query + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryContractHistoryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractHistoryRequest { + return new QueryContractHistoryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractHistoryRequest { + return new QueryContractHistoryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractHistoryRequest { + return new QueryContractHistoryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractHistoryRequest | PlainMessage | undefined, b: QueryContractHistoryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractHistoryRequest, a, b); + } +} + +/** + * QueryContractHistoryResponse is the response type for the + * Query/ContractHistory RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryContractHistoryResponse + */ +export class QueryContractHistoryResponse extends Message { + /** + * @generated from field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1; + */ + entries: ContractCodeHistoryEntry[] = []; + + /** + * 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 = "cosmwasm.wasm.v1.QueryContractHistoryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entries", kind: "message", T: ContractCodeHistoryEntry, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractHistoryResponse { + return new QueryContractHistoryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractHistoryResponse { + return new QueryContractHistoryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractHistoryResponse { + return new QueryContractHistoryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractHistoryResponse | PlainMessage | undefined, b: QueryContractHistoryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractHistoryResponse, a, b); + } +} + +/** + * QueryContractsByCodeRequest is the request type for the Query/ContractsByCode + * RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryContractsByCodeRequest + */ +export class QueryContractsByCodeRequest extends Message { + /** + * grpc-gateway_out does not support Go style CodeID + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCodeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCodeRequest { + return new QueryContractsByCodeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCodeRequest { + return new QueryContractsByCodeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCodeRequest { + return new QueryContractsByCodeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractsByCodeRequest | PlainMessage | undefined, b: QueryContractsByCodeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractsByCodeRequest, a, b); + } +} + +/** + * QueryContractsByCodeResponse is the response type for the + * Query/ContractsByCode RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryContractsByCodeResponse + */ +export class QueryContractsByCodeResponse extends Message { + /** + * contracts are a set of contract addresses + * + * @generated from field: repeated string contracts = 1; + */ + contracts: string[] = []; + + /** + * 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 = "cosmwasm.wasm.v1.QueryContractsByCodeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCodeResponse { + return new QueryContractsByCodeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCodeResponse { + return new QueryContractsByCodeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCodeResponse { + return new QueryContractsByCodeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractsByCodeResponse | PlainMessage | undefined, b: QueryContractsByCodeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractsByCodeResponse, a, b); + } +} + +/** + * QueryAllContractStateRequest is the request type for the + * Query/AllContractState RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryAllContractStateRequest + */ +export class QueryAllContractStateRequest extends Message { + /** + * address is the address of the contract + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryAllContractStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllContractStateRequest { + return new QueryAllContractStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllContractStateRequest { + return new QueryAllContractStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllContractStateRequest { + return new QueryAllContractStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllContractStateRequest | PlainMessage | undefined, b: QueryAllContractStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllContractStateRequest, a, b); + } +} + +/** + * QueryAllContractStateResponse is the response type for the + * Query/AllContractState RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryAllContractStateResponse + */ +export class QueryAllContractStateResponse extends Message { + /** + * @generated from field: repeated cosmwasm.wasm.v1.Model models = 1; + */ + models: Model[] = []; + + /** + * 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 = "cosmwasm.wasm.v1.QueryAllContractStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "models", kind: "message", T: Model, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllContractStateResponse { + return new QueryAllContractStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllContractStateResponse { + return new QueryAllContractStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllContractStateResponse { + return new QueryAllContractStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllContractStateResponse | PlainMessage | undefined, b: QueryAllContractStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllContractStateResponse, a, b); + } +} + +/** + * QueryRawContractStateRequest is the request type for the + * Query/RawContractState RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryRawContractStateRequest + */ +export class QueryRawContractStateRequest extends Message { + /** + * address is the address of the contract + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: bytes query_data = 2; + */ + queryData = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryRawContractStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "query_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawContractStateRequest { + return new QueryRawContractStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawContractStateRequest { + return new QueryRawContractStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRawContractStateRequest { + return new QueryRawContractStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRawContractStateRequest | PlainMessage | undefined, b: QueryRawContractStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRawContractStateRequest, a, b); + } +} + +/** + * QueryRawContractStateResponse is the response type for the + * Query/RawContractState RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryRawContractStateResponse + */ +export class QueryRawContractStateResponse extends Message { + /** + * Data contains the raw store data + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryRawContractStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawContractStateResponse { + return new QueryRawContractStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawContractStateResponse { + return new QueryRawContractStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRawContractStateResponse { + return new QueryRawContractStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRawContractStateResponse | PlainMessage | undefined, b: QueryRawContractStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRawContractStateResponse, a, b); + } +} + +/** + * QuerySmartContractStateRequest is the request type for the + * Query/SmartContractState RPC method + * + * @generated from message cosmwasm.wasm.v1.QuerySmartContractStateRequest + */ +export class QuerySmartContractStateRequest extends Message { + /** + * address is the address of the contract + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * QueryData contains the query data passed to the contract + * + * @generated from field: bytes query_data = 2; + */ + queryData = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QuerySmartContractStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "query_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySmartContractStateRequest { + return new QuerySmartContractStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySmartContractStateRequest { + return new QuerySmartContractStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySmartContractStateRequest { + return new QuerySmartContractStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySmartContractStateRequest | PlainMessage | undefined, b: QuerySmartContractStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySmartContractStateRequest, a, b); + } +} + +/** + * QuerySmartContractStateResponse is the response type for the + * Query/SmartContractState RPC method + * + * @generated from message cosmwasm.wasm.v1.QuerySmartContractStateResponse + */ +export class QuerySmartContractStateResponse extends Message { + /** + * Data contains the json data returned from the smart contract + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QuerySmartContractStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySmartContractStateResponse { + return new QuerySmartContractStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySmartContractStateResponse { + return new QuerySmartContractStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySmartContractStateResponse { + return new QuerySmartContractStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySmartContractStateResponse | PlainMessage | undefined, b: QuerySmartContractStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySmartContractStateResponse, a, b); + } +} + +/** + * QueryCodeRequest is the request type for the Query/Code RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodeRequest + */ +export class QueryCodeRequest extends Message { + /** + * grpc-gateway_out does not support Go style CodeID + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryCodeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeRequest, a, b); + } +} + +/** + * QueryCodeInfoRequest is the request type for the Query/CodeInfo RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodeInfoRequest + */ +export class QueryCodeInfoRequest extends Message { + /** + * grpc-gateway_out does not support Go style CodeID + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryCodeInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeInfoRequest { + return new QueryCodeInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeInfoRequest { + return new QueryCodeInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeInfoRequest { + return new QueryCodeInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeInfoRequest | PlainMessage | undefined, b: QueryCodeInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeInfoRequest, a, b); + } +} + +/** + * QueryCodeInfoResponse is the response type for the Query/CodeInfo RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodeInfoResponse + */ +export class QueryCodeInfoResponse extends Message { + /** + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * @generated from field: bytes checksum = 3; + */ + checksum = new Uint8Array(0); + + /** + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 4; + */ + instantiatePermission?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryCodeInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "instantiate_permission", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeInfoResponse { + return new QueryCodeInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeInfoResponse { + return new QueryCodeInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeInfoResponse { + return new QueryCodeInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeInfoResponse | PlainMessage | undefined, b: QueryCodeInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeInfoResponse, a, b); + } +} + +/** + * CodeInfoResponse contains code meta data from CodeInfo + * + * @generated from message cosmwasm.wasm.v1.CodeInfoResponse + */ +export class CodeInfoResponse extends Message { + /** + * id for legacy support + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * @generated from field: bytes data_hash = 3; + */ + dataHash = new Uint8Array(0); + + /** + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6; + */ + instantiatePermission?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.CodeInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "data_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "instantiate_permission", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CodeInfoResponse { + return new CodeInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CodeInfoResponse { + return new CodeInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CodeInfoResponse { + return new CodeInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: CodeInfoResponse | PlainMessage | undefined, b: CodeInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CodeInfoResponse, a, b); + } +} + +/** + * QueryCodeResponse is the response type for the Query/Code RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodeResponse + */ +export class QueryCodeResponse extends Message { + /** + * @generated from field: cosmwasm.wasm.v1.CodeInfoResponse code_info = 1; + */ + codeInfo?: CodeInfoResponse; + + /** + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryCodeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_info", kind: "message", T: CodeInfoResponse }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeResponse, a, b); + } +} + +/** + * QueryCodesRequest is the request type for the Query/Codes RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodesRequest + */ +export class QueryCodesRequest 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 = "cosmwasm.wasm.v1.QueryCodesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodesRequest { + return new QueryCodesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodesRequest { + return new QueryCodesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodesRequest { + return new QueryCodesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodesRequest | PlainMessage | undefined, b: QueryCodesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodesRequest, a, b); + } +} + +/** + * QueryCodesResponse is the response type for the Query/Codes RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodesResponse + */ +export class QueryCodesResponse extends Message { + /** + * @generated from field: repeated cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1; + */ + codeInfos: CodeInfoResponse[] = []; + + /** + * 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 = "cosmwasm.wasm.v1.QueryCodesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_infos", kind: "message", T: CodeInfoResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodesResponse { + return new QueryCodesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodesResponse { + return new QueryCodesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodesResponse { + return new QueryCodesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodesResponse | PlainMessage | undefined, b: QueryCodesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodesResponse, a, b); + } +} + +/** + * QueryPinnedCodesRequest is the request type for the Query/PinnedCodes + * RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryPinnedCodesRequest + */ +export class QueryPinnedCodesRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryPinnedCodesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPinnedCodesRequest { + return new QueryPinnedCodesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPinnedCodesRequest { + return new QueryPinnedCodesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPinnedCodesRequest { + return new QueryPinnedCodesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPinnedCodesRequest | PlainMessage | undefined, b: QueryPinnedCodesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPinnedCodesRequest, a, b); + } +} + +/** + * QueryPinnedCodesResponse is the response type for the + * Query/PinnedCodes RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryPinnedCodesResponse + */ +export class QueryPinnedCodesResponse extends Message { + /** + * @generated from field: repeated uint64 code_ids = 1; + */ + codeIds: bigint[] = []; + + /** + * 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 = "cosmwasm.wasm.v1.QueryPinnedCodesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPinnedCodesResponse { + return new QueryPinnedCodesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPinnedCodesResponse { + return new QueryPinnedCodesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPinnedCodesResponse { + return new QueryPinnedCodesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPinnedCodesResponse | PlainMessage | undefined, b: QueryPinnedCodesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPinnedCodesResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message cosmwasm.wasm.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 = "cosmwasm.wasm.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 cosmwasm.wasm.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: cosmwasm.wasm.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.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); + } +} + +/** + * QueryContractsByCreatorRequest is the request type for the + * Query/ContractsByCreator RPC method. + * + * @generated from message cosmwasm.wasm.v1.QueryContractsByCreatorRequest + */ +export class QueryContractsByCreatorRequest extends Message { + /** + * CreatorAddress is the address of contract creator + * + * @generated from field: string creator_address = 1; + */ + creatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCreatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCreatorRequest { + return new QueryContractsByCreatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCreatorRequest { + return new QueryContractsByCreatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCreatorRequest { + return new QueryContractsByCreatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractsByCreatorRequest | PlainMessage | undefined, b: QueryContractsByCreatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractsByCreatorRequest, a, b); + } +} + +/** + * QueryContractsByCreatorResponse is the response type for the + * Query/ContractsByCreator RPC method. + * + * @generated from message cosmwasm.wasm.v1.QueryContractsByCreatorResponse + */ +export class QueryContractsByCreatorResponse extends Message { + /** + * ContractAddresses result set + * + * @generated from field: repeated string contract_addresses = 1; + */ + contractAddresses: string[] = []; + + /** + * 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 = "cosmwasm.wasm.v1.QueryContractsByCreatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCreatorResponse { + return new QueryContractsByCreatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCreatorResponse { + return new QueryContractsByCreatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCreatorResponse { + return new QueryContractsByCreatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryContractsByCreatorResponse | PlainMessage | undefined, b: QueryContractsByCreatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryContractsByCreatorResponse, a, b); + } +} + +/** + * QueryWasmLimitsConfigRequest is the request type for the + * Query/WasmLimitsConfig RPC method. + * + * @generated from message cosmwasm.wasm.v1.QueryWasmLimitsConfigRequest + */ +export class QueryWasmLimitsConfigRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryWasmLimitsConfigRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWasmLimitsConfigRequest { + return new QueryWasmLimitsConfigRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWasmLimitsConfigRequest { + return new QueryWasmLimitsConfigRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWasmLimitsConfigRequest { + return new QueryWasmLimitsConfigRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWasmLimitsConfigRequest | PlainMessage | undefined, b: QueryWasmLimitsConfigRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWasmLimitsConfigRequest, a, b); + } +} + +/** + * QueryWasmLimitsConfigResponse is the response type for the + * Query/WasmLimitsConfig RPC method. It contains the JSON encoded limits for + * static validation of Wasm files. + * + * @generated from message cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse + */ +export class QueryWasmLimitsConfigResponse extends Message { + /** + * @generated from field: string config = 1; + */ + config = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "config", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWasmLimitsConfigResponse { + return new QueryWasmLimitsConfigResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWasmLimitsConfigResponse { + return new QueryWasmLimitsConfigResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWasmLimitsConfigResponse { + return new QueryWasmLimitsConfigResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWasmLimitsConfigResponse | PlainMessage | undefined, b: QueryWasmLimitsConfigResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWasmLimitsConfigResponse, a, b); + } +} + +/** + * QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC + * method. + * + * @generated from message cosmwasm.wasm.v1.QueryBuildAddressRequest + */ +export class QueryBuildAddressRequest extends Message { + /** + * CodeHash is the hash of the code + * + * @generated from field: string code_hash = 1; + */ + codeHash = ""; + + /** + * CreatorAddress is the address of the contract instantiator + * + * @generated from field: string creator_address = 2; + */ + creatorAddress = ""; + + /** + * Salt is a hex encoded salt + * + * @generated from field: string salt = 3; + */ + salt = ""; + + /** + * InitArgs are optional json encoded init args to be used in contract address + * building if provided + * + * @generated from field: bytes init_args = 4; + */ + initArgs = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryBuildAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "init_args", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBuildAddressRequest { + return new QueryBuildAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBuildAddressRequest { + return new QueryBuildAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBuildAddressRequest { + return new QueryBuildAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBuildAddressRequest | PlainMessage | undefined, b: QueryBuildAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBuildAddressRequest, a, b); + } +} + +/** + * QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC + * method. + * + * @generated from message cosmwasm.wasm.v1.QueryBuildAddressResponse + */ +export class QueryBuildAddressResponse extends Message { + /** + * Address is the contract address + * + * @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 = "cosmwasm.wasm.v1.QueryBuildAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBuildAddressResponse { + return new QueryBuildAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBuildAddressResponse { + return new QueryBuildAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBuildAddressResponse { + return new QueryBuildAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBuildAddressResponse | PlainMessage | undefined, b: QueryBuildAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBuildAddressResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts new file mode 100644 index 0000000..5a68dce --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts @@ -0,0 +1,239 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/tx.proto (package cosmwasm.wasm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddressesResponse, MsgClearAdmin, MsgClearAdminResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgInstantiateContract, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgInstantiateContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgPinCodes, MsgPinCodesResponse, MsgRemoveCodeUploadParamsAddresses, MsgRemoveCodeUploadParamsAddressesResponse, MsgStoreAndInstantiateContract, MsgStoreAndInstantiateContractResponse, MsgStoreAndMigrateContract, MsgStoreAndMigrateContractResponse, MsgStoreCode, MsgStoreCodeResponse, MsgSudoContract, MsgSudoContractResponse, MsgUnpinCodes, MsgUnpinCodesResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgUpdateContractLabel, MsgUpdateContractLabelResponse, MsgUpdateInstantiateConfig, MsgUpdateInstantiateConfigResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "cosmwasm.wasm.v1.Msg"; + +/** + * StoreCode to submit Wasm code to the system + * + * @generated from rpc cosmwasm.wasm.v1.Msg.StoreCode + */ +export const MsgStoreCodeService = { + typeName: TYPE_NAME, + method: "StoreCode", + Request: MsgStoreCode, + Response: MsgStoreCodeResponse, +} as const; + +/** + * InstantiateContract creates a new smart contract instance for the given + * code id. + * + * @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract + */ +export const MsgInstantiateContractService = { + typeName: TYPE_NAME, + method: "InstantiateContract", + Request: MsgInstantiateContract, + Response: MsgInstantiateContractResponse, +} as const; + +/** + * InstantiateContract2 creates a new smart contract instance for the given + * code id with a predictable address + * + * @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract2 + */ +export const MsgInstantiateContract2Service = { + typeName: TYPE_NAME, + method: "InstantiateContract2", + Request: MsgInstantiateContract2, + Response: MsgInstantiateContract2Response, +} as const; + +/** + * Execute submits the given message data to a smart contract + * + * @generated from rpc cosmwasm.wasm.v1.Msg.ExecuteContract + */ +export const MsgExecuteContractService = { + typeName: TYPE_NAME, + method: "ExecuteContract", + Request: MsgExecuteContract, + Response: MsgExecuteContractResponse, +} as const; + +/** + * Migrate runs a code upgrade/ downgrade for a smart contract + * + * @generated from rpc cosmwasm.wasm.v1.Msg.MigrateContract + */ +export const MsgMigrateContractService = { + typeName: TYPE_NAME, + method: "MigrateContract", + Request: MsgMigrateContract, + Response: MsgMigrateContractResponse, +} as const; + +/** + * UpdateAdmin sets a new admin for a smart contract + * + * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateAdmin + */ +export const MsgUpdateAdminService = { + typeName: TYPE_NAME, + method: "UpdateAdmin", + Request: MsgUpdateAdmin, + Response: MsgUpdateAdminResponse, +} as const; + +/** + * ClearAdmin removes any admin stored for a smart contract + * + * @generated from rpc cosmwasm.wasm.v1.Msg.ClearAdmin + */ +export const MsgClearAdminService = { + typeName: TYPE_NAME, + method: "ClearAdmin", + Request: MsgClearAdmin, + Response: MsgClearAdminResponse, +} as const; + +/** + * UpdateInstantiateConfig updates instantiate config for a smart contract + * + * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateInstantiateConfig + */ +export const MsgUpdateInstantiateConfigService = { + typeName: TYPE_NAME, + method: "UpdateInstantiateConfig", + Request: MsgUpdateInstantiateConfig, + Response: MsgUpdateInstantiateConfigResponse, +} as const; + +/** + * UpdateParams defines a governance operation for updating the x/wasm + * module parameters. The authority is defined in the keeper. + * + * Since: 0.40 + * + * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * SudoContract defines a governance operation for calling sudo + * on a contract. The authority is defined in the keeper. + * + * Since: 0.40 + * + * @generated from rpc cosmwasm.wasm.v1.Msg.SudoContract + */ +export const MsgSudoContractService = { + typeName: TYPE_NAME, + method: "SudoContract", + Request: MsgSudoContract, + Response: MsgSudoContractResponse, +} as const; + +/** + * PinCodes defines a governance operation for pinning a set of + * code ids in the wasmvm cache. The authority is defined in the keeper. + * + * Since: 0.40 + * + * @generated from rpc cosmwasm.wasm.v1.Msg.PinCodes + */ +export const MsgPinCodesService = { + typeName: TYPE_NAME, + method: "PinCodes", + Request: MsgPinCodes, + Response: MsgPinCodesResponse, +} as const; + +/** + * UnpinCodes defines a governance operation for unpinning a set of + * code ids in the wasmvm cache. The authority is defined in the keeper. + * + * Since: 0.40 + * + * @generated from rpc cosmwasm.wasm.v1.Msg.UnpinCodes + */ +export const MsgUnpinCodesService = { + typeName: TYPE_NAME, + method: "UnpinCodes", + Request: MsgUnpinCodes, + Response: MsgUnpinCodesResponse, +} as const; + +/** + * StoreAndInstantiateContract defines a governance operation for storing + * and instantiating the contract. The authority is defined in the keeper. + * + * Since: 0.40 + * + * @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndInstantiateContract + */ +export const MsgStoreAndInstantiateContractService = { + typeName: TYPE_NAME, + method: "StoreAndInstantiateContract", + Request: MsgStoreAndInstantiateContract, + 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; + +/** + * StoreAndMigrateContract defines a governance operation for storing + * and migrating the contract. The authority is defined in the keeper. + * + * Since: 0.42 + * + * @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndMigrateContract + */ +export const MsgStoreAndMigrateContractService = { + typeName: TYPE_NAME, + method: "StoreAndMigrateContract", + Request: MsgStoreAndMigrateContract, + Response: MsgStoreAndMigrateContractResponse, +} as const; + +/** + * UpdateContractLabel sets a new label for a smart contract + * + * Since: 0.43 + * + * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateContractLabel + */ +export const MsgUpdateContractLabelService = { + typeName: TYPE_NAME, + method: "UpdateContractLabel", + Request: MsgUpdateContractLabel, + Response: MsgUpdateContractLabelResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts new file mode 100644 index 0000000..f55caac --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts @@ -0,0 +1,1807 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/tx.proto (package cosmwasm.wasm.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 { AccessConfig, Params } from "./types_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgStoreCode submit Wasm code to the system + * + * @generated from message cosmwasm.wasm.v1.MsgStoreCode + */ +export class MsgStoreCode extends Message { + /** + * Sender is the actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * WASMByteCode can be raw or gzip compressed + * + * @generated from field: bytes wasm_byte_code = 2; + */ + wasmByteCode = new Uint8Array(0); + + /** + * InstantiatePermission access control to apply on contract creation, + * optional + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 5; + */ + instantiatePermission?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgStoreCode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "instantiate_permission", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCode { + return new MsgStoreCode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCode { + return new MsgStoreCode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreCode { + return new MsgStoreCode().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreCode | PlainMessage | undefined, b: MsgStoreCode | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreCode, a, b); + } +} + +/** + * MsgStoreCodeResponse returns store result data. + * + * @generated from message cosmwasm.wasm.v1.MsgStoreCodeResponse + */ +export class MsgStoreCodeResponse extends Message { + /** + * CodeID is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * Checksum is the sha256 hash of the stored code + * + * @generated from field: bytes checksum = 2; + */ + checksum = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgStoreCodeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCodeResponse { + return new MsgStoreCodeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCodeResponse { + return new MsgStoreCodeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreCodeResponse { + return new MsgStoreCodeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreCodeResponse | PlainMessage | undefined, b: MsgStoreCodeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreCodeResponse, a, b); + } +} + +/** + * MsgInstantiateContract create a new smart contract instance for the given + * code id. + * + * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract + */ +export class MsgInstantiateContract extends Message { + /** + * Sender is the that actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Admin is an optional address that can execute migrations + * + * @generated from field: string admin = 2; + */ + admin = ""; + + /** + * CodeID is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 3; + */ + codeId = protoInt64.zero; + + /** + * Label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 4; + */ + label = ""; + + /** + * Msg json encoded message to be passed to the contract on instantiation + * + * @generated from field: bytes msg = 5; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred to the contract on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; + */ + funds: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract { + return new MsgInstantiateContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract { + return new MsgInstantiateContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract { + return new MsgInstantiateContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantiateContract | PlainMessage | undefined, b: MsgInstantiateContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantiateContract, a, b); + } +} + +/** + * MsgInstantiateContractResponse return instantiation result data + * + * @generated from message cosmwasm.wasm.v1.MsgInstantiateContractResponse + */ +export class MsgInstantiateContractResponse extends Message { + /** + * Address is the bech32 address of the new contract instance. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * Data contains bytes to returned from the contract + * + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContractResponse { + return new MsgInstantiateContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContractResponse { + return new MsgInstantiateContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContractResponse { + return new MsgInstantiateContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantiateContractResponse | PlainMessage | undefined, b: MsgInstantiateContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantiateContractResponse, a, b); + } +} + +/** + * MsgInstantiateContract2 create a new smart contract instance for the given + * code id with a predictable address. + * + * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract2 + */ +export class MsgInstantiateContract2 extends Message { + /** + * Sender is the that actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Admin is an optional address that can execute migrations + * + * @generated from field: string admin = 2; + */ + admin = ""; + + /** + * CodeID is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 3; + */ + codeId = protoInt64.zero; + + /** + * Label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 4; + */ + label = ""; + + /** + * Msg json encoded message to be passed to the contract on instantiation + * + * @generated from field: bytes msg = 5; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred to the contract on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; + */ + funds: Coin[] = []; + + /** + * Salt is an arbitrary value provided by the sender. Size can be 1 to 64. + * + * @generated from field: bytes salt = 7; + */ + salt = new Uint8Array(0); + + /** + * FixMsg include the msg value into the hash for the predictable address. + * Default is false + * + * @generated from field: bool fix_msg = 8; + */ + fixMsg = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract2"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "fix_msg", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract2 { + return new MsgInstantiateContract2().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract2 { + return new MsgInstantiateContract2().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract2 { + return new MsgInstantiateContract2().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantiateContract2 | PlainMessage | undefined, b: MsgInstantiateContract2 | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantiateContract2, a, b); + } +} + +/** + * MsgInstantiateContract2Response return instantiation result data + * + * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract2Response + */ +export class MsgInstantiateContract2Response extends Message { + /** + * Address is the bech32 address of the new contract instance. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * Data contains bytes to returned from the contract + * + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract2Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract2Response { + return new MsgInstantiateContract2Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract2Response { + return new MsgInstantiateContract2Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract2Response { + return new MsgInstantiateContract2Response().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantiateContract2Response | PlainMessage | undefined, b: MsgInstantiateContract2Response | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantiateContract2Response, a, b); + } +} + +/** + * MsgExecuteContract submits the given message data to a smart contract + * + * @generated from message cosmwasm.wasm.v1.MsgExecuteContract + */ +export class MsgExecuteContract extends Message { + /** + * Sender is the that actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 2; + */ + contract = ""; + + /** + * Msg json encoded message to be passed to the contract + * + * @generated from field: bytes msg = 3; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred to the contract on execution + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 5; + */ + funds: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgExecuteContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "funds", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteContract | PlainMessage | undefined, b: MsgExecuteContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteContract, a, b); + } +} + +/** + * MsgExecuteContractResponse returns execution result data. + * + * @generated from message cosmwasm.wasm.v1.MsgExecuteContractResponse + */ +export class MsgExecuteContractResponse extends Message { + /** + * Data contains bytes to returned from the contract + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgExecuteContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContractResponse { + return new MsgExecuteContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContractResponse { + return new MsgExecuteContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContractResponse { + return new MsgExecuteContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteContractResponse | PlainMessage | undefined, b: MsgExecuteContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteContractResponse, a, b); + } +} + +/** + * MsgMigrateContract runs a code upgrade/ downgrade for a smart contract + * + * @generated from message cosmwasm.wasm.v1.MsgMigrateContract + */ +export class MsgMigrateContract extends Message { + /** + * Sender is the that actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 2; + */ + contract = ""; + + /** + * CodeID references the new WASM code + * + * @generated from field: uint64 code_id = 3; + */ + codeId = protoInt64.zero; + + /** + * Msg json encoded message to be passed to the contract on migration + * + * @generated from field: bytes msg = 4; + */ + msg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgMigrateContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContract { + return new MsgMigrateContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContract { + return new MsgMigrateContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContract { + return new MsgMigrateContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgMigrateContract | PlainMessage | undefined, b: MsgMigrateContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMigrateContract, a, b); + } +} + +/** + * MsgMigrateContractResponse returns contract migration result data. + * + * @generated from message cosmwasm.wasm.v1.MsgMigrateContractResponse + */ +export class MsgMigrateContractResponse extends Message { + /** + * Data contains same raw bytes returned as data from the wasm contract. + * (May be empty) + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgMigrateContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContractResponse { + return new MsgMigrateContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContractResponse { + return new MsgMigrateContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContractResponse { + return new MsgMigrateContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMigrateContractResponse | PlainMessage | undefined, b: MsgMigrateContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMigrateContractResponse, a, b); + } +} + +/** + * MsgUpdateAdmin sets a new admin for a smart contract + * + * @generated from message cosmwasm.wasm.v1.MsgUpdateAdmin + */ +export class MsgUpdateAdmin extends Message { + /** + * Sender is the that actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * NewAdmin address to be set + * + * @generated from field: string new_admin = 2; + */ + newAdmin = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 3; + */ + contract = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAdmin { + return new MsgUpdateAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAdmin { + return new MsgUpdateAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAdmin { + return new MsgUpdateAdmin().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateAdmin | PlainMessage | undefined, b: MsgUpdateAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateAdmin, a, b); + } +} + +/** + * MsgUpdateAdminResponse returns empty data + * + * @generated from message cosmwasm.wasm.v1.MsgUpdateAdminResponse + */ +export class MsgUpdateAdminResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateAdminResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAdminResponse { + return new MsgUpdateAdminResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAdminResponse { + return new MsgUpdateAdminResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAdminResponse { + return new MsgUpdateAdminResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateAdminResponse | PlainMessage | undefined, b: MsgUpdateAdminResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateAdminResponse, a, b); + } +} + +/** + * MsgClearAdmin removes any admin stored for a smart contract + * + * @generated from message cosmwasm.wasm.v1.MsgClearAdmin + */ +export class MsgClearAdmin extends Message { + /** + * Sender is the actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 3; + */ + contract = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgClearAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClearAdmin { + return new MsgClearAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClearAdmin { + return new MsgClearAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClearAdmin { + return new MsgClearAdmin().fromJsonString(jsonString, options); + } + + static equals(a: MsgClearAdmin | PlainMessage | undefined, b: MsgClearAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClearAdmin, a, b); + } +} + +/** + * MsgClearAdminResponse returns empty data + * + * @generated from message cosmwasm.wasm.v1.MsgClearAdminResponse + */ +export class MsgClearAdminResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgClearAdminResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClearAdminResponse { + return new MsgClearAdminResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClearAdminResponse { + return new MsgClearAdminResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClearAdminResponse { + return new MsgClearAdminResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClearAdminResponse | PlainMessage | undefined, b: MsgClearAdminResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClearAdminResponse, a, b); + } +} + +/** + * MsgUpdateInstantiateConfig updates instantiate config for a smart contract + * + * @generated from message cosmwasm.wasm.v1.MsgUpdateInstantiateConfig + */ +export class MsgUpdateInstantiateConfig extends Message { + /** + * Sender is the that actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * CodeID references the stored WASM code + * + * @generated from field: uint64 code_id = 2; + */ + codeId = protoInt64.zero; + + /** + * NewInstantiatePermission is the new access control + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig new_instantiate_permission = 3; + */ + newInstantiatePermission?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateInstantiateConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "new_instantiate_permission", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInstantiateConfig { + return new MsgUpdateInstantiateConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInstantiateConfig { + return new MsgUpdateInstantiateConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInstantiateConfig { + return new MsgUpdateInstantiateConfig().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateInstantiateConfig | PlainMessage | undefined, b: MsgUpdateInstantiateConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateInstantiateConfig, a, b); + } +} + +/** + * MsgUpdateInstantiateConfigResponse returns empty data + * + * @generated from message cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse + */ +export class MsgUpdateInstantiateConfigResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInstantiateConfigResponse { + return new MsgUpdateInstantiateConfigResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInstantiateConfigResponse { + return new MsgUpdateInstantiateConfigResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInstantiateConfigResponse { + return new MsgUpdateInstantiateConfigResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateInstantiateConfigResponse | PlainMessage | undefined, b: MsgUpdateInstantiateConfigResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateInstantiateConfigResponse, a, b); + } +} + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.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 x/wasm parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: cosmwasm.wasm.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.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. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.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 = "cosmwasm.wasm.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); + } +} + +/** + * MsgSudoContract is the MsgSudoContract request type. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgSudoContract + */ +export class MsgSudoContract extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 2; + */ + contract = ""; + + /** + * Msg json encoded message to be passed to the contract as sudo + * + * @generated from field: bytes msg = 3; + */ + msg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgSudoContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoContract { + return new MsgSudoContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoContract { + return new MsgSudoContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSudoContract { + return new MsgSudoContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgSudoContract | PlainMessage | undefined, b: MsgSudoContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSudoContract, a, b); + } +} + +/** + * MsgSudoContractResponse defines the response structure for executing a + * MsgSudoContract message. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgSudoContractResponse + */ +export class MsgSudoContractResponse extends Message { + /** + * Data contains bytes to returned from the contract + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgSudoContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoContractResponse { + return new MsgSudoContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoContractResponse { + return new MsgSudoContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSudoContractResponse { + return new MsgSudoContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSudoContractResponse | PlainMessage | undefined, b: MsgSudoContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSudoContractResponse, a, b); + } +} + +/** + * MsgPinCodes is the MsgPinCodes request type. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgPinCodes + */ +export class MsgPinCodes extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * CodeIDs references the new WASM codes + * + * @generated from field: repeated uint64 code_ids = 2; + */ + codeIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgPinCodes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPinCodes { + return new MsgPinCodes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPinCodes { + return new MsgPinCodes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPinCodes { + return new MsgPinCodes().fromJsonString(jsonString, options); + } + + static equals(a: MsgPinCodes | PlainMessage | undefined, b: MsgPinCodes | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPinCodes, a, b); + } +} + +/** + * MsgPinCodesResponse defines the response structure for executing a + * MsgPinCodes message. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgPinCodesResponse + */ +export class MsgPinCodesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgPinCodesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPinCodesResponse { + return new MsgPinCodesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPinCodesResponse { + return new MsgPinCodesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPinCodesResponse { + return new MsgPinCodesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPinCodesResponse | PlainMessage | undefined, b: MsgPinCodesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPinCodesResponse, a, b); + } +} + +/** + * MsgUnpinCodes is the MsgUnpinCodes request type. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgUnpinCodes + */ +export class MsgUnpinCodes extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * CodeIDs references the WASM codes + * + * @generated from field: repeated uint64 code_ids = 2; + */ + codeIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUnpinCodes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpinCodes { + return new MsgUnpinCodes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpinCodes { + return new MsgUnpinCodes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnpinCodes { + return new MsgUnpinCodes().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnpinCodes | PlainMessage | undefined, b: MsgUnpinCodes | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnpinCodes, a, b); + } +} + +/** + * MsgUnpinCodesResponse defines the response structure for executing a + * MsgUnpinCodes message. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgUnpinCodesResponse + */ +export class MsgUnpinCodesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUnpinCodesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpinCodesResponse { + return new MsgUnpinCodesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpinCodesResponse { + return new MsgUnpinCodesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnpinCodesResponse { + return new MsgUnpinCodesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnpinCodesResponse | PlainMessage | undefined, b: MsgUnpinCodesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnpinCodesResponse, a, b); + } +} + +/** + * MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract + * request type. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgStoreAndInstantiateContract + */ +export class MsgStoreAndInstantiateContract extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * WASMByteCode can be raw or gzip compressed + * + * @generated from field: bytes wasm_byte_code = 3; + */ + wasmByteCode = new Uint8Array(0); + + /** + * InstantiatePermission to apply on contract creation, optional + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 4; + */ + instantiatePermission?: AccessConfig; + + /** + * UnpinCode code on upload, optional. As default the uploaded contract is + * pinned to cache. + * + * @generated from field: bool unpin_code = 5; + */ + unpinCode = false; + + /** + * Admin is an optional address that can execute migrations + * + * @generated from field: string admin = 6; + */ + admin = ""; + + /** + * Label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 7; + */ + label = ""; + + /** + * Msg json encoded message to be passed to the contract on instantiation + * + * @generated from field: bytes msg = 8; + */ + msg = new Uint8Array(0); + + /** + * Funds coins that are transferred from the authority account to the contract + * on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 9; + */ + funds: Coin[] = []; + + /** + * Source is the URL where the code is hosted + * + * @generated from field: string source = 10; + */ + source = ""; + + /** + * Builder is the docker image used to build the code deterministically, used + * for smart contract verification + * + * @generated from field: string builder = 11; + */ + builder = ""; + + /** + * CodeHash is the SHA256 sum of the code outputted by builder, used for smart + * contract verification + * + * @generated from field: bytes code_hash = 12; + */ + codeHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndInstantiateContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "instantiate_permission", kind: "message", T: AccessConfig }, + { no: 5, name: "unpin_code", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "funds", kind: "message", T: Coin, repeated: true }, + { no: 10, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "builder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndInstantiateContract { + return new MsgStoreAndInstantiateContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndInstantiateContract { + return new MsgStoreAndInstantiateContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndInstantiateContract { + return new MsgStoreAndInstantiateContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreAndInstantiateContract | PlainMessage | undefined, b: MsgStoreAndInstantiateContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreAndInstantiateContract, a, b); + } +} + +/** + * MsgStoreAndInstantiateContractResponse defines the response structure + * for executing a MsgStoreAndInstantiateContract message. + * + * Since: 0.40 + * + * @generated from message cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse + */ +export class MsgStoreAndInstantiateContractResponse extends Message { + /** + * Address is the bech32 address of the new contract instance. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * Data contains bytes to returned from the contract + * + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndInstantiateContractResponse { + return new MsgStoreAndInstantiateContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndInstantiateContractResponse { + return new MsgStoreAndInstantiateContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndInstantiateContractResponse { + return new MsgStoreAndInstantiateContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreAndInstantiateContractResponse | PlainMessage | undefined, b: MsgStoreAndInstantiateContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreAndInstantiateContractResponse, a, b); + } +} + +/** + * MsgAddCodeUploadParamsAddresses is the + * MsgAddCodeUploadParamsAddresses request type. + * + * @generated from message cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses + */ +export class MsgAddCodeUploadParamsAddresses 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); + } +} + +/** + * MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract + * request type. + * + * Since: 0.42 + * + * @generated from message cosmwasm.wasm.v1.MsgStoreAndMigrateContract + */ +export class MsgStoreAndMigrateContract extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * WASMByteCode can be raw or gzip compressed + * + * @generated from field: bytes wasm_byte_code = 2; + */ + wasmByteCode = new Uint8Array(0); + + /** + * InstantiatePermission to apply on contract creation, optional + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 3; + */ + instantiatePermission?: AccessConfig; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 4; + */ + contract = ""; + + /** + * Msg json encoded message to be passed to the contract on migration + * + * @generated from field: bytes msg = 5; + */ + msg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndMigrateContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "instantiate_permission", kind: "message", T: AccessConfig }, + { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndMigrateContract { + return new MsgStoreAndMigrateContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndMigrateContract { + return new MsgStoreAndMigrateContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndMigrateContract { + return new MsgStoreAndMigrateContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreAndMigrateContract | PlainMessage | undefined, b: MsgStoreAndMigrateContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreAndMigrateContract, a, b); + } +} + +/** + * MsgStoreAndMigrateContractResponse defines the response structure + * for executing a MsgStoreAndMigrateContract message. + * + * Since: 0.42 + * + * @generated from message cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse + */ +export class MsgStoreAndMigrateContractResponse extends Message { + /** + * CodeID is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * Checksum is the sha256 hash of the stored code + * + * @generated from field: bytes checksum = 2; + */ + checksum = new Uint8Array(0); + + /** + * Data contains bytes to returned from the contract + * + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndMigrateContractResponse { + return new MsgStoreAndMigrateContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndMigrateContractResponse { + return new MsgStoreAndMigrateContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndMigrateContractResponse { + return new MsgStoreAndMigrateContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreAndMigrateContractResponse | PlainMessage | undefined, b: MsgStoreAndMigrateContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreAndMigrateContractResponse, a, b); + } +} + +/** + * MsgUpdateContractLabel sets a new label for a smart contract + * + * @generated from message cosmwasm.wasm.v1.MsgUpdateContractLabel + */ +export class MsgUpdateContractLabel extends Message { + /** + * Sender is the that actor that signed the messages + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * NewLabel string to be set + * + * @generated from field: string new_label = 2; + */ + newLabel = ""; + + /** + * Contract is the address of the smart contract + * + * @generated from field: string contract = 3; + */ + contract = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateContractLabel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "new_label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractLabel { + return new MsgUpdateContractLabel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractLabel { + return new MsgUpdateContractLabel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractLabel { + return new MsgUpdateContractLabel().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateContractLabel | PlainMessage | undefined, b: MsgUpdateContractLabel | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateContractLabel, a, b); + } +} + +/** + * MsgUpdateContractLabelResponse returns empty data + * + * @generated from message cosmwasm.wasm.v1.MsgUpdateContractLabelResponse + */ +export class MsgUpdateContractLabelResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateContractLabelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractLabelResponse { + return new MsgUpdateContractLabelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractLabelResponse { + return new MsgUpdateContractLabelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractLabelResponse { + return new MsgUpdateContractLabelResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateContractLabelResponse | PlainMessage | undefined, b: MsgUpdateContractLabelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateContractLabelResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/types_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/types_pb.ts new file mode 100644 index 0000000..3d06107 --- /dev/null +++ b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/types_pb.ts @@ -0,0 +1,527 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmwasm/wasm/v1/types.proto (package cosmwasm.wasm.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"; + +/** + * AccessType permission types + * + * @generated from enum cosmwasm.wasm.v1.AccessType + */ +export enum AccessType { + /** + * AccessTypeUnspecified placeholder for empty value + * + * @generated from enum value: ACCESS_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * AccessTypeNobody forbidden + * + * @generated from enum value: ACCESS_TYPE_NOBODY = 1; + */ + NOBODY = 1, + + /** + * AccessTypeEverybody unrestricted + * + * @generated from enum value: ACCESS_TYPE_EVERYBODY = 3; + */ + EVERYBODY = 3, + + /** + * AccessTypeAnyOfAddresses allow any of the addresses + * + * @generated from enum value: ACCESS_TYPE_ANY_OF_ADDRESSES = 4; + */ + ANY_OF_ADDRESSES = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(AccessType) +proto3.util.setEnumType(AccessType, "cosmwasm.wasm.v1.AccessType", [ + { no: 0, name: "ACCESS_TYPE_UNSPECIFIED" }, + { no: 1, name: "ACCESS_TYPE_NOBODY" }, + { no: 3, name: "ACCESS_TYPE_EVERYBODY" }, + { no: 4, name: "ACCESS_TYPE_ANY_OF_ADDRESSES" }, +]); + +/** + * ContractCodeHistoryOperationType actions that caused a code change + * + * @generated from enum cosmwasm.wasm.v1.ContractCodeHistoryOperationType + */ +export enum ContractCodeHistoryOperationType { + /** + * ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * + * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * ContractCodeHistoryOperationTypeInit on chain contract instantiation + * + * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1; + */ + INIT = 1, + + /** + * ContractCodeHistoryOperationTypeMigrate code migration + * + * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2; + */ + MIGRATE = 2, + + /** + * ContractCodeHistoryOperationTypeGenesis based on genesis data + * + * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3; + */ + GENESIS = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(ContractCodeHistoryOperationType) +proto3.util.setEnumType(ContractCodeHistoryOperationType, "cosmwasm.wasm.v1.ContractCodeHistoryOperationType", [ + { no: 0, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" }, + { no: 1, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT" }, + { no: 2, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE" }, + { no: 3, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS" }, +]); + +/** + * AccessTypeParam + * + * @generated from message cosmwasm.wasm.v1.AccessTypeParam + */ +export class AccessTypeParam extends Message { + /** + * @generated from field: cosmwasm.wasm.v1.AccessType value = 1; + */ + value = AccessType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.AccessTypeParam"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "enum", T: proto3.getEnumType(AccessType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessTypeParam { + return new AccessTypeParam().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessTypeParam { + return new AccessTypeParam().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessTypeParam { + return new AccessTypeParam().fromJsonString(jsonString, options); + } + + static equals(a: AccessTypeParam | PlainMessage | undefined, b: AccessTypeParam | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessTypeParam, a, b); + } +} + +/** + * AccessConfig access control type. + * + * @generated from message cosmwasm.wasm.v1.AccessConfig + */ +export class AccessConfig extends Message { + /** + * @generated from field: cosmwasm.wasm.v1.AccessType permission = 1; + */ + permission = AccessType.UNSPECIFIED; + + /** + * @generated from field: repeated string addresses = 3; + */ + addresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.AccessConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "permission", kind: "enum", T: proto3.getEnumType(AccessType) }, + { no: 3, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessConfig { + return new AccessConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessConfig { + return new AccessConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessConfig { + return new AccessConfig().fromJsonString(jsonString, options); + } + + static equals(a: AccessConfig | PlainMessage | undefined, b: AccessConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessConfig, a, b); + } +} + +/** + * Params defines the set of wasm parameters. + * + * @generated from message cosmwasm.wasm.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: cosmwasm.wasm.v1.AccessConfig code_upload_access = 1; + */ + codeUploadAccess?: AccessConfig; + + /** + * @generated from field: cosmwasm.wasm.v1.AccessType instantiate_default_permission = 2; + */ + instantiateDefaultPermission = AccessType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_upload_access", kind: "message", T: AccessConfig }, + { no: 2, name: "instantiate_default_permission", kind: "enum", T: proto3.getEnumType(AccessType) }, + ]); + + 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); + } +} + +/** + * CodeInfo is data for the uploaded contract WASM code + * + * @generated from message cosmwasm.wasm.v1.CodeInfo + */ +export class CodeInfo extends Message { + /** + * CodeHash is the unique identifier created by wasmvm + * + * @generated from field: bytes code_hash = 1; + */ + codeHash = new Uint8Array(0); + + /** + * Creator address who initially stored the code + * + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * InstantiateConfig access control to apply on contract creation, optional + * + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_config = 5; + */ + instantiateConfig?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.CodeInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "instantiate_config", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CodeInfo { + return new CodeInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CodeInfo { + return new CodeInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CodeInfo { + return new CodeInfo().fromJsonString(jsonString, options); + } + + static equals(a: CodeInfo | PlainMessage | undefined, b: CodeInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(CodeInfo, a, b); + } +} + +/** + * ContractInfo stores a WASM contract instance + * + * @generated from message cosmwasm.wasm.v1.ContractInfo + */ +export class ContractInfo extends Message { + /** + * CodeID is the reference to the stored Wasm code + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * Creator address who initially instantiated the contract + * + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * Admin is an optional address that can execute migrations + * + * @generated from field: string admin = 3; + */ + admin = ""; + + /** + * Label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 4; + */ + label = ""; + + /** + * Created Tx position when the contract was instantiated. + * + * @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition created = 5; + */ + created?: AbsoluteTxPosition; + + /** + * @generated from field: string ibc_port_id = 6; + */ + ibcPortId = ""; + + /** + * Extension is an extension point to store custom metadata within the + * persistence model. + * + * @generated from field: google.protobuf.Any extension = 7; + */ + extension?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.ContractInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "created", kind: "message", T: AbsoluteTxPosition }, + { no: 6, name: "ibc_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "extension", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContractInfo { + return new ContractInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContractInfo { + return new ContractInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContractInfo { + return new ContractInfo().fromJsonString(jsonString, options); + } + + static equals(a: ContractInfo | PlainMessage | undefined, b: ContractInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(ContractInfo, a, b); + } +} + +/** + * ContractCodeHistoryEntry metadata to a contract. + * + * @generated from message cosmwasm.wasm.v1.ContractCodeHistoryEntry + */ +export class ContractCodeHistoryEntry extends Message { + /** + * @generated from field: cosmwasm.wasm.v1.ContractCodeHistoryOperationType operation = 1; + */ + operation = ContractCodeHistoryOperationType.UNSPECIFIED; + + /** + * CodeID is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 2; + */ + codeId = protoInt64.zero; + + /** + * Updated Tx position when the operation was executed. + * + * @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition updated = 3; + */ + updated?: AbsoluteTxPosition; + + /** + * @generated from field: bytes msg = 4; + */ + msg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.ContractCodeHistoryEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operation", kind: "enum", T: proto3.getEnumType(ContractCodeHistoryOperationType) }, + { no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "updated", kind: "message", T: AbsoluteTxPosition }, + { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContractCodeHistoryEntry { + return new ContractCodeHistoryEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContractCodeHistoryEntry { + return new ContractCodeHistoryEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContractCodeHistoryEntry { + return new ContractCodeHistoryEntry().fromJsonString(jsonString, options); + } + + static equals(a: ContractCodeHistoryEntry | PlainMessage | undefined, b: ContractCodeHistoryEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(ContractCodeHistoryEntry, a, b); + } +} + +/** + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + * + * @generated from message cosmwasm.wasm.v1.AbsoluteTxPosition + */ +export class AbsoluteTxPosition extends Message { + /** + * BlockHeight is the block the contract was created at + * + * @generated from field: uint64 block_height = 1; + */ + blockHeight = protoInt64.zero; + + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * + * @generated from field: uint64 tx_index = 2; + */ + txIndex = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.AbsoluteTxPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AbsoluteTxPosition { + return new AbsoluteTxPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AbsoluteTxPosition { + return new AbsoluteTxPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AbsoluteTxPosition { + return new AbsoluteTxPosition().fromJsonString(jsonString, options); + } + + static equals(a: AbsoluteTxPosition | PlainMessage | undefined, b: AbsoluteTxPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(AbsoluteTxPosition, a, b); + } +} + +/** + * Model is a struct that holds a KV pair + * + * @generated from message cosmwasm.wasm.v1.Model + */ +export class Model extends Message { + /** + * hex-encode key to read it better (this is often ascii) + * + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + /** + * base64-encode raw 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 = "cosmwasm.wasm.v1.Model"; + 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): Model { + return new Model().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Model { + return new Model().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Model { + return new Model().fromJsonString(jsonString, options); + } + + static equals(a: Model | PlainMessage | undefined, b: Model | PlainMessage | undefined): boolean { + return proto3.util.equals(Model, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/did/module/v1/module_pb.ts b/libs/es-client/src/protobufs/did/module/v1/module_pb.ts new file mode 100644 index 0000000..9a3082c --- /dev/null +++ b/libs/es-client/src/protobufs/did/module/v1/module_pb.ts @@ -0,0 +1,42 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file did/module/v1/module.proto (package did.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the app config object of the module. + * Learn more: https://docs.cosmos.network/main/building-modules/depinject + * + * @generated from message did.module.v1.Module + */ +export class Module extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/did/v1/genesis_pb.ts b/libs/es-client/src/protobufs/did/v1/genesis_pb.ts new file mode 100644 index 0000000..e285a22 --- /dev/null +++ b/libs/es-client/src/protobufs/did/v1/genesis_pb.ts @@ -0,0 +1,312 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file did/v1/genesis.proto (package did.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * GenesisState defines the module genesis state + * + * @generated from message did.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines all the parameters of the module. + * + * @generated from field: did.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.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); + } +} + +/** + * Params defines the set of module parameters. + * + * @generated from message did.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated did.v1.Attenuation attenuations = 1; + */ + attenuations: Attenuation[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attenuations", kind: "message", T: Attenuation, 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); + } +} + +/** + * Attenuation defines the attenuation of a resource + * + * @generated from message did.v1.Attenuation + */ +export class Attenuation extends Message { + /** + * @generated from field: did.v1.Resource resource = 1; + */ + resource?: Resource; + + /** + * @generated from field: repeated did.v1.Capability capabilities = 2; + */ + capabilities: Capability[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.Attenuation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource", kind: "message", T: Resource }, + { no: 2, name: "capabilities", kind: "message", T: Capability, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Attenuation { + return new Attenuation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Attenuation { + return new Attenuation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Attenuation { + return new Attenuation().fromJsonString(jsonString, options); + } + + static equals(a: Attenuation | PlainMessage | undefined, b: Attenuation | PlainMessage | undefined): boolean { + return proto3.util.equals(Attenuation, a, b); + } +} + +/** + * Capability reprensents the available capabilities of a decentralized web node + * + * @generated from message did.v1.Capability + */ +export class Capability extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: string parent = 2; + */ + parent = ""; + + /** + * @generated from field: string description = 3; + */ + description = ""; + + /** + * @generated from field: repeated string resources = 4; + */ + resources: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.Capability"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "parent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "resources", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + 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); + } +} + +/** + * Resource reprensents the available resources of a decentralized web node + * + * @generated from message did.v1.Resource + */ +export class Resource extends Message { + /** + * @generated from field: string kind = 1; + */ + kind = ""; + + /** + * @generated from field: string template = 2; + */ + template = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.Resource"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Resource { + return new Resource().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Resource { + return new Resource().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Resource { + return new Resource().fromJsonString(jsonString, options); + } + + static equals(a: Resource | PlainMessage | undefined, b: Resource | PlainMessage | undefined): boolean { + return proto3.util.equals(Resource, a, b); + } +} + +/** + * Document defines a DID document + * + * @generated from message did.v1.Document + */ +export class Document extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * The DID of the controller + * + * @generated from field: string controller = 2; + */ + controller = ""; + + /** + * @generated from field: repeated string authentication = 3; + */ + authentication: string[] = []; + + /** + * @generated from field: repeated string assertion_method = 4; + */ + assertionMethod: string[] = []; + + /** + * @generated from field: repeated string capability_delegation = 5; + */ + capabilityDelegation: string[] = []; + + /** + * @generated from field: repeated string capability_invocation = 6; + */ + capabilityInvocation: string[] = []; + + /** + * @generated from field: repeated string service = 7; + */ + service: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.Document"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "authentication", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "assertion_method", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "capability_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "capability_invocation", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 7, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Document { + return new Document().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Document { + return new Document().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Document { + return new Document().fromJsonString(jsonString, options); + } + + static equals(a: Document | PlainMessage | undefined, b: Document | PlainMessage | undefined): boolean { + return proto3.util.equals(Document, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/did/v1/query_cosmes.ts b/libs/es-client/src/protobufs/did/v1/query_cosmes.ts new file mode 100644 index 0000000..e8f3d4e --- /dev/null +++ b/libs/es-client/src/protobufs/did/v1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file did/v1/query.proto (package did.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsResponse, QueryRequest, QueryResolveResponse, QueryVerifyRequest, QueryVerifyResponse } from "./query_pb.js"; + +const TYPE_NAME = "did.v1.Query"; + +/** + * Params queries all parameters of the module. + * + * @generated from rpc did.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Resolve queries the DID document by its id. + * + * @generated from rpc did.v1.Query.Resolve + */ +export const QueryResolveService = { + typeName: TYPE_NAME, + method: "Resolve", + Request: QueryRequest, + Response: QueryResolveResponse, +} as const; + +/** + * Verify verifies a message with the DID document + * + * @generated from rpc did.v1.Query.Verify + */ +export const QueryVerifyService = { + typeName: TYPE_NAME, + method: "Verify", + Request: QueryVerifyRequest, + Response: QueryVerifyResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/did/v1/query_pb.ts b/libs/es-client/src/protobufs/did/v1/query_pb.ts new file mode 100644 index 0000000..47b2fac --- /dev/null +++ b/libs/es-client/src/protobufs/did/v1/query_pb.ts @@ -0,0 +1,362 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file did/v1/query.proto (package did.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 { Document, Params } from "./genesis_pb.js"; + +/** + * Queryequest is the request type for the Query/Params RPC method. + * + * @generated from message did.v1.QueryRequest + */ +export class QueryRequest extends Message { + /** + * @generated from field: string did = 1; + */ + did = ""; + + /** + * @generated from field: string origin = 2; + */ + origin = ""; + + /** + * @generated from field: string key = 3; + */ + key = ""; + + /** + * @generated from field: string asset = 4; + */ + asset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.QueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest { + return new QueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest { + return new QueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRequest { + return new QueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message did.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: did.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.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); + } +} + +/** + * QueryResolveResponse is the response type for the Query/Resolve RPC method. + * + * @generated from message did.v1.QueryResolveResponse + */ +export class QueryResolveResponse extends Message { + /** + * document is the DID document + * + * @generated from field: did.v1.Document document = 1; + */ + document?: Document; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.QueryResolveResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "document", kind: "message", T: Document }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryResolveResponse { + return new QueryResolveResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryResolveResponse { + return new QueryResolveResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryResolveResponse { + return new QueryResolveResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryResolveResponse | PlainMessage | undefined, b: QueryResolveResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryResolveResponse, a, b); + } +} + +/** + * QuerySignRequest is the request type for the Query/Sign RPC method. + * + * @generated from message did.v1.QuerySignRequest + */ +export class QuerySignRequest extends Message { + /** + * @generated from field: string did = 1; + */ + did = ""; + + /** + * @generated from field: string origin = 2; + */ + origin = ""; + + /** + * @generated from field: string key = 3; + */ + key = ""; + + /** + * @generated from field: string asset = 4; + */ + asset = ""; + + /** + * @generated from field: string message = 5; + */ + message = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.QuerySignRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySignRequest { + return new QuerySignRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySignRequest { + return new QuerySignRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySignRequest { + return new QuerySignRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySignRequest | PlainMessage | undefined, b: QuerySignRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySignRequest, a, b); + } +} + +/** + * QuerySignResponse is the response type for the Query/Sign RPC method. + * + * @generated from message did.v1.QuerySignResponse + */ +export class QuerySignResponse extends Message { + /** + * signature is the signature of the message + * + * @generated from field: string signature = 1; + */ + signature = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.QuerySignResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySignResponse { + return new QuerySignResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySignResponse { + return new QuerySignResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySignResponse { + return new QuerySignResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySignResponse | PlainMessage | undefined, b: QuerySignResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySignResponse, a, b); + } +} + +/** + * QueryVerifyRequest is the request type for the Query/Verify RPC method. + * + * @generated from message did.v1.QueryVerifyRequest + */ +export class QueryVerifyRequest extends Message { + /** + * @generated from field: string did = 1; + */ + did = ""; + + /** + * @generated from field: string origin = 2; + */ + origin = ""; + + /** + * @generated from field: string key = 3; + */ + key = ""; + + /** + * @generated from field: string asset = 4; + */ + asset = ""; + + /** + * @generated from field: string message = 5; + */ + message = ""; + + /** + * @generated from field: string signature = 6; + */ + signature = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.QueryVerifyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyRequest { + return new QueryVerifyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyRequest { + return new QueryVerifyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVerifyRequest { + return new QueryVerifyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVerifyRequest | PlainMessage | undefined, b: QueryVerifyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVerifyRequest, a, b); + } +} + +/** + * QueryVerifyResponse is the response type for the Query/Verify RPC method. + * + * @generated from message did.v1.QueryVerifyResponse + */ +export class QueryVerifyResponse extends Message { + /** + * valid is the validity of the signature + * + * @generated from field: bool valid = 1; + */ + valid = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.QueryVerifyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "valid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyResponse { + return new QueryVerifyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyResponse { + return new QueryVerifyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVerifyResponse { + return new QueryVerifyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVerifyResponse | PlainMessage | undefined, b: QueryVerifyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVerifyResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/did/v1/state_pb.ts b/libs/es-client/src/protobufs/did/v1/state_pb.ts new file mode 100644 index 0000000..6bd683d --- /dev/null +++ b/libs/es-client/src/protobufs/did/v1/state_pb.ts @@ -0,0 +1,305 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file did/v1/state.proto (package did.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"; + +/** + * @generated from message did.v1.Account + */ +export class Account extends Message { + /** + * The unique identifier of the assertion + * + * @generated from field: string did = 1; + */ + did = ""; + + /** + * The authentication of the DID + * + * @generated from field: string controller = 2; + */ + controller = ""; + + /** + * Origin of the authentication + * + * @generated from field: string subject = 3; + */ + subject = ""; + + /** + * string is the verification method + * + * @generated from field: string public_key_hex = 4; + */ + publicKeyHex = ""; + + /** + * AssertionType is the assertion type + * + * @generated from field: string assertion_type = 5; + */ + assertionType = ""; + + /** + * Metadata of the authentication + * + * @generated from field: map accumulator = 6; + */ + accumulator: { [key: string]: Uint8Array } = {}; + + /** + * CreationBlock is the block number of the creation of the authentication + * + * @generated from field: int64 creation_block = 7; + */ + creationBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.Account"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "public_key_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "assertion_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "accumulator", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 12 /* ScalarType.BYTES */} }, + { no: 7, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Account { + return new Account().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Account { + return new Account().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Account { + return new Account().fromJsonString(jsonString, options); + } + + static equals(a: Account | PlainMessage | undefined, b: Account | PlainMessage | undefined): boolean { + return proto3.util.equals(Account, a, b); + } +} + +/** + * PublicKey represents a public key + * + * @generated from message did.v1.PublicKey + */ +export class PublicKey extends Message { + /** + * The unique identifier of the controller + * + * @generated from field: uint64 number = 1; + */ + number = protoInt64.zero; + + /** + * The unique identifier of the controller + * + * @generated from field: string did = 2; + */ + did = ""; + + /** + * The DID of the controller + * + * @generated from field: string sonr_address = 3; + */ + sonrAddress = ""; + + /** + * The DID of the controller + * + * @generated from field: string eth_address = 4; + */ + ethAddress = ""; + + /** + * The DID of the controller + * + * @generated from field: string btc_address = 5; + */ + btcAddress = ""; + + /** + * string is the verification method + * + * @generated from field: string public_key_hex = 6; + */ + publicKeyHex = ""; + + /** + * Pointer to the Keyshares + * + * @generated from field: string ks_val = 7; + */ + ksVal = ""; + + /** + * The block number of when a user claimed the controller + * + * @generated from field: int64 claimed_block = 8; + */ + claimedBlock = protoInt64.zero; + + /** + * CreationBlock is the block number of the creation of the controller + * + * @generated from field: int64 creation_block = 9; + */ + creationBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.PublicKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sonr_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "eth_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "btc_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "public_key_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "ks_val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "claimed_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 9, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PublicKey { + return new PublicKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PublicKey { + return new PublicKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PublicKey { + return new PublicKey().fromJsonString(jsonString, options); + } + + static equals(a: PublicKey | PlainMessage | undefined, b: PublicKey | PlainMessage | undefined): boolean { + return proto3.util.equals(PublicKey, a, b); + } +} + +/** + * Verification represents a verification method + * + * @generated from message did.v1.Verification + */ +export class Verification extends Message { + /** + * The unique identifier of the verification + * + * @generated from field: string did = 1; + */ + did = ""; + + /** + * The controller of the verification + * + * @generated from field: string controller = 2; + */ + controller = ""; + + /** + * The DIDNamespace of the verification + * + * @generated from field: string did_method = 3; + */ + didMethod = ""; + + /** + * The value of the linked identifier + * + * @generated from field: string issuer = 4; + */ + issuer = ""; + + /** + * The subject of the verification + * + * @generated from field: string subject = 5; + */ + subject = ""; + + /** + * The public key of the verification + * + * @generated from field: string public_key_hex = 6; + */ + publicKeyHex = ""; + + /** + * The verification method type + * + * @generated from field: string verification_type = 7; + */ + verificationType = ""; + + /** + * Metadata of the verification + * + * @generated from field: map metadata = 8; + */ + metadata: { [key: string]: string } = {}; + + /** + * CreationBlock is the block number of the creation of the controller + * + * @generated from field: int64 creation_block = 9; + */ + creationBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.Verification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "did_method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "public_key_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "verification_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 9, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Verification { + return new Verification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Verification { + return new Verification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Verification { + return new Verification().fromJsonString(jsonString, options); + } + + static equals(a: Verification | PlainMessage | undefined, b: Verification | PlainMessage | undefined): boolean { + return proto3.util.equals(Verification, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/did/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/did/v1/tx_cosmes.ts new file mode 100644 index 0000000..05f65bf --- /dev/null +++ b/libs/es-client/src/protobufs/did/v1/tx_cosmes.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file did/v1/tx.proto (package did.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgExecuteTx, MsgExecuteTxResponse, MsgLinkAssertion, MsgLinkAssertionResponse, MsgLinkAuthentication, MsgLinkAuthenticationResponse, MsgUnlinkAssertion, MsgUnlinkAssertionResponse, MsgUnlinkAuthentication, MsgUnlinkAuthenticationResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "did.v1.Msg"; + +/** + * ExecuteTx executes a transaction on the Sonr Blockchain. It leverages + * Macaroon for verification. + * + * @generated from rpc did.v1.Msg.ExecuteTx + */ +export const MsgExecuteTxService = { + typeName: TYPE_NAME, + method: "ExecuteTx", + Request: MsgExecuteTx, + Response: MsgExecuteTxResponse, +} as const; + +/** + * LinkAssertion links an assertion to a controller. + * + * @generated from rpc did.v1.Msg.LinkAssertion + */ +export const MsgLinkAssertionService = { + typeName: TYPE_NAME, + method: "LinkAssertion", + Request: MsgLinkAssertion, + Response: MsgLinkAssertionResponse, +} as const; + +/** + * LinkAuthentication links an authentication to a controller. + * + * @generated from rpc did.v1.Msg.LinkAuthentication + */ +export const MsgLinkAuthenticationService = { + typeName: TYPE_NAME, + method: "LinkAuthentication", + Request: MsgLinkAuthentication, + Response: MsgLinkAuthenticationResponse, +} as const; + +/** + * UnlinkAssertion unlinks an assertion from a controller. + * + * @generated from rpc did.v1.Msg.UnlinkAssertion + */ +export const MsgUnlinkAssertionService = { + typeName: TYPE_NAME, + method: "UnlinkAssertion", + Request: MsgUnlinkAssertion, + Response: MsgUnlinkAssertionResponse, +} as const; + +/** + * UnlinkAuthentication unlinks an authentication from a controller. + * + * @generated from rpc did.v1.Msg.UnlinkAuthentication + */ +export const MsgUnlinkAuthenticationService = { + typeName: TYPE_NAME, + method: "UnlinkAuthentication", + Request: MsgUnlinkAuthentication, + Response: MsgUnlinkAuthenticationResponse, +} as const; + +/** + * UpdateParams defines a governance operation for updating the parameters. + * + * @generated from rpc did.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/did/v1/tx_pb.ts b/libs/es-client/src/protobufs/did/v1/tx_pb.ts new file mode 100644 index 0000000..81768bb --- /dev/null +++ b/libs/es-client/src/protobufs/did/v1/tx_pb.ts @@ -0,0 +1,662 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file did/v1/tx.proto (package did.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 "./genesis_pb.js"; + +/** + * MsgLinkAuthentication is the message type for the LinkAuthentication RPC. + * + * @generated from message did.v1.MsgLinkAuthentication + */ +export class MsgLinkAuthentication extends Message { + /** + * Controller is the address of the controller to authenticate. + * + * @generated from field: string controller = 1; + */ + controller = ""; + + /** + * Subject is the subject of the authentication. + * + * @generated from field: string subject = 2; + */ + subject = ""; + + /** + * Assertion is the assertion of the authentication. + * + * @generated from field: string assertion = 3; + */ + assertion = ""; + + /** + * Authentication is the authentication of the authentication. + * + * @generated from field: bytes credential_id = 4; + */ + credentialId = new Uint8Array(0); + + /** + * token is the macron token to authenticate the operation. + * + * @generated from field: string macaroon_token = 5; + */ + macaroonToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgLinkAuthentication"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "assertion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "credential_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAuthentication { + return new MsgLinkAuthentication().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAuthentication { + return new MsgLinkAuthentication().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLinkAuthentication { + return new MsgLinkAuthentication().fromJsonString(jsonString, options); + } + + static equals(a: MsgLinkAuthentication | PlainMessage | undefined, b: MsgLinkAuthentication | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLinkAuthentication, a, b); + } +} + +/** + * MsgLinkAuthenticationResponse is the response type for the + * LinkAuthentication RPC. + * + * @generated from message did.v1.MsgLinkAuthenticationResponse + */ +export class MsgLinkAuthenticationResponse extends Message { + /** + * Success returns true if the specified cid is valid and not already + * encrypted. + * + * @generated from field: bool success = 1; + */ + success = false; + + /** + * Controller is the address of the initialized controller. + * + * @generated from field: string did = 2; + */ + did = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgLinkAuthenticationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAuthenticationResponse { + return new MsgLinkAuthenticationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAuthenticationResponse { + return new MsgLinkAuthenticationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLinkAuthenticationResponse { + return new MsgLinkAuthenticationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgLinkAuthenticationResponse | PlainMessage | undefined, b: MsgLinkAuthenticationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLinkAuthenticationResponse, a, b); + } +} + +/** + * MsgLinkAssertion is the message type for the LinkAssertion RPC. + * + * @generated from message did.v1.MsgLinkAssertion + */ +export class MsgLinkAssertion extends Message { + /** + * Controller is the address of the controller to authenticate. + * + * @generated from field: string controller = 1; + */ + controller = ""; + + /** + * Subject is the subject of the authentication. + * + * @generated from field: string subject = 2; + */ + subject = ""; + + /** + * Assertion is the assertion of the authentication. + * + * @generated from field: string assertion = 3; + */ + assertion = ""; + + /** + * token is the macron token to authenticate the operation. + * + * @generated from field: string macaroon_token = 4; + */ + macaroonToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgLinkAssertion"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "assertion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAssertion { + return new MsgLinkAssertion().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAssertion { + return new MsgLinkAssertion().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLinkAssertion { + return new MsgLinkAssertion().fromJsonString(jsonString, options); + } + + static equals(a: MsgLinkAssertion | PlainMessage | undefined, b: MsgLinkAssertion | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLinkAssertion, a, b); + } +} + +/** + * MsgLinkAssertionResponse is the response type for the + * LinkAssertion RPC. + * + * @generated from message did.v1.MsgLinkAssertionResponse + */ +export class MsgLinkAssertionResponse extends Message { + /** + * Success returns true if the specified cid is valid and not already + * encrypted. + * + * @generated from field: bool success = 1; + */ + success = false; + + /** + * Controller is the address of the initialized controller. + * + * @generated from field: string did = 2; + */ + did = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgLinkAssertionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAssertionResponse { + return new MsgLinkAssertionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAssertionResponse { + return new MsgLinkAssertionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLinkAssertionResponse { + return new MsgLinkAssertionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgLinkAssertionResponse | PlainMessage | undefined, b: MsgLinkAssertionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLinkAssertionResponse, a, b); + } +} + +/** + * MsgExecuteTx is the message type for the ExecuteTx RPC. + * + * @generated from message did.v1.MsgExecuteTx + */ +export class MsgExecuteTx extends Message { + /** + * Controller is the address of the controller to authenticate. + * + * @generated from field: string controller = 1; + */ + controller = ""; + + /** + * Messages is the list of messages to execute. + * + * @generated from field: map messages = 2; + */ + messages: { [key: string]: Uint8Array } = {}; + + /** + * MacaroonToken is the macaroon token to authenticate the operation. + * + * @generated from field: string macaroon_token = 3; + */ + macaroonToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgExecuteTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "messages", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 12 /* ScalarType.BYTES */} }, + { no: 3, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteTx { + return new MsgExecuteTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteTx { + return new MsgExecuteTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteTx { + return new MsgExecuteTx().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteTx | PlainMessage | undefined, b: MsgExecuteTx | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteTx, a, b); + } +} + +/** + * MsgExecuteTxResponse is the response type for the ExecuteTx RPC. + * + * @generated from message did.v1.MsgExecuteTxResponse + */ +export class MsgExecuteTxResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + /** + * @generated from field: string tx_hash = 2; + */ + txHash = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgExecuteTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteTxResponse { + return new MsgExecuteTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteTxResponse { + return new MsgExecuteTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteTxResponse { + return new MsgExecuteTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteTxResponse | PlainMessage | undefined, b: MsgExecuteTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteTxResponse, a, b); + } +} + +/** + * MsgUnlinkAssertion is the message type for the UnlinkAssertion RPC. + * + * @generated from message did.v1.MsgUnlinkAssertion + */ +export class MsgUnlinkAssertion extends Message { + /** + * Controller is the address of the controller to authenticate. + * + * @generated from field: string controller = 1; + */ + controller = ""; + + /** + * Assertion is the assertion of the authentication. + * + * @generated from field: string assertion_did = 2; + */ + assertionDid = ""; + + /** + * token is the macron token to authenticate the operation. + * + * @generated from field: string macaroon_token = 3; + */ + macaroonToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgUnlinkAssertion"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "assertion_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAssertion { + return new MsgUnlinkAssertion().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAssertion { + return new MsgUnlinkAssertion().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAssertion { + return new MsgUnlinkAssertion().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlinkAssertion | PlainMessage | undefined, b: MsgUnlinkAssertion | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlinkAssertion, a, b); + } +} + +/** + * MsgUnlinkAssertionResponse is the response type for the + * UnlinkAssertion RPC. + * + * @generated from message did.v1.MsgUnlinkAssertionResponse + */ +export class MsgUnlinkAssertionResponse extends Message { + /** + * Success returns true if the specified cid is valid and not already + * encrypted. + * + * @generated from field: bool success = 1; + */ + success = false; + + /** + * Controller is the address of the initialized controller. + * + * @generated from field: string did = 2; + */ + did = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgUnlinkAssertionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAssertionResponse { + return new MsgUnlinkAssertionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAssertionResponse { + return new MsgUnlinkAssertionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAssertionResponse { + return new MsgUnlinkAssertionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlinkAssertionResponse | PlainMessage | undefined, b: MsgUnlinkAssertionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlinkAssertionResponse, a, b); + } +} + +/** + * MsgUnlinkAuthentication is the message type for the UnlinkAuthentication RPC. + * + * @generated from message did.v1.MsgUnlinkAuthentication + */ +export class MsgUnlinkAuthentication extends Message { + /** + * Controller is the address of the controller to authenticate. + * + * @generated from field: string controller = 1; + */ + controller = ""; + + /** + * Subject is the subject of the authentication. + * + * @generated from field: string authentication_did = 2; + */ + authenticationDid = ""; + + /** + * token is the macron token to authenticate the operation. + * + * @generated from field: string macaroon_token = 3; + */ + macaroonToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgUnlinkAuthentication"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authentication_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAuthentication { + return new MsgUnlinkAuthentication().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAuthentication { + return new MsgUnlinkAuthentication().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAuthentication { + return new MsgUnlinkAuthentication().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlinkAuthentication | PlainMessage | undefined, b: MsgUnlinkAuthentication | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlinkAuthentication, a, b); + } +} + +/** + * MsgUnlinkAuthenticationResponse is the response type for the + * UnlinkAuthentication RPC. + * + * @generated from message did.v1.MsgUnlinkAuthenticationResponse + */ +export class MsgUnlinkAuthenticationResponse extends Message { + /** + * Success returns true if the specified cid is valid and not already + * encrypted. + * + * @generated from field: bool success = 1; + */ + success = false; + + /** + * Controller is the address of the initialized controller. + * + * @generated from field: string did = 2; + */ + did = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.v1.MsgUnlinkAuthenticationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAuthenticationResponse { + return new MsgUnlinkAuthenticationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAuthenticationResponse { + return new MsgUnlinkAuthenticationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAuthenticationResponse { + return new MsgUnlinkAuthenticationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlinkAuthenticationResponse | PlainMessage | undefined, b: MsgUnlinkAuthenticationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlinkAuthenticationResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message did.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 parameters to update. + * + * @generated from field: did.v1.Params params = 2; + */ + params?: Params; + + /** + * token is the macron token to authenticate the operation. + * + * @generated from field: string token = 3; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "did.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 }, + { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + 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. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message did.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 = "did.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/libs/es-client/src/protobufs/dwn/module/v1/module_pb.ts b/libs/es-client/src/protobufs/dwn/module/v1/module_pb.ts new file mode 100644 index 0000000..e1731a5 --- /dev/null +++ b/libs/es-client/src/protobufs/dwn/module/v1/module_pb.ts @@ -0,0 +1,42 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dwn/module/v1/module.proto (package dwn.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the app config object of the module. + * Learn more: https://docs.cosmos.network/main/building-modules/depinject + * + * @generated from message dwn.module.v1.Module + */ +export class Module extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/dwn/v1/genesis_pb.ts b/libs/es-client/src/protobufs/dwn/v1/genesis_pb.ts new file mode 100644 index 0000000..951ab3b --- /dev/null +++ b/libs/es-client/src/protobufs/dwn/v1/genesis_pb.ts @@ -0,0 +1,243 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dwn/v1/genesis.proto (package dwn.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * GenesisState defines the module genesis state + * + * @generated from message dwn.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines all the parameters of the module. + * + * @generated from field: dwn.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.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); + } +} + +/** + * Params defines the set of module parameters. + * + * @generated from message dwn.v1.Params + */ +export class Params extends Message { + /** + * Attenuation defines the available attenuations + * + * @generated from field: repeated dwn.v1.Attenuation attenuations = 1; + */ + attenuations: Attenuation[] = []; + + /** + * @generated from field: repeated string allowed_operators = 2; + */ + allowedOperators: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attenuations", kind: "message", T: Attenuation, repeated: true }, + { no: 2, name: "allowed_operators", 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); + } +} + +/** + * Attenuation defines the attenuation of a resource + * + * @generated from message dwn.v1.Attenuation + */ +export class Attenuation extends Message { + /** + * @generated from field: dwn.v1.Resource resource = 1; + */ + resource?: Resource; + + /** + * @generated from field: repeated dwn.v1.Capability capabilities = 2; + */ + capabilities: Capability[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.Attenuation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource", kind: "message", T: Resource }, + { no: 2, name: "capabilities", kind: "message", T: Capability, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Attenuation { + return new Attenuation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Attenuation { + return new Attenuation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Attenuation { + return new Attenuation().fromJsonString(jsonString, options); + } + + static equals(a: Attenuation | PlainMessage | undefined, b: Attenuation | PlainMessage | undefined): boolean { + return proto3.util.equals(Attenuation, a, b); + } +} + +/** + * Capability reprensents the available capabilities of a decentralized web node + * + * @generated from message dwn.v1.Capability + */ +export class Capability extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: string parent = 2; + */ + parent = ""; + + /** + * @generated from field: string description = 3; + */ + description = ""; + + /** + * @generated from field: repeated string resources = 4; + */ + resources: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.Capability"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "parent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "resources", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + 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); + } +} + +/** + * Resource reprensents the available resources of a decentralized web node + * + * @generated from message dwn.v1.Resource + */ +export class Resource extends Message { + /** + * @generated from field: string kind = 1; + */ + kind = ""; + + /** + * @generated from field: string template = 2; + */ + template = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.Resource"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Resource { + return new Resource().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Resource { + return new Resource().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Resource { + return new Resource().fromJsonString(jsonString, options); + } + + static equals(a: Resource | PlainMessage | undefined, b: Resource | PlainMessage | undefined): boolean { + return proto3.util.equals(Resource, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/dwn/v1/query_cosmes.ts b/libs/es-client/src/protobufs/dwn/v1/query_cosmes.ts new file mode 100644 index 0000000..daec780 --- /dev/null +++ b/libs/es-client/src/protobufs/dwn/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file dwn/v1/query.proto (package dwn.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "dwn.v1.Query"; + +/** + * Params queries all parameters of the module. + * + * @generated from rpc dwn.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/dwn/v1/query_pb.ts b/libs/es-client/src/protobufs/dwn/v1/query_pb.ts new file mode 100644 index 0000000..fbf34fb --- /dev/null +++ b/libs/es-client/src/protobufs/dwn/v1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dwn/v1/query.proto (package dwn.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 "./genesis_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message dwn.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 = "dwn.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 dwn.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: dwn.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.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/libs/es-client/src/protobufs/dwn/v1/state_pb.ts b/libs/es-client/src/protobufs/dwn/v1/state_pb.ts new file mode 100644 index 0000000..be7479f --- /dev/null +++ b/libs/es-client/src/protobufs/dwn/v1/state_pb.ts @@ -0,0 +1,130 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dwn/v1/state.proto (package dwn.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"; + +/** + * @generated from message dwn.v1.Credential + */ +export class Credential extends Message { + /** + * The credential ID as a byte array + * + * @generated from field: bytes id = 1; + */ + id = new Uint8Array(0); + + /** + * The credential type (e.g. "public-key") + * + * @generated from field: string kind = 2; + */ + kind = ""; + + /** + * Optional transport hints (usb, nfc, ble, internal) + * + * @generated from field: repeated string transports = 3; + */ + transports: string[] = []; + + /** + * The credential's public key + * + * @generated from field: bytes public_key = 4; + */ + publicKey = new Uint8Array(0); + + /** + * The attestation type used (e.g. "none", "indirect", etc) + * + * @generated from field: string attestation_type = 5; + */ + attestationType = ""; + + /** + * Timestamp of when the credential was created + * + * @generated from field: uint64 created_at = 6; + */ + createdAt = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.Credential"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "public_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "attestation_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Credential { + return new Credential().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Credential { + return new Credential().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Credential { + return new Credential().fromJsonString(jsonString, options); + } + + static equals(a: Credential | PlainMessage | undefined, b: Credential | PlainMessage | undefined): boolean { + return proto3.util.equals(Credential, a, b); + } +} + +/** + * @generated from message dwn.v1.Profile + */ +export class Profile extends Message { + /** + * @generated from field: bytes account = 1; + */ + account = new Uint8Array(0); + + /** + * @generated from field: uint64 amount = 2; + */ + amount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.Profile"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Profile { + return new Profile().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Profile { + return new Profile().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Profile { + return new Profile().fromJsonString(jsonString, options); + } + + static equals(a: Profile | PlainMessage | undefined, b: Profile | PlainMessage | undefined): boolean { + return proto3.util.equals(Profile, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/dwn/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/dwn/v1/tx_cosmes.ts new file mode 100644 index 0000000..86febd7 --- /dev/null +++ b/libs/es-client/src/protobufs/dwn/v1/tx_cosmes.ts @@ -0,0 +1,35 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file dwn/v1/tx.proto (package dwn.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgInitialize, MsgInitializeResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "dwn.v1.Msg"; + +/** + * UpdateParams defines a governance operation for updating the parameters. + * + * Since: cosmos-sdk 0.47 + * + * @generated from rpc dwn.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * Spawn spawns a new Vault + * + * @generated from rpc dwn.v1.Msg.Initialize + */ +export const MsgInitializeService = { + typeName: TYPE_NAME, + method: "Initialize", + Request: MsgInitialize, + Response: MsgInitializeResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/dwn/v1/tx_pb.ts b/libs/es-client/src/protobufs/dwn/v1/tx_pb.ts new file mode 100644 index 0000000..cb7478f --- /dev/null +++ b/libs/es-client/src/protobufs/dwn/v1/tx_pb.ts @@ -0,0 +1,188 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dwn/v1/tx.proto (package dwn.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 "./genesis_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message dwn.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 parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: dwn.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.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. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message dwn.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 = "dwn.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); + } +} + +/** + * MsgSpawn spawns a New Vault with Unclaimed State. This is a one-time + * operation that must be performed interacting with the Vault. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message dwn.v1.MsgInitialize + */ +export class MsgInitialize extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: dwn.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.MsgInitialize"; + 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): MsgInitialize { + return new MsgInitialize().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitialize { + return new MsgInitialize().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInitialize { + return new MsgInitialize().fromJsonString(jsonString, options); + } + + static equals(a: MsgInitialize | PlainMessage | undefined, b: MsgInitialize | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInitialize, a, b); + } +} + +/** + * MsgSpawnResponse defines the response structure for executing a + * MsgSpawn message. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message dwn.v1.MsgInitializeResponse + */ +export class MsgInitializeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dwn.v1.MsgInitializeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInitializeResponse { + return new MsgInitializeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitializeResponse { + return new MsgInitializeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInitializeResponse { + return new MsgInitializeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInitializeResponse | PlainMessage | undefined, b: MsgInitializeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInitializeResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/ack_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/ack_pb.ts new file mode 100644 index 0000000..6963d28 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/fee/v1/fee_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/fee_pb.ts new file mode 100644 index 0000000..e120d6c --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts new file mode 100644 index 0000000..766781e --- /dev/null +++ b/libs/es-client/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 identifier 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/libs/es-client/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts new file mode 100644 index 0000000..67da24f --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts new file mode 100644 index 0000000..69234a4 --- /dev/null +++ b/libs/es-client/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; + +/** + * IncentivizedPacketsForChannel retrieves 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/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_pb.ts new file mode 100644 index 0000000..e46cb70 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_pb.ts @@ -0,0 +1,927 @@ +// @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); + } +} + +/** + * QueryIncentivizedPacketResponse 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); + } +} + +/** + * QueryIncentivizedPacketsForChannelResponse defines the response type for querying for all incentivized packets + * for a specific channel + * + * @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/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts new file mode 100644 index 0000000..432bfd1 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_pb.ts new file mode 100644 index 0000000..8c62092 --- /dev/null +++ b/libs/es-client/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 identifier + * + * @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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts new file mode 100644 index 0000000..834316b --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts new file mode 100644 index 0000000..af11d25 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts new file mode 100644 index 0000000..9b66882 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts new file mode 100644 index 0000000..76cc02f --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts new file mode 100644 index 0000000..7aae1e4 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts @@ -0,0 +1,296 @@ +// @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 { Order } from "../../../../core/channel/v1/channel_pb.js"; +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 = ""; + + /** + * @generated from field: ibc.core.channel.v1.Order ordering = 4; + */ + ordering = Order.NONE_UNSPECIFIED; + + 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 */ }, + { no: 4, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, + ]); + + 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 { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * 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: "signer", 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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts new file mode 100644 index 0000000..603afa0 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts new file mode 100644 index 0000000..44daab0 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts @@ -0,0 +1,110 @@ +// @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); + } +} + +/** + * QueryRequest defines the parameters for a particular query request + * by an interchain account. + * + * @generated from message ibc.applications.interchain_accounts.host.v1.QueryRequest + */ +export class QueryRequest extends Message { + /** + * path defines the path of the query request as defined by ADR-021. + * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing + * + * @generated from field: string path = 1; + */ + path = ""; + + /** + * data defines the payload of the query request as defined by ADR-021. + * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing + * + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest { + return new QueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest { + return new QueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRequest { + return new QueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRequest, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts new file mode 100644 index 0000000..89d6014 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts new file mode 100644 index 0000000..13c0f9d --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts new file mode 100644 index 0000000..cd4fb7f --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/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/interchain_accounts/host/v1/tx.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgModuleQuerySafe, MsgModuleQuerySafeResponse, 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; + +/** + * ModuleQuerySafe defines a rpc handler for MsgModuleQuerySafe. + * + * @generated from rpc ibc.applications.interchain_accounts.host.v1.Msg.ModuleQuerySafe + */ +export const MsgModuleQuerySafeService = { + typeName: TYPE_NAME, + method: "ModuleQuerySafe", + Request: MsgModuleQuerySafe, + Response: MsgModuleQuerySafeResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts new file mode 100644 index 0000000..c9014c6 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts @@ -0,0 +1,191 @@ +// @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, protoInt64 } from "@bufbuild/protobuf"; +import { Params, QueryRequest } 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 { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * 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: "signer", 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); + } +} + +/** + * MsgModuleQuerySafe defines the payload for Msg/ModuleQuerySafe + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe + */ +export class MsgModuleQuerySafe extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * requests defines the module safe queries to execute. + * + * @generated from field: repeated ibc.applications.interchain_accounts.host.v1.QueryRequest requests = 2; + */ + requests: QueryRequest[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "requests", kind: "message", T: QueryRequest, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromJsonString(jsonString, options); + } + + static equals(a: MsgModuleQuerySafe | PlainMessage | undefined, b: MsgModuleQuerySafe | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgModuleQuerySafe, a, b); + } +} + +/** + * MsgModuleQuerySafeResponse defines the response for Msg/ModuleQuerySafe + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse + */ +export class MsgModuleQuerySafeResponse extends Message { + /** + * height at which the responses were queried + * + * @generated from field: uint64 height = 1; + */ + height = protoInt64.zero; + + /** + * protobuf encoded responses for each query + * + * @generated from field: repeated bytes responses = 2; + */ + responses: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "responses", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgModuleQuerySafeResponse | PlainMessage | undefined, b: MsgModuleQuerySafeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgModuleQuerySafeResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts new file mode 100644 index 0000000..02fc1a9 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts new file mode 100644 index 0000000..42873d6 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts new file mode 100644 index 0000000..5a3ac63 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts new file mode 100644 index 0000000..5f3d4b9 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts @@ -0,0 +1,176 @@ +// @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"; +import { Hop } from "./transfer_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[] = []; + + /** + * allow list of memo strings, an empty list prohibits all memo strings; + * a list only with "*" permits any memo string + * + * @generated from field: repeated string allowed_packet_data = 5; + */ + allowedPacketData: string[] = []; + + /** + * Forwarding options that are allowed. + * + * @generated from field: repeated ibc.applications.transfer.v1.AllowedForwarding allowed_forwarding = 6; + */ + allowedForwarding: AllowedForwarding[] = []; + + 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 }, + { no: 5, name: "allowed_packet_data", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "allowed_forwarding", kind: "message", T: AllowedForwarding, 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); + } +} + +/** + * AllowedForwarding defines which options are allowed for forwarding. + * + * @generated from message ibc.applications.transfer.v1.AllowedForwarding + */ +export class AllowedForwarding extends Message { + /** + * a list of allowed source port ID/channel ID pairs through which the packet is allowed to be forwarded until final + * destination + * + * @generated from field: repeated ibc.applications.transfer.v1.Hop hops = 1; + */ + hops: Hop[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.AllowedForwarding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hops", kind: "message", T: Hop, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllowedForwarding { + return new AllowedForwarding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllowedForwarding { + return new AllowedForwarding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllowedForwarding { + return new AllowedForwarding().fromJsonString(jsonString, options); + } + + static equals(a: AllowedForwarding | PlainMessage | undefined, b: AllowedForwarding | PlainMessage | undefined): boolean { + return proto3.util.equals(AllowedForwarding, 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/libs/es-client/src/protobufs/ibc/applications/transfer/v1/denomtrace_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/denomtrace_pb.ts new file mode 100644 index 0000000..6f3afc4 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/denomtrace_pb.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v1/denomtrace.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 + * @deprecated + */ +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); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts new file mode 100644 index 0000000..1eb253a --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts @@ -0,0 +1,57 @@ +// @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, QueryEscrowAddressRequest, QueryEscrowAddressResponse, QueryParamsRequest, QueryParamsResponse, QueryTotalEscrowForDenomRequest, QueryTotalEscrowForDenomResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.applications.transfer.v1.Query"; + +/** + * 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/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_pb.ts new file mode 100644 index 0000000..c225e01 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_pb.ts @@ -0,0 +1,336 @@ +// @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 { Params } from "./transfer_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * 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/libs/es-client/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts new file mode 100644 index 0000000..95e309f --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts @@ -0,0 +1,159 @@ +// @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"; + +/** + * 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); + } +} + +/** + * Forwarding defines a list of port ID, channel ID pairs determining the path + * through which a packet must be forwarded, and an unwind boolean indicating if + * the coin should be unwinded to its native chain before forwarding. + * + * @generated from message ibc.applications.transfer.v1.Forwarding + */ +export class Forwarding extends Message { + /** + * optional unwinding for the token transferred + * + * @generated from field: bool unwind = 1; + */ + unwind = false; + + /** + * optional intermediate path through which packet will be forwarded + * + * @generated from field: repeated ibc.applications.transfer.v1.Hop hops = 2; + */ + hops: Hop[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v1.Forwarding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unwind", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "hops", kind: "message", T: Hop, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Forwarding { + return new Forwarding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Forwarding { + return new Forwarding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Forwarding { + return new Forwarding().fromJsonString(jsonString, options); + } + + static equals(a: Forwarding | PlainMessage | undefined, b: Forwarding | PlainMessage | undefined): boolean { + return proto3.util.equals(Forwarding, a, b); + } +} + +/** + * Hop defines a port ID, channel ID pair specifying where tokens must be forwarded + * next in a multihop transfer. + * + * @generated from message ibc.applications.transfer.v1.Hop + */ +export class Hop extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @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.Hop"; + 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): Hop { + return new Hop().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Hop { + return new Hop().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Hop { + return new Hop().fromJsonString(jsonString, options); + } + + static equals(a: Hop | PlainMessage | undefined, b: Hop | PlainMessage | undefined): boolean { + return proto3.util.equals(Hop, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts new file mode 100644 index 0000000..d24c076 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts new file mode 100644 index 0000000..26d9aee --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts @@ -0,0 +1,255 @@ +// @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 { Forwarding, 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 token to be transferred. this field has been replaced by the tokens field. + * + * @generated from field: cosmos.base.v1beta1.Coin token = 3 [deprecated = true]; + * @deprecated + */ + 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 = ""; + + /** + * tokens to be transferred + * + * @generated from field: repeated cosmos.base.v1beta1.Coin tokens = 9; + */ + tokens: Coin[] = []; + + /** + * optional forwarding information + * + * @generated from field: ibc.applications.transfer.v1.Forwarding forwarding = 10; + */ + forwarding?: Forwarding; + + 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 */ }, + { no: 9, name: "tokens", kind: "message", T: Coin, repeated: true }, + { no: 10, name: "forwarding", kind: "message", T: Forwarding }, + ]); + + 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 { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * 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: "signer", 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/libs/es-client/src/protobufs/ibc/applications/transfer/v2/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/genesis_pb.ts new file mode 100644 index 0000000..489a817 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/genesis_pb.ts @@ -0,0 +1,126 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v2/genesis.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"; +import { Denom } from "./token_pb.js"; +import { Params } from "../v1/transfer_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; +import { Packet, PacketId } from "../../../core/channel/v1/channel_pb.js"; + +/** + * GenesisState defines the ibc-transfer genesis state + * + * @generated from message ibc.applications.transfer.v2.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: repeated ibc.applications.transfer.v2.Denom denoms = 2; + */ + denoms: Denom[] = []; + + /** + * @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[] = []; + + /** + * forwarded_packets contains the forwarded packets stored as part of the + * packet forwarding lifecycle + * + * @generated from field: repeated ibc.applications.transfer.v2.ForwardedPacket forwarded_packets = 5; + */ + forwardedPackets: ForwardedPacket[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denoms", kind: "message", T: Denom, repeated: true }, + { no: 3, name: "params", kind: "message", T: Params }, + { no: 4, name: "total_escrowed", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "forwarded_packets", kind: "message", T: ForwardedPacket, 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); + } +} + +/** + * ForwardedPacket defines the genesis type necessary to retrieve and store forwarded packets. + * + * @generated from message ibc.applications.transfer.v2.ForwardedPacket + */ +export class ForwardedPacket extends Message { + /** + * @generated from field: ibc.core.channel.v1.PacketId forward_key = 1; + */ + forwardKey?: PacketId; + + /** + * @generated from field: ibc.core.channel.v1.Packet packet = 2; + */ + packet?: Packet; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.ForwardedPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "forward_key", kind: "message", T: PacketId }, + { no: 2, name: "packet", kind: "message", T: Packet }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ForwardedPacket { + return new ForwardedPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ForwardedPacket { + return new ForwardedPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ForwardedPacket { + return new ForwardedPacket().fromJsonString(jsonString, options); + } + + static equals(a: ForwardedPacket | PlainMessage | undefined, b: ForwardedPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(ForwardedPacket, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts new file mode 100644 index 0000000..6d3c19f --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts @@ -0,0 +1,211 @@ +// @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"; +import { Token } from "./token_pb.js"; +import { Hop } from "../v1/transfer_pb.js"; + +/** + * 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); + } +} + +/** + * FungibleTokenPacketDataV2 defines a struct for the packet payload + * See FungibleTokenPacketDataV2 spec: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + * + * @generated from message ibc.applications.transfer.v2.FungibleTokenPacketDataV2 + */ +export class FungibleTokenPacketDataV2 extends Message { + /** + * the tokens to be transferred + * + * @generated from field: repeated ibc.applications.transfer.v2.Token tokens = 1; + */ + tokens: Token[] = []; + + /** + * the sender address + * + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * the recipient address on the destination chain + * + * @generated from field: string receiver = 3; + */ + receiver = ""; + + /** + * optional memo + * + * @generated from field: string memo = 4; + */ + memo = ""; + + /** + * optional forwarding information + * + * @generated from field: ibc.applications.transfer.v2.ForwardingPacketData forwarding = 5; + */ + forwarding?: ForwardingPacketData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.FungibleTokenPacketDataV2"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tokens", kind: "message", T: Token, repeated: true }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "forwarding", kind: "message", T: ForwardingPacketData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FungibleTokenPacketDataV2 { + return new FungibleTokenPacketDataV2().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FungibleTokenPacketDataV2 { + return new FungibleTokenPacketDataV2().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FungibleTokenPacketDataV2 { + return new FungibleTokenPacketDataV2().fromJsonString(jsonString, options); + } + + static equals(a: FungibleTokenPacketDataV2 | PlainMessage | undefined, b: FungibleTokenPacketDataV2 | PlainMessage | undefined): boolean { + return proto3.util.equals(FungibleTokenPacketDataV2, a, b); + } +} + +/** + * ForwardingPacketData defines a list of port ID, channel ID pairs determining the path + * through which a packet must be forwarded, and the destination memo string to be used in the + * final destination of the tokens. + * + * @generated from message ibc.applications.transfer.v2.ForwardingPacketData + */ +export class ForwardingPacketData extends Message { + /** + * optional memo consumed by final destination chain + * + * @generated from field: string destination_memo = 1; + */ + destinationMemo = ""; + + /** + * optional intermediate path through which packet will be forwarded. + * + * @generated from field: repeated ibc.applications.transfer.v1.Hop hops = 2; + */ + hops: Hop[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.ForwardingPacketData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "destination_memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "hops", kind: "message", T: Hop, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ForwardingPacketData { + return new ForwardingPacketData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ForwardingPacketData { + return new ForwardingPacketData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ForwardingPacketData { + return new ForwardingPacketData().fromJsonString(jsonString, options); + } + + static equals(a: ForwardingPacketData | PlainMessage | undefined, b: ForwardingPacketData | PlainMessage | undefined): boolean { + return proto3.util.equals(ForwardingPacketData, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_cosmes.ts new file mode 100644 index 0000000..fde77af --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v2/queryv2.proto (package ibc.applications.transfer.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDenomRequest, QueryDenomResponse, QueryDenomsRequest, QueryDenomsResponse } from "./queryv2_pb.js"; + +const TYPE_NAME = "ibc.applications.transfer.v2.QueryV2"; + +/** + * Denoms queries all denominations + * + * @generated from rpc ibc.applications.transfer.v2.QueryV2.Denoms + */ +export const QueryV2DenomsService = { + typeName: TYPE_NAME, + method: "Denoms", + Request: QueryDenomsRequest, + Response: QueryDenomsResponse, +} as const; + +/** + * Denom queries a denomination + * + * @generated from rpc ibc.applications.transfer.v2.QueryV2.Denom + */ +export const QueryV2DenomService = { + typeName: TYPE_NAME, + method: "Denom", + Request: QueryDenomRequest, + Response: QueryDenomResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_pb.ts new file mode 100644 index 0000000..f3cfe26 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_pb.ts @@ -0,0 +1,186 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v2/queryv2.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"; +import { Denom } from "./token_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryDenomRequest is the request type for the Query/Denom RPC + * method + * + * @generated from message ibc.applications.transfer.v2.QueryDenomRequest + */ +export class QueryDenomRequest extends Message { + /** + * hash (in hex format) or denom (full denom with ibc prefix) of the on chain denomination. + * + * @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.v2.QueryDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomRequest { + return new QueryDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomRequest { + return new QueryDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomRequest { + return new QueryDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomRequest | PlainMessage | undefined, b: QueryDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomRequest, a, b); + } +} + +/** + * QueryDenomResponse is the response type for the Query/Denom RPC + * method. + * + * @generated from message ibc.applications.transfer.v2.QueryDenomResponse + */ +export class QueryDenomResponse extends Message { + /** + * denom returns the requested denomination. + * + * @generated from field: ibc.applications.transfer.v2.Denom denom = 1; + */ + denom?: Denom; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.QueryDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "message", T: Denom }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomResponse { + return new QueryDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomResponse { + return new QueryDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomResponse { + return new QueryDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomResponse | PlainMessage | undefined, b: QueryDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomResponse, a, b); + } +} + +/** + * QueryDenomsRequest is the request type for the Query/Denoms RPC + * method + * + * @generated from message ibc.applications.transfer.v2.QueryDenomsRequest + */ +export class QueryDenomsRequest 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.v2.QueryDenomsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsRequest { + return new QueryDenomsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsRequest { + return new QueryDenomsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsRequest { + return new QueryDenomsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsRequest | PlainMessage | undefined, b: QueryDenomsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsRequest, a, b); + } +} + +/** + * QueryDenomsResponse is the response type for the Query/Denoms RPC + * method. + * + * @generated from message ibc.applications.transfer.v2.QueryDenomsResponse + */ +export class QueryDenomsResponse extends Message { + /** + * denoms returns all denominations. + * + * @generated from field: repeated ibc.applications.transfer.v2.Denom denoms = 1; + */ + denoms: Denom[] = []; + + /** + * 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.v2.QueryDenomsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "message", T: Denom, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsResponse { + return new QueryDenomsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsResponse { + return new QueryDenomsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsResponse { + return new QueryDenomsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsResponse | PlainMessage | undefined, b: QueryDenomsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/token_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/token_pb.ts new file mode 100644 index 0000000..c323641 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/token_pb.ts @@ -0,0 +1,107 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/applications/transfer/v2/token.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"; +import { Hop } from "../v1/transfer_pb.js"; + +/** + * Token defines a struct which represents a token to be transferred. + * + * @generated from message ibc.applications.transfer.v2.Token + */ +export class Token extends Message { + /** + * the token denomination + * + * @generated from field: ibc.applications.transfer.v2.Denom denom = 1; + */ + denom?: Denom; + + /** + * the token amount to be transferred + * + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.Token"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "message", T: Denom }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Token { + return new Token().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Token { + return new Token().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Token { + return new Token().fromJsonString(jsonString, options); + } + + static equals(a: Token | PlainMessage | undefined, b: Token | PlainMessage | undefined): boolean { + return proto3.util.equals(Token, a, b); + } +} + +/** + * Denom holds the base denom of a Token and a trace of the chains it was sent through. + * + * @generated from message ibc.applications.transfer.v2.Denom + */ +export class Denom extends Message { + /** + * the base token denomination + * + * @generated from field: string base = 1; + */ + base = ""; + + /** + * the trace of the token + * + * @generated from field: repeated ibc.applications.transfer.v1.Hop trace = 3; + */ + trace: Hop[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.transfer.v2.Denom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "trace", kind: "message", T: Hop, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Denom { + return new Denom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Denom { + return new Denom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Denom { + return new Denom().fromJsonString(jsonString, options); + } + + static equals(a: Denom | PlainMessage | undefined, b: Denom | PlainMessage | undefined): boolean { + return proto3.util.equals(Denom, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/channel_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/channel_pb.ts new file mode 100644 index 0000000..087d41f --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/channel/v1/channel_pb.ts @@ -0,0 +1,725 @@ +// @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, FLUSHING, FLUSHCOMPLETE 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, + + /** + * A channel has just accepted the upgrade handshake attempt and is flushing in-flight packets. + * + * @generated from enum value: STATE_FLUSHING = 5; + */ + FLUSHING = 5, + + /** + * A channel has just completed flushing any in-flight packets. + * + * @generated from enum value: STATE_FLUSHCOMPLETE = 6; + */ + FLUSHCOMPLETE = 6, +} +// 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" }, + { no: 5, name: "STATE_FLUSHING" }, + { no: 6, name: "STATE_FLUSHCOMPLETE" }, +]); + +/** + * 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 = ""; + + /** + * upgrade sequence indicates the latest upgrade attempt performed by this channel + * the value of 0 indicates the channel has never been upgraded + * + * @generated from field: uint64 upgrade_sequence = 6; + */ + upgradeSequence = protoInt64.zero; + + 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 */ }, + { no: 6, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + 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 = ""; + + /** + * upgrade sequence indicates the latest upgrade attempt performed by this channel + * the value of 0 indicates the channel has never been upgraded + * + * @generated from field: uint64 upgrade_sequence = 8; + */ + upgradeSequence = protoInt64.zero; + + 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 */ }, + { no: 8, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + 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 identifier 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); + } +} + +/** + * Params defines the set of IBC channel parameters. + * + * @generated from message ibc.core.channel.v1.Params + */ +export class Params extends Message { + /** + * the relative timeout after which channel upgrades will time out. + * + * @generated from field: ibc.core.channel.v1.Timeout upgrade_timeout = 1; + */ + upgradeTimeout?: Timeout; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "upgrade_timeout", kind: "message", T: Timeout }, + ]); + + 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/libs/es-client/src/protobufs/ibc/core/channel/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/genesis_pb.ts new file mode 100644 index 0000000..9e962cb --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/channel/v1/genesis_pb.ts @@ -0,0 +1,150 @@ +// @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, Params } 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; + + /** + * @generated from field: ibc.core.channel.v1.Params params = 9; + */ + params?: Params; + + 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 */ }, + { no: 9, 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); + } +} + +/** + * 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/libs/es-client/src/protobufs/ibc/core/channel/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/query_cosmes.ts new file mode 100644 index 0000000..445ed26 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/channel/v1/query_cosmes.ts @@ -0,0 +1,221 @@ +// @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, QueryChannelParamsRequest, QueryChannelParamsResponse, QueryChannelRequest, QueryChannelResponse, QueryChannelsRequest, QueryChannelsResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveResponse, QueryNextSequenceSendRequest, QueryNextSequenceSendResponse, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryPacketCommitmentRequest, QueryPacketCommitmentResponse, QueryPacketCommitmentsRequest, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketReceiptResponse, QueryUnreceivedAcksRequest, QueryUnreceivedAcksResponse, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsResponse, QueryUpgradeErrorRequest, QueryUpgradeErrorResponse, QueryUpgradeRequest, QueryUpgradeResponse } 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; + +/** + * UpgradeError returns the error receipt if the upgrade handshake failed. + * + * @generated from rpc ibc.core.channel.v1.Query.UpgradeError + */ +export const QueryUpgradeErrorService = { + typeName: TYPE_NAME, + method: "UpgradeError", + Request: QueryUpgradeErrorRequest, + Response: QueryUpgradeErrorResponse, +} as const; + +/** + * Upgrade returns the upgrade for a given port and channel id. + * + * @generated from rpc ibc.core.channel.v1.Query.Upgrade + */ +export const QueryUpgradeService = { + typeName: TYPE_NAME, + method: "Upgrade", + Request: QueryUpgradeRequest, + Response: QueryUpgradeResponse, +} as const; + +/** + * ChannelParams queries all parameters of the ibc channel submodule. + * + * @generated from rpc ibc.core.channel.v1.Query.ChannelParams + */ +export const QueryChannelParamsService = { + typeName: TYPE_NAME, + method: "ChannelParams", + Request: QueryChannelParamsRequest, + Response: QueryChannelParamsResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/query_pb.ts new file mode 100644 index 0000000..9d13e1e --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/channel/v1/query_pb.ts @@ -0,0 +1,1859 @@ +// @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, Params } from "./channel_pb.js"; +import { Height, IdentifiedClientState } from "../../client/v1/client_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { ErrorReceipt, Upgrade } from "./upgrade_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 response 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); + } +} + +/** + * QueryUpgradeErrorRequest is the request type for the Query/QueryUpgradeError RPC method + * + * @generated from message ibc.core.channel.v1.QueryUpgradeErrorRequest + */ +export class QueryUpgradeErrorRequest extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @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.QueryUpgradeErrorRequest"; + 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): QueryUpgradeErrorRequest { + return new QueryUpgradeErrorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeErrorRequest { + return new QueryUpgradeErrorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeErrorRequest { + return new QueryUpgradeErrorRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradeErrorRequest | PlainMessage | undefined, b: QueryUpgradeErrorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradeErrorRequest, a, b); + } +} + +/** + * QueryUpgradeErrorResponse is the response type for the Query/QueryUpgradeError RPC method + * + * @generated from message ibc.core.channel.v1.QueryUpgradeErrorResponse + */ +export class QueryUpgradeErrorResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.ErrorReceipt error_receipt = 1; + */ + errorReceipt?: ErrorReceipt; + + /** + * 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.QueryUpgradeErrorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "error_receipt", kind: "message", T: ErrorReceipt }, + { 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): QueryUpgradeErrorResponse { + return new QueryUpgradeErrorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeErrorResponse { + return new QueryUpgradeErrorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeErrorResponse { + return new QueryUpgradeErrorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradeErrorResponse | PlainMessage | undefined, b: QueryUpgradeErrorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradeErrorResponse, a, b); + } +} + +/** + * QueryUpgradeRequest is the request type for the QueryUpgradeRequest RPC method + * + * @generated from message ibc.core.channel.v1.QueryUpgradeRequest + */ +export class QueryUpgradeRequest extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @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.QueryUpgradeRequest"; + 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): QueryUpgradeRequest { + return new QueryUpgradeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeRequest { + return new QueryUpgradeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeRequest { + return new QueryUpgradeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradeRequest | PlainMessage | undefined, b: QueryUpgradeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradeRequest, a, b); + } +} + +/** + * QueryUpgradeResponse is the response type for the QueryUpgradeResponse RPC method + * + * @generated from message ibc.core.channel.v1.QueryUpgradeResponse + */ +export class QueryUpgradeResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.Upgrade upgrade = 1; + */ + upgrade?: Upgrade; + + /** + * 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.QueryUpgradeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "upgrade", kind: "message", T: Upgrade }, + { 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): QueryUpgradeResponse { + return new QueryUpgradeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeResponse { + return new QueryUpgradeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeResponse { + return new QueryUpgradeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUpgradeResponse | PlainMessage | undefined, b: QueryUpgradeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUpgradeResponse, a, b); + } +} + +/** + * QueryChannelParamsRequest is the request type for the Query/ChannelParams RPC method. + * + * @generated from message ibc.core.channel.v1.QueryChannelParamsRequest + */ +export class QueryChannelParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.QueryChannelParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelParamsRequest { + return new QueryChannelParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelParamsRequest { + return new QueryChannelParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelParamsRequest { + return new QueryChannelParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelParamsRequest | PlainMessage | undefined, b: QueryChannelParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelParamsRequest, a, b); + } +} + +/** + * QueryChannelParamsResponse is the response type for the Query/ChannelParams RPC method. + * + * @generated from message ibc.core.channel.v1.QueryChannelParamsResponse + */ +export class QueryChannelParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: ibc.core.channel.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.channel.v1.QueryChannelParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelParamsResponse { + return new QueryChannelParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelParamsResponse { + return new QueryChannelParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChannelParamsResponse { + return new QueryChannelParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryChannelParamsResponse | PlainMessage | undefined, b: QueryChannelParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChannelParamsResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts new file mode 100644 index 0000000..8698940 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts @@ -0,0 +1,238 @@ +// @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, MsgChannelUpgradeAck, MsgChannelUpgradeAckResponse, MsgChannelUpgradeCancel, MsgChannelUpgradeCancelResponse, MsgChannelUpgradeConfirm, MsgChannelUpgradeConfirmResponse, MsgChannelUpgradeInit, MsgChannelUpgradeInitResponse, MsgChannelUpgradeOpen, MsgChannelUpgradeOpenResponse, MsgChannelUpgradeTimeout, MsgChannelUpgradeTimeoutResponse, MsgChannelUpgradeTry, MsgChannelUpgradeTryResponse, MsgPruneAcknowledgements, MsgPruneAcknowledgementsResponse, MsgRecvPacket, MsgRecvPacketResponse, MsgTimeout, MsgTimeoutOnClose, MsgTimeoutOnCloseResponse, MsgTimeoutResponse, MsgUpdateParams, MsgUpdateParamsResponse } 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; + +/** + * ChannelUpgradeInit defines a rpc handler method for MsgChannelUpgradeInit. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeInit + */ +export const MsgChannelUpgradeInitService = { + typeName: TYPE_NAME, + method: "ChannelUpgradeInit", + Request: MsgChannelUpgradeInit, + Response: MsgChannelUpgradeInitResponse, +} as const; + +/** + * ChannelUpgradeTry defines a rpc handler method for MsgChannelUpgradeTry. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeTry + */ +export const MsgChannelUpgradeTryService = { + typeName: TYPE_NAME, + method: "ChannelUpgradeTry", + Request: MsgChannelUpgradeTry, + Response: MsgChannelUpgradeTryResponse, +} as const; + +/** + * ChannelUpgradeAck defines a rpc handler method for MsgChannelUpgradeAck. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeAck + */ +export const MsgChannelUpgradeAckService = { + typeName: TYPE_NAME, + method: "ChannelUpgradeAck", + Request: MsgChannelUpgradeAck, + Response: MsgChannelUpgradeAckResponse, +} as const; + +/** + * ChannelUpgradeConfirm defines a rpc handler method for MsgChannelUpgradeConfirm. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeConfirm + */ +export const MsgChannelUpgradeConfirmService = { + typeName: TYPE_NAME, + method: "ChannelUpgradeConfirm", + Request: MsgChannelUpgradeConfirm, + Response: MsgChannelUpgradeConfirmResponse, +} as const; + +/** + * ChannelUpgradeOpen defines a rpc handler method for MsgChannelUpgradeOpen. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeOpen + */ +export const MsgChannelUpgradeOpenService = { + typeName: TYPE_NAME, + method: "ChannelUpgradeOpen", + Request: MsgChannelUpgradeOpen, + Response: MsgChannelUpgradeOpenResponse, +} as const; + +/** + * ChannelUpgradeTimeout defines a rpc handler method for MsgChannelUpgradeTimeout. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeTimeout + */ +export const MsgChannelUpgradeTimeoutService = { + typeName: TYPE_NAME, + method: "ChannelUpgradeTimeout", + Request: MsgChannelUpgradeTimeout, + Response: MsgChannelUpgradeTimeoutResponse, +} as const; + +/** + * ChannelUpgradeCancel defines a rpc handler method for MsgChannelUpgradeCancel. + * + * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeCancel + */ +export const MsgChannelUpgradeCancelService = { + typeName: TYPE_NAME, + method: "ChannelUpgradeCancel", + Request: MsgChannelUpgradeCancel, + Response: MsgChannelUpgradeCancelResponse, +} as const; + +/** + * UpdateChannelParams defines a rpc handler method for MsgUpdateParams. + * + * @generated from rpc ibc.core.channel.v1.Msg.UpdateChannelParams + */ +export const MsgUpdateChannelParamsService = { + typeName: TYPE_NAME, + method: "UpdateChannelParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * PruneAcknowledgements defines a rpc handler method for MsgPruneAcknowledgements. + * + * @generated from rpc ibc.core.channel.v1.Msg.PruneAcknowledgements + */ +export const MsgPruneAcknowledgementsService = { + typeName: TYPE_NAME, + method: "PruneAcknowledgements", + Request: MsgPruneAcknowledgements, + Response: MsgPruneAcknowledgementsResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_pb.ts new file mode 100644 index 0000000..a92ae68 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_pb.ts @@ -0,0 +1,2068 @@ +// @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, Params, State } from "./channel_pb.js"; +import { Height } from "../../client/v1/client_pb.js"; +import { ErrorReceipt, Upgrade, UpgradeFields } from "./upgrade_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, + + /** + * The message was executed unsuccessfully + * + * @generated from enum value: RESPONSE_RESULT_TYPE_FAILURE = 3; + */ + FAILURE = 3, +} +// 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" }, + { no: 3, name: "RESPONSE_RESULT_TYPE_FAILURE" }, +]); + +/** + * 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. + * WARNING: a channel upgrade MUST NOT initialize an upgrade for this channel + * in the same block as executing this message otherwise the counterparty will + * be incapable of opening. + * + * @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 = ""; + + /** + * @generated from field: uint64 counterparty_upgrade_sequence = 6; + */ + counterpartyUpgradeSequence = protoInt64.zero; + + 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 */ }, + { no: 6, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + 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 = ""; + + /** + * @generated from field: uint64 counterparty_upgrade_sequence = 7; + */ + counterpartyUpgradeSequence = protoInt64.zero; + + 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 */ }, + { no: 7, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + 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); + } +} + +/** + * MsgChannelUpgradeInit defines the request type for the ChannelUpgradeInit rpc + * WARNING: Initializing a channel upgrade in the same block as opening the channel + * may result in the counterparty being incapable of opening. + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeInit + */ +export class MsgChannelUpgradeInit extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: ibc.core.channel.v1.UpgradeFields fields = 3; + */ + fields?: UpgradeFields; + + /** + * @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.MsgChannelUpgradeInit"; + 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: "fields", kind: "message", T: UpgradeFields }, + { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeInit { + return new MsgChannelUpgradeInit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeInit { + return new MsgChannelUpgradeInit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeInit { + return new MsgChannelUpgradeInit().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeInit | PlainMessage | undefined, b: MsgChannelUpgradeInit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeInit, a, b); + } +} + +/** + * MsgChannelUpgradeInitResponse defines the MsgChannelUpgradeInit response type + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeInitResponse + */ +export class MsgChannelUpgradeInitResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.Upgrade upgrade = 1; + */ + upgrade?: Upgrade; + + /** + * @generated from field: uint64 upgrade_sequence = 2; + */ + upgradeSequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeInitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "upgrade", kind: "message", T: Upgrade }, + { no: 2, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeInitResponse { + return new MsgChannelUpgradeInitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeInitResponse { + return new MsgChannelUpgradeInitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeInitResponse { + return new MsgChannelUpgradeInitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeInitResponse | PlainMessage | undefined, b: MsgChannelUpgradeInitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeInitResponse, a, b); + } +} + +/** + * MsgChannelUpgradeTry defines the request type for the ChannelUpgradeTry rpc + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTry + */ +export class MsgChannelUpgradeTry extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: repeated string proposed_upgrade_connection_hops = 3; + */ + proposedUpgradeConnectionHops: string[] = []; + + /** + * @generated from field: ibc.core.channel.v1.UpgradeFields counterparty_upgrade_fields = 4; + */ + counterpartyUpgradeFields?: UpgradeFields; + + /** + * @generated from field: uint64 counterparty_upgrade_sequence = 5; + */ + counterpartyUpgradeSequence = protoInt64.zero; + + /** + * @generated from field: bytes proof_channel = 6; + */ + proofChannel = new Uint8Array(0); + + /** + * @generated from field: bytes proof_upgrade = 7; + */ + proofUpgrade = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 8; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 9; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeTry"; + 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: "proposed_upgrade_connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "counterparty_upgrade_fields", kind: "message", T: UpgradeFields }, + { no: 5, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "proof_upgrade", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "proof_height", kind: "message", T: Height }, + { no: 9, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTry { + return new MsgChannelUpgradeTry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTry { + return new MsgChannelUpgradeTry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTry { + return new MsgChannelUpgradeTry().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeTry | PlainMessage | undefined, b: MsgChannelUpgradeTry | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeTry, a, b); + } +} + +/** + * MsgChannelUpgradeTryResponse defines the MsgChannelUpgradeTry response type + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTryResponse + */ +export class MsgChannelUpgradeTryResponse extends Message { + /** + * @generated from field: ibc.core.channel.v1.Upgrade upgrade = 1; + */ + upgrade?: Upgrade; + + /** + * @generated from field: uint64 upgrade_sequence = 2; + */ + upgradeSequence = protoInt64.zero; + + /** + * @generated from field: ibc.core.channel.v1.ResponseResultType result = 3; + */ + 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.MsgChannelUpgradeTryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "upgrade", kind: "message", T: Upgrade }, + { no: 2, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTryResponse { + return new MsgChannelUpgradeTryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTryResponse { + return new MsgChannelUpgradeTryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTryResponse { + return new MsgChannelUpgradeTryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeTryResponse | PlainMessage | undefined, b: MsgChannelUpgradeTryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeTryResponse, a, b); + } +} + +/** + * MsgChannelUpgradeAck defines the request type for the ChannelUpgradeAck rpc + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeAck + */ +export class MsgChannelUpgradeAck extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: ibc.core.channel.v1.Upgrade counterparty_upgrade = 3; + */ + counterpartyUpgrade?: Upgrade; + + /** + * @generated from field: bytes proof_channel = 4; + */ + proofChannel = new Uint8Array(0); + + /** + * @generated from field: bytes proof_upgrade = 5; + */ + proofUpgrade = 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.MsgChannelUpgradeAck"; + 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_upgrade", kind: "message", T: Upgrade }, + { no: 4, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "proof_upgrade", 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): MsgChannelUpgradeAck { + return new MsgChannelUpgradeAck().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeAck { + return new MsgChannelUpgradeAck().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeAck { + return new MsgChannelUpgradeAck().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeAck | PlainMessage | undefined, b: MsgChannelUpgradeAck | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeAck, a, b); + } +} + +/** + * MsgChannelUpgradeAckResponse defines MsgChannelUpgradeAck response type + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeAckResponse + */ +export class MsgChannelUpgradeAckResponse 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.MsgChannelUpgradeAckResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeAckResponse { + return new MsgChannelUpgradeAckResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeAckResponse { + return new MsgChannelUpgradeAckResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeAckResponse { + return new MsgChannelUpgradeAckResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeAckResponse | PlainMessage | undefined, b: MsgChannelUpgradeAckResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeAckResponse, a, b); + } +} + +/** + * MsgChannelUpgradeConfirm defines the request type for the ChannelUpgradeConfirm rpc + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeConfirm + */ +export class MsgChannelUpgradeConfirm extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: ibc.core.channel.v1.State counterparty_channel_state = 3; + */ + counterpartyChannelState = State.UNINITIALIZED_UNSPECIFIED; + + /** + * @generated from field: ibc.core.channel.v1.Upgrade counterparty_upgrade = 4; + */ + counterpartyUpgrade?: Upgrade; + + /** + * @generated from field: bytes proof_channel = 5; + */ + proofChannel = new Uint8Array(0); + + /** + * @generated from field: bytes proof_upgrade = 6; + */ + proofUpgrade = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 7; + */ + proofHeight?: Height; + + /** + * @generated from field: string signer = 8; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeConfirm"; + 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_state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 4, name: "counterparty_upgrade", kind: "message", T: Upgrade }, + { no: 5, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "proof_upgrade", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "proof_height", kind: "message", T: Height }, + { no: 8, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeConfirm { + return new MsgChannelUpgradeConfirm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeConfirm { + return new MsgChannelUpgradeConfirm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeConfirm { + return new MsgChannelUpgradeConfirm().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeConfirm | PlainMessage | undefined, b: MsgChannelUpgradeConfirm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeConfirm, a, b); + } +} + +/** + * MsgChannelUpgradeConfirmResponse defines MsgChannelUpgradeConfirm response type + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse + */ +export class MsgChannelUpgradeConfirmResponse 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.MsgChannelUpgradeConfirmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeConfirmResponse { + return new MsgChannelUpgradeConfirmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeConfirmResponse { + return new MsgChannelUpgradeConfirmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeConfirmResponse { + return new MsgChannelUpgradeConfirmResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeConfirmResponse | PlainMessage | undefined, b: MsgChannelUpgradeConfirmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeConfirmResponse, a, b); + } +} + +/** + * MsgChannelUpgradeOpen defines the request type for the ChannelUpgradeOpen rpc + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeOpen + */ +export class MsgChannelUpgradeOpen extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: ibc.core.channel.v1.State counterparty_channel_state = 3; + */ + counterpartyChannelState = State.UNINITIALIZED_UNSPECIFIED; + + /** + * @generated from field: uint64 counterparty_upgrade_sequence = 4; + */ + counterpartyUpgradeSequence = protoInt64.zero; + + /** + * @generated from field: bytes proof_channel = 5; + */ + proofChannel = 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.MsgChannelUpgradeOpen"; + 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_state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 4, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "proof_channel", 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): MsgChannelUpgradeOpen { + return new MsgChannelUpgradeOpen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeOpen { + return new MsgChannelUpgradeOpen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeOpen { + return new MsgChannelUpgradeOpen().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeOpen | PlainMessage | undefined, b: MsgChannelUpgradeOpen | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeOpen, a, b); + } +} + +/** + * MsgChannelUpgradeOpenResponse defines the MsgChannelUpgradeOpen response type + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeOpenResponse + */ +export class MsgChannelUpgradeOpenResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeOpenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeOpenResponse { + return new MsgChannelUpgradeOpenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeOpenResponse { + return new MsgChannelUpgradeOpenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeOpenResponse { + return new MsgChannelUpgradeOpenResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeOpenResponse | PlainMessage | undefined, b: MsgChannelUpgradeOpenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeOpenResponse, a, b); + } +} + +/** + * MsgChannelUpgradeTimeout defines the request type for the ChannelUpgradeTimeout rpc + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTimeout + */ +export class MsgChannelUpgradeTimeout extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: ibc.core.channel.v1.Channel counterparty_channel = 3; + */ + counterpartyChannel?: Channel; + + /** + * @generated from field: bytes proof_channel = 4; + */ + proofChannel = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 5; + */ + proofHeight?: Height; + + /** + * @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.MsgChannelUpgradeTimeout"; + 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", kind: "message", T: Channel }, + { no: 4, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "proof_height", kind: "message", T: Height }, + { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTimeout { + return new MsgChannelUpgradeTimeout().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTimeout { + return new MsgChannelUpgradeTimeout().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTimeout { + return new MsgChannelUpgradeTimeout().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeTimeout | PlainMessage | undefined, b: MsgChannelUpgradeTimeout | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeTimeout, a, b); + } +} + +/** + * MsgChannelUpgradeTimeoutResponse defines the MsgChannelUpgradeTimeout response type + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse + */ +export class MsgChannelUpgradeTimeoutResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTimeoutResponse { + return new MsgChannelUpgradeTimeoutResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTimeoutResponse { + return new MsgChannelUpgradeTimeoutResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTimeoutResponse { + return new MsgChannelUpgradeTimeoutResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeTimeoutResponse | PlainMessage | undefined, b: MsgChannelUpgradeTimeoutResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeTimeoutResponse, a, b); + } +} + +/** + * MsgChannelUpgradeCancel defines the request type for the ChannelUpgradeCancel rpc + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeCancel + */ +export class MsgChannelUpgradeCancel extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: ibc.core.channel.v1.ErrorReceipt error_receipt = 3; + */ + errorReceipt?: ErrorReceipt; + + /** + * @generated from field: bytes proof_error_receipt = 4; + */ + proofErrorReceipt = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 5; + */ + proofHeight?: Height; + + /** + * @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.MsgChannelUpgradeCancel"; + 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: "error_receipt", kind: "message", T: ErrorReceipt }, + { no: 4, name: "proof_error_receipt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "proof_height", kind: "message", T: Height }, + { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeCancel { + return new MsgChannelUpgradeCancel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeCancel { + return new MsgChannelUpgradeCancel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeCancel { + return new MsgChannelUpgradeCancel().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeCancel | PlainMessage | undefined, b: MsgChannelUpgradeCancel | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeCancel, a, b); + } +} + +/** + * MsgChannelUpgradeCancelResponse defines the MsgChannelUpgradeCancel response type + * + * @generated from message ibc.core.channel.v1.MsgChannelUpgradeCancelResponse + */ +export class MsgChannelUpgradeCancelResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeCancelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeCancelResponse { + return new MsgChannelUpgradeCancelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeCancelResponse { + return new MsgChannelUpgradeCancelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeCancelResponse { + return new MsgChannelUpgradeCancelResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChannelUpgradeCancelResponse | PlainMessage | undefined, b: MsgChannelUpgradeCancelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChannelUpgradeCancelResponse, a, b); + } +} + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * @generated from message ibc.core.channel.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 channel parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: ibc.core.channel.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.channel.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.channel.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.channel.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); + } +} + +/** + * MsgPruneAcknowledgements defines the request type for the PruneAcknowledgements rpc. + * + * @generated from message ibc.core.channel.v1.MsgPruneAcknowledgements + */ +export class MsgPruneAcknowledgements extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: uint64 limit = 3; + */ + limit = protoInt64.zero; + + /** + * @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.MsgPruneAcknowledgements"; + 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: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAcknowledgements { + return new MsgPruneAcknowledgements().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAcknowledgements { + return new MsgPruneAcknowledgements().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPruneAcknowledgements { + return new MsgPruneAcknowledgements().fromJsonString(jsonString, options); + } + + static equals(a: MsgPruneAcknowledgements | PlainMessage | undefined, b: MsgPruneAcknowledgements | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPruneAcknowledgements, a, b); + } +} + +/** + * MsgPruneAcknowledgementsResponse defines the response type for the PruneAcknowledgements rpc. + * + * @generated from message ibc.core.channel.v1.MsgPruneAcknowledgementsResponse + */ +export class MsgPruneAcknowledgementsResponse extends Message { + /** + * Number of sequences pruned (includes both packet acknowledgements and packet receipts where appropriate). + * + * @generated from field: uint64 total_pruned_sequences = 1; + */ + totalPrunedSequences = protoInt64.zero; + + /** + * Number of sequences left after pruning. + * + * @generated from field: uint64 total_remaining_sequences = 2; + */ + totalRemainingSequences = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.MsgPruneAcknowledgementsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_pruned_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_remaining_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAcknowledgementsResponse { + return new MsgPruneAcknowledgementsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAcknowledgementsResponse { + return new MsgPruneAcknowledgementsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPruneAcknowledgementsResponse { + return new MsgPruneAcknowledgementsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPruneAcknowledgementsResponse | PlainMessage | undefined, b: MsgPruneAcknowledgementsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPruneAcknowledgementsResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/upgrade_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/upgrade_pb.ts new file mode 100644 index 0000000..bc8bedb --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/channel/v1/upgrade_pb.ts @@ -0,0 +1,167 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/channel/v1/upgrade.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 { Order, Timeout } from "./channel_pb.js"; + +/** + * Upgrade is a verifiable type which contains the relevant information + * for an attempted upgrade. It provides the proposed changes to the channel + * end, the timeout for this upgrade attempt and the next packet sequence + * which allows the counterparty to efficiently know the highest sequence it has received. + * The next sequence send is used for pruning and upgrading from unordered to ordered channels. + * + * @generated from message ibc.core.channel.v1.Upgrade + */ +export class Upgrade extends Message { + /** + * @generated from field: ibc.core.channel.v1.UpgradeFields fields = 1; + */ + fields?: UpgradeFields; + + /** + * @generated from field: ibc.core.channel.v1.Timeout timeout = 2; + */ + timeout?: Timeout; + + /** + * @generated from field: uint64 next_sequence_send = 3; + */ + nextSequenceSend = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.Upgrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fields", kind: "message", T: UpgradeFields }, + { no: 2, name: "timeout", kind: "message", T: Timeout }, + { no: 3, name: "next_sequence_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Upgrade { + return new Upgrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Upgrade { + return new Upgrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Upgrade { + return new Upgrade().fromJsonString(jsonString, options); + } + + static equals(a: Upgrade | PlainMessage | undefined, b: Upgrade | PlainMessage | undefined): boolean { + return proto3.util.equals(Upgrade, a, b); + } +} + +/** + * UpgradeFields are the fields in a channel end which may be changed + * during a channel upgrade. + * + * @generated from message ibc.core.channel.v1.UpgradeFields + */ +export class UpgradeFields extends Message { + /** + * @generated from field: ibc.core.channel.v1.Order ordering = 1; + */ + ordering = Order.NONE_UNSPECIFIED; + + /** + * @generated from field: repeated string connection_hops = 2; + */ + connectionHops: string[] = []; + + /** + * @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.core.channel.v1.UpgradeFields"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, + { no: 2, name: "connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpgradeFields { + return new UpgradeFields().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpgradeFields { + return new UpgradeFields().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpgradeFields { + return new UpgradeFields().fromJsonString(jsonString, options); + } + + static equals(a: UpgradeFields | PlainMessage | undefined, b: UpgradeFields | PlainMessage | undefined): boolean { + return proto3.util.equals(UpgradeFields, a, b); + } +} + +/** + * ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the + * upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the + * next sequence. + * + * @generated from message ibc.core.channel.v1.ErrorReceipt + */ +export class ErrorReceipt extends Message { + /** + * the channel upgrade sequence + * + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * the error message detailing the cause of failure + * + * @generated from field: string message = 2; + */ + message = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.channel.v1.ErrorReceipt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ErrorReceipt { + return new ErrorReceipt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ErrorReceipt { + return new ErrorReceipt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ErrorReceipt { + return new ErrorReceipt().fromJsonString(jsonString, options); + } + + static equals(a: ErrorReceipt | PlainMessage | undefined, b: ErrorReceipt | PlainMessage | undefined): boolean { + return proto3.util.equals(ErrorReceipt, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/client_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/client_pb.ts new file mode 100644 index 0000000..fa39309 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/client/v1/client_pb.ts @@ -0,0 +1,262 @@ +// @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"; + +/** + * 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); + } +} + +/** + * 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 + * + * Please note that json tags for generated Go code are overridden to explicitly exclude the omitempty jsontag. + * This enforces the Go json marshaller to always emit zero values for both revision_number and revision_height. + * + * @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/libs/es-client/src/protobufs/ibc/core/client/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/genesis_pb.ts new file mode 100644 index 0000000..90b738e --- /dev/null +++ b/libs/es-client/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 will be used + * to export all client store keys that are not client or consensus states. + * + * @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/libs/es-client/src/protobufs/ibc/core/client/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/query_cosmes.ts new file mode 100644 index 0000000..5744fa3 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/client/v1/query_cosmes.ts @@ -0,0 +1,131 @@ +// @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, QueryVerifyMembershipRequest, QueryVerifyMembershipResponse } 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; + +/** + * VerifyMembership queries an IBC light client for proof verification of a value at a given key path. + * + * @generated from rpc ibc.core.client.v1.Query.VerifyMembership + */ +export const QueryVerifyMembershipService = { + typeName: TYPE_NAME, + method: "VerifyMembership", + Request: QueryVerifyMembershipRequest, + Response: QueryVerifyMembershipResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/query_pb.ts new file mode 100644 index 0000000..29b7f48 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/client/v1/query_pb.ts @@ -0,0 +1,970 @@ +// @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"; +import { MerklePath } from "../../commitment/v2/commitment_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 overrides 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); + } +} + +/** + * QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method + * + * @generated from message ibc.core.client.v1.QueryVerifyMembershipRequest + */ +export class QueryVerifyMembershipRequest extends Message { + /** + * client unique identifier. + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * the proof to be verified by the client. + * + * @generated from field: bytes proof = 2; + */ + proof = new Uint8Array(0); + + /** + * the height of the commitment root at which the proof is verified. + * + * @generated from field: ibc.core.client.v1.Height proof_height = 3; + */ + proofHeight?: Height; + + /** + * the value which is proven. + * + * @generated from field: bytes value = 5; + */ + value = new Uint8Array(0); + + /** + * optional time delay + * + * @generated from field: uint64 time_delay = 6; + */ + timeDelay = protoInt64.zero; + + /** + * optional block delay + * + * @generated from field: uint64 block_delay = 7; + */ + blockDelay = protoInt64.zero; + + /** + * the commitment key path. + * + * @generated from field: ibc.core.commitment.v2.MerklePath merkle_path = 8; + */ + merklePath?: MerklePath; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryVerifyMembershipRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "proof_height", kind: "message", T: Height }, + { no: 5, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "time_delay", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "block_delay", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "merkle_path", kind: "message", T: MerklePath }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyMembershipRequest { + return new QueryVerifyMembershipRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyMembershipRequest { + return new QueryVerifyMembershipRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVerifyMembershipRequest { + return new QueryVerifyMembershipRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVerifyMembershipRequest | PlainMessage | undefined, b: QueryVerifyMembershipRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVerifyMembershipRequest, a, b); + } +} + +/** + * QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method + * + * @generated from message ibc.core.client.v1.QueryVerifyMembershipResponse + */ +export class QueryVerifyMembershipResponse extends Message { + /** + * boolean indicating success or failure of proof verification. + * + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.QueryVerifyMembershipResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyMembershipResponse { + return new QueryVerifyMembershipResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyMembershipResponse { + return new QueryVerifyMembershipResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVerifyMembershipResponse { + return new QueryVerifyMembershipResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVerifyMembershipResponse | PlainMessage | undefined, b: QueryVerifyMembershipResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVerifyMembershipResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/tx_cosmes.ts new file mode 100644 index 0000000..6a722b5 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/client/v1/tx_cosmes.ts @@ -0,0 +1,93 @@ +// @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, MsgIBCSoftwareUpgrade, MsgIBCSoftwareUpgradeResponse, MsgRecoverClient, MsgRecoverClientResponse, 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; + +/** + * RecoverClient defines a rpc handler method for MsgRecoverClient. + * + * @generated from rpc ibc.core.client.v1.Msg.RecoverClient + */ +export const MsgRecoverClientService = { + typeName: TYPE_NAME, + method: "RecoverClient", + Request: MsgRecoverClient, + Response: MsgRecoverClientResponse, +} as const; + +/** + * IBCSoftwareUpgrade defines a rpc handler method for MsgIBCSoftwareUpgrade. + * + * @generated from rpc ibc.core.client.v1.Msg.IBCSoftwareUpgrade + */ +export const MsgIBCSoftwareUpgradeService = { + typeName: TYPE_NAME, + method: "IBCSoftwareUpgrade", + Request: MsgIBCSoftwareUpgrade, + Response: MsgIBCSoftwareUpgradeResponse, +} 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/libs/es-client/src/protobufs/ibc/core/client/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/tx_pb.ts new file mode 100644 index 0000000..8662b6d --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/client/v1/tx_pb.ts @@ -0,0 +1,678 @@ +// @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 { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade_pb.js"; +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 { + /** + * @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.MsgCreateClientResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + 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); + } +} + +/** + * MsgRecoverClient defines the message used to recover a frozen or expired client. + * + * @generated from message ibc.core.client.v1.MsgRecoverClient + */ +export class MsgRecoverClient extends Message { + /** + * the client identifier for the client to be updated if the proposal passes + * + * @generated from field: string subject_client_id = 1; + */ + subjectClientId = ""; + + /** + * the substitute client identifier for the client which will replace the subject + * client + * + * @generated from field: string substitute_client_id = 2; + */ + substituteClientId = ""; + + /** + * 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.MsgRecoverClient"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subject_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "substitute_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoverClient { + return new MsgRecoverClient().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoverClient { + return new MsgRecoverClient().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRecoverClient { + return new MsgRecoverClient().fromJsonString(jsonString, options); + } + + static equals(a: MsgRecoverClient | PlainMessage | undefined, b: MsgRecoverClient | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRecoverClient, a, b); + } +} + +/** + * MsgRecoverClientResponse defines the Msg/RecoverClient response type. + * + * @generated from message ibc.core.client.v1.MsgRecoverClientResponse + */ +export class MsgRecoverClientResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgRecoverClientResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoverClientResponse { + return new MsgRecoverClientResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoverClientResponse { + return new MsgRecoverClientResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRecoverClientResponse { + return new MsgRecoverClientResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRecoverClientResponse | PlainMessage | undefined, b: MsgRecoverClientResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRecoverClientResponse, a, b); + } +} + +/** + * MsgIBCSoftwareUpgrade defines the message used to schedule an upgrade of an IBC client using a v1 governance proposal + * + * @generated from message ibc.core.client.v1.MsgIBCSoftwareUpgrade + */ +export class MsgIBCSoftwareUpgrade extends Message { + /** + * @generated from field: cosmos.upgrade.v1beta1.Plan plan = 1; + */ + 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. Correspondingly, the UpgradedClientState field has been + * deprecated in the Cosmos SDK to allow for this logic to exist solely in + * the 02-client module. + * + * @generated from field: google.protobuf.Any upgraded_client_state = 2; + */ + upgradedClientState?: 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.MsgIBCSoftwareUpgrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "plan", kind: "message", T: Plan }, + { no: 2, name: "upgraded_client_state", kind: "message", T: Any }, + { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSoftwareUpgrade { + return new MsgIBCSoftwareUpgrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSoftwareUpgrade { + return new MsgIBCSoftwareUpgrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIBCSoftwareUpgrade { + return new MsgIBCSoftwareUpgrade().fromJsonString(jsonString, options); + } + + static equals(a: MsgIBCSoftwareUpgrade | PlainMessage | undefined, b: MsgIBCSoftwareUpgrade | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIBCSoftwareUpgrade, a, b); + } +} + +/** + * MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade response type. + * + * @generated from message ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse + */ +export class MsgIBCSoftwareUpgradeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSoftwareUpgradeResponse { + return new MsgIBCSoftwareUpgradeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSoftwareUpgradeResponse { + return new MsgIBCSoftwareUpgradeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIBCSoftwareUpgradeResponse { + return new MsgIBCSoftwareUpgradeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIBCSoftwareUpgradeResponse | PlainMessage | undefined, b: MsgIBCSoftwareUpgradeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIBCSoftwareUpgradeResponse, 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 { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * 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: "signer", 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/libs/es-client/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts b/libs/es-client/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts new file mode 100644 index 0000000..7261f96 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts @@ -0,0 +1,133 @@ +// @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); + } +} + +/** + * 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/libs/es-client/src/protobufs/ibc/core/commitment/v2/commitment_pb.ts b/libs/es-client/src/protobufs/ibc/core/commitment/v2/commitment_pb.ts new file mode 100644 index 0000000..5156a6b --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/commitment/v2/commitment_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/core/commitment/v2/commitment.proto (package ibc.core.commitment.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * 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.v2.MerklePath + */ +export class MerklePath extends Message { + /** + * @generated from field: repeated bytes key_path = 1; + */ + keyPath: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.core.commitment.v2.MerklePath"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key_path", kind: "scalar", T: 12 /* ScalarType.BYTES */, 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); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/core/connection/v1/connection_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/connection_pb.ts new file mode 100644 index 0000000..dd19dd6 --- /dev/null +++ b/libs/es-client/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 version 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/libs/es-client/src/protobufs/ibc/core/connection/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/genesis_pb.ts new file mode 100644 index 0000000..8a47988 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/core/connection/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/query_cosmes.ts new file mode 100644 index 0000000..0a65f86 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/core/connection/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/query_pb.ts new file mode 100644 index 0000000..82330dc --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts new file mode 100644 index 0000000..a68bae2 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_pb.ts new file mode 100644 index 0000000..c6085e5 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_pb.ts @@ -0,0 +1,603 @@ +// @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 = ""; + + /** + * Deprecated: this field is unused. + * + * @generated from field: google.protobuf.Any client_state = 3 [deprecated = true]; + * @deprecated + */ + 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: `UNINITIALIZED -> + * INIT` + * + * @generated from field: bytes proof_init = 8; + */ + proofInit = new Uint8Array(0); + + /** + * Deprecated: this field is unused. + * + * @generated from field: bytes proof_client = 9 [deprecated = true]; + * @deprecated + */ + proofClient = new Uint8Array(0); + + /** + * Deprecated: this field is unused. + * + * @generated from field: bytes proof_consensus = 10 [deprecated = true]; + * @deprecated + */ + proofConsensus = new Uint8Array(0); + + /** + * Deprecated: this field is unused. + * + * @generated from field: ibc.core.client.v1.Height consensus_height = 11 [deprecated = true]; + * @deprecated + */ + consensusHeight?: Height; + + /** + * @generated from field: string signer = 12; + */ + signer = ""; + + /** + * Deprecated: this field is unused. + * + * @generated from field: bytes host_consensus_state_proof = 13 [deprecated = true]; + * @deprecated + */ + 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; + + /** + * Deprecated: this field is unused. + * + * @generated from field: google.protobuf.Any client_state = 4 [deprecated = true]; + * @deprecated + */ + clientState?: Any; + + /** + * @generated from field: ibc.core.client.v1.Height proof_height = 5; + */ + proofHeight?: Height; + + /** + * proof of the initialization the connection on Chain B: `UNINITIALIZED -> + * TRYOPEN` + * + * @generated from field: bytes proof_try = 6; + */ + proofTry = new Uint8Array(0); + + /** + * Deprecated: this field is unused. + * + * @generated from field: bytes proof_client = 7 [deprecated = true]; + * @deprecated + */ + proofClient = new Uint8Array(0); + + /** + * Deprecated: this field is unused. + * + * @generated from field: bytes proof_consensus = 8 [deprecated = true]; + * @deprecated + */ + proofConsensus = new Uint8Array(0); + + /** + * Deprecated: this field is unused. + * + * @generated from field: ibc.core.client.v1.Height consensus_height = 9 [deprecated = true]; + * @deprecated + */ + consensusHeight?: Height; + + /** + * @generated from field: string signer = 10; + */ + signer = ""; + + /** + * Deprecated: this field is unused. + * + * @generated from field: bytes host_consensus_state_proof = 11 [deprecated = true]; + * @deprecated + */ + 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 { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * 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: "signer", 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/libs/es-client/src/protobufs/ibc/core/types/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/types/v1/genesis_pb.ts new file mode 100644 index 0000000..50f8307 --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts new file mode 100644 index 0000000..c242e2f --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts new file mode 100644 index 0000000..2cbd7ae --- /dev/null +++ b/libs/es-client/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/libs/es-client/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts new file mode 100644 index 0000000..46fba0a --- /dev/null +++ b/libs/es-client/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 "../../../../cometbft/types/v1/types_pb.js"; +import { ValidatorSet } from "../../../../cometbft/types/v1/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 LatestTimestamp 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: cometbft.types.v1.SignedHeader signed_header = 1; + */ + signedHeader?: SignedHeader; + + /** + * @generated from field: cometbft.types.v1.ValidatorSet validator_set = 2; + */ + validatorSet?: ValidatorSet; + + /** + * @generated from field: ibc.core.client.v1.Height trusted_height = 3; + */ + trustedHeight?: Height; + + /** + * @generated from field: cometbft.types.v1.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/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/genesis_pb.ts new file mode 100644 index 0000000..28664cb --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/genesis_pb.ts @@ -0,0 +1,90 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/wasm/v1/genesis.proto (package ibc.lightclients.wasm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * GenesisState defines 08-wasm's keeper genesis state + * + * @generated from message ibc.lightclients.wasm.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * uploaded light client wasm contracts + * + * @generated from field: repeated ibc.lightclients.wasm.v1.Contract contracts = 1; + */ + contracts: Contract[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contracts", kind: "message", T: Contract, 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); + } +} + +/** + * Contract stores contract code + * + * @generated from message ibc.lightclients.wasm.v1.Contract + */ +export class Contract extends Message { + /** + * contract byte code + * + * @generated from field: bytes code_bytes = 1; + */ + codeBytes = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.Contract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Contract { + return new Contract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Contract { + return new Contract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Contract { + return new Contract().fromJsonString(jsonString, options); + } + + static equals(a: Contract | PlainMessage | undefined, b: Contract | PlainMessage | undefined): boolean { + return proto3.util.equals(Contract, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_cosmes.ts new file mode 100644 index 0000000..b706abf --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/lightclients/wasm/v1/query.proto (package ibc.lightclients.wasm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryChecksumsRequest, QueryChecksumsResponse, QueryCodeRequest, QueryCodeResponse } from "./query_pb.js"; + +const TYPE_NAME = "ibc.lightclients.wasm.v1.Query"; + +/** + * Get all Wasm checksums + * + * @generated from rpc ibc.lightclients.wasm.v1.Query.Checksums + */ +export const QueryChecksumsService = { + typeName: TYPE_NAME, + method: "Checksums", + Request: QueryChecksumsRequest, + Response: QueryChecksumsResponse, +} as const; + +/** + * Get Wasm code for given checksum + * + * @generated from rpc ibc.lightclients.wasm.v1.Query.Code + */ +export const QueryCodeService = { + typeName: TYPE_NAME, + method: "Code", + Request: QueryCodeRequest, + Response: QueryCodeResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_pb.ts new file mode 100644 index 0000000..e4ddae6 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_pb.ts @@ -0,0 +1,179 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/wasm/v1/query.proto (package ibc.lightclients.wasm.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 { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryChecksumsRequest is the request type for the Query/Checksums RPC method. + * + * @generated from message ibc.lightclients.wasm.v1.QueryChecksumsRequest + */ +export class QueryChecksumsRequest 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.lightclients.wasm.v1.QueryChecksumsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChecksumsRequest { + return new QueryChecksumsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChecksumsRequest { + return new QueryChecksumsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChecksumsRequest { + return new QueryChecksumsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryChecksumsRequest | PlainMessage | undefined, b: QueryChecksumsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChecksumsRequest, a, b); + } +} + +/** + * QueryChecksumsResponse is the response type for the Query/Checksums RPC method. + * + * @generated from message ibc.lightclients.wasm.v1.QueryChecksumsResponse + */ +export class QueryChecksumsResponse extends Message { + /** + * checksums is a list of the hex encoded checksums of all wasm codes stored. + * + * @generated from field: repeated string checksums = 1; + */ + checksums: string[] = []; + + /** + * 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.lightclients.wasm.v1.QueryChecksumsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "checksums", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChecksumsResponse { + return new QueryChecksumsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChecksumsResponse { + return new QueryChecksumsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChecksumsResponse { + return new QueryChecksumsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryChecksumsResponse | PlainMessage | undefined, b: QueryChecksumsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChecksumsResponse, a, b); + } +} + +/** + * QueryCodeRequest is the request type for the Query/Code RPC method. + * + * @generated from message ibc.lightclients.wasm.v1.QueryCodeRequest + */ +export class QueryCodeRequest extends Message { + /** + * checksum is a hex encoded string of the code stored. + * + * @generated from field: string checksum = 1; + */ + checksum = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.QueryCodeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeRequest, a, b); + } +} + +/** + * QueryCodeResponse is the response type for the Query/Code RPC method. + * + * @generated from message ibc.lightclients.wasm.v1.QueryCodeResponse + */ +export class QueryCodeResponse extends Message { + /** + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.QueryCodeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_cosmes.ts new file mode 100644 index 0000000..8b6e2f9 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file ibc/lightclients/wasm/v1/tx.proto (package ibc.lightclients.wasm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgMigrateContract, MsgMigrateContractResponse, MsgRemoveChecksum, MsgRemoveChecksumResponse, MsgStoreCode, MsgStoreCodeResponse } from "./tx_pb.js"; + +const TYPE_NAME = "ibc.lightclients.wasm.v1.Msg"; + +/** + * StoreCode defines a rpc handler method for MsgStoreCode. + * + * @generated from rpc ibc.lightclients.wasm.v1.Msg.StoreCode + */ +export const MsgStoreCodeService = { + typeName: TYPE_NAME, + method: "StoreCode", + Request: MsgStoreCode, + Response: MsgStoreCodeResponse, +} as const; + +/** + * RemoveChecksum defines a rpc handler method for MsgRemoveChecksum. + * + * @generated from rpc ibc.lightclients.wasm.v1.Msg.RemoveChecksum + */ +export const MsgRemoveChecksumService = { + typeName: TYPE_NAME, + method: "RemoveChecksum", + Request: MsgRemoveChecksum, + Response: MsgRemoveChecksumResponse, +} as const; + +/** + * MigrateContract defines a rpc handler method for MsgMigrateContract. + * + * @generated from rpc ibc.lightclients.wasm.v1.Msg.MigrateContract + */ +export const MsgMigrateContractService = { + typeName: TYPE_NAME, + method: "MigrateContract", + Request: MsgMigrateContract, + Response: MsgMigrateContractResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_pb.ts new file mode 100644 index 0000000..50a5cff --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_pb.ts @@ -0,0 +1,278 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/wasm/v1/tx.proto (package ibc.lightclients.wasm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * MsgStoreCode defines the request type for the StoreCode rpc. + * + * @generated from message ibc.lightclients.wasm.v1.MsgStoreCode + */ +export class MsgStoreCode extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * wasm byte code of light client contract. It can be raw or gzip compressed + * + * @generated from field: bytes wasm_byte_code = 2; + */ + wasmByteCode = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.MsgStoreCode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCode { + return new MsgStoreCode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCode { + return new MsgStoreCode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreCode { + return new MsgStoreCode().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreCode | PlainMessage | undefined, b: MsgStoreCode | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreCode, a, b); + } +} + +/** + * MsgStoreCodeResponse defines the response type for the StoreCode rpc + * + * @generated from message ibc.lightclients.wasm.v1.MsgStoreCodeResponse + */ +export class MsgStoreCodeResponse extends Message { + /** + * checksum is the sha256 hash of the stored code + * + * @generated from field: bytes checksum = 1; + */ + checksum = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.MsgStoreCodeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCodeResponse { + return new MsgStoreCodeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCodeResponse { + return new MsgStoreCodeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStoreCodeResponse { + return new MsgStoreCodeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStoreCodeResponse | PlainMessage | undefined, b: MsgStoreCodeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStoreCodeResponse, a, b); + } +} + +/** + * MsgRemoveChecksum defines the request type for the MsgRemoveChecksum rpc. + * + * @generated from message ibc.lightclients.wasm.v1.MsgRemoveChecksum + */ +export class MsgRemoveChecksum extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * checksum is the sha256 hash to be removed from the store + * + * @generated from field: bytes checksum = 2; + */ + checksum = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.MsgRemoveChecksum"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveChecksum { + return new MsgRemoveChecksum().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveChecksum { + return new MsgRemoveChecksum().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveChecksum { + return new MsgRemoveChecksum().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveChecksum | PlainMessage | undefined, b: MsgRemoveChecksum | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveChecksum, a, b); + } +} + +/** + * MsgStoreChecksumResponse defines the response type for the StoreCode rpc + * + * @generated from message ibc.lightclients.wasm.v1.MsgRemoveChecksumResponse + */ +export class MsgRemoveChecksumResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.MsgRemoveChecksumResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveChecksumResponse { + return new MsgRemoveChecksumResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveChecksumResponse { + return new MsgRemoveChecksumResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveChecksumResponse { + return new MsgRemoveChecksumResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveChecksumResponse | PlainMessage | undefined, b: MsgRemoveChecksumResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveChecksumResponse, a, b); + } +} + +/** + * MsgMigrateContract defines the request type for the MigrateContract rpc. + * + * @generated from message ibc.lightclients.wasm.v1.MsgMigrateContract + */ +export class MsgMigrateContract extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * the client id of the contract + * + * @generated from field: string client_id = 2; + */ + clientId = ""; + + /** + * checksum is the sha256 hash of the new wasm byte code for the contract + * + * @generated from field: bytes checksum = 3; + */ + checksum = new Uint8Array(0); + + /** + * the json encoded message to be passed to the contract on migration + * + * @generated from field: bytes msg = 4; + */ + msg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.MsgMigrateContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContract { + return new MsgMigrateContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContract { + return new MsgMigrateContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContract { + return new MsgMigrateContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgMigrateContract | PlainMessage | undefined, b: MsgMigrateContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMigrateContract, a, b); + } +} + +/** + * MsgMigrateContractResponse defines the response type for the MigrateContract rpc + * + * @generated from message ibc.lightclients.wasm.v1.MsgMigrateContractResponse + */ +export class MsgMigrateContractResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.MsgMigrateContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContractResponse { + return new MsgMigrateContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContractResponse { + return new MsgMigrateContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContractResponse { + return new MsgMigrateContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMigrateContractResponse | PlainMessage | undefined, b: MsgMigrateContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMigrateContractResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/wasm_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/wasm_pb.ts new file mode 100644 index 0000000..7ae7e59 --- /dev/null +++ b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/wasm_pb.ts @@ -0,0 +1,187 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file ibc/lightclients/wasm/v1/wasm.proto (package ibc.lightclients.wasm.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 { Height } from "../../../core/client/v1/client_pb.js"; + +/** + * Wasm light client's Client state + * + * @generated from message ibc.lightclients.wasm.v1.ClientState + */ +export class ClientState extends Message { + /** + * bytes encoding the client state of the underlying light client + * implemented as a Wasm contract. + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + /** + * @generated from field: bytes checksum = 2; + */ + checksum = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height latest_height = 3; + */ + latestHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.ClientState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, 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); + } +} + +/** + * Wasm light client's ConsensusState + * + * @generated from message ibc.lightclients.wasm.v1.ConsensusState + */ +export class ConsensusState extends Message { + /** + * bytes encoding the consensus state of the underlying light client + * implemented as a Wasm contract. + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.ConsensusState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", 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); + } +} + +/** + * Wasm light client message (either header(s) or misbehaviour) + * + * @generated from message ibc.lightclients.wasm.v1.ClientMessage + */ +export class ClientMessage extends Message { + /** + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.ClientMessage"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientMessage { + return new ClientMessage().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientMessage { + return new ClientMessage().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClientMessage { + return new ClientMessage().fromJsonString(jsonString, options); + } + + static equals(a: ClientMessage | PlainMessage | undefined, b: ClientMessage | PlainMessage | undefined): boolean { + return proto3.util.equals(ClientMessage, a, b); + } +} + +/** + * Checksums defines a list of all checksums that are stored + * + * Deprecated: This message is deprecated in favor of storing the checksums + * using a Collections.KeySet. + * + * @generated from message ibc.lightclients.wasm.v1.Checksums + * @deprecated + */ +export class Checksums extends Message { + /** + * @generated from field: repeated bytes checksums = 1; + */ + checksums: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.lightclients.wasm.v1.Checksums"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "checksums", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Checksums { + return new Checksums().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Checksums { + return new Checksums().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Checksums { + return new Checksums().fromJsonString(jsonString, options); + } + + static equals(a: Checksums | PlainMessage | undefined, b: Checksums | PlainMessage | undefined): boolean { + return proto3.util.equals(Checksums, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/index.ts b/libs/es-client/src/protobufs/index.ts index fb50130..354f439 100644 --- a/libs/es-client/src/protobufs/index.ts +++ b/libs/es-client/src/protobufs/index.ts @@ -1,6 +1,5 @@ /** This file is generated by gen-protobufs.mjs. Do not edit. */ -export {} from "./index.js"; export { App as TendermintVersionApp, Consensus as TendermintVersionConsensus, @@ -44,14 +43,18 @@ export { LightClientAttackEvidence as TendermintTypesLightClientAttackEvidence, EvidenceList as TendermintTypesEvidenceList, } from "./tendermint/types/evidence_pb.js"; -export { Block as TendermintTypesBlock } from "./tendermint/types/block_pb.js"; +export { + Block as TendermintTypesBlock, +} from "./tendermint/types/block_pb.js"; export { NetAddress as TendermintP2pNetAddress, ProtocolVersion as TendermintP2pProtocolVersion, DefaultNodeInfo as TendermintP2pDefaultNodeInfo, DefaultNodeInfoOther as TendermintP2pDefaultNodeInfoOther, } from "./tendermint/p2p/types_pb.js"; -export { BitArray as TendermintLibsBitsBitArray } from "./tendermint/libs/bits/types_pb.js"; +export { + BitArray as TendermintLibsBitsBitArray, +} from "./tendermint/libs/bits/types_pb.js"; export { Proof as TendermintCryptoProof, ValueOp as TendermintCryptoValueOp, @@ -59,7 +62,9 @@ export { ProofOp as TendermintCryptoProofOp, ProofOps as TendermintCryptoProofOps, } from "./tendermint/crypto/proof_pb.js"; -export { PublicKey as TendermintCryptoPublicKey } from "./tendermint/crypto/keys_pb.js"; +export { + PublicKey as TendermintCryptoPublicKey, +} from "./tendermint/crypto/keys_pb.js"; export { CheckTxType as TendermintAbciCheckTxType, MisbehaviorType as TendermintAbciMisbehaviorType, @@ -133,6 +138,44 @@ export { ABCIVerifyVoteExtensionService as TendermintAbciABCIVerifyVoteExtensionService, ABCIFinalizeBlockService as TendermintAbciABCIFinalizeBlockService, } from "./tendermint/abci/types_cosmes.js"; +export { + MsgUpdateParams as SvcV1MsgUpdateParams, + MsgUpdateParamsResponse as SvcV1MsgUpdateParamsResponse, + MsgRegisterService as SvcV1MsgRegisterService, + MsgRegisterServiceResponse as SvcV1MsgRegisterServiceResponse, +} from "./svc/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SvcV1MsgUpdateParamsService, + MsgRegisterServiceService as SvcV1MsgRegisterServiceService, +} from "./svc/v1/tx_cosmes.js"; +export { + Domain as SvcV1Domain, + Metadata as SvcV1Metadata, +} from "./svc/v1/state_pb.js"; +export { + QueryParamsRequest as SvcV1QueryParamsRequest, + QueryParamsResponse as SvcV1QueryParamsResponse, + QueryOriginExistsRequest as SvcV1QueryOriginExistsRequest, + QueryOriginExistsResponse as SvcV1QueryOriginExistsResponse, + QueryResolveOriginRequest as SvcV1QueryResolveOriginRequest, + QueryResolveOriginResponse as SvcV1QueryResolveOriginResponse, +} from "./svc/v1/query_pb.js"; +export { + QueryParamsService as SvcV1QueryParamsService, + QueryOriginExistsService as SvcV1QueryOriginExistsService, + QueryResolveOriginService as SvcV1QueryResolveOriginService, +} from "./svc/v1/query_cosmes.js"; +export { + GenesisState as SvcV1GenesisState, + Params as SvcV1Params, + Attenuation as SvcV1Attenuation, + Capability as SvcV1Capability, + Resource as SvcV1Resource, + Service as SvcV1Service, +} from "./svc/v1/genesis_pb.js"; +export { + Module as SvcModuleV1Module, +} from "./svc/module/v1/module_pb.js"; export { MsgSetValidatorSetPreference as OsmosisValsetprefV1beta1MsgSetValidatorSetPreference, MsgSetValidatorSetPreferenceResponse as OsmosisValsetprefV1beta1MsgSetValidatorSetPreferenceResponse, @@ -166,12 +209,16 @@ export { UserValidatorPreferencesRequest as OsmosisValsetprefV1beta1UserValidatorPreferencesRequest, UserValidatorPreferencesResponse as OsmosisValsetprefV1beta1UserValidatorPreferencesResponse, } from "./osmosis/valsetpref/v1beta1/query_pb.js"; -export { QueryUserValidatorPreferencesService as OsmosisValsetprefV1beta1QueryUserValidatorPreferencesService } from "./osmosis/valsetpref/v1beta1/query_cosmes.js"; +export { + QueryUserValidatorPreferencesService as OsmosisValsetprefV1beta1QueryUserValidatorPreferencesService, +} from "./osmosis/valsetpref/v1beta1/query_cosmes.js"; export { MsgSetFeeTokens as OsmosisTxfeesV1beta1MsgSetFeeTokens, MsgSetFeeTokensResponse as OsmosisTxfeesV1beta1MsgSetFeeTokensResponse, } from "./osmosis/txfees/v1beta1/tx_pb.js"; -export { MsgSetFeeTokensService as OsmosisTxfeesV1beta1MsgSetFeeTokensService } from "./osmosis/txfees/v1beta1/tx_cosmes.js"; +export { + MsgSetFeeTokensService as OsmosisTxfeesV1beta1MsgSetFeeTokensService, +} from "./osmosis/txfees/v1beta1/tx_cosmes.js"; export { QueryFeeTokensRequest as OsmosisTxfeesV1beta1QueryFeeTokensRequest, QueryFeeTokensResponse as OsmosisTxfeesV1beta1QueryFeeTokensResponse, @@ -191,13 +238,19 @@ export { QueryBaseDenomService as OsmosisTxfeesV1beta1QueryBaseDenomService, QueryGetEipBaseFeeService as OsmosisTxfeesV1beta1QueryGetEipBaseFeeService, } from "./osmosis/txfees/v1beta1/query_cosmes.js"; -export { Params as OsmosisTxfeesV1beta1Params } from "./osmosis/txfees/v1beta1/params_pb.js"; -export { UpdateFeeTokenProposal as OsmosisTxfeesV1beta1UpdateFeeTokenProposal } from "./osmosis/txfees/v1beta1/gov_pb.js"; +export { + Params as OsmosisTxfeesV1beta1Params, +} from "./osmosis/txfees/v1beta1/params_pb.js"; +export { + UpdateFeeTokenProposal as OsmosisTxfeesV1beta1UpdateFeeTokenProposal, +} from "./osmosis/txfees/v1beta1/gov_pb.js"; export { GenesisState as OsmosisTxfeesV1beta1GenesisState, TxFeesTracker as OsmosisTxfeesV1beta1TxFeesTracker, } from "./osmosis/txfees/v1beta1/genesis_pb.js"; -export { FeeToken as OsmosisTxfeesV1beta1FeeToken } from "./osmosis/txfees/v1beta1/feetoken_pb.js"; +export { + FeeToken as OsmosisTxfeesV1beta1FeeToken, +} from "./osmosis/txfees/v1beta1/feetoken_pb.js"; export { TwapRecord as OsmosisTwapV1beta1TwapRecord, PruningState as OsmosisTwapV1beta1PruningState, @@ -269,12 +322,16 @@ export { QueryBeforeSendHookAddressService as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressService, QueryAllBeforeSendHooksAddressesService as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesService, } from "./osmosis/tokenfactory/v1beta1/query_cosmes.js"; -export { Params as OsmosisTokenfactoryV1beta1Params } from "./osmosis/tokenfactory/v1beta1/params_pb.js"; +export { + Params as OsmosisTokenfactoryV1beta1Params, +} from "./osmosis/tokenfactory/v1beta1/params_pb.js"; export { GenesisState as OsmosisTokenfactoryV1beta1GenesisState, GenesisDenom as OsmosisTokenfactoryV1beta1GenesisDenom, } from "./osmosis/tokenfactory/v1beta1/genesis_pb.js"; -export { DenomAuthorityMetadata as OsmosisTokenfactoryV1beta1DenomAuthorityMetadata } from "./osmosis/tokenfactory/v1beta1/authorityMetadata_pb.js"; +export { + DenomAuthorityMetadata as OsmosisTokenfactoryV1beta1DenomAuthorityMetadata, +} from "./osmosis/tokenfactory/v1beta1/authorityMetadata_pb.js"; export { MsgSuperfluidDelegate as OsmosisSuperfluidMsgSuperfluidDelegate, MsgSuperfluidDelegateResponse as OsmosisSuperfluidMsgSuperfluidDelegateResponse, @@ -379,8 +436,12 @@ export { QueryUserConcentratedSuperfluidPositionsUndelegatingService as OsmosisSuperfluidQueryUserConcentratedSuperfluidPositionsUndelegatingService, QueryRestSupplyService as OsmosisSuperfluidQueryRestSupplyService, } from "./osmosis/superfluid/query_cosmes.js"; -export { Params as OsmosisSuperfluidParams } from "./osmosis/superfluid/params_pb.js"; -export { GenesisState as OsmosisSuperfluidGenesisState } from "./osmosis/superfluid/genesis_pb.js"; +export { + Params as OsmosisSuperfluidParams, +} from "./osmosis/superfluid/params_pb.js"; +export { + GenesisState as OsmosisSuperfluidGenesisState, +} from "./osmosis/superfluid/genesis_pb.js"; export { SetSuperfluidAssetsProposal as OsmosisSuperfluidV1beta1SetSuperfluidAssetsProposal, RemoveSuperfluidAssetsProposal as OsmosisSuperfluidV1beta1RemoveSuperfluidAssetsProposal, @@ -418,8 +479,12 @@ export { QueryGetAuthenticatorService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorService, QueryGetAuthenticatorsService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorsService, } from "./osmosis/smartaccount/v1beta1/query_cosmes.js"; -export { Params as OsmosisSmartaccountV1beta1Params } from "./osmosis/smartaccount/v1beta1/params_pb.js"; -export { AccountAuthenticator as OsmosisSmartaccountV1beta1AccountAuthenticator } from "./osmosis/smartaccount/v1beta1/models_pb.js"; +export { + Params as OsmosisSmartaccountV1beta1Params, +} from "./osmosis/smartaccount/v1beta1/params_pb.js"; +export { + AccountAuthenticator as OsmosisSmartaccountV1beta1AccountAuthenticator, +} from "./osmosis/smartaccount/v1beta1/models_pb.js"; export { AuthenticatorData as OsmosisSmartaccountV1beta1AuthenticatorData, GenesisState as OsmosisSmartaccountV1beta1GenesisState, @@ -516,17 +581,23 @@ export { AllProtocolRevenue as OsmosisProtorevV1beta1AllProtocolRevenue, CyclicArbTracker as OsmosisProtorevV1beta1CyclicArbTracker, } from "./osmosis/protorev/v1beta1/protorev_pb.js"; -export { Params as OsmosisProtorevV1beta1Params } from "./osmosis/protorev/v1beta1/params_pb.js"; +export { + Params as OsmosisProtorevV1beta1Params, +} from "./osmosis/protorev/v1beta1/params_pb.js"; export { SetProtoRevEnabledProposal as OsmosisProtorevV1beta1SetProtoRevEnabledProposal, SetProtoRevAdminAccountProposal as OsmosisProtorevV1beta1SetProtoRevAdminAccountProposal, } from "./osmosis/protorev/v1beta1/gov_pb.js"; -export { GenesisState as OsmosisProtorevV1beta1GenesisState } from "./osmosis/protorev/v1beta1/genesis_pb.js"; +export { + GenesisState as OsmosisProtorevV1beta1GenesisState, +} from "./osmosis/protorev/v1beta1/genesis_pb.js"; export { SpotPriceRequest as OsmosisPoolmanagerV2SpotPriceRequest, SpotPriceResponse as OsmosisPoolmanagerV2SpotPriceResponse, } from "./osmosis/poolmanager/v2/query_pb.js"; -export { QuerySpotPriceV2Service as OsmosisPoolmanagerV2QuerySpotPriceV2Service } from "./osmosis/poolmanager/v2/query_cosmes.js"; +export { + QuerySpotPriceV2Service as OsmosisPoolmanagerV2QuerySpotPriceV2Service, +} from "./osmosis/poolmanager/v2/query_cosmes.js"; export { MsgSwapExactAmountIn as OsmosisPoolmanagerV1beta1MsgSwapExactAmountIn, MsgSwapExactAmountInResponse as OsmosisPoolmanagerV1beta1MsgSwapExactAmountInResponse, @@ -553,7 +624,9 @@ export { MsgSetTakerFeeShareAgreementForDenomService as OsmosisPoolmanagerV1beta1MsgSetTakerFeeShareAgreementForDenomService, MsgSetRegisteredAlloyedPoolService as OsmosisPoolmanagerV1beta1MsgSetRegisteredAlloyedPoolService, } from "./osmosis/poolmanager/v1beta1/tx_cosmes.js"; -export { TrackedVolume as OsmosisPoolmanagerV1beta1TrackedVolume } from "./osmosis/poolmanager/v1beta1/tracked_volume_pb.js"; +export { + TrackedVolume as OsmosisPoolmanagerV1beta1TrackedVolume, +} from "./osmosis/poolmanager/v1beta1/tracked_volume_pb.js"; export { TakerFeeShareAgreement as OsmosisPoolmanagerV1beta1TakerFeeShareAgreement, TakerFeeSkimAccumulator as OsmosisPoolmanagerV1beta1TakerFeeSkimAccumulator, @@ -641,7 +714,9 @@ export { PoolType as OsmosisPoolmanagerV1beta1PoolType, ModuleRoute as OsmosisPoolmanagerV1beta1ModuleRoute, } from "./osmosis/poolmanager/v1beta1/module_route_pb.js"; -export { DenomPairTakerFeeProposal as OsmosisPoolmanagerV1beta1DenomPairTakerFeeProposal } from "./osmosis/poolmanager/v1beta1/gov_pb.js"; +export { + DenomPairTakerFeeProposal as OsmosisPoolmanagerV1beta1DenomPairTakerFeeProposal, +} from "./osmosis/poolmanager/v1beta1/gov_pb.js"; export { Params as OsmosisPoolmanagerV1beta1Params, GenesisState as OsmosisPoolmanagerV1beta1GenesisState, @@ -691,7 +766,9 @@ export { ReplacePoolIncentivesProposal as OsmosisPoolincentivesV1beta1ReplacePoolIncentivesProposal, UpdatePoolIncentivesProposal as OsmosisPoolincentivesV1beta1UpdatePoolIncentivesProposal, } from "./osmosis/poolincentives/v1beta1/gov_pb.js"; -export { GenesisState as OsmosisPoolincentivesV1beta1GenesisState } from "./osmosis/poolincentives/v1beta1/genesis_pb.js"; +export { + GenesisState as OsmosisPoolincentivesV1beta1GenesisState, +} from "./osmosis/poolincentives/v1beta1/genesis_pb.js"; export { QueryParamsRequest as OsmosisMintV1beta1QueryParamsRequest, QueryParamsResponse as OsmosisMintV1beta1QueryParamsResponse, @@ -708,7 +785,9 @@ export { DistributionProportions as OsmosisMintV1beta1DistributionProportions, Params as OsmosisMintV1beta1Params, } from "./osmosis/mint/v1beta1/mint_pb.js"; -export { GenesisState as OsmosisMintV1beta1GenesisState } from "./osmosis/mint/v1beta1/genesis_pb.js"; +export { + GenesisState as OsmosisMintV1beta1GenesisState, +} from "./osmosis/mint/v1beta1/genesis_pb.js"; export { MsgLockTokens as OsmosisLockupMsgLockTokens, MsgLockTokensResponse as OsmosisLockupMsgLockTokensResponse, @@ -797,14 +876,18 @@ export { QueryAccountLockedLongerDurationDenomService as OsmosisLockupQueryAccountLockedLongerDurationDenomService, QueryParamsService as OsmosisLockupQueryParamsService, } from "./osmosis/lockup/query_cosmes.js"; -export { Params as OsmosisLockupParams } from "./osmosis/lockup/params_pb.js"; +export { + Params as OsmosisLockupParams, +} from "./osmosis/lockup/params_pb.js"; export { LockQueryType as OsmosisLockupLockQueryType, PeriodLock as OsmosisLockupPeriodLock, QueryCondition as OsmosisLockupQueryCondition, SyntheticLock as OsmosisLockupSyntheticLock, } from "./osmosis/lockup/lock_pb.js"; -export { GenesisState as OsmosisLockupGenesisState } from "./osmosis/lockup/genesis_pb.js"; +export { + GenesisState as OsmosisLockupGenesisState, +} from "./osmosis/lockup/genesis_pb.js"; export { MsgCreateGauge as OsmosisIncentivesMsgCreateGauge, MsgCreateGaugeResponse as OsmosisIncentivesMsgCreateGaugeResponse, @@ -877,7 +960,9 @@ export { QueryGaugesByPoolIDService as OsmosisIncentivesQueryGaugesByPoolIDService, QueryParamsService as OsmosisIncentivesQueryParamsService, } from "./osmosis/incentives/query_cosmes.js"; -export { Params as OsmosisIncentivesParams } from "./osmosis/incentives/params_pb.js"; +export { + Params as OsmosisIncentivesParams, +} from "./osmosis/incentives/params_pb.js"; export { SplittingPolicy as OsmosisIncentivesSplittingPolicy, InternalGaugeInfo as OsmosisIncentivesInternalGaugeInfo, @@ -886,8 +971,12 @@ export { CreateGroup as OsmosisIncentivesCreateGroup, GroupsWithGauge as OsmosisIncentivesGroupsWithGauge, } from "./osmosis/incentives/group_pb.js"; -export { CreateGroupsProposal as OsmosisIncentivesCreateGroupsProposal } from "./osmosis/incentives/gov_pb.js"; -export { GenesisState as OsmosisIncentivesGenesisState } from "./osmosis/incentives/genesis_pb.js"; +export { + CreateGroupsProposal as OsmosisIncentivesCreateGroupsProposal, +} from "./osmosis/incentives/gov_pb.js"; +export { + GenesisState as OsmosisIncentivesGenesisState, +} from "./osmosis/incentives/genesis_pb.js"; export { Gauge as OsmosisIncentivesGauge, LockableDurationsInfo as OsmosisIncentivesLockableDurationsInfo, @@ -896,21 +985,35 @@ export { ParamsRequest as OsmosisIbcratelimitV1beta1ParamsRequest, ParamsResponse as OsmosisIbcratelimitV1beta1ParamsResponse, } from "./osmosis/ibcratelimit/v1beta1/query_pb.js"; -export { QueryParamsService as OsmosisIbcratelimitV1beta1QueryParamsService } from "./osmosis/ibcratelimit/v1beta1/query_cosmes.js"; -export { Params as OsmosisIbcratelimitV1beta1Params } from "./osmosis/ibcratelimit/v1beta1/params_pb.js"; -export { GenesisState as OsmosisIbcratelimitV1beta1GenesisState } from "./osmosis/ibcratelimit/v1beta1/genesis_pb.js"; +export { + QueryParamsService as OsmosisIbcratelimitV1beta1QueryParamsService, +} from "./osmosis/ibcratelimit/v1beta1/query_cosmes.js"; +export { + Params as OsmosisIbcratelimitV1beta1Params, +} from "./osmosis/ibcratelimit/v1beta1/params_pb.js"; +export { + GenesisState as OsmosisIbcratelimitV1beta1GenesisState, +} from "./osmosis/ibcratelimit/v1beta1/genesis_pb.js"; export { MsgEmitIBCAck as OsmosisIbchooksMsgEmitIBCAck, MsgEmitIBCAckResponse as OsmosisIbchooksMsgEmitIBCAckResponse, } from "./osmosis/ibchooks/tx_pb.js"; -export { MsgEmitIBCAckService as OsmosisIbchooksMsgEmitIBCAckService } from "./osmosis/ibchooks/tx_cosmes.js"; -export { Params as OsmosisIbchooksParams } from "./osmosis/ibchooks/params_pb.js"; -export { GenesisState as OsmosisIbchooksGenesisState } from "./osmosis/ibchooks/genesis_pb.js"; +export { + MsgEmitIBCAckService as OsmosisIbchooksMsgEmitIBCAckService, +} from "./osmosis/ibchooks/tx_cosmes.js"; +export { + Params as OsmosisIbchooksParams, +} from "./osmosis/ibchooks/params_pb.js"; +export { + GenesisState as OsmosisIbchooksGenesisState, +} from "./osmosis/ibchooks/genesis_pb.js"; export { QuerySpotPriceRequest as OsmosisGammV2QuerySpotPriceRequest, QuerySpotPriceResponse as OsmosisGammV2QuerySpotPriceResponse, } from "./osmosis/gamm/v2/query_pb.js"; -export { QuerySpotPriceService as OsmosisGammV2QuerySpotPriceService } from "./osmosis/gamm/v2/query_cosmes.js"; +export { + QuerySpotPriceService as OsmosisGammV2QuerySpotPriceService, +} from "./osmosis/gamm/v2/query_cosmes.js"; export { MsgJoinPool as OsmosisGammV1beta1MsgJoinPool, MsgJoinPoolResponse as OsmosisGammV1beta1MsgJoinPoolResponse, @@ -1001,7 +1104,9 @@ export { QueryCFMMConcentratedPoolLinksService as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksService, QueryParamsService as OsmosisGammV1beta1QueryParamsService, } from "./osmosis/gamm/v1beta1/query_cosmes.js"; -export { Params as OsmosisGammV1beta1Params } from "./osmosis/gamm/v1beta1/params_pb.js"; +export { + Params as OsmosisGammV1beta1Params, +} from "./osmosis/gamm/v1beta1/params_pb.js"; export { ReplaceMigrationRecordsProposal as OsmosisGammV1beta1ReplaceMigrationRecordsProposal, UpdateMigrationRecordsProposal as OsmosisGammV1beta1UpdateMigrationRecordsProposal, @@ -1009,7 +1114,9 @@ export { CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal as OsmosisGammV1beta1CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal, SetScalingFactorControllerProposal as OsmosisGammV1beta1SetScalingFactorControllerProposal, } from "./osmosis/gamm/v1beta1/gov_pb.js"; -export { GenesisState as OsmosisGammV1beta1GenesisState } from "./osmosis/gamm/v1beta1/genesis_pb.js"; +export { + GenesisState as OsmosisGammV1beta1GenesisState, +} from "./osmosis/gamm/v1beta1/genesis_pb.js"; export { SmoothWeightChangeParams as OsmosisGammV1beta1SmoothWeightChangeParams, PoolParams as OsmosisGammV1beta1PoolParams, @@ -1034,7 +1141,9 @@ export { MsgCreateBalancerPool as OsmosisGammPoolmodelsBalancerV1beta1MsgCreateBalancerPool, MsgCreateBalancerPoolResponse as OsmosisGammPoolmodelsBalancerV1beta1MsgCreateBalancerPoolResponse, } from "./osmosis/gamm/poolmodels/balancer/v1beta1/tx_pb.js"; -export { MsgCreateBalancerPoolService as OsmosisGammPoolmodelsBalancerV1beta1MsgCreateBalancerPoolService } from "./osmosis/gamm/poolmodels/balancer/v1beta1/tx_cosmes.js"; +export { + MsgCreateBalancerPoolService as OsmosisGammPoolmodelsBalancerV1beta1MsgCreateBalancerPoolService, +} from "./osmosis/gamm/poolmodels/balancer/v1beta1/tx_cosmes.js"; export { QueryEpochsInfoRequest as OsmosisEpochsV1beta1QueryEpochsInfoRequest, QueryEpochsInfoResponse as OsmosisEpochsV1beta1QueryEpochsInfoResponse, @@ -1053,13 +1162,18 @@ export { RecoveredSinceDowntimeOfLengthRequest as OsmosisDowntimedetectorV1beta1RecoveredSinceDowntimeOfLengthRequest, RecoveredSinceDowntimeOfLengthResponse as OsmosisDowntimedetectorV1beta1RecoveredSinceDowntimeOfLengthResponse, } from "./osmosis/downtimedetector/v1beta1/query_pb.js"; -export { QueryRecoveredSinceDowntimeOfLengthService as OsmosisDowntimedetectorV1beta1QueryRecoveredSinceDowntimeOfLengthService } from "./osmosis/downtimedetector/v1beta1/query_cosmes.js"; +export { + QueryRecoveredSinceDowntimeOfLengthService as OsmosisDowntimedetectorV1beta1QueryRecoveredSinceDowntimeOfLengthService, +} from "./osmosis/downtimedetector/v1beta1/query_cosmes.js"; export { GenesisDowntimeEntry as OsmosisDowntimedetectorV1beta1GenesisDowntimeEntry, GenesisState as OsmosisDowntimedetectorV1beta1GenesisState, } from "./osmosis/downtimedetector/v1beta1/genesis_pb.js"; -export { Downtime as OsmosisDowntimedetectorV1beta1Downtime } from "./osmosis/downtimedetector/v1beta1/downtime_duration_pb.js"; -export {} from "./osmosis/cosmwasmpool/v1beta1/tx_cosmes.js"; +export { + Downtime as OsmosisDowntimedetectorV1beta1Downtime, +} from "./osmosis/downtimedetector/v1beta1/downtime_duration_pb.js"; +export { +} from "./osmosis/cosmwasmpool/v1beta1/tx_cosmes.js"; export { ParamsRequest as OsmosisCosmwasmpoolV1beta1ParamsRequest, ParamsResponse as OsmosisCosmwasmpoolV1beta1ParamsResponse, @@ -1073,17 +1187,23 @@ export { QueryParamsService as OsmosisCosmwasmpoolV1beta1QueryParamsService, QueryContractInfoByPoolIdService as OsmosisCosmwasmpoolV1beta1QueryContractInfoByPoolIdService, } from "./osmosis/cosmwasmpool/v1beta1/query_cosmes.js"; -export { Params as OsmosisCosmwasmpoolV1beta1Params } from "./osmosis/cosmwasmpool/v1beta1/params_pb.js"; +export { + Params as OsmosisCosmwasmpoolV1beta1Params, +} from "./osmosis/cosmwasmpool/v1beta1/params_pb.js"; export { UploadCosmWasmPoolCodeAndWhiteListProposal as OsmosisCosmwasmpoolV1beta1UploadCosmWasmPoolCodeAndWhiteListProposal, MigratePoolContractsProposal as OsmosisCosmwasmpoolV1beta1MigratePoolContractsProposal, } from "./osmosis/cosmwasmpool/v1beta1/gov_pb.js"; -export { GenesisState as OsmosisCosmwasmpoolV1beta1GenesisState } from "./osmosis/cosmwasmpool/v1beta1/genesis_pb.js"; +export { + GenesisState as OsmosisCosmwasmpoolV1beta1GenesisState, +} from "./osmosis/cosmwasmpool/v1beta1/genesis_pb.js"; export { MsgCreateCosmWasmPool as OsmosisCosmwasmpoolV1beta1ModelMsgCreateCosmWasmPool, MsgCreateCosmWasmPoolResponse as OsmosisCosmwasmpoolV1beta1ModelMsgCreateCosmWasmPoolResponse, } from "./osmosis/cosmwasmpool/v1beta1/model/tx_pb.js"; -export { MsgCreatorCreateCosmWasmPoolService as OsmosisCosmwasmpoolV1beta1ModelMsgCreatorCreateCosmWasmPoolService } from "./osmosis/cosmwasmpool/v1beta1/model/tx_cosmes.js"; +export { + MsgCreatorCreateCosmWasmPoolService as OsmosisCosmwasmpoolV1beta1ModelMsgCreatorCreateCosmWasmPoolService, +} from "./osmosis/cosmwasmpool/v1beta1/model/tx_cosmes.js"; export { EmptyRequest as OsmosisCosmwasmpoolV1beta1ModelEmptyRequest, JoinPoolExecuteMsgRequest as OsmosisCosmwasmpoolV1beta1ModelJoinPoolExecuteMsgRequest, @@ -1103,7 +1223,9 @@ export { GetTotalSharesQueryMsg as OsmosisCosmwasmpoolV1beta1ModelGetTotalSharesQueryMsg, GetTotalSharesQueryMsgResponse as OsmosisCosmwasmpoolV1beta1ModelGetTotalSharesQueryMsgResponse, } from "./osmosis/cosmwasmpool/v1beta1/model/pool_query_msg_pb.js"; -export { CosmWasmPool as OsmosisCosmwasmpoolV1beta1ModelCosmWasmPool } from "./osmosis/cosmwasmpool/v1beta1/model/pool_pb.js"; +export { + CosmWasmPool as OsmosisCosmwasmpoolV1beta1ModelCosmWasmPool, +} from "./osmosis/cosmwasmpool/v1beta1/model/pool_pb.js"; export { SwapExactAmountIn as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountIn, SwapExactAmountInSudoMsg as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountInSudoMsg, @@ -1120,14 +1242,18 @@ export { CalcInAmtGivenOutRequest as OsmosisCosmwasmpoolV1beta1ModelCalcInAmtGivenOutRequest, CalcInAmtGivenOutResponse as OsmosisCosmwasmpoolV1beta1ModelCalcInAmtGivenOutResponse, } from "./osmosis/cosmwasmpool/v1beta1/model/module_query_msg_pb.js"; -export { InstantiateMsg as OsmosisCosmwasmpoolV1beta1ModelInstantiateMsg } from "./osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.js"; +export { + InstantiateMsg as OsmosisCosmwasmpoolV1beta1ModelInstantiateMsg, +} from "./osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.js"; export { ShareDenomResponse as OsmosisCosmwasmpoolV1beta1ModelV3ShareDenomResponse, TotalPoolLiquidityResponse as OsmosisCosmwasmpoolV1beta1ModelV3TotalPoolLiquidityResponse, AssetConfig as OsmosisCosmwasmpoolV1beta1ModelV3AssetConfig, ListAssetConfigsResponse as OsmosisCosmwasmpoolV1beta1ModelV3ListAssetConfigsResponse, } from "./osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.js"; -export { Params as OsmosisConcentratedliquidityParams } from "./osmosis/concentratedliquidity/params_pb.js"; +export { + Params as OsmosisConcentratedliquidityParams, +} from "./osmosis/concentratedliquidity/params_pb.js"; export { MsgCreatePosition as OsmosisConcentratedliquidityV1beta1MsgCreatePosition, MsgCreatePositionResponse as OsmosisConcentratedliquidityV1beta1MsgCreatePositionResponse, @@ -1215,7 +1341,9 @@ export { FullPositionBreakdown as OsmosisConcentratedliquidityV1beta1FullPositionBreakdown, PositionWithPeriodLock as OsmosisConcentratedliquidityV1beta1PositionWithPeriodLock, } from "./osmosis/concentratedliquidity/v1beta1/position_pb.js"; -export { Pool as OsmosisConcentratedliquidityV1beta1Pool } from "./osmosis/concentratedliquidity/v1beta1/pool_pb.js"; +export { + Pool as OsmosisConcentratedliquidityV1beta1Pool, +} from "./osmosis/concentratedliquidity/v1beta1/pool_pb.js"; export { IncentiveRecord as OsmosisConcentratedliquidityV1beta1IncentiveRecord, IncentiveRecordBody as OsmosisConcentratedliquidityV1beta1IncentiveRecordBody, @@ -1237,21 +1365,573 @@ export { MsgCreateConcentratedPool as OsmosisConcentratedliquidityPoolmodelConcentratedV1beta1MsgCreateConcentratedPool, MsgCreateConcentratedPoolResponse as OsmosisConcentratedliquidityPoolmodelConcentratedV1beta1MsgCreateConcentratedPoolResponse, } from "./osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_pb.js"; -export { MsgCreateConcentratedPoolService as OsmosisConcentratedliquidityPoolmodelConcentratedV1beta1MsgCreateConcentratedPoolService } from "./osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_cosmes.js"; +export { + MsgCreateConcentratedPoolService as OsmosisConcentratedliquidityPoolmodelConcentratedV1beta1MsgCreateConcentratedPoolService, +} from "./osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_cosmes.js"; export { AccumulatorContent as OsmosisAccumV1beta1AccumulatorContent, Options as OsmosisAccumV1beta1Options, Record as OsmosisAccumV1beta1Record, } from "./osmosis/accum/v1beta1/accum_pb.js"; -export { ExtensionOptionsWeb3Tx as EthermintTypesV1ExtensionOptionsWeb3Tx } from "./ethermint/types/v1/web3_pb.js"; -export { TxResult as EthermintTypesV1TxResult } from "./ethermint/types/v1/indexer_pb.js"; -export { ExtensionOptionDynamicFeeTx as EthermintTypesV1ExtensionOptionDynamicFeeTx } from "./ethermint/types/v1/dynamic_fee_pb.js"; -export { EthAccount as EthermintTypesV1EthAccount } from "./ethermint/types/v1/account_pb.js"; +export { + ClientState as IbcLightclientsWasmV1ClientState, + ConsensusState as IbcLightclientsWasmV1ConsensusState, + ClientMessage as IbcLightclientsWasmV1ClientMessage, + Checksums as IbcLightclientsWasmV1Checksums, +} from "./ibc/lightclients/wasm/v1/wasm_pb.js"; +export { + MsgStoreCode as IbcLightclientsWasmV1MsgStoreCode, + MsgStoreCodeResponse as IbcLightclientsWasmV1MsgStoreCodeResponse, + MsgRemoveChecksum as IbcLightclientsWasmV1MsgRemoveChecksum, + MsgRemoveChecksumResponse as IbcLightclientsWasmV1MsgRemoveChecksumResponse, + MsgMigrateContract as IbcLightclientsWasmV1MsgMigrateContract, + MsgMigrateContractResponse as IbcLightclientsWasmV1MsgMigrateContractResponse, +} from "./ibc/lightclients/wasm/v1/tx_pb.js"; +export { + MsgStoreCodeService as IbcLightclientsWasmV1MsgStoreCodeService, + MsgRemoveChecksumService as IbcLightclientsWasmV1MsgRemoveChecksumService, + MsgMigrateContractService as IbcLightclientsWasmV1MsgMigrateContractService, +} from "./ibc/lightclients/wasm/v1/tx_cosmes.js"; +export { + QueryChecksumsRequest as IbcLightclientsWasmV1QueryChecksumsRequest, + QueryChecksumsResponse as IbcLightclientsWasmV1QueryChecksumsResponse, + QueryCodeRequest as IbcLightclientsWasmV1QueryCodeRequest, + QueryCodeResponse as IbcLightclientsWasmV1QueryCodeResponse, +} from "./ibc/lightclients/wasm/v1/query_pb.js"; +export { + QueryChecksumsService as IbcLightclientsWasmV1QueryChecksumsService, + QueryCodeService as IbcLightclientsWasmV1QueryCodeService, +} from "./ibc/lightclients/wasm/v1/query_cosmes.js"; +export { + GenesisState as IbcLightclientsWasmV1GenesisState, + Contract as IbcLightclientsWasmV1Contract, +} from "./ibc/lightclients/wasm/v1/genesis_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 { + 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 { + MerklePath as IbcCoreCommitmentV2MerklePath, +} from "./ibc/core/commitment/v2/commitment_pb.js"; +export { + MerkleRoot as IbcCoreCommitmentV1MerkleRoot, + MerklePrefix as IbcCoreCommitmentV1MerklePrefix, + 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, + MsgRecoverClient as IbcCoreClientV1MsgRecoverClient, + MsgRecoverClientResponse as IbcCoreClientV1MsgRecoverClientResponse, + MsgIBCSoftwareUpgrade as IbcCoreClientV1MsgIBCSoftwareUpgrade, + MsgIBCSoftwareUpgradeResponse as IbcCoreClientV1MsgIBCSoftwareUpgradeResponse, + 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, + MsgRecoverClientService as IbcCoreClientV1MsgRecoverClientService, + MsgIBCSoftwareUpgradeService as IbcCoreClientV1MsgIBCSoftwareUpgradeService, + 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, + QueryVerifyMembershipRequest as IbcCoreClientV1QueryVerifyMembershipRequest, + QueryVerifyMembershipResponse as IbcCoreClientV1QueryVerifyMembershipResponse, +} 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, + QueryVerifyMembershipService as IbcCoreClientV1QueryVerifyMembershipService, +} 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, + Height as IbcCoreClientV1Height, + Params as IbcCoreClientV1Params, +} from "./ibc/core/client/v1/client_pb.js"; +export { + Upgrade as IbcCoreChannelV1Upgrade, + UpgradeFields as IbcCoreChannelV1UpgradeFields, + ErrorReceipt as IbcCoreChannelV1ErrorReceipt, +} from "./ibc/core/channel/v1/upgrade_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, + MsgChannelUpgradeInit as IbcCoreChannelV1MsgChannelUpgradeInit, + MsgChannelUpgradeInitResponse as IbcCoreChannelV1MsgChannelUpgradeInitResponse, + MsgChannelUpgradeTry as IbcCoreChannelV1MsgChannelUpgradeTry, + MsgChannelUpgradeTryResponse as IbcCoreChannelV1MsgChannelUpgradeTryResponse, + MsgChannelUpgradeAck as IbcCoreChannelV1MsgChannelUpgradeAck, + MsgChannelUpgradeAckResponse as IbcCoreChannelV1MsgChannelUpgradeAckResponse, + MsgChannelUpgradeConfirm as IbcCoreChannelV1MsgChannelUpgradeConfirm, + MsgChannelUpgradeConfirmResponse as IbcCoreChannelV1MsgChannelUpgradeConfirmResponse, + MsgChannelUpgradeOpen as IbcCoreChannelV1MsgChannelUpgradeOpen, + MsgChannelUpgradeOpenResponse as IbcCoreChannelV1MsgChannelUpgradeOpenResponse, + MsgChannelUpgradeTimeout as IbcCoreChannelV1MsgChannelUpgradeTimeout, + MsgChannelUpgradeTimeoutResponse as IbcCoreChannelV1MsgChannelUpgradeTimeoutResponse, + MsgChannelUpgradeCancel as IbcCoreChannelV1MsgChannelUpgradeCancel, + MsgChannelUpgradeCancelResponse as IbcCoreChannelV1MsgChannelUpgradeCancelResponse, + MsgUpdateParams as IbcCoreChannelV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcCoreChannelV1MsgUpdateParamsResponse, + MsgPruneAcknowledgements as IbcCoreChannelV1MsgPruneAcknowledgements, + MsgPruneAcknowledgementsResponse as IbcCoreChannelV1MsgPruneAcknowledgementsResponse, +} 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, + MsgChannelUpgradeInitService as IbcCoreChannelV1MsgChannelUpgradeInitService, + MsgChannelUpgradeTryService as IbcCoreChannelV1MsgChannelUpgradeTryService, + MsgChannelUpgradeAckService as IbcCoreChannelV1MsgChannelUpgradeAckService, + MsgChannelUpgradeConfirmService as IbcCoreChannelV1MsgChannelUpgradeConfirmService, + MsgChannelUpgradeOpenService as IbcCoreChannelV1MsgChannelUpgradeOpenService, + MsgChannelUpgradeTimeoutService as IbcCoreChannelV1MsgChannelUpgradeTimeoutService, + MsgChannelUpgradeCancelService as IbcCoreChannelV1MsgChannelUpgradeCancelService, + MsgUpdateChannelParamsService as IbcCoreChannelV1MsgUpdateChannelParamsService, + MsgPruneAcknowledgementsService as IbcCoreChannelV1MsgPruneAcknowledgementsService, +} 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, + QueryUpgradeErrorRequest as IbcCoreChannelV1QueryUpgradeErrorRequest, + QueryUpgradeErrorResponse as IbcCoreChannelV1QueryUpgradeErrorResponse, + QueryUpgradeRequest as IbcCoreChannelV1QueryUpgradeRequest, + QueryUpgradeResponse as IbcCoreChannelV1QueryUpgradeResponse, + QueryChannelParamsRequest as IbcCoreChannelV1QueryChannelParamsRequest, + QueryChannelParamsResponse as IbcCoreChannelV1QueryChannelParamsResponse, +} 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, + QueryUpgradeErrorService as IbcCoreChannelV1QueryUpgradeErrorService, + QueryUpgradeService as IbcCoreChannelV1QueryUpgradeService, + QueryChannelParamsService as IbcCoreChannelV1QueryChannelParamsService, +} 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, + Params as IbcCoreChannelV1Params, +} from "./ibc/core/channel/v1/channel_pb.js"; +export { + Token as IbcApplicationsTransferV2Token, + Denom as IbcApplicationsTransferV2Denom, +} from "./ibc/applications/transfer/v2/token_pb.js"; +export { + QueryDenomRequest as IbcApplicationsTransferV2QueryDenomRequest, + QueryDenomResponse as IbcApplicationsTransferV2QueryDenomResponse, + QueryDenomsRequest as IbcApplicationsTransferV2QueryDenomsRequest, + QueryDenomsResponse as IbcApplicationsTransferV2QueryDenomsResponse, +} from "./ibc/applications/transfer/v2/queryv2_pb.js"; +export { + QueryV2DenomsService as IbcApplicationsTransferV2QueryV2DenomsService, + QueryV2DenomService as IbcApplicationsTransferV2QueryV2DenomService, +} from "./ibc/applications/transfer/v2/queryv2_cosmes.js"; +export { + FungibleTokenPacketData as IbcApplicationsTransferV2FungibleTokenPacketData, + FungibleTokenPacketDataV2 as IbcApplicationsTransferV2FungibleTokenPacketDataV2, + ForwardingPacketData as IbcApplicationsTransferV2ForwardingPacketData, +} from "./ibc/applications/transfer/v2/packet_pb.js"; +export { + GenesisState as IbcApplicationsTransferV2GenesisState, + ForwardedPacket as IbcApplicationsTransferV2ForwardedPacket, +} from "./ibc/applications/transfer/v2/genesis_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 { + Params as IbcApplicationsTransferV1Params, + Forwarding as IbcApplicationsTransferV1Forwarding, + Hop as IbcApplicationsTransferV1Hop, +} from "./ibc/applications/transfer/v1/transfer_pb.js"; +export { + 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 { + QueryParamsService as IbcApplicationsTransferV1QueryParamsService, + QueryDenomHashService as IbcApplicationsTransferV1QueryDenomHashService, + QueryEscrowAddressService as IbcApplicationsTransferV1QueryEscrowAddressService, + QueryTotalEscrowForDenomService as IbcApplicationsTransferV1QueryTotalEscrowForDenomService, +} from "./ibc/applications/transfer/v1/query_cosmes.js"; +export { + DenomTrace as IbcApplicationsTransferV1DenomTrace, +} from "./ibc/applications/transfer/v1/denomtrace_pb.js"; +export { + Allocation as IbcApplicationsTransferV1Allocation, + AllowedForwarding as IbcApplicationsTransferV1AllowedForwarding, + TransferAuthorization as IbcApplicationsTransferV1TransferAuthorization, +} from "./ibc/applications/transfer/v1/authz_pb.js"; +export { + Type as IbcApplicationsInterchainAccountsV1Type, + InterchainAccountPacketData as IbcApplicationsInterchainAccountsV1InterchainAccountPacketData, + CosmosTx as IbcApplicationsInterchainAccountsV1CosmosTx, +} from "./ibc/applications/interchain_accounts/v1/packet_pb.js"; +export { + Metadata as IbcApplicationsInterchainAccountsV1Metadata, +} from "./ibc/applications/interchain_accounts/v1/metadata_pb.js"; +export { + InterchainAccount as IbcApplicationsInterchainAccountsV1InterchainAccount, +} from "./ibc/applications/interchain_accounts/v1/account_pb.js"; +export { + MsgUpdateParams as IbcApplicationsInterchainAccountsHostV1MsgUpdateParams, + MsgUpdateParamsResponse as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsResponse, + MsgModuleQuerySafe as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafe, + MsgModuleQuerySafeResponse as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeResponse, +} from "./ibc/applications/interchain_accounts/host/v1/tx_pb.js"; +export { + MsgUpdateParamsService as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsService, + MsgModuleQuerySafeService as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeService, +} from "./ibc/applications/interchain_accounts/host/v1/tx_cosmes.js"; +export { + QueryParamsRequest as IbcApplicationsInterchainAccountsHostV1QueryParamsRequest, + QueryParamsResponse as IbcApplicationsInterchainAccountsHostV1QueryParamsResponse, +} from "./ibc/applications/interchain_accounts/host/v1/query_pb.js"; +export { + QueryParamsService as IbcApplicationsInterchainAccountsHostV1QueryParamsService, +} from "./ibc/applications/interchain_accounts/host/v1/query_cosmes.js"; +export { + Params as IbcApplicationsInterchainAccountsHostV1Params, + QueryRequest as IbcApplicationsInterchainAccountsHostV1QueryRequest, +} from "./ibc/applications/interchain_accounts/host/v1/host_pb.js"; +export { + GenesisState as IbcApplicationsInterchainAccountsGenesisV1GenesisState, + 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 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 IbcApplicationsInterchainAccountsControllerV1MsgRegisterInterchainAccountService, + MsgSendTxService as IbcApplicationsInterchainAccountsControllerV1MsgSendTxService, + MsgUpdateParamsService as IbcApplicationsInterchainAccountsControllerV1MsgUpdateParamsService, +} from "./ibc/applications/interchain_accounts/controller/v1/tx_cosmes.js"; +export { + 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 IbcApplicationsInterchainAccountsControllerV1QueryInterchainAccountService, + QueryParamsService as IbcApplicationsInterchainAccountsControllerV1QueryParamsService, +} from "./ibc/applications/interchain_accounts/controller/v1/query_cosmes.js"; +export { + Params as IbcApplicationsInterchainAccountsControllerV1Params, +} 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 { + ExtensionOptionsWeb3Tx as EthermintTypesV1ExtensionOptionsWeb3Tx, +} from "./ethermint/types/v1/web3_pb.js"; +export { + TxResult as EthermintTypesV1TxResult, +} from "./ethermint/types/v1/indexer_pb.js"; +export { + ExtensionOptionDynamicFeeTx as EthermintTypesV1ExtensionOptionDynamicFeeTx, +} from "./ethermint/types/v1/dynamic_fee_pb.js"; +export { + EthAccount as EthermintTypesV1EthAccount, +} from "./ethermint/types/v1/account_pb.js"; export { MsgUpdateParams as EthermintFeemarketV1MsgUpdateParams, MsgUpdateParamsResponse as EthermintFeemarketV1MsgUpdateParamsResponse, } from "./ethermint/feemarket/v1/tx_pb.js"; -export { MsgUpdateParamsService as EthermintFeemarketV1MsgUpdateParamsService } from "./ethermint/feemarket/v1/tx_cosmes.js"; +export { + MsgUpdateParamsService as EthermintFeemarketV1MsgUpdateParamsService, +} from "./ethermint/feemarket/v1/tx_cosmes.js"; export { QueryParamsRequest as EthermintFeemarketV1QueryParamsRequest, QueryParamsResponse as EthermintFeemarketV1QueryParamsResponse, @@ -1265,8 +1945,12 @@ export { QueryBaseFeeService as EthermintFeemarketV1QueryBaseFeeService, QueryBlockGasService as EthermintFeemarketV1QueryBlockGasService, } from "./ethermint/feemarket/v1/query_cosmes.js"; -export { GenesisState as EthermintFeemarketV1GenesisState } from "./ethermint/feemarket/v1/genesis_pb.js"; -export { Params as EthermintFeemarketV1Params } from "./ethermint/feemarket/v1/feemarket_pb.js"; +export { + GenesisState as EthermintFeemarketV1GenesisState, +} from "./ethermint/feemarket/v1/genesis_pb.js"; +export { + Params as EthermintFeemarketV1Params, +} from "./ethermint/feemarket/v1/feemarket_pb.js"; export { EventFeeMarket as EthermintFeemarketV1EventFeeMarket, EventBlockGas as EthermintFeemarketV1EventBlockGas, @@ -1349,6 +2033,243 @@ export { PubKey as EthermintCryptoV1Ethsecp256k1PubKey, PrivKey as EthermintCryptoV1Ethsecp256k1PrivKey, } from "./ethermint/crypto/v1/ethsecp256k1/keys_pb.js"; +export { + MsgUpdateParams as DwnV1MsgUpdateParams, + MsgUpdateParamsResponse as DwnV1MsgUpdateParamsResponse, + MsgInitialize as DwnV1MsgInitialize, + MsgInitializeResponse as DwnV1MsgInitializeResponse, +} from "./dwn/v1/tx_pb.js"; +export { + MsgUpdateParamsService as DwnV1MsgUpdateParamsService, + MsgInitializeService as DwnV1MsgInitializeService, +} from "./dwn/v1/tx_cosmes.js"; +export { + Credential as DwnV1Credential, + Profile as DwnV1Profile, +} from "./dwn/v1/state_pb.js"; +export { + QueryParamsRequest as DwnV1QueryParamsRequest, + QueryParamsResponse as DwnV1QueryParamsResponse, +} from "./dwn/v1/query_pb.js"; +export { + QueryParamsService as DwnV1QueryParamsService, +} from "./dwn/v1/query_cosmes.js"; +export { + GenesisState as DwnV1GenesisState, + Params as DwnV1Params, + Attenuation as DwnV1Attenuation, + Capability as DwnV1Capability, + Resource as DwnV1Resource, +} from "./dwn/v1/genesis_pb.js"; +export { + Module as DwnModuleV1Module, +} from "./dwn/module/v1/module_pb.js"; +export { + MsgLinkAuthentication as DidV1MsgLinkAuthentication, + MsgLinkAuthenticationResponse as DidV1MsgLinkAuthenticationResponse, + MsgLinkAssertion as DidV1MsgLinkAssertion, + MsgLinkAssertionResponse as DidV1MsgLinkAssertionResponse, + MsgExecuteTx as DidV1MsgExecuteTx, + MsgExecuteTxResponse as DidV1MsgExecuteTxResponse, + MsgUnlinkAssertion as DidV1MsgUnlinkAssertion, + MsgUnlinkAssertionResponse as DidV1MsgUnlinkAssertionResponse, + MsgUnlinkAuthentication as DidV1MsgUnlinkAuthentication, + MsgUnlinkAuthenticationResponse as DidV1MsgUnlinkAuthenticationResponse, + MsgUpdateParams as DidV1MsgUpdateParams, + MsgUpdateParamsResponse as DidV1MsgUpdateParamsResponse, +} from "./did/v1/tx_pb.js"; +export { + MsgExecuteTxService as DidV1MsgExecuteTxService, + MsgLinkAssertionService as DidV1MsgLinkAssertionService, + MsgLinkAuthenticationService as DidV1MsgLinkAuthenticationService, + MsgUnlinkAssertionService as DidV1MsgUnlinkAssertionService, + MsgUnlinkAuthenticationService as DidV1MsgUnlinkAuthenticationService, + MsgUpdateParamsService as DidV1MsgUpdateParamsService, +} from "./did/v1/tx_cosmes.js"; +export { + Account as DidV1Account, + PublicKey as DidV1PublicKey, + Verification as DidV1Verification, +} from "./did/v1/state_pb.js"; +export { + QueryRequest as DidV1QueryRequest, + QueryParamsResponse as DidV1QueryParamsResponse, + QueryResolveResponse as DidV1QueryResolveResponse, + QuerySignRequest as DidV1QuerySignRequest, + QuerySignResponse as DidV1QuerySignResponse, + QueryVerifyRequest as DidV1QueryVerifyRequest, + QueryVerifyResponse as DidV1QueryVerifyResponse, +} from "./did/v1/query_pb.js"; +export { + QueryParamsService as DidV1QueryParamsService, + QueryResolveService as DidV1QueryResolveService, + QueryVerifyService as DidV1QueryVerifyService, +} from "./did/v1/query_cosmes.js"; +export { + GenesisState as DidV1GenesisState, + Params as DidV1Params, + Attenuation as DidV1Attenuation, + Capability as DidV1Capability, + Resource as DidV1Resource, + Document as DidV1Document, +} from "./did/v1/genesis_pb.js"; +export { + Module as DidModuleV1Module, +} from "./did/module/v1/module_pb.js"; +export { + AccessType as CosmwasmWasmV1AccessType, + ContractCodeHistoryOperationType as CosmwasmWasmV1ContractCodeHistoryOperationType, + AccessTypeParam as CosmwasmWasmV1AccessTypeParam, + AccessConfig as CosmwasmWasmV1AccessConfig, + Params as CosmwasmWasmV1Params, + CodeInfo as CosmwasmWasmV1CodeInfo, + ContractInfo as CosmwasmWasmV1ContractInfo, + ContractCodeHistoryEntry as CosmwasmWasmV1ContractCodeHistoryEntry, + AbsoluteTxPosition as CosmwasmWasmV1AbsoluteTxPosition, + Model as CosmwasmWasmV1Model, +} from "./cosmwasm/wasm/v1/types_pb.js"; +export { + MsgStoreCode as CosmwasmWasmV1MsgStoreCode, + MsgStoreCodeResponse as CosmwasmWasmV1MsgStoreCodeResponse, + MsgInstantiateContract as CosmwasmWasmV1MsgInstantiateContract, + MsgInstantiateContractResponse as CosmwasmWasmV1MsgInstantiateContractResponse, + MsgInstantiateContract2 as CosmwasmWasmV1MsgInstantiateContract2, + MsgInstantiateContract2Response as CosmwasmWasmV1MsgInstantiateContract2Response, + MsgExecuteContract as CosmwasmWasmV1MsgExecuteContract, + MsgExecuteContractResponse as CosmwasmWasmV1MsgExecuteContractResponse, + MsgMigrateContract as CosmwasmWasmV1MsgMigrateContract, + MsgMigrateContractResponse as CosmwasmWasmV1MsgMigrateContractResponse, + MsgUpdateAdmin as CosmwasmWasmV1MsgUpdateAdmin, + MsgUpdateAdminResponse as CosmwasmWasmV1MsgUpdateAdminResponse, + MsgClearAdmin as CosmwasmWasmV1MsgClearAdmin, + MsgClearAdminResponse as CosmwasmWasmV1MsgClearAdminResponse, + MsgUpdateInstantiateConfig as CosmwasmWasmV1MsgUpdateInstantiateConfig, + MsgUpdateInstantiateConfigResponse as CosmwasmWasmV1MsgUpdateInstantiateConfigResponse, + MsgUpdateParams as CosmwasmWasmV1MsgUpdateParams, + MsgUpdateParamsResponse as CosmwasmWasmV1MsgUpdateParamsResponse, + MsgSudoContract as CosmwasmWasmV1MsgSudoContract, + MsgSudoContractResponse as CosmwasmWasmV1MsgSudoContractResponse, + MsgPinCodes as CosmwasmWasmV1MsgPinCodes, + MsgPinCodesResponse as CosmwasmWasmV1MsgPinCodesResponse, + MsgUnpinCodes as CosmwasmWasmV1MsgUnpinCodes, + MsgUnpinCodesResponse as CosmwasmWasmV1MsgUnpinCodesResponse, + MsgStoreAndInstantiateContract as CosmwasmWasmV1MsgStoreAndInstantiateContract, + MsgStoreAndInstantiateContractResponse as CosmwasmWasmV1MsgStoreAndInstantiateContractResponse, + MsgAddCodeUploadParamsAddresses as CosmwasmWasmV1MsgAddCodeUploadParamsAddresses, + MsgAddCodeUploadParamsAddressesResponse as CosmwasmWasmV1MsgAddCodeUploadParamsAddressesResponse, + MsgRemoveCodeUploadParamsAddresses as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddresses, + MsgRemoveCodeUploadParamsAddressesResponse as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddressesResponse, + MsgStoreAndMigrateContract as CosmwasmWasmV1MsgStoreAndMigrateContract, + MsgStoreAndMigrateContractResponse as CosmwasmWasmV1MsgStoreAndMigrateContractResponse, + MsgUpdateContractLabel as CosmwasmWasmV1MsgUpdateContractLabel, + MsgUpdateContractLabelResponse as CosmwasmWasmV1MsgUpdateContractLabelResponse, +} from "./cosmwasm/wasm/v1/tx_pb.js"; +export { + MsgStoreCodeService as CosmwasmWasmV1MsgStoreCodeService, + MsgInstantiateContractService as CosmwasmWasmV1MsgInstantiateContractService, + MsgInstantiateContract2Service as CosmwasmWasmV1MsgInstantiateContract2Service, + MsgExecuteContractService as CosmwasmWasmV1MsgExecuteContractService, + MsgMigrateContractService as CosmwasmWasmV1MsgMigrateContractService, + MsgUpdateAdminService as CosmwasmWasmV1MsgUpdateAdminService, + MsgClearAdminService as CosmwasmWasmV1MsgClearAdminService, + MsgUpdateInstantiateConfigService as CosmwasmWasmV1MsgUpdateInstantiateConfigService, + MsgUpdateParamsService as CosmwasmWasmV1MsgUpdateParamsService, + MsgSudoContractService as CosmwasmWasmV1MsgSudoContractService, + MsgPinCodesService as CosmwasmWasmV1MsgPinCodesService, + MsgUnpinCodesService as CosmwasmWasmV1MsgUnpinCodesService, + MsgStoreAndInstantiateContractService as CosmwasmWasmV1MsgStoreAndInstantiateContractService, + MsgRemoveCodeUploadParamsAddressesService as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddressesService, + MsgAddCodeUploadParamsAddressesService as CosmwasmWasmV1MsgAddCodeUploadParamsAddressesService, + MsgStoreAndMigrateContractService as CosmwasmWasmV1MsgStoreAndMigrateContractService, + MsgUpdateContractLabelService as CosmwasmWasmV1MsgUpdateContractLabelService, +} from "./cosmwasm/wasm/v1/tx_cosmes.js"; +export { + QueryContractInfoRequest as CosmwasmWasmV1QueryContractInfoRequest, + QueryContractInfoResponse as CosmwasmWasmV1QueryContractInfoResponse, + QueryContractHistoryRequest as CosmwasmWasmV1QueryContractHistoryRequest, + QueryContractHistoryResponse as CosmwasmWasmV1QueryContractHistoryResponse, + QueryContractsByCodeRequest as CosmwasmWasmV1QueryContractsByCodeRequest, + QueryContractsByCodeResponse as CosmwasmWasmV1QueryContractsByCodeResponse, + QueryAllContractStateRequest as CosmwasmWasmV1QueryAllContractStateRequest, + QueryAllContractStateResponse as CosmwasmWasmV1QueryAllContractStateResponse, + QueryRawContractStateRequest as CosmwasmWasmV1QueryRawContractStateRequest, + QueryRawContractStateResponse as CosmwasmWasmV1QueryRawContractStateResponse, + QuerySmartContractStateRequest as CosmwasmWasmV1QuerySmartContractStateRequest, + QuerySmartContractStateResponse as CosmwasmWasmV1QuerySmartContractStateResponse, + QueryCodeRequest as CosmwasmWasmV1QueryCodeRequest, + QueryCodeInfoRequest as CosmwasmWasmV1QueryCodeInfoRequest, + QueryCodeInfoResponse as CosmwasmWasmV1QueryCodeInfoResponse, + CodeInfoResponse as CosmwasmWasmV1CodeInfoResponse, + QueryCodeResponse as CosmwasmWasmV1QueryCodeResponse, + QueryCodesRequest as CosmwasmWasmV1QueryCodesRequest, + QueryCodesResponse as CosmwasmWasmV1QueryCodesResponse, + QueryPinnedCodesRequest as CosmwasmWasmV1QueryPinnedCodesRequest, + QueryPinnedCodesResponse as CosmwasmWasmV1QueryPinnedCodesResponse, + QueryParamsRequest as CosmwasmWasmV1QueryParamsRequest, + QueryParamsResponse as CosmwasmWasmV1QueryParamsResponse, + QueryContractsByCreatorRequest as CosmwasmWasmV1QueryContractsByCreatorRequest, + QueryContractsByCreatorResponse as CosmwasmWasmV1QueryContractsByCreatorResponse, + QueryWasmLimitsConfigRequest as CosmwasmWasmV1QueryWasmLimitsConfigRequest, + QueryWasmLimitsConfigResponse as CosmwasmWasmV1QueryWasmLimitsConfigResponse, + QueryBuildAddressRequest as CosmwasmWasmV1QueryBuildAddressRequest, + QueryBuildAddressResponse as CosmwasmWasmV1QueryBuildAddressResponse, +} from "./cosmwasm/wasm/v1/query_pb.js"; +export { + QueryContractInfoService as CosmwasmWasmV1QueryContractInfoService, + QueryContractHistoryService as CosmwasmWasmV1QueryContractHistoryService, + QueryContractsByCodeService as CosmwasmWasmV1QueryContractsByCodeService, + QueryAllContractStateService as CosmwasmWasmV1QueryAllContractStateService, + QueryRawContractStateService as CosmwasmWasmV1QueryRawContractStateService, + QuerySmartContractStateService as CosmwasmWasmV1QuerySmartContractStateService, + QueryCodeService as CosmwasmWasmV1QueryCodeService, + QueryCodesService as CosmwasmWasmV1QueryCodesService, + QueryCodeInfoService as CosmwasmWasmV1QueryCodeInfoService, + QueryPinnedCodesService as CosmwasmWasmV1QueryPinnedCodesService, + QueryParamsService as CosmwasmWasmV1QueryParamsService, + QueryContractsByCreatorService as CosmwasmWasmV1QueryContractsByCreatorService, + QueryWasmLimitsConfigService as CosmwasmWasmV1QueryWasmLimitsConfigService, + QueryBuildAddressService as CosmwasmWasmV1QueryBuildAddressService, +} from "./cosmwasm/wasm/v1/query_cosmes.js"; +export { + StoreCodeProposal as CosmwasmWasmV1StoreCodeProposal, + InstantiateContractProposal as CosmwasmWasmV1InstantiateContractProposal, + InstantiateContract2Proposal as CosmwasmWasmV1InstantiateContract2Proposal, + MigrateContractProposal as CosmwasmWasmV1MigrateContractProposal, + SudoContractProposal as CosmwasmWasmV1SudoContractProposal, + ExecuteContractProposal as CosmwasmWasmV1ExecuteContractProposal, + UpdateAdminProposal as CosmwasmWasmV1UpdateAdminProposal, + ClearAdminProposal as CosmwasmWasmV1ClearAdminProposal, + PinCodesProposal as CosmwasmWasmV1PinCodesProposal, + UnpinCodesProposal as CosmwasmWasmV1UnpinCodesProposal, + AccessConfigUpdate as CosmwasmWasmV1AccessConfigUpdate, + UpdateInstantiateConfigProposal as CosmwasmWasmV1UpdateInstantiateConfigProposal, + StoreAndInstantiateContractProposal as CosmwasmWasmV1StoreAndInstantiateContractProposal, +} from "./cosmwasm/wasm/v1/proposal_legacy_pb.js"; +export { + MsgIBCSend as CosmwasmWasmV1MsgIBCSend, + MsgIBCSendResponse as CosmwasmWasmV1MsgIBCSendResponse, + MsgIBCWriteAcknowledgementResponse as CosmwasmWasmV1MsgIBCWriteAcknowledgementResponse, + MsgIBCCloseChannel as CosmwasmWasmV1MsgIBCCloseChannel, +} from "./cosmwasm/wasm/v1/ibc_pb.js"; +export { + GenesisState as CosmwasmWasmV1GenesisState, + Code as CosmwasmWasmV1Code, + Contract as CosmwasmWasmV1Contract, + Sequence as CosmwasmWasmV1Sequence, +} from "./cosmwasm/wasm/v1/genesis_pb.js"; +export { + StoreCodeAuthorization as CosmwasmWasmV1StoreCodeAuthorization, + ContractExecutionAuthorization as CosmwasmWasmV1ContractExecutionAuthorization, + ContractMigrationAuthorization as CosmwasmWasmV1ContractMigrationAuthorization, + CodeGrant as CosmwasmWasmV1CodeGrant, + ContractGrant as CosmwasmWasmV1ContractGrant, + MaxCallsLimit as CosmwasmWasmV1MaxCallsLimit, + MaxFundsLimit as CosmwasmWasmV1MaxFundsLimit, + CombinedLimit as CosmwasmWasmV1CombinedLimit, + AllowAllMessagesFilter as CosmwasmWasmV1AllowAllMessagesFilter, + AcceptedMessageKeysFilter as CosmwasmWasmV1AcceptedMessageKeysFilter, + AcceptedMessagesFilter as CosmwasmWasmV1AcceptedMessagesFilter, +} from "./cosmwasm/wasm/v1/authz_pb.js"; export { BaseVestingAccount as CosmosVestingV1beta1BaseVestingAccount, ContinuousVestingAccount as CosmosVestingV1beta1ContinuousVestingAccount, @@ -1370,7 +2291,9 @@ export { MsgCreatePermanentLockedAccountService as CosmosVestingV1beta1MsgCreatePermanentLockedAccountService, MsgCreatePeriodicVestingAccountService as CosmosVestingV1beta1MsgCreatePeriodicVestingAccountService, } from "./cosmos/vesting/v1beta1/tx_cosmes.js"; -export { Module as CosmosVestingModuleV1Module } from "./cosmos/vesting/module/v1/module_pb.js"; +export { + Module as CosmosVestingModuleV1Module, +} from "./cosmos/vesting/module/v1/module_pb.js"; export { Plan as CosmosUpgradeV1beta1Plan, SoftwareUpgradeProposal as CosmosUpgradeV1beta1SoftwareUpgradeProposal, @@ -1406,7 +2329,9 @@ export { QueryModuleVersionsService as CosmosUpgradeV1beta1QueryModuleVersionsService, QueryAuthorityService as CosmosUpgradeV1beta1QueryAuthorityService, } from "./cosmos/upgrade/v1beta1/query_cosmes.js"; -export { Module as CosmosUpgradeModuleV1Module } from "./cosmos/upgrade/module/v1/module_pb.js"; +export { + Module as CosmosUpgradeModuleV1Module, +} from "./cosmos/upgrade/module/v1/module_pb.js"; export { Tx as CosmosTxV1beta1Tx, TxRaw as CosmosTxV1beta1TxRaw, @@ -1463,7 +2388,9 @@ export { SignatureDescriptor_Data_Single as CosmosTxSigningV1beta1SignatureDescriptor_Data_Single, SignatureDescriptor_Data_Multi as CosmosTxSigningV1beta1SignatureDescriptor_Data_Multi, } from "./cosmos/tx/signing/v1beta1/signing_pb.js"; -export { Config as CosmosTxConfigV1Config } from "./cosmos/tx/config/v1/config_pb.js"; +export { + Config as CosmosTxConfigV1Config, +} from "./cosmos/tx/config/v1/config_pb.js"; export { StoreKVPair as CosmosStoreV1beta1StoreKVPair, BlockMetadata as CosmosStoreV1beta1BlockMetadata, @@ -1601,7 +2528,9 @@ export { StakeAuthorization as CosmosStakingV1beta1StakeAuthorization, StakeAuthorization_Validators as CosmosStakingV1beta1StakeAuthorization_Validators, } from "./cosmos/staking/v1beta1/authz_pb.js"; -export { Module as CosmosStakingModuleV1Module } from "./cosmos/staking/module/v1/module_pb.js"; +export { + Module as CosmosStakingModuleV1Module, +} from "./cosmos/staking/module/v1/module_pb.js"; export { MsgUnjail as CosmosSlashingV1beta1MsgUnjail, MsgUnjailResponse as CosmosSlashingV1beta1MsgUnjailResponse, @@ -1635,12 +2564,16 @@ export { ValidatorMissedBlocks as CosmosSlashingV1beta1ValidatorMissedBlocks, MissedBlock as CosmosSlashingV1beta1MissedBlock, } from "./cosmos/slashing/v1beta1/genesis_pb.js"; -export { Module as CosmosSlashingModuleV1Module } from "./cosmos/slashing/module/v1/module_pb.js"; +export { + Module as CosmosSlashingModuleV1Module, +} from "./cosmos/slashing/module/v1/module_pb.js"; export { FileDescriptorsRequest as CosmosReflectionV1FileDescriptorsRequest, FileDescriptorsResponse as CosmosReflectionV1FileDescriptorsResponse, } from "./cosmos/reflection/v1/reflection_pb.js"; -export { ReflectionServiceFileDescriptorsService as CosmosReflectionV1ReflectionServiceFileDescriptorsService } from "./cosmos/reflection/v1/reflection_cosmes.js"; +export { + ReflectionServiceFileDescriptorsService as CosmosReflectionV1ReflectionServiceFileDescriptorsService, +} from "./cosmos/reflection/v1/reflection_cosmes.js"; export { QueryParamsRequest as CosmosParamsV1beta1QueryParamsRequest, QueryParamsResponse as CosmosParamsV1beta1QueryParamsResponse, @@ -1656,7 +2589,9 @@ export { ParameterChangeProposal as CosmosParamsV1beta1ParameterChangeProposal, ParamChange as CosmosParamsV1beta1ParamChange, } from "./cosmos/params/v1beta1/params_pb.js"; -export { Module as CosmosParamsModuleV1Module } from "./cosmos/params/module/v1/module_pb.js"; +export { + Module as CosmosParamsModuleV1Module, +} from "./cosmos/params/module/v1/module_pb.js"; export { StorageType as CosmosOrmV1alpha1StorageType, ModuleSchemaDescriptor as CosmosOrmV1alpha1ModuleSchemaDescriptor, @@ -1681,12 +2616,16 @@ export { QueryGetService as CosmosOrmQueryV1alpha1QueryGetService, QueryListService as CosmosOrmQueryV1alpha1QueryListService, } from "./cosmos/orm/query/v1alpha1/query_cosmes.js"; -export { Module as CosmosOrmModuleV1alpha1Module } from "./cosmos/orm/module/v1alpha1/module_pb.js"; +export { + Module as CosmosOrmModuleV1alpha1Module, +} from "./cosmos/orm/module/v1alpha1/module_pb.js"; export { MsgSend as CosmosNftV1beta1MsgSend, MsgSendResponse as CosmosNftV1beta1MsgSendResponse, } from "./cosmos/nft/v1beta1/tx_pb.js"; -export { MsgSendService as CosmosNftV1beta1MsgSendService } from "./cosmos/nft/v1beta1/tx_cosmes.js"; +export { + MsgSendService as CosmosNftV1beta1MsgSendService, +} from "./cosmos/nft/v1beta1/tx_cosmes.js"; export { QueryBalanceRequest as CosmosNftV1beta1QueryBalanceRequest, QueryBalanceResponse as CosmosNftV1beta1QueryBalanceResponse, @@ -1725,12 +2664,16 @@ export { EventMint as CosmosNftV1beta1EventMint, EventBurn as CosmosNftV1beta1EventBurn, } from "./cosmos/nft/v1beta1/event_pb.js"; -export { Module as CosmosNftModuleV1Module } from "./cosmos/nft/module/v1/module_pb.js"; +export { + Module as CosmosNftModuleV1Module, +} from "./cosmos/nft/module/v1/module_pb.js"; export { MsgUpdateParams as CosmosMintV1beta1MsgUpdateParams, MsgUpdateParamsResponse as CosmosMintV1beta1MsgUpdateParamsResponse, } from "./cosmos/mint/v1beta1/tx_pb.js"; -export { MsgUpdateParamsService as CosmosMintV1beta1MsgUpdateParamsService } from "./cosmos/mint/v1beta1/tx_cosmes.js"; +export { + MsgUpdateParamsService as CosmosMintV1beta1MsgUpdateParamsService, +} from "./cosmos/mint/v1beta1/tx_cosmes.js"; export { QueryParamsRequest as CosmosMintV1beta1QueryParamsRequest, QueryParamsResponse as CosmosMintV1beta1QueryParamsResponse, @@ -1748,8 +2691,29 @@ export { Minter as CosmosMintV1beta1Minter, Params as CosmosMintV1beta1Params, } from "./cosmos/mint/v1beta1/mint_pb.js"; -export { GenesisState as CosmosMintV1beta1GenesisState } from "./cosmos/mint/v1beta1/genesis_pb.js"; -export { Module as CosmosMintModuleV1Module } from "./cosmos/mint/module/v1/module_pb.js"; +export { + GenesisState as CosmosMintV1beta1GenesisState, +} from "./cosmos/mint/v1beta1/genesis_pb.js"; +export { + Module as CosmosMintModuleV1Module, +} from "./cosmos/mint/module/v1/module_pb.js"; +export { + HashOp as CosmosIcs23V1HashOp, + LengthOp as CosmosIcs23V1LengthOp, + ExistenceProof as CosmosIcs23V1ExistenceProof, + NonExistenceProof as CosmosIcs23V1NonExistenceProof, + CommitmentProof as CosmosIcs23V1CommitmentProof, + LeafOp as CosmosIcs23V1LeafOp, + InnerOp as CosmosIcs23V1InnerOp, + ProofSpec as CosmosIcs23V1ProofSpec, + InnerSpec as CosmosIcs23V1InnerSpec, + BatchProof as CosmosIcs23V1BatchProof, + BatchEntry as CosmosIcs23V1BatchEntry, + CompressedBatchProof as CosmosIcs23V1CompressedBatchProof, + CompressedBatchEntry as CosmosIcs23V1CompressedBatchEntry, + CompressedExistenceProof as CosmosIcs23V1CompressedExistenceProof, + CompressedNonExistenceProof as CosmosIcs23V1CompressedNonExistenceProof, +} from "./cosmos/ics23/v1/proofs_pb.js"; export { VoteOption as CosmosGroupV1VoteOption, ProposalStatus as CosmosGroupV1ProposalStatus, @@ -1859,7 +2823,9 @@ export { QueryTallyResultService as CosmosGroupV1QueryTallyResultService, QueryGroupsService as CosmosGroupV1QueryGroupsService, } from "./cosmos/group/v1/query_cosmes.js"; -export { GenesisState as CosmosGroupV1GenesisState } from "./cosmos/group/v1/genesis_pb.js"; +export { + GenesisState as CosmosGroupV1GenesisState, +} from "./cosmos/group/v1/genesis_pb.js"; export { EventCreateGroup as CosmosGroupV1EventCreateGroup, EventUpdateGroup as CosmosGroupV1EventUpdateGroup, @@ -1872,7 +2838,9 @@ export { EventLeaveGroup as CosmosGroupV1EventLeaveGroup, EventProposalPruned as CosmosGroupV1EventProposalPruned, } from "./cosmos/group/v1/events_pb.js"; -export { Module as CosmosGroupModuleV1Module } from "./cosmos/group/module/v1/module_pb.js"; +export { + Module as CosmosGroupModuleV1Module, +} from "./cosmos/group/module/v1/module_pb.js"; export { MsgSubmitProposal as CosmosGovV1beta1MsgSubmitProposal, MsgSubmitProposalResponse as CosmosGovV1beta1MsgSubmitProposalResponse, @@ -1930,7 +2898,9 @@ export { VotingParams as CosmosGovV1beta1VotingParams, TallyParams as CosmosGovV1beta1TallyParams, } from "./cosmos/gov/v1beta1/gov_pb.js"; -export { GenesisState as CosmosGovV1beta1GenesisState } from "./cosmos/gov/v1beta1/genesis_pb.js"; +export { + GenesisState as CosmosGovV1beta1GenesisState, +} from "./cosmos/gov/v1beta1/genesis_pb.js"; export { MsgSubmitProposal as CosmosGovV1MsgSubmitProposal, MsgSubmitProposalResponse as CosmosGovV1MsgSubmitProposalResponse, @@ -2000,10 +2970,18 @@ export { TallyParams as CosmosGovV1TallyParams, Params as CosmosGovV1Params, } from "./cosmos/gov/v1/gov_pb.js"; -export { GenesisState as CosmosGovV1GenesisState } from "./cosmos/gov/v1/genesis_pb.js"; -export { Module as CosmosGovModuleV1Module } from "./cosmos/gov/module/v1/module_pb.js"; -export { GenesisState as CosmosGenutilV1beta1GenesisState } from "./cosmos/genutil/v1beta1/genesis_pb.js"; -export { Module as CosmosGenutilModuleV1Module } from "./cosmos/genutil/module/v1/module_pb.js"; +export { + GenesisState as CosmosGovV1GenesisState, +} from "./cosmos/gov/v1/genesis_pb.js"; +export { + Module as CosmosGovModuleV1Module, +} from "./cosmos/gov/module/v1/module_pb.js"; +export { + GenesisState as CosmosGenutilV1beta1GenesisState, +} from "./cosmos/genutil/v1beta1/genesis_pb.js"; +export { + Module as CosmosGenutilModuleV1Module, +} from "./cosmos/genutil/module/v1/module_pb.js"; export { MsgGrantAllowance as CosmosFeegrantV1beta1MsgGrantAllowance, MsgGrantAllowanceResponse as CosmosFeegrantV1beta1MsgGrantAllowanceResponse, @@ -2030,19 +3008,25 @@ export { QueryAllowancesService as CosmosFeegrantV1beta1QueryAllowancesService, QueryAllowancesByGranterService as CosmosFeegrantV1beta1QueryAllowancesByGranterService, } from "./cosmos/feegrant/v1beta1/query_cosmes.js"; -export { GenesisState as CosmosFeegrantV1beta1GenesisState } from "./cosmos/feegrant/v1beta1/genesis_pb.js"; +export { + GenesisState as CosmosFeegrantV1beta1GenesisState, +} from "./cosmos/feegrant/v1beta1/genesis_pb.js"; export { BasicAllowance as CosmosFeegrantV1beta1BasicAllowance, PeriodicAllowance as CosmosFeegrantV1beta1PeriodicAllowance, AllowedMsgAllowance as CosmosFeegrantV1beta1AllowedMsgAllowance, Grant as CosmosFeegrantV1beta1Grant, } from "./cosmos/feegrant/v1beta1/feegrant_pb.js"; -export { Module as CosmosFeegrantModuleV1Module } from "./cosmos/feegrant/module/v1/module_pb.js"; +export { + Module as CosmosFeegrantModuleV1Module, +} from "./cosmos/feegrant/module/v1/module_pb.js"; export { MsgSubmitEvidence as CosmosEvidenceV1beta1MsgSubmitEvidence, MsgSubmitEvidenceResponse as CosmosEvidenceV1beta1MsgSubmitEvidenceResponse, } from "./cosmos/evidence/v1beta1/tx_pb.js"; -export { MsgSubmitEvidenceService as CosmosEvidenceV1beta1MsgSubmitEvidenceService } from "./cosmos/evidence/v1beta1/tx_cosmes.js"; +export { + MsgSubmitEvidenceService as CosmosEvidenceV1beta1MsgSubmitEvidenceService, +} from "./cosmos/evidence/v1beta1/tx_cosmes.js"; export { QueryEvidenceRequest as CosmosEvidenceV1beta1QueryEvidenceRequest, QueryEvidenceResponse as CosmosEvidenceV1beta1QueryEvidenceResponse, @@ -2053,9 +3037,15 @@ export { QueryEvidenceService as CosmosEvidenceV1beta1QueryEvidenceService, QueryAllEvidenceService as CosmosEvidenceV1beta1QueryAllEvidenceService, } from "./cosmos/evidence/v1beta1/query_cosmes.js"; -export { GenesisState as CosmosEvidenceV1beta1GenesisState } from "./cosmos/evidence/v1beta1/genesis_pb.js"; -export { Equivocation as CosmosEvidenceV1beta1Equivocation } from "./cosmos/evidence/v1beta1/evidence_pb.js"; -export { Module as CosmosEvidenceModuleV1Module } from "./cosmos/evidence/module/v1/module_pb.js"; +export { + GenesisState as CosmosEvidenceV1beta1GenesisState, +} from "./cosmos/evidence/v1beta1/genesis_pb.js"; +export { + Equivocation as CosmosEvidenceV1beta1Equivocation, +} from "./cosmos/evidence/v1beta1/evidence_pb.js"; +export { + Module as CosmosEvidenceModuleV1Module, +} from "./cosmos/evidence/module/v1/module_pb.js"; export { MsgSetWithdrawAddress as CosmosDistributionV1beta1MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse as CosmosDistributionV1beta1MsgSetWithdrawAddressResponse, @@ -2139,7 +3129,9 @@ export { DelegationDelegatorReward as CosmosDistributionV1beta1DelegationDelegatorReward, CommunityPoolSpendProposalWithDeposit as CosmosDistributionV1beta1CommunityPoolSpendProposalWithDeposit, } from "./cosmos/distribution/v1beta1/distribution_pb.js"; -export { Module as CosmosDistributionModuleV1Module } from "./cosmos/distribution/module/v1/module_pb.js"; +export { + Module as CosmosDistributionModuleV1Module, +} from "./cosmos/distribution/module/v1/module_pb.js"; export { PubKey as CosmosCryptoSecp256r1PubKey, PrivKey as CosmosCryptoSecp256r1PrivKey, @@ -2148,7 +3140,9 @@ export { PubKey as CosmosCryptoSecp256k1PubKey, PrivKey as CosmosCryptoSecp256k1PrivKey, } from "./cosmos/crypto/secp256k1/keys_pb.js"; -export { LegacyAminoPubKey as CosmosCryptoMultisigLegacyAminoPubKey } from "./cosmos/crypto/multisig/keys_pb.js"; +export { + LegacyAminoPubKey as CosmosCryptoMultisigLegacyAminoPubKey, +} from "./cosmos/crypto/multisig/keys_pb.js"; export { MultiSignature as CosmosCryptoMultisigV1beta1MultiSignature, CompactBitArray as CosmosCryptoMultisigV1beta1CompactBitArray, @@ -2160,7 +3154,9 @@ export { Record_Multi as CosmosCryptoKeyringV1Record_Multi, Record_Offline as CosmosCryptoKeyringV1Record_Offline, } from "./cosmos/crypto/keyring/v1/record_pb.js"; -export { BIP44Params as CosmosCryptoHdV1BIP44Params } from "./cosmos/crypto/hd/v1/hd_pb.js"; +export { + BIP44Params as CosmosCryptoHdV1BIP44Params, +} from "./cosmos/crypto/hd/v1/hd_pb.js"; export { PubKey as CosmosCryptoEd25519PubKey, PrivKey as CosmosCryptoEd25519PrivKey, @@ -2175,19 +3171,29 @@ export { MsgVerifyInvariantService as CosmosCrisisV1beta1MsgVerifyInvariantService, MsgUpdateParamsService as CosmosCrisisV1beta1MsgUpdateParamsService, } from "./cosmos/crisis/v1beta1/tx_cosmes.js"; -export { GenesisState as CosmosCrisisV1beta1GenesisState } from "./cosmos/crisis/v1beta1/genesis_pb.js"; -export { Module as CosmosCrisisModuleV1Module } from "./cosmos/crisis/module/v1/module_pb.js"; +export { + GenesisState as CosmosCrisisV1beta1GenesisState, +} from "./cosmos/crisis/v1beta1/genesis_pb.js"; +export { + Module as CosmosCrisisModuleV1Module, +} from "./cosmos/crisis/module/v1/module_pb.js"; export { MsgUpdateParams as CosmosConsensusV1MsgUpdateParams, MsgUpdateParamsResponse as CosmosConsensusV1MsgUpdateParamsResponse, } from "./cosmos/consensus/v1/tx_pb.js"; -export { MsgUpdateParamsService as CosmosConsensusV1MsgUpdateParamsService } from "./cosmos/consensus/v1/tx_cosmes.js"; +export { + MsgUpdateParamsService as CosmosConsensusV1MsgUpdateParamsService, +} from "./cosmos/consensus/v1/tx_cosmes.js"; export { QueryParamsRequest as CosmosConsensusV1QueryParamsRequest, QueryParamsResponse as CosmosConsensusV1QueryParamsResponse, } from "./cosmos/consensus/v1/query_pb.js"; -export { QueryParamsService as CosmosConsensusV1QueryParamsService } from "./cosmos/consensus/v1/query_cosmes.js"; -export { Module as CosmosConsensusModuleV1Module } from "./cosmos/consensus/module/v1/module_pb.js"; +export { + QueryParamsService as CosmosConsensusV1QueryParamsService, +} from "./cosmos/consensus/v1/query_cosmes.js"; +export { + Module as CosmosConsensusModuleV1Module, +} from "./cosmos/consensus/module/v1/module_pb.js"; export { Permissions as CosmosCircuitV1Permissions, Permissions_Level as CosmosCircuitV1Permissions_Level, @@ -2220,7 +3226,9 @@ export { QueryAccountsService as CosmosCircuitV1QueryAccountsService, QueryDisabledListService as CosmosCircuitV1QueryDisabledListService, } from "./cosmos/circuit/v1/query_cosmes.js"; -export { Module as CosmosCircuitModuleV1Module } from "./cosmos/circuit/module/v1/module_pb.js"; +export { + Module as CosmosCircuitModuleV1Module, +} from "./cosmos/circuit/module/v1/module_pb.js"; export { Coin as CosmosBaseV1beta1Coin, DecCoin as CosmosBaseV1beta1DecCoin, @@ -2407,13 +3415,19 @@ export { DenomUnit as CosmosBankV1beta1DenomUnit, Metadata as CosmosBankV1beta1Metadata, } from "./cosmos/bank/v1beta1/bank_pb.js"; -export { SendAuthorization as CosmosBankV1beta1SendAuthorization } from "./cosmos/bank/v1beta1/authz_pb.js"; -export { Module as CosmosBankModuleV1Module } from "./cosmos/bank/module/v1/module_pb.js"; +export { + SendAuthorization as CosmosBankV1beta1SendAuthorization, +} from "./cosmos/bank/v1beta1/authz_pb.js"; +export { + Module as CosmosBankModuleV1Module, +} from "./cosmos/bank/module/v1/module_pb.js"; export { AppOptionsRequest as CosmosAutocliV1AppOptionsRequest, AppOptionsResponse as CosmosAutocliV1AppOptionsResponse, } from "./cosmos/autocli/v1/query_pb.js"; -export { QueryAppOptionsService as CosmosAutocliV1QueryAppOptionsService } from "./cosmos/autocli/v1/query_cosmes.js"; +export { + QueryAppOptionsService as CosmosAutocliV1QueryAppOptionsService, +} from "./cosmos/autocli/v1/query_cosmes.js"; export { ModuleOptions as CosmosAutocliV1ModuleOptions, ServiceCommandDescriptor as CosmosAutocliV1ServiceCommandDescriptor, @@ -2447,7 +3461,9 @@ export { QueryGranterGrantsService as CosmosAuthzV1beta1QueryGranterGrantsService, QueryGranteeGrantsService as CosmosAuthzV1beta1QueryGranteeGrantsService, } from "./cosmos/authz/v1beta1/query_cosmes.js"; -export { GenesisState as CosmosAuthzV1beta1GenesisState } from "./cosmos/authz/v1beta1/genesis_pb.js"; +export { + GenesisState as CosmosAuthzV1beta1GenesisState, +} from "./cosmos/authz/v1beta1/genesis_pb.js"; export { EventGrant as CosmosAuthzV1beta1EventGrant, EventRevoke as CosmosAuthzV1beta1EventRevoke, @@ -2458,12 +3474,16 @@ export { GrantAuthorization as CosmosAuthzV1beta1GrantAuthorization, GrantQueueItem as CosmosAuthzV1beta1GrantQueueItem, } from "./cosmos/authz/v1beta1/authz_pb.js"; -export { Module as CosmosAuthzModuleV1Module } from "./cosmos/authz/module/v1/module_pb.js"; +export { + Module as CosmosAuthzModuleV1Module, +} from "./cosmos/authz/module/v1/module_pb.js"; export { MsgUpdateParams as CosmosAuthV1beta1MsgUpdateParams, MsgUpdateParamsResponse as CosmosAuthV1beta1MsgUpdateParamsResponse, } from "./cosmos/auth/v1beta1/tx_pb.js"; -export { MsgUpdateParamsService as CosmosAuthV1beta1MsgUpdateParamsService } from "./cosmos/auth/v1beta1/tx_cosmes.js"; +export { + MsgUpdateParamsService as CosmosAuthV1beta1MsgUpdateParamsService, +} from "./cosmos/auth/v1beta1/tx_cosmes.js"; export { QueryAccountsRequest as CosmosAuthV1beta1QueryAccountsRequest, QueryAccountsResponse as CosmosAuthV1beta1QueryAccountsResponse, @@ -2498,7 +3518,9 @@ export { QueryAddressStringToBytesService as CosmosAuthV1beta1QueryAddressStringToBytesService, QueryAccountInfoService as CosmosAuthV1beta1QueryAccountInfoService, } from "./cosmos/auth/v1beta1/query_cosmes.js"; -export { GenesisState as CosmosAuthV1beta1GenesisState } from "./cosmos/auth/v1beta1/genesis_pb.js"; +export { + GenesisState as CosmosAuthV1beta1GenesisState, +} from "./cosmos/auth/v1beta1/genesis_pb.js"; export { BaseAccount as CosmosAuthV1beta1BaseAccount, ModuleAccount as CosmosAuthV1beta1ModuleAccount, @@ -2513,7 +3535,9 @@ export { QueryConfigRequest as CosmosAppV1alpha1QueryConfigRequest, QueryConfigResponse as CosmosAppV1alpha1QueryConfigResponse, } from "./cosmos/app/v1alpha1/query_pb.js"; -export { QueryConfigService as CosmosAppV1alpha1QueryConfigService } from "./cosmos/app/v1alpha1/query_cosmes.js"; +export { + QueryConfigService as CosmosAppV1alpha1QueryConfigService, +} from "./cosmos/app/v1alpha1/query_cosmes.js"; export { ModuleDescriptor as CosmosAppV1alpha1ModuleDescriptor, PackageReference as CosmosAppV1alpha1PackageReference, @@ -2541,7 +3565,9 @@ export { MsgUpdateParams as BabylonZoneconciergeV1MsgUpdateParams, MsgUpdateParamsResponse as BabylonZoneconciergeV1MsgUpdateParamsResponse, } from "./babylon/zoneconcierge/v1/tx_pb.js"; -export { MsgUpdateParamsService as BabylonZoneconciergeV1MsgUpdateParamsService } from "./babylon/zoneconcierge/v1/tx_cosmes.js"; +export { + MsgUpdateParamsService as BabylonZoneconciergeV1MsgUpdateParamsService, +} from "./babylon/zoneconcierge/v1/tx_cosmes.js"; export { QueryParamsRequest as BabylonZoneconciergeV1QueryParamsRequest, QueryParamsResponse as BabylonZoneconciergeV1QueryParamsResponse, @@ -2573,12 +3599,16 @@ export { QueryFinalizedChainsInfoService as BabylonZoneconciergeV1QueryFinalizedChainsInfoService, QueryFinalizedChainInfoUntilHeightService as BabylonZoneconciergeV1QueryFinalizedChainInfoUntilHeightService, } from "./babylon/zoneconcierge/v1/query_cosmes.js"; -export { Params as BabylonZoneconciergeV1Params } from "./babylon/zoneconcierge/v1/params_pb.js"; +export { + Params as BabylonZoneconciergeV1Params, +} from "./babylon/zoneconcierge/v1/params_pb.js"; export { ZoneconciergePacketData as BabylonZoneconciergeV1ZoneconciergePacketData, BTCTimestamp as BabylonZoneconciergeV1BTCTimestamp, } from "./babylon/zoneconcierge/v1/packet_pb.js"; -export { GenesisState as BabylonZoneconciergeV1GenesisState } from "./babylon/zoneconcierge/v1/genesis_pb.js"; +export { + GenesisState as BabylonZoneconciergeV1GenesisState, +} from "./babylon/zoneconcierge/v1/genesis_pb.js"; export { QueryEndedEpochBtcHeightRequest as BabylonMonitorV1QueryEndedEpochBtcHeightRequest, QueryEndedEpochBtcHeightResponse as BabylonMonitorV1QueryEndedEpochBtcHeightResponse, @@ -2589,7 +3619,9 @@ export { QueryEndedEpochBtcHeightService as BabylonMonitorV1QueryEndedEpochBtcHeightService, QueryReportedCheckpointBtcHeightService as BabylonMonitorV1QueryReportedCheckpointBtcHeightService, } from "./babylon/monitor/v1/query_cosmes.js"; -export { GenesisState as BabylonMonitorV1GenesisState } from "./babylon/monitor/v1/genesis_pb.js"; +export { + GenesisState as BabylonMonitorV1GenesisState, +} from "./babylon/monitor/v1/genesis_pb.js"; export { MsgWithdrawReward as BabylonIncentiveMsgWithdrawReward, MsgWithdrawRewardResponse as BabylonIncentiveMsgWithdrawRewardResponse, @@ -2616,12 +3648,16 @@ export { QueryBTCStakingGaugeService as BabylonIncentiveQueryBTCStakingGaugeService, QueryBTCTimestampingGaugeService as BabylonIncentiveQueryBTCTimestampingGaugeService, } from "./babylon/incentive/query_cosmes.js"; -export { Params as BabylonIncentiveParams } from "./babylon/incentive/params_pb.js"; +export { + Params as BabylonIncentiveParams, +} from "./babylon/incentive/params_pb.js"; export { Gauge as BabylonIncentiveGauge, RewardGauge as BabylonIncentiveRewardGauge, } from "./babylon/incentive/incentive_pb.js"; -export { GenesisState as BabylonIncentiveGenesisState } from "./babylon/incentive/genesis_pb.js"; +export { + GenesisState as BabylonIncentiveGenesisState, +} from "./babylon/incentive/genesis_pb.js"; export { MsgAddFinalitySig as BabylonFinalityV1MsgAddFinalitySig, MsgAddFinalitySigResponse as BabylonFinalityV1MsgAddFinalitySigResponse, @@ -2661,7 +3697,9 @@ export { QueryEvidenceService as BabylonFinalityV1QueryEvidenceService, QueryListEvidencesService as BabylonFinalityV1QueryListEvidencesService, } from "./babylon/finality/v1/query_cosmes.js"; -export { Params as BabylonFinalityV1Params } from "./babylon/finality/v1/params_pb.js"; +export { + Params as BabylonFinalityV1Params, +} from "./babylon/finality/v1/params_pb.js"; export { GenesisState as BabylonFinalityV1GenesisState, VoteSig as BabylonFinalityV1VoteSig, @@ -2671,7 +3709,9 @@ export { IndexedBlock as BabylonFinalityV1IndexedBlock, Evidence as BabylonFinalityV1Evidence, } from "./babylon/finality/v1/finality_pb.js"; -export { EventSlashedFinalityProvider as BabylonFinalityV1EventSlashedFinalityProvider } from "./babylon/finality/v1/events_pb.js"; +export { + EventSlashedFinalityProvider as BabylonFinalityV1EventSlashedFinalityProvider, +} from "./babylon/finality/v1/events_pb.js"; export { MsgWrappedDelegate as BabylonEpochingV1MsgWrappedDelegate, MsgWrappedDelegateResponse as BabylonEpochingV1MsgWrappedDelegateResponse, @@ -2726,8 +3766,12 @@ export { QueryDelegationLifecycleService as BabylonEpochingV1QueryDelegationLifecycleService, QueryEpochValSetService as BabylonEpochingV1QueryEpochValSetService, } from "./babylon/epoching/v1/query_cosmes.js"; -export { Params as BabylonEpochingV1Params } from "./babylon/epoching/v1/params_pb.js"; -export { GenesisState as BabylonEpochingV1GenesisState } from "./babylon/epoching/v1/genesis_pb.js"; +export { + Params as BabylonEpochingV1Params, +} from "./babylon/epoching/v1/params_pb.js"; +export { + GenesisState as BabylonEpochingV1GenesisState, +} from "./babylon/epoching/v1/genesis_pb.js"; export { EventBeginEpoch as BabylonEpochingV1EventBeginEpoch, EventEndEpoch as BabylonEpochingV1EventEndEpoch, @@ -2752,7 +3796,9 @@ export { MsgWrappedCreateValidator as BabylonCheckpointingV1MsgWrappedCreateValidator, MsgWrappedCreateValidatorResponse as BabylonCheckpointingV1MsgWrappedCreateValidatorResponse, } from "./babylon/checkpointing/v1/tx_pb.js"; -export { MsgWrappedCreateValidatorService as BabylonCheckpointingV1MsgWrappedCreateValidatorService } from "./babylon/checkpointing/v1/tx_cosmes.js"; +export { + MsgWrappedCreateValidatorService as BabylonCheckpointingV1MsgWrappedCreateValidatorService, +} from "./babylon/checkpointing/v1/tx_cosmes.js"; export { QueryRawCheckpointListRequest as BabylonCheckpointingV1QueryRawCheckpointListRequest, QueryRawCheckpointListResponse as BabylonCheckpointingV1QueryRawCheckpointListResponse, @@ -2877,7 +3923,9 @@ export { ProofOfPossession as BabylonBtcstakingV1ProofOfPossession, BIP322Sig as BabylonBtcstakingV1BIP322Sig, } from "./babylon/btcstaking/v1/pop_pb.js"; -export { Params as BabylonBtcstakingV1Params } from "./babylon/btcstaking/v1/params_pb.js"; +export { + Params as BabylonBtcstakingV1Params, +} from "./babylon/btcstaking/v1/params_pb.js"; export { VotingPowerDistCache as BabylonBtcstakingV1VotingPowerDistCache, FinalityProviderDistInfo as BabylonBtcstakingV1FinalityProviderDistInfo, @@ -2949,14 +3997,20 @@ export { QueryBaseHeaderService as BabylonBtclightclientV1QueryBaseHeaderService, QueryHeaderDepthService as BabylonBtclightclientV1QueryHeaderDepthService, } from "./babylon/btclightclient/v1/query_cosmes.js"; -export { Params as BabylonBtclightclientV1Params } from "./babylon/btclightclient/v1/params_pb.js"; -export { GenesisState as BabylonBtclightclientV1GenesisState } from "./babylon/btclightclient/v1/genesis_pb.js"; +export { + Params as BabylonBtclightclientV1Params, +} from "./babylon/btclightclient/v1/params_pb.js"; +export { + GenesisState as BabylonBtclightclientV1GenesisState, +} from "./babylon/btclightclient/v1/genesis_pb.js"; export { EventBTCRollBack as BabylonBtclightclientV1EventBTCRollBack, EventBTCRollForward as BabylonBtclightclientV1EventBTCRollForward, EventBTCHeaderInserted as BabylonBtclightclientV1EventBTCHeaderInserted, } from "./babylon/btclightclient/v1/event_pb.js"; -export { BTCHeaderInfo as BabylonBtclightclientV1BTCHeaderInfo } from "./babylon/btclightclient/v1/btclightclient_pb.js"; +export { + BTCHeaderInfo as BabylonBtclightclientV1BTCHeaderInfo, +} from "./babylon/btclightclient/v1/btclightclient_pb.js"; export { MsgInsertBTCSpvProof as BabylonBtccheckpointV1MsgInsertBTCSpvProof, MsgInsertBTCSpvProofResponse as BabylonBtccheckpointV1MsgInsertBTCSpvProofResponse, @@ -2987,8 +4041,12 @@ export { QueryBtcCheckpointsInfoService as BabylonBtccheckpointV1QueryBtcCheckpointsInfoService, QueryEpochSubmissionsService as BabylonBtccheckpointV1QueryEpochSubmissionsService, } from "./babylon/btccheckpoint/v1/query_cosmes.js"; -export { Params as BabylonBtccheckpointV1Params } from "./babylon/btccheckpoint/v1/params_pb.js"; -export { GenesisState as BabylonBtccheckpointV1GenesisState } from "./babylon/btccheckpoint/v1/genesis_pb.js"; +export { + Params as BabylonBtccheckpointV1Params, +} from "./babylon/btccheckpoint/v1/params_pb.js"; +export { + GenesisState as BabylonBtccheckpointV1GenesisState, +} from "./babylon/btccheckpoint/v1/genesis_pb.js"; export { BtcStatus as BabylonBtccheckpointV1BtcStatus, BTCSpvProof as BabylonBtccheckpointV1BTCSpvProof, diff --git a/libs/es-client/src/protobufs/svc/module/v1/module_pb.ts b/libs/es-client/src/protobufs/svc/module/v1/module_pb.ts new file mode 100644 index 0000000..df8abc4 --- /dev/null +++ b/libs/es-client/src/protobufs/svc/module/v1/module_pb.ts @@ -0,0 +1,42 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file svc/module/v1/module.proto (package svc.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the app config object of the module. + * Learn more: https://docs.cosmos.network/main/building-modules/depinject + * + * @generated from message svc.module.v1.Module + */ +export class Module extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/svc/v1/genesis_pb.ts b/libs/es-client/src/protobufs/svc/v1/genesis_pb.ts new file mode 100644 index 0000000..684ce2c --- /dev/null +++ b/libs/es-client/src/protobufs/svc/v1/genesis_pb.ts @@ -0,0 +1,316 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file svc/v1/genesis.proto (package svc.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"; + +/** + * GenesisState defines the module genesis state + * + * @generated from message svc.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines all the parameters of the module. + * + * @generated from field: svc.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.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); + } +} + +/** + * Params defines the set of module parameters. + * + * @generated from message svc.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated svc.v1.Attenuation attenuations = 1; + */ + attenuations: Attenuation[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attenuations", kind: "message", T: Attenuation, 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); + } +} + +/** + * Attenuation defines the attenuation of a resource + * + * @generated from message svc.v1.Attenuation + */ +export class Attenuation extends Message { + /** + * @generated from field: svc.v1.Resource resource = 1; + */ + resource?: Resource; + + /** + * @generated from field: repeated svc.v1.Capability capabilities = 2; + */ + capabilities: Capability[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.Attenuation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource", kind: "message", T: Resource }, + { no: 2, name: "capabilities", kind: "message", T: Capability, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Attenuation { + return new Attenuation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Attenuation { + return new Attenuation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Attenuation { + return new Attenuation().fromJsonString(jsonString, options); + } + + static equals(a: Attenuation | PlainMessage | undefined, b: Attenuation | PlainMessage | undefined): boolean { + return proto3.util.equals(Attenuation, a, b); + } +} + +/** + * Capability reprensents the available capabilities of a decentralized web node + * + * @generated from message svc.v1.Capability + */ +export class Capability extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: string parent = 2; + */ + parent = ""; + + /** + * @generated from field: string description = 3; + */ + description = ""; + + /** + * @generated from field: repeated string resources = 4; + */ + resources: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.Capability"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "parent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "resources", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + 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); + } +} + +/** + * Resource reprensents the available resources of a decentralized web node + * + * @generated from message svc.v1.Resource + */ +export class Resource extends Message { + /** + * @generated from field: string kind = 1; + */ + kind = ""; + + /** + * @generated from field: string template = 2; + */ + template = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.Resource"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Resource { + return new Resource().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Resource { + return new Resource().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Resource { + return new Resource().fromJsonString(jsonString, options); + } + + static equals(a: Resource | PlainMessage | undefined, b: Resource | PlainMessage | undefined): boolean { + return proto3.util.equals(Resource, a, b); + } +} + +/** + * Service defines a Decentralized Service on the Sonr Blockchain + * + * @generated from message svc.v1.Service + */ +export class Service extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: string authority = 2; + */ + authority = ""; + + /** + * @generated from field: repeated string origins = 3; + */ + origins: string[] = []; + + /** + * @generated from field: string name = 4; + */ + name = ""; + + /** + * @generated from field: string description = 5; + */ + description = ""; + + /** + * @generated from field: repeated svc.v1.Attenuation attenuations = 6; + */ + attenuations: Attenuation[] = []; + + /** + * @generated from field: repeated string tags = 7; + */ + tags: string[] = []; + + /** + * @generated from field: int64 expiry_height = 8; + */ + expiryHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.Service"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "origins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "attenuations", kind: "message", T: Attenuation, repeated: true }, + { no: 7, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 8, name: "expiry_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Service { + return new Service().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Service { + return new Service().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Service { + return new Service().fromJsonString(jsonString, options); + } + + static equals(a: Service | PlainMessage | undefined, b: Service | PlainMessage | undefined): boolean { + return proto3.util.equals(Service, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/svc/v1/query_cosmes.ts b/libs/es-client/src/protobufs/svc/v1/query_cosmes.ts new file mode 100644 index 0000000..35647f8 --- /dev/null +++ b/libs/es-client/src/protobufs/svc/v1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file svc/v1/query.proto (package svc.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryOriginExistsRequest, QueryOriginExistsResponse, QueryParamsRequest, QueryParamsResponse, QueryResolveOriginRequest, QueryResolveOriginResponse } from "./query_pb.js"; + +const TYPE_NAME = "svc.v1.Query"; + +/** + * Params queries all parameters of the module. + * + * @generated from rpc svc.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * OriginExists queries if a given origin exists. + * + * @generated from rpc svc.v1.Query.OriginExists + */ +export const QueryOriginExistsService = { + typeName: TYPE_NAME, + method: "OriginExists", + Request: QueryOriginExistsRequest, + Response: QueryOriginExistsResponse, +} as const; + +/** + * ResolveOrigin queries the domain of a given service and returns its record with capabilities. + * + * @generated from rpc svc.v1.Query.ResolveOrigin + */ +export const QueryResolveOriginService = { + typeName: TYPE_NAME, + method: "ResolveOrigin", + Request: QueryResolveOriginRequest, + Response: QueryResolveOriginResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/svc/v1/query_pb.ts b/libs/es-client/src/protobufs/svc/v1/query_pb.ts new file mode 100644 index 0000000..d934c9c --- /dev/null +++ b/libs/es-client/src/protobufs/svc/v1/query_pb.ts @@ -0,0 +1,247 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file svc/v1/query.proto (package svc.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, Service } from "./genesis_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message svc.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 = "svc.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 svc.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: svc.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.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); + } +} + +/** + * QueryOriginExistsRequest is the request type for the Query/OriginExists RPC method. + * + * @generated from message svc.v1.QueryOriginExistsRequest + */ +export class QueryOriginExistsRequest extends Message { + /** + * origin is the origin to query. + * + * @generated from field: string origin = 1; + */ + origin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.QueryOriginExistsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOriginExistsRequest { + return new QueryOriginExistsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOriginExistsRequest { + return new QueryOriginExistsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOriginExistsRequest { + return new QueryOriginExistsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOriginExistsRequest | PlainMessage | undefined, b: QueryOriginExistsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOriginExistsRequest, a, b); + } +} + +/** + * QueryOriginExistsResponse is the response type for the Query/OriginExists RPC method. + * + * @generated from message svc.v1.QueryOriginExistsResponse + */ +export class QueryOriginExistsResponse extends Message { + /** + * exists is the boolean value representing whether the origin exists. + * + * @generated from field: bool exists = 1; + */ + exists = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.QueryOriginExistsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exists", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOriginExistsResponse { + return new QueryOriginExistsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOriginExistsResponse { + return new QueryOriginExistsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOriginExistsResponse { + return new QueryOriginExistsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOriginExistsResponse | PlainMessage | undefined, b: QueryOriginExistsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOriginExistsResponse, a, b); + } +} + +/** + * QueryResolveOriginRequest is the request type for the Query/ResolveOrigin RPC method. + * + * @generated from message svc.v1.QueryResolveOriginRequest + */ +export class QueryResolveOriginRequest extends Message { + /** + * origin is the origin to query. + * + * @generated from field: string origin = 1; + */ + origin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.QueryResolveOriginRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryResolveOriginRequest { + return new QueryResolveOriginRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryResolveOriginRequest { + return new QueryResolveOriginRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryResolveOriginRequest { + return new QueryResolveOriginRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryResolveOriginRequest | PlainMessage | undefined, b: QueryResolveOriginRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryResolveOriginRequest, a, b); + } +} + +/** + * QueryResolveOriginResponse is the response type for the Query/ResolveOrigin RPC method. + * + * @generated from message svc.v1.QueryResolveOriginResponse + */ +export class QueryResolveOriginResponse extends Message { + /** + * record is the record of the origin. + * + * @generated from field: svc.v1.Service record = 1; + */ + record?: Service; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.QueryResolveOriginResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "record", kind: "message", T: Service }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryResolveOriginResponse { + return new QueryResolveOriginResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryResolveOriginResponse { + return new QueryResolveOriginResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryResolveOriginResponse { + return new QueryResolveOriginResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryResolveOriginResponse | PlainMessage | undefined, b: QueryResolveOriginResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryResolveOriginResponse, a, b); + } +} + diff --git a/libs/es-client/src/protobufs/svc/v1/state_pb.ts b/libs/es-client/src/protobufs/svc/v1/state_pb.ts new file mode 100644 index 0000000..4e15128 --- /dev/null +++ b/libs/es-client/src/protobufs/svc/v1/state_pb.ts @@ -0,0 +1,146 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file svc/v1/state.proto (package svc.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"; + +/** + * @generated from message svc.v1.Domain + */ +export class Domain extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string origin = 2; + */ + origin = ""; + + /** + * @generated from field: string name = 3; + */ + name = ""; + + /** + * @generated from field: string description = 4; + */ + description = ""; + + /** + * @generated from field: string category = 5; + */ + category = ""; + + /** + * @generated from field: string icon = 6; + */ + icon = ""; + + /** + * @generated from field: repeated string tags = 7; + */ + tags: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.Domain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "category", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Domain { + return new Domain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Domain { + return new Domain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Domain { + return new Domain().fromJsonString(jsonString, options); + } + + static equals(a: Domain | PlainMessage | undefined, b: Domain | PlainMessage | undefined): boolean { + return proto3.util.equals(Domain, a, b); + } +} + +/** + * Metadata represents a DID alias + * + * @generated from message svc.v1.Metadata + */ +export class Metadata extends Message { + /** + * The unique identifier of the alias + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * The alias of the DID + * + * @generated from field: string subject = 2; + */ + subject = ""; + + /** + * Origin of the alias + * + * @generated from field: string origin = 3; + */ + origin = ""; + + /** + * Controller of the alias + * + * @generated from field: string controller = 4; + */ + controller = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.Metadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "controller", 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/libs/es-client/src/protobufs/svc/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/svc/v1/tx_cosmes.ts new file mode 100644 index 0000000..a0c2991 --- /dev/null +++ b/libs/es-client/src/protobufs/svc/v1/tx_cosmes.ts @@ -0,0 +1,36 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file svc/v1/tx.proto (package svc.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgRegisterService, MsgRegisterServiceResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "svc.v1.Msg"; + +/** + * UpdateParams defines a governance operation for updating the parameters. + * + * Since: cosmos-sdk 0.47 + * + * @generated from rpc svc.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * RegisterService initializes a Service with a given permission scope and + * URI. The domain must have a valid TXT record containing the public key. + * + * @generated from rpc svc.v1.Msg.RegisterService + */ +export const MsgRegisterServiceService = { + typeName: TYPE_NAME, + method: "RegisterService", + Request: MsgRegisterService, + Response: MsgRegisterServiceResponse, +} as const; + diff --git a/libs/es-client/src/protobufs/svc/v1/tx_pb.ts b/libs/es-client/src/protobufs/svc/v1/tx_pb.ts new file mode 100644 index 0000000..2bf6118 --- /dev/null +++ b/libs/es-client/src/protobufs/svc/v1/tx_pb.ts @@ -0,0 +1,193 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file svc/v1/tx.proto (package svc.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, Service } from "./genesis_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message svc.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 parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: svc.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.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. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message svc.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 = "svc.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); + } +} + +/** + * MsgRegisterService is the message type for the RegisterService RPC. + * + * @generated from message svc.v1.MsgRegisterService + */ +export class MsgRegisterService extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string controller = 1; + */ + controller = ""; + + /** + * origin is the origin of the request in wildcard form. Requires valid TXT + * record in DNS. + * + * @generated from field: svc.v1.Service service = 2; + */ + service?: Service; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.MsgRegisterService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service", kind: "message", T: Service }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterService { + return new MsgRegisterService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterService { + return new MsgRegisterService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterService { + return new MsgRegisterService().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterService | PlainMessage | undefined, b: MsgRegisterService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterService, a, b); + } +} + +/** + * MsgRegisterServiceResponse is the response type for the RegisterService RPC. + * + * @generated from message svc.v1.MsgRegisterServiceResponse + */ +export class MsgRegisterServiceResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + /** + * @generated from field: string did = 2; + */ + did = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "svc.v1.MsgRegisterServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterServiceResponse { + return new MsgRegisterServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterServiceResponse { + return new MsgRegisterServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterServiceResponse { + return new MsgRegisterServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterServiceResponse | PlainMessage | undefined, b: MsgRegisterServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterServiceResponse, a, b); + } +} +