feat: better CLI for wallet market withdraw and client info

This commit is contained in:
Dirk McCormick
2021-01-07 10:18:29 +01:00
parent c6820ec059
commit c58086ee27
7 changed files with 96 additions and 22 deletions
+4
View File
@@ -42,6 +42,10 @@ func (a *MarketAPI) MarketAddBalance(ctx context.Context, wallet, addr address.A
return smsg.Cid(), nil
}
func (a *MarketAPI) MarketGetReserved(ctx context.Context, addr address.Address) (types.BigInt, error) {
return a.FMgr.GetReserved(addr), nil
}
func (a *MarketAPI) MarketReserveFunds(ctx context.Context, wallet address.Address, addr address.Address, amt types.BigInt) (cid.Cid, error) {
return a.FMgr.Reserve(ctx, wallet, addr, amt)
}