WIP: wiring up the payment channel manager to the api

This commit is contained in:
whyrusleeping
2019-08-12 10:54:17 -07:00
parent 7be7d9137e
commit 6d52abcb2e
7 changed files with 238 additions and 39 deletions
+18
View File
@@ -0,0 +1,18 @@
package modules
import (
"github.com/filecoin-project/go-lotus/api"
"github.com/filecoin-project/go-lotus/chain/store"
"github.com/filecoin-project/go-lotus/node/modules/dtypes"
"github.com/filecoin-project/go-lotus/paych"
)
func PaychStore(ds dtypes.MetadataDS) *paych.Store {
return paych.NewStore(ds)
}
func PaymentChannelManager(chain *store.ChainStore, store *paych.Store) (*paych.Manager, error) {
var api api.FullNode
panic("i need a full node api. what do i do")
return paych.NewManager(api, chain, store), nil
}