examples/trading/frontend/README.md
This dApp was created using @mysten/create-dapp that sets up a basic React
Client dApp.
Before running the frontend, it's recommended that you follow the API setup to publish the contracts (or re-use the published ones).
The following packages are published and used for demo purposes on Testnet.
For escrow-contract.json file:
{
"packageId": "0xead655f291ed9e1f5cac3bc4b2cfcccec91502940c0ba4d846936268964524c9"
}
For demo-contract.json file:
{
"packageId": "0x164183829178d7620595919907d35bd3800b4345152f793594af8b2ba252d58a"
}
You can change package addresses, the api endpoint, etc, on the constants.ts
file.
To install dependencies you can run
pnpm install --ignore-workspace
To start your dApp in development mode run
pnpm dev
To build your app for deployment you can run
pnpm build