@agoric/cosmic-proto 0.4.1-dev-438955e.0 → 0.4.1-dev-28315fb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codegen/agoric/swingset/msgs.js +1 -1
- package/dist/codegen/agoric/swingset/msgs.js.map +1 -1
- package/dist/codegen/agoric/swingset/query.js +1 -1
- package/dist/codegen/agoric/swingset/query.js.map +1 -1
- package/dist/codegen/agoric/swingset/swingset.js +1 -1
- package/dist/codegen/agoric/swingset/swingset.js.map +1 -1
- package/dist/codegen/agoric/vbank/vbank.js +1 -1
- package/dist/codegen/agoric/vbank/vbank.js.map +1 -1
- package/dist/codegen/agoric/vibc/msgs.js +1 -1
- package/dist/codegen/agoric/vibc/msgs.js.map +1 -1
- package/dist/codegen/agoric/vtransfer/genesis.js +1 -1
- package/dist/codegen/agoric/vtransfer/genesis.js.map +1 -1
- package/dist/codegen/binary.d.ts +1 -1
- package/dist/codegen/circle/cctp/v1/burn_message.js +1 -1
- package/dist/codegen/circle/cctp/v1/burn_message.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/events.js +1 -1
- package/dist/codegen/circle/cctp/v1/events.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/message.js +1 -1
- package/dist/codegen/circle/cctp/v1/message.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -1
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/token_pair.js +1 -1
- package/dist/codegen/circle/cctp/v1/token_pair.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/tx.js +1 -1
- package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -1
- package/dist/codegen/cosmos/authz/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js.map +1 -1
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -1
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js.map +1 -1
- package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -1
- package/dist/codegen/cosmos/base/v1beta1/coin.js.map +1 -1
- package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -1
- package/dist/codegen/cosmos/crypto/ed25519/keys.js.map +1 -1
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -1
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js.map +1 -1
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -1
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js.map +1 -1
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -1
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js.map +1 -1
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -1
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/gov.js.map +1 -1
- package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -1
- package/dist/codegen/cosmos/mint/v1beta1/mint.js.map +1 -1
- package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -1
- package/dist/codegen/cosmos/mint/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js.map +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/staking.js.map +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -1
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js.map +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/service.js.map +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js.map +1 -1
- package/dist/codegen/decimals.d.ts +20 -0
- package/dist/codegen/decimals.js +1 -0
- package/dist/codegen/decimals.js.map +1 -0
- package/dist/codegen/google/protobuf/any.js +1 -1
- package/dist/codegen/google/protobuf/any.js.map +1 -1
- package/dist/codegen/google/protobuf/descriptor.js +1 -1
- package/dist/codegen/google/protobuf/descriptor.js.map +1 -1
- package/dist/codegen/helpers.d.ts +2 -18
- package/dist/codegen/helpers.js +1 -1
- package/dist/codegen/helpers.js.map +1 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -1
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/channel.js +1 -1
- package/dist/codegen/ibc/core/channel/v1/channel.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/query.js +1 -1
- package/dist/codegen/ibc/core/channel/v1/query.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1
- package/dist/codegen/ibc/core/channel/v1/tx.js.map +1 -1
- package/dist/codegen/ibc/core/client/v1/genesis.js +1 -1
- package/dist/codegen/ibc/core/client/v1/genesis.js.map +1 -1
- package/dist/codegen/ibc/core/client/v1/query.js +1 -1
- package/dist/codegen/ibc/core/client/v1/query.js.map +1 -1
- package/dist/codegen/ibc/core/client/v1/tx.js +1 -1
- package/dist/codegen/ibc/core/client/v1/tx.js.map +1 -1
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -1
- package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +1 -1
- package/dist/codegen/ibc/core/connection/v1/query.js +1 -1
- package/dist/codegen/ibc/core/connection/v1/query.js.map +1 -1
- package/dist/codegen/ibc/core/connection/v1/tx.js +1 -1
- package/dist/codegen/ibc/core/connection/v1/tx.js.map +1 -1
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -1
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +1 -1
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -1
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -1
- package/dist/codegen/icq/v1/packet.js +1 -1
- package/dist/codegen/icq/v1/packet.js.map +1 -1
- package/dist/codegen/index.d.ts +2 -1
- package/dist/codegen/index.js +1 -1
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/json-safe.d.ts +1 -1
- package/dist/codegen/proofs.js +1 -1
- package/dist/codegen/proofs.js.map +1 -1
- package/dist/codegen/stride/stakedym/stakedym.js +1 -1
- package/dist/codegen/stride/stakedym/stakedym.js.map +1 -1
- package/dist/codegen/stride/stakedym/tx.js +1 -1
- package/dist/codegen/stride/stakedym/tx.js.map +1 -1
- package/dist/codegen/stride/stakeibc/host_zone.js +1 -1
- package/dist/codegen/stride/stakeibc/host_zone.js.map +1 -1
- package/dist/codegen/stride/stakeibc/trade_route.js +1 -1
- package/dist/codegen/stride/stakeibc/trade_route.js.map +1 -1
- package/dist/codegen/stride/stakeibc/tx.js +1 -1
- package/dist/codegen/stride/stakeibc/tx.js.map +1 -1
- package/dist/codegen/stride/stakeibc/validator.js +1 -1
- package/dist/codegen/stride/stakeibc/validator.js.map +1 -1
- package/dist/codegen/stride/staketia/tx.js +1 -1
- package/dist/codegen/stride/staketia/tx.js.map +1 -1
- package/dist/codegen/tendermint/abci/types.js +1 -1
- package/dist/codegen/tendermint/abci/types.js.map +1 -1
- package/dist/codegen/tendermint/crypto/keys.js +1 -1
- package/dist/codegen/tendermint/crypto/keys.js.map +1 -1
- package/dist/codegen/tendermint/crypto/proof.js +1 -1
- package/dist/codegen/tendermint/crypto/proof.js.map +1 -1
- package/dist/codegen/tendermint/p2p/types.js +1 -1
- package/dist/codegen/tendermint/p2p/types.js.map +1 -1
- package/dist/codegen/tendermint/types/types.js +1 -1
- package/dist/codegen/tendermint/types/types.js.map +1 -1
- package/dist/codegen/tendermint/types/validator.js +1 -1
- package/dist/codegen/tendermint/types/validator.js.map +1 -1
- package/dist/codegen/utf8.d.ts +1 -1
- package/dist/codegen/varint.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.12.8
|
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
4
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
5
|
*/
|
|
6
|
-
export declare const bytesFromBase64: (input: string) => Uint8Array;
|
|
7
|
-
export declare const base64FromBytes: (input: Uint8Array) => string;
|
|
8
6
|
export interface AminoHeight {
|
|
9
7
|
readonly revision_number?: string;
|
|
10
8
|
readonly revision_height?: string;
|
|
@@ -60,6 +58,7 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
60
58
|
export interface Rpc {
|
|
61
59
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
62
60
|
}
|
|
61
|
+
export declare function isRpc(rpc: unknown): rpc is Rpc;
|
|
63
62
|
interface Timestamp {
|
|
64
63
|
/**
|
|
65
64
|
* Represents seconds of UTC time since Unix epoch
|
|
@@ -78,19 +77,4 @@ interface Timestamp {
|
|
|
78
77
|
export declare function toTimestamp(date: Date): Timestamp;
|
|
79
78
|
export declare function fromTimestamp(t: Timestamp): Date;
|
|
80
79
|
export declare function fromJsonTimestamp(o: any): Timestamp;
|
|
81
|
-
/**
|
|
82
|
-
* A type for arbitrary precision, non-negative decimals.
|
|
83
|
-
*
|
|
84
|
-
* Instances of this class are immutable.
|
|
85
|
-
*/
|
|
86
|
-
export declare class Decimal {
|
|
87
|
-
static fromUserInput(input: string, fractionalDigits: number): Decimal;
|
|
88
|
-
static fromAtomics(atomics: string, fractionalDigits: number): Decimal;
|
|
89
|
-
private static verifyFractionalDigits;
|
|
90
|
-
get atomics(): string;
|
|
91
|
-
get fractionalDigits(): number;
|
|
92
|
-
private readonly data;
|
|
93
|
-
private constructor();
|
|
94
|
-
toString(): string;
|
|
95
|
-
}
|
|
96
80
|
export {};
|
package/dist/codegen/helpers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export function omitDefault(t){if("string"==typeof t)return""===t?void 0:t;if("number"==typeof t)return 0===t?void 0:t;if("boolean"==typeof t)return!1===t?void 0:t;if("bigint"==typeof t)return t===BigInt(0)?void 0:t;throw new Error("Got unsupported type "+typeof t)}export function toDuration(t){return{seconds:BigInt(Math.floor(parseInt(t)/1e9)),nanos:parseInt(t)%1e9}}export function fromDuration(t){return(1e9*parseInt(t.seconds.toString())+t.nanos).toString()}export function isSet(t){return null!=t}export function isObject(t){return"object"==typeof t&&null!==t}export const setPaginationParams=(t,n)=>n?(void 0!==n?.countTotal&&(t.params["pagination.count_total"]=n.countTotal),void 0!==n?.key&&(t.params["pagination.key"]=Buffer.from(n.key).toString("base64")),void 0!==n?.limit&&(t.params["pagination.limit"]=n.limit.toString()),void 0!==n?.offset&&(t.params["pagination.offset"]=n.offset.toString()),void 0!==n?.reverse&&(t.params["pagination.reverse"]=n.reverse),t):t;export function isRpc(t){return null!=t&&"function"==typeof t.request}export function toTimestamp(t){var n;return{seconds:(n=t.getTime()/1e3,BigInt(Math.trunc(n))),nanos:t.getTime()%1e3*1e6}}export function fromTimestamp(t){let n=1e3*Number(t.seconds);return n+=t.nanos/1e6,new Date(n)}export function fromJsonTimestamp(t){return t instanceof Date?toTimestamp(t):"string"==typeof t?toTimestamp(new Date(t)):{seconds:isSet((n=t).seconds)?BigInt(n.seconds.toString()):BigInt(0),nanos:isSet(n.nanos)?Number(n.nanos):0};var n}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/codegen/helpers.ts"],"names":[],"mappings":"AAAA,aAAa;AACb;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/codegen/helpers.ts"],"names":[],"mappings":"AAAA,aAAa;AACb;;;;GAIG;AAUH,MAAM,UAAU,WAAW,CACzB,KAAQ;IAER,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7C,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,wBAAwB,OAAO,KAAK,EAAE,CAAC,CAAC;AAC1D,CAAC;AAqBD,MAAM,UAAU,UAAU,CAAC,QAAgB;IACzC,OAAO;QACL,OAAO,EAAE,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CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;YACnC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QACb,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAAC,CAAM;IACtC,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC;QACtB,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC;SAAM,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QACjC,OAAO,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;SAAM,CAAC;QACN,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,MAAc;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AACpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Any as e}from"../../../../google/protobuf/any.js";import{BinaryReader as t,BinaryWriter as o}from"../../../../binary.js";import{isSet as a
|
|
1
|
+
import{Any as e}from"../../../../google/protobuf/any.js";import{BinaryReader as t,BinaryWriter as o}from"../../../../binary.js";import{isSet as a}from"../../../../helpers.js";import{decodeBase64 as s}from"@endo/base64";import{encodeBase64 as n}from"@endo/base64";import{}from"../../../../json-safe.js";export var Type;!function(e){e[e.TYPE_UNSPECIFIED=0]="TYPE_UNSPECIFIED",e[e.TYPE_EXECUTE_TX=1]="TYPE_EXECUTE_TX",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Type||(Type={}));export const TypeSDKType=Type;export function typeFromJSON(e){switch(e){case 0:case"TYPE_UNSPECIFIED":return Type.TYPE_UNSPECIFIED;case 1:case"TYPE_EXECUTE_TX":return Type.TYPE_EXECUTE_TX;default:return Type.UNRECOGNIZED}}export function typeToJSON(e){switch(e){case Type.TYPE_UNSPECIFIED:return"TYPE_UNSPECIFIED";case Type.TYPE_EXECUTE_TX:return"TYPE_EXECUTE_TX";case Type.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function r(){return{type:0,data:new Uint8Array,memo:""}}export const InterchainAccountPacketData={typeUrl:"/ibc.applications.interchain_accounts.v1.InterchainAccountPacketData",encode:(e,t=o.create())=>(0!==e.type&&t.uint32(8).int32(e.type),0!==e.data.length&&t.uint32(18).bytes(e.data),""!==e.memo&&t.uint32(26).string(e.memo),t),decode(e,o){const a=e instanceof t?e:new t(e);let s=void 0===o?a.len:a.pos+o;const n=r();for(;a.pos<s;){const e=a.uint32();switch(e>>>3){case 1:n.type=a.int32();break;case 2:n.data=a.bytes();break;case 3:n.memo=a.string();break;default:a.skipType(7&e)}}return n},fromJSON:e=>({type:a(e.type)?typeFromJSON(e.type):-1,data:a(e.data)?s(e.data):new Uint8Array,memo:a(e.memo)?String(e.memo):""}),toJSON(e){const t={};return void 0!==e.type&&(t.type=typeToJSON(e.type)),void 0!==e.data&&(t.data=n(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.memo&&(t.memo=e.memo),t},fromPartial(e){const t=r();return t.type=e.type??0,t.data=e.data??new Uint8Array,t.memo=e.memo??"",t},fromProtoMsg:e=>InterchainAccountPacketData.decode(e.value),toProto:e=>InterchainAccountPacketData.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.applications.interchain_accounts.v1.InterchainAccountPacketData",value:InterchainAccountPacketData.encode(e).finish()})};export const CosmosTx={typeUrl:"/ibc.applications.interchain_accounts.v1.CosmosTx",encode(t,a=o.create()){for(const o of t.messages)e.encode(o,a.uint32(10).fork()).ldelim();return a},decode(o,a){const s=o instanceof t?o:new t(o);let n=void 0===a?s.len:s.pos+a;const r={messages:[]};for(;s.pos<n;){const t=s.uint32();if(t>>>3==1)r.messages.push(e.decode(s,s.uint32()));else s.skipType(7&t)}return r},fromJSON:t=>({messages:Array.isArray(t?.messages)?t.messages.map((t=>e.fromJSON(t))):[]}),toJSON(t){const o={};return t.messages?o.messages=t.messages.map((t=>t?e.toJSON(t):void 0)):o.messages=[],o},fromPartial(t){const o={messages:[]};return o.messages=t.messages?.map((t=>e.fromPartial(t)))||[],o},fromProtoMsg:e=>CosmosTx.decode(e.value),toProto:e=>CosmosTx.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.applications.interchain_accounts.v1.CosmosTx",value:CosmosTx.encode(e).finish()})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packet.js","sourceRoot":"","sources":["../../../../../../src/codegen/ibc/applications/interchain_accounts/v1/packet.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,
|
|
1
|
+
{"version":3,"file":"packet.js","sourceRoot":"","sources":["../../../../../../src/codegen/ibc/applications/interchain_accounts/v1/packet.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAiB,MAAM,0BAA0B,CAAC;AACzD;;;GAGG;AACH,MAAM,CAAN,IAAY,IAMX;AAND,WAAY,IAAI;IACd,wDAAwD;IACxD,uDAAoB,CAAA;IACpB,mFAAmF;IACnF,qDAAmB,CAAA;IACnB,gDAAiB,CAAA;AACnB,CAAC,E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E,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACvE,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,YAAY,CAAC,OAAyB;QACpC,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,CAAC,OAAiB;QACvB,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3C,CAAC;IACD,UAAU,CAAC,OAAiB;QAC1B,OAAO;YACL,OAAO,EAAE,mDAAmD;YAC5D,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SACzC,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Height as e}from"../../client/v1/client.js";import{BinaryReader as t,BinaryWriter as n}from"../../../../binary.js";import{isSet as r,bytesFromBase64 as o,base64FromBytes as i}from"../../../../helpers.js";import{}from"../../../../json-safe.js";export var State;!function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(State||(State={}));export const StateSDKType=State;export function stateFromJSON(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return State.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return State.STATE_INIT;case 2:case"STATE_TRYOPEN":return State.STATE_TRYOPEN;case 3:case"STATE_OPEN":return State.STATE_OPEN;case 4:case"STATE_CLOSED":return State.STATE_CLOSED;default:return State.UNRECOGNIZED}}export function stateToJSON(e){switch(e){case State.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case State.STATE_INIT:return"STATE_INIT";case State.STATE_TRYOPEN:return"STATE_TRYOPEN";case State.STATE_OPEN:return"STATE_OPEN";case State.STATE_CLOSED:return"STATE_CLOSED";case State.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var Order;!function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Order||(Order={}));export const OrderSDKType=Order;export function orderFromJSON(e){switch(e){case 0:case"ORDER_NONE_UNSPECIFIED":return Order.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return Order.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return Order.ORDER_ORDERED;default:return Order.UNRECOGNIZED}}export function orderToJSON(e){switch(e){case Order.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case Order.ORDER_UNORDERED:return"ORDER_UNORDERED";case Order.ORDER_ORDERED:return"ORDER_ORDERED";case Order.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function a(){return{state:0,ordering:0,counterparty:Counterparty.fromPartial({}),connectionHops:[],version:""}}export const Channel={typeUrl:"/ibc.core.channel.v1.Channel",encode(e,t=n.create()){0!==e.state&&t.uint32(8).int32(e.state),0!==e.ordering&&t.uint32(16).int32(e.ordering),void 0!==e.counterparty&&Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim();for(const n of e.connectionHops)t.uint32(34).string(n);return""!==e.version&&t.uint32(42).string(e.version),t},decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=a();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({state:r(e.state)?stateFromJSON(e.state):-1,ordering:r(e.ordering)?orderFromJSON(e.ordering):-1,counterparty:r(e.counterparty)?Counterparty.fromJSON(e.counterparty):void 0,connectionHops:Array.isArray(e?.connectionHops)?e.connectionHops.map((e=>String(e))):[],version:r(e.version)?String(e.version):""}),toJSON(e){const t={};return void 0!==e.state&&(t.state=stateToJSON(e.state)),void 0!==e.ordering&&(t.ordering=orderToJSON(e.ordering)),void 0!==e.counterparty&&(t.counterparty=e.counterparty?Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?t.connectionHops=e.connectionHops.map((e=>e)):t.connectionHops=[],void 0!==e.version&&(t.version=e.version),t},fromPartial(e){const t=a();return t.state=e.state??0,t.ordering=e.ordering??0,t.counterparty=void 0!==e.counterparty&&null!==e.counterparty?Counterparty.fromPartial(e.counterparty):void 0,t.connectionHops=e.connectionHops?.map((e=>e))||[],t.version=e.version??"",t},fromProtoMsg:e=>Channel.decode(e.value),toProto:e=>Channel.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Channel",value:Channel.encode(e).finish()})};function c(){return{state:0,ordering:0,counterparty:Counterparty.fromPartial({}),connectionHops:[],version:"",portId:"",channelId:""}}export const IdentifiedChannel={typeUrl:"/ibc.core.channel.v1.IdentifiedChannel",encode(e,t=n.create()){0!==e.state&&t.uint32(8).int32(e.state),0!==e.ordering&&t.uint32(16).int32(e.ordering),void 0!==e.counterparty&&Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim();for(const n of e.connectionHops)t.uint32(34).string(n);return""!==e.version&&t.uint32(42).string(e.version),""!==e.portId&&t.uint32(50).string(e.portId),""!==e.channelId&&t.uint32(58).string(e.channelId),t},decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=c();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;case 6:i.portId=r.string();break;case 7:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({state:r(e.state)?stateFromJSON(e.state):-1,ordering:r(e.ordering)?orderFromJSON(e.ordering):-1,counterparty:r(e.counterparty)?Counterparty.fromJSON(e.counterparty):void 0,connectionHops:Array.isArray(e?.connectionHops)?e.connectionHops.map((e=>String(e))):[],version:r(e.version)?String(e.version):"",portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):""}),toJSON(e){const t={};return void 0!==e.state&&(t.state=stateToJSON(e.state)),void 0!==e.ordering&&(t.ordering=orderToJSON(e.ordering)),void 0!==e.counterparty&&(t.counterparty=e.counterparty?Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?t.connectionHops=e.connectionHops.map((e=>e)):t.connectionHops=[],void 0!==e.version&&(t.version=e.version),void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){const t=c();return t.state=e.state??0,t.ordering=e.ordering??0,t.counterparty=void 0!==e.counterparty&&null!==e.counterparty?Counterparty.fromPartial(e.counterparty):void 0,t.connectionHops=e.connectionHops?.map((e=>e))||[],t.version=e.version??"",t.portId=e.portId??"",t.channelId=e.channelId??"",t},fromProtoMsg:e=>IdentifiedChannel.decode(e.value),toProto:e=>IdentifiedChannel.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.IdentifiedChannel",value:IdentifiedChannel.encode(e).finish()})};export const Counterparty={typeUrl:"/ibc.core.channel.v1.Counterparty",encode:(e,t=n.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i={portId:"",channelId:""};for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):""}),toJSON(e){const t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){const t={portId:"",channelId:""};return t.portId=e.portId??"",t.channelId=e.channelId??"",t},fromProtoMsg:e=>Counterparty.decode(e.value),toProto:e=>Counterparty.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Counterparty",value:Counterparty.encode(e).finish()})};function s(){return{sequence:BigInt(0),sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",data:new Uint8Array,timeoutHeight:e.fromPartial({}),timeoutTimestamp:BigInt(0)}}export const Packet={typeUrl:"/ibc.core.channel.v1.Packet",encode:(t,r=n.create())=>(t.sequence!==BigInt(0)&&r.uint32(8).uint64(t.sequence),""!==t.sourcePort&&r.uint32(18).string(t.sourcePort),""!==t.sourceChannel&&r.uint32(26).string(t.sourceChannel),""!==t.destinationPort&&r.uint32(34).string(t.destinationPort),""!==t.destinationChannel&&r.uint32(42).string(t.destinationChannel),0!==t.data.length&&r.uint32(50).bytes(t.data),void 0!==t.timeoutHeight&&e.encode(t.timeoutHeight,r.uint32(58).fork()).ldelim(),t.timeoutTimestamp!==BigInt(0)&&r.uint32(64).uint64(t.timeoutTimestamp),r),decode(n,r){const o=n instanceof t?n:new t(n);let i=void 0===r?o.len:o.pos+r;const a=s();for(;o.pos<i;){const t=o.uint32();switch(t>>>3){case 1:a.sequence=o.uint64();break;case 2:a.sourcePort=o.string();break;case 3:a.sourceChannel=o.string();break;case 4:a.destinationPort=o.string();break;case 5:a.destinationChannel=o.string();break;case 6:a.data=o.bytes();break;case 7:a.timeoutHeight=e.decode(o,o.uint32());break;case 8:a.timeoutTimestamp=o.uint64();break;default:o.skipType(7&t)}}return a},fromJSON:t=>({sequence:r(t.sequence)?BigInt(t.sequence.toString()):BigInt(0),sourcePort:r(t.sourcePort)?String(t.sourcePort):"",sourceChannel:r(t.sourceChannel)?String(t.sourceChannel):"",destinationPort:r(t.destinationPort)?String(t.destinationPort):"",destinationChannel:r(t.destinationChannel)?String(t.destinationChannel):"",data:r(t.data)?o(t.data):new Uint8Array,timeoutHeight:r(t.timeoutHeight)?e.fromJSON(t.timeoutHeight):void 0,timeoutTimestamp:r(t.timeoutTimestamp)?BigInt(t.timeoutTimestamp.toString()):BigInt(0)}),toJSON(t){const n={};return void 0!==t.sequence&&(n.sequence=(t.sequence||BigInt(0)).toString()),void 0!==t.sourcePort&&(n.sourcePort=t.sourcePort),void 0!==t.sourceChannel&&(n.sourceChannel=t.sourceChannel),void 0!==t.destinationPort&&(n.destinationPort=t.destinationPort),void 0!==t.destinationChannel&&(n.destinationChannel=t.destinationChannel),void 0!==t.data&&(n.data=i(void 0!==t.data?t.data:new Uint8Array)),void 0!==t.timeoutHeight&&(n.timeoutHeight=t.timeoutHeight?e.toJSON(t.timeoutHeight):void 0),void 0!==t.timeoutTimestamp&&(n.timeoutTimestamp=(t.timeoutTimestamp||BigInt(0)).toString()),n},fromPartial(t){const n=s();return n.sequence=void 0!==t.sequence&&null!==t.sequence?BigInt(t.sequence.toString()):BigInt(0),n.sourcePort=t.sourcePort??"",n.sourceChannel=t.sourceChannel??"",n.destinationPort=t.destinationPort??"",n.destinationChannel=t.destinationChannel??"",n.data=t.data??new Uint8Array,n.timeoutHeight=void 0!==t.timeoutHeight&&null!==t.timeoutHeight?e.fromPartial(t.timeoutHeight):void 0,n.timeoutTimestamp=void 0!==t.timeoutTimestamp&&null!==t.timeoutTimestamp?BigInt(t.timeoutTimestamp.toString()):BigInt(0),n},fromProtoMsg:e=>Packet.decode(e.value),toProto:e=>Packet.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Packet",value:Packet.encode(e).finish()})};function d(){return{portId:"",channelId:"",sequence:BigInt(0),data:new Uint8Array}}export const PacketState={typeUrl:"/ibc.core.channel.v1.PacketState",encode:(e,t=n.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),0!==e.data.length&&t.uint32(34).bytes(e.data),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=d();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;case 4:i.data=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):"",sequence:r(e.sequence)?BigInt(e.sequence.toString()):BigInt(0),data:r(e.data)?o(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),void 0!==e.data&&(t.data=i(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=d();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),t.data=e.data??new Uint8Array,t},fromProtoMsg:e=>PacketState.decode(e.value),toProto:e=>PacketState.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.PacketState",value:PacketState.encode(e).finish()})};function u(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const PacketId={typeUrl:"/ibc.core.channel.v1.PacketId",encode:(e,t=n.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=u();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):"",sequence:r(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){const t=u();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),t},fromProtoMsg:e=>PacketId.decode(e.value),toProto:e=>PacketId.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.PacketId",value:PacketId.encode(e).finish()})};export const Acknowledgement={typeUrl:"/ibc.core.channel.v1.Acknowledgement",encode:(e,t=n.create())=>(void 0!==e.result&&t.uint32(170).bytes(e.result),void 0!==e.error&&t.uint32(178).string(e.error),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i={result:void 0,error:void 0};for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 21:i.result=r.bytes();break;case 22:i.error=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({result:r(e.result)?o(e.result):void 0,error:r(e.error)?String(e.error):void 0}),toJSON(e){const t={};return void 0!==e.result&&(t.result=void 0!==e.result?i(e.result):void 0),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={result:void 0,error:void 0};return t.result=e.result??void 0,t.error=e.error??void 0,t},fromProtoMsg:e=>Acknowledgement.decode(e.value),toProto:e=>Acknowledgement.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Acknowledgement",value:Acknowledgement.encode(e).finish()})};
|
|
1
|
+
import{Height as e}from"../../client/v1/client.js";import{BinaryReader as t,BinaryWriter as n}from"../../../../binary.js";import{isSet as r}from"../../../../helpers.js";import{}from"../../../../json-safe.js";import{decodeBase64 as o}from"@endo/base64";import{encodeBase64 as i}from"@endo/base64";export var State;!function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(State||(State={}));export const StateSDKType=State;export function stateFromJSON(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return State.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return State.STATE_INIT;case 2:case"STATE_TRYOPEN":return State.STATE_TRYOPEN;case 3:case"STATE_OPEN":return State.STATE_OPEN;case 4:case"STATE_CLOSED":return State.STATE_CLOSED;default:return State.UNRECOGNIZED}}export function stateToJSON(e){switch(e){case State.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case State.STATE_INIT:return"STATE_INIT";case State.STATE_TRYOPEN:return"STATE_TRYOPEN";case State.STATE_OPEN:return"STATE_OPEN";case State.STATE_CLOSED:return"STATE_CLOSED";case State.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var Order;!function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Order||(Order={}));export const OrderSDKType=Order;export function orderFromJSON(e){switch(e){case 0:case"ORDER_NONE_UNSPECIFIED":return Order.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return Order.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return Order.ORDER_ORDERED;default:return Order.UNRECOGNIZED}}export function orderToJSON(e){switch(e){case Order.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case Order.ORDER_UNORDERED:return"ORDER_UNORDERED";case Order.ORDER_ORDERED:return"ORDER_ORDERED";case Order.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function a(){return{state:0,ordering:0,counterparty:Counterparty.fromPartial({}),connectionHops:[],version:""}}export const Channel={typeUrl:"/ibc.core.channel.v1.Channel",encode(e,t=n.create()){0!==e.state&&t.uint32(8).int32(e.state),0!==e.ordering&&t.uint32(16).int32(e.ordering),void 0!==e.counterparty&&Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim();for(const n of e.connectionHops)t.uint32(34).string(n);return""!==e.version&&t.uint32(42).string(e.version),t},decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=a();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({state:r(e.state)?stateFromJSON(e.state):-1,ordering:r(e.ordering)?orderFromJSON(e.ordering):-1,counterparty:r(e.counterparty)?Counterparty.fromJSON(e.counterparty):void 0,connectionHops:Array.isArray(e?.connectionHops)?e.connectionHops.map((e=>String(e))):[],version:r(e.version)?String(e.version):""}),toJSON(e){const t={};return void 0!==e.state&&(t.state=stateToJSON(e.state)),void 0!==e.ordering&&(t.ordering=orderToJSON(e.ordering)),void 0!==e.counterparty&&(t.counterparty=e.counterparty?Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?t.connectionHops=e.connectionHops.map((e=>e)):t.connectionHops=[],void 0!==e.version&&(t.version=e.version),t},fromPartial(e){const t=a();return t.state=e.state??0,t.ordering=e.ordering??0,t.counterparty=void 0!==e.counterparty&&null!==e.counterparty?Counterparty.fromPartial(e.counterparty):void 0,t.connectionHops=e.connectionHops?.map((e=>e))||[],t.version=e.version??"",t},fromProtoMsg:e=>Channel.decode(e.value),toProto:e=>Channel.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Channel",value:Channel.encode(e).finish()})};function c(){return{state:0,ordering:0,counterparty:Counterparty.fromPartial({}),connectionHops:[],version:"",portId:"",channelId:""}}export const IdentifiedChannel={typeUrl:"/ibc.core.channel.v1.IdentifiedChannel",encode(e,t=n.create()){0!==e.state&&t.uint32(8).int32(e.state),0!==e.ordering&&t.uint32(16).int32(e.ordering),void 0!==e.counterparty&&Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim();for(const n of e.connectionHops)t.uint32(34).string(n);return""!==e.version&&t.uint32(42).string(e.version),""!==e.portId&&t.uint32(50).string(e.portId),""!==e.channelId&&t.uint32(58).string(e.channelId),t},decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=c();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;case 6:i.portId=r.string();break;case 7:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({state:r(e.state)?stateFromJSON(e.state):-1,ordering:r(e.ordering)?orderFromJSON(e.ordering):-1,counterparty:r(e.counterparty)?Counterparty.fromJSON(e.counterparty):void 0,connectionHops:Array.isArray(e?.connectionHops)?e.connectionHops.map((e=>String(e))):[],version:r(e.version)?String(e.version):"",portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):""}),toJSON(e){const t={};return void 0!==e.state&&(t.state=stateToJSON(e.state)),void 0!==e.ordering&&(t.ordering=orderToJSON(e.ordering)),void 0!==e.counterparty&&(t.counterparty=e.counterparty?Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?t.connectionHops=e.connectionHops.map((e=>e)):t.connectionHops=[],void 0!==e.version&&(t.version=e.version),void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){const t=c();return t.state=e.state??0,t.ordering=e.ordering??0,t.counterparty=void 0!==e.counterparty&&null!==e.counterparty?Counterparty.fromPartial(e.counterparty):void 0,t.connectionHops=e.connectionHops?.map((e=>e))||[],t.version=e.version??"",t.portId=e.portId??"",t.channelId=e.channelId??"",t},fromProtoMsg:e=>IdentifiedChannel.decode(e.value),toProto:e=>IdentifiedChannel.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.IdentifiedChannel",value:IdentifiedChannel.encode(e).finish()})};export const Counterparty={typeUrl:"/ibc.core.channel.v1.Counterparty",encode:(e,t=n.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i={portId:"",channelId:""};for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):""}),toJSON(e){const t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){const t={portId:"",channelId:""};return t.portId=e.portId??"",t.channelId=e.channelId??"",t},fromProtoMsg:e=>Counterparty.decode(e.value),toProto:e=>Counterparty.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Counterparty",value:Counterparty.encode(e).finish()})};function s(){return{sequence:BigInt(0),sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",data:new Uint8Array,timeoutHeight:e.fromPartial({}),timeoutTimestamp:BigInt(0)}}export const Packet={typeUrl:"/ibc.core.channel.v1.Packet",encode:(t,r=n.create())=>(t.sequence!==BigInt(0)&&r.uint32(8).uint64(t.sequence),""!==t.sourcePort&&r.uint32(18).string(t.sourcePort),""!==t.sourceChannel&&r.uint32(26).string(t.sourceChannel),""!==t.destinationPort&&r.uint32(34).string(t.destinationPort),""!==t.destinationChannel&&r.uint32(42).string(t.destinationChannel),0!==t.data.length&&r.uint32(50).bytes(t.data),void 0!==t.timeoutHeight&&e.encode(t.timeoutHeight,r.uint32(58).fork()).ldelim(),t.timeoutTimestamp!==BigInt(0)&&r.uint32(64).uint64(t.timeoutTimestamp),r),decode(n,r){const o=n instanceof t?n:new t(n);let i=void 0===r?o.len:o.pos+r;const a=s();for(;o.pos<i;){const t=o.uint32();switch(t>>>3){case 1:a.sequence=o.uint64();break;case 2:a.sourcePort=o.string();break;case 3:a.sourceChannel=o.string();break;case 4:a.destinationPort=o.string();break;case 5:a.destinationChannel=o.string();break;case 6:a.data=o.bytes();break;case 7:a.timeoutHeight=e.decode(o,o.uint32());break;case 8:a.timeoutTimestamp=o.uint64();break;default:o.skipType(7&t)}}return a},fromJSON:t=>({sequence:r(t.sequence)?BigInt(t.sequence.toString()):BigInt(0),sourcePort:r(t.sourcePort)?String(t.sourcePort):"",sourceChannel:r(t.sourceChannel)?String(t.sourceChannel):"",destinationPort:r(t.destinationPort)?String(t.destinationPort):"",destinationChannel:r(t.destinationChannel)?String(t.destinationChannel):"",data:r(t.data)?o(t.data):new Uint8Array,timeoutHeight:r(t.timeoutHeight)?e.fromJSON(t.timeoutHeight):void 0,timeoutTimestamp:r(t.timeoutTimestamp)?BigInt(t.timeoutTimestamp.toString()):BigInt(0)}),toJSON(t){const n={};return void 0!==t.sequence&&(n.sequence=(t.sequence||BigInt(0)).toString()),void 0!==t.sourcePort&&(n.sourcePort=t.sourcePort),void 0!==t.sourceChannel&&(n.sourceChannel=t.sourceChannel),void 0!==t.destinationPort&&(n.destinationPort=t.destinationPort),void 0!==t.destinationChannel&&(n.destinationChannel=t.destinationChannel),void 0!==t.data&&(n.data=i(void 0!==t.data?t.data:new Uint8Array)),void 0!==t.timeoutHeight&&(n.timeoutHeight=t.timeoutHeight?e.toJSON(t.timeoutHeight):void 0),void 0!==t.timeoutTimestamp&&(n.timeoutTimestamp=(t.timeoutTimestamp||BigInt(0)).toString()),n},fromPartial(t){const n=s();return n.sequence=void 0!==t.sequence&&null!==t.sequence?BigInt(t.sequence.toString()):BigInt(0),n.sourcePort=t.sourcePort??"",n.sourceChannel=t.sourceChannel??"",n.destinationPort=t.destinationPort??"",n.destinationChannel=t.destinationChannel??"",n.data=t.data??new Uint8Array,n.timeoutHeight=void 0!==t.timeoutHeight&&null!==t.timeoutHeight?e.fromPartial(t.timeoutHeight):void 0,n.timeoutTimestamp=void 0!==t.timeoutTimestamp&&null!==t.timeoutTimestamp?BigInt(t.timeoutTimestamp.toString()):BigInt(0),n},fromProtoMsg:e=>Packet.decode(e.value),toProto:e=>Packet.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Packet",value:Packet.encode(e).finish()})};function d(){return{portId:"",channelId:"",sequence:BigInt(0),data:new Uint8Array}}export const PacketState={typeUrl:"/ibc.core.channel.v1.PacketState",encode:(e,t=n.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),0!==e.data.length&&t.uint32(34).bytes(e.data),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=d();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;case 4:i.data=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):"",sequence:r(e.sequence)?BigInt(e.sequence.toString()):BigInt(0),data:r(e.data)?o(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),void 0!==e.data&&(t.data=i(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=d();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),t.data=e.data??new Uint8Array,t},fromProtoMsg:e=>PacketState.decode(e.value),toProto:e=>PacketState.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.PacketState",value:PacketState.encode(e).finish()})};function u(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const PacketId={typeUrl:"/ibc.core.channel.v1.PacketId",encode:(e,t=n.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i=u();for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({portId:r(e.portId)?String(e.portId):"",channelId:r(e.channelId)?String(e.channelId):"",sequence:r(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){const t=u();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),t},fromProtoMsg:e=>PacketId.decode(e.value),toProto:e=>PacketId.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.PacketId",value:PacketId.encode(e).finish()})};export const Acknowledgement={typeUrl:"/ibc.core.channel.v1.Acknowledgement",encode:(e,t=n.create())=>(void 0!==e.result&&t.uint32(170).bytes(e.result),void 0!==e.error&&t.uint32(178).string(e.error),t),decode(e,n){const r=e instanceof t?e:new t(e);let o=void 0===n?r.len:r.pos+n;const i={result:void 0,error:void 0};for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 21:i.result=r.bytes();break;case 22:i.error=r.string();break;default:r.skipType(7&e)}}return i},fromJSON:e=>({result:r(e.result)?o(e.result):void 0,error:r(e.error)?String(e.error):void 0}),toJSON(e){const t={};return void 0!==e.result&&(t.result=void 0!==e.result?i(e.result):void 0),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={result:void 0,error:void 0};return t.result=e.result??void 0,t.error=e.error??void 0,t},fromProtoMsg:e=>Acknowledgement.decode(e.value),toProto:e=>Acknowledgement.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Acknowledgement",value:Acknowledgement.encode(e).finish()})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../../../../../src/codegen/ibc/core/channel/v1/channel.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,MAAM,EAAsB,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,KAAK,EACL,eAAe,EACf,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAiB,MAAM,0BAA0B,CAAC;AACzD;;;GAGG;AACH,MAAM,CAAN,IAAY,KAkBX;AAlBD,WAAY,KAAK;IACf,sDAAsD;IACtD,uFAAmC,CAAA;IACnC,qEAAqE;IACrE,6CAAc,CAAA;IACd,+FAA+F;IAC/F,mDAAiB,CAAA;IACjB;;;OAGG;IACH,6CAAc,CAAA;IACd;;;OAGG;IACH,iDAAgB,CAAA;IAChB,kDAAiB,CAAA;AACnB,CAAC,EAlBW,KAAK,KAAL,KAAK,QAkBhB;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC;AAClC,MAAM,UAAU,aAAa,CA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ACjB,CAAC;IACD,YAAY,CAAC,OAAgC;QAC3C,OAAO,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,CAAC,OAAwB;QAC9B,OAAO,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAClD,CAAC;IACD,UAAU,CAAC,OAAwB;QACjC,OAAO;YACL,OAAO,EAAE,sCAAsC;YAC/C,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SAChD,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../../../../../src/codegen/ibc/core/channel/v1/channel.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,MAAM,EAAsB,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D;;;GAGG;AACH,MAAM,CAAN,IAAY,KAkBX;AAlBD,WAAY,KAAK;IACf,sDAAsD;IACtD,uFAAmC,CAAA;IACnC,qEAAqE;IACrE,6CAAc,CAAA;IACd,+FAA+F;IAC/F,mDAAiB,CAAA;IACjB;;;OAGG;IACH,6CAAc,CAAA;IACd;;;OAGG;IACH,iDAAgB,CAAA;IAChB,kDAAiB,CAAA;AACnB,CAAC,EAlBW,KAAK,KAAL,KAAK,QAkBhB;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC;AAClC,MAAM,UAAU,aAAa,CAAC,MAAW;IACvC,QAAQ,MAAM,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AAgC;QAC3C,OAAO,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,CAAC,OAAwB;QAC9B,OAAO,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAClD,CAAC;IACD,UAAU,CAAC,OAAwB;QACjC,OAAO;YACL,OAAO,EAAE,sCAAsC;YAC/C,KAAK,EAAE,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SAChD,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PageRequest as e,PageResponse as n}from"../../../../cosmos/base/query/v1beta1/pagination.js";import{Channel as o,IdentifiedChannel as t,PacketState as i}from"./channel.js";import{Height as r,IdentifiedClientState as c}from"../../client/v1/client.js";import{Any as a}from"../../../../google/protobuf/any.js";import{BinaryReader as s,BinaryWriter as d}from"../../../../binary.js";import{isSet as p,bytesFromBase64 as u,base64FromBytes as l}from"../../../../helpers.js";import{}from"../../../../json-safe.js";export const QueryChannelRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:""};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryChannelRequest.decode(e.value),toProto:e=>QueryChannelRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",value:QueryChannelRequest.encode(e).finish()})};function h(){return{channel:void 0,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryChannelResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",encode:(e,n=d.create())=>(void 0!==e.channel&&o.encode(e.channel,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof s?e:new s(e);let i=void 0===n?t.len:t.pos+n;const c=h();for(;t.pos<i;){const e=t.uint32();switch(e>>>3){case 1:c.channel=o.decode(t,t.uint32());break;case 2:c.proof=t.bytes();break;case 3:c.proofHeight=r.decode(t,t.uint32());break;default:t.skipType(7&e)}}return c},fromJSON:e=>({channel:p(e.channel)?o.fromJSON(e.channel):void 0,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.channel&&(n.channel=e.channel?o.toJSON(e.channel):void 0),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=h();return n.channel=void 0!==e.channel&&null!==e.channel?o.fromPartial(e.channel):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelResponse.decode(e.value),toProto:e=>QueryChannelResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",value:QueryChannelResponse.encode(e).finish()})};export const QueryChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",encode:(n,o=d.create())=>(void 0!==n.pagination&&e.encode(n.pagination,o.uint32(10).fork()).ldelim(),o),decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={pagination:void 0};for(;t.pos<i;){const n=t.uint32();if(n>>>3==1)r.pagination=e.decode(t,t.uint32());else t.skipType(7&n)}return r},fromJSON:n=>({pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const o={};return void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),o},fromPartial(n){const o={pagination:void 0};return o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o},fromProtoMsg:e=>QueryChannelsRequest.decode(e.value),toProto:e=>QueryChannelsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",value:QueryChannelsRequest.encode(e).finish()})};function g(){return{channels:[],pagination:void 0,height:r.fromPartial({})}}export const QueryChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",encode(e,o=d.create()){for(const n of e.channels)t.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const i=e instanceof s?e:new s(e);let c=void 0===o?i.len:i.pos+o;const a=g();for(;i.pos<c;){const e=i.uint32();switch(e>>>3){case 1:a.channels.push(t.decode(i,i.uint32()));break;case 2:a.pagination=n.decode(i,i.uint32());break;case 3:a.height=r.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({channels:Array.isArray(e?.channels)?e.channels.map((e=>t.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.channels?o.channels=e.channels.map((e=>e?t.toJSON(e):void 0)):o.channels=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=g();return o.channels=e.channels?.map((e=>t.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryChannelsResponse.decode(e.value),toProto:e=>QueryChannelsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",value:QueryChannelsResponse.encode(e).finish()})};export const QueryConnectionChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",encode:(n,o=d.create())=>(""!==n.connection&&o.uint32(10).string(n.connection),void 0!==n.pagination&&e.encode(n.pagination,o.uint32(18).fork()).ldelim(),o),decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={connection:"",pagination:void 0};for(;t.pos<i;){const n=t.uint32();switch(n>>>3){case 1:r.connection=t.string();break;case 2:r.pagination=e.decode(t,t.uint32());break;default:t.skipType(7&n)}}return r},fromJSON:n=>({connection:p(n.connection)?String(n.connection):"",pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const o={};return void 0!==n.connection&&(o.connection=n.connection),void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),o},fromPartial(n){const o={connection:"",pagination:void 0};return o.connection=n.connection??"",o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o},fromProtoMsg:e=>QueryConnectionChannelsRequest.decode(e.value),toProto:e=>QueryConnectionChannelsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",value:QueryConnectionChannelsRequest.encode(e).finish()})};function f(){return{channels:[],pagination:void 0,height:r.fromPartial({})}}export const QueryConnectionChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",encode(e,o=d.create()){for(const n of e.channels)t.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const i=e instanceof s?e:new s(e);let c=void 0===o?i.len:i.pos+o;const a=f();for(;i.pos<c;){const e=i.uint32();switch(e>>>3){case 1:a.channels.push(t.decode(i,i.uint32()));break;case 2:a.pagination=n.decode(i,i.uint32());break;case 3:a.height=r.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({channels:Array.isArray(e?.channels)?e.channels.map((e=>t.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.channels?o.channels=e.channels.map((e=>e?t.toJSON(e):void 0)):o.channels=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=f();return o.channels=e.channels?.map((e=>t.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryConnectionChannelsResponse.decode(e.value),toProto:e=>QueryConnectionChannelsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",value:QueryConnectionChannelsResponse.encode(e).finish()})};export const QueryChannelClientStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:""};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryChannelClientStateRequest.decode(e.value),toProto:e=>QueryChannelClientStateRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",value:QueryChannelClientStateRequest.encode(e).finish()})};function m(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryChannelClientStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",encode:(e,n=d.create())=>(void 0!==e.identifiedClientState&&c.encode(e.identifiedClientState,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=m();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.identifiedClientState=c.decode(o,o.uint32());break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({identifiedClientState:p(e.identifiedClientState)?c.fromJSON(e.identifiedClientState):void 0,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.identifiedClientState&&(n.identifiedClientState=e.identifiedClientState?c.toJSON(e.identifiedClientState):void 0),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=m();return n.identifiedClientState=void 0!==e.identifiedClientState&&null!==e.identifiedClientState?c.fromPartial(e.identifiedClientState):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelClientStateResponse.decode(e.value),toProto:e=>QueryChannelClientStateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",value:QueryChannelClientStateResponse.encode(e).finish()})};function v(){return{portId:"",channelId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}export const QueryChannelConsensusStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.revisionNumber!==BigInt(0)&&n.uint32(24).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&n.uint32(32).uint64(e.revisionHeight),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=v();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.revisionNumber=o.uint64();break;case 4:i.revisionHeight=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",revisionNumber:p(e.revisionNumber)?BigInt(e.revisionNumber.toString()):BigInt(0),revisionHeight:p(e.revisionHeight)?BigInt(e.revisionHeight.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.revisionNumber&&(n.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),void 0!==e.revisionHeight&&(n.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),n},fromPartial(e){const n=v();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.revisionNumber=void 0!==e.revisionNumber&&null!==e.revisionNumber?BigInt(e.revisionNumber.toString()):BigInt(0),n.revisionHeight=void 0!==e.revisionHeight&&null!==e.revisionHeight?BigInt(e.revisionHeight.toString()):BigInt(0),n},fromProtoMsg:e=>QueryChannelConsensusStateRequest.decode(e.value),toProto:e=>QueryChannelConsensusStateRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",value:QueryChannelConsensusStateRequest.encode(e).finish()})};function I(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryChannelConsensusStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",encode:(e,n=d.create())=>(void 0!==e.consensusState&&a.encode(e.consensusState,n.uint32(10).fork()).ldelim(),""!==e.clientId&&n.uint32(18).string(e.clientId),0!==e.proof.length&&n.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=I();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.consensusState=a.decode(o,o.uint32());break;case 2:i.clientId=o.string();break;case 3:i.proof=o.bytes();break;case 4:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({consensusState:p(e.consensusState)?a.fromJSON(e.consensusState):void 0,clientId:p(e.clientId)?String(e.clientId):"",proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.consensusState&&(n.consensusState=e.consensusState?a.toJSON(e.consensusState):void 0),void 0!==e.clientId&&(n.clientId=e.clientId),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=I();return n.consensusState=void 0!==e.consensusState&&null!==e.consensusState?a.fromPartial(e.consensusState):void 0,n.clientId=e.clientId??"",n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelConsensusStateResponse.decode(e.value),toProto:e=>QueryChannelConsensusStateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",value:QueryChannelConsensusStateResponse.encode(e).finish()})};function k(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketCommitmentRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=k();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.sequence=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",sequence:p(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=k();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketCommitmentRequest.decode(e.value),toProto:e=>QueryPacketCommitmentRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",value:QueryPacketCommitmentRequest.encode(e).finish()})};function y(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryPacketCommitmentResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",encode:(e,n=d.create())=>(0!==e.commitment.length&&n.uint32(10).bytes(e.commitment),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=y();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.commitment=o.bytes();break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({commitment:p(e.commitment)?u(e.commitment):new Uint8Array,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.commitment&&(n.commitment=l(void 0!==e.commitment?e.commitment:new Uint8Array)),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=y();return n.commitment=e.commitment??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketCommitmentResponse.decode(e.value),toProto:e=>QueryPacketCommitmentResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",value:QueryPacketCommitmentResponse.encode(e).finish()})};export const QueryPacketCommitmentsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",encode:(n,o=d.create())=>(""!==n.portId&&o.uint32(10).string(n.portId),""!==n.channelId&&o.uint32(18).string(n.channelId),void 0!==n.pagination&&e.encode(n.pagination,o.uint32(26).fork()).ldelim(),o),decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={portId:"",channelId:"",pagination:void 0};for(;t.pos<i;){const n=t.uint32();switch(n>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.pagination=e.decode(t,t.uint32());break;default:t.skipType(7&n)}}return r},fromJSON:n=>({portId:p(n.portId)?String(n.portId):"",channelId:p(n.channelId)?String(n.channelId):"",pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const o={};return void 0!==n.portId&&(o.portId=n.portId),void 0!==n.channelId&&(o.channelId=n.channelId),void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),o},fromPartial(n){const o={portId:"",channelId:"",pagination:void 0};return o.portId=n.portId??"",o.channelId=n.channelId??"",o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o},fromProtoMsg:e=>QueryPacketCommitmentsRequest.decode(e.value),toProto:e=>QueryPacketCommitmentsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",value:QueryPacketCommitmentsRequest.encode(e).finish()})};function S(){return{commitments:[],pagination:void 0,height:r.fromPartial({})}}export const QueryPacketCommitmentsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",encode(e,o=d.create()){for(const n of e.commitments)i.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const t=e instanceof s?e:new s(e);let c=void 0===o?t.len:t.pos+o;const a=S();for(;t.pos<c;){const e=t.uint32();switch(e>>>3){case 1:a.commitments.push(i.decode(t,t.uint32()));break;case 2:a.pagination=n.decode(t,t.uint32());break;case 3:a.height=r.decode(t,t.uint32());break;default:t.skipType(7&e)}}return a},fromJSON:e=>({commitments:Array.isArray(e?.commitments)?e.commitments.map((e=>i.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.commitments?o.commitments=e.commitments.map((e=>e?i.toJSON(e):void 0)):o.commitments=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=S();return o.commitments=e.commitments?.map((e=>i.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryPacketCommitmentsResponse.decode(e.value),toProto:e=>QueryPacketCommitmentsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",value:QueryPacketCommitmentsResponse.encode(e).finish()})};function P(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketReceiptRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=P();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.sequence=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",sequence:p(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=P();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketReceiptRequest.decode(e.value),toProto:e=>QueryPacketReceiptRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",value:QueryPacketReceiptRequest.encode(e).finish()})};function q(){return{received:!1,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryPacketReceiptResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",encode:(e,n=d.create())=>(!0===e.received&&n.uint32(16).bool(e.received),0!==e.proof.length&&n.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=q();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 2:i.received=o.bool();break;case 3:i.proof=o.bytes();break;case 4:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({received:!!p(e.received)&&Boolean(e.received),proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.received&&(n.received=e.received),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=q();return n.received=e.received??!1,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketReceiptResponse.decode(e.value),toProto:e=>QueryPacketReceiptResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",value:QueryPacketReceiptResponse.encode(e).finish()})};function R(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketAcknowledgementRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=R();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.sequence=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",sequence:p(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=R();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketAcknowledgementRequest.decode(e.value),toProto:e=>QueryPacketAcknowledgementRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",value:QueryPacketAcknowledgementRequest.encode(e).finish()})};function C(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryPacketAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",encode:(e,n=d.create())=>(0!==e.acknowledgement.length&&n.uint32(10).bytes(e.acknowledgement),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=C();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.acknowledgement=o.bytes();break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({acknowledgement:p(e.acknowledgement)?u(e.acknowledgement):new Uint8Array,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.acknowledgement&&(n.acknowledgement=l(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=C();return n.acknowledgement=e.acknowledgement??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketAcknowledgementResponse.decode(e.value),toProto:e=>QueryPacketAcknowledgementResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",value:QueryPacketAcknowledgementResponse.encode(e).finish()})};export const QueryPacketAcknowledgementsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",encode(n,o=d.create()){""!==n.portId&&o.uint32(10).string(n.portId),""!==n.channelId&&o.uint32(18).string(n.channelId),void 0!==n.pagination&&e.encode(n.pagination,o.uint32(26).fork()).ldelim(),o.uint32(34).fork();for(const e of n.packetCommitmentSequences)o.uint64(e);return o.ldelim(),o},decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]};for(;t.pos<i;){const n=t.uint32();switch(n>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.pagination=e.decode(t,t.uint32());break;case 4:if(2==(7&n)){const e=t.uint32()+t.pos;for(;t.pos<e;)r.packetCommitmentSequences.push(t.uint64())}else r.packetCommitmentSequences.push(t.uint64());break;default:t.skipType(7&n)}}return r},fromJSON:n=>({portId:p(n.portId)?String(n.portId):"",channelId:p(n.channelId)?String(n.channelId):"",pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0,packetCommitmentSequences:Array.isArray(n?.packetCommitmentSequences)?n.packetCommitmentSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(n){const o={};return void 0!==n.portId&&(o.portId=n.portId),void 0!==n.channelId&&(o.channelId=n.channelId),void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),n.packetCommitmentSequences?o.packetCommitmentSequences=n.packetCommitmentSequences.map((e=>(e||BigInt(0)).toString())):o.packetCommitmentSequences=[],o},fromPartial(n){const o={portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]};return o.portId=n.portId??"",o.channelId=n.channelId??"",o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o.packetCommitmentSequences=n.packetCommitmentSequences?.map((e=>BigInt(e.toString())))||[],o},fromProtoMsg:e=>QueryPacketAcknowledgementsRequest.decode(e.value),toProto:e=>QueryPacketAcknowledgementsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",value:QueryPacketAcknowledgementsRequest.encode(e).finish()})};function b(){return{acknowledgements:[],pagination:void 0,height:r.fromPartial({})}}export const QueryPacketAcknowledgementsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",encode(e,o=d.create()){for(const n of e.acknowledgements)i.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const t=e instanceof s?e:new s(e);let c=void 0===o?t.len:t.pos+o;const a=b();for(;t.pos<c;){const e=t.uint32();switch(e>>>3){case 1:a.acknowledgements.push(i.decode(t,t.uint32()));break;case 2:a.pagination=n.decode(t,t.uint32());break;case 3:a.height=r.decode(t,t.uint32());break;default:t.skipType(7&e)}}return a},fromJSON:e=>({acknowledgements:Array.isArray(e?.acknowledgements)?e.acknowledgements.map((e=>i.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.acknowledgements?o.acknowledgements=e.acknowledgements.map((e=>e?i.toJSON(e):void 0)):o.acknowledgements=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=b();return o.acknowledgements=e.acknowledgements?.map((e=>i.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryPacketAcknowledgementsResponse.decode(e.value),toProto:e=>QueryPacketAcknowledgementsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",value:QueryPacketAcknowledgementsResponse.encode(e).finish()})};export const QueryUnreceivedPacketsRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",encode(e,n=d.create()){""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const o of e.packetCommitmentSequences)n.uint64(o);return n.ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:"",packetCommitmentSequences:[]};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.packetCommitmentSequences.push(o.uint64())}else i.packetCommitmentSequences.push(o.uint64());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",packetCommitmentSequences:Array.isArray(e?.packetCommitmentSequences)?e.packetCommitmentSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),e.packetCommitmentSequences?n.packetCommitmentSequences=e.packetCommitmentSequences.map((e=>(e||BigInt(0)).toString())):n.packetCommitmentSequences=[],n},fromPartial(e){const n={portId:"",channelId:"",packetCommitmentSequences:[]};return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetCommitmentSequences=e.packetCommitmentSequences?.map((e=>BigInt(e.toString())))||[],n},fromProtoMsg:e=>QueryUnreceivedPacketsRequest.decode(e.value),toProto:e=>QueryUnreceivedPacketsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",value:QueryUnreceivedPacketsRequest.encode(e).finish()})};function Q(){return{sequences:[],height:r.fromPartial({})}}export const QueryUnreceivedPacketsResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",encode(e,n=d.create()){n.uint32(10).fork();for(const o of e.sequences)n.uint64(o);return n.ldelim(),void 0!==e.height&&r.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=Q();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.sequences.push(o.uint64())}else i.sequences.push(o.uint64());break;case 2:i.height=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({sequences:Array.isArray(e?.sequences)?e.sequences.map((e=>BigInt(e.toString()))):[],height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map((e=>(e||BigInt(0)).toString())):n.sequences=[],void 0!==e.height&&(n.height=e.height?r.toJSON(e.height):void 0),n},fromPartial(e){const n=Q();return n.sequences=e.sequences?.map((e=>BigInt(e.toString())))||[],n.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,n},fromProtoMsg:e=>QueryUnreceivedPacketsResponse.decode(e.value),toProto:e=>QueryUnreceivedPacketsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",value:QueryUnreceivedPacketsResponse.encode(e).finish()})};export const QueryUnreceivedAcksRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",encode(e,n=d.create()){""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const o of e.packetAckSequences)n.uint64(o);return n.ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:"",packetAckSequences:[]};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.packetAckSequences.push(o.uint64())}else i.packetAckSequences.push(o.uint64());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",packetAckSequences:Array.isArray(e?.packetAckSequences)?e.packetAckSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),e.packetAckSequences?n.packetAckSequences=e.packetAckSequences.map((e=>(e||BigInt(0)).toString())):n.packetAckSequences=[],n},fromPartial(e){const n={portId:"",channelId:"",packetAckSequences:[]};return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetAckSequences=e.packetAckSequences?.map((e=>BigInt(e.toString())))||[],n},fromProtoMsg:e=>QueryUnreceivedAcksRequest.decode(e.value),toProto:e=>QueryUnreceivedAcksRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",value:QueryUnreceivedAcksRequest.encode(e).finish()})};function w(){return{sequences:[],height:r.fromPartial({})}}export const QueryUnreceivedAcksResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",encode(e,n=d.create()){n.uint32(10).fork();for(const o of e.sequences)n.uint64(o);return n.ldelim(),void 0!==e.height&&r.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=w();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.sequences.push(o.uint64())}else i.sequences.push(o.uint64());break;case 2:i.height=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({sequences:Array.isArray(e?.sequences)?e.sequences.map((e=>BigInt(e.toString()))):[],height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map((e=>(e||BigInt(0)).toString())):n.sequences=[],void 0!==e.height&&(n.height=e.height?r.toJSON(e.height):void 0),n},fromPartial(e){const n=w();return n.sequences=e.sequences?.map((e=>BigInt(e.toString())))||[],n.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,n},fromProtoMsg:e=>QueryUnreceivedAcksResponse.decode(e.value),toProto:e=>QueryUnreceivedAcksResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",value:QueryUnreceivedAcksResponse.encode(e).finish()})};export const QueryNextSequenceReceiveRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:""};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryNextSequenceReceiveRequest.decode(e.value),toProto:e=>QueryNextSequenceReceiveRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",value:QueryNextSequenceReceiveRequest.encode(e).finish()})};function N(){return{nextSequenceReceive:BigInt(0),proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryNextSequenceReceiveResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",encode:(e,n=d.create())=>(e.nextSequenceReceive!==BigInt(0)&&n.uint32(8).uint64(e.nextSequenceReceive),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=N();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.nextSequenceReceive=o.uint64();break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({nextSequenceReceive:p(e.nextSequenceReceive)?BigInt(e.nextSequenceReceive.toString()):BigInt(0),proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.nextSequenceReceive&&(n.nextSequenceReceive=(e.nextSequenceReceive||BigInt(0)).toString()),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=N();return n.nextSequenceReceive=void 0!==e.nextSequenceReceive&&null!==e.nextSequenceReceive?BigInt(e.nextSequenceReceive.toString()):BigInt(0),n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryNextSequenceReceiveResponse.decode(e.value),toProto:e=>QueryNextSequenceReceiveResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",value:QueryNextSequenceReceiveResponse.encode(e).finish()})};
|
|
1
|
+
import{PageRequest as e,PageResponse as n}from"../../../../cosmos/base/query/v1beta1/pagination.js";import{Channel as o,IdentifiedChannel as t,PacketState as i}from"./channel.js";import{Height as r,IdentifiedClientState as c}from"../../client/v1/client.js";import{Any as a}from"../../../../google/protobuf/any.js";import{BinaryReader as s,BinaryWriter as d}from"../../../../binary.js";import{isSet as p}from"../../../../helpers.js";import{}from"../../../../json-safe.js";import{decodeBase64 as u}from"@endo/base64";import{encodeBase64 as l}from"@endo/base64";export const QueryChannelRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:""};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryChannelRequest.decode(e.value),toProto:e=>QueryChannelRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",value:QueryChannelRequest.encode(e).finish()})};function h(){return{channel:void 0,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryChannelResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",encode:(e,n=d.create())=>(void 0!==e.channel&&o.encode(e.channel,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof s?e:new s(e);let i=void 0===n?t.len:t.pos+n;const c=h();for(;t.pos<i;){const e=t.uint32();switch(e>>>3){case 1:c.channel=o.decode(t,t.uint32());break;case 2:c.proof=t.bytes();break;case 3:c.proofHeight=r.decode(t,t.uint32());break;default:t.skipType(7&e)}}return c},fromJSON:e=>({channel:p(e.channel)?o.fromJSON(e.channel):void 0,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.channel&&(n.channel=e.channel?o.toJSON(e.channel):void 0),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=h();return n.channel=void 0!==e.channel&&null!==e.channel?o.fromPartial(e.channel):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelResponse.decode(e.value),toProto:e=>QueryChannelResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",value:QueryChannelResponse.encode(e).finish()})};export const QueryChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",encode:(n,o=d.create())=>(void 0!==n.pagination&&e.encode(n.pagination,o.uint32(10).fork()).ldelim(),o),decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={pagination:void 0};for(;t.pos<i;){const n=t.uint32();if(n>>>3==1)r.pagination=e.decode(t,t.uint32());else t.skipType(7&n)}return r},fromJSON:n=>({pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const o={};return void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),o},fromPartial(n){const o={pagination:void 0};return o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o},fromProtoMsg:e=>QueryChannelsRequest.decode(e.value),toProto:e=>QueryChannelsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",value:QueryChannelsRequest.encode(e).finish()})};function g(){return{channels:[],pagination:void 0,height:r.fromPartial({})}}export const QueryChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",encode(e,o=d.create()){for(const n of e.channels)t.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const i=e instanceof s?e:new s(e);let c=void 0===o?i.len:i.pos+o;const a=g();for(;i.pos<c;){const e=i.uint32();switch(e>>>3){case 1:a.channels.push(t.decode(i,i.uint32()));break;case 2:a.pagination=n.decode(i,i.uint32());break;case 3:a.height=r.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({channels:Array.isArray(e?.channels)?e.channels.map((e=>t.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.channels?o.channels=e.channels.map((e=>e?t.toJSON(e):void 0)):o.channels=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=g();return o.channels=e.channels?.map((e=>t.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryChannelsResponse.decode(e.value),toProto:e=>QueryChannelsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",value:QueryChannelsResponse.encode(e).finish()})};export const QueryConnectionChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",encode:(n,o=d.create())=>(""!==n.connection&&o.uint32(10).string(n.connection),void 0!==n.pagination&&e.encode(n.pagination,o.uint32(18).fork()).ldelim(),o),decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={connection:"",pagination:void 0};for(;t.pos<i;){const n=t.uint32();switch(n>>>3){case 1:r.connection=t.string();break;case 2:r.pagination=e.decode(t,t.uint32());break;default:t.skipType(7&n)}}return r},fromJSON:n=>({connection:p(n.connection)?String(n.connection):"",pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const o={};return void 0!==n.connection&&(o.connection=n.connection),void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),o},fromPartial(n){const o={connection:"",pagination:void 0};return o.connection=n.connection??"",o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o},fromProtoMsg:e=>QueryConnectionChannelsRequest.decode(e.value),toProto:e=>QueryConnectionChannelsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",value:QueryConnectionChannelsRequest.encode(e).finish()})};function f(){return{channels:[],pagination:void 0,height:r.fromPartial({})}}export const QueryConnectionChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",encode(e,o=d.create()){for(const n of e.channels)t.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const i=e instanceof s?e:new s(e);let c=void 0===o?i.len:i.pos+o;const a=f();for(;i.pos<c;){const e=i.uint32();switch(e>>>3){case 1:a.channels.push(t.decode(i,i.uint32()));break;case 2:a.pagination=n.decode(i,i.uint32());break;case 3:a.height=r.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON:e=>({channels:Array.isArray(e?.channels)?e.channels.map((e=>t.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.channels?o.channels=e.channels.map((e=>e?t.toJSON(e):void 0)):o.channels=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=f();return o.channels=e.channels?.map((e=>t.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryConnectionChannelsResponse.decode(e.value),toProto:e=>QueryConnectionChannelsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",value:QueryConnectionChannelsResponse.encode(e).finish()})};export const QueryChannelClientStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:""};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryChannelClientStateRequest.decode(e.value),toProto:e=>QueryChannelClientStateRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",value:QueryChannelClientStateRequest.encode(e).finish()})};function m(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryChannelClientStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",encode:(e,n=d.create())=>(void 0!==e.identifiedClientState&&c.encode(e.identifiedClientState,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=m();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.identifiedClientState=c.decode(o,o.uint32());break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({identifiedClientState:p(e.identifiedClientState)?c.fromJSON(e.identifiedClientState):void 0,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.identifiedClientState&&(n.identifiedClientState=e.identifiedClientState?c.toJSON(e.identifiedClientState):void 0),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=m();return n.identifiedClientState=void 0!==e.identifiedClientState&&null!==e.identifiedClientState?c.fromPartial(e.identifiedClientState):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelClientStateResponse.decode(e.value),toProto:e=>QueryChannelClientStateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",value:QueryChannelClientStateResponse.encode(e).finish()})};function v(){return{portId:"",channelId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}export const QueryChannelConsensusStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.revisionNumber!==BigInt(0)&&n.uint32(24).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&n.uint32(32).uint64(e.revisionHeight),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=v();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.revisionNumber=o.uint64();break;case 4:i.revisionHeight=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",revisionNumber:p(e.revisionNumber)?BigInt(e.revisionNumber.toString()):BigInt(0),revisionHeight:p(e.revisionHeight)?BigInt(e.revisionHeight.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.revisionNumber&&(n.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),void 0!==e.revisionHeight&&(n.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),n},fromPartial(e){const n=v();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.revisionNumber=void 0!==e.revisionNumber&&null!==e.revisionNumber?BigInt(e.revisionNumber.toString()):BigInt(0),n.revisionHeight=void 0!==e.revisionHeight&&null!==e.revisionHeight?BigInt(e.revisionHeight.toString()):BigInt(0),n},fromProtoMsg:e=>QueryChannelConsensusStateRequest.decode(e.value),toProto:e=>QueryChannelConsensusStateRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",value:QueryChannelConsensusStateRequest.encode(e).finish()})};function I(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryChannelConsensusStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",encode:(e,n=d.create())=>(void 0!==e.consensusState&&a.encode(e.consensusState,n.uint32(10).fork()).ldelim(),""!==e.clientId&&n.uint32(18).string(e.clientId),0!==e.proof.length&&n.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=I();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.consensusState=a.decode(o,o.uint32());break;case 2:i.clientId=o.string();break;case 3:i.proof=o.bytes();break;case 4:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({consensusState:p(e.consensusState)?a.fromJSON(e.consensusState):void 0,clientId:p(e.clientId)?String(e.clientId):"",proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.consensusState&&(n.consensusState=e.consensusState?a.toJSON(e.consensusState):void 0),void 0!==e.clientId&&(n.clientId=e.clientId),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=I();return n.consensusState=void 0!==e.consensusState&&null!==e.consensusState?a.fromPartial(e.consensusState):void 0,n.clientId=e.clientId??"",n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelConsensusStateResponse.decode(e.value),toProto:e=>QueryChannelConsensusStateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",value:QueryChannelConsensusStateResponse.encode(e).finish()})};function k(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketCommitmentRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=k();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.sequence=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",sequence:p(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=k();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketCommitmentRequest.decode(e.value),toProto:e=>QueryPacketCommitmentRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",value:QueryPacketCommitmentRequest.encode(e).finish()})};function y(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryPacketCommitmentResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",encode:(e,n=d.create())=>(0!==e.commitment.length&&n.uint32(10).bytes(e.commitment),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=y();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.commitment=o.bytes();break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({commitment:p(e.commitment)?u(e.commitment):new Uint8Array,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.commitment&&(n.commitment=l(void 0!==e.commitment?e.commitment:new Uint8Array)),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=y();return n.commitment=e.commitment??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketCommitmentResponse.decode(e.value),toProto:e=>QueryPacketCommitmentResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",value:QueryPacketCommitmentResponse.encode(e).finish()})};export const QueryPacketCommitmentsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",encode:(n,o=d.create())=>(""!==n.portId&&o.uint32(10).string(n.portId),""!==n.channelId&&o.uint32(18).string(n.channelId),void 0!==n.pagination&&e.encode(n.pagination,o.uint32(26).fork()).ldelim(),o),decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={portId:"",channelId:"",pagination:void 0};for(;t.pos<i;){const n=t.uint32();switch(n>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.pagination=e.decode(t,t.uint32());break;default:t.skipType(7&n)}}return r},fromJSON:n=>({portId:p(n.portId)?String(n.portId):"",channelId:p(n.channelId)?String(n.channelId):"",pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const o={};return void 0!==n.portId&&(o.portId=n.portId),void 0!==n.channelId&&(o.channelId=n.channelId),void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),o},fromPartial(n){const o={portId:"",channelId:"",pagination:void 0};return o.portId=n.portId??"",o.channelId=n.channelId??"",o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o},fromProtoMsg:e=>QueryPacketCommitmentsRequest.decode(e.value),toProto:e=>QueryPacketCommitmentsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",value:QueryPacketCommitmentsRequest.encode(e).finish()})};function S(){return{commitments:[],pagination:void 0,height:r.fromPartial({})}}export const QueryPacketCommitmentsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",encode(e,o=d.create()){for(const n of e.commitments)i.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const t=e instanceof s?e:new s(e);let c=void 0===o?t.len:t.pos+o;const a=S();for(;t.pos<c;){const e=t.uint32();switch(e>>>3){case 1:a.commitments.push(i.decode(t,t.uint32()));break;case 2:a.pagination=n.decode(t,t.uint32());break;case 3:a.height=r.decode(t,t.uint32());break;default:t.skipType(7&e)}}return a},fromJSON:e=>({commitments:Array.isArray(e?.commitments)?e.commitments.map((e=>i.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.commitments?o.commitments=e.commitments.map((e=>e?i.toJSON(e):void 0)):o.commitments=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=S();return o.commitments=e.commitments?.map((e=>i.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryPacketCommitmentsResponse.decode(e.value),toProto:e=>QueryPacketCommitmentsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",value:QueryPacketCommitmentsResponse.encode(e).finish()})};function P(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketReceiptRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=P();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.sequence=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",sequence:p(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=P();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketReceiptRequest.decode(e.value),toProto:e=>QueryPacketReceiptRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",value:QueryPacketReceiptRequest.encode(e).finish()})};function q(){return{received:!1,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryPacketReceiptResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",encode:(e,n=d.create())=>(!0===e.received&&n.uint32(16).bool(e.received),0!==e.proof.length&&n.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=q();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 2:i.received=o.bool();break;case 3:i.proof=o.bytes();break;case 4:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({received:!!p(e.received)&&Boolean(e.received),proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.received&&(n.received=e.received),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=q();return n.received=e.received??!1,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketReceiptResponse.decode(e.value),toProto:e=>QueryPacketReceiptResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",value:QueryPacketReceiptResponse.encode(e).finish()})};function R(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketAcknowledgementRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=R();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.sequence=o.uint64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",sequence:p(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=R();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketAcknowledgementRequest.decode(e.value),toProto:e=>QueryPacketAcknowledgementRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",value:QueryPacketAcknowledgementRequest.encode(e).finish()})};function b(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryPacketAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",encode:(e,n=d.create())=>(0!==e.acknowledgement.length&&n.uint32(10).bytes(e.acknowledgement),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=b();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.acknowledgement=o.bytes();break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({acknowledgement:p(e.acknowledgement)?u(e.acknowledgement):new Uint8Array,proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.acknowledgement&&(n.acknowledgement=l(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=b();return n.acknowledgement=e.acknowledgement??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketAcknowledgementResponse.decode(e.value),toProto:e=>QueryPacketAcknowledgementResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",value:QueryPacketAcknowledgementResponse.encode(e).finish()})};export const QueryPacketAcknowledgementsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",encode(n,o=d.create()){""!==n.portId&&o.uint32(10).string(n.portId),""!==n.channelId&&o.uint32(18).string(n.channelId),void 0!==n.pagination&&e.encode(n.pagination,o.uint32(26).fork()).ldelim(),o.uint32(34).fork();for(const e of n.packetCommitmentSequences)o.uint64(e);return o.ldelim(),o},decode(n,o){const t=n instanceof s?n:new s(n);let i=void 0===o?t.len:t.pos+o;const r={portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]};for(;t.pos<i;){const n=t.uint32();switch(n>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.pagination=e.decode(t,t.uint32());break;case 4:if(2==(7&n)){const e=t.uint32()+t.pos;for(;t.pos<e;)r.packetCommitmentSequences.push(t.uint64())}else r.packetCommitmentSequences.push(t.uint64());break;default:t.skipType(7&n)}}return r},fromJSON:n=>({portId:p(n.portId)?String(n.portId):"",channelId:p(n.channelId)?String(n.channelId):"",pagination:p(n.pagination)?e.fromJSON(n.pagination):void 0,packetCommitmentSequences:Array.isArray(n?.packetCommitmentSequences)?n.packetCommitmentSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(n){const o={};return void 0!==n.portId&&(o.portId=n.portId),void 0!==n.channelId&&(o.channelId=n.channelId),void 0!==n.pagination&&(o.pagination=n.pagination?e.toJSON(n.pagination):void 0),n.packetCommitmentSequences?o.packetCommitmentSequences=n.packetCommitmentSequences.map((e=>(e||BigInt(0)).toString())):o.packetCommitmentSequences=[],o},fromPartial(n){const o={portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]};return o.portId=n.portId??"",o.channelId=n.channelId??"",o.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,o.packetCommitmentSequences=n.packetCommitmentSequences?.map((e=>BigInt(e.toString())))||[],o},fromProtoMsg:e=>QueryPacketAcknowledgementsRequest.decode(e.value),toProto:e=>QueryPacketAcknowledgementsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",value:QueryPacketAcknowledgementsRequest.encode(e).finish()})};function C(){return{acknowledgements:[],pagination:void 0,height:r.fromPartial({})}}export const QueryPacketAcknowledgementsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",encode(e,o=d.create()){for(const n of e.acknowledgements)i.encode(n,o.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,o.uint32(18).fork()).ldelim(),void 0!==e.height&&r.encode(e.height,o.uint32(26).fork()).ldelim(),o},decode(e,o){const t=e instanceof s?e:new s(e);let c=void 0===o?t.len:t.pos+o;const a=C();for(;t.pos<c;){const e=t.uint32();switch(e>>>3){case 1:a.acknowledgements.push(i.decode(t,t.uint32()));break;case 2:a.pagination=n.decode(t,t.uint32());break;case 3:a.height=r.decode(t,t.uint32());break;default:t.skipType(7&e)}}return a},fromJSON:e=>({acknowledgements:Array.isArray(e?.acknowledgements)?e.acknowledgements.map((e=>i.fromJSON(e))):[],pagination:p(e.pagination)?n.fromJSON(e.pagination):void 0,height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const o={};return e.acknowledgements?o.acknowledgements=e.acknowledgements.map((e=>e?i.toJSON(e):void 0)):o.acknowledgements=[],void 0!==e.pagination&&(o.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(o.height=e.height?r.toJSON(e.height):void 0),o},fromPartial(e){const o=C();return o.acknowledgements=e.acknowledgements?.map((e=>i.fromPartial(e)))||[],o.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,o.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,o},fromProtoMsg:e=>QueryPacketAcknowledgementsResponse.decode(e.value),toProto:e=>QueryPacketAcknowledgementsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",value:QueryPacketAcknowledgementsResponse.encode(e).finish()})};export const QueryUnreceivedPacketsRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",encode(e,n=d.create()){""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const o of e.packetCommitmentSequences)n.uint64(o);return n.ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:"",packetCommitmentSequences:[]};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.packetCommitmentSequences.push(o.uint64())}else i.packetCommitmentSequences.push(o.uint64());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",packetCommitmentSequences:Array.isArray(e?.packetCommitmentSequences)?e.packetCommitmentSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),e.packetCommitmentSequences?n.packetCommitmentSequences=e.packetCommitmentSequences.map((e=>(e||BigInt(0)).toString())):n.packetCommitmentSequences=[],n},fromPartial(e){const n={portId:"",channelId:"",packetCommitmentSequences:[]};return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetCommitmentSequences=e.packetCommitmentSequences?.map((e=>BigInt(e.toString())))||[],n},fromProtoMsg:e=>QueryUnreceivedPacketsRequest.decode(e.value),toProto:e=>QueryUnreceivedPacketsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",value:QueryUnreceivedPacketsRequest.encode(e).finish()})};function Q(){return{sequences:[],height:r.fromPartial({})}}export const QueryUnreceivedPacketsResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",encode(e,n=d.create()){n.uint32(10).fork();for(const o of e.sequences)n.uint64(o);return n.ldelim(),void 0!==e.height&&r.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=Q();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.sequences.push(o.uint64())}else i.sequences.push(o.uint64());break;case 2:i.height=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({sequences:Array.isArray(e?.sequences)?e.sequences.map((e=>BigInt(e.toString()))):[],height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map((e=>(e||BigInt(0)).toString())):n.sequences=[],void 0!==e.height&&(n.height=e.height?r.toJSON(e.height):void 0),n},fromPartial(e){const n=Q();return n.sequences=e.sequences?.map((e=>BigInt(e.toString())))||[],n.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,n},fromProtoMsg:e=>QueryUnreceivedPacketsResponse.decode(e.value),toProto:e=>QueryUnreceivedPacketsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",value:QueryUnreceivedPacketsResponse.encode(e).finish()})};export const QueryUnreceivedAcksRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",encode(e,n=d.create()){""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const o of e.packetAckSequences)n.uint64(o);return n.ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:"",packetAckSequences:[]};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.packetAckSequences.push(o.uint64())}else i.packetAckSequences.push(o.uint64());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):"",packetAckSequences:Array.isArray(e?.packetAckSequences)?e.packetAckSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),e.packetAckSequences?n.packetAckSequences=e.packetAckSequences.map((e=>(e||BigInt(0)).toString())):n.packetAckSequences=[],n},fromPartial(e){const n={portId:"",channelId:"",packetAckSequences:[]};return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetAckSequences=e.packetAckSequences?.map((e=>BigInt(e.toString())))||[],n},fromProtoMsg:e=>QueryUnreceivedAcksRequest.decode(e.value),toProto:e=>QueryUnreceivedAcksRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",value:QueryUnreceivedAcksRequest.encode(e).finish()})};function w(){return{sequences:[],height:r.fromPartial({})}}export const QueryUnreceivedAcksResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",encode(e,n=d.create()){n.uint32(10).fork();for(const o of e.sequences)n.uint64(o);return n.ldelim(),void 0!==e.height&&r.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=w();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.sequences.push(o.uint64())}else i.sequences.push(o.uint64());break;case 2:i.height=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({sequences:Array.isArray(e?.sequences)?e.sequences.map((e=>BigInt(e.toString()))):[],height:p(e.height)?r.fromJSON(e.height):void 0}),toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map((e=>(e||BigInt(0)).toString())):n.sequences=[],void 0!==e.height&&(n.height=e.height?r.toJSON(e.height):void 0),n},fromPartial(e){const n=w();return n.sequences=e.sequences?.map((e=>BigInt(e.toString())))||[],n.height=void 0!==e.height&&null!==e.height?r.fromPartial(e.height):void 0,n},fromProtoMsg:e=>QueryUnreceivedAcksResponse.decode(e.value),toProto:e=>QueryUnreceivedAcksResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",value:QueryUnreceivedAcksResponse.encode(e).finish()})};export const QueryNextSequenceReceiveRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",encode:(e,n=d.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i={portId:"",channelId:""};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({portId:p(e.portId)?String(e.portId):"",channelId:p(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryNextSequenceReceiveRequest.decode(e.value),toProto:e=>QueryNextSequenceReceiveRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",value:QueryNextSequenceReceiveRequest.encode(e).finish()})};function N(){return{nextSequenceReceive:BigInt(0),proof:new Uint8Array,proofHeight:r.fromPartial({})}}export const QueryNextSequenceReceiveResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",encode:(e,n=d.create())=>(e.nextSequenceReceive!==BigInt(0)&&n.uint32(8).uint64(e.nextSequenceReceive),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&r.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof s?e:new s(e);let t=void 0===n?o.len:o.pos+n;const i=N();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:i.nextSequenceReceive=o.uint64();break;case 2:i.proof=o.bytes();break;case 3:i.proofHeight=r.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({nextSequenceReceive:p(e.nextSequenceReceive)?BigInt(e.nextSequenceReceive.toString()):BigInt(0),proof:p(e.proof)?u(e.proof):new Uint8Array,proofHeight:p(e.proofHeight)?r.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.nextSequenceReceive&&(n.nextSequenceReceive=(e.nextSequenceReceive||BigInt(0)).toString()),void 0!==e.proof&&(n.proof=l(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?r.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=N();return n.nextSequenceReceive=void 0!==e.nextSequenceReceive&&null!==e.nextSequenceReceive?BigInt(e.nextSequenceReceive.toString()):BigInt(0),n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?r.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryNextSequenceReceiveResponse.decode(e.value),toProto:e=>QueryNextSequenceReceiveResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",value:QueryNextSequenceReceiveResponse.encode(e).finish()})};
|