Skip to content

Commit

Permalink
feat: add market client filter
Browse files Browse the repository at this point in the history
  • Loading branch information
strahe committed Feb 2, 2025
1 parent b165341 commit ac774a7
Show file tree
Hide file tree
Showing 23 changed files with 2,674 additions and 275 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ require (
github.com/ipfs/go-ipld-cbor v0.2.0
github.com/ipfs/go-log/v2 v2.5.1
github.com/labstack/echo/v4 v4.12.0
github.com/libp2p/go-libp2p v0.37.2
github.com/multiformats/go-multiaddr v0.13.0
github.com/pelletier/go-toml v1.2.0
github.com/prometheus/client_golang v1.20.5
Expand Down Expand Up @@ -161,7 +162,6 @@ require (
github.com/lib/pq v1.10.9 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-flow-metrics v0.2.0 // indirect
github.com/libp2p/go-libp2p v0.37.2 // indirect
github.com/libp2p/go-libp2p-pubsub v0.12.0 // indirect
github.com/libp2p/go-msgio v0.3.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ models:
model: "github.com/strahe/curio-dashboard/types.BigInt"
JSONB:
model: "github.com/strahe/curio-dashboard/types.JSONB"
FIL:
model: "github.com/strahe/curio-dashboard/types.FIL"
PeerID:
model: "github.com/strahe/curio-dashboard/types.PeerID"
Porep:
fields:
id:
Expand Down
52 changes: 52 additions & 0 deletions graph/curiorpc/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions graph/curiorpc/webrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ type WebRPC interface {
SetPriceFilters(ctx context.Context, name string, minDur, maxDur int, minSize, maxSize int64, price int64, verified bool) error
AddPriceFilters(ctx context.Context, name string, minDur, maxDur int, minSize, maxSize int64, price int64, verified bool) error
RemovePricingFilter(ctx context.Context, name string) error
GetClientFilters(ctx context.Context) ([]webrpc.ClientFilter, error)
SetClientFilters(ctx context.Context, name string, active bool, wallets, peers []string, filters []string, maxDealPerHour, maxDealSizePerHour int64, info string) error
AddClientFilters(ctx context.Context, name string, active bool, wallets, peers []string, filters []string, maxDealPerHour, maxDealSizePerHour int64, info string) error
RemoveClientFilter(ctx context.Context, name string) error
}

type sectorListEntry struct {
Expand Down
Loading

0 comments on commit ac774a7

Please sign in to comment.