Skip to content
forked from Kryha/KREAd

KREAd is an application that uses and implements composable NFTs on Agoric, the application allows users to customize their own characters by equipping and unequipping items.

Notifications You must be signed in to change notification settings

agoric-labs/KREAd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kread

TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.

Getting Started

TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:

  1. Installation process
  2. Software dependencies
  3. Latest releases
  4. API references

Build and Test

TODO: Describe and show how to build your code and run the tests.

Contribute

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:

To Run a local AG-Solo + Wallet + frontend

Terminal 1 - agoric

  1. agoric start -v --reset

Terminal 2 - agoric

  1. agoric deploy contract/kread-deploy-contract.js api/kread-deploy-api.js
  2. agoric open --repl

Terminal 3 - frontend

  1. Remove type: module from package.json
  2. yarn start
  3. Remember to put back the type: module before commiting your changes

Run multiuser

To run the application for more than one user follow these steps:

  1. Install GO!
    1. brew install go
  2. Run Make in your local agoric-sdk directory
    1. cd <local-sdk-path>/packages/cosmic-swingset
    2. make
  3. Run the chain:
    1. Open a new terminal window
    2. cd agoric/
    3. make chain-reset and wait until it starts validating blocks
  4. Run ag-solo for the first user:
    1. Open a new terminal window
    2. cd agoric/
    3. make solo0-reset and wait until it prints "Deployed wallet!"
  5. Run ag-solo for the second user:
    1. Open a new terminal window
    2. cd agoric/
    3. make solo1-reset and wait until it prints "Deployed wallet!"
  6. Configure wallet and localStorage for the first user:
    1. Open a new terminal window
    2. cd agoric/
    3. make wallet0 and open the url in a new browser tab
  7. Configure wallet and localStorage for the second user:
    1. Open a new browser or a new session
    2. make wallet1 and open the url in the new session or browser
  8. Deploy contract and api:
    1. Open frontend/package.json and add "type": "module" to the configuration
    2. From agoric/ directory run make deploy
    3. After everything is deployed, remove the line you added to frontend/package.json
  9. On the session with the wallet listening to port 8001:
    1. Navigate to local.agoric.com
    2. In the text field type https://localhost:8001/#accessToken=<access_token_value> where access_token_value is the value you get when executing make wallet1
    3. Click save, then click open
    4. Navigate to local.agoric.com
    5. In the text field type https://localhost:8001/
    6. Click save, then click open
  10. Run frontend:
    1. Open a new terminal window
    2. cd frontend/
    3. yarn start
    4. Navigate to localhost:3000 on each session and approve the app in both wallets
  11. Enjoy!

About

KREAd is an application that uses and implements composable NFTs on Agoric, the application allows users to customize their own characters by equipping and unequipping items.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 50.2%
  • JavaScript 49.0%
  • Other 0.8%