by Gemworks
Gem Farm is a collection of on-chain Solana programs for NFT ("gem" π) staking.
It consists of:
Gem Bank is used under the hood by Gem Farm.
Both programs are now officially deployed across all 3 networks (mainnet, devnet, testnet):
bank: bankHHdqMuaaST4qQk6mkzxGeKPHWmqdgor6Gs8r88m
farm: farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE
You can interact with them using this front-end (or build your own).
git clone
the repo solana-cli
installed, keypair configured, and at least 10 sol on devnet beforehandAnchor.toml
that begins with wallet =
anchor build
to build the programssolana-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
./src/index.ts
(replace GEM_BANK_PROG_ID)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
./src/index.ts
(replace GEM_FARM_PROG_ID)anchor build
to build one more timeanchor deploy --provider.cluster devnet
to deploy to devnetcp ./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
./scripts/cp_idl.sh
yarn
inside the root of the repoapp/gem-bank
and run yarn && yarn serveCMD+SHIFT+I
to get feedback from the app when you click buttons. It currently doesn't have a notifications systemNote that deploying your own version will cost you ~20 SOL.
If you get a cryptic error back that looks something like this:
Transaction failed 0x1798
The steps to take are as follows:
Extensive documentation is available here.
The answer you're looking for is probably there. Pls don't DM with random questions.
MIT