@@ -426,36 +426,36 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
426
426
} ,
427
427
verified : {
428
428
channel : {
429
- channel : async ( portId : string , channelId : string ) => {
430
- // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L55-L65
431
- // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L117-L120
432
- const key = toAscii ( `channelEnds/ports/${ portId } /channels/${ channelId } ` ) ;
433
- const { value } = await base . queryStoreVerified ( " ibc" , key ) ;
434
- return value . length ? Channel . decode ( value ) : null ;
435
- } ,
436
- packetCommitment : async ( portId : string , channelId : string , sequence : number ) => {
437
- // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L128-L133
438
- // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L183-L185
439
- const key = toAscii ( `commitments/ports/${ portId } /channels/${ channelId } /packets/${ sequence } ` ) ;
440
- const { value } = await base . queryStoreVerified ( " ibc" , key ) ;
441
- // keeper code doesn't parse, but returns raw
442
- return value ;
443
- } ,
444
- packetAcknowledgement : async ( portId : string , channelId : string , sequence : number ) => {
445
- // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L159-L166
446
- // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L153-L156
447
- const key = toAscii ( `acks/ports/${ portId } /channels/${ channelId } /acknowledgements/${ sequence } ` ) ;
448
- const { value } = await base . queryStoreVerified ( " ibc" , key ) ;
449
- // keeper code doesn't parse, but returns raw
450
- return value ;
451
- } ,
452
- nextSequenceReceive : async ( portId : string , channelId : string ) => {
453
- // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L92-L101
454
- // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L133-L136
455
- const key = toAscii ( `seqAcks/ports/${ portId } /channels/${ channelId } /nextSequenceAck` ) ;
456
- const { value } = await base . queryStoreVerified ( " ibc" , key ) ;
457
- return value . length ? Uint64 . fromBytes ( value ) . toNumber ( ) : null ;
458
- } ,
429
+ channel : async ( portId : string , channelId : string ) => {
430
+ // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L55-L65
431
+ // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L117-L120
432
+ const key = toAscii ( `channelEnds/ports/${ portId } /channels/${ channelId } ` ) ;
433
+ const { value } = await base . queryStoreVerified ( ' ibc' , key ) ;
434
+ return value . length ? Channel . decode ( value ) : null ;
435
+ } ,
436
+ packetCommitment : async ( portId : string , channelId : string , sequence : number ) => {
437
+ // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L128-L133
438
+ // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L183-L185
439
+ const key = toAscii ( `commitments/ports/${ portId } /channels/${ channelId } /packets/${ sequence } ` ) ;
440
+ const { value } = await base . queryStoreVerified ( ' ibc' , key ) ;
441
+ // keeper code doesn't parse, but returns raw
442
+ return value ;
443
+ } ,
444
+ packetAcknowledgement : async ( portId : string , channelId : string , sequence : number ) => {
445
+ // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L159-L166
446
+ // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L153-L156
447
+ const key = toAscii ( `acks/ports/${ portId } /channels/${ channelId } /acknowledgements/${ sequence } ` ) ;
448
+ const { value } = await base . queryStoreVerified ( ' ibc' , key ) ;
449
+ // keeper code doesn't parse, but returns raw
450
+ return value ;
451
+ } ,
452
+ nextSequenceReceive : async ( portId : string , channelId : string ) => {
453
+ // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L92-L101
454
+ // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L133-L136
455
+ const key = toAscii ( `seqAcks/ports/${ portId } /channels/${ channelId } /nextSequenceAck` ) ;
456
+ const { value } = await base . queryStoreVerified ( ' ibc' , key ) ;
457
+ return value . length ? Uint64 . fromBytes ( value ) . toNumber ( ) : null ;
458
+ } ,
459
459
} ,
460
460
} ,
461
461
} ,
0 commit comments