Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.39 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.39 KB

Encouragement Dapp

The Encouragement Dapp is the simplest Agoric Dapp. It demonstrates the three important parts of a dapp and how they should be connected:

  1. the browser UI (the frontend)
  2. the API server (the backend)
  3. the on-chain contract

This dapp starts a local blockchain on your computer, and deploys a basic contract to that blockchain. It does not currently deploy or connect to the Agoric testnet.

This particular dapp UI is written in vanilla JS for simplicity (as opposed to using a framework).

Functionality

The Encouragement Dapp:

  1. Subscribes to contract notifications via the API server

  2. Accesses your Agoric wallet, and

  3. At the user's request, either:

    1. requests some free encouragement, or
    2. proposes (via the user's wallet and Zoe) exchanging a Tip for some Encouragement (the tip is not yet sent to the Zoe contract, but you will still get some encouragement.)

To learn more about how to build Agoric Dapps, please see the Dapp Guide.

Here's the interface:

Screenshot Before Encouragement

and after we click the "Encourage Me!" button:

Screenshot After Encouragement

TODO

Things we need to fix are listed in the Github issues for this repository.