Skip to content

Commit

Permalink
feat: market (#301)
Browse files Browse the repository at this point in the history
This PR replaces Boost with New Curio market module. 

- [x] Add MoveEscrow to UI
- [x] Add backpressure
- [x] Add filters
- [x] Rearrange pieces in sector before sealing
- [x] Add Piece Info page
- [x] Fix Label storage in DB
  • Loading branch information
LexLuthr authored Jan 7, 2025
2 parents a5972b0 + e561cac commit 6f076fe
Show file tree
Hide file tree
Showing 171 changed files with 25,763 additions and 3,535 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ jobs:
- run: git submodule update --init
- install-ubuntu-deps
- run: go install golang.org/x/tools/cmd/goimports
- run: go install github.com/hannahhoward/cbor-gen-for
- run: make deps gen
- run: git --no-pager diff && git --no-pager diff --quiet

Expand Down Expand Up @@ -315,8 +316,8 @@ workflows:
resource_class: 2xlarge
- test:
name: test-all
target: "`go list ./... | grep -v curio/itests | grep -v market/indexstore`"
suite: test-all
target: "`go list ./... | grep -v curio/itests`"
resource_class: 2xlarge
- test:
name: test-itest-harmonyDB
Expand All @@ -327,4 +328,10 @@ workflows:
name: test-itest-alertnow
suite: test-itest-alertnow
target: "./itests/alertnow_test.go"
resource_class: 2xlarge
resource_class: 2xlarge
- test:
name: test-idxStore
suite: test-idxStore
target: "./market/indexstore"
get-params: true
resource_class: 2xlarge
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ build/.update-modules:

# end git modules

## CUDA Library Path
CUDA_PATH := $(shell dirname $$(dirname $$(which nvcc)))
CUDA_LIB_PATH := $(CUDA_PATH)/lib64
LIBRARY_PATH ?= $(CUDA_LIB_PATH)
export LIBRARY_PATH
# CUDA Library Path
# Conditional execution block for Linux
OS := $(shell uname)
ifeq ($(OS), Linux)
$(eval CUDA_PATH := $(shell dirname $$(dirname $$(which nvcc))))
$(eval CUDA_LIB_PATH := $(CUDA_PATH)/lib64)
export LIBRARY_PATH := $(LIBRARY_PATH):$(CUDA_LIB_PATH)
endif

## MAIN BINARIES

Expand Down
2 changes: 2 additions & 0 deletions api/api_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ type CurioChainRPC interface {
StateVerifiedClientStatus(context.Context, address.Address, types.TipSetKey) (*abi.StoragePower, error)
StateMinerSectorCount(context.Context, address.Address, types.TipSetKey) (api.MinerSectors, error)
StateCirculatingSupply(context.Context, types.TipSetKey) (big.Int, error)
StateCall(context.Context, *types.Message, types.TipSetKey) (*api.InvocResult, error)
MarketAddBalance(ctx context.Context, wallet, addr address.Address, amt types.BigInt) (cid.Cid, error)
}

var _ CurioChainRPC = api.FullNode(nil)
26 changes: 26 additions & 0 deletions api/proxy_gen.go

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

26 changes: 13 additions & 13 deletions build/openrpc/curio.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L311"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L317"
}
},
{
Expand Down Expand Up @@ -348,7 +348,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L322"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L328"
}
},
{
Expand Down Expand Up @@ -402,7 +402,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L333"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L339"
}
},
{
Expand All @@ -425,7 +425,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L344"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L350"
}
},
{
Expand Down Expand Up @@ -464,7 +464,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L355"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L361"
}
},
{
Expand Down Expand Up @@ -503,7 +503,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L366"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L372"
}
},
{
Expand Down Expand Up @@ -697,7 +697,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L377"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L383"
}
},
{
Expand Down Expand Up @@ -829,7 +829,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L388"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L394"
}
},
{
Expand Down Expand Up @@ -963,7 +963,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L399"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L405"
}
},
{
Expand Down Expand Up @@ -1017,7 +1017,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L410"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L416"
}
},
{
Expand Down Expand Up @@ -1051,7 +1051,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L421"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L427"
}
},
{
Expand Down Expand Up @@ -1128,7 +1128,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L432"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L438"
}
},
{
Expand Down Expand Up @@ -1166,7 +1166,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L443"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L449"
}
}
]
Expand Down
Loading

0 comments on commit 6f076fe

Please sign in to comment.