You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
General terms are in the terms array, in the root of the bid
Options are in the root of the bid but consist of items (should be displayed in options list) and terms (should be displayed in the options terms list)
Data source of term is giving us the following information:
term - term Id
impl - term contract address
txPayload - ABI encoded params to send to contract
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).
The text was updated successfully, but these errors were encountered:
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
terms
array, in the root of thebid
bid
but consist ofitems
(should be displayed in options list) andterms
(should be displayed in theoptions terms
list)Data source of
term
is giving us the following information:term
- term Idimpl
- term contract addresstxPayload
- ABI encoded params to send to contractterm
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 thebid
. Names and descriptions of options items can be obtained from the facility metadata (by item id).The text was updated successfully, but these errors were encountered: