TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.
TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
- Installation process
- Software dependencies
- Latest releases
- API references
TODO: Describe and show how to build your code and run the tests.
TODO: Explain how other users and developers can contribute to make your code better.
If you want to learn more about creating good readme files then refer the following guidelines. You can also seek inspiration from the below readme files:
agoric start -v --reset
agoric deploy contract/kread-deploy-contract.js api/kread-deploy-api.js
agoric open --repl
- Remove
type: module
frompackage.json
- yarn start
- Remember to put back the
type: module
before commiting your changes
To run the application for more than one user follow these steps:
- Install GO!
brew install go
- Run Make in your local agoric-sdk directory
cd <local-sdk-path>/packages/cosmic-swingset
make
- Run the chain:
- Open a new terminal window
cd agoric/
make chain-reset
and wait until it starts validating blocks
- Run ag-solo for the first user:
- Open a new terminal window
cd agoric/
make solo0-reset
and wait until it prints "Deployed wallet!"
- Run ag-solo for the second user:
- Open a new terminal window
cd agoric/
make solo1-reset
and wait until it prints "Deployed wallet!"
- Configure wallet and localStorage for the first user:
- Open a new terminal window
cd agoric/
make wallet0
and open the url in a new browser tab
- Configure wallet and localStorage for the second user:
- Open a new browser or a new session
make wallet1
and open the url in the new session or browser
- Deploy contract and api:
- Open
frontend/package.json
and add"type": "module"
to the configuration - From
agoric/
directory runmake deploy
- After everything is deployed, remove the line you added to
frontend/package.json
- Open
- On the session with the wallet listening to port 8001:
- Navigate to
local.agoric.com
- In the text field type
https://localhost:8001/#accessToken=<access_token_value>
whereaccess_token_value
is the value you get when executingmake wallet1
- Click
save
, then clickopen
- Navigate to
local.agoric.com
- In the text field type
https://localhost:8001/
- Click
save
, then clickopen
- Navigate to
- Run frontend:
- Open a new terminal window
cd frontend/
yarn start
- Navigate to
localhost:3000
on each session and approve the app in both wallets
- Enjoy!