implement v1 api with api modules

This commit is contained in:
Łukasz Magiera
2021-04-03 13:20:50 +02:00
parent 09c374cdde
commit f4e46c9003
5 changed files with 12 additions and 5 deletions
+2
View File
@@ -51,6 +51,8 @@ type ChainModuleAPI interface {
ChainReadObj(context.Context, cid.Cid) ([]byte, error)
}
var _ ChainModuleAPI = *new(api.FullNode)
// ChainModule provides a default implementation of ChainModuleAPI.
// It can be swapped out with another implementation through Dependency
// Injection (for example with a thin RPC client).