TL;DR:
The Baseball Card Store Dapp sells baseball cards as NFT tokens in exchange for money.
Install the prerequisites.
Install the sdk
cd agoric-sdk
git checkout 65d3f14c8102993168d2568eed5e6acbcba0c48a
yarn && yarn build
Install the dapp
git clone https://github.com/Jorge-Lopes/agoric-assignment-6.git
cd agoric-assignment-6
agoric install
Start your local-chain
cd agoric-sdk/packages/cosmic-swingset
make scenario2-setup && make scenario2-run-chain
Start ag-solo
cd agoric-sdk/packages/cosmic-swingset
make scenario2-run-client
Open your wallet UI
cd agoric-sdk/packages/cosmic-swingset/t1
agoric open --repl
Deploy the contract
cd agoric-assignment-6
agoric deploy contract/deploy.js api/deploy.js
Start UI,
# Navigate to the `ui` directory and start a local server
cd agoric-assignment-6/ui && yarn start
- A window for your wallet should open.
- Under "Dapps" in the wallet, enable the CardStore Dapp.
- Now you should be able to click on a card to make an offer to buy it.
- Approve the offer in your wallet
- View the card in your wallet.
To learn more about how to build Agoric Dapps, please see the Dapp Guide.
See the Dapp Deployment Guide for how to deploy this Dapp on a public website, such as https://cardstore.testnet.agoric.com/