filecoin-project / dealbot

🤖🤝 A bot for making deals
Apache License 2.0
32 stars 10 forks source link

Publish Pando-compatible metadata over GraphSync #372

Closed masih closed 2 years ago

masih commented 2 years ago

Implement a publisher specific to Pando metadata that uses the CID of RecordUpdate as byte value of Pando metadata and exposes a GraphSync server that can resolve both Pando metadata, and the RecordUpdate CIDs.

Decouple statedb from publication by changing the state interface to return the CID of RecordUpdate. This removes all libp2p and legs code from the state package. Instead, the publication is done on the controller itself upon POSTs to /complete/<workedby> as a non-critical operation. This makes a better structured code in the context of Separation of Concerns.

Relates to: