diff --git a/packages/proto-signing/package.json b/packages/proto-signing/package.json index 9913ec5a..3e22adc5 100644 --- a/packages/proto-signing/package.json +++ b/packages/proto-signing/package.json @@ -42,7 +42,7 @@ "coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet", "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js", "preget-proto": "rm -rf proto", - "get-proto": "REF=v0.40.0-rc0 ./scripts/get-proto.sh", + "get-proto": "REF=v0.40.0-rc2 ./scripts/get-proto.sh", "predefine-proto": "./scripts/predefine-proto.sh", "define-proto": "./scripts/define-proto.sh", "postdefine-proto": "prettier --write \"src/codec/generated/codecimpl.*\"" diff --git a/packages/proto-signing/src/codec/generated/codecimpl.d.ts b/packages/proto-signing/src/codec/generated/codecimpl.d.ts index c4b6cc01..1a47f92a 100644 --- a/packages/proto-signing/src/codec/generated/codecimpl.d.ts +++ b/packages/proto-signing/src/codec/generated/codecimpl.d.ts @@ -360,6 +360,85 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.Metadata; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSendResponse + */ + public send( + request: cosmos.bank.v1beta1.IMsgSend, + callback: cosmos.bank.v1beta1.Msg.SendCallback, + ): void; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @returns Promise + */ + public send(request: cosmos.bank.v1beta1.IMsgSend): Promise; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgMultiSendResponse + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + callback: cosmos.bank.v1beta1.Msg.MultiSendCallback, + ): void; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @returns Promise + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#send}. + * @param error Error, if any + * @param [response] MsgSendResponse + */ + type SendCallback = (error: Error | null, response?: cosmos.bank.v1beta1.MsgSendResponse) => void; + + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#multiSend}. + * @param error Error, if any + * @param [response] MsgMultiSendResponse + */ + type MultiSendCallback = ( + error: Error | null, + response?: cosmos.bank.v1beta1.MsgMultiSendResponse, + ) => void; + } + /** Properties of a MsgSend. */ interface IMsgSend { /** MsgSend fromAddress */ @@ -415,6 +494,48 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgSend; } + /** Properties of a MsgSendResponse. */ + interface IMsgSendResponse {} + + /** Represents a MsgSendResponse. */ + class MsgSendResponse implements IMsgSendResponse { + /** + * Constructs a new MsgSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgSendResponse); + + /** + * Creates a new MsgSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgSendResponse, + ): cosmos.bank.v1beta1.MsgSendResponse; + + /** + * Encodes the specified MsgSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgSendResponse.verify|verify} messages. + * @param m MsgSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.v1beta1.IMsgSendResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgSendResponse; + } + /** Properties of a MsgMultiSend. */ interface IMsgMultiSend { /** MsgMultiSend inputs */ @@ -465,6 +586,51 @@ export namespace cosmos { */ public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgMultiSend; } + + /** Properties of a MsgMultiSendResponse. */ + interface IMsgMultiSendResponse {} + + /** Represents a MsgMultiSendResponse. */ + class MsgMultiSendResponse implements IMsgMultiSendResponse { + /** + * Constructs a new MsgMultiSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgMultiSendResponse); + + /** + * Creates a new MsgMultiSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMultiSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgMultiSendResponse, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + + /** + * Encodes the specified MsgMultiSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgMultiSendResponse.verify|verify} messages. + * @param m MsgMultiSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IMsgMultiSendResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMultiSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMultiSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + } } } diff --git a/packages/proto-signing/src/codec/generated/codecimpl.js b/packages/proto-signing/src/codec/generated/codecimpl.js index 5bc482ea..c0d76af9 100644 --- a/packages/proto-signing/src/codec/generated/codecimpl.js +++ b/packages/proto-signing/src/codec/generated/codecimpl.js @@ -327,6 +327,42 @@ exports.cosmos = $root.cosmos = (() => { }; return Metadata; })(); + v1beta1.Msg = (function () { + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + Msg.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Msg.prototype.send = function send(request, callback) { + return this.rpcCall( + send, + $root.cosmos.bank.v1beta1.MsgSend, + $root.cosmos.bank.v1beta1.MsgSendResponse, + request, + callback, + ); + }), + "name", + { value: "Send" }, + ); + Object.defineProperty( + (Msg.prototype.multiSend = function multiSend(request, callback) { + return this.rpcCall( + multiSend, + $root.cosmos.bank.v1beta1.MsgMultiSend, + $root.cosmos.bank.v1beta1.MsgMultiSendResponse, + request, + callback, + ); + }), + "name", + { value: "MultiSend" }, + ); + return Msg; + })(); v1beta1.MsgSend = (function () { function MsgSend(p) { this.amount = []; @@ -378,6 +414,35 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgSend; })(); + v1beta1.MsgSendResponse = (function () { + function MsgSendResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgSendResponse.create = function create(properties) { + return new MsgSendResponse(properties); + }; + MsgSendResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgSendResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.v1beta1.MsgSendResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgSendResponse; + })(); v1beta1.MsgMultiSend = (function () { function MsgMultiSend(p) { this.inputs = []; @@ -427,6 +492,35 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgMultiSend; })(); + v1beta1.MsgMultiSendResponse = (function () { + function MsgMultiSendResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgMultiSendResponse.create = function create(properties) { + return new MsgMultiSendResponse(properties); + }; + MsgMultiSendResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgMultiSendResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.v1beta1.MsgMultiSendResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgMultiSendResponse; + })(); return v1beta1; })(); return bank; diff --git a/packages/proto-signing/types/codec/generated/codecimpl.d.ts b/packages/proto-signing/types/codec/generated/codecimpl.d.ts index c4b6cc01..1a47f92a 100644 --- a/packages/proto-signing/types/codec/generated/codecimpl.d.ts +++ b/packages/proto-signing/types/codec/generated/codecimpl.d.ts @@ -360,6 +360,85 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.Metadata; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSendResponse + */ + public send( + request: cosmos.bank.v1beta1.IMsgSend, + callback: cosmos.bank.v1beta1.Msg.SendCallback, + ): void; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @returns Promise + */ + public send(request: cosmos.bank.v1beta1.IMsgSend): Promise; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgMultiSendResponse + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + callback: cosmos.bank.v1beta1.Msg.MultiSendCallback, + ): void; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @returns Promise + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#send}. + * @param error Error, if any + * @param [response] MsgSendResponse + */ + type SendCallback = (error: Error | null, response?: cosmos.bank.v1beta1.MsgSendResponse) => void; + + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#multiSend}. + * @param error Error, if any + * @param [response] MsgMultiSendResponse + */ + type MultiSendCallback = ( + error: Error | null, + response?: cosmos.bank.v1beta1.MsgMultiSendResponse, + ) => void; + } + /** Properties of a MsgSend. */ interface IMsgSend { /** MsgSend fromAddress */ @@ -415,6 +494,48 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgSend; } + /** Properties of a MsgSendResponse. */ + interface IMsgSendResponse {} + + /** Represents a MsgSendResponse. */ + class MsgSendResponse implements IMsgSendResponse { + /** + * Constructs a new MsgSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgSendResponse); + + /** + * Creates a new MsgSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgSendResponse, + ): cosmos.bank.v1beta1.MsgSendResponse; + + /** + * Encodes the specified MsgSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgSendResponse.verify|verify} messages. + * @param m MsgSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.v1beta1.IMsgSendResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgSendResponse; + } + /** Properties of a MsgMultiSend. */ interface IMsgMultiSend { /** MsgMultiSend inputs */ @@ -465,6 +586,51 @@ export namespace cosmos { */ public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgMultiSend; } + + /** Properties of a MsgMultiSendResponse. */ + interface IMsgMultiSendResponse {} + + /** Represents a MsgMultiSendResponse. */ + class MsgMultiSendResponse implements IMsgMultiSendResponse { + /** + * Constructs a new MsgMultiSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgMultiSendResponse); + + /** + * Creates a new MsgMultiSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMultiSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgMultiSendResponse, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + + /** + * Encodes the specified MsgMultiSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgMultiSendResponse.verify|verify} messages. + * @param m MsgMultiSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IMsgMultiSendResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMultiSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMultiSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + } } } diff --git a/packages/stargate/package.json b/packages/stargate/package.json index f721b74b..85f4d061 100644 --- a/packages/stargate/package.json +++ b/packages/stargate/package.json @@ -41,7 +41,7 @@ "coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet", "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js", "preget-proto": "rm -rf proto", - "get-proto": "REF=v0.40.0-rc0 ./scripts/get-proto.sh", + "get-proto": "REF=v0.40.0-rc2 ./scripts/get-proto.sh", "predefine-proto": "./scripts/predefine-proto.sh", "define-proto": "./scripts/define-proto.sh", "postdefine-proto": "prettier --write \"src/codec/generated/codecimpl.*\"" diff --git a/packages/stargate/src/codec/generated/codecimpl.d.ts b/packages/stargate/src/codec/generated/codecimpl.d.ts index b72fc457..b4c9723d 100644 --- a/packages/stargate/src/codec/generated/codecimpl.d.ts +++ b/packages/stargate/src/codec/generated/codecimpl.d.ts @@ -1520,6 +1520,85 @@ export namespace cosmos { ): cosmos.bank.v1beta1.QueryParamsResponse; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSendResponse + */ + public send( + request: cosmos.bank.v1beta1.IMsgSend, + callback: cosmos.bank.v1beta1.Msg.SendCallback, + ): void; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @returns Promise + */ + public send(request: cosmos.bank.v1beta1.IMsgSend): Promise; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgMultiSendResponse + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + callback: cosmos.bank.v1beta1.Msg.MultiSendCallback, + ): void; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @returns Promise + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#send}. + * @param error Error, if any + * @param [response] MsgSendResponse + */ + type SendCallback = (error: Error | null, response?: cosmos.bank.v1beta1.MsgSendResponse) => void; + + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#multiSend}. + * @param error Error, if any + * @param [response] MsgMultiSendResponse + */ + type MultiSendCallback = ( + error: Error | null, + response?: cosmos.bank.v1beta1.MsgMultiSendResponse, + ) => void; + } + /** Properties of a MsgSend. */ interface IMsgSend { /** MsgSend fromAddress */ @@ -1575,6 +1654,48 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgSend; } + /** Properties of a MsgSendResponse. */ + interface IMsgSendResponse {} + + /** Represents a MsgSendResponse. */ + class MsgSendResponse implements IMsgSendResponse { + /** + * Constructs a new MsgSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgSendResponse); + + /** + * Creates a new MsgSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgSendResponse, + ): cosmos.bank.v1beta1.MsgSendResponse; + + /** + * Encodes the specified MsgSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgSendResponse.verify|verify} messages. + * @param m MsgSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.v1beta1.IMsgSendResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgSendResponse; + } + /** Properties of a MsgMultiSend. */ interface IMsgMultiSend { /** MsgMultiSend inputs */ @@ -1625,6 +1746,51 @@ export namespace cosmos { */ public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgMultiSend; } + + /** Properties of a MsgMultiSendResponse. */ + interface IMsgMultiSendResponse {} + + /** Represents a MsgMultiSendResponse. */ + class MsgMultiSendResponse implements IMsgMultiSendResponse { + /** + * Constructs a new MsgMultiSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgMultiSendResponse); + + /** + * Creates a new MsgMultiSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMultiSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgMultiSendResponse, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + + /** + * Encodes the specified MsgMultiSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgMultiSendResponse.verify|verify} messages. + * @param m MsgMultiSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IMsgMultiSendResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMultiSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMultiSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + } } } @@ -2409,13 +2575,13 @@ export namespace cosmos { operatorAddress?: string | null; /** Validator consensusPubkey */ - consensusPubkey?: string | null; + consensusPubkey?: google.protobuf.IAny | null; /** Validator jailed */ jailed?: boolean | null; /** Validator status */ - status?: number | null; + status?: cosmos.staking.v1beta1.BondStatus | null; /** Validator tokens */ tokens?: string | null; @@ -2451,13 +2617,13 @@ export namespace cosmos { public operatorAddress: string; /** Validator consensusPubkey. */ - public consensusPubkey: string; + public consensusPubkey?: google.protobuf.IAny | null; /** Validator jailed. */ public jailed: boolean; /** Validator status. */ - public status: number; + public status: cosmos.staking.v1beta1.BondStatus; /** Validator tokens. */ public tokens: string; @@ -2508,6 +2674,14 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.staking.v1beta1.Validator; } + /** BondStatus enum. */ + enum BondStatus { + BOND_STATUS_UNSPECIFIED = 0, + BOND_STATUS_UNBONDED = 1, + BOND_STATUS_UNBONDING = 2, + BOND_STATUS_BONDED = 3, + } + /** Properties of a ValAddresses. */ interface IValAddresses { /** ValAddresses addresses */ @@ -3364,6 +3538,177 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.staking.v1beta1.Pool; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls CreateValidator. + * @param request MsgCreateValidator message or plain object + * @param callback Node-style callback called with the error, if any, and MsgCreateValidatorResponse + */ + public createValidator( + request: cosmos.staking.v1beta1.IMsgCreateValidator, + callback: cosmos.staking.v1beta1.Msg.CreateValidatorCallback, + ): void; + + /** + * Calls CreateValidator. + * @param request MsgCreateValidator message or plain object + * @returns Promise + */ + public createValidator( + request: cosmos.staking.v1beta1.IMsgCreateValidator, + ): Promise; + + /** + * Calls EditValidator. + * @param request MsgEditValidator message or plain object + * @param callback Node-style callback called with the error, if any, and MsgEditValidatorResponse + */ + public editValidator( + request: cosmos.staking.v1beta1.IMsgEditValidator, + callback: cosmos.staking.v1beta1.Msg.EditValidatorCallback, + ): void; + + /** + * Calls EditValidator. + * @param request MsgEditValidator message or plain object + * @returns Promise + */ + public editValidator( + request: cosmos.staking.v1beta1.IMsgEditValidator, + ): Promise; + + /** + * Calls Delegate. + * @param request MsgDelegate message or plain object + * @param callback Node-style callback called with the error, if any, and MsgDelegateResponse + */ + public delegate( + request: cosmos.staking.v1beta1.IMsgDelegate, + callback: cosmos.staking.v1beta1.Msg.DelegateCallback, + ): void; + + /** + * Calls Delegate. + * @param request MsgDelegate message or plain object + * @returns Promise + */ + public delegate( + request: cosmos.staking.v1beta1.IMsgDelegate, + ): Promise; + + /** + * Calls BeginRedelegate. + * @param request MsgBeginRedelegate message or plain object + * @param callback Node-style callback called with the error, if any, and MsgBeginRedelegateResponse + */ + public beginRedelegate( + request: cosmos.staking.v1beta1.IMsgBeginRedelegate, + callback: cosmos.staking.v1beta1.Msg.BeginRedelegateCallback, + ): void; + + /** + * Calls BeginRedelegate. + * @param request MsgBeginRedelegate message or plain object + * @returns Promise + */ + public beginRedelegate( + request: cosmos.staking.v1beta1.IMsgBeginRedelegate, + ): Promise; + + /** + * Calls Undelegate. + * @param request MsgUndelegate message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUndelegateResponse + */ + public undelegate( + request: cosmos.staking.v1beta1.IMsgUndelegate, + callback: cosmos.staking.v1beta1.Msg.UndelegateCallback, + ): void; + + /** + * Calls Undelegate. + * @param request MsgUndelegate message or plain object + * @returns Promise + */ + public undelegate( + request: cosmos.staking.v1beta1.IMsgUndelegate, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#createValidator}. + * @param error Error, if any + * @param [response] MsgCreateValidatorResponse + */ + type CreateValidatorCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgCreateValidatorResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#editValidator}. + * @param error Error, if any + * @param [response] MsgEditValidatorResponse + */ + type EditValidatorCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgEditValidatorResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#delegate}. + * @param error Error, if any + * @param [response] MsgDelegateResponse + */ + type DelegateCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgDelegateResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#beginRedelegate}. + * @param error Error, if any + * @param [response] MsgBeginRedelegateResponse + */ + type BeginRedelegateCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgBeginRedelegateResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#undelegate}. + * @param error Error, if any + * @param [response] MsgUndelegateResponse + */ + type UndelegateCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgUndelegateResponse, + ) => void; + } + /** Properties of a MsgCreateValidator. */ interface IMsgCreateValidator { /** MsgCreateValidator description */ @@ -3382,7 +3727,7 @@ export namespace cosmos { validatorAddress?: string | null; /** MsgCreateValidator pubkey */ - pubkey?: string | null; + pubkey?: google.protobuf.IAny | null; /** MsgCreateValidator value */ value?: cosmos.base.v1beta1.ICoin | null; @@ -3412,7 +3757,7 @@ export namespace cosmos { public validatorAddress: string; /** MsgCreateValidator pubkey. */ - public pubkey: string; + public pubkey?: google.protobuf.IAny | null; /** MsgCreateValidator value. */ public value?: cosmos.base.v1beta1.ICoin | null; @@ -3451,6 +3796,51 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgCreateValidator; } + /** Properties of a MsgCreateValidatorResponse. */ + interface IMsgCreateValidatorResponse {} + + /** Represents a MsgCreateValidatorResponse. */ + class MsgCreateValidatorResponse implements IMsgCreateValidatorResponse { + /** + * Constructs a new MsgCreateValidatorResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgCreateValidatorResponse); + + /** + * Creates a new MsgCreateValidatorResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateValidatorResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgCreateValidatorResponse, + ): cosmos.staking.v1beta1.MsgCreateValidatorResponse; + + /** + * Encodes the specified MsgCreateValidatorResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgCreateValidatorResponse.verify|verify} messages. + * @param m MsgCreateValidatorResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgCreateValidatorResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateValidatorResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgCreateValidatorResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgCreateValidatorResponse; + } + /** Properties of a MsgEditValidator. */ interface IMsgEditValidator { /** MsgEditValidator description */ @@ -3520,6 +3910,51 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgEditValidator; } + /** Properties of a MsgEditValidatorResponse. */ + interface IMsgEditValidatorResponse {} + + /** Represents a MsgEditValidatorResponse. */ + class MsgEditValidatorResponse implements IMsgEditValidatorResponse { + /** + * Constructs a new MsgEditValidatorResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgEditValidatorResponse); + + /** + * Creates a new MsgEditValidatorResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgEditValidatorResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgEditValidatorResponse, + ): cosmos.staking.v1beta1.MsgEditValidatorResponse; + + /** + * Encodes the specified MsgEditValidatorResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgEditValidatorResponse.verify|verify} messages. + * @param m MsgEditValidatorResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgEditValidatorResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgEditValidatorResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgEditValidatorResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgEditValidatorResponse; + } + /** Properties of a MsgDelegate. */ interface IMsgDelegate { /** MsgDelegate delegatorAddress */ @@ -3580,6 +4015,51 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgDelegate; } + /** Properties of a MsgDelegateResponse. */ + interface IMsgDelegateResponse {} + + /** Represents a MsgDelegateResponse. */ + class MsgDelegateResponse implements IMsgDelegateResponse { + /** + * Constructs a new MsgDelegateResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgDelegateResponse); + + /** + * Creates a new MsgDelegateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgDelegateResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgDelegateResponse, + ): cosmos.staking.v1beta1.MsgDelegateResponse; + + /** + * Encodes the specified MsgDelegateResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgDelegateResponse.verify|verify} messages. + * @param m MsgDelegateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgDelegateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgDelegateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgDelegateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgDelegateResponse; + } + /** Properties of a MsgBeginRedelegate. */ interface IMsgBeginRedelegate { /** MsgBeginRedelegate delegatorAddress */ @@ -3649,6 +4129,57 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgBeginRedelegate; } + /** Properties of a MsgBeginRedelegateResponse. */ + interface IMsgBeginRedelegateResponse { + /** MsgBeginRedelegateResponse completionTime */ + completionTime?: google.protobuf.ITimestamp | null; + } + + /** Represents a MsgBeginRedelegateResponse. */ + class MsgBeginRedelegateResponse implements IMsgBeginRedelegateResponse { + /** + * Constructs a new MsgBeginRedelegateResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgBeginRedelegateResponse); + + /** MsgBeginRedelegateResponse completionTime. */ + public completionTime?: google.protobuf.ITimestamp | null; + + /** + * Creates a new MsgBeginRedelegateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgBeginRedelegateResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgBeginRedelegateResponse, + ): cosmos.staking.v1beta1.MsgBeginRedelegateResponse; + + /** + * Encodes the specified MsgBeginRedelegateResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgBeginRedelegateResponse.verify|verify} messages. + * @param m MsgBeginRedelegateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgBeginRedelegateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgBeginRedelegateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgBeginRedelegateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgBeginRedelegateResponse; + } + /** Properties of a MsgUndelegate. */ interface IMsgUndelegate { /** MsgUndelegate delegatorAddress */ @@ -3711,6 +4242,57 @@ export namespace cosmos { l?: number, ): cosmos.staking.v1beta1.MsgUndelegate; } + + /** Properties of a MsgUndelegateResponse. */ + interface IMsgUndelegateResponse { + /** MsgUndelegateResponse completionTime */ + completionTime?: google.protobuf.ITimestamp | null; + } + + /** Represents a MsgUndelegateResponse. */ + class MsgUndelegateResponse implements IMsgUndelegateResponse { + /** + * Constructs a new MsgUndelegateResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgUndelegateResponse); + + /** MsgUndelegateResponse completionTime. */ + public completionTime?: google.protobuf.ITimestamp | null; + + /** + * Creates a new MsgUndelegateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUndelegateResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgUndelegateResponse, + ): cosmos.staking.v1beta1.MsgUndelegateResponse; + + /** + * Encodes the specified MsgUndelegateResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgUndelegateResponse.verify|verify} messages. + * @param m MsgUndelegateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgUndelegateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUndelegateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUndelegateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgUndelegateResponse; + } } } @@ -6378,55 +6960,6 @@ export namespace google { } } - /** Properties of a Timestamp. */ - interface ITimestamp { - /** Timestamp seconds */ - seconds?: Long | null; - - /** Timestamp nanos */ - nanos?: number | null; - } - - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { - /** - * Constructs a new Timestamp. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: Long; - - /** Timestamp nanos. */ - public nanos: number; - - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param m Timestamp message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; - } - /** Properties of a Duration. */ interface IDuration { /** Duration seconds */ @@ -6475,6 +7008,55 @@ export namespace google { */ public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Duration; } + + /** Properties of a Timestamp. */ + interface ITimestamp { + /** Timestamp seconds */ + seconds?: Long | null; + + /** Timestamp nanos */ + nanos?: number | null; + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + /** + * Constructs a new Timestamp. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param m Timestamp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; + } } /** Namespace api. */ @@ -6675,757 +7257,6 @@ export namespace ibc { namespace channel { /** Namespace v1. */ namespace v1 { - /** Properties of a MsgChannelOpenInit. */ - interface IMsgChannelOpenInit { - /** MsgChannelOpenInit portId */ - portId?: string | null; - - /** MsgChannelOpenInit channelId */ - channelId?: string | null; - - /** MsgChannelOpenInit channel */ - channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenInit signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenInit. */ - class MsgChannelOpenInit implements IMsgChannelOpenInit { - /** - * Constructs a new MsgChannelOpenInit. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenInit); - - /** MsgChannelOpenInit portId. */ - public portId: string; - - /** MsgChannelOpenInit channelId. */ - public channelId: string; - - /** MsgChannelOpenInit channel. */ - public channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenInit signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenInit instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenInit instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenInit, - ): ibc.core.channel.v1.MsgChannelOpenInit; - - /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. - * @param m MsgChannelOpenInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenInit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenInit; - } - - /** Properties of a MsgChannelOpenTry. */ - interface IMsgChannelOpenTry { - /** MsgChannelOpenTry portId */ - portId?: string | null; - - /** MsgChannelOpenTry desiredChannelId */ - desiredChannelId?: string | null; - - /** MsgChannelOpenTry counterpartyChosenChannelId */ - counterpartyChosenChannelId?: string | null; - - /** MsgChannelOpenTry channel */ - channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion */ - counterpartyVersion?: string | null; - - /** MsgChannelOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgChannelOpenTry proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenTry signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenTry. */ - class MsgChannelOpenTry implements IMsgChannelOpenTry { - /** - * Constructs a new MsgChannelOpenTry. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenTry); - - /** MsgChannelOpenTry portId. */ - public portId: string; - - /** MsgChannelOpenTry desiredChannelId. */ - public desiredChannelId: string; - - /** MsgChannelOpenTry counterpartyChosenChannelId. */ - public counterpartyChosenChannelId: string; - - /** MsgChannelOpenTry channel. */ - public channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion. */ - public counterpartyVersion: string; - - /** MsgChannelOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelOpenTry proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenTry signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenTry instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenTry instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenTry, - ): ibc.core.channel.v1.MsgChannelOpenTry; - - /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. - * @param m MsgChannelOpenTry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenTry, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenTry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenTry; - } - - /** Properties of a MsgChannelOpenAck. */ - interface IMsgChannelOpenAck { - /** MsgChannelOpenAck portId */ - portId?: string | null; - - /** MsgChannelOpenAck channelId */ - channelId?: string | null; - - /** MsgChannelOpenAck counterpartyChannelId */ - counterpartyChannelId?: string | null; - - /** MsgChannelOpenAck counterpartyVersion */ - counterpartyVersion?: string | null; - - /** MsgChannelOpenAck proofTry */ - proofTry?: Uint8Array | null; - - /** MsgChannelOpenAck proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenAck signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenAck. */ - class MsgChannelOpenAck implements IMsgChannelOpenAck { - /** - * Constructs a new MsgChannelOpenAck. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenAck); - - /** MsgChannelOpenAck portId. */ - public portId: string; - - /** MsgChannelOpenAck channelId. */ - public channelId: string; - - /** MsgChannelOpenAck counterpartyChannelId. */ - public counterpartyChannelId: string; - - /** MsgChannelOpenAck counterpartyVersion. */ - public counterpartyVersion: string; - - /** MsgChannelOpenAck proofTry. */ - public proofTry: Uint8Array; - - /** MsgChannelOpenAck proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenAck signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenAck instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenAck instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenAck, - ): ibc.core.channel.v1.MsgChannelOpenAck; - - /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. - * @param m MsgChannelOpenAck message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenAck, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenAck - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenAck; - } - - /** Properties of a MsgChannelOpenConfirm. */ - interface IMsgChannelOpenConfirm { - /** MsgChannelOpenConfirm portId */ - portId?: string | null; - - /** MsgChannelOpenConfirm channelId */ - channelId?: string | null; - - /** MsgChannelOpenConfirm proofAck */ - proofAck?: Uint8Array | null; - - /** MsgChannelOpenConfirm proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenConfirm signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenConfirm. */ - class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { - /** - * Constructs a new MsgChannelOpenConfirm. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenConfirm); - - /** MsgChannelOpenConfirm portId. */ - public portId: string; - - /** MsgChannelOpenConfirm channelId. */ - public channelId: string; - - /** MsgChannelOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgChannelOpenConfirm proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenConfirm signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenConfirm instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenConfirm instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenConfirm, - ): ibc.core.channel.v1.MsgChannelOpenConfirm; - - /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. - * @param m MsgChannelOpenConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenConfirm, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenConfirm; - } - - /** Properties of a MsgChannelCloseInit. */ - interface IMsgChannelCloseInit { - /** MsgChannelCloseInit portId */ - portId?: string | null; - - /** MsgChannelCloseInit channelId */ - channelId?: string | null; - - /** MsgChannelCloseInit signer */ - signer?: string | null; - } - - /** Represents a MsgChannelCloseInit. */ - class MsgChannelCloseInit implements IMsgChannelCloseInit { - /** - * Constructs a new MsgChannelCloseInit. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelCloseInit); - - /** MsgChannelCloseInit portId. */ - public portId: string; - - /** MsgChannelCloseInit channelId. */ - public channelId: string; - - /** MsgChannelCloseInit signer. */ - public signer: string; - - /** - * Creates a new MsgChannelCloseInit instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelCloseInit instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelCloseInit, - ): ibc.core.channel.v1.MsgChannelCloseInit; - - /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. - * @param m MsgChannelCloseInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelCloseInit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelCloseInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelCloseInit; - } - - /** Properties of a MsgChannelCloseConfirm. */ - interface IMsgChannelCloseConfirm { - /** MsgChannelCloseConfirm portId */ - portId?: string | null; - - /** MsgChannelCloseConfirm channelId */ - channelId?: string | null; - - /** MsgChannelCloseConfirm proofInit */ - proofInit?: Uint8Array | null; - - /** MsgChannelCloseConfirm proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelCloseConfirm signer */ - signer?: string | null; - } - - /** Represents a MsgChannelCloseConfirm. */ - class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { - /** - * Constructs a new MsgChannelCloseConfirm. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelCloseConfirm); - - /** MsgChannelCloseConfirm portId. */ - public portId: string; - - /** MsgChannelCloseConfirm channelId. */ - public channelId: string; - - /** MsgChannelCloseConfirm proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelCloseConfirm proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelCloseConfirm signer. */ - public signer: string; - - /** - * Creates a new MsgChannelCloseConfirm instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelCloseConfirm instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelCloseConfirm, - ): ibc.core.channel.v1.MsgChannelCloseConfirm; - - /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. - * @param m MsgChannelCloseConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelCloseConfirm, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelCloseConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelCloseConfirm; - } - - /** Properties of a MsgRecvPacket. */ - interface IMsgRecvPacket { - /** MsgRecvPacket packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgRecvPacket proof */ - proof?: Uint8Array | null; - - /** MsgRecvPacket proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgRecvPacket signer */ - signer?: string | null; - } - - /** Represents a MsgRecvPacket. */ - class MsgRecvPacket implements IMsgRecvPacket { - /** - * Constructs a new MsgRecvPacket. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgRecvPacket); - - /** MsgRecvPacket packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgRecvPacket proof. */ - public proof: Uint8Array; - - /** MsgRecvPacket proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgRecvPacket signer. */ - public signer: string; - - /** - * Creates a new MsgRecvPacket instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgRecvPacket instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgRecvPacket, - ): ibc.core.channel.v1.MsgRecvPacket; - - /** - * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. - * @param m MsgRecvPacket message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.core.channel.v1.IMsgRecvPacket, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgRecvPacket message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgRecvPacket - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgRecvPacket; - } - - /** Properties of a MsgTimeout. */ - interface IMsgTimeout { - /** MsgTimeout packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeout proof */ - proof?: Uint8Array | null; - - /** MsgTimeout proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeout nextSequenceRecv */ - nextSequenceRecv?: Long | null; - - /** MsgTimeout signer */ - signer?: string | null; - } - - /** Represents a MsgTimeout. */ - class MsgTimeout implements IMsgTimeout { - /** - * Constructs a new MsgTimeout. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgTimeout); - - /** MsgTimeout packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeout proof. */ - public proof: Uint8Array; - - /** MsgTimeout proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeout nextSequenceRecv. */ - public nextSequenceRecv: Long; - - /** MsgTimeout signer. */ - public signer: string; - - /** - * Creates a new MsgTimeout instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgTimeout instance - */ - public static create(properties?: ibc.core.channel.v1.IMsgTimeout): ibc.core.channel.v1.MsgTimeout; - - /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @param m MsgTimeout message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.core.channel.v1.IMsgTimeout, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgTimeout message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgTimeout - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.channel.v1.MsgTimeout; - } - - /** Properties of a MsgTimeoutOnClose. */ - interface IMsgTimeoutOnClose { - /** MsgTimeoutOnClose packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeoutOnClose proof */ - proof?: Uint8Array | null; - - /** MsgTimeoutOnClose proofClose */ - proofClose?: Uint8Array | null; - - /** MsgTimeoutOnClose proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeoutOnClose nextSequenceRecv */ - nextSequenceRecv?: Long | null; - - /** MsgTimeoutOnClose signer */ - signer?: string | null; - } - - /** Represents a MsgTimeoutOnClose. */ - class MsgTimeoutOnClose implements IMsgTimeoutOnClose { - /** - * Constructs a new MsgTimeoutOnClose. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgTimeoutOnClose); - - /** MsgTimeoutOnClose packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeoutOnClose proof. */ - public proof: Uint8Array; - - /** MsgTimeoutOnClose proofClose. */ - public proofClose: Uint8Array; - - /** MsgTimeoutOnClose proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeoutOnClose nextSequenceRecv. */ - public nextSequenceRecv: Long; - - /** MsgTimeoutOnClose signer. */ - public signer: string; - - /** - * Creates a new MsgTimeoutOnClose instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgTimeoutOnClose instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgTimeoutOnClose, - ): ibc.core.channel.v1.MsgTimeoutOnClose; - - /** - * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. - * @param m MsgTimeoutOnClose message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgTimeoutOnClose, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgTimeoutOnClose - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgTimeoutOnClose; - } - - /** Properties of a MsgAcknowledgement. */ - interface IMsgAcknowledgement { - /** MsgAcknowledgement packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgAcknowledgement acknowledgement */ - acknowledgement?: Uint8Array | null; - - /** MsgAcknowledgement proof */ - proof?: Uint8Array | null; - - /** MsgAcknowledgement proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgAcknowledgement signer */ - signer?: string | null; - } - - /** Represents a MsgAcknowledgement. */ - class MsgAcknowledgement implements IMsgAcknowledgement { - /** - * Constructs a new MsgAcknowledgement. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgAcknowledgement); - - /** MsgAcknowledgement packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgAcknowledgement acknowledgement. */ - public acknowledgement: Uint8Array; - - /** MsgAcknowledgement proof. */ - public proof: Uint8Array; - - /** MsgAcknowledgement proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgAcknowledgement signer. */ - public signer: string; - - /** - * Creates a new MsgAcknowledgement instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgAcknowledgement instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgAcknowledgement, - ): ibc.core.channel.v1.MsgAcknowledgement; - - /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. - * @param m MsgAcknowledgement message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgAcknowledgement, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgAcknowledgement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgAcknowledgement; - } - /** Properties of a Channel. */ interface IChannel { /** Channel state */ @@ -7735,73 +7566,67 @@ export namespace ibc { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.channel.v1.Packet; } - /** Properties of a PacketAckCommitment. */ - interface IPacketAckCommitment { - /** PacketAckCommitment portId */ + /** Properties of a PacketState. */ + interface IPacketState { + /** PacketState portId */ portId?: string | null; - /** PacketAckCommitment channelId */ + /** PacketState channelId */ channelId?: string | null; - /** PacketAckCommitment sequence */ + /** PacketState sequence */ sequence?: Long | null; - /** PacketAckCommitment hash */ - hash?: Uint8Array | null; + /** PacketState data */ + data?: Uint8Array | null; } - /** Represents a PacketAckCommitment. */ - class PacketAckCommitment implements IPacketAckCommitment { + /** Represents a PacketState. */ + class PacketState implements IPacketState { /** - * Constructs a new PacketAckCommitment. + * Constructs a new PacketState. * @param [p] Properties to set */ - constructor(p?: ibc.core.channel.v1.IPacketAckCommitment); + constructor(p?: ibc.core.channel.v1.IPacketState); - /** PacketAckCommitment portId. */ + /** PacketState portId. */ public portId: string; - /** PacketAckCommitment channelId. */ + /** PacketState channelId. */ public channelId: string; - /** PacketAckCommitment sequence. */ + /** PacketState sequence. */ public sequence: Long; - /** PacketAckCommitment hash. */ - public hash: Uint8Array; + /** PacketState data. */ + public data: Uint8Array; /** - * Creates a new PacketAckCommitment instance using the specified properties. + * Creates a new PacketState instance using the specified properties. * @param [properties] Properties to set - * @returns PacketAckCommitment instance + * @returns PacketState instance */ public static create( - properties?: ibc.core.channel.v1.IPacketAckCommitment, - ): ibc.core.channel.v1.PacketAckCommitment; + properties?: ibc.core.channel.v1.IPacketState, + ): ibc.core.channel.v1.PacketState; /** - * Encodes the specified PacketAckCommitment message. Does not implicitly {@link ibc.core.channel.v1.PacketAckCommitment.verify|verify} messages. - * @param m PacketAckCommitment message or plain object to encode + * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * @param m PacketState message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode( - m: ibc.core.channel.v1.IPacketAckCommitment, - w?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: ibc.core.channel.v1.IPacketState, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketAckCommitment message from the specified reader or buffer. + * Decodes a PacketState message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns PacketAckCommitment + * @returns PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.PacketAckCommitment; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.channel.v1.PacketState; } /** Properties of an Acknowledgement. */ @@ -8020,6 +7845,25 @@ export namespace ibc { request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, ): Promise; + /** + * Calls PacketReceipt. + * @param request QueryPacketReceiptRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse + */ + public packetReceipt( + request: ibc.core.channel.v1.IQueryPacketReceiptRequest, + callback: ibc.core.channel.v1.Query.PacketReceiptCallback, + ): void; + + /** + * Calls PacketReceipt. + * @param request QueryPacketReceiptRequest message or plain object + * @returns Promise + */ + public packetReceipt( + request: ibc.core.channel.v1.IQueryPacketReceiptRequest, + ): Promise; + /** * Calls PacketAcknowledgement. * @param request QueryPacketAcknowledgementRequest message or plain object @@ -8039,6 +7883,25 @@ export namespace ibc { request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, ): Promise; + /** + * Calls PacketAcknowledgements. + * @param request QueryPacketAcknowledgementsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse + */ + public packetAcknowledgements( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + callback: ibc.core.channel.v1.Query.PacketAcknowledgementsCallback, + ): void; + + /** + * Calls PacketAcknowledgements. + * @param request QueryPacketAcknowledgementsRequest message or plain object + * @returns Promise + */ + public packetAcknowledgements( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + ): Promise; + /** * Calls UnreceivedPackets. * @param request QueryUnreceivedPacketsRequest message or plain object @@ -8059,23 +7922,23 @@ export namespace ibc { ): Promise; /** - * Calls UnrelayedAcks. - * @param request QueryUnrelayedAcksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUnrelayedAcksResponse + * Calls UnreceivedAcks. + * @param request QueryUnreceivedAcksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse */ - public unrelayedAcks( - request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, - callback: ibc.core.channel.v1.Query.UnrelayedAcksCallback, + public unreceivedAcks( + request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, + callback: ibc.core.channel.v1.Query.UnreceivedAcksCallback, ): void; /** - * Calls UnrelayedAcks. - * @param request QueryUnrelayedAcksRequest message or plain object + * Calls UnreceivedAcks. + * @param request QueryUnreceivedAcksRequest message or plain object * @returns Promise */ - public unrelayedAcks( - request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, - ): Promise; + public unreceivedAcks( + request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, + ): Promise; /** * Calls NextSequenceReceive. @@ -8168,6 +8031,16 @@ export namespace ibc { response?: ibc.core.channel.v1.QueryPacketCommitmentsResponse, ) => void; + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. + * @param error Error, if any + * @param [response] QueryPacketReceiptResponse + */ + type PacketReceiptCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketReceiptResponse, + ) => void; + /** * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. * @param error Error, if any @@ -8178,6 +8051,16 @@ export namespace ibc { response?: ibc.core.channel.v1.QueryPacketAcknowledgementResponse, ) => void; + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. + * @param error Error, if any + * @param [response] QueryPacketAcknowledgementsResponse + */ + type PacketAcknowledgementsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, + ) => void; + /** * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. * @param error Error, if any @@ -8189,13 +8072,13 @@ export namespace ibc { ) => void; /** - * Callback as used by {@link ibc.core.channel.v1.Query#unrelayedAcks}. + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. * @param error Error, if any - * @param [response] QueryUnrelayedAcksResponse + * @param [response] QueryUnreceivedAcksResponse */ - type UnrelayedAcksCallback = ( + type UnreceivedAcksCallback = ( error: Error | null, - response?: ibc.core.channel.v1.QueryUnrelayedAcksResponse, + response?: ibc.core.channel.v1.QueryUnreceivedAcksResponse, ) => void; /** @@ -8274,9 +8157,6 @@ export namespace ibc { /** QueryChannelResponse proof */ proof?: Uint8Array | null; - /** QueryChannelResponse proofPath */ - proofPath?: string | null; - /** QueryChannelResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8295,9 +8175,6 @@ export namespace ibc { /** QueryChannelResponse proof. */ public proof: Uint8Array; - /** QueryChannelResponse proofPath. */ - public proofPath: string; - /** QueryChannelResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -8634,9 +8511,6 @@ export namespace ibc { /** QueryChannelClientStateResponse proof */ proof?: Uint8Array | null; - /** QueryChannelClientStateResponse proofPath */ - proofPath?: string | null; - /** QueryChannelClientStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8655,9 +8529,6 @@ export namespace ibc { /** QueryChannelClientStateResponse proof. */ public proof: Uint8Array; - /** QueryChannelClientStateResponse proofPath. */ - public proofPath: string; - /** QueryChannelClientStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -8775,9 +8646,6 @@ export namespace ibc { /** QueryChannelConsensusStateResponse proof */ proof?: Uint8Array | null; - /** QueryChannelConsensusStateResponse proofPath */ - proofPath?: string | null; - /** QueryChannelConsensusStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8799,9 +8667,6 @@ export namespace ibc { /** QueryChannelConsensusStateResponse proof. */ public proof: Uint8Array; - /** QueryChannelConsensusStateResponse proofPath. */ - public proofPath: string; - /** QueryChannelConsensusStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -8910,9 +8775,6 @@ export namespace ibc { /** QueryPacketCommitmentResponse proof */ proof?: Uint8Array | null; - /** QueryPacketCommitmentResponse proofPath */ - proofPath?: string | null; - /** QueryPacketCommitmentResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8931,9 +8793,6 @@ export namespace ibc { /** QueryPacketCommitmentResponse proof. */ public proof: Uint8Array; - /** QueryPacketCommitmentResponse proofPath. */ - public proofPath: string; - /** QueryPacketCommitmentResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -9037,7 +8896,7 @@ export namespace ibc { /** Properties of a QueryPacketCommitmentsResponse. */ interface IQueryPacketCommitmentsResponse { /** QueryPacketCommitmentsResponse commitments */ - commitments?: ibc.core.channel.v1.IPacketAckCommitment[] | null; + commitments?: ibc.core.channel.v1.IPacketState[] | null; /** QueryPacketCommitmentsResponse pagination */ pagination?: cosmos.base.query.v1beta1.IPageResponse | null; @@ -9055,7 +8914,7 @@ export namespace ibc { constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse); /** QueryPacketCommitmentsResponse commitments. */ - public commitments: ibc.core.channel.v1.IPacketAckCommitment[]; + public commitments: ibc.core.channel.v1.IPacketState[]; /** QueryPacketCommitmentsResponse pagination. */ public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; @@ -9097,6 +8956,132 @@ export namespace ibc { ): ibc.core.channel.v1.QueryPacketCommitmentsResponse; } + /** Properties of a QueryPacketReceiptRequest. */ + interface IQueryPacketReceiptRequest { + /** QueryPacketReceiptRequest portId */ + portId?: string | null; + + /** QueryPacketReceiptRequest channelId */ + channelId?: string | null; + + /** QueryPacketReceiptRequest sequence */ + sequence?: Long | null; + } + + /** Represents a QueryPacketReceiptRequest. */ + class QueryPacketReceiptRequest implements IQueryPacketReceiptRequest { + /** + * Constructs a new QueryPacketReceiptRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketReceiptRequest); + + /** QueryPacketReceiptRequest portId. */ + public portId: string; + + /** QueryPacketReceiptRequest channelId. */ + public channelId: string; + + /** QueryPacketReceiptRequest sequence. */ + public sequence: Long; + + /** + * Creates a new QueryPacketReceiptRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketReceiptRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketReceiptRequest, + ): ibc.core.channel.v1.QueryPacketReceiptRequest; + + /** + * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. + * @param m QueryPacketReceiptRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketReceiptRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketReceiptRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketReceiptRequest; + } + + /** Properties of a QueryPacketReceiptResponse. */ + interface IQueryPacketReceiptResponse { + /** QueryPacketReceiptResponse received */ + received?: boolean | null; + + /** QueryPacketReceiptResponse proof */ + proof?: Uint8Array | null; + + /** QueryPacketReceiptResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketReceiptResponse. */ + class QueryPacketReceiptResponse implements IQueryPacketReceiptResponse { + /** + * Constructs a new QueryPacketReceiptResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketReceiptResponse); + + /** QueryPacketReceiptResponse received. */ + public received: boolean; + + /** QueryPacketReceiptResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketReceiptResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketReceiptResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketReceiptResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketReceiptResponse, + ): ibc.core.channel.v1.QueryPacketReceiptResponse; + + /** + * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. + * @param m QueryPacketReceiptResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketReceiptResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketReceiptResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketReceiptResponse; + } + /** Properties of a QueryPacketAcknowledgementRequest. */ interface IQueryPacketAcknowledgementRequest { /** QueryPacketAcknowledgementRequest portId */ @@ -9168,9 +9153,6 @@ export namespace ibc { /** QueryPacketAcknowledgementResponse proof */ proof?: Uint8Array | null; - /** QueryPacketAcknowledgementResponse proofPath */ - proofPath?: string | null; - /** QueryPacketAcknowledgementResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -9189,9 +9171,6 @@ export namespace ibc { /** QueryPacketAcknowledgementResponse proof. */ public proof: Uint8Array; - /** QueryPacketAcknowledgementResponse proofPath. */ - public proofPath: string; - /** QueryPacketAcknowledgementResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -9229,6 +9208,132 @@ export namespace ibc { ): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; } + /** Properties of a QueryPacketAcknowledgementsRequest. */ + interface IQueryPacketAcknowledgementsRequest { + /** QueryPacketAcknowledgementsRequest portId */ + portId?: string | null; + + /** QueryPacketAcknowledgementsRequest channelId */ + channelId?: string | null; + + /** QueryPacketAcknowledgementsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryPacketAcknowledgementsRequest. */ + class QueryPacketAcknowledgementsRequest implements IQueryPacketAcknowledgementsRequest { + /** + * Constructs a new QueryPacketAcknowledgementsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest); + + /** QueryPacketAcknowledgementsRequest portId. */ + public portId: string; + + /** QueryPacketAcknowledgementsRequest channelId. */ + public channelId: string; + + /** QueryPacketAcknowledgementsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryPacketAcknowledgementsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; + + /** + * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. + * @param m QueryPacketAcknowledgementsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; + } + + /** Properties of a QueryPacketAcknowledgementsResponse. */ + interface IQueryPacketAcknowledgementsResponse { + /** QueryPacketAcknowledgementsResponse acknowledgements */ + acknowledgements?: ibc.core.channel.v1.IPacketState[] | null; + + /** QueryPacketAcknowledgementsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketAcknowledgementsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketAcknowledgementsResponse. */ + class QueryPacketAcknowledgementsResponse implements IQueryPacketAcknowledgementsResponse { + /** + * Constructs a new QueryPacketAcknowledgementsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse); + + /** QueryPacketAcknowledgementsResponse acknowledgements. */ + public acknowledgements: ibc.core.channel.v1.IPacketState[]; + + /** QueryPacketAcknowledgementsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketAcknowledgementsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketAcknowledgementsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; + + /** + * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * @param m QueryPacketAcknowledgementsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; + } + /** Properties of a QueryUnreceivedPacketsRequest. */ interface IQueryUnreceivedPacketsRequest { /** QueryUnreceivedPacketsRequest portId */ @@ -9349,124 +9454,124 @@ export namespace ibc { ): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; } - /** Properties of a QueryUnrelayedAcksRequest. */ - interface IQueryUnrelayedAcksRequest { - /** QueryUnrelayedAcksRequest portId */ + /** Properties of a QueryUnreceivedAcksRequest. */ + interface IQueryUnreceivedAcksRequest { + /** QueryUnreceivedAcksRequest portId */ portId?: string | null; - /** QueryUnrelayedAcksRequest channelId */ + /** QueryUnreceivedAcksRequest channelId */ channelId?: string | null; - /** QueryUnrelayedAcksRequest packetCommitmentSequences */ - packetCommitmentSequences?: Long[] | null; + /** QueryUnreceivedAcksRequest packetAckSequences */ + packetAckSequences?: Long[] | null; } - /** Represents a QueryUnrelayedAcksRequest. */ - class QueryUnrelayedAcksRequest implements IQueryUnrelayedAcksRequest { + /** Represents a QueryUnreceivedAcksRequest. */ + class QueryUnreceivedAcksRequest implements IQueryUnreceivedAcksRequest { /** - * Constructs a new QueryUnrelayedAcksRequest. + * Constructs a new QueryUnreceivedAcksRequest. * @param [p] Properties to set */ - constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest); + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedAcksRequest); - /** QueryUnrelayedAcksRequest portId. */ + /** QueryUnreceivedAcksRequest portId. */ public portId: string; - /** QueryUnrelayedAcksRequest channelId. */ + /** QueryUnreceivedAcksRequest channelId. */ public channelId: string; - /** QueryUnrelayedAcksRequest packetCommitmentSequences. */ - public packetCommitmentSequences: Long[]; + /** QueryUnreceivedAcksRequest packetAckSequences. */ + public packetAckSequences: Long[]; /** - * Creates a new QueryUnrelayedAcksRequest instance using the specified properties. + * Creates a new QueryUnreceivedAcksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryUnrelayedAcksRequest instance + * @returns QueryUnreceivedAcksRequest instance */ public static create( - properties?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, - ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + properties?: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, + ): ibc.core.channel.v1.QueryUnreceivedAcksRequest; /** - * Encodes the specified QueryUnrelayedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksRequest.verify|verify} messages. - * @param m QueryUnrelayedAcksRequest message or plain object to encode + * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * @param m QueryUnreceivedAcksRequest message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode( - m: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + m: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, w?: $protobuf.Writer, ): $protobuf.Writer; /** - * Decodes a QueryUnrelayedAcksRequest message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns QueryUnrelayedAcksRequest + * @returns QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode( r: $protobuf.Reader | Uint8Array, l?: number, - ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + ): ibc.core.channel.v1.QueryUnreceivedAcksRequest; } - /** Properties of a QueryUnrelayedAcksResponse. */ - interface IQueryUnrelayedAcksResponse { - /** QueryUnrelayedAcksResponse sequences */ + /** Properties of a QueryUnreceivedAcksResponse. */ + interface IQueryUnreceivedAcksResponse { + /** QueryUnreceivedAcksResponse sequences */ sequences?: Long[] | null; - /** QueryUnrelayedAcksResponse height */ + /** QueryUnreceivedAcksResponse height */ height?: ibc.core.client.v1.IHeight | null; } - /** Represents a QueryUnrelayedAcksResponse. */ - class QueryUnrelayedAcksResponse implements IQueryUnrelayedAcksResponse { + /** Represents a QueryUnreceivedAcksResponse. */ + class QueryUnreceivedAcksResponse implements IQueryUnreceivedAcksResponse { /** - * Constructs a new QueryUnrelayedAcksResponse. + * Constructs a new QueryUnreceivedAcksResponse. * @param [p] Properties to set */ - constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse); + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedAcksResponse); - /** QueryUnrelayedAcksResponse sequences. */ + /** QueryUnreceivedAcksResponse sequences. */ public sequences: Long[]; - /** QueryUnrelayedAcksResponse height. */ + /** QueryUnreceivedAcksResponse height. */ public height?: ibc.core.client.v1.IHeight | null; /** - * Creates a new QueryUnrelayedAcksResponse instance using the specified properties. + * Creates a new QueryUnreceivedAcksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns QueryUnrelayedAcksResponse instance + * @returns QueryUnreceivedAcksResponse instance */ public static create( - properties?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, - ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + properties?: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, + ): ibc.core.channel.v1.QueryUnreceivedAcksResponse; /** - * Encodes the specified QueryUnrelayedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksResponse.verify|verify} messages. - * @param m QueryUnrelayedAcksResponse message or plain object to encode + * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * @param m QueryUnreceivedAcksResponse message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode( - m: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, + m: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, w?: $protobuf.Writer, ): $protobuf.Writer; /** - * Decodes a QueryUnrelayedAcksResponse message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns QueryUnrelayedAcksResponse + * @returns QueryUnreceivedAcksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode( r: $protobuf.Reader | Uint8Array, l?: number, - ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + ): ibc.core.channel.v1.QueryUnreceivedAcksResponse; } /** Properties of a QueryNextSequenceReceiveRequest. */ @@ -9534,9 +9639,6 @@ export namespace ibc { /** QueryNextSequenceReceiveResponse proof */ proof?: Uint8Array | null; - /** QueryNextSequenceReceiveResponse proofPath */ - proofPath?: string | null; - /** QueryNextSequenceReceiveResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -9555,9 +9657,6 @@ export namespace ibc { /** QueryNextSequenceReceiveResponse proof. */ public proof: Uint8Array; - /** QueryNextSequenceReceiveResponse proofPath. */ - public proofPath: string; - /** QueryNextSequenceReceiveResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -9601,6 +9700,598 @@ export namespace ibc { namespace client { /** Namespace v1. */ namespace v1 { + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls CreateClient. + * @param request MsgCreateClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgCreateClientResponse + */ + public createClient( + request: ibc.core.client.v1.IMsgCreateClient, + callback: ibc.core.client.v1.Msg.CreateClientCallback, + ): void; + + /** + * Calls CreateClient. + * @param request MsgCreateClient message or plain object + * @returns Promise + */ + public createClient( + request: ibc.core.client.v1.IMsgCreateClient, + ): Promise; + + /** + * Calls UpdateClient. + * @param request MsgUpdateClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateClientResponse + */ + public updateClient( + request: ibc.core.client.v1.IMsgUpdateClient, + callback: ibc.core.client.v1.Msg.UpdateClientCallback, + ): void; + + /** + * Calls UpdateClient. + * @param request MsgUpdateClient message or plain object + * @returns Promise + */ + public updateClient( + request: ibc.core.client.v1.IMsgUpdateClient, + ): Promise; + + /** + * Calls UpgradeClient. + * @param request MsgUpgradeClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse + */ + public upgradeClient( + request: ibc.core.client.v1.IMsgUpgradeClient, + callback: ibc.core.client.v1.Msg.UpgradeClientCallback, + ): void; + + /** + * Calls UpgradeClient. + * @param request MsgUpgradeClient message or plain object + * @returns Promise + */ + public upgradeClient( + request: ibc.core.client.v1.IMsgUpgradeClient, + ): Promise; + + /** + * Calls SubmitMisbehaviour. + * @param request MsgSubmitMisbehaviour message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse + */ + public submitMisbehaviour( + request: ibc.core.client.v1.IMsgSubmitMisbehaviour, + callback: ibc.core.client.v1.Msg.SubmitMisbehaviourCallback, + ): void; + + /** + * Calls SubmitMisbehaviour. + * @param request MsgSubmitMisbehaviour message or plain object + * @returns Promise + */ + public submitMisbehaviour( + request: ibc.core.client.v1.IMsgSubmitMisbehaviour, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. + * @param error Error, if any + * @param [response] MsgCreateClientResponse + */ + type CreateClientCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgCreateClientResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. + * @param error Error, if any + * @param [response] MsgUpdateClientResponse + */ + type UpdateClientCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgUpdateClientResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. + * @param error Error, if any + * @param [response] MsgUpgradeClientResponse + */ + type UpgradeClientCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgUpgradeClientResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. + * @param error Error, if any + * @param [response] MsgSubmitMisbehaviourResponse + */ + type SubmitMisbehaviourCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgSubmitMisbehaviourResponse, + ) => void; + } + + /** Properties of a MsgCreateClient. */ + interface IMsgCreateClient { + /** MsgCreateClient clientId */ + clientId?: string | null; + + /** MsgCreateClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer */ + signer?: string | null; + } + + /** Represents a MsgCreateClient. */ + class MsgCreateClient implements IMsgCreateClient { + /** + * Constructs a new MsgCreateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgCreateClient); + + /** MsgCreateClient clientId. */ + public clientId: string; + + /** MsgCreateClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer. */ + public signer: string; + + /** + * Creates a new MsgCreateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgCreateClient, + ): ibc.core.client.v1.MsgCreateClient; + + /** + * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * @param m MsgCreateClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgCreateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgCreateClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgCreateClient; + } + + /** Properties of a MsgCreateClientResponse. */ + interface IMsgCreateClientResponse {} + + /** Represents a MsgCreateClientResponse. */ + class MsgCreateClientResponse implements IMsgCreateClientResponse { + /** + * Constructs a new MsgCreateClientResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgCreateClientResponse); + + /** + * Creates a new MsgCreateClientResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateClientResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgCreateClientResponse, + ): ibc.core.client.v1.MsgCreateClientResponse; + + /** + * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * @param m MsgCreateClientResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgCreateClientResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateClientResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgCreateClientResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgCreateClientResponse; + } + + /** Properties of a MsgUpdateClient. */ + interface IMsgUpdateClient { + /** MsgUpdateClient clientId */ + clientId?: string | null; + + /** MsgUpdateClient header */ + header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpdateClient. */ + class MsgUpdateClient implements IMsgUpdateClient { + /** + * Constructs a new MsgUpdateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpdateClient); + + /** MsgUpdateClient clientId. */ + public clientId: string; + + /** MsgUpdateClient header. */ + public header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpdateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpdateClient, + ): ibc.core.client.v1.MsgUpdateClient; + + /** + * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * @param m MsgUpdateClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpdateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpdateClient; + } + + /** Properties of a MsgUpdateClientResponse. */ + interface IMsgUpdateClientResponse {} + + /** Represents a MsgUpdateClientResponse. */ + class MsgUpdateClientResponse implements IMsgUpdateClientResponse { + /** + * Constructs a new MsgUpdateClientResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpdateClientResponse); + + /** + * Creates a new MsgUpdateClientResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateClientResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpdateClientResponse, + ): ibc.core.client.v1.MsgUpdateClientResponse; + + /** + * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * @param m MsgUpdateClientResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpdateClientResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateClientResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpdateClientResponse; + } + + /** Properties of a MsgUpgradeClient. */ + interface IMsgUpgradeClient { + /** MsgUpgradeClient clientId */ + clientId?: string | null; + + /** MsgUpgradeClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight */ + upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade */ + proofUpgrade?: Uint8Array | null; + + /** MsgUpgradeClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpgradeClient. */ + class MsgUpgradeClient implements IMsgUpgradeClient { + /** + * Constructs a new MsgUpgradeClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpgradeClient); + + /** MsgUpgradeClient clientId. */ + public clientId: string; + + /** MsgUpgradeClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight. */ + public upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade. */ + public proofUpgrade: Uint8Array; + + /** MsgUpgradeClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpgradeClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpgradeClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpgradeClient, + ): ibc.core.client.v1.MsgUpgradeClient; + + /** + * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * @param m MsgUpgradeClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpgradeClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpgradeClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpgradeClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpgradeClient; + } + + /** Properties of a MsgUpgradeClientResponse. */ + interface IMsgUpgradeClientResponse {} + + /** Represents a MsgUpgradeClientResponse. */ + class MsgUpgradeClientResponse implements IMsgUpgradeClientResponse { + /** + * Constructs a new MsgUpgradeClientResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpgradeClientResponse); + + /** + * Creates a new MsgUpgradeClientResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpgradeClientResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpgradeClientResponse, + ): ibc.core.client.v1.MsgUpgradeClientResponse; + + /** + * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * @param m MsgUpgradeClientResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpgradeClientResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpgradeClientResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpgradeClientResponse; + } + + /** Properties of a MsgSubmitMisbehaviour. */ + interface IMsgSubmitMisbehaviour { + /** MsgSubmitMisbehaviour clientId */ + clientId?: string | null; + + /** MsgSubmitMisbehaviour misbehaviour */ + misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer */ + signer?: string | null; + } + + /** Represents a MsgSubmitMisbehaviour. */ + class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { + /** + * Constructs a new MsgSubmitMisbehaviour. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviour); + + /** MsgSubmitMisbehaviour clientId. */ + public clientId: string; + + /** MsgSubmitMisbehaviour misbehaviour. */ + public misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer. */ + public signer: string; + + /** + * Creates a new MsgSubmitMisbehaviour instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitMisbehaviour instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + + /** + * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * @param m MsgSubmitMisbehaviour message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgSubmitMisbehaviour, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSubmitMisbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + } + + /** Properties of a MsgSubmitMisbehaviourResponse. */ + interface IMsgSubmitMisbehaviourResponse {} + + /** Represents a MsgSubmitMisbehaviourResponse. */ + class MsgSubmitMisbehaviourResponse implements IMsgSubmitMisbehaviourResponse { + /** + * Constructs a new MsgSubmitMisbehaviourResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse); + + /** + * Creates a new MsgSubmitMisbehaviourResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitMisbehaviourResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, + ): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; + + /** + * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * @param m MsgSubmitMisbehaviourResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSubmitMisbehaviourResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; + } + /** Properties of an IdentifiedClientState. */ interface IIdentifiedClientState { /** IdentifiedClientState clientId */ @@ -9841,276 +10532,6 @@ export namespace ibc { ): ibc.core.client.v1.ClientUpdateProposal; } - /** Properties of a MsgCreateClient. */ - interface IMsgCreateClient { - /** MsgCreateClient clientId */ - clientId?: string | null; - - /** MsgCreateClient clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgCreateClient consensusState */ - consensusState?: google.protobuf.IAny | null; - - /** MsgCreateClient signer */ - signer?: string | null; - } - - /** Represents a MsgCreateClient. */ - class MsgCreateClient implements IMsgCreateClient { - /** - * Constructs a new MsgCreateClient. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgCreateClient); - - /** MsgCreateClient clientId. */ - public clientId: string; - - /** MsgCreateClient clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgCreateClient consensusState. */ - public consensusState?: google.protobuf.IAny | null; - - /** MsgCreateClient signer. */ - public signer: string; - - /** - * Creates a new MsgCreateClient instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgCreateClient instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgCreateClient, - ): ibc.core.client.v1.MsgCreateClient; - - /** - * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. - * @param m MsgCreateClient message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgCreateClient, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgCreateClient message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgCreateClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgCreateClient; - } - - /** Properties of a MsgUpdateClient. */ - interface IMsgUpdateClient { - /** MsgUpdateClient clientId */ - clientId?: string | null; - - /** MsgUpdateClient header */ - header?: google.protobuf.IAny | null; - - /** MsgUpdateClient signer */ - signer?: string | null; - } - - /** Represents a MsgUpdateClient. */ - class MsgUpdateClient implements IMsgUpdateClient { - /** - * Constructs a new MsgUpdateClient. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgUpdateClient); - - /** MsgUpdateClient clientId. */ - public clientId: string; - - /** MsgUpdateClient header. */ - public header?: google.protobuf.IAny | null; - - /** MsgUpdateClient signer. */ - public signer: string; - - /** - * Creates a new MsgUpdateClient instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateClient instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgUpdateClient, - ): ibc.core.client.v1.MsgUpdateClient; - - /** - * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. - * @param m MsgUpdateClient message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgUpdateClient, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateClient message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgUpdateClient; - } - - /** Properties of a MsgUpgradeClient. */ - interface IMsgUpgradeClient { - /** MsgUpgradeClient clientId */ - clientId?: string | null; - - /** MsgUpgradeClient clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgUpgradeClient upgradeHeight */ - upgradeHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgUpgradeClient proofUpgrade */ - proofUpgrade?: Uint8Array | null; - - /** MsgUpgradeClient signer */ - signer?: string | null; - } - - /** Represents a MsgUpgradeClient. */ - class MsgUpgradeClient implements IMsgUpgradeClient { - /** - * Constructs a new MsgUpgradeClient. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgUpgradeClient); - - /** MsgUpgradeClient clientId. */ - public clientId: string; - - /** MsgUpgradeClient clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgUpgradeClient upgradeHeight. */ - public upgradeHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgUpgradeClient proofUpgrade. */ - public proofUpgrade: Uint8Array; - - /** MsgUpgradeClient signer. */ - public signer: string; - - /** - * Creates a new MsgUpgradeClient instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpgradeClient instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgUpgradeClient, - ): ibc.core.client.v1.MsgUpgradeClient; - - /** - * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. - * @param m MsgUpgradeClient message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgUpgradeClient, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpgradeClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgUpgradeClient; - } - - /** Properties of a MsgSubmitMisbehaviour. */ - interface IMsgSubmitMisbehaviour { - /** MsgSubmitMisbehaviour clientId */ - clientId?: string | null; - - /** MsgSubmitMisbehaviour misbehaviour */ - misbehaviour?: google.protobuf.IAny | null; - - /** MsgSubmitMisbehaviour signer */ - signer?: string | null; - } - - /** Represents a MsgSubmitMisbehaviour. */ - class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { - /** - * Constructs a new MsgSubmitMisbehaviour. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviour); - - /** MsgSubmitMisbehaviour clientId. */ - public clientId: string; - - /** MsgSubmitMisbehaviour misbehaviour. */ - public misbehaviour?: google.protobuf.IAny | null; - - /** MsgSubmitMisbehaviour signer. */ - public signer: string; - - /** - * Creates a new MsgSubmitMisbehaviour instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgSubmitMisbehaviour instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour, - ): ibc.core.client.v1.MsgSubmitMisbehaviour; - - /** - * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. - * @param m MsgSubmitMisbehaviour message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgSubmitMisbehaviour, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgSubmitMisbehaviour - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgSubmitMisbehaviour; - } - /** Properties of an Height. */ interface IHeight { /** Height versionNumber */ @@ -10468,379 +10889,13 @@ export namespace ibc { namespace connection { /** Namespace v1. */ namespace v1 { - /** Properties of a MsgConnectionOpenInit. */ - interface IMsgConnectionOpenInit { - /** MsgConnectionOpenInit clientId */ - clientId?: string | null; - - /** MsgConnectionOpenInit connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenInit counterparty */ - counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenInit version */ - version?: string | null; - - /** MsgConnectionOpenInit signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenInit. */ - class MsgConnectionOpenInit implements IMsgConnectionOpenInit { - /** - * Constructs a new MsgConnectionOpenInit. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenInit); - - /** MsgConnectionOpenInit clientId. */ - public clientId: string; - - /** MsgConnectionOpenInit connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenInit counterparty. */ - public counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenInit version. */ - public version: string; - - /** MsgConnectionOpenInit signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenInit instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenInit instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenInit, - ): ibc.core.connection.v1.MsgConnectionOpenInit; - - /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. - * @param m MsgConnectionOpenInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenInit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenInit; - } - - /** Properties of a MsgConnectionOpenTry. */ - interface IMsgConnectionOpenTry { - /** MsgConnectionOpenTry clientId */ - clientId?: string | null; - - /** MsgConnectionOpenTry desiredConnectionId */ - desiredConnectionId?: string | null; - - /** MsgConnectionOpenTry counterpartyChosenConnectionId */ - counterpartyChosenConnectionId?: string | null; - - /** MsgConnectionOpenTry clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenTry counterparty */ - counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions */ - counterpartyVersions?: string[] | null; - - /** MsgConnectionOpenTry proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgConnectionOpenTry proofClient */ - proofClient?: Uint8Array | null; - - /** MsgConnectionOpenTry proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenTry consensusHeight */ - consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenTry. */ - class MsgConnectionOpenTry implements IMsgConnectionOpenTry { - /** - * Constructs a new MsgConnectionOpenTry. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenTry); - - /** MsgConnectionOpenTry clientId. */ - public clientId: string; - - /** MsgConnectionOpenTry desiredConnectionId. */ - public desiredConnectionId: string; - - /** MsgConnectionOpenTry counterpartyChosenConnectionId. */ - public counterpartyChosenConnectionId: string; - - /** MsgConnectionOpenTry clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenTry counterparty. */ - public counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions. */ - public counterpartyVersions: string[]; - - /** MsgConnectionOpenTry proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgConnectionOpenTry proofClient. */ - public proofClient: Uint8Array; - - /** MsgConnectionOpenTry proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenTry consensusHeight. */ - public consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenTry instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenTry instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenTry, - ): ibc.core.connection.v1.MsgConnectionOpenTry; - - /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. - * @param m MsgConnectionOpenTry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenTry, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenTry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenTry; - } - - /** Properties of a MsgConnectionOpenAck. */ - interface IMsgConnectionOpenAck { - /** MsgConnectionOpenAck connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenAck counterpartyConnectionId */ - counterpartyConnectionId?: string | null; - - /** MsgConnectionOpenAck version */ - version?: string | null; - - /** MsgConnectionOpenAck clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenAck proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck proofTry */ - proofTry?: Uint8Array | null; - - /** MsgConnectionOpenAck proofClient */ - proofClient?: Uint8Array | null; - - /** MsgConnectionOpenAck proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenAck consensusHeight */ - consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenAck. */ - class MsgConnectionOpenAck implements IMsgConnectionOpenAck { - /** - * Constructs a new MsgConnectionOpenAck. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenAck); - - /** MsgConnectionOpenAck connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenAck counterpartyConnectionId. */ - public counterpartyConnectionId: string; - - /** MsgConnectionOpenAck version. */ - public version: string; - - /** MsgConnectionOpenAck clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenAck proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck proofTry. */ - public proofTry: Uint8Array; - - /** MsgConnectionOpenAck proofClient. */ - public proofClient: Uint8Array; - - /** MsgConnectionOpenAck proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenAck consensusHeight. */ - public consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenAck instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenAck instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenAck, - ): ibc.core.connection.v1.MsgConnectionOpenAck; - - /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. - * @param m MsgConnectionOpenAck message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenAck, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenAck - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenAck; - } - - /** Properties of a MsgConnectionOpenConfirm. */ - interface IMsgConnectionOpenConfirm { - /** MsgConnectionOpenConfirm connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenConfirm proofAck */ - proofAck?: Uint8Array | null; - - /** MsgConnectionOpenConfirm proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenConfirm signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenConfirm. */ - class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { - /** - * Constructs a new MsgConnectionOpenConfirm. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenConfirm); - - /** MsgConnectionOpenConfirm connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgConnectionOpenConfirm proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenConfirm signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenConfirm instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenConfirm instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirm, - ): ibc.core.connection.v1.MsgConnectionOpenConfirm; - - /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. - * @param m MsgConnectionOpenConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenConfirm, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenConfirm; - } - /** Properties of a ConnectionEnd. */ interface IConnectionEnd { /** ConnectionEnd clientId */ clientId?: string | null; /** ConnectionEnd versions */ - versions?: string[] | null; + versions?: ibc.core.connection.v1.IVersion[] | null; /** ConnectionEnd state */ state?: ibc.core.connection.v1.State | null; @@ -10861,7 +10916,7 @@ export namespace ibc { public clientId: string; /** ConnectionEnd versions. */ - public versions: string[]; + public versions: ibc.core.connection.v1.IVersion[]; /** ConnectionEnd state. */ public state: ibc.core.connection.v1.State; @@ -10912,7 +10967,7 @@ export namespace ibc { clientId?: string | null; /** IdentifiedConnection versions */ - versions?: string[] | null; + versions?: ibc.core.connection.v1.IVersion[] | null; /** IdentifiedConnection state */ state?: ibc.core.connection.v1.State | null; @@ -10936,7 +10991,7 @@ export namespace ibc { public clientId: string; /** IdentifiedConnection versions. */ - public versions: string[]; + public versions: ibc.core.connection.v1.IVersion[]; /** IdentifiedConnection state. */ public state: ibc.core.connection.v1.State; @@ -11436,9 +11491,6 @@ export namespace ibc { /** QueryConnectionResponse proof */ proof?: Uint8Array | null; - /** QueryConnectionResponse proofPath */ - proofPath?: string | null; - /** QueryConnectionResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11457,9 +11509,6 @@ export namespace ibc { /** QueryConnectionResponse proof. */ public proof: Uint8Array; - /** QueryConnectionResponse proofPath. */ - public proofPath: string; - /** QueryConnectionResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -11670,9 +11719,6 @@ export namespace ibc { /** QueryClientConnectionsResponse proof */ proof?: Uint8Array | null; - /** QueryClientConnectionsResponse proofPath */ - proofPath?: string | null; - /** QueryClientConnectionsResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11691,9 +11737,6 @@ export namespace ibc { /** QueryClientConnectionsResponse proof. */ public proof: Uint8Array; - /** QueryClientConnectionsResponse proofPath. */ - public proofPath: string; - /** QueryClientConnectionsResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -11790,9 +11833,6 @@ export namespace ibc { /** QueryConnectionClientStateResponse proof */ proof?: Uint8Array | null; - /** QueryConnectionClientStateResponse proofPath */ - proofPath?: string | null; - /** QueryConnectionClientStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11811,9 +11851,6 @@ export namespace ibc { /** QueryConnectionClientStateResponse proof. */ public proof: Uint8Array; - /** QueryConnectionClientStateResponse proofPath. */ - public proofPath: string; - /** QueryConnectionClientStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -11925,9 +11962,6 @@ export namespace ibc { /** QueryConnectionConsensusStateResponse proof */ proof?: Uint8Array | null; - /** QueryConnectionConsensusStateResponse proofPath */ - proofPath?: string | null; - /** QueryConnectionConsensusStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11949,9 +11983,6 @@ export namespace ibc { /** QueryConnectionConsensusStateResponse proof. */ public proof: Uint8Array; - /** QueryConnectionConsensusStateResponse proofPath. */ - public proofPath: string; - /** QueryConnectionConsensusStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -12658,9 +12689,6 @@ export namespace tendermint { interface IData { /** Data txs */ txs?: Uint8Array[] | null; - - /** Data hash */ - hash?: Uint8Array | null; } /** Represents a Data. */ @@ -12674,9 +12702,6 @@ export namespace tendermint { /** Data txs. */ public txs: Uint8Array[]; - /** Data hash. */ - public hash: Uint8Array; - /** * Creates a new Data instance using the specified properties. * @param [properties] Properties to set @@ -12801,12 +12826,6 @@ export namespace tendermint { /** Commit signatures */ signatures?: tendermint.types.ICommitSig[] | null; - - /** Commit hash */ - hash?: Uint8Array | null; - - /** Commit bitArray */ - bitArray?: tendermint.libs.bits.IBitArray | null; } /** Represents a Commit. */ @@ -12829,12 +12848,6 @@ export namespace tendermint { /** Commit signatures. */ public signatures: tendermint.types.ICommitSig[]; - /** Commit hash. */ - public hash: Uint8Array; - - /** Commit bitArray. */ - public bitArray?: tendermint.libs.bits.IBitArray | null; - /** * Creates a new Commit instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/stargate/src/codec/generated/codecimpl.js b/packages/stargate/src/codec/generated/codecimpl.js index 295ce45a..51ce7a74 100644 --- a/packages/stargate/src/codec/generated/codecimpl.js +++ b/packages/stargate/src/codec/generated/codecimpl.js @@ -1099,6 +1099,42 @@ exports.cosmos = $root.cosmos = (() => { }; return QueryParamsResponse; })(); + v1beta1.Msg = (function () { + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + Msg.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Msg.prototype.send = function send(request, callback) { + return this.rpcCall( + send, + $root.cosmos.bank.v1beta1.MsgSend, + $root.cosmos.bank.v1beta1.MsgSendResponse, + request, + callback, + ); + }), + "name", + { value: "Send" }, + ); + Object.defineProperty( + (Msg.prototype.multiSend = function multiSend(request, callback) { + return this.rpcCall( + multiSend, + $root.cosmos.bank.v1beta1.MsgMultiSend, + $root.cosmos.bank.v1beta1.MsgMultiSendResponse, + request, + callback, + ); + }), + "name", + { value: "MultiSend" }, + ); + return Msg; + })(); v1beta1.MsgSend = (function () { function MsgSend(p) { this.amount = []; @@ -1150,6 +1186,35 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgSend; })(); + v1beta1.MsgSendResponse = (function () { + function MsgSendResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgSendResponse.create = function create(properties) { + return new MsgSendResponse(properties); + }; + MsgSendResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgSendResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.v1beta1.MsgSendResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgSendResponse; + })(); v1beta1.MsgMultiSend = (function () { function MsgMultiSend(p) { this.inputs = []; @@ -1199,6 +1264,35 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgMultiSend; })(); + v1beta1.MsgMultiSendResponse = (function () { + function MsgMultiSendResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgMultiSendResponse.create = function create(properties) { + return new MsgMultiSendResponse(properties); + }; + MsgMultiSendResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgMultiSendResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.v1beta1.MsgMultiSendResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgMultiSendResponse; + })(); return v1beta1; })(); return bank; @@ -1817,7 +1911,7 @@ exports.cosmos = $root.cosmos = (() => { if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; } Validator.prototype.operatorAddress = ""; - Validator.prototype.consensusPubkey = ""; + Validator.prototype.consensusPubkey = null; Validator.prototype.jailed = false; Validator.prototype.status = 0; Validator.prototype.tokens = ""; @@ -1835,7 +1929,7 @@ exports.cosmos = $root.cosmos = (() => { if (m.operatorAddress != null && Object.hasOwnProperty.call(m, "operatorAddress")) w.uint32(10).string(m.operatorAddress); if (m.consensusPubkey != null && Object.hasOwnProperty.call(m, "consensusPubkey")) - w.uint32(18).string(m.consensusPubkey); + $root.google.protobuf.Any.encode(m.consensusPubkey, w.uint32(18).fork()).ldelim(); if (m.jailed != null && Object.hasOwnProperty.call(m, "jailed")) w.uint32(24).bool(m.jailed); if (m.status != null && Object.hasOwnProperty.call(m, "status")) w.uint32(32).int32(m.status); if (m.tokens != null && Object.hasOwnProperty.call(m, "tokens")) w.uint32(42).string(m.tokens); @@ -1864,7 +1958,7 @@ exports.cosmos = $root.cosmos = (() => { m.operatorAddress = r.string(); break; case 2: - m.consensusPubkey = r.string(); + m.consensusPubkey = $root.google.protobuf.Any.decode(r, r.uint32()); break; case 3: m.jailed = r.bool(); @@ -1902,6 +1996,15 @@ exports.cosmos = $root.cosmos = (() => { }; return Validator; })(); + v1beta1.BondStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "BOND_STATUS_UNSPECIFIED")] = 0; + values[(valuesById[1] = "BOND_STATUS_UNBONDED")] = 1; + values[(valuesById[2] = "BOND_STATUS_UNBONDING")] = 2; + values[(valuesById[3] = "BOND_STATUS_BONDED")] = 3; + return values; + })(); v1beta1.ValAddresses = (function () { function ValAddresses(p) { this.addresses = []; @@ -2603,6 +2706,81 @@ exports.cosmos = $root.cosmos = (() => { }; return Pool; })(); + v1beta1.Msg = (function () { + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + Msg.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Msg.prototype.createValidator = function createValidator(request, callback) { + return this.rpcCall( + createValidator, + $root.cosmos.staking.v1beta1.MsgCreateValidator, + $root.cosmos.staking.v1beta1.MsgCreateValidatorResponse, + request, + callback, + ); + }), + "name", + { value: "CreateValidator" }, + ); + Object.defineProperty( + (Msg.prototype.editValidator = function editValidator(request, callback) { + return this.rpcCall( + editValidator, + $root.cosmos.staking.v1beta1.MsgEditValidator, + $root.cosmos.staking.v1beta1.MsgEditValidatorResponse, + request, + callback, + ); + }), + "name", + { value: "EditValidator" }, + ); + Object.defineProperty( + (Msg.prototype.delegate = function delegate(request, callback) { + return this.rpcCall( + delegate, + $root.cosmos.staking.v1beta1.MsgDelegate, + $root.cosmos.staking.v1beta1.MsgDelegateResponse, + request, + callback, + ); + }), + "name", + { value: "Delegate" }, + ); + Object.defineProperty( + (Msg.prototype.beginRedelegate = function beginRedelegate(request, callback) { + return this.rpcCall( + beginRedelegate, + $root.cosmos.staking.v1beta1.MsgBeginRedelegate, + $root.cosmos.staking.v1beta1.MsgBeginRedelegateResponse, + request, + callback, + ); + }), + "name", + { value: "BeginRedelegate" }, + ); + Object.defineProperty( + (Msg.prototype.undelegate = function undelegate(request, callback) { + return this.rpcCall( + undelegate, + $root.cosmos.staking.v1beta1.MsgUndelegate, + $root.cosmos.staking.v1beta1.MsgUndelegateResponse, + request, + callback, + ); + }), + "name", + { value: "Undelegate" }, + ); + return Msg; + })(); v1beta1.MsgCreateValidator = (function () { function MsgCreateValidator(p) { if (p) @@ -2614,7 +2792,7 @@ exports.cosmos = $root.cosmos = (() => { MsgCreateValidator.prototype.minSelfDelegation = ""; MsgCreateValidator.prototype.delegatorAddress = ""; MsgCreateValidator.prototype.validatorAddress = ""; - MsgCreateValidator.prototype.pubkey = ""; + MsgCreateValidator.prototype.pubkey = null; MsgCreateValidator.prototype.value = null; MsgCreateValidator.create = function create(properties) { return new MsgCreateValidator(properties); @@ -2631,7 +2809,8 @@ exports.cosmos = $root.cosmos = (() => { w.uint32(34).string(m.delegatorAddress); if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) w.uint32(42).string(m.validatorAddress); - if (m.pubkey != null && Object.hasOwnProperty.call(m, "pubkey")) w.uint32(50).string(m.pubkey); + if (m.pubkey != null && Object.hasOwnProperty.call(m, "pubkey")) + $root.google.protobuf.Any.encode(m.pubkey, w.uint32(50).fork()).ldelim(); if (m.value != null && Object.hasOwnProperty.call(m, "value")) $root.cosmos.base.v1beta1.Coin.encode(m.value, w.uint32(58).fork()).ldelim(); return w; @@ -2659,7 +2838,7 @@ exports.cosmos = $root.cosmos = (() => { m.validatorAddress = r.string(); break; case 6: - m.pubkey = r.string(); + m.pubkey = $root.google.protobuf.Any.decode(r, r.uint32()); break; case 7: m.value = $root.cosmos.base.v1beta1.Coin.decode(r, r.uint32()); @@ -2673,6 +2852,35 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgCreateValidator; })(); + v1beta1.MsgCreateValidatorResponse = (function () { + function MsgCreateValidatorResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgCreateValidatorResponse.create = function create(properties) { + return new MsgCreateValidatorResponse(properties); + }; + MsgCreateValidatorResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgCreateValidatorResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.staking.v1beta1.MsgCreateValidatorResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgCreateValidatorResponse; + })(); v1beta1.MsgEditValidator = (function () { function MsgEditValidator(p) { if (p) @@ -2726,6 +2934,35 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgEditValidator; })(); + v1beta1.MsgEditValidatorResponse = (function () { + function MsgEditValidatorResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgEditValidatorResponse.create = function create(properties) { + return new MsgEditValidatorResponse(properties); + }; + MsgEditValidatorResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgEditValidatorResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.staking.v1beta1.MsgEditValidatorResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgEditValidatorResponse; + })(); v1beta1.MsgDelegate = (function () { function MsgDelegate(p) { if (p) @@ -2773,6 +3010,35 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgDelegate; })(); + v1beta1.MsgDelegateResponse = (function () { + function MsgDelegateResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgDelegateResponse.create = function create(properties) { + return new MsgDelegateResponse(properties); + }; + MsgDelegateResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgDelegateResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.staking.v1beta1.MsgDelegateResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgDelegateResponse; + })(); v1beta1.MsgBeginRedelegate = (function () { function MsgBeginRedelegate(p) { if (p) @@ -2826,6 +3092,41 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgBeginRedelegate; })(); + v1beta1.MsgBeginRedelegateResponse = (function () { + function MsgBeginRedelegateResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgBeginRedelegateResponse.prototype.completionTime = null; + MsgBeginRedelegateResponse.create = function create(properties) { + return new MsgBeginRedelegateResponse(properties); + }; + MsgBeginRedelegateResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.completionTime != null && Object.hasOwnProperty.call(m, "completionTime")) + $root.google.protobuf.Timestamp.encode(m.completionTime, w.uint32(10).fork()).ldelim(); + return w; + }; + MsgBeginRedelegateResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.staking.v1beta1.MsgBeginRedelegateResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.completionTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgBeginRedelegateResponse; + })(); v1beta1.MsgUndelegate = (function () { function MsgUndelegate(p) { if (p) @@ -2873,6 +3174,41 @@ exports.cosmos = $root.cosmos = (() => { }; return MsgUndelegate; })(); + v1beta1.MsgUndelegateResponse = (function () { + function MsgUndelegateResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgUndelegateResponse.prototype.completionTime = null; + MsgUndelegateResponse.create = function create(properties) { + return new MsgUndelegateResponse(properties); + }; + MsgUndelegateResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.completionTime != null && Object.hasOwnProperty.call(m, "completionTime")) + $root.google.protobuf.Timestamp.encode(m.completionTime, w.uint32(10).fork()).ldelim(); + return w; + }; + MsgUndelegateResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.staking.v1beta1.MsgUndelegateResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.completionTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUndelegateResponse; + })(); return v1beta1; })(); return staking; @@ -5307,45 +5643,6 @@ exports.google = $root.google = (() => { })(); return GeneratedCodeInfo; })(); - protobuf.Timestamp = (function () { - function Timestamp(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - Timestamp.prototype.nanos = 0; - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; - Timestamp.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.seconds != null && Object.hasOwnProperty.call(m, "seconds")) w.uint32(8).int64(m.seconds); - if (m.nanos != null && Object.hasOwnProperty.call(m, "nanos")) w.uint32(16).int32(m.nanos); - return w; - }; - Timestamp.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.Timestamp(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.seconds = r.int64(); - break; - case 2: - m.nanos = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Timestamp; - })(); protobuf.Duration = (function () { function Duration(p) { if (p) @@ -5385,6 +5682,45 @@ exports.google = $root.google = (() => { }; return Duration; })(); + protobuf.Timestamp = (function () { + function Timestamp(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + Timestamp.prototype.nanos = 0; + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + Timestamp.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.seconds != null && Object.hasOwnProperty.call(m, "seconds")) w.uint32(8).int64(m.seconds); + if (m.nanos != null && Object.hasOwnProperty.call(m, "nanos")) w.uint32(16).int32(m.nanos); + return w; + }; + Timestamp.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.google.protobuf.Timestamp(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.seconds = r.int64(); + break; + case 2: + m.nanos = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Timestamp; + })(); return protobuf; })(); google.api = (function () { @@ -5564,591 +5900,6 @@ exports.ibc = $root.ibc = (() => { const channel = {}; channel.v1 = (function () { const v1 = {}; - v1.MsgChannelOpenInit = (function () { - function MsgChannelOpenInit(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgChannelOpenInit.prototype.portId = ""; - MsgChannelOpenInit.prototype.channelId = ""; - MsgChannelOpenInit.prototype.channel = null; - MsgChannelOpenInit.prototype.signer = ""; - MsgChannelOpenInit.create = function create(properties) { - return new MsgChannelOpenInit(properties); - }; - MsgChannelOpenInit.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) - $root.ibc.core.channel.v1.Channel.encode(m.channel, w.uint32(26).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); - return w; - }; - MsgChannelOpenInit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.channel = $root.ibc.core.channel.v1.Channel.decode(r, r.uint32()); - break; - case 4: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgChannelOpenInit; - })(); - v1.MsgChannelOpenTry = (function () { - function MsgChannelOpenTry(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgChannelOpenTry.prototype.portId = ""; - MsgChannelOpenTry.prototype.desiredChannelId = ""; - MsgChannelOpenTry.prototype.counterpartyChosenChannelId = ""; - MsgChannelOpenTry.prototype.channel = null; - MsgChannelOpenTry.prototype.counterpartyVersion = ""; - MsgChannelOpenTry.prototype.proofInit = $util.newBuffer([]); - MsgChannelOpenTry.prototype.proofHeight = null; - MsgChannelOpenTry.prototype.signer = ""; - MsgChannelOpenTry.create = function create(properties) { - return new MsgChannelOpenTry(properties); - }; - MsgChannelOpenTry.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); - if (m.desiredChannelId != null && Object.hasOwnProperty.call(m, "desiredChannelId")) - w.uint32(18).string(m.desiredChannelId); - if ( - m.counterpartyChosenChannelId != null && - Object.hasOwnProperty.call(m, "counterpartyChosenChannelId") - ) - w.uint32(26).string(m.counterpartyChosenChannelId); - if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) - $root.ibc.core.channel.v1.Channel.encode(m.channel, w.uint32(34).fork()).ldelim(); - if (m.counterpartyVersion != null && Object.hasOwnProperty.call(m, "counterpartyVersion")) - w.uint32(42).string(m.counterpartyVersion); - if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) - w.uint32(50).bytes(m.proofInit); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(58).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(66).string(m.signer); - return w; - }; - MsgChannelOpenTry.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.desiredChannelId = r.string(); - break; - case 3: - m.counterpartyChosenChannelId = r.string(); - break; - case 4: - m.channel = $root.ibc.core.channel.v1.Channel.decode(r, r.uint32()); - break; - case 5: - m.counterpartyVersion = r.string(); - break; - case 6: - m.proofInit = r.bytes(); - break; - case 7: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 8: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgChannelOpenTry; - })(); - v1.MsgChannelOpenAck = (function () { - function MsgChannelOpenAck(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgChannelOpenAck.prototype.portId = ""; - MsgChannelOpenAck.prototype.channelId = ""; - MsgChannelOpenAck.prototype.counterpartyChannelId = ""; - MsgChannelOpenAck.prototype.counterpartyVersion = ""; - MsgChannelOpenAck.prototype.proofTry = $util.newBuffer([]); - MsgChannelOpenAck.prototype.proofHeight = null; - MsgChannelOpenAck.prototype.signer = ""; - MsgChannelOpenAck.create = function create(properties) { - return new MsgChannelOpenAck(properties); - }; - MsgChannelOpenAck.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.counterpartyChannelId != null && Object.hasOwnProperty.call(m, "counterpartyChannelId")) - w.uint32(26).string(m.counterpartyChannelId); - if (m.counterpartyVersion != null && Object.hasOwnProperty.call(m, "counterpartyVersion")) - w.uint32(34).string(m.counterpartyVersion); - if (m.proofTry != null && Object.hasOwnProperty.call(m, "proofTry")) - w.uint32(42).bytes(m.proofTry); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(50).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(58).string(m.signer); - return w; - }; - MsgChannelOpenAck.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.counterpartyChannelId = r.string(); - break; - case 4: - m.counterpartyVersion = r.string(); - break; - case 5: - m.proofTry = r.bytes(); - break; - case 6: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 7: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgChannelOpenAck; - })(); - v1.MsgChannelOpenConfirm = (function () { - function MsgChannelOpenConfirm(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgChannelOpenConfirm.prototype.portId = ""; - MsgChannelOpenConfirm.prototype.channelId = ""; - MsgChannelOpenConfirm.prototype.proofAck = $util.newBuffer([]); - MsgChannelOpenConfirm.prototype.proofHeight = null; - MsgChannelOpenConfirm.prototype.signer = ""; - MsgChannelOpenConfirm.create = function create(properties) { - return new MsgChannelOpenConfirm(properties); - }; - MsgChannelOpenConfirm.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.proofAck != null && Object.hasOwnProperty.call(m, "proofAck")) - w.uint32(26).bytes(m.proofAck); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); - return w; - }; - MsgChannelOpenConfirm.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.proofAck = r.bytes(); - break; - case 4: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 5: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgChannelOpenConfirm; - })(); - v1.MsgChannelCloseInit = (function () { - function MsgChannelCloseInit(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgChannelCloseInit.prototype.portId = ""; - MsgChannelCloseInit.prototype.channelId = ""; - MsgChannelCloseInit.prototype.signer = ""; - MsgChannelCloseInit.create = function create(properties) { - return new MsgChannelCloseInit(properties); - }; - MsgChannelCloseInit.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(26).string(m.signer); - return w; - }; - MsgChannelCloseInit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgChannelCloseInit; - })(); - v1.MsgChannelCloseConfirm = (function () { - function MsgChannelCloseConfirm(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgChannelCloseConfirm.prototype.portId = ""; - MsgChannelCloseConfirm.prototype.channelId = ""; - MsgChannelCloseConfirm.prototype.proofInit = $util.newBuffer([]); - MsgChannelCloseConfirm.prototype.proofHeight = null; - MsgChannelCloseConfirm.prototype.signer = ""; - MsgChannelCloseConfirm.create = function create(properties) { - return new MsgChannelCloseConfirm(properties); - }; - MsgChannelCloseConfirm.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) - w.uint32(26).bytes(m.proofInit); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); - return w; - }; - MsgChannelCloseConfirm.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.proofInit = r.bytes(); - break; - case 4: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 5: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgChannelCloseConfirm; - })(); - v1.MsgRecvPacket = (function () { - function MsgRecvPacket(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgRecvPacket.prototype.packet = null; - MsgRecvPacket.prototype.proof = $util.newBuffer([]); - MsgRecvPacket.prototype.proofHeight = null; - MsgRecvPacket.prototype.signer = ""; - MsgRecvPacket.create = function create(properties) { - return new MsgRecvPacket(properties); - }; - MsgRecvPacket.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.ibc.core.channel.v1.Packet.encode(m.packet, w.uint32(10).fork()).ldelim(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); - return w; - }; - MsgRecvPacket.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgRecvPacket(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.ibc.core.channel.v1.Packet.decode(r, r.uint32()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 4: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgRecvPacket; - })(); - v1.MsgTimeout = (function () { - function MsgTimeout(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgTimeout.prototype.packet = null; - MsgTimeout.prototype.proof = $util.newBuffer([]); - MsgTimeout.prototype.proofHeight = null; - MsgTimeout.prototype.nextSequenceRecv = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgTimeout.prototype.signer = ""; - MsgTimeout.create = function create(properties) { - return new MsgTimeout(properties); - }; - MsgTimeout.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.ibc.core.channel.v1.Packet.encode(m.packet, w.uint32(10).fork()).ldelim(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); - if (m.nextSequenceRecv != null && Object.hasOwnProperty.call(m, "nextSequenceRecv")) - w.uint32(32).uint64(m.nextSequenceRecv); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); - return w; - }; - MsgTimeout.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgTimeout(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.ibc.core.channel.v1.Packet.decode(r, r.uint32()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 4: - m.nextSequenceRecv = r.uint64(); - break; - case 5: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgTimeout; - })(); - v1.MsgTimeoutOnClose = (function () { - function MsgTimeoutOnClose(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgTimeoutOnClose.prototype.packet = null; - MsgTimeoutOnClose.prototype.proof = $util.newBuffer([]); - MsgTimeoutOnClose.prototype.proofClose = $util.newBuffer([]); - MsgTimeoutOnClose.prototype.proofHeight = null; - MsgTimeoutOnClose.prototype.nextSequenceRecv = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgTimeoutOnClose.prototype.signer = ""; - MsgTimeoutOnClose.create = function create(properties) { - return new MsgTimeoutOnClose(properties); - }; - MsgTimeoutOnClose.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.ibc.core.channel.v1.Packet.encode(m.packet, w.uint32(10).fork()).ldelim(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofClose != null && Object.hasOwnProperty.call(m, "proofClose")) - w.uint32(26).bytes(m.proofClose); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); - if (m.nextSequenceRecv != null && Object.hasOwnProperty.call(m, "nextSequenceRecv")) - w.uint32(40).uint64(m.nextSequenceRecv); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(50).string(m.signer); - return w; - }; - MsgTimeoutOnClose.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.ibc.core.channel.v1.Packet.decode(r, r.uint32()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofClose = r.bytes(); - break; - case 4: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 5: - m.nextSequenceRecv = r.uint64(); - break; - case 6: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgTimeoutOnClose; - })(); - v1.MsgAcknowledgement = (function () { - function MsgAcknowledgement(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgAcknowledgement.prototype.packet = null; - MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); - MsgAcknowledgement.prototype.proof = $util.newBuffer([]); - MsgAcknowledgement.prototype.proofHeight = null; - MsgAcknowledgement.prototype.signer = ""; - MsgAcknowledgement.create = function create(properties) { - return new MsgAcknowledgement(properties); - }; - MsgAcknowledgement.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.ibc.core.channel.v1.Packet.encode(m.packet, w.uint32(10).fork()).ldelim(); - if (m.acknowledgement != null && Object.hasOwnProperty.call(m, "acknowledgement")) - w.uint32(18).bytes(m.acknowledgement); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(26).bytes(m.proof); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); - return w; - }; - MsgAcknowledgement.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.MsgAcknowledgement(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.ibc.core.channel.v1.Packet.decode(r, r.uint32()); - break; - case 2: - m.acknowledgement = r.bytes(); - break; - case 3: - m.proof = r.bytes(); - break; - case 4: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 5: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgAcknowledgement; - })(); v1.Channel = (function () { function Channel(p) { this.connectionHops = []; @@ -6414,33 +6165,33 @@ exports.ibc = $root.ibc = (() => { }; return Packet; })(); - v1.PacketAckCommitment = (function () { - function PacketAckCommitment(p) { + v1.PacketState = (function () { + function PacketState(p) { if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; } - PacketAckCommitment.prototype.portId = ""; - PacketAckCommitment.prototype.channelId = ""; - PacketAckCommitment.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PacketAckCommitment.prototype.hash = $util.newBuffer([]); - PacketAckCommitment.create = function create(properties) { - return new PacketAckCommitment(properties); + PacketState.prototype.portId = ""; + PacketState.prototype.channelId = ""; + PacketState.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PacketState.prototype.data = $util.newBuffer([]); + PacketState.create = function create(properties) { + return new PacketState(properties); }; - PacketAckCommitment.encode = function encode(m, w) { + PacketState.encode = function encode(m, w) { if (!w) w = $Writer.create(); if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) w.uint32(18).string(m.channelId); if (m.sequence != null && Object.hasOwnProperty.call(m, "sequence")) w.uint32(24).uint64(m.sequence); - if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(34).bytes(m.hash); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(34).bytes(m.data); return w; }; - PacketAckCommitment.decode = function decode(r, l) { + PacketState.decode = function decode(r, l) { if (!(r instanceof $Reader)) r = $Reader.create(r); var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.PacketAckCommitment(); + m = new $root.ibc.core.channel.v1.PacketState(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { @@ -6454,7 +6205,7 @@ exports.ibc = $root.ibc = (() => { m.sequence = r.uint64(); break; case 4: - m.hash = r.bytes(); + m.data = r.bytes(); break; default: r.skipType(t & 7); @@ -6463,7 +6214,7 @@ exports.ibc = $root.ibc = (() => { } return m; }; - return PacketAckCommitment; + return PacketState; })(); v1.Acknowledgement = (function () { function Acknowledgement(p) { @@ -6608,6 +6359,19 @@ exports.ibc = $root.ibc = (() => { "name", { value: "PacketCommitments" }, ); + Object.defineProperty( + (Query.prototype.packetReceipt = function packetReceipt(request, callback) { + return this.rpcCall( + packetReceipt, + $root.ibc.core.channel.v1.QueryPacketReceiptRequest, + $root.ibc.core.channel.v1.QueryPacketReceiptResponse, + request, + callback, + ); + }), + "name", + { value: "PacketReceipt" }, + ); Object.defineProperty( (Query.prototype.packetAcknowledgement = function packetAcknowledgement(request, callback) { return this.rpcCall( @@ -6621,6 +6385,19 @@ exports.ibc = $root.ibc = (() => { "name", { value: "PacketAcknowledgement" }, ); + Object.defineProperty( + (Query.prototype.packetAcknowledgements = function packetAcknowledgements(request, callback) { + return this.rpcCall( + packetAcknowledgements, + $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, + $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, + request, + callback, + ); + }), + "name", + { value: "PacketAcknowledgements" }, + ); Object.defineProperty( (Query.prototype.unreceivedPackets = function unreceivedPackets(request, callback) { return this.rpcCall( @@ -6635,17 +6412,17 @@ exports.ibc = $root.ibc = (() => { { value: "UnreceivedPackets" }, ); Object.defineProperty( - (Query.prototype.unrelayedAcks = function unrelayedAcks(request, callback) { + (Query.prototype.unreceivedAcks = function unreceivedAcks(request, callback) { return this.rpcCall( - unrelayedAcks, - $root.ibc.core.channel.v1.QueryUnrelayedAcksRequest, - $root.ibc.core.channel.v1.QueryUnrelayedAcksResponse, + unreceivedAcks, + $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest, + $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse, request, callback, ); }), "name", - { value: "UnrelayedAcks" }, + { value: "UnreceivedAcks" }, ); Object.defineProperty( (Query.prototype.nextSequenceReceive = function nextSequenceReceive(request, callback) { @@ -6710,7 +6487,6 @@ exports.ibc = $root.ibc = (() => { } QueryChannelResponse.prototype.channel = null; QueryChannelResponse.prototype.proof = $util.newBuffer([]); - QueryChannelResponse.prototype.proofPath = ""; QueryChannelResponse.prototype.proofHeight = null; QueryChannelResponse.create = function create(properties) { return new QueryChannelResponse(properties); @@ -6720,10 +6496,8 @@ exports.ibc = $root.ibc = (() => { if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) $root.ibc.core.channel.v1.Channel.encode(m.channel, w.uint32(10).fork()).ldelim(); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryChannelResponse.decode = function decode(r, l) { @@ -6740,9 +6514,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -6986,7 +6757,6 @@ exports.ibc = $root.ibc = (() => { } QueryChannelClientStateResponse.prototype.identifiedClientState = null; QueryChannelClientStateResponse.prototype.proof = $util.newBuffer([]); - QueryChannelClientStateResponse.prototype.proofPath = ""; QueryChannelClientStateResponse.prototype.proofHeight = null; QueryChannelClientStateResponse.create = function create(properties) { return new QueryChannelClientStateResponse(properties); @@ -6999,10 +6769,8 @@ exports.ibc = $root.ibc = (() => { w.uint32(10).fork(), ).ldelim(); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryChannelClientStateResponse.decode = function decode(r, l) { @@ -7022,9 +6790,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -7101,7 +6866,6 @@ exports.ibc = $root.ibc = (() => { QueryChannelConsensusStateResponse.prototype.consensusState = null; QueryChannelConsensusStateResponse.prototype.clientId = ""; QueryChannelConsensusStateResponse.prototype.proof = $util.newBuffer([]); - QueryChannelConsensusStateResponse.prototype.proofPath = ""; QueryChannelConsensusStateResponse.prototype.proofHeight = null; QueryChannelConsensusStateResponse.create = function create(properties) { return new QueryChannelConsensusStateResponse(properties); @@ -7113,10 +6877,8 @@ exports.ibc = $root.ibc = (() => { if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) w.uint32(18).string(m.clientId); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(26).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(34).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(42).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); return w; }; QueryChannelConsensusStateResponse.decode = function decode(r, l) { @@ -7136,9 +6898,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 4: - m.proofPath = r.string(); - break; - case 5: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -7204,7 +6963,6 @@ exports.ibc = $root.ibc = (() => { } QueryPacketCommitmentResponse.prototype.commitment = $util.newBuffer([]); QueryPacketCommitmentResponse.prototype.proof = $util.newBuffer([]); - QueryPacketCommitmentResponse.prototype.proofPath = ""; QueryPacketCommitmentResponse.prototype.proofHeight = null; QueryPacketCommitmentResponse.create = function create(properties) { return new QueryPacketCommitmentResponse(properties); @@ -7214,10 +6972,8 @@ exports.ibc = $root.ibc = (() => { if (m.commitment != null && Object.hasOwnProperty.call(m, "commitment")) w.uint32(10).bytes(m.commitment); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryPacketCommitmentResponse.decode = function decode(r, l) { @@ -7234,9 +6990,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -7311,10 +7064,7 @@ exports.ibc = $root.ibc = (() => { if (!w) w = $Writer.create(); if (m.commitments != null && m.commitments.length) { for (var i = 0; i < m.commitments.length; ++i) - $root.ibc.core.channel.v1.PacketAckCommitment.encode( - m.commitments[i], - w.uint32(10).fork(), - ).ldelim(); + $root.ibc.core.channel.v1.PacketState.encode(m.commitments[i], w.uint32(10).fork()).ldelim(); } if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); @@ -7331,7 +7081,7 @@ exports.ibc = $root.ibc = (() => { switch (t >>> 3) { case 1: if (!(m.commitments && m.commitments.length)) m.commitments = []; - m.commitments.push($root.ibc.core.channel.v1.PacketAckCommitment.decode(r, r.uint32())); + m.commitments.push($root.ibc.core.channel.v1.PacketState.decode(r, r.uint32())); break; case 2: m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); @@ -7348,6 +7098,98 @@ exports.ibc = $root.ibc = (() => { }; return QueryPacketCommitmentsResponse; })(); + v1.QueryPacketReceiptRequest = (function () { + function QueryPacketReceiptRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryPacketReceiptRequest.prototype.portId = ""; + QueryPacketReceiptRequest.prototype.channelId = ""; + QueryPacketReceiptRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + QueryPacketReceiptRequest.create = function create(properties) { + return new QueryPacketReceiptRequest(properties); + }; + QueryPacketReceiptRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); + if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) + w.uint32(18).string(m.channelId); + if (m.sequence != null && Object.hasOwnProperty.call(m, "sequence")) + w.uint32(24).uint64(m.sequence); + return w; + }; + QueryPacketReceiptRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.portId = r.string(); + break; + case 2: + m.channelId = r.string(); + break; + case 3: + m.sequence = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketReceiptRequest; + })(); + v1.QueryPacketReceiptResponse = (function () { + function QueryPacketReceiptResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryPacketReceiptResponse.prototype.received = false; + QueryPacketReceiptResponse.prototype.proof = $util.newBuffer([]); + QueryPacketReceiptResponse.prototype.proofHeight = null; + QueryPacketReceiptResponse.create = function create(properties) { + return new QueryPacketReceiptResponse(properties); + }; + QueryPacketReceiptResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.received != null && Object.hasOwnProperty.call(m, "received")) + w.uint32(16).bool(m.received); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(26).bytes(m.proof); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryPacketReceiptResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 2: + m.received = r.bool(); + break; + case 3: + m.proof = r.bytes(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketReceiptResponse; + })(); v1.QueryPacketAcknowledgementRequest = (function () { function QueryPacketAcknowledgementRequest(p) { if (p) @@ -7404,7 +7246,6 @@ exports.ibc = $root.ibc = (() => { } QueryPacketAcknowledgementResponse.prototype.acknowledgement = $util.newBuffer([]); QueryPacketAcknowledgementResponse.prototype.proof = $util.newBuffer([]); - QueryPacketAcknowledgementResponse.prototype.proofPath = ""; QueryPacketAcknowledgementResponse.prototype.proofHeight = null; QueryPacketAcknowledgementResponse.create = function create(properties) { return new QueryPacketAcknowledgementResponse(properties); @@ -7414,10 +7255,8 @@ exports.ibc = $root.ibc = (() => { if (m.acknowledgement != null && Object.hasOwnProperty.call(m, "acknowledgement")) w.uint32(10).bytes(m.acknowledgement); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryPacketAcknowledgementResponse.decode = function decode(r, l) { @@ -7434,9 +7273,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -7448,6 +7284,106 @@ exports.ibc = $root.ibc = (() => { }; return QueryPacketAcknowledgementResponse; })(); + v1.QueryPacketAcknowledgementsRequest = (function () { + function QueryPacketAcknowledgementsRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryPacketAcknowledgementsRequest.prototype.portId = ""; + QueryPacketAcknowledgementsRequest.prototype.channelId = ""; + QueryPacketAcknowledgementsRequest.prototype.pagination = null; + QueryPacketAcknowledgementsRequest.create = function create(properties) { + return new QueryPacketAcknowledgementsRequest(properties); + }; + QueryPacketAcknowledgementsRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); + if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) + w.uint32(18).string(m.channelId); + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(26).fork()).ldelim(); + return w; + }; + QueryPacketAcknowledgementsRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.portId = r.string(); + break; + case 2: + m.channelId = r.string(); + break; + case 3: + m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketAcknowledgementsRequest; + })(); + v1.QueryPacketAcknowledgementsResponse = (function () { + function QueryPacketAcknowledgementsResponse(p) { + this.acknowledgements = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryPacketAcknowledgementsResponse.prototype.acknowledgements = $util.emptyArray; + QueryPacketAcknowledgementsResponse.prototype.pagination = null; + QueryPacketAcknowledgementsResponse.prototype.height = null; + QueryPacketAcknowledgementsResponse.create = function create(properties) { + return new QueryPacketAcknowledgementsResponse(properties); + }; + QueryPacketAcknowledgementsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.acknowledgements != null && m.acknowledgements.length) { + for (var i = 0; i < m.acknowledgements.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode( + m.acknowledgements[i], + w.uint32(10).fork(), + ).ldelim(); + } + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(26).fork()).ldelim(); + return w; + }; + QueryPacketAcknowledgementsResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.acknowledgements && m.acknowledgements.length)) m.acknowledgements = []; + m.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(r, r.uint32())); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); + break; + case 3: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketAcknowledgementsResponse; + })(); v1.QueryUnreceivedPacketsRequest = (function () { function QueryUnreceivedPacketsRequest(p) { this.packetCommitmentSequences = []; @@ -7553,36 +7489,35 @@ exports.ibc = $root.ibc = (() => { }; return QueryUnreceivedPacketsResponse; })(); - v1.QueryUnrelayedAcksRequest = (function () { - function QueryUnrelayedAcksRequest(p) { - this.packetCommitmentSequences = []; + v1.QueryUnreceivedAcksRequest = (function () { + function QueryUnreceivedAcksRequest(p) { + this.packetAckSequences = []; if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; } - QueryUnrelayedAcksRequest.prototype.portId = ""; - QueryUnrelayedAcksRequest.prototype.channelId = ""; - QueryUnrelayedAcksRequest.prototype.packetCommitmentSequences = $util.emptyArray; - QueryUnrelayedAcksRequest.create = function create(properties) { - return new QueryUnrelayedAcksRequest(properties); + QueryUnreceivedAcksRequest.prototype.portId = ""; + QueryUnreceivedAcksRequest.prototype.channelId = ""; + QueryUnreceivedAcksRequest.prototype.packetAckSequences = $util.emptyArray; + QueryUnreceivedAcksRequest.create = function create(properties) { + return new QueryUnreceivedAcksRequest(properties); }; - QueryUnrelayedAcksRequest.encode = function encode(m, w) { + QueryUnreceivedAcksRequest.encode = function encode(m, w) { if (!w) w = $Writer.create(); if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(10).string(m.portId); if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) w.uint32(18).string(m.channelId); - if (m.packetCommitmentSequences != null && m.packetCommitmentSequences.length) { + if (m.packetAckSequences != null && m.packetAckSequences.length) { w.uint32(26).fork(); - for (var i = 0; i < m.packetCommitmentSequences.length; ++i) - w.uint64(m.packetCommitmentSequences[i]); + for (var i = 0; i < m.packetAckSequences.length; ++i) w.uint64(m.packetAckSequences[i]); w.ldelim(); } return w; }; - QueryUnrelayedAcksRequest.decode = function decode(r, l) { + QueryUnreceivedAcksRequest.decode = function decode(r, l) { if (!(r instanceof $Reader)) r = $Reader.create(r); var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.QueryUnrelayedAcksRequest(); + m = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { @@ -7593,12 +7528,11 @@ exports.ibc = $root.ibc = (() => { m.channelId = r.string(); break; case 3: - if (!(m.packetCommitmentSequences && m.packetCommitmentSequences.length)) - m.packetCommitmentSequences = []; + if (!(m.packetAckSequences && m.packetAckSequences.length)) m.packetAckSequences = []; if ((t & 7) === 2) { var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.packetCommitmentSequences.push(r.uint64()); - } else m.packetCommitmentSequences.push(r.uint64()); + while (r.pos < c2) m.packetAckSequences.push(r.uint64()); + } else m.packetAckSequences.push(r.uint64()); break; default: r.skipType(t & 7); @@ -7607,21 +7541,21 @@ exports.ibc = $root.ibc = (() => { } return m; }; - return QueryUnrelayedAcksRequest; + return QueryUnreceivedAcksRequest; })(); - v1.QueryUnrelayedAcksResponse = (function () { - function QueryUnrelayedAcksResponse(p) { + v1.QueryUnreceivedAcksResponse = (function () { + function QueryUnreceivedAcksResponse(p) { this.sequences = []; if (p) for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; } - QueryUnrelayedAcksResponse.prototype.sequences = $util.emptyArray; - QueryUnrelayedAcksResponse.prototype.height = null; - QueryUnrelayedAcksResponse.create = function create(properties) { - return new QueryUnrelayedAcksResponse(properties); + QueryUnreceivedAcksResponse.prototype.sequences = $util.emptyArray; + QueryUnreceivedAcksResponse.prototype.height = null; + QueryUnreceivedAcksResponse.create = function create(properties) { + return new QueryUnreceivedAcksResponse(properties); }; - QueryUnrelayedAcksResponse.encode = function encode(m, w) { + QueryUnreceivedAcksResponse.encode = function encode(m, w) { if (!w) w = $Writer.create(); if (m.sequences != null && m.sequences.length) { w.uint32(10).fork(); @@ -7632,10 +7566,10 @@ exports.ibc = $root.ibc = (() => { $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(18).fork()).ldelim(); return w; }; - QueryUnrelayedAcksResponse.decode = function decode(r, l) { + QueryUnreceivedAcksResponse.decode = function decode(r, l) { if (!(r instanceof $Reader)) r = $Reader.create(r); var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.channel.v1.QueryUnrelayedAcksResponse(); + m = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { @@ -7656,7 +7590,7 @@ exports.ibc = $root.ibc = (() => { } return m; }; - return QueryUnrelayedAcksResponse; + return QueryUnreceivedAcksResponse; })(); v1.QueryNextSequenceReceiveRequest = (function () { function QueryNextSequenceReceiveRequest(p) { @@ -7708,7 +7642,6 @@ exports.ibc = $root.ibc = (() => { ? $util.Long.fromBits(0, 0, true) : 0; QueryNextSequenceReceiveResponse.prototype.proof = $util.newBuffer([]); - QueryNextSequenceReceiveResponse.prototype.proofPath = ""; QueryNextSequenceReceiveResponse.prototype.proofHeight = null; QueryNextSequenceReceiveResponse.create = function create(properties) { return new QueryNextSequenceReceiveResponse(properties); @@ -7718,10 +7651,8 @@ exports.ibc = $root.ibc = (() => { if (m.nextSequenceReceive != null && Object.hasOwnProperty.call(m, "nextSequenceReceive")) w.uint32(8).uint64(m.nextSequenceReceive); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryNextSequenceReceiveResponse.decode = function decode(r, l) { @@ -7738,9 +7669,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -7760,6 +7688,386 @@ exports.ibc = $root.ibc = (() => { const client = {}; client.v1 = (function () { const v1 = {}; + v1.Msg = (function () { + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + Msg.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Msg.prototype.createClient = function createClient(request, callback) { + return this.rpcCall( + createClient, + $root.ibc.core.client.v1.MsgCreateClient, + $root.ibc.core.client.v1.MsgCreateClientResponse, + request, + callback, + ); + }), + "name", + { value: "CreateClient" }, + ); + Object.defineProperty( + (Msg.prototype.updateClient = function updateClient(request, callback) { + return this.rpcCall( + updateClient, + $root.ibc.core.client.v1.MsgUpdateClient, + $root.ibc.core.client.v1.MsgUpdateClientResponse, + request, + callback, + ); + }), + "name", + { value: "UpdateClient" }, + ); + Object.defineProperty( + (Msg.prototype.upgradeClient = function upgradeClient(request, callback) { + return this.rpcCall( + upgradeClient, + $root.ibc.core.client.v1.MsgUpgradeClient, + $root.ibc.core.client.v1.MsgUpgradeClientResponse, + request, + callback, + ); + }), + "name", + { value: "UpgradeClient" }, + ); + Object.defineProperty( + (Msg.prototype.submitMisbehaviour = function submitMisbehaviour(request, callback) { + return this.rpcCall( + submitMisbehaviour, + $root.ibc.core.client.v1.MsgSubmitMisbehaviour, + $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse, + request, + callback, + ); + }), + "name", + { value: "SubmitMisbehaviour" }, + ); + return Msg; + })(); + v1.MsgCreateClient = (function () { + function MsgCreateClient(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgCreateClient.prototype.clientId = ""; + MsgCreateClient.prototype.clientState = null; + MsgCreateClient.prototype.consensusState = null; + MsgCreateClient.prototype.signer = ""; + MsgCreateClient.create = function create(properties) { + return new MsgCreateClient(properties); + }; + MsgCreateClient.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) + w.uint32(10).string(m.clientId); + if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) + $root.google.protobuf.Any.encode(m.clientState, w.uint32(18).fork()).ldelim(); + if (m.consensusState != null && Object.hasOwnProperty.call(m, "consensusState")) + $root.google.protobuf.Any.encode(m.consensusState, w.uint32(26).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); + return w; + }; + MsgCreateClient.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgCreateClient(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.consensusState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 4: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgCreateClient; + })(); + v1.MsgCreateClientResponse = (function () { + function MsgCreateClientResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgCreateClientResponse.create = function create(properties) { + return new MsgCreateClientResponse(properties); + }; + MsgCreateClientResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgCreateClientResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgCreateClientResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgCreateClientResponse; + })(); + v1.MsgUpdateClient = (function () { + function MsgUpdateClient(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgUpdateClient.prototype.clientId = ""; + MsgUpdateClient.prototype.header = null; + MsgUpdateClient.prototype.signer = ""; + MsgUpdateClient.create = function create(properties) { + return new MsgUpdateClient(properties); + }; + MsgUpdateClient.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) + w.uint32(10).string(m.clientId); + if (m.header != null && Object.hasOwnProperty.call(m, "header")) + $root.google.protobuf.Any.encode(m.header, w.uint32(18).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(26).string(m.signer); + return w; + }; + MsgUpdateClient.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgUpdateClient(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.header = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpdateClient; + })(); + v1.MsgUpdateClientResponse = (function () { + function MsgUpdateClientResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgUpdateClientResponse.create = function create(properties) { + return new MsgUpdateClientResponse(properties); + }; + MsgUpdateClientResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgUpdateClientResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgUpdateClientResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpdateClientResponse; + })(); + v1.MsgUpgradeClient = (function () { + function MsgUpgradeClient(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgUpgradeClient.prototype.clientId = ""; + MsgUpgradeClient.prototype.clientState = null; + MsgUpgradeClient.prototype.upgradeHeight = null; + MsgUpgradeClient.prototype.proofUpgrade = $util.newBuffer([]); + MsgUpgradeClient.prototype.signer = ""; + MsgUpgradeClient.create = function create(properties) { + return new MsgUpgradeClient(properties); + }; + MsgUpgradeClient.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) + w.uint32(10).string(m.clientId); + if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) + $root.google.protobuf.Any.encode(m.clientState, w.uint32(18).fork()).ldelim(); + if (m.upgradeHeight != null && Object.hasOwnProperty.call(m, "upgradeHeight")) + $root.ibc.core.client.v1.Height.encode(m.upgradeHeight, w.uint32(26).fork()).ldelim(); + if (m.proofUpgrade != null && Object.hasOwnProperty.call(m, "proofUpgrade")) + w.uint32(34).bytes(m.proofUpgrade); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); + return w; + }; + MsgUpgradeClient.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgUpgradeClient(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.upgradeHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 4: + m.proofUpgrade = r.bytes(); + break; + case 5: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpgradeClient; + })(); + v1.MsgUpgradeClientResponse = (function () { + function MsgUpgradeClientResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgUpgradeClientResponse.create = function create(properties) { + return new MsgUpgradeClientResponse(properties); + }; + MsgUpgradeClientResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgUpgradeClientResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpgradeClientResponse; + })(); + v1.MsgSubmitMisbehaviour = (function () { + function MsgSubmitMisbehaviour(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgSubmitMisbehaviour.prototype.clientId = ""; + MsgSubmitMisbehaviour.prototype.misbehaviour = null; + MsgSubmitMisbehaviour.prototype.signer = ""; + MsgSubmitMisbehaviour.create = function create(properties) { + return new MsgSubmitMisbehaviour(properties); + }; + MsgSubmitMisbehaviour.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) + w.uint32(10).string(m.clientId); + if (m.misbehaviour != null && Object.hasOwnProperty.call(m, "misbehaviour")) + $root.google.protobuf.Any.encode(m.misbehaviour, w.uint32(18).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(26).string(m.signer); + return w; + }; + MsgSubmitMisbehaviour.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.misbehaviour = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgSubmitMisbehaviour; + })(); + v1.MsgSubmitMisbehaviourResponse = (function () { + function MsgSubmitMisbehaviourResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgSubmitMisbehaviourResponse.create = function create(properties) { + return new MsgSubmitMisbehaviourResponse(properties); + }; + MsgSubmitMisbehaviourResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgSubmitMisbehaviourResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgSubmitMisbehaviourResponse; + })(); v1.IdentifiedClientState = (function () { function IdentifiedClientState(p) { if (p) @@ -7944,208 +8252,6 @@ exports.ibc = $root.ibc = (() => { }; return ClientUpdateProposal; })(); - v1.MsgCreateClient = (function () { - function MsgCreateClient(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgCreateClient.prototype.clientId = ""; - MsgCreateClient.prototype.clientState = null; - MsgCreateClient.prototype.consensusState = null; - MsgCreateClient.prototype.signer = ""; - MsgCreateClient.create = function create(properties) { - return new MsgCreateClient(properties); - }; - MsgCreateClient.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) - $root.google.protobuf.Any.encode(m.clientState, w.uint32(18).fork()).ldelim(); - if (m.consensusState != null && Object.hasOwnProperty.call(m, "consensusState")) - $root.google.protobuf.Any.encode(m.consensusState, w.uint32(26).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); - return w; - }; - MsgCreateClient.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.client.v1.MsgCreateClient(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 3: - m.consensusState = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 4: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgCreateClient; - })(); - v1.MsgUpdateClient = (function () { - function MsgUpdateClient(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgUpdateClient.prototype.clientId = ""; - MsgUpdateClient.prototype.header = null; - MsgUpdateClient.prototype.signer = ""; - MsgUpdateClient.create = function create(properties) { - return new MsgUpdateClient(properties); - }; - MsgUpdateClient.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.header != null && Object.hasOwnProperty.call(m, "header")) - $root.google.protobuf.Any.encode(m.header, w.uint32(18).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(26).string(m.signer); - return w; - }; - MsgUpdateClient.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.client.v1.MsgUpdateClient(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.header = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 3: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgUpdateClient; - })(); - v1.MsgUpgradeClient = (function () { - function MsgUpgradeClient(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgUpgradeClient.prototype.clientId = ""; - MsgUpgradeClient.prototype.clientState = null; - MsgUpgradeClient.prototype.upgradeHeight = null; - MsgUpgradeClient.prototype.proofUpgrade = $util.newBuffer([]); - MsgUpgradeClient.prototype.signer = ""; - MsgUpgradeClient.create = function create(properties) { - return new MsgUpgradeClient(properties); - }; - MsgUpgradeClient.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) - $root.google.protobuf.Any.encode(m.clientState, w.uint32(18).fork()).ldelim(); - if (m.upgradeHeight != null && Object.hasOwnProperty.call(m, "upgradeHeight")) - $root.ibc.core.client.v1.Height.encode(m.upgradeHeight, w.uint32(26).fork()).ldelim(); - if (m.proofUpgrade != null && Object.hasOwnProperty.call(m, "proofUpgrade")) - w.uint32(34).bytes(m.proofUpgrade); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); - return w; - }; - MsgUpgradeClient.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.client.v1.MsgUpgradeClient(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 3: - m.upgradeHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 4: - m.proofUpgrade = r.bytes(); - break; - case 5: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgUpgradeClient; - })(); - v1.MsgSubmitMisbehaviour = (function () { - function MsgSubmitMisbehaviour(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgSubmitMisbehaviour.prototype.clientId = ""; - MsgSubmitMisbehaviour.prototype.misbehaviour = null; - MsgSubmitMisbehaviour.prototype.signer = ""; - MsgSubmitMisbehaviour.create = function create(properties) { - return new MsgSubmitMisbehaviour(properties); - }; - MsgSubmitMisbehaviour.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.misbehaviour != null && Object.hasOwnProperty.call(m, "misbehaviour")) - $root.google.protobuf.Any.encode(m.misbehaviour, w.uint32(18).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(26).string(m.signer); - return w; - }; - MsgSubmitMisbehaviour.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.misbehaviour = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 3: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgSubmitMisbehaviour; - })(); v1.Height = (function () { function Height(p) { if (p) @@ -8427,312 +8533,6 @@ exports.ibc = $root.ibc = (() => { const connection = {}; connection.v1 = (function () { const v1 = {}; - v1.MsgConnectionOpenInit = (function () { - function MsgConnectionOpenInit(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgConnectionOpenInit.prototype.clientId = ""; - MsgConnectionOpenInit.prototype.connectionId = ""; - MsgConnectionOpenInit.prototype.counterparty = null; - MsgConnectionOpenInit.prototype.version = ""; - MsgConnectionOpenInit.prototype.signer = ""; - MsgConnectionOpenInit.create = function create(properties) { - return new MsgConnectionOpenInit(properties); - }; - MsgConnectionOpenInit.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(18).string(m.connectionId); - if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(m.counterparty, w.uint32(26).fork()).ldelim(); - if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(34).string(m.version); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); - return w; - }; - MsgConnectionOpenInit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.connectionId = r.string(); - break; - case 3: - m.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(r, r.uint32()); - break; - case 4: - m.version = r.string(); - break; - case 5: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgConnectionOpenInit; - })(); - v1.MsgConnectionOpenTry = (function () { - function MsgConnectionOpenTry(p) { - this.counterpartyVersions = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgConnectionOpenTry.prototype.clientId = ""; - MsgConnectionOpenTry.prototype.desiredConnectionId = ""; - MsgConnectionOpenTry.prototype.counterpartyChosenConnectionId = ""; - MsgConnectionOpenTry.prototype.clientState = null; - MsgConnectionOpenTry.prototype.counterparty = null; - MsgConnectionOpenTry.prototype.counterpartyVersions = $util.emptyArray; - MsgConnectionOpenTry.prototype.proofHeight = null; - MsgConnectionOpenTry.prototype.proofInit = $util.newBuffer([]); - MsgConnectionOpenTry.prototype.proofClient = $util.newBuffer([]); - MsgConnectionOpenTry.prototype.proofConsensus = $util.newBuffer([]); - MsgConnectionOpenTry.prototype.consensusHeight = null; - MsgConnectionOpenTry.prototype.signer = ""; - MsgConnectionOpenTry.create = function create(properties) { - return new MsgConnectionOpenTry(properties); - }; - MsgConnectionOpenTry.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.desiredConnectionId != null && Object.hasOwnProperty.call(m, "desiredConnectionId")) - w.uint32(18).string(m.desiredConnectionId); - if ( - m.counterpartyChosenConnectionId != null && - Object.hasOwnProperty.call(m, "counterpartyChosenConnectionId") - ) - w.uint32(26).string(m.counterpartyChosenConnectionId); - if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) - $root.google.protobuf.Any.encode(m.clientState, w.uint32(34).fork()).ldelim(); - if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(m.counterparty, w.uint32(42).fork()).ldelim(); - if (m.counterpartyVersions != null && m.counterpartyVersions.length) { - for (var i = 0; i < m.counterpartyVersions.length; ++i) - w.uint32(50).string(m.counterpartyVersions[i]); - } - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(58).fork()).ldelim(); - if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) - w.uint32(66).bytes(m.proofInit); - if (m.proofClient != null && Object.hasOwnProperty.call(m, "proofClient")) - w.uint32(74).bytes(m.proofClient); - if (m.proofConsensus != null && Object.hasOwnProperty.call(m, "proofConsensus")) - w.uint32(82).bytes(m.proofConsensus); - if (m.consensusHeight != null && Object.hasOwnProperty.call(m, "consensusHeight")) - $root.ibc.core.client.v1.Height.encode(m.consensusHeight, w.uint32(90).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(98).string(m.signer); - return w; - }; - MsgConnectionOpenTry.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.desiredConnectionId = r.string(); - break; - case 3: - m.counterpartyChosenConnectionId = r.string(); - break; - case 4: - m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 5: - m.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(r, r.uint32()); - break; - case 6: - if (!(m.counterpartyVersions && m.counterpartyVersions.length)) m.counterpartyVersions = []; - m.counterpartyVersions.push(r.string()); - break; - case 7: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 8: - m.proofInit = r.bytes(); - break; - case 9: - m.proofClient = r.bytes(); - break; - case 10: - m.proofConsensus = r.bytes(); - break; - case 11: - m.consensusHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 12: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgConnectionOpenTry; - })(); - v1.MsgConnectionOpenAck = (function () { - function MsgConnectionOpenAck(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgConnectionOpenAck.prototype.connectionId = ""; - MsgConnectionOpenAck.prototype.counterpartyConnectionId = ""; - MsgConnectionOpenAck.prototype.version = ""; - MsgConnectionOpenAck.prototype.clientState = null; - MsgConnectionOpenAck.prototype.proofHeight = null; - MsgConnectionOpenAck.prototype.proofTry = $util.newBuffer([]); - MsgConnectionOpenAck.prototype.proofClient = $util.newBuffer([]); - MsgConnectionOpenAck.prototype.proofConsensus = $util.newBuffer([]); - MsgConnectionOpenAck.prototype.consensusHeight = null; - MsgConnectionOpenAck.prototype.signer = ""; - MsgConnectionOpenAck.create = function create(properties) { - return new MsgConnectionOpenAck(properties); - }; - MsgConnectionOpenAck.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(10).string(m.connectionId); - if ( - m.counterpartyConnectionId != null && - Object.hasOwnProperty.call(m, "counterpartyConnectionId") - ) - w.uint32(18).string(m.counterpartyConnectionId); - if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(26).string(m.version); - if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) - $root.google.protobuf.Any.encode(m.clientState, w.uint32(34).fork()).ldelim(); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(42).fork()).ldelim(); - if (m.proofTry != null && Object.hasOwnProperty.call(m, "proofTry")) - w.uint32(50).bytes(m.proofTry); - if (m.proofClient != null && Object.hasOwnProperty.call(m, "proofClient")) - w.uint32(58).bytes(m.proofClient); - if (m.proofConsensus != null && Object.hasOwnProperty.call(m, "proofConsensus")) - w.uint32(66).bytes(m.proofConsensus); - if (m.consensusHeight != null && Object.hasOwnProperty.call(m, "consensusHeight")) - $root.ibc.core.client.v1.Height.encode(m.consensusHeight, w.uint32(74).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(82).string(m.signer); - return w; - }; - MsgConnectionOpenAck.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.connectionId = r.string(); - break; - case 2: - m.counterpartyConnectionId = r.string(); - break; - case 3: - m.version = r.string(); - break; - case 4: - m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 5: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 6: - m.proofTry = r.bytes(); - break; - case 7: - m.proofClient = r.bytes(); - break; - case 8: - m.proofConsensus = r.bytes(); - break; - case 9: - m.consensusHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 10: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgConnectionOpenAck; - })(); - v1.MsgConnectionOpenConfirm = (function () { - function MsgConnectionOpenConfirm(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgConnectionOpenConfirm.prototype.connectionId = ""; - MsgConnectionOpenConfirm.prototype.proofAck = $util.newBuffer([]); - MsgConnectionOpenConfirm.prototype.proofHeight = null; - MsgConnectionOpenConfirm.prototype.signer = ""; - MsgConnectionOpenConfirm.create = function create(properties) { - return new MsgConnectionOpenConfirm(properties); - }; - MsgConnectionOpenConfirm.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(10).string(m.connectionId); - if (m.proofAck != null && Object.hasOwnProperty.call(m, "proofAck")) - w.uint32(18).bytes(m.proofAck); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); - return w; - }; - MsgConnectionOpenConfirm.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.connectionId = r.string(); - break; - case 2: - m.proofAck = r.bytes(); - break; - case 3: - m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); - break; - case 4: - m.signer = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgConnectionOpenConfirm; - })(); v1.ConnectionEnd = (function () { function ConnectionEnd(p) { this.versions = []; @@ -8752,7 +8552,8 @@ exports.ibc = $root.ibc = (() => { if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) w.uint32(10).string(m.clientId); if (m.versions != null && m.versions.length) { - for (var i = 0; i < m.versions.length; ++i) w.uint32(18).string(m.versions[i]); + for (var i = 0; i < m.versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(m.versions[i], w.uint32(18).fork()).ldelim(); } if (m.state != null && Object.hasOwnProperty.call(m, "state")) w.uint32(24).int32(m.state); if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) @@ -8771,7 +8572,7 @@ exports.ibc = $root.ibc = (() => { break; case 2: if (!(m.versions && m.versions.length)) m.versions = []; - m.versions.push(r.string()); + m.versions.push($root.ibc.core.connection.v1.Version.decode(r, r.uint32())); break; case 3: m.state = r.int32(); @@ -8809,7 +8610,8 @@ exports.ibc = $root.ibc = (() => { if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) w.uint32(18).string(m.clientId); if (m.versions != null && m.versions.length) { - for (var i = 0; i < m.versions.length; ++i) w.uint32(26).string(m.versions[i]); + for (var i = 0; i < m.versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(m.versions[i], w.uint32(26).fork()).ldelim(); } if (m.state != null && Object.hasOwnProperty.call(m, "state")) w.uint32(32).int32(m.state); if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) @@ -8831,7 +8633,7 @@ exports.ibc = $root.ibc = (() => { break; case 3: if (!(m.versions && m.versions.length)) m.versions = []; - m.versions.push(r.string()); + m.versions.push($root.ibc.core.connection.v1.Version.decode(r, r.uint32())); break; case 4: m.state = r.int32(); @@ -9148,7 +8950,6 @@ exports.ibc = $root.ibc = (() => { } QueryConnectionResponse.prototype.connection = null; QueryConnectionResponse.prototype.proof = $util.newBuffer([]); - QueryConnectionResponse.prototype.proofPath = ""; QueryConnectionResponse.prototype.proofHeight = null; QueryConnectionResponse.create = function create(properties) { return new QueryConnectionResponse(properties); @@ -9158,10 +8959,8 @@ exports.ibc = $root.ibc = (() => { if (m.connection != null && Object.hasOwnProperty.call(m, "connection")) $root.ibc.core.connection.v1.ConnectionEnd.encode(m.connection, w.uint32(10).fork()).ldelim(); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryConnectionResponse.decode = function decode(r, l) { @@ -9178,9 +8977,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -9325,7 +9121,6 @@ exports.ibc = $root.ibc = (() => { } QueryClientConnectionsResponse.prototype.connectionPaths = $util.emptyArray; QueryClientConnectionsResponse.prototype.proof = $util.newBuffer([]); - QueryClientConnectionsResponse.prototype.proofPath = ""; QueryClientConnectionsResponse.prototype.proofHeight = null; QueryClientConnectionsResponse.create = function create(properties) { return new QueryClientConnectionsResponse(properties); @@ -9336,10 +9131,8 @@ exports.ibc = $root.ibc = (() => { for (var i = 0; i < m.connectionPaths.length; ++i) w.uint32(10).string(m.connectionPaths[i]); } if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryClientConnectionsResponse.decode = function decode(r, l) { @@ -9357,9 +9150,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -9414,7 +9204,6 @@ exports.ibc = $root.ibc = (() => { } QueryConnectionClientStateResponse.prototype.identifiedClientState = null; QueryConnectionClientStateResponse.prototype.proof = $util.newBuffer([]); - QueryConnectionClientStateResponse.prototype.proofPath = ""; QueryConnectionClientStateResponse.prototype.proofHeight = null; QueryConnectionClientStateResponse.create = function create(properties) { return new QueryConnectionClientStateResponse(properties); @@ -9427,10 +9216,8 @@ exports.ibc = $root.ibc = (() => { w.uint32(10).fork(), ).ldelim(); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); return w; }; QueryConnectionClientStateResponse.decode = function decode(r, l) { @@ -9450,9 +9237,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 3: - m.proofPath = r.string(); - break; - case 4: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -9524,7 +9308,6 @@ exports.ibc = $root.ibc = (() => { QueryConnectionConsensusStateResponse.prototype.consensusState = null; QueryConnectionConsensusStateResponse.prototype.clientId = ""; QueryConnectionConsensusStateResponse.prototype.proof = $util.newBuffer([]); - QueryConnectionConsensusStateResponse.prototype.proofPath = ""; QueryConnectionConsensusStateResponse.prototype.proofHeight = null; QueryConnectionConsensusStateResponse.create = function create(properties) { return new QueryConnectionConsensusStateResponse(properties); @@ -9536,10 +9319,8 @@ exports.ibc = $root.ibc = (() => { if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) w.uint32(18).string(m.clientId); if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(26).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(34).string(m.proofPath); if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(42).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); return w; }; QueryConnectionConsensusStateResponse.decode = function decode(r, l) { @@ -9559,9 +9340,6 @@ exports.ibc = $root.ibc = (() => { m.proof = r.bytes(); break; case 4: - m.proofPath = r.string(); - break; - case 5: m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); break; default: @@ -10163,7 +9941,6 @@ exports.tendermint = $root.tendermint = (() => { if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; } Data.prototype.txs = $util.emptyArray; - Data.prototype.hash = $util.newBuffer([]); Data.create = function create(properties) { return new Data(properties); }; @@ -10172,7 +9949,6 @@ exports.tendermint = $root.tendermint = (() => { if (m.txs != null && m.txs.length) { for (var i = 0; i < m.txs.length; ++i) w.uint32(10).bytes(m.txs[i]); } - if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(18).bytes(m.hash); return w; }; Data.decode = function decode(r, l) { @@ -10186,9 +9962,6 @@ exports.tendermint = $root.tendermint = (() => { if (!(m.txs && m.txs.length)) m.txs = []; m.txs.push(r.bytes()); break; - case 2: - m.hash = r.bytes(); - break; default: r.skipType(t & 7); break; @@ -10283,8 +10056,6 @@ exports.tendermint = $root.tendermint = (() => { Commit.prototype.round = 0; Commit.prototype.blockId = null; Commit.prototype.signatures = $util.emptyArray; - Commit.prototype.hash = $util.newBuffer([]); - Commit.prototype.bitArray = null; Commit.create = function create(properties) { return new Commit(properties); }; @@ -10298,9 +10069,6 @@ exports.tendermint = $root.tendermint = (() => { for (var i = 0; i < m.signatures.length; ++i) $root.tendermint.types.CommitSig.encode(m.signatures[i], w.uint32(34).fork()).ldelim(); } - if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(42).bytes(m.hash); - if (m.bitArray != null && Object.hasOwnProperty.call(m, "bitArray")) - $root.tendermint.libs.bits.BitArray.encode(m.bitArray, w.uint32(50).fork()).ldelim(); return w; }; Commit.decode = function decode(r, l) { @@ -10323,12 +10091,6 @@ exports.tendermint = $root.tendermint = (() => { if (!(m.signatures && m.signatures.length)) m.signatures = []; m.signatures.push($root.tendermint.types.CommitSig.decode(r, r.uint32())); break; - case 5: - m.hash = r.bytes(); - break; - case 6: - m.bitArray = $root.tendermint.libs.bits.BitArray.decode(r, r.uint32()); - break; default: r.skipType(t & 7); break; diff --git a/packages/stargate/src/queries/ibc.spec.ts b/packages/stargate/src/queries/ibc.spec.ts index 7c735ea6..73d7131a 100644 --- a/packages/stargate/src/queries/ibc.spec.ts +++ b/packages/stargate/src/queries/ibc.spec.ts @@ -101,13 +101,13 @@ describe("IbcExtension", () => { }); }); - describe("unrelayedAcks", () => { + describe("unreceivedAcks", () => { it("can be called", async () => { pending("Fails with 'Query failed with (1): internal'. Make it work."); pendingWithoutSimapp(); const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl); - const response = await client.ibc.unverified.unrelayedAcks("foo", "bar", [0, 1]); + const response = await client.ibc.unverified.unreceivedAcks("foo", "bar", [0, 1]); expect(response).toBeTruthy(); // TODO: implement checks tmClient.disconnect(); diff --git a/packages/stargate/src/queries/ibc.ts b/packages/stargate/src/queries/ibc.ts index ccd9c11a..ae993bb4 100644 --- a/packages/stargate/src/queries/ibc.ts +++ b/packages/stargate/src/queries/ibc.ts @@ -49,11 +49,11 @@ export interface IbcExtension { channelId: string, packetCommitmentSequences: readonly number[], ) => Promise; - readonly unrelayedAcks: ( + readonly unreceivedAcks: ( portId: string, channelId: string, packetCommitmentSequences: readonly number[], - ) => Promise; + ) => Promise; readonly nextSequenceReceive: ( portId: string, channelId: string, @@ -174,15 +174,11 @@ export function setupIbcExtension(base: QueryClient): IbcExtension { }); return toObject(response); }, - unrelayedAcks: async ( - portId: string, - channelId: string, - packetCommitmentSequences: readonly number[], - ) => { - const response = await channelQuerySerice.unrelayedAcks({ + unreceivedAcks: async (portId: string, channelId: string, packetAckSequences: readonly number[]) => { + const response = await channelQuerySerice.unreceivedAcks({ portId: portId, channelId: channelId, - packetCommitmentSequences: packetCommitmentSequences.map((s) => Long.fromNumber(s)), + packetAckSequences: packetAckSequences.map((s) => Long.fromNumber(s)), }); return toObject(response); }, diff --git a/packages/stargate/types/codec/generated/codecimpl.d.ts b/packages/stargate/types/codec/generated/codecimpl.d.ts index b72fc457..b4c9723d 100644 --- a/packages/stargate/types/codec/generated/codecimpl.d.ts +++ b/packages/stargate/types/codec/generated/codecimpl.d.ts @@ -1520,6 +1520,85 @@ export namespace cosmos { ): cosmos.bank.v1beta1.QueryParamsResponse; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSendResponse + */ + public send( + request: cosmos.bank.v1beta1.IMsgSend, + callback: cosmos.bank.v1beta1.Msg.SendCallback, + ): void; + + /** + * Calls Send. + * @param request MsgSend message or plain object + * @returns Promise + */ + public send(request: cosmos.bank.v1beta1.IMsgSend): Promise; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @param callback Node-style callback called with the error, if any, and MsgMultiSendResponse + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + callback: cosmos.bank.v1beta1.Msg.MultiSendCallback, + ): void; + + /** + * Calls MultiSend. + * @param request MsgMultiSend message or plain object + * @returns Promise + */ + public multiSend( + request: cosmos.bank.v1beta1.IMsgMultiSend, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#send}. + * @param error Error, if any + * @param [response] MsgSendResponse + */ + type SendCallback = (error: Error | null, response?: cosmos.bank.v1beta1.MsgSendResponse) => void; + + /** + * Callback as used by {@link cosmos.bank.v1beta1.Msg#multiSend}. + * @param error Error, if any + * @param [response] MsgMultiSendResponse + */ + type MultiSendCallback = ( + error: Error | null, + response?: cosmos.bank.v1beta1.MsgMultiSendResponse, + ) => void; + } + /** Properties of a MsgSend. */ interface IMsgSend { /** MsgSend fromAddress */ @@ -1575,6 +1654,48 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgSend; } + /** Properties of a MsgSendResponse. */ + interface IMsgSendResponse {} + + /** Represents a MsgSendResponse. */ + class MsgSendResponse implements IMsgSendResponse { + /** + * Constructs a new MsgSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgSendResponse); + + /** + * Creates a new MsgSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgSendResponse, + ): cosmos.bank.v1beta1.MsgSendResponse; + + /** + * Encodes the specified MsgSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgSendResponse.verify|verify} messages. + * @param m MsgSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.v1beta1.IMsgSendResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgSendResponse; + } + /** Properties of a MsgMultiSend. */ interface IMsgMultiSend { /** MsgMultiSend inputs */ @@ -1625,6 +1746,51 @@ export namespace cosmos { */ public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.v1beta1.MsgMultiSend; } + + /** Properties of a MsgMultiSendResponse. */ + interface IMsgMultiSendResponse {} + + /** Represents a MsgMultiSendResponse. */ + class MsgMultiSendResponse implements IMsgMultiSendResponse { + /** + * Constructs a new MsgMultiSendResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IMsgMultiSendResponse); + + /** + * Creates a new MsgMultiSendResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMultiSendResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IMsgMultiSendResponse, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + + /** + * Encodes the specified MsgMultiSendResponse message. Does not implicitly {@link cosmos.bank.v1beta1.MsgMultiSendResponse.verify|verify} messages. + * @param m MsgMultiSendResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IMsgMultiSendResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMultiSendResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMultiSendResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.v1beta1.MsgMultiSendResponse; + } } } @@ -2409,13 +2575,13 @@ export namespace cosmos { operatorAddress?: string | null; /** Validator consensusPubkey */ - consensusPubkey?: string | null; + consensusPubkey?: google.protobuf.IAny | null; /** Validator jailed */ jailed?: boolean | null; /** Validator status */ - status?: number | null; + status?: cosmos.staking.v1beta1.BondStatus | null; /** Validator tokens */ tokens?: string | null; @@ -2451,13 +2617,13 @@ export namespace cosmos { public operatorAddress: string; /** Validator consensusPubkey. */ - public consensusPubkey: string; + public consensusPubkey?: google.protobuf.IAny | null; /** Validator jailed. */ public jailed: boolean; /** Validator status. */ - public status: number; + public status: cosmos.staking.v1beta1.BondStatus; /** Validator tokens. */ public tokens: string; @@ -2508,6 +2674,14 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.staking.v1beta1.Validator; } + /** BondStatus enum. */ + enum BondStatus { + BOND_STATUS_UNSPECIFIED = 0, + BOND_STATUS_UNBONDED = 1, + BOND_STATUS_UNBONDING = 2, + BOND_STATUS_BONDED = 3, + } + /** Properties of a ValAddresses. */ interface IValAddresses { /** ValAddresses addresses */ @@ -3364,6 +3538,177 @@ export namespace cosmos { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.staking.v1beta1.Pool; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls CreateValidator. + * @param request MsgCreateValidator message or plain object + * @param callback Node-style callback called with the error, if any, and MsgCreateValidatorResponse + */ + public createValidator( + request: cosmos.staking.v1beta1.IMsgCreateValidator, + callback: cosmos.staking.v1beta1.Msg.CreateValidatorCallback, + ): void; + + /** + * Calls CreateValidator. + * @param request MsgCreateValidator message or plain object + * @returns Promise + */ + public createValidator( + request: cosmos.staking.v1beta1.IMsgCreateValidator, + ): Promise; + + /** + * Calls EditValidator. + * @param request MsgEditValidator message or plain object + * @param callback Node-style callback called with the error, if any, and MsgEditValidatorResponse + */ + public editValidator( + request: cosmos.staking.v1beta1.IMsgEditValidator, + callback: cosmos.staking.v1beta1.Msg.EditValidatorCallback, + ): void; + + /** + * Calls EditValidator. + * @param request MsgEditValidator message or plain object + * @returns Promise + */ + public editValidator( + request: cosmos.staking.v1beta1.IMsgEditValidator, + ): Promise; + + /** + * Calls Delegate. + * @param request MsgDelegate message or plain object + * @param callback Node-style callback called with the error, if any, and MsgDelegateResponse + */ + public delegate( + request: cosmos.staking.v1beta1.IMsgDelegate, + callback: cosmos.staking.v1beta1.Msg.DelegateCallback, + ): void; + + /** + * Calls Delegate. + * @param request MsgDelegate message or plain object + * @returns Promise + */ + public delegate( + request: cosmos.staking.v1beta1.IMsgDelegate, + ): Promise; + + /** + * Calls BeginRedelegate. + * @param request MsgBeginRedelegate message or plain object + * @param callback Node-style callback called with the error, if any, and MsgBeginRedelegateResponse + */ + public beginRedelegate( + request: cosmos.staking.v1beta1.IMsgBeginRedelegate, + callback: cosmos.staking.v1beta1.Msg.BeginRedelegateCallback, + ): void; + + /** + * Calls BeginRedelegate. + * @param request MsgBeginRedelegate message or plain object + * @returns Promise + */ + public beginRedelegate( + request: cosmos.staking.v1beta1.IMsgBeginRedelegate, + ): Promise; + + /** + * Calls Undelegate. + * @param request MsgUndelegate message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUndelegateResponse + */ + public undelegate( + request: cosmos.staking.v1beta1.IMsgUndelegate, + callback: cosmos.staking.v1beta1.Msg.UndelegateCallback, + ): void; + + /** + * Calls Undelegate. + * @param request MsgUndelegate message or plain object + * @returns Promise + */ + public undelegate( + request: cosmos.staking.v1beta1.IMsgUndelegate, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#createValidator}. + * @param error Error, if any + * @param [response] MsgCreateValidatorResponse + */ + type CreateValidatorCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgCreateValidatorResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#editValidator}. + * @param error Error, if any + * @param [response] MsgEditValidatorResponse + */ + type EditValidatorCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgEditValidatorResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#delegate}. + * @param error Error, if any + * @param [response] MsgDelegateResponse + */ + type DelegateCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgDelegateResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#beginRedelegate}. + * @param error Error, if any + * @param [response] MsgBeginRedelegateResponse + */ + type BeginRedelegateCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgBeginRedelegateResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.staking.v1beta1.Msg#undelegate}. + * @param error Error, if any + * @param [response] MsgUndelegateResponse + */ + type UndelegateCallback = ( + error: Error | null, + response?: cosmos.staking.v1beta1.MsgUndelegateResponse, + ) => void; + } + /** Properties of a MsgCreateValidator. */ interface IMsgCreateValidator { /** MsgCreateValidator description */ @@ -3382,7 +3727,7 @@ export namespace cosmos { validatorAddress?: string | null; /** MsgCreateValidator pubkey */ - pubkey?: string | null; + pubkey?: google.protobuf.IAny | null; /** MsgCreateValidator value */ value?: cosmos.base.v1beta1.ICoin | null; @@ -3412,7 +3757,7 @@ export namespace cosmos { public validatorAddress: string; /** MsgCreateValidator pubkey. */ - public pubkey: string; + public pubkey?: google.protobuf.IAny | null; /** MsgCreateValidator value. */ public value?: cosmos.base.v1beta1.ICoin | null; @@ -3451,6 +3796,51 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgCreateValidator; } + /** Properties of a MsgCreateValidatorResponse. */ + interface IMsgCreateValidatorResponse {} + + /** Represents a MsgCreateValidatorResponse. */ + class MsgCreateValidatorResponse implements IMsgCreateValidatorResponse { + /** + * Constructs a new MsgCreateValidatorResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgCreateValidatorResponse); + + /** + * Creates a new MsgCreateValidatorResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateValidatorResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgCreateValidatorResponse, + ): cosmos.staking.v1beta1.MsgCreateValidatorResponse; + + /** + * Encodes the specified MsgCreateValidatorResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgCreateValidatorResponse.verify|verify} messages. + * @param m MsgCreateValidatorResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgCreateValidatorResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateValidatorResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgCreateValidatorResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgCreateValidatorResponse; + } + /** Properties of a MsgEditValidator. */ interface IMsgEditValidator { /** MsgEditValidator description */ @@ -3520,6 +3910,51 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgEditValidator; } + /** Properties of a MsgEditValidatorResponse. */ + interface IMsgEditValidatorResponse {} + + /** Represents a MsgEditValidatorResponse. */ + class MsgEditValidatorResponse implements IMsgEditValidatorResponse { + /** + * Constructs a new MsgEditValidatorResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgEditValidatorResponse); + + /** + * Creates a new MsgEditValidatorResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgEditValidatorResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgEditValidatorResponse, + ): cosmos.staking.v1beta1.MsgEditValidatorResponse; + + /** + * Encodes the specified MsgEditValidatorResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgEditValidatorResponse.verify|verify} messages. + * @param m MsgEditValidatorResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgEditValidatorResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgEditValidatorResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgEditValidatorResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgEditValidatorResponse; + } + /** Properties of a MsgDelegate. */ interface IMsgDelegate { /** MsgDelegate delegatorAddress */ @@ -3580,6 +4015,51 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgDelegate; } + /** Properties of a MsgDelegateResponse. */ + interface IMsgDelegateResponse {} + + /** Represents a MsgDelegateResponse. */ + class MsgDelegateResponse implements IMsgDelegateResponse { + /** + * Constructs a new MsgDelegateResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgDelegateResponse); + + /** + * Creates a new MsgDelegateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgDelegateResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgDelegateResponse, + ): cosmos.staking.v1beta1.MsgDelegateResponse; + + /** + * Encodes the specified MsgDelegateResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgDelegateResponse.verify|verify} messages. + * @param m MsgDelegateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgDelegateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgDelegateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgDelegateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgDelegateResponse; + } + /** Properties of a MsgBeginRedelegate. */ interface IMsgBeginRedelegate { /** MsgBeginRedelegate delegatorAddress */ @@ -3649,6 +4129,57 @@ export namespace cosmos { ): cosmos.staking.v1beta1.MsgBeginRedelegate; } + /** Properties of a MsgBeginRedelegateResponse. */ + interface IMsgBeginRedelegateResponse { + /** MsgBeginRedelegateResponse completionTime */ + completionTime?: google.protobuf.ITimestamp | null; + } + + /** Represents a MsgBeginRedelegateResponse. */ + class MsgBeginRedelegateResponse implements IMsgBeginRedelegateResponse { + /** + * Constructs a new MsgBeginRedelegateResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgBeginRedelegateResponse); + + /** MsgBeginRedelegateResponse completionTime. */ + public completionTime?: google.protobuf.ITimestamp | null; + + /** + * Creates a new MsgBeginRedelegateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgBeginRedelegateResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgBeginRedelegateResponse, + ): cosmos.staking.v1beta1.MsgBeginRedelegateResponse; + + /** + * Encodes the specified MsgBeginRedelegateResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgBeginRedelegateResponse.verify|verify} messages. + * @param m MsgBeginRedelegateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgBeginRedelegateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgBeginRedelegateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgBeginRedelegateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgBeginRedelegateResponse; + } + /** Properties of a MsgUndelegate. */ interface IMsgUndelegate { /** MsgUndelegate delegatorAddress */ @@ -3711,6 +4242,57 @@ export namespace cosmos { l?: number, ): cosmos.staking.v1beta1.MsgUndelegate; } + + /** Properties of a MsgUndelegateResponse. */ + interface IMsgUndelegateResponse { + /** MsgUndelegateResponse completionTime */ + completionTime?: google.protobuf.ITimestamp | null; + } + + /** Represents a MsgUndelegateResponse. */ + class MsgUndelegateResponse implements IMsgUndelegateResponse { + /** + * Constructs a new MsgUndelegateResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.staking.v1beta1.IMsgUndelegateResponse); + + /** MsgUndelegateResponse completionTime. */ + public completionTime?: google.protobuf.ITimestamp | null; + + /** + * Creates a new MsgUndelegateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUndelegateResponse instance + */ + public static create( + properties?: cosmos.staking.v1beta1.IMsgUndelegateResponse, + ): cosmos.staking.v1beta1.MsgUndelegateResponse; + + /** + * Encodes the specified MsgUndelegateResponse message. Does not implicitly {@link cosmos.staking.v1beta1.MsgUndelegateResponse.verify|verify} messages. + * @param m MsgUndelegateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.staking.v1beta1.IMsgUndelegateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUndelegateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUndelegateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.staking.v1beta1.MsgUndelegateResponse; + } } } @@ -6378,55 +6960,6 @@ export namespace google { } } - /** Properties of a Timestamp. */ - interface ITimestamp { - /** Timestamp seconds */ - seconds?: Long | null; - - /** Timestamp nanos */ - nanos?: number | null; - } - - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { - /** - * Constructs a new Timestamp. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: Long; - - /** Timestamp nanos. */ - public nanos: number; - - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param m Timestamp message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; - } - /** Properties of a Duration. */ interface IDuration { /** Duration seconds */ @@ -6475,6 +7008,55 @@ export namespace google { */ public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Duration; } + + /** Properties of a Timestamp. */ + interface ITimestamp { + /** Timestamp seconds */ + seconds?: Long | null; + + /** Timestamp nanos */ + nanos?: number | null; + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + /** + * Constructs a new Timestamp. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param m Timestamp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; + } } /** Namespace api. */ @@ -6675,757 +7257,6 @@ export namespace ibc { namespace channel { /** Namespace v1. */ namespace v1 { - /** Properties of a MsgChannelOpenInit. */ - interface IMsgChannelOpenInit { - /** MsgChannelOpenInit portId */ - portId?: string | null; - - /** MsgChannelOpenInit channelId */ - channelId?: string | null; - - /** MsgChannelOpenInit channel */ - channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenInit signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenInit. */ - class MsgChannelOpenInit implements IMsgChannelOpenInit { - /** - * Constructs a new MsgChannelOpenInit. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenInit); - - /** MsgChannelOpenInit portId. */ - public portId: string; - - /** MsgChannelOpenInit channelId. */ - public channelId: string; - - /** MsgChannelOpenInit channel. */ - public channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenInit signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenInit instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenInit instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenInit, - ): ibc.core.channel.v1.MsgChannelOpenInit; - - /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. - * @param m MsgChannelOpenInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenInit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenInit; - } - - /** Properties of a MsgChannelOpenTry. */ - interface IMsgChannelOpenTry { - /** MsgChannelOpenTry portId */ - portId?: string | null; - - /** MsgChannelOpenTry desiredChannelId */ - desiredChannelId?: string | null; - - /** MsgChannelOpenTry counterpartyChosenChannelId */ - counterpartyChosenChannelId?: string | null; - - /** MsgChannelOpenTry channel */ - channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion */ - counterpartyVersion?: string | null; - - /** MsgChannelOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgChannelOpenTry proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenTry signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenTry. */ - class MsgChannelOpenTry implements IMsgChannelOpenTry { - /** - * Constructs a new MsgChannelOpenTry. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenTry); - - /** MsgChannelOpenTry portId. */ - public portId: string; - - /** MsgChannelOpenTry desiredChannelId. */ - public desiredChannelId: string; - - /** MsgChannelOpenTry counterpartyChosenChannelId. */ - public counterpartyChosenChannelId: string; - - /** MsgChannelOpenTry channel. */ - public channel?: ibc.core.channel.v1.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion. */ - public counterpartyVersion: string; - - /** MsgChannelOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelOpenTry proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenTry signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenTry instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenTry instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenTry, - ): ibc.core.channel.v1.MsgChannelOpenTry; - - /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. - * @param m MsgChannelOpenTry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenTry, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenTry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenTry; - } - - /** Properties of a MsgChannelOpenAck. */ - interface IMsgChannelOpenAck { - /** MsgChannelOpenAck portId */ - portId?: string | null; - - /** MsgChannelOpenAck channelId */ - channelId?: string | null; - - /** MsgChannelOpenAck counterpartyChannelId */ - counterpartyChannelId?: string | null; - - /** MsgChannelOpenAck counterpartyVersion */ - counterpartyVersion?: string | null; - - /** MsgChannelOpenAck proofTry */ - proofTry?: Uint8Array | null; - - /** MsgChannelOpenAck proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenAck signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenAck. */ - class MsgChannelOpenAck implements IMsgChannelOpenAck { - /** - * Constructs a new MsgChannelOpenAck. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenAck); - - /** MsgChannelOpenAck portId. */ - public portId: string; - - /** MsgChannelOpenAck channelId. */ - public channelId: string; - - /** MsgChannelOpenAck counterpartyChannelId. */ - public counterpartyChannelId: string; - - /** MsgChannelOpenAck counterpartyVersion. */ - public counterpartyVersion: string; - - /** MsgChannelOpenAck proofTry. */ - public proofTry: Uint8Array; - - /** MsgChannelOpenAck proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenAck signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenAck instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenAck instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenAck, - ): ibc.core.channel.v1.MsgChannelOpenAck; - - /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. - * @param m MsgChannelOpenAck message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenAck, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenAck - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenAck; - } - - /** Properties of a MsgChannelOpenConfirm. */ - interface IMsgChannelOpenConfirm { - /** MsgChannelOpenConfirm portId */ - portId?: string | null; - - /** MsgChannelOpenConfirm channelId */ - channelId?: string | null; - - /** MsgChannelOpenConfirm proofAck */ - proofAck?: Uint8Array | null; - - /** MsgChannelOpenConfirm proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenConfirm signer */ - signer?: string | null; - } - - /** Represents a MsgChannelOpenConfirm. */ - class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { - /** - * Constructs a new MsgChannelOpenConfirm. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelOpenConfirm); - - /** MsgChannelOpenConfirm portId. */ - public portId: string; - - /** MsgChannelOpenConfirm channelId. */ - public channelId: string; - - /** MsgChannelOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgChannelOpenConfirm proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelOpenConfirm signer. */ - public signer: string; - - /** - * Creates a new MsgChannelOpenConfirm instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelOpenConfirm instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelOpenConfirm, - ): ibc.core.channel.v1.MsgChannelOpenConfirm; - - /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. - * @param m MsgChannelOpenConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelOpenConfirm, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelOpenConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelOpenConfirm; - } - - /** Properties of a MsgChannelCloseInit. */ - interface IMsgChannelCloseInit { - /** MsgChannelCloseInit portId */ - portId?: string | null; - - /** MsgChannelCloseInit channelId */ - channelId?: string | null; - - /** MsgChannelCloseInit signer */ - signer?: string | null; - } - - /** Represents a MsgChannelCloseInit. */ - class MsgChannelCloseInit implements IMsgChannelCloseInit { - /** - * Constructs a new MsgChannelCloseInit. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelCloseInit); - - /** MsgChannelCloseInit portId. */ - public portId: string; - - /** MsgChannelCloseInit channelId. */ - public channelId: string; - - /** MsgChannelCloseInit signer. */ - public signer: string; - - /** - * Creates a new MsgChannelCloseInit instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelCloseInit instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelCloseInit, - ): ibc.core.channel.v1.MsgChannelCloseInit; - - /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. - * @param m MsgChannelCloseInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelCloseInit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelCloseInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelCloseInit; - } - - /** Properties of a MsgChannelCloseConfirm. */ - interface IMsgChannelCloseConfirm { - /** MsgChannelCloseConfirm portId */ - portId?: string | null; - - /** MsgChannelCloseConfirm channelId */ - channelId?: string | null; - - /** MsgChannelCloseConfirm proofInit */ - proofInit?: Uint8Array | null; - - /** MsgChannelCloseConfirm proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelCloseConfirm signer */ - signer?: string | null; - } - - /** Represents a MsgChannelCloseConfirm. */ - class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { - /** - * Constructs a new MsgChannelCloseConfirm. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgChannelCloseConfirm); - - /** MsgChannelCloseConfirm portId. */ - public portId: string; - - /** MsgChannelCloseConfirm channelId. */ - public channelId: string; - - /** MsgChannelCloseConfirm proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelCloseConfirm proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgChannelCloseConfirm signer. */ - public signer: string; - - /** - * Creates a new MsgChannelCloseConfirm instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgChannelCloseConfirm instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgChannelCloseConfirm, - ): ibc.core.channel.v1.MsgChannelCloseConfirm; - - /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. - * @param m MsgChannelCloseConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgChannelCloseConfirm, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgChannelCloseConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgChannelCloseConfirm; - } - - /** Properties of a MsgRecvPacket. */ - interface IMsgRecvPacket { - /** MsgRecvPacket packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgRecvPacket proof */ - proof?: Uint8Array | null; - - /** MsgRecvPacket proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgRecvPacket signer */ - signer?: string | null; - } - - /** Represents a MsgRecvPacket. */ - class MsgRecvPacket implements IMsgRecvPacket { - /** - * Constructs a new MsgRecvPacket. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgRecvPacket); - - /** MsgRecvPacket packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgRecvPacket proof. */ - public proof: Uint8Array; - - /** MsgRecvPacket proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgRecvPacket signer. */ - public signer: string; - - /** - * Creates a new MsgRecvPacket instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgRecvPacket instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgRecvPacket, - ): ibc.core.channel.v1.MsgRecvPacket; - - /** - * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. - * @param m MsgRecvPacket message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.core.channel.v1.IMsgRecvPacket, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgRecvPacket message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgRecvPacket - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgRecvPacket; - } - - /** Properties of a MsgTimeout. */ - interface IMsgTimeout { - /** MsgTimeout packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeout proof */ - proof?: Uint8Array | null; - - /** MsgTimeout proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeout nextSequenceRecv */ - nextSequenceRecv?: Long | null; - - /** MsgTimeout signer */ - signer?: string | null; - } - - /** Represents a MsgTimeout. */ - class MsgTimeout implements IMsgTimeout { - /** - * Constructs a new MsgTimeout. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgTimeout); - - /** MsgTimeout packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeout proof. */ - public proof: Uint8Array; - - /** MsgTimeout proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeout nextSequenceRecv. */ - public nextSequenceRecv: Long; - - /** MsgTimeout signer. */ - public signer: string; - - /** - * Creates a new MsgTimeout instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgTimeout instance - */ - public static create(properties?: ibc.core.channel.v1.IMsgTimeout): ibc.core.channel.v1.MsgTimeout; - - /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @param m MsgTimeout message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.core.channel.v1.IMsgTimeout, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgTimeout message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgTimeout - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.channel.v1.MsgTimeout; - } - - /** Properties of a MsgTimeoutOnClose. */ - interface IMsgTimeoutOnClose { - /** MsgTimeoutOnClose packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeoutOnClose proof */ - proof?: Uint8Array | null; - - /** MsgTimeoutOnClose proofClose */ - proofClose?: Uint8Array | null; - - /** MsgTimeoutOnClose proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeoutOnClose nextSequenceRecv */ - nextSequenceRecv?: Long | null; - - /** MsgTimeoutOnClose signer */ - signer?: string | null; - } - - /** Represents a MsgTimeoutOnClose. */ - class MsgTimeoutOnClose implements IMsgTimeoutOnClose { - /** - * Constructs a new MsgTimeoutOnClose. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgTimeoutOnClose); - - /** MsgTimeoutOnClose packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgTimeoutOnClose proof. */ - public proof: Uint8Array; - - /** MsgTimeoutOnClose proofClose. */ - public proofClose: Uint8Array; - - /** MsgTimeoutOnClose proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgTimeoutOnClose nextSequenceRecv. */ - public nextSequenceRecv: Long; - - /** MsgTimeoutOnClose signer. */ - public signer: string; - - /** - * Creates a new MsgTimeoutOnClose instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgTimeoutOnClose instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgTimeoutOnClose, - ): ibc.core.channel.v1.MsgTimeoutOnClose; - - /** - * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. - * @param m MsgTimeoutOnClose message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgTimeoutOnClose, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgTimeoutOnClose - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgTimeoutOnClose; - } - - /** Properties of a MsgAcknowledgement. */ - interface IMsgAcknowledgement { - /** MsgAcknowledgement packet */ - packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgAcknowledgement acknowledgement */ - acknowledgement?: Uint8Array | null; - - /** MsgAcknowledgement proof */ - proof?: Uint8Array | null; - - /** MsgAcknowledgement proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgAcknowledgement signer */ - signer?: string | null; - } - - /** Represents a MsgAcknowledgement. */ - class MsgAcknowledgement implements IMsgAcknowledgement { - /** - * Constructs a new MsgAcknowledgement. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.channel.v1.IMsgAcknowledgement); - - /** MsgAcknowledgement packet. */ - public packet?: ibc.core.channel.v1.IPacket | null; - - /** MsgAcknowledgement acknowledgement. */ - public acknowledgement: Uint8Array; - - /** MsgAcknowledgement proof. */ - public proof: Uint8Array; - - /** MsgAcknowledgement proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgAcknowledgement signer. */ - public signer: string; - - /** - * Creates a new MsgAcknowledgement instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgAcknowledgement instance - */ - public static create( - properties?: ibc.core.channel.v1.IMsgAcknowledgement, - ): ibc.core.channel.v1.MsgAcknowledgement; - - /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. - * @param m MsgAcknowledgement message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.channel.v1.IMsgAcknowledgement, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgAcknowledgement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.MsgAcknowledgement; - } - /** Properties of a Channel. */ interface IChannel { /** Channel state */ @@ -7735,73 +7566,67 @@ export namespace ibc { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.channel.v1.Packet; } - /** Properties of a PacketAckCommitment. */ - interface IPacketAckCommitment { - /** PacketAckCommitment portId */ + /** Properties of a PacketState. */ + interface IPacketState { + /** PacketState portId */ portId?: string | null; - /** PacketAckCommitment channelId */ + /** PacketState channelId */ channelId?: string | null; - /** PacketAckCommitment sequence */ + /** PacketState sequence */ sequence?: Long | null; - /** PacketAckCommitment hash */ - hash?: Uint8Array | null; + /** PacketState data */ + data?: Uint8Array | null; } - /** Represents a PacketAckCommitment. */ - class PacketAckCommitment implements IPacketAckCommitment { + /** Represents a PacketState. */ + class PacketState implements IPacketState { /** - * Constructs a new PacketAckCommitment. + * Constructs a new PacketState. * @param [p] Properties to set */ - constructor(p?: ibc.core.channel.v1.IPacketAckCommitment); + constructor(p?: ibc.core.channel.v1.IPacketState); - /** PacketAckCommitment portId. */ + /** PacketState portId. */ public portId: string; - /** PacketAckCommitment channelId. */ + /** PacketState channelId. */ public channelId: string; - /** PacketAckCommitment sequence. */ + /** PacketState sequence. */ public sequence: Long; - /** PacketAckCommitment hash. */ - public hash: Uint8Array; + /** PacketState data. */ + public data: Uint8Array; /** - * Creates a new PacketAckCommitment instance using the specified properties. + * Creates a new PacketState instance using the specified properties. * @param [properties] Properties to set - * @returns PacketAckCommitment instance + * @returns PacketState instance */ public static create( - properties?: ibc.core.channel.v1.IPacketAckCommitment, - ): ibc.core.channel.v1.PacketAckCommitment; + properties?: ibc.core.channel.v1.IPacketState, + ): ibc.core.channel.v1.PacketState; /** - * Encodes the specified PacketAckCommitment message. Does not implicitly {@link ibc.core.channel.v1.PacketAckCommitment.verify|verify} messages. - * @param m PacketAckCommitment message or plain object to encode + * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * @param m PacketState message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode( - m: ibc.core.channel.v1.IPacketAckCommitment, - w?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: ibc.core.channel.v1.IPacketState, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketAckCommitment message from the specified reader or buffer. + * Decodes a PacketState message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns PacketAckCommitment + * @returns PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.channel.v1.PacketAckCommitment; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.channel.v1.PacketState; } /** Properties of an Acknowledgement. */ @@ -8020,6 +7845,25 @@ export namespace ibc { request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, ): Promise; + /** + * Calls PacketReceipt. + * @param request QueryPacketReceiptRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse + */ + public packetReceipt( + request: ibc.core.channel.v1.IQueryPacketReceiptRequest, + callback: ibc.core.channel.v1.Query.PacketReceiptCallback, + ): void; + + /** + * Calls PacketReceipt. + * @param request QueryPacketReceiptRequest message or plain object + * @returns Promise + */ + public packetReceipt( + request: ibc.core.channel.v1.IQueryPacketReceiptRequest, + ): Promise; + /** * Calls PacketAcknowledgement. * @param request QueryPacketAcknowledgementRequest message or plain object @@ -8039,6 +7883,25 @@ export namespace ibc { request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, ): Promise; + /** + * Calls PacketAcknowledgements. + * @param request QueryPacketAcknowledgementsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse + */ + public packetAcknowledgements( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + callback: ibc.core.channel.v1.Query.PacketAcknowledgementsCallback, + ): void; + + /** + * Calls PacketAcknowledgements. + * @param request QueryPacketAcknowledgementsRequest message or plain object + * @returns Promise + */ + public packetAcknowledgements( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + ): Promise; + /** * Calls UnreceivedPackets. * @param request QueryUnreceivedPacketsRequest message or plain object @@ -8059,23 +7922,23 @@ export namespace ibc { ): Promise; /** - * Calls UnrelayedAcks. - * @param request QueryUnrelayedAcksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUnrelayedAcksResponse + * Calls UnreceivedAcks. + * @param request QueryUnreceivedAcksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse */ - public unrelayedAcks( - request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, - callback: ibc.core.channel.v1.Query.UnrelayedAcksCallback, + public unreceivedAcks( + request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, + callback: ibc.core.channel.v1.Query.UnreceivedAcksCallback, ): void; /** - * Calls UnrelayedAcks. - * @param request QueryUnrelayedAcksRequest message or plain object + * Calls UnreceivedAcks. + * @param request QueryUnreceivedAcksRequest message or plain object * @returns Promise */ - public unrelayedAcks( - request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, - ): Promise; + public unreceivedAcks( + request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, + ): Promise; /** * Calls NextSequenceReceive. @@ -8168,6 +8031,16 @@ export namespace ibc { response?: ibc.core.channel.v1.QueryPacketCommitmentsResponse, ) => void; + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. + * @param error Error, if any + * @param [response] QueryPacketReceiptResponse + */ + type PacketReceiptCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketReceiptResponse, + ) => void; + /** * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. * @param error Error, if any @@ -8178,6 +8051,16 @@ export namespace ibc { response?: ibc.core.channel.v1.QueryPacketAcknowledgementResponse, ) => void; + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. + * @param error Error, if any + * @param [response] QueryPacketAcknowledgementsResponse + */ + type PacketAcknowledgementsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, + ) => void; + /** * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. * @param error Error, if any @@ -8189,13 +8072,13 @@ export namespace ibc { ) => void; /** - * Callback as used by {@link ibc.core.channel.v1.Query#unrelayedAcks}. + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. * @param error Error, if any - * @param [response] QueryUnrelayedAcksResponse + * @param [response] QueryUnreceivedAcksResponse */ - type UnrelayedAcksCallback = ( + type UnreceivedAcksCallback = ( error: Error | null, - response?: ibc.core.channel.v1.QueryUnrelayedAcksResponse, + response?: ibc.core.channel.v1.QueryUnreceivedAcksResponse, ) => void; /** @@ -8274,9 +8157,6 @@ export namespace ibc { /** QueryChannelResponse proof */ proof?: Uint8Array | null; - /** QueryChannelResponse proofPath */ - proofPath?: string | null; - /** QueryChannelResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8295,9 +8175,6 @@ export namespace ibc { /** QueryChannelResponse proof. */ public proof: Uint8Array; - /** QueryChannelResponse proofPath. */ - public proofPath: string; - /** QueryChannelResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -8634,9 +8511,6 @@ export namespace ibc { /** QueryChannelClientStateResponse proof */ proof?: Uint8Array | null; - /** QueryChannelClientStateResponse proofPath */ - proofPath?: string | null; - /** QueryChannelClientStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8655,9 +8529,6 @@ export namespace ibc { /** QueryChannelClientStateResponse proof. */ public proof: Uint8Array; - /** QueryChannelClientStateResponse proofPath. */ - public proofPath: string; - /** QueryChannelClientStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -8775,9 +8646,6 @@ export namespace ibc { /** QueryChannelConsensusStateResponse proof */ proof?: Uint8Array | null; - /** QueryChannelConsensusStateResponse proofPath */ - proofPath?: string | null; - /** QueryChannelConsensusStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8799,9 +8667,6 @@ export namespace ibc { /** QueryChannelConsensusStateResponse proof. */ public proof: Uint8Array; - /** QueryChannelConsensusStateResponse proofPath. */ - public proofPath: string; - /** QueryChannelConsensusStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -8910,9 +8775,6 @@ export namespace ibc { /** QueryPacketCommitmentResponse proof */ proof?: Uint8Array | null; - /** QueryPacketCommitmentResponse proofPath */ - proofPath?: string | null; - /** QueryPacketCommitmentResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -8931,9 +8793,6 @@ export namespace ibc { /** QueryPacketCommitmentResponse proof. */ public proof: Uint8Array; - /** QueryPacketCommitmentResponse proofPath. */ - public proofPath: string; - /** QueryPacketCommitmentResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -9037,7 +8896,7 @@ export namespace ibc { /** Properties of a QueryPacketCommitmentsResponse. */ interface IQueryPacketCommitmentsResponse { /** QueryPacketCommitmentsResponse commitments */ - commitments?: ibc.core.channel.v1.IPacketAckCommitment[] | null; + commitments?: ibc.core.channel.v1.IPacketState[] | null; /** QueryPacketCommitmentsResponse pagination */ pagination?: cosmos.base.query.v1beta1.IPageResponse | null; @@ -9055,7 +8914,7 @@ export namespace ibc { constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse); /** QueryPacketCommitmentsResponse commitments. */ - public commitments: ibc.core.channel.v1.IPacketAckCommitment[]; + public commitments: ibc.core.channel.v1.IPacketState[]; /** QueryPacketCommitmentsResponse pagination. */ public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; @@ -9097,6 +8956,132 @@ export namespace ibc { ): ibc.core.channel.v1.QueryPacketCommitmentsResponse; } + /** Properties of a QueryPacketReceiptRequest. */ + interface IQueryPacketReceiptRequest { + /** QueryPacketReceiptRequest portId */ + portId?: string | null; + + /** QueryPacketReceiptRequest channelId */ + channelId?: string | null; + + /** QueryPacketReceiptRequest sequence */ + sequence?: Long | null; + } + + /** Represents a QueryPacketReceiptRequest. */ + class QueryPacketReceiptRequest implements IQueryPacketReceiptRequest { + /** + * Constructs a new QueryPacketReceiptRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketReceiptRequest); + + /** QueryPacketReceiptRequest portId. */ + public portId: string; + + /** QueryPacketReceiptRequest channelId. */ + public channelId: string; + + /** QueryPacketReceiptRequest sequence. */ + public sequence: Long; + + /** + * Creates a new QueryPacketReceiptRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketReceiptRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketReceiptRequest, + ): ibc.core.channel.v1.QueryPacketReceiptRequest; + + /** + * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. + * @param m QueryPacketReceiptRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketReceiptRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketReceiptRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketReceiptRequest; + } + + /** Properties of a QueryPacketReceiptResponse. */ + interface IQueryPacketReceiptResponse { + /** QueryPacketReceiptResponse received */ + received?: boolean | null; + + /** QueryPacketReceiptResponse proof */ + proof?: Uint8Array | null; + + /** QueryPacketReceiptResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketReceiptResponse. */ + class QueryPacketReceiptResponse implements IQueryPacketReceiptResponse { + /** + * Constructs a new QueryPacketReceiptResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketReceiptResponse); + + /** QueryPacketReceiptResponse received. */ + public received: boolean; + + /** QueryPacketReceiptResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketReceiptResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketReceiptResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketReceiptResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketReceiptResponse, + ): ibc.core.channel.v1.QueryPacketReceiptResponse; + + /** + * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. + * @param m QueryPacketReceiptResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketReceiptResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketReceiptResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketReceiptResponse; + } + /** Properties of a QueryPacketAcknowledgementRequest. */ interface IQueryPacketAcknowledgementRequest { /** QueryPacketAcknowledgementRequest portId */ @@ -9168,9 +9153,6 @@ export namespace ibc { /** QueryPacketAcknowledgementResponse proof */ proof?: Uint8Array | null; - /** QueryPacketAcknowledgementResponse proofPath */ - proofPath?: string | null; - /** QueryPacketAcknowledgementResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -9189,9 +9171,6 @@ export namespace ibc { /** QueryPacketAcknowledgementResponse proof. */ public proof: Uint8Array; - /** QueryPacketAcknowledgementResponse proofPath. */ - public proofPath: string; - /** QueryPacketAcknowledgementResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -9229,6 +9208,132 @@ export namespace ibc { ): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; } + /** Properties of a QueryPacketAcknowledgementsRequest. */ + interface IQueryPacketAcknowledgementsRequest { + /** QueryPacketAcknowledgementsRequest portId */ + portId?: string | null; + + /** QueryPacketAcknowledgementsRequest channelId */ + channelId?: string | null; + + /** QueryPacketAcknowledgementsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryPacketAcknowledgementsRequest. */ + class QueryPacketAcknowledgementsRequest implements IQueryPacketAcknowledgementsRequest { + /** + * Constructs a new QueryPacketAcknowledgementsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest); + + /** QueryPacketAcknowledgementsRequest portId. */ + public portId: string; + + /** QueryPacketAcknowledgementsRequest channelId. */ + public channelId: string; + + /** QueryPacketAcknowledgementsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryPacketAcknowledgementsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; + + /** + * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. + * @param m QueryPacketAcknowledgementsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; + } + + /** Properties of a QueryPacketAcknowledgementsResponse. */ + interface IQueryPacketAcknowledgementsResponse { + /** QueryPacketAcknowledgementsResponse acknowledgements */ + acknowledgements?: ibc.core.channel.v1.IPacketState[] | null; + + /** QueryPacketAcknowledgementsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketAcknowledgementsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketAcknowledgementsResponse. */ + class QueryPacketAcknowledgementsResponse implements IQueryPacketAcknowledgementsResponse { + /** + * Constructs a new QueryPacketAcknowledgementsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse); + + /** QueryPacketAcknowledgementsResponse acknowledgements. */ + public acknowledgements: ibc.core.channel.v1.IPacketState[]; + + /** QueryPacketAcknowledgementsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketAcknowledgementsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketAcknowledgementsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; + + /** + * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * @param m QueryPacketAcknowledgementsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; + } + /** Properties of a QueryUnreceivedPacketsRequest. */ interface IQueryUnreceivedPacketsRequest { /** QueryUnreceivedPacketsRequest portId */ @@ -9349,124 +9454,124 @@ export namespace ibc { ): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; } - /** Properties of a QueryUnrelayedAcksRequest. */ - interface IQueryUnrelayedAcksRequest { - /** QueryUnrelayedAcksRequest portId */ + /** Properties of a QueryUnreceivedAcksRequest. */ + interface IQueryUnreceivedAcksRequest { + /** QueryUnreceivedAcksRequest portId */ portId?: string | null; - /** QueryUnrelayedAcksRequest channelId */ + /** QueryUnreceivedAcksRequest channelId */ channelId?: string | null; - /** QueryUnrelayedAcksRequest packetCommitmentSequences */ - packetCommitmentSequences?: Long[] | null; + /** QueryUnreceivedAcksRequest packetAckSequences */ + packetAckSequences?: Long[] | null; } - /** Represents a QueryUnrelayedAcksRequest. */ - class QueryUnrelayedAcksRequest implements IQueryUnrelayedAcksRequest { + /** Represents a QueryUnreceivedAcksRequest. */ + class QueryUnreceivedAcksRequest implements IQueryUnreceivedAcksRequest { /** - * Constructs a new QueryUnrelayedAcksRequest. + * Constructs a new QueryUnreceivedAcksRequest. * @param [p] Properties to set */ - constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest); + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedAcksRequest); - /** QueryUnrelayedAcksRequest portId. */ + /** QueryUnreceivedAcksRequest portId. */ public portId: string; - /** QueryUnrelayedAcksRequest channelId. */ + /** QueryUnreceivedAcksRequest channelId. */ public channelId: string; - /** QueryUnrelayedAcksRequest packetCommitmentSequences. */ - public packetCommitmentSequences: Long[]; + /** QueryUnreceivedAcksRequest packetAckSequences. */ + public packetAckSequences: Long[]; /** - * Creates a new QueryUnrelayedAcksRequest instance using the specified properties. + * Creates a new QueryUnreceivedAcksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryUnrelayedAcksRequest instance + * @returns QueryUnreceivedAcksRequest instance */ public static create( - properties?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, - ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + properties?: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, + ): ibc.core.channel.v1.QueryUnreceivedAcksRequest; /** - * Encodes the specified QueryUnrelayedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksRequest.verify|verify} messages. - * @param m QueryUnrelayedAcksRequest message or plain object to encode + * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * @param m QueryUnreceivedAcksRequest message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode( - m: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + m: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, w?: $protobuf.Writer, ): $protobuf.Writer; /** - * Decodes a QueryUnrelayedAcksRequest message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns QueryUnrelayedAcksRequest + * @returns QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode( r: $protobuf.Reader | Uint8Array, l?: number, - ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + ): ibc.core.channel.v1.QueryUnreceivedAcksRequest; } - /** Properties of a QueryUnrelayedAcksResponse. */ - interface IQueryUnrelayedAcksResponse { - /** QueryUnrelayedAcksResponse sequences */ + /** Properties of a QueryUnreceivedAcksResponse. */ + interface IQueryUnreceivedAcksResponse { + /** QueryUnreceivedAcksResponse sequences */ sequences?: Long[] | null; - /** QueryUnrelayedAcksResponse height */ + /** QueryUnreceivedAcksResponse height */ height?: ibc.core.client.v1.IHeight | null; } - /** Represents a QueryUnrelayedAcksResponse. */ - class QueryUnrelayedAcksResponse implements IQueryUnrelayedAcksResponse { + /** Represents a QueryUnreceivedAcksResponse. */ + class QueryUnreceivedAcksResponse implements IQueryUnreceivedAcksResponse { /** - * Constructs a new QueryUnrelayedAcksResponse. + * Constructs a new QueryUnreceivedAcksResponse. * @param [p] Properties to set */ - constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse); + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedAcksResponse); - /** QueryUnrelayedAcksResponse sequences. */ + /** QueryUnreceivedAcksResponse sequences. */ public sequences: Long[]; - /** QueryUnrelayedAcksResponse height. */ + /** QueryUnreceivedAcksResponse height. */ public height?: ibc.core.client.v1.IHeight | null; /** - * Creates a new QueryUnrelayedAcksResponse instance using the specified properties. + * Creates a new QueryUnreceivedAcksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns QueryUnrelayedAcksResponse instance + * @returns QueryUnreceivedAcksResponse instance */ public static create( - properties?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, - ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + properties?: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, + ): ibc.core.channel.v1.QueryUnreceivedAcksResponse; /** - * Encodes the specified QueryUnrelayedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksResponse.verify|verify} messages. - * @param m QueryUnrelayedAcksResponse message or plain object to encode + * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * @param m QueryUnreceivedAcksResponse message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode( - m: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, + m: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, w?: $protobuf.Writer, ): $protobuf.Writer; /** - * Decodes a QueryUnrelayedAcksResponse message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns QueryUnrelayedAcksResponse + * @returns QueryUnreceivedAcksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode( r: $protobuf.Reader | Uint8Array, l?: number, - ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + ): ibc.core.channel.v1.QueryUnreceivedAcksResponse; } /** Properties of a QueryNextSequenceReceiveRequest. */ @@ -9534,9 +9639,6 @@ export namespace ibc { /** QueryNextSequenceReceiveResponse proof */ proof?: Uint8Array | null; - /** QueryNextSequenceReceiveResponse proofPath */ - proofPath?: string | null; - /** QueryNextSequenceReceiveResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -9555,9 +9657,6 @@ export namespace ibc { /** QueryNextSequenceReceiveResponse proof. */ public proof: Uint8Array; - /** QueryNextSequenceReceiveResponse proofPath. */ - public proofPath: string; - /** QueryNextSequenceReceiveResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -9601,6 +9700,598 @@ export namespace ibc { namespace client { /** Namespace v1. */ namespace v1 { + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls CreateClient. + * @param request MsgCreateClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgCreateClientResponse + */ + public createClient( + request: ibc.core.client.v1.IMsgCreateClient, + callback: ibc.core.client.v1.Msg.CreateClientCallback, + ): void; + + /** + * Calls CreateClient. + * @param request MsgCreateClient message or plain object + * @returns Promise + */ + public createClient( + request: ibc.core.client.v1.IMsgCreateClient, + ): Promise; + + /** + * Calls UpdateClient. + * @param request MsgUpdateClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateClientResponse + */ + public updateClient( + request: ibc.core.client.v1.IMsgUpdateClient, + callback: ibc.core.client.v1.Msg.UpdateClientCallback, + ): void; + + /** + * Calls UpdateClient. + * @param request MsgUpdateClient message or plain object + * @returns Promise + */ + public updateClient( + request: ibc.core.client.v1.IMsgUpdateClient, + ): Promise; + + /** + * Calls UpgradeClient. + * @param request MsgUpgradeClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse + */ + public upgradeClient( + request: ibc.core.client.v1.IMsgUpgradeClient, + callback: ibc.core.client.v1.Msg.UpgradeClientCallback, + ): void; + + /** + * Calls UpgradeClient. + * @param request MsgUpgradeClient message or plain object + * @returns Promise + */ + public upgradeClient( + request: ibc.core.client.v1.IMsgUpgradeClient, + ): Promise; + + /** + * Calls SubmitMisbehaviour. + * @param request MsgSubmitMisbehaviour message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse + */ + public submitMisbehaviour( + request: ibc.core.client.v1.IMsgSubmitMisbehaviour, + callback: ibc.core.client.v1.Msg.SubmitMisbehaviourCallback, + ): void; + + /** + * Calls SubmitMisbehaviour. + * @param request MsgSubmitMisbehaviour message or plain object + * @returns Promise + */ + public submitMisbehaviour( + request: ibc.core.client.v1.IMsgSubmitMisbehaviour, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. + * @param error Error, if any + * @param [response] MsgCreateClientResponse + */ + type CreateClientCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgCreateClientResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. + * @param error Error, if any + * @param [response] MsgUpdateClientResponse + */ + type UpdateClientCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgUpdateClientResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. + * @param error Error, if any + * @param [response] MsgUpgradeClientResponse + */ + type UpgradeClientCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgUpgradeClientResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. + * @param error Error, if any + * @param [response] MsgSubmitMisbehaviourResponse + */ + type SubmitMisbehaviourCallback = ( + error: Error | null, + response?: ibc.core.client.v1.MsgSubmitMisbehaviourResponse, + ) => void; + } + + /** Properties of a MsgCreateClient. */ + interface IMsgCreateClient { + /** MsgCreateClient clientId */ + clientId?: string | null; + + /** MsgCreateClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer */ + signer?: string | null; + } + + /** Represents a MsgCreateClient. */ + class MsgCreateClient implements IMsgCreateClient { + /** + * Constructs a new MsgCreateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgCreateClient); + + /** MsgCreateClient clientId. */ + public clientId: string; + + /** MsgCreateClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer. */ + public signer: string; + + /** + * Creates a new MsgCreateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgCreateClient, + ): ibc.core.client.v1.MsgCreateClient; + + /** + * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * @param m MsgCreateClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgCreateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgCreateClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgCreateClient; + } + + /** Properties of a MsgCreateClientResponse. */ + interface IMsgCreateClientResponse {} + + /** Represents a MsgCreateClientResponse. */ + class MsgCreateClientResponse implements IMsgCreateClientResponse { + /** + * Constructs a new MsgCreateClientResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgCreateClientResponse); + + /** + * Creates a new MsgCreateClientResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateClientResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgCreateClientResponse, + ): ibc.core.client.v1.MsgCreateClientResponse; + + /** + * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * @param m MsgCreateClientResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgCreateClientResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateClientResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgCreateClientResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgCreateClientResponse; + } + + /** Properties of a MsgUpdateClient. */ + interface IMsgUpdateClient { + /** MsgUpdateClient clientId */ + clientId?: string | null; + + /** MsgUpdateClient header */ + header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpdateClient. */ + class MsgUpdateClient implements IMsgUpdateClient { + /** + * Constructs a new MsgUpdateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpdateClient); + + /** MsgUpdateClient clientId. */ + public clientId: string; + + /** MsgUpdateClient header. */ + public header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpdateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpdateClient, + ): ibc.core.client.v1.MsgUpdateClient; + + /** + * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * @param m MsgUpdateClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpdateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpdateClient; + } + + /** Properties of a MsgUpdateClientResponse. */ + interface IMsgUpdateClientResponse {} + + /** Represents a MsgUpdateClientResponse. */ + class MsgUpdateClientResponse implements IMsgUpdateClientResponse { + /** + * Constructs a new MsgUpdateClientResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpdateClientResponse); + + /** + * Creates a new MsgUpdateClientResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateClientResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpdateClientResponse, + ): ibc.core.client.v1.MsgUpdateClientResponse; + + /** + * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * @param m MsgUpdateClientResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpdateClientResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateClientResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpdateClientResponse; + } + + /** Properties of a MsgUpgradeClient. */ + interface IMsgUpgradeClient { + /** MsgUpgradeClient clientId */ + clientId?: string | null; + + /** MsgUpgradeClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight */ + upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade */ + proofUpgrade?: Uint8Array | null; + + /** MsgUpgradeClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpgradeClient. */ + class MsgUpgradeClient implements IMsgUpgradeClient { + /** + * Constructs a new MsgUpgradeClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpgradeClient); + + /** MsgUpgradeClient clientId. */ + public clientId: string; + + /** MsgUpgradeClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight. */ + public upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade. */ + public proofUpgrade: Uint8Array; + + /** MsgUpgradeClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpgradeClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpgradeClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpgradeClient, + ): ibc.core.client.v1.MsgUpgradeClient; + + /** + * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * @param m MsgUpgradeClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpgradeClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpgradeClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpgradeClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpgradeClient; + } + + /** Properties of a MsgUpgradeClientResponse. */ + interface IMsgUpgradeClientResponse {} + + /** Represents a MsgUpgradeClientResponse. */ + class MsgUpgradeClientResponse implements IMsgUpgradeClientResponse { + /** + * Constructs a new MsgUpgradeClientResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpgradeClientResponse); + + /** + * Creates a new MsgUpgradeClientResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpgradeClientResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpgradeClientResponse, + ): ibc.core.client.v1.MsgUpgradeClientResponse; + + /** + * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * @param m MsgUpgradeClientResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpgradeClientResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpgradeClientResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgUpgradeClientResponse; + } + + /** Properties of a MsgSubmitMisbehaviour. */ + interface IMsgSubmitMisbehaviour { + /** MsgSubmitMisbehaviour clientId */ + clientId?: string | null; + + /** MsgSubmitMisbehaviour misbehaviour */ + misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer */ + signer?: string | null; + } + + /** Represents a MsgSubmitMisbehaviour. */ + class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { + /** + * Constructs a new MsgSubmitMisbehaviour. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviour); + + /** MsgSubmitMisbehaviour clientId. */ + public clientId: string; + + /** MsgSubmitMisbehaviour misbehaviour. */ + public misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer. */ + public signer: string; + + /** + * Creates a new MsgSubmitMisbehaviour instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitMisbehaviour instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + + /** + * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * @param m MsgSubmitMisbehaviour message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgSubmitMisbehaviour, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSubmitMisbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + } + + /** Properties of a MsgSubmitMisbehaviourResponse. */ + interface IMsgSubmitMisbehaviourResponse {} + + /** Represents a MsgSubmitMisbehaviourResponse. */ + class MsgSubmitMisbehaviourResponse implements IMsgSubmitMisbehaviourResponse { + /** + * Constructs a new MsgSubmitMisbehaviourResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse); + + /** + * Creates a new MsgSubmitMisbehaviourResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitMisbehaviourResponse instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, + ): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; + + /** + * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * @param m MsgSubmitMisbehaviourResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSubmitMisbehaviourResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; + } + /** Properties of an IdentifiedClientState. */ interface IIdentifiedClientState { /** IdentifiedClientState clientId */ @@ -9841,276 +10532,6 @@ export namespace ibc { ): ibc.core.client.v1.ClientUpdateProposal; } - /** Properties of a MsgCreateClient. */ - interface IMsgCreateClient { - /** MsgCreateClient clientId */ - clientId?: string | null; - - /** MsgCreateClient clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgCreateClient consensusState */ - consensusState?: google.protobuf.IAny | null; - - /** MsgCreateClient signer */ - signer?: string | null; - } - - /** Represents a MsgCreateClient. */ - class MsgCreateClient implements IMsgCreateClient { - /** - * Constructs a new MsgCreateClient. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgCreateClient); - - /** MsgCreateClient clientId. */ - public clientId: string; - - /** MsgCreateClient clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgCreateClient consensusState. */ - public consensusState?: google.protobuf.IAny | null; - - /** MsgCreateClient signer. */ - public signer: string; - - /** - * Creates a new MsgCreateClient instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgCreateClient instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgCreateClient, - ): ibc.core.client.v1.MsgCreateClient; - - /** - * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. - * @param m MsgCreateClient message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgCreateClient, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgCreateClient message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgCreateClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgCreateClient; - } - - /** Properties of a MsgUpdateClient. */ - interface IMsgUpdateClient { - /** MsgUpdateClient clientId */ - clientId?: string | null; - - /** MsgUpdateClient header */ - header?: google.protobuf.IAny | null; - - /** MsgUpdateClient signer */ - signer?: string | null; - } - - /** Represents a MsgUpdateClient. */ - class MsgUpdateClient implements IMsgUpdateClient { - /** - * Constructs a new MsgUpdateClient. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgUpdateClient); - - /** MsgUpdateClient clientId. */ - public clientId: string; - - /** MsgUpdateClient header. */ - public header?: google.protobuf.IAny | null; - - /** MsgUpdateClient signer. */ - public signer: string; - - /** - * Creates a new MsgUpdateClient instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateClient instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgUpdateClient, - ): ibc.core.client.v1.MsgUpdateClient; - - /** - * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. - * @param m MsgUpdateClient message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgUpdateClient, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateClient message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgUpdateClient; - } - - /** Properties of a MsgUpgradeClient. */ - interface IMsgUpgradeClient { - /** MsgUpgradeClient clientId */ - clientId?: string | null; - - /** MsgUpgradeClient clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgUpgradeClient upgradeHeight */ - upgradeHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgUpgradeClient proofUpgrade */ - proofUpgrade?: Uint8Array | null; - - /** MsgUpgradeClient signer */ - signer?: string | null; - } - - /** Represents a MsgUpgradeClient. */ - class MsgUpgradeClient implements IMsgUpgradeClient { - /** - * Constructs a new MsgUpgradeClient. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgUpgradeClient); - - /** MsgUpgradeClient clientId. */ - public clientId: string; - - /** MsgUpgradeClient clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgUpgradeClient upgradeHeight. */ - public upgradeHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgUpgradeClient proofUpgrade. */ - public proofUpgrade: Uint8Array; - - /** MsgUpgradeClient signer. */ - public signer: string; - - /** - * Creates a new MsgUpgradeClient instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpgradeClient instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgUpgradeClient, - ): ibc.core.client.v1.MsgUpgradeClient; - - /** - * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. - * @param m MsgUpgradeClient message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgUpgradeClient, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpgradeClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgUpgradeClient; - } - - /** Properties of a MsgSubmitMisbehaviour. */ - interface IMsgSubmitMisbehaviour { - /** MsgSubmitMisbehaviour clientId */ - clientId?: string | null; - - /** MsgSubmitMisbehaviour misbehaviour */ - misbehaviour?: google.protobuf.IAny | null; - - /** MsgSubmitMisbehaviour signer */ - signer?: string | null; - } - - /** Represents a MsgSubmitMisbehaviour. */ - class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { - /** - * Constructs a new MsgSubmitMisbehaviour. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviour); - - /** MsgSubmitMisbehaviour clientId. */ - public clientId: string; - - /** MsgSubmitMisbehaviour misbehaviour. */ - public misbehaviour?: google.protobuf.IAny | null; - - /** MsgSubmitMisbehaviour signer. */ - public signer: string; - - /** - * Creates a new MsgSubmitMisbehaviour instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgSubmitMisbehaviour instance - */ - public static create( - properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour, - ): ibc.core.client.v1.MsgSubmitMisbehaviour; - - /** - * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. - * @param m MsgSubmitMisbehaviour message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.client.v1.IMsgSubmitMisbehaviour, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgSubmitMisbehaviour - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.client.v1.MsgSubmitMisbehaviour; - } - /** Properties of an Height. */ interface IHeight { /** Height versionNumber */ @@ -10468,379 +10889,13 @@ export namespace ibc { namespace connection { /** Namespace v1. */ namespace v1 { - /** Properties of a MsgConnectionOpenInit. */ - interface IMsgConnectionOpenInit { - /** MsgConnectionOpenInit clientId */ - clientId?: string | null; - - /** MsgConnectionOpenInit connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenInit counterparty */ - counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenInit version */ - version?: string | null; - - /** MsgConnectionOpenInit signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenInit. */ - class MsgConnectionOpenInit implements IMsgConnectionOpenInit { - /** - * Constructs a new MsgConnectionOpenInit. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenInit); - - /** MsgConnectionOpenInit clientId. */ - public clientId: string; - - /** MsgConnectionOpenInit connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenInit counterparty. */ - public counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenInit version. */ - public version: string; - - /** MsgConnectionOpenInit signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenInit instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenInit instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenInit, - ): ibc.core.connection.v1.MsgConnectionOpenInit; - - /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. - * @param m MsgConnectionOpenInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenInit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenInit; - } - - /** Properties of a MsgConnectionOpenTry. */ - interface IMsgConnectionOpenTry { - /** MsgConnectionOpenTry clientId */ - clientId?: string | null; - - /** MsgConnectionOpenTry desiredConnectionId */ - desiredConnectionId?: string | null; - - /** MsgConnectionOpenTry counterpartyChosenConnectionId */ - counterpartyChosenConnectionId?: string | null; - - /** MsgConnectionOpenTry clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenTry counterparty */ - counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions */ - counterpartyVersions?: string[] | null; - - /** MsgConnectionOpenTry proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgConnectionOpenTry proofClient */ - proofClient?: Uint8Array | null; - - /** MsgConnectionOpenTry proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenTry consensusHeight */ - consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenTry. */ - class MsgConnectionOpenTry implements IMsgConnectionOpenTry { - /** - * Constructs a new MsgConnectionOpenTry. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenTry); - - /** MsgConnectionOpenTry clientId. */ - public clientId: string; - - /** MsgConnectionOpenTry desiredConnectionId. */ - public desiredConnectionId: string; - - /** MsgConnectionOpenTry counterpartyChosenConnectionId. */ - public counterpartyChosenConnectionId: string; - - /** MsgConnectionOpenTry clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenTry counterparty. */ - public counterparty?: ibc.core.connection.v1.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions. */ - public counterpartyVersions: string[]; - - /** MsgConnectionOpenTry proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgConnectionOpenTry proofClient. */ - public proofClient: Uint8Array; - - /** MsgConnectionOpenTry proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenTry consensusHeight. */ - public consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenTry signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenTry instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenTry instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenTry, - ): ibc.core.connection.v1.MsgConnectionOpenTry; - - /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. - * @param m MsgConnectionOpenTry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenTry, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenTry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenTry; - } - - /** Properties of a MsgConnectionOpenAck. */ - interface IMsgConnectionOpenAck { - /** MsgConnectionOpenAck connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenAck counterpartyConnectionId */ - counterpartyConnectionId?: string | null; - - /** MsgConnectionOpenAck version */ - version?: string | null; - - /** MsgConnectionOpenAck clientState */ - clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenAck proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck proofTry */ - proofTry?: Uint8Array | null; - - /** MsgConnectionOpenAck proofClient */ - proofClient?: Uint8Array | null; - - /** MsgConnectionOpenAck proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenAck consensusHeight */ - consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenAck. */ - class MsgConnectionOpenAck implements IMsgConnectionOpenAck { - /** - * Constructs a new MsgConnectionOpenAck. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenAck); - - /** MsgConnectionOpenAck connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenAck counterpartyConnectionId. */ - public counterpartyConnectionId: string; - - /** MsgConnectionOpenAck version. */ - public version: string; - - /** MsgConnectionOpenAck clientState. */ - public clientState?: google.protobuf.IAny | null; - - /** MsgConnectionOpenAck proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck proofTry. */ - public proofTry: Uint8Array; - - /** MsgConnectionOpenAck proofClient. */ - public proofClient: Uint8Array; - - /** MsgConnectionOpenAck proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenAck consensusHeight. */ - public consensusHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenAck signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenAck instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenAck instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenAck, - ): ibc.core.connection.v1.MsgConnectionOpenAck; - - /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. - * @param m MsgConnectionOpenAck message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenAck, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenAck - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenAck; - } - - /** Properties of a MsgConnectionOpenConfirm. */ - interface IMsgConnectionOpenConfirm { - /** MsgConnectionOpenConfirm connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenConfirm proofAck */ - proofAck?: Uint8Array | null; - - /** MsgConnectionOpenConfirm proofHeight */ - proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenConfirm signer */ - signer?: string | null; - } - - /** Represents a MsgConnectionOpenConfirm. */ - class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { - /** - * Constructs a new MsgConnectionOpenConfirm. - * @param [p] Properties to set - */ - constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenConfirm); - - /** MsgConnectionOpenConfirm connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgConnectionOpenConfirm proofHeight. */ - public proofHeight?: ibc.core.client.v1.IHeight | null; - - /** MsgConnectionOpenConfirm signer. */ - public signer: string; - - /** - * Creates a new MsgConnectionOpenConfirm instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgConnectionOpenConfirm instance - */ - public static create( - properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirm, - ): ibc.core.connection.v1.MsgConnectionOpenConfirm; - - /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. - * @param m MsgConnectionOpenConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.core.connection.v1.IMsgConnectionOpenConfirm, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgConnectionOpenConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): ibc.core.connection.v1.MsgConnectionOpenConfirm; - } - /** Properties of a ConnectionEnd. */ interface IConnectionEnd { /** ConnectionEnd clientId */ clientId?: string | null; /** ConnectionEnd versions */ - versions?: string[] | null; + versions?: ibc.core.connection.v1.IVersion[] | null; /** ConnectionEnd state */ state?: ibc.core.connection.v1.State | null; @@ -10861,7 +10916,7 @@ export namespace ibc { public clientId: string; /** ConnectionEnd versions. */ - public versions: string[]; + public versions: ibc.core.connection.v1.IVersion[]; /** ConnectionEnd state. */ public state: ibc.core.connection.v1.State; @@ -10912,7 +10967,7 @@ export namespace ibc { clientId?: string | null; /** IdentifiedConnection versions */ - versions?: string[] | null; + versions?: ibc.core.connection.v1.IVersion[] | null; /** IdentifiedConnection state */ state?: ibc.core.connection.v1.State | null; @@ -10936,7 +10991,7 @@ export namespace ibc { public clientId: string; /** IdentifiedConnection versions. */ - public versions: string[]; + public versions: ibc.core.connection.v1.IVersion[]; /** IdentifiedConnection state. */ public state: ibc.core.connection.v1.State; @@ -11436,9 +11491,6 @@ export namespace ibc { /** QueryConnectionResponse proof */ proof?: Uint8Array | null; - /** QueryConnectionResponse proofPath */ - proofPath?: string | null; - /** QueryConnectionResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11457,9 +11509,6 @@ export namespace ibc { /** QueryConnectionResponse proof. */ public proof: Uint8Array; - /** QueryConnectionResponse proofPath. */ - public proofPath: string; - /** QueryConnectionResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -11670,9 +11719,6 @@ export namespace ibc { /** QueryClientConnectionsResponse proof */ proof?: Uint8Array | null; - /** QueryClientConnectionsResponse proofPath */ - proofPath?: string | null; - /** QueryClientConnectionsResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11691,9 +11737,6 @@ export namespace ibc { /** QueryClientConnectionsResponse proof. */ public proof: Uint8Array; - /** QueryClientConnectionsResponse proofPath. */ - public proofPath: string; - /** QueryClientConnectionsResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -11790,9 +11833,6 @@ export namespace ibc { /** QueryConnectionClientStateResponse proof */ proof?: Uint8Array | null; - /** QueryConnectionClientStateResponse proofPath */ - proofPath?: string | null; - /** QueryConnectionClientStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11811,9 +11851,6 @@ export namespace ibc { /** QueryConnectionClientStateResponse proof. */ public proof: Uint8Array; - /** QueryConnectionClientStateResponse proofPath. */ - public proofPath: string; - /** QueryConnectionClientStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -11925,9 +11962,6 @@ export namespace ibc { /** QueryConnectionConsensusStateResponse proof */ proof?: Uint8Array | null; - /** QueryConnectionConsensusStateResponse proofPath */ - proofPath?: string | null; - /** QueryConnectionConsensusStateResponse proofHeight */ proofHeight?: ibc.core.client.v1.IHeight | null; } @@ -11949,9 +11983,6 @@ export namespace ibc { /** QueryConnectionConsensusStateResponse proof. */ public proof: Uint8Array; - /** QueryConnectionConsensusStateResponse proofPath. */ - public proofPath: string; - /** QueryConnectionConsensusStateResponse proofHeight. */ public proofHeight?: ibc.core.client.v1.IHeight | null; @@ -12658,9 +12689,6 @@ export namespace tendermint { interface IData { /** Data txs */ txs?: Uint8Array[] | null; - - /** Data hash */ - hash?: Uint8Array | null; } /** Represents a Data. */ @@ -12674,9 +12702,6 @@ export namespace tendermint { /** Data txs. */ public txs: Uint8Array[]; - /** Data hash. */ - public hash: Uint8Array; - /** * Creates a new Data instance using the specified properties. * @param [properties] Properties to set @@ -12801,12 +12826,6 @@ export namespace tendermint { /** Commit signatures */ signatures?: tendermint.types.ICommitSig[] | null; - - /** Commit hash */ - hash?: Uint8Array | null; - - /** Commit bitArray */ - bitArray?: tendermint.libs.bits.IBitArray | null; } /** Represents a Commit. */ @@ -12829,12 +12848,6 @@ export namespace tendermint { /** Commit signatures. */ public signatures: tendermint.types.ICommitSig[]; - /** Commit hash. */ - public hash: Uint8Array; - - /** Commit bitArray. */ - public bitArray?: tendermint.libs.bits.IBitArray | null; - /** * Creates a new Commit instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/stargate/types/queries/ibc.d.ts b/packages/stargate/types/queries/ibc.d.ts index 7ab22494..71033e4f 100644 --- a/packages/stargate/types/queries/ibc.d.ts +++ b/packages/stargate/types/queries/ibc.d.ts @@ -38,11 +38,11 @@ export interface IbcExtension { channelId: string, packetCommitmentSequences: readonly number[], ) => Promise; - readonly unrelayedAcks: ( + readonly unreceivedAcks: ( portId: string, channelId: string, packetCommitmentSequences: readonly number[], - ) => Promise; + ) => Promise; readonly nextSequenceReceive: ( portId: string, channelId: string,