File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77)
88
99// Service is the interface that wraps the basic methods for a router service.
10+ // This service allows to invoke messages and queries via a message router.
1011type Service interface {
1112 InvokeTyped (ctx context.Context , req , res protoiface.MessageV1 ) error
1213 InvokeUntyped (ctx context.Context , req protoiface.MessageV1 ) (res protoiface.MessageV1 , err error )
Original file line number Diff line number Diff line change 77
88 "github.com/cosmos/gogoproto/proto"
99 protov2 "google.golang.org/protobuf/proto"
10- "google.golang.org/protobuf/reflect/protoregistry"
1110 "google.golang.org/protobuf/runtime/protoiface"
1211
1312 "cosmossdk.io/core/router"
@@ -16,18 +15,17 @@ import (
1615 "github.com/cosmos/cosmos-sdk/baseapp"
1716)
1817
18+ // NewMsgRouterService creates a router.Service which allows to invoke messages and queries using the msg router.
1919func NewMsgRouterService (storeService store.KVStoreService , router baseapp.MessageRouter ) router.Service {
2020 return & msgRouterService {
2121 storeService : storeService ,
2222 router : router ,
23- resolver : protoregistry .GlobalTypes ,
2423 }
2524}
2625
2726type msgRouterService struct {
2827 storeService store.KVStoreService
2928 router baseapp.MessageRouter
30- resolver protoregistry.MessageTypeResolver
3129}
3230
3331// InvokeTyped execute a message and fill-in a response.
You can’t perform that action at this time.
0 commit comments