robor-systems / agoric-amm

AMM application based on agoric
1 stars 0 forks source link

Agoric Treasury

Development

  1. Follow the steps here to install the agoric-sdk and agoric CLI tool
  2. Git clone this repository, and pull down the latest from branch main
  3. Navigate to where you cloned treasury, and do agoric install
  4. To start a local chain for development, do agoric start --reset --verbose
  5. In another terminal, in treasury, do ui/use-on-chain-config.js. This will use the default on-chain settings.
  6. To start the UI locally, do cd ui && yarn start
  7. Open your wallet with agoric open

Reusing the code with other parameters

Instead of using the default on-chain settings, you can deploy the contract and api by using the scripts in exampleDeployScripts as templates to get started.