message: stargate: Reorganize IBC verified queries
diff: @@ -63,6 +63,7 @@ function decodeTendermintConsensusStateAny(clientState: Any | undefined): Tender
  export interface IbcExtension {
  readonly ibc: {
  + readonly channel: {
  readonly channel: (portId: string, channelId: string) => Promise<Channel | null>;
  readonly packetCommitment: (portId: string, channelId: string, sequence: number) => Promise<Uint8Array>;
  readonly packetAcknowledgement: (
  @@ -71,6 +72,7 @@ export interface IbcExtension {
  sequence: number,
  ) => Promise<Uint8Array>;
  readonly nextSequenceReceive: (portId: string, channelId: string) => Promise<number | null>;
  + };
  readonly unverified: {
  readonly channel: {
  readonly channel: (portId: string, channelId: string) => Promise<QueryChannelResponse>;
  @@ -178,6 +180,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
  return {
  ibc: {
  + channel: {
  channel: async (portId: string, channelId: string) => {
  // keeper: https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/ibc/04-channel/keeper/keeper.go#L55-L65
  // key: https://github.com/cosmos/cosmos-sdk/blob/ef0a7344af345882729598bc2958a21143930a6b/x/ibc/24-host/keys.go#L117-L120
  @@ -208,7 +211,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
  const responseData = await base.queryVerified("ibc", key);
  return responseData.length ? Uint64.fromBytes(responseData).toNumber() : null;
  },
  -
  + },
  unverified: {
  channel: {
  channel: async (portId: string, channelId: string) =>
  