originalworks / protocol

Protocol of Original Works
https://www.original.works
1 stars 0 forks source link

Allow upload file of Financial factsheet #9

Open criadoperez opened 3 weeks ago

criadoperez commented 3 weeks ago

Payments providers should be able to upload a JSON file which history of offchain payments of a specific asset.

criadoperez commented 2 weeks ago

Example of format:

{
 "Asset-Address":"0x51C9d1b8e91F8eC32dA1cc6DcEb5B1f606e2e311",
 "data-provider": "Revelator",
 "provider-channel": "Example",
 "description": "This asset only represents streaming revenue collected by Revelator Distribution; The associated track may be generating additional income off-chain",
 "data": {
  "2023": {
   "January": 43.43,
   "February": 46.15,
   "March": 41.52,
   "April": 32.48,
   "May": 40.92,
   "June": 48.35,
   "July": 49.52,
   "August": 57.54
  }
 }
}
criadoperez commented 2 weeks ago

@revelator-labs we need to confirm this will be the final format

revelator-labs commented 4 days ago

@criadoperez should we maybe add currencey symbol to each amount?

criadoperez commented 3 days ago

@criadoperez should we maybe add currencey symbol to each amount?

Good idea. But I would suggest to add currency as another field. "$" can be ambiguous for example as they are multiple types of dollar.

So something like this:

{
 "Asset-Address":"0x51C9d1b8e91F8eC32dA1cc6DcEb5B1f606e2e311",
 "data-provider": "Revelator",
 "provider-channel": "Example",
 "currency":"US dollar"
 "description": "This asset only represents streaming revenue collected by Revelator Distribution; The associated track may be generating additional income off-chain",
 "data": {
  "2023": {
   "January": 43.43,
   "February": 46.15,
   "March": 41.52,
   "April": 32.48,
   "May": 40.92,
   "June": 48.35,
   "July": 49.52,
   "August": 57.54
  }
 }
}
criadoperez commented 2 days ago

@revelator-labs DDEX has a standard message for this, the Digital Sales Report (DSR), which means we just use that one instead of creating our own json format.

criadoperez commented 2 days ago

@0xbarath please take into account this change.