A frontend application used to communicate with any Segmented CFMM contract.
To communicate with the webapp, the user should install the Temple wallet.
The webapp can be built and run locally by invoking:
make frontend \
env=development \
testnet_url=https://granada.testnet.tezos.serokell.team/ \
mainnet_url=https://mainnet.api.tez.ie/
Please refer to the Makefile for more details about the options.
The web app does not support all the contract entrypoints, the ones that need to be called by a contract are excluded.
If you encounter this error:
error:0308010C:digital envelope routines::unsupported
it is due to webpack not working well with nodejs 17.
To solve this, you can set this env variable:
export NODE_OPTIONS=--openssl-legacy-provider
For more details, see this thread: webpack/webpack#14532