diff --git a/api/v0api/full.go b/api/v0api/full.go index 474d93298..a2537365c 100644 --- a/api/v0api/full.go +++ b/api/v0api/full.go @@ -533,7 +533,7 @@ type FullNode interface { // StateMarketStorageDeal returns information about the indicated deal StateMarketStorageDeal(context.Context, abi.DealID, types.TipSetKey) (*api.MarketDeal, error) //perm:read // StateGetAllocationForPendingDeal returns the allocation for a given deal ID of a pending deal. - StateGetAllocationForPendingDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*verifregtypes.Allocation, error) + StateGetAllocationForPendingDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*verifregtypes.Allocation, error) //perm:read // StateGetAllocation returns the allocation for a given address and allocation ID. StateGetAllocation(ctx context.Context, clientAddr address.Address, allocationId verifregtypes.AllocationId, tsk types.TipSetKey) (*verifregtypes.Allocation, error) //perm:read // StateLookupID retrieves the ID address of the given address diff --git a/api/v0api/proxy_gen.go b/api/v0api/proxy_gen.go index 1941fe832..55e875175 100644 --- a/api/v0api/proxy_gen.go +++ b/api/v0api/proxy_gen.go @@ -280,7 +280,7 @@ type FullNodeStruct struct { StateGetAllocation func(p0 context.Context, p1 address.Address, p2 verifregtypes.AllocationId, p3 types.TipSetKey) (*verifregtypes.Allocation, error) `perm:"read"` - StateGetAllocationForPendingDeal func(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) `` + StateGetAllocationForPendingDeal func(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) `perm:"read"` StateGetNetworkParams func(p0 context.Context) (*api.NetworkParams, error) `perm:"read"` diff --git a/documentation/en/api-v0-methods.md b/documentation/en/api-v0-methods.md index 64f19ebe6..2617244c1 100644 --- a/documentation/en/api-v0-methods.md +++ b/documentation/en/api-v0-methods.md @@ -5285,7 +5285,7 @@ Response: StateGetAllocationForPendingDeal returns the allocation for a given deal ID of a pending deal. -Perms: +Perms: read Inputs: ```json diff --git a/genesis/types.go b/genesis/types.go index 52910b2cd..815a2f008 100644 --- a/genesis/types.go +++ b/genesis/types.go @@ -8,7 +8,7 @@ import ( "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" - market8 "github.com/filecoin-project/go-state-types/builtin/v9/market" + markettypes "github.com/filecoin-project/go-state-types/builtin/v9/market" "github.com/filecoin-project/go-state-types/network" "github.com/filecoin-project/lotus/chain/types" @@ -25,7 +25,7 @@ type PreSeal struct { CommR cid.Cid CommD cid.Cid SectorID abi.SectorNumber - Deal market8.DealProposal + Deal markettypes.DealProposal DealClientKey types.KeyInfo ProofType abi.RegisteredSealProof }