package types

import (
	"git.cw.tr/mukan-network/mukan-sdk/baseapp"
	sdk "git.cw.tr/mukan-network/mukan-sdk/types"
)

// MessageRouter ADR 031 request type routing
// https://git.cw.tr/mukan-network/mukan-sdk/blob/main/docs/architecture/adr-031-msg-service.md
type MessageRouter interface {
	Handler(msg sdk.Msg) baseapp.MsgServiceHandler
}

// QueryRouter ADR 021 query type routing
// https://git.cw.tr/mukan-network/mukan-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md
type QueryRouter interface {
	// Route returns the GRPCQueryHandler for a given query route path or nil
	// if not found
	Route(path string) baseapp.GRPCQueryHandler
}
