codex-storage / codex-marketplace-ui

Codex marketplace UI allowing buy and sell operations in the Codex decentralized storage network
https://app.codex.storage
Apache License 2.0
0 stars 0 forks source link

Check the marketplace availability #29

Closed 2-towns closed 1 week ago

2-towns commented 2 months ago

The Codex node can be run without the marketplace enabled.

In this case, we should provide an indicator to inform the user that in order to create storage requests or availabilities, they need to enable the marketplace on the client node first.

CC @veaceslavdoina

veaceslavdoina commented 2 months ago

Request

curl http://localhost:8080/api/codex/v1/storage/purchases

Marketplace enabled

Code: 200
Body: []

Marketplace disabled

Code: 503
Body: Persistence is not enabled
2-towns commented 1 month ago

Blocked by https://github.com/codex-storage/nim-codex/pull/942

2-towns commented 1 month ago

@veaceslavdoina on https://discord.com/channels/895609329053474826/1289188030795485327/1289196089005834294, you mentioned an indicator for Storage Provider. Can you explain if there is a relation between the storage provider and the marketplace and how to detect a connection with it ? Fetching the port 8091 ?

2-towns commented 1 month ago

@veaceslavdoina on https://discord.com/channels/895609329053474826/1289188030795485327/1289196089005834294, you mentioned an indicator for Storage Provider. Can you explain if there is a relation between the storage provider and the marketplace and how to detect a connection with it ? Fetching the port 8091 ?

@veaceslavdoina ?

veaceslavdoina commented 1 month ago

My initial question was to show in which mode we are running Codex. Per our documentation we can run Codex in three modes

In all the cases, we have same API, Transport and Discovery ports. But I'm not sure if we can detect via API if prover is enabled in the configuration.

Let's ask around :)