These environment variables in the .env file can be used to configure the frontend:
- REACT_APP_PARTIES_SBT_INSTRUMENT_DEPOSITORY: Party ID of the depository entity for SBT (Soulbound Token).
- REACT_APP_PARTIES_SBT_INSTRUMENT_ISSUER: Party ID of the issuer entity for SBT (Soulbound Token).
- REACT_APP_PARTIES_SBT_CUSTODIAN: Party ID of the custodian at which the SBTs are held.
- REACT_APP_PARTIES_WALLET_OPERATOR: Party ID of the wallet operator.
- REACT_APP_MODE: specifies the operational mode of the wallet app, serving either as an investor or issuer, adapting its functionalities accordingly.
- REACT_APP_STABLECOIN_INSTRUMENT_ID: Instrument ID of the stablecoin instrument.
- REACT_APP_PARTY_ATTRIBUTES_INSTRUMENT_ID: Instrument ID of the SBT used to identify ecosystem members.
- REACT_APP_PARTY_ATTRIBUTES_NAME: Name of the attribute on the metadata contracts for the REACT_APP_PARTY_ATTRIBUTES_INSTRUMENT_ID. The value of this attribute is the display name of the party.
- REACT_APP_POLL_DELAY: Delay in milliseconds to wait before each polling request the UI makes to the wallet views API if data requires refresh.*
- REACT_APP_POLL_MAX: Max number of polling attempts.
- REACT_APP_SETTLEMENT_FACTORY_CID: Contract ID of the settlement
Factory
which can be used to instruct settlements. - REACT_APP_ROUTE_PROVIDER_CID: Contract ID of the settlement
RouteProvider
which can be used to determine the settlement route(s) (i.e. the appropriate custodian(s)) when settlement are instructed.
- The wallet views API does not have any streaming capability yet, so polling is the only option available in order to refresh the UI state when the user interacts with the ledger.
This guide provides step-by-step instructions for building and deploying the frontend application. Please deploy the backend according to wallet view readme before deploying the frontend.
To build the project, execute the following command:
make build-wallet-ui
The UI can be started using:
make start-wallet-ui
Note: you may need to adjust the .env
file (or export environment variables to override the values in the .env file).
Further work is needed to containerise both the frontend and backend.