func NewQueryConsensusStateResponse(
	consensusStateAny *codectypes.Any, proof []byte, height Height,
) *QueryConsensusStateResponse {
	return &QueryConsensusStateResponse{
		ConsensusState: consensusStateAny,
		Proof:          proof,
		ProofHeight:    height,
	}
}
NewQueryConsensusStateResponse creates a new QueryConsensusStateResponse instance.
package types
import (
	codectypes "github.com/cosmos/cosmos-sdk/codec/types"
	"github.com/bianjieai/tibc-go/modules/tibc/core/exported"
)
var (
	_ codectypes.UnpackInterfacesMessage = QueryClientStateResponse{}
	_ codectypes.UnpackInterfacesMessage = QueryClientStatesResponse{}
	_ codectypes.UnpackInterfacesMessage = QueryConsensusStateResponse{}
	_ codectypes.UnpackInterfacesMessage = QueryConsensusStatesResponse{}
)
func (qcsr QueryClientStatesResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
	for _, cs := range qcsr.ClientStates {
		if err := cs.UnpackInterfaces(unpacker); err != nil {
			return err
		}
	}
	return nil
}
func NewQueryClientStateResponse(
	clientStateAny *codectypes.Any, proof []byte, height Height,
) *QueryClientStateResponse {
	return &QueryClientStateResponse{
		ClientState: clientStateAny,
		Proof:       proof,
		ProofHeight: height,
	}
}
func (qcsr QueryClientStateResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
	return unpacker.UnpackAny(qcsr.ClientState, new(exported.ClientState))
}
func (qcsr QueryConsensusStatesResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
	for _, cs := range qcsr.ConsensusStates {
		if err := cs.UnpackInterfaces(unpacker); err != nil {
			return err
		}
	}
	return nil
}