Skip to content

Commit

Permalink
feat(BUX-498): remove blockheader methods (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 authored Jan 18, 2024
1 parent 496abed commit 0dc9b7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
19 changes: 0 additions & 19 deletions transports/http_admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,6 @@ func (h *TransportHTTP) AdminGetAccessKeysCount(ctx context.Context, conditions
return h.adminCount(ctx, conditions, metadata, "/admin/access-keys/count")
}

// AdminGetBlockHeaders get all block headers filtered by conditions
func (h *TransportHTTP) AdminGetBlockHeaders(ctx context.Context, conditions map[string]interface{},
metadata *buxmodels.Metadata, queryParams *QueryParams,
) ([]*buxmodels.BlockHeader, ResponseError) {
var models []*buxmodels.BlockHeader
if err := h.adminGetModels(ctx, conditions, metadata, queryParams, "/admin/block-headers/search", &models); err != nil {
return nil, err
}

return models, nil
}

// AdminGetBlockHeadersCount get a count of all the block headers filtered by conditions
func (h *TransportHTTP) AdminGetBlockHeadersCount(ctx context.Context, conditions map[string]interface{},
metadata *buxmodels.Metadata,
) (int64, ResponseError) {
return h.adminCount(ctx, conditions, metadata, "/admin/block-headers/count")
}

// AdminGetDestinations get all block destinations filtered by conditions
func (h *TransportHTTP) AdminGetDestinations(ctx context.Context, conditions map[string]interface{},
metadata *buxmodels.Metadata, queryParams *QueryParams,
Expand Down
2 changes: 0 additions & 2 deletions transports/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ type AdminService interface {
AdminGetStats(ctx context.Context) (*buxmodels.AdminStats, ResponseError)
AdminGetAccessKeys(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata, queryParams *QueryParams) ([]*buxmodels.AccessKey, ResponseError)
AdminGetAccessKeysCount(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata) (int64, ResponseError)
AdminGetBlockHeaders(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata, queryParams *QueryParams) ([]*buxmodels.BlockHeader, ResponseError)
AdminGetBlockHeadersCount(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata) (int64, ResponseError)
AdminGetDestinations(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata, queryParams *QueryParams) ([]*buxmodels.Destination, ResponseError)
AdminGetDestinationsCount(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata) (int64, ResponseError)
AdminGetPaymail(ctx context.Context, address string) (*buxmodels.PaymailAddress, ResponseError)
Expand Down

0 comments on commit 0dc9b7f

Please sign in to comment.