2019-11-08 17:15:38 +00:00
|
|
|
package market
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"go.uber.org/fx"
|
|
|
|
|
2019-12-19 20:13:17 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
2019-11-08 17:15:38 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/market"
|
|
|
|
"github.com/filecoin-project/lotus/chain/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
type MarketAPI struct {
|
|
|
|
fx.In
|
|
|
|
|
|
|
|
FMgr *market.FundMgr
|
|
|
|
}
|
|
|
|
|
2020-02-28 18:01:43 +00:00
|
|
|
func (a *MarketAPI) MarketEnsureAvailable(ctx context.Context, addr, wallet address.Address, amt types.BigInt) error {
|
|
|
|
return a.FMgr.EnsureAvailable(ctx, addr, wallet, amt)
|
2019-11-08 17:15:38 +00:00
|
|
|
}
|