2019-08-12 17:09:56 +00:00
|
|
|
package modules
|
|
|
|
|
|
|
|
import (
|
|
|
|
"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) {
|
2019-08-12 18:30:20 +00:00
|
|
|
return paych.NewManager(chain, store), nil
|
2019-08-12 17:09:56 +00:00
|
|
|
}
|