diff --git a/venus-shared/api/market/v1/api.go b/venus-shared/api/market/v1/api.go index 6442bedd5d..69e806d358 100644 --- a/venus-shared/api/market/v1/api.go +++ b/venus-shared/api/market/v1/api.go @@ -205,7 +205,7 @@ type IMarket interface { IndexerListMultihashes(ctx context.Context, contextID []byte) ([]multihash.Multihash, error) //perm:read IndexerAnnounceLatest(ctx context.Context) (cid.Cid, error) //perm:admin IndexerAnnounceLatestHttp(ctx context.Context, urls []string) (cid.Cid, error) //perm:admin - IndexerAnnounceDealRemoved(ctx context.Context, propCid cid.Cid) (cid.Cid, error) //perm:admin + IndexerAnnounceDealRemoved(ctx context.Context, contextID []byte) (cid.Cid, error) //perm:admin IndexerAnnounceDeal(ctx context.Context, contextID []byte) (cid.Cid, error) //perm:admin api.Version diff --git a/venus-shared/api/market/v1/method.md b/venus-shared/api/market/v1/method.md index 77d18c6fe8..1d378cec22 100644 --- a/venus-shared/api/market/v1/method.md +++ b/venus-shared/api/market/v1/method.md @@ -1281,9 +1281,7 @@ Perms: admin Inputs: ```json [ - { - "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" - } + "Ynl0ZSBhcnJheQ==" ] ``` diff --git a/venus-shared/api/market/v1/mock/mock_imarket.go b/venus-shared/api/market/v1/mock/mock_imarket.go index 2621c5fea3..a42966055d 100644 --- a/venus-shared/api/market/v1/mock/mock_imarket.go +++ b/venus-shared/api/market/v1/mock/mock_imarket.go @@ -796,7 +796,7 @@ func (mr *MockIMarketMockRecorder) IndexerAnnounceDeal(arg0, arg1 interface{}) * } // IndexerAnnounceDealRemoved mocks base method. -func (m *MockIMarket) IndexerAnnounceDealRemoved(arg0 context.Context, arg1 cid.Cid) (cid.Cid, error) { +func (m *MockIMarket) IndexerAnnounceDealRemoved(arg0 context.Context, arg1 []byte) (cid.Cid, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IndexerAnnounceDealRemoved", arg0, arg1) ret0, _ := ret[0].(cid.Cid) diff --git a/venus-shared/api/market/v1/proxy_gen.go b/venus-shared/api/market/v1/proxy_gen.go index 44fb919aaf..979015202c 100644 --- a/venus-shared/api/market/v1/proxy_gen.go +++ b/venus-shared/api/market/v1/proxy_gen.go @@ -75,7 +75,7 @@ type IMarketStruct struct { ImportDirectDeal func(ctx context.Context, deal *market.DirectDealParams) error `perm:"write"` IndexerAnnounceAllDeals func(ctx context.Context, minerAddr address.Address) error `perm:"admin"` IndexerAnnounceDeal func(ctx context.Context, contextID []byte) (cid.Cid, error) `perm:"admin"` - IndexerAnnounceDealRemoved func(ctx context.Context, propCid cid.Cid) (cid.Cid, error) `perm:"admin"` + IndexerAnnounceDealRemoved func(ctx context.Context, contextID []byte) (cid.Cid, error) `perm:"admin"` IndexerAnnounceLatest func(ctx context.Context) (cid.Cid, error) `perm:"admin"` IndexerAnnounceLatestHttp func(ctx context.Context, urls []string) (cid.Cid, error) `perm:"admin"` IndexerListMultihashes func(ctx context.Context, contextID []byte) ([]multihash.Multihash, error) `perm:"read"` @@ -289,7 +289,7 @@ func (s *IMarketStruct) IndexerAnnounceAllDeals(p0 context.Context, p1 address.A func (s *IMarketStruct) IndexerAnnounceDeal(p0 context.Context, p1 []byte) (cid.Cid, error) { return s.Internal.IndexerAnnounceDeal(p0, p1) } -func (s *IMarketStruct) IndexerAnnounceDealRemoved(p0 context.Context, p1 cid.Cid) (cid.Cid, error) { +func (s *IMarketStruct) IndexerAnnounceDealRemoved(p0 context.Context, p1 []byte) (cid.Cid, error) { return s.Internal.IndexerAnnounceDealRemoved(p0, p1) } func (s *IMarketStruct) IndexerAnnounceLatest(p0 context.Context) (cid.Cid, error) {