Closed MBadea17 closed 3 months ago
@alexcos20 , please add the technical specifications on the implementation of the feature.
@Abrom8 , please add any missing detail to the requirement.
Thanks.
Invoices
1st Case: Asset Type Dataset:
Data Publisher = Seller:
Consumer = Buyer:
For Dataset Type Asset (for Publish and Order) the following invoices are issued:
For payment of the gas fee:
2nd Case, C2D:
Algorithm Publisher = Seller:
Consumer = Buyer:
Buys a C2D type asset: Buys Dataset from Dataset Seller and Algorithm from Algorithm Seller.
Buyer selects the algorithm they want to run on the DATASET type asset.
Buyer Buys DATASET:
In the invoice between Seller and Buyer, we will create 2 additional fields where the fees paid to the network will be specified.
The total price on the invoice will be just the price paid by Buyer to Seller.
Buyer pays fee to Consume Market for buy -> Invoice from Consume Market to Buyer.
Buyer pays fee to Provider -> Invoice from Provider to Buyer.
Buyer pays fee to OEC -> Invoice between OEC and Buyer
Buyer Buys ALGORITHM:
Buyer signs the transaction to Approve payment for Algorithm -> Pays Gas Fee for APPROVE.
Buyer pays the Seller for Algorithm: Invoice between Algorithm Seller and Buyer -> Algorithm Seller issues invoice -> Algorithm Seller and Buyer see the invoice.
Buyer pays gas fee to the network for ORDER.
In the invoice between Seller and Buyer, we will create 2 additional fields where the fees paid to the network will be specified.
The total price on the invoice will be just the price paid by Buyer to Seller.
For the C2D type asset, the following invoices are issued:
For every successful consume flow (either download or C2D), a receipt will be generated for each party involved: data publisher, algorithm publisher, C2D provider, OE node provider, and market operator.