I have a situation where the operator party creates the network and on-boards a bunch of seller and buyer parties. I need the buyers to fetch / see all sellers (for the purposes of sending a Request for Quotation to one or more of them). How would I achieve that?
Thanks Leonid. I guess my question is about how to create that buyer-seller relationship since they are both onboarded by the operator.
I thought of maintaining a list of all buyers and then adding them as observers on the SellerRole contract when a seller is onboarded (and then add every new buyer when one is onboarded). That sounds pretty cumbersome though so looking for a better answer.
@Leonid_Shlyapnikov’s example shows one way, where you create some sort of registry contract. In his example you wouldn’t even need the nonconsuming choice to get the sellers - the buyers are observers so would simply see the Exchange contract.
If you don’t want to disclose buyers amongst each other, then you don’t get around maintaining a contract per buyer. You could, for example, add the seller to each buyer role contract when the seller is onboarded. You mention this is cumbersome but if you key your buyer role contracts it can be done in the same, single onboarding transaction.