windingtree / win-stays

🏆 win.so
GNU General Public License v3.0
3 stars 3 forks source link

Options and terms logic #133

Open bobetbat opened 2 years ago

bobetbat commented 2 years ago

Here is the common logic of how to display and use options and terms. The data source for options and terms is in the Bid

Data source of term is giving us the following information:

term name and description can be obtained from the facility metadata (by term Id). Using the name and description it is possible to build a list of records. Each record should have a button that can be used to initialize a term. Clicking on the button should lead to a transaction sending: target - impl contract, txPayload must be passed as parameter (specific contract interface is not implemented yet); Data source for options is options.items from the root of the bid. Names and descriptions of options items can be obtained from the facility metadata (by item id).