package appchain import "github.com/link33/sidecar/model/pb" //go:generate mockgen -destination mock_monitor/mock_monitor.go -package mock_monitor -source monitor.go type Monitor interface { // listen on interchain ibtp from appchain ListenIBTP() <-chan *pb.IBTP // query historical ibtp by its id // QueryIBTP(id string) (*pb.IBTP, error) QueryIBTP(to string, id string) (*pb.IBTP, error) // QueryLatestMeta queries latest index map of ibtps threw on appchain QueryOuterMeta() map[string]uint64 }