Closed SkyYap closed 2 years ago
@ilmoi - Suggest adding this in README.md
for those who want to Deploy your own version ðŸ›
Path: app\gem-bank\node_modules\@gemworks\gem-farm-ts\dist\index.js
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
./src/index.ts
(replace GEM_BANK_PROG_ID)
app/gem-bank/node_modules/@gemworks/gem-farm-ts/dist/index.js
(replace GEM_BANK_PROG_ID)
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
./src/index.ts
(replace GEM_FARM_PROG_ID)
app/gem-bank/node_modules/@gemworks/gem-farm-ts/dist/index.js
(replace GEM_FARM_PROG_ID)
Hi, I have deployed successfully following the instruction. However, I found out the bank address deployed after git clone is a PDA from 'bankHHdqMuaaST4qQk6mkzxGeKPHWmqdgor6Gs8r88m'
I wish to create the PDA in our contract. Supposedly after I change these 3 parts to my own keypair:
./Anchor.toml
./programs/gem_bank/src/lib.rs
./src/index.ts (replace GEM_BANK_PROG_ID)
The bank address should be a PDA derived from my deployed account. If the bank address deployed after git clone by us is a PDA deployed from the owner, what's the purpose of deploying it ourselves?
Please help. Here's the my github code. I have uploaded it. 'https://github.com/SkyYap/gem-farm'