Giter Site home page Giter Site logo

resolve2232 / core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gemworks/gem-farm

0.0 0.0 0.0 2.12 MB

core protocol

Home Page: https://gemworks.gg/

License: MIT License

JavaScript 1.95% HTML 0.42% Vue 21.81% TypeScript 38.80% CSS 0.03% Rust 36.58% Shell 0.41%

core's Introduction

Gemworks ๐Ÿ’Ž

Gemworks is a collection of Solana on-chain programs for doing all kinds of cool stuff with NFTs (gems ๐Ÿ’Ž).

Currently it consists of:

  • Gem Bank ๐Ÿฆ - lets you manage a whitelisted collection of gems across any number of lockable vaults.
  • Gem Farm ๐Ÿง‘โ€๐ŸŒพ - lets you offer a yield-bearing facility to loyal gem stakers.

Deploy your own version ๐Ÿ› 

  • git clone the repo
  • Make sure you have solana-cli installed, keypair configured, and at least 10 sol on devnet beforehand
  • Update path to your keypair in Anchor.toml that begins with wallet =
  • Run anchor build to build the programs
  • We need to update the program IDs:
    • Run solana-keygen pubkey ./target/deploy/gem_bank-keypair.json - insert the new Bank prog ID in the following locations:
      • ./Anchor.toml
      • ./programs/gem_bank/src/lib.rs
      • ./app/gem-bank/src/globals.ts
      • ./app/gem-farm/src/globals.ts
    • And solana-keygen pubkey ./target/deploy/gem_farm-keypair.json - insert the new Farm prog ID in the following locations:
      • ./Anchor.toml
      • ./programs/gem_farm/src/lib.rs
      • ./app/gem-farm/src/globals.ts
  • Run anchor build to build one more time
  • Run anchor deploy --provider.cluster devnet to deploy to devnet
  • Now copy the IDLs into the apps:
    • cp ./target/idl/gem_bank.json ./app/gem-bank/public
    • cp ./target/idl/gem_bank.json ./app/gem-farm/public
    • cp ./target/idl/gem_farm.json ./app/gem-farm/public
  • alternatively you can run the script I prepared ./scripts/cp_idl.sh
  • (!) IMPORTANT - run yarn inside the root of the repo
  • finally start the apps!
    • eg cd into app/gem-bank and run yarn && yarn serve
  • don't forget to open Chrome's console with CMD+SHIFT+I to get feedback from the app when you click buttons. It currently doesn't have a notifications system

Docs โœ๏ธ

Extensive documentation is available here.

The answer you're looking for is probably there. Pls don't DM with random questions.

License ๐Ÿงพ

MIT

core's People

Contributors

ilmoi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.