Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.51 KB

README-local-chain.md

File metadata and controls

62 lines (43 loc) · 1.51 KB

Agoric Local Chain with docker-compose

To start a local agoric blockchain:

docker-compose up -d

Then use docker-compose logs etc. as usual.

Some useful recipies are included in Makefile. Use yarn make:help to list them. For example: yarn docker:make mint4k.

See also https://github.com/agoric-labs/dapp-game-places

Deploying the contract

Get the bundle, script, and permit from a release.

Use the Agoric Gov Proposal Builder for deployment:

  1. Use the Install Bundle tab to install the bundle. It will likely say insufficient balance. To get enough IST:
yarn docker:make mint4k
  1. Get ready to vote. To query the status of proposals, use
yarn docker:make gov-q

Then, don't execute this command, but get it ready:

yarn docker:make vote PROPOSAL=N
  1. Use the CoreEval Proposal tab to make a proposal to start the contract using the permit and script. Note the 10 second voting period, When you Sign & Submit the proposal, you can replace N above with the proposal number that pops up.

    To verify that the proposal executed correctly:

docker-compose logs | less -R

The logs should include a few lines with no errors:

agd_1  | 2023-11-17T03:12:36.882Z SwingSet: vat: v1: start-gimix timer board05674
...
agd_1  | 2023-11-17T03:12:38.911Z SwingSet: vat: v1: start-gimix gimix started!