Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Spade Oracle integration #8

Open
Tracked by #19
vasco-santos opened this issue Jun 12, 2023 · 2 comments
Open
Tracked by #19

Spade Oracle integration #8

vasco-santos opened this issue Jun 12, 2023 · 2 comments
Assignees
Labels
P0 Critical: Tackled by core team ASAP status/blocked Unable to be worked further until needs are met

Comments

@vasco-santos
Copy link
Contributor

vasco-santos commented Jun 12, 2023

We need to get the following information from Spade state

  • poll state of an aggregate (did a previous offered aggregate landed into a SP? did it fail?)
  • get details from the deals that exist for each aggregate previously submitted

Schema can be seen https://raw.githubusercontent.com/ribasushi/fil-naive-marketwatch/master/misc/pg_schema_diagram.svg

Open questions:

  • is it a PostgresDB? can we have credentials for a replica RO?
  • Is there any roadmap to expose this as an API rather than requiring all clients to connect to DB and do queries themselves?
  • Are there docs about queries we should make?
    • for instance, there is pieceCid in the schema above, but how can we query for an aggregate commD and see its state?
@anjor
Copy link

anjor commented Jun 14, 2023

  • It is a postgres instance.
  • Currently there isn't anything on the roadmap to expose this as an API -- at least nothing on the data programs side. There might be other wider efforts in this area.
  • The pieceCid in the schema will be the aggregate pieceCid.

@vasco-santos
Copy link
Contributor Author

@anjor one followup question. In case of failures, as discussed yesterday we should create a report API and align with you on how it would like in terms of data schema. So, curious on what happens in your DB if something fails. Is it simply not in the table?

Thinking about above, what is the database state over time? Spade will poll us, and will at some point have an aggregate to match to SPs. While this is happening, and until SPs have a contract with web3.storage and get things stored, is it available on your DB? Or is it only there once it gets successfully stored?

@vasco-santos vasco-santos self-assigned this Jun 21, 2023
@vasco-santos vasco-santos added P0 Critical: Tackled by core team ASAP status/blocked Unable to be worked further until needs are met labels Jun 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P0 Critical: Tackled by core team ASAP status/blocked Unable to be worked further until needs are met
Projects
None yet
Development

No branches or pull requests

2 participants