Skip to content

Commit 64736ea

Browse files
authored
feat: api: market pending proposal API/CLI (#12724)
1 parent bb7e62d commit 64736ea

31 files changed

+945
-467
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Correct erroneous sector qap calculation upon sector extension in lotus-miner cli. ([filecoin-project/lotus#12698](https://github.com/filecoin-project/lotus/pull/12720))
66

77
- Improve eth filter performance for nodes serving many clients. ([filecoin-project/lotus#12603](https://github.com/filecoin-project/lotus/pull/12603))
8+
- Add Market PendingProposals API / CLI. ([filecoin-project/lotus#12724](https://github.com/filecoin-project/lotus/pull/12724))
89

910

1011

api/api_full.go

+2
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,8 @@ type FullNode interface {
521521
StateMarketDeals(context.Context, types.TipSetKey) (map[string]*MarketDeal, error) //perm:read
522522
// StateMarketStorageDeal returns information about the indicated deal
523523
StateMarketStorageDeal(context.Context, abi.DealID, types.TipSetKey) (*MarketDeal, error) //perm:read
524+
// StateMarketProposalPending returns whether a given proposal CID is marked as pending in the market actor
525+
StateMarketProposalPending(ctx context.Context, proposalCid cid.Cid, tsk types.TipSetKey) (bool, error) //perm:read
524526
// StateGetAllocationForPendingDeal returns the allocation for a given deal ID of a pending deal. Returns nil if
525527
// pending allocation is not found.
526528
StateGetAllocationForPendingDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*verifreg.Allocation, error) //perm:read

api/mocks/mock_full.go

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/proxy_gen.go

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)