remove interactive UX; add inspect-deal cmd

This commit is contained in:
Anton Evangelatov
2021-03-18 14:53:03 +02:00
parent 84803f82ab
commit 9d6c77d93f
7 changed files with 88 additions and 255 deletions
+4
View File
@@ -7,6 +7,7 @@ import (
"io"
"os"
"github.com/davecgh/go-spew/spew"
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
"golang.org/x/xerrors"
@@ -215,6 +216,8 @@ func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error) {
out[k] = a.newDealInfoWithTransfer(transferCh, v)
}
spew.Dump(out)
return out, nil
}
@@ -289,6 +292,7 @@ func (a *API) newDealInfoWithTransfer(transferCh *api.DataTransferChannel, v sto
Verified: v.Proposal.VerifiedDeal,
TransferChannelID: v.TransferChannelID,
DataTransfer: transferCh,
DealStages: v.DealStages,
}
}