From 11b15dbcd1b94377a731c96b7d11beb005ee775b Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Mon, 10 Oct 2022 16:54:07 +0800 Subject: [PATCH] fix: missing permissions tag --- api/v0api/full.go | 2 +- api/v0api/proxy_gen.go | 2 +- documentation/en/api-v0-methods.md | 2 +- genesis/types.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) 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 }