web3-storage / dealer Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Context #2 (comment)
Details are in https://www.notion.so/w3-spade-deal-flow-bd479485bbf64e85aa0dee0ad6fc3019
We previously aligned that for Spade to Polling spade-proxy on aggregates to pass to SPs, Spade would poll from a S3 bucket where we would write the details for an aggregate. This polling will happen on an agreed timeframe (TBD - @ribasushi is there any recommendation from Spade or based on our previous usage of dagcargo?).
During the given timeframe for polling we can have more than one aggregates ready to go. Therefore, we need to make sure that all of them are ready to be polled. S3 client sadly does not support append to a already existing file, which would make our lives much easier. We are currently writing temporary files keyed as YYYY-MM-DD HH:MM:00 commPcid
and have a PR with a cron job that kicks in and merges all these files on a single file keyed as YYYY-MM-DD HH:MM:00
that can be polled. This solution has some potential issues:
Alternatively, we could allow Spade to perform a Bucket list with prefix YYYY-MM-DD HH:MM:00
once time is ready and then perform a get in each key. This makes Spade job a tiny bit more complex on read, but is less susceptible to weirdness with times. This could also happen via an API call by Spade, where spade-proxy
exposes an endpoint and does the merge of available aggregates.
For the content format, we are looking at a JSON file with format and I will create a separate issue to discuss that
Thoughts @ribasushi @alanshaw @xinaxu
We currently default to a random value in queue client
We need to get the following information from Spade state
Schema can be seen https://raw.githubusercontent.com/ribasushi/fil-naive-marketwatch/master/misc/pg_schema_diagram.svg
Open questions:
Context: #15 (comment)
I think we should embrace the composed principals exposed by ucanto instead of assuming which key types are at play. Specifically we have
SignerImporter
interface thatimport Signer from '@ucanto/principal'
implements.
That is to say I think it would make a lot more sense if we wrote
JSON.serialize(signer.toArchive())
into secrets and then read loaded it withSigner.from(JSON.parse(secret))
.
Also note that this would remove need for
signer.withDID(did)
dance as long as what we stored in secrets ised25519.parse('...').withDID(did)
P.S. Only reason
toArchive
does not return bytes or a string today is because in browsers we won't be able to serialize non-extractible keys, yet we could store object containing them into indexedDB.
An aggregate/offer
can fail when SPs try to accept an aggregate. It can be for a few reasons, like when a commP
for a CAR file that is part of the aggregate is wrong.
spade-proxy
should issue a receipt for refused
aggregate with the details of what failed to be added. This will enable web3.storage actor to create a new aggregate without the "bad content" and flag the bad content.
There is still open question on how we can get such details in spade-proxy
:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.