Skip to content

Instantly share code, notes, and snippets.

@katelynsills
Created November 2, 2019 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katelynsills/039846515fa23fae197abbd0b9289a4b to your computer and use it in GitHub Desktop.
Save katelynsills/039846515fa23fae197abbd0b9289a4b to your computer and use it in GitHub Desktop.
Baytown Bucks
import { makeMint } from '@agoric/ertp/core/mint';
const baytownBucksMint = makeMint('BaytownBucks');
const purse = baytownBucksMint.mint(1000, 'community treasury');
const paymentForAlice = purse.withdraw(10, `alice's community money`);
alice.receivePayment(paymentForAlice);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment