Function prepareICQConnectionKitInternal
prepareICQConnection Kit ( zone , vowTools ) : ( ( ... args : [ port: Port ] ) => GuardedKit < { connection : { getLocalAddress ( ) : ` /ibc-port/ ${ string } ` ; getRemoteAddress ( ) : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ; query ( msgs : { data : string ; height : string ; path : string ; prove : boolean ; } [] ) : Vow < { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : ...; key : ...; type : ...; } [] ; } ; value : string ; } [] > ; } ; connectionHandler : { onClose ( _connection : any , reason : any ) : Promise < void > ; onOpen ( connection : Remote < Connection > , localAddr : ` /ibc-port/ ${ string } ` , remoteAddr : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ) : Promise < void > ; } ; parseQueryPacketWatcher : { onFulfilled ( ack : string ) : { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : string ; key : string ; type : string ; } [] ; } ; value : string ; } [] ; } ; } > ) Parameters zone : Zone vowTools : { allVows : ( ( maybeVows : unknown [] ) => Vow < any [] > ) ; asPromise : AsPromiseFunction ; asVow : ( < T > ( fn : ( ( ... args : any [] ) => Awaited < T > | Vow < Awaited < T > > | PromiseVow < T > ) ) => Vow < Awaited < T > > ) ; makeVowKit : ( < T > ( ) => VowKit < T > ) ; retriable : ( < F > ( fnZone : Zone , name : string , fn : F ) => F extends ( ( ... args : Args ) => Promise < R > ) ? ( ( ... args : Args ) => Vow < R > ) : never ) ; watch : ( < T , TResult1 , TResult2 , C > ( specimenP : EVow < T > , watcher ?: Watcher < T , TResult1 , TResult2 , C > , ... watcherArgs : C ) => Vow < Narrowest > ) ; when : ( < T , TResult1 , TResult2 > ( specimenP : T , onFulfilled ?: ( ( value : EUnwrap < T > ) => TResult1 | PromiseLike < TResult1 > ) , onRejected ?: ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > ) ) => Promise < TResult1 | TResult2 > ) ; } all Vows : ( ( maybeVows : unknown [] ) => Vow < any [] > ) ( maybeVows ) : Vow < any [] > Returns Vow < any [] > as Promise : AsPromiseFunction as Vow : ( < T > ( fn : ( ( ... args : any [] ) => Awaited < T > | Vow < Awaited < T > > | PromiseVow < T > ) ) => Vow < Awaited < T > > ) < T > ( fn ) : Vow < Awaited < T > > Parameters fn : ( ( ... args : any [] ) => Awaited < T > | Vow < Awaited < T > > | PromiseVow < T > ) ( ... args ) : Awaited < T > | Vow < Awaited < T > > | PromiseVow < T > Returns Awaited < T > | Vow < Awaited < T > > | PromiseVow < T > Returns Vow < Awaited < T > > make Vow Kit : ( < T > ( ) => VowKit < T > ) < T > ( ) : VowKit < T > Returns VowKit < T > retriable : ( < F > ( fnZone : Zone , name : string , fn : F ) => F extends ( ( ... args : Args ) => Promise < R > ) ? ( ( ... args : Args ) => Vow < R > ) : never ) < F > ( fnZone , name , fn ) : F extends ( ( ... args : Args ) => Promise < R > ) ? ( ( ... args : Args ) => Vow < R > ) : never Type Parameters F extends ( ( ... args : any [] ) => Promise < any > ) Parameters fnZone : Zone name : string fn : F Returns F extends ( ( ... args : Args ) => Promise < R > ) ? ( ( ... args : Args ) => Vow < R > ) : never watch : ( < T , TResult1 , TResult2 , C > ( specimenP : EVow < T > , watcher ?: Watcher < T , TResult1 , TResult2 , C > , ... watcherArgs : C ) => Vow < Narrowest > ) < T , TResult1 , TResult2 , C > ( specimenP , watcher ? , ... watcherArgs ) : Vow < Narrowest > Type Parameters T = any TResult1 = T TResult2 = never C extends any [] = any [] Returns Vow < Narrowest > when : ( < T , TResult1 , TResult2 > ( specimenP : T , onFulfilled ?: ( ( value : EUnwrap < T > ) => TResult1 | PromiseLike < TResult1 > ) , onRejected ?: ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > ) ) => Promise < TResult1 | TResult2 > ) Returns ( ( ... args : [ port: Port ] ) => GuardedKit < { connection : { getLocalAddress ( ) : ` /ibc-port/ ${ string } ` ; getRemoteAddress ( ) : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ; query ( msgs : { data : string ; height : string ; path : string ; prove : boolean ; } [] ) : Vow < { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : ...; key : ...; type : ...; } [] ; } ; value : string ; } [] > ; } ; connectionHandler : { onClose ( _connection : any , reason : any ) : Promise < void > ; onOpen ( connection : Remote < Connection > , localAddr : ` /ibc-port/ ${ string } ` , remoteAddr : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ) : Promise < void > ; } ; parseQueryPacketWatcher : { onFulfilled ( ack : string ) : { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : string ; key : string ; type : string ; } [] ; } ; value : string ; } [] ; } ; } > ) ( ... args ) : GuardedKit < { connection : { getLocalAddress ( ) : ` /ibc-port/ ${ string } ` ; getRemoteAddress ( ) : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ; query ( msgs : { data : string ; height : string ; path : string ; prove : boolean ; } [] ) : Vow < { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : ...; key : ...; type : ...; } [] ; } ; value : string ; } [] > ; } ; connectionHandler : { onClose ( _connection : any , reason : any ) : Promise < void > ; onOpen ( connection : Remote < Connection > , localAddr : ` /ibc-port/ ${ string } ` , remoteAddr : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ) : Promise < void > ; } ; parseQueryPacketWatcher : { onFulfilled ( ack : string ) : { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : string ; key : string ; type : string ; } [] ; } ; value : string ; } [] ; } ; } > Parameters Rest
... args : [ port: Port ] Returns GuardedKit < { connection : { getLocalAddress ( ) : ` /ibc-port/ ${ string } ` ; getRemoteAddress ( ) : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ; query ( msgs : { data : string ; height : string ; path : string ; prove : boolean ; } [] ) : Vow < { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : ...; key : ...; type : ...; } [] ; } ; value : string ; } [] > ; } ; connectionHandler : { onClose ( _connection : any , reason : any ) : Promise < void > ; onOpen ( connection : Remote < Connection > , localAddr : ` /ibc-port/ ${ string } ` , remoteAddr : ` / ${ string } ibc-port/ ${ string } /ordered/ ${ string } ` | ` / ${ string } ibc-port/ ${ string } /unordered/ ${ string } ` ) : Promise < void > ; } ; parseQueryPacketWatcher : { onFulfilled ( ack : string ) : { code : number ; codespace : string ; height : string ; index : string ; info : string ; key : string ; log : string ; proofOps ?: { ops : { data : string ; key : string ; type : string ; } [] ; } ; value : string ; } [] ; } ; } >
Used only by CosmosInterchainService
Prepares an ICQ Connection Kit based on the
icq/v1
IBC application protocol.icq/v1
, also referred to asasync-icq
, is a protocol for asynchronous queries between IBC-enabled chains. It allows a chain to send queries to another chain and receive responses asynchronously.The ICQ connection kit provides the necessary functionality to establish and manage an ICQ connection between two chains. It includes methods for retrieving the local and remote addresses of the connection, as well as sending queries and handling connection events.