Setup project
- Create
.env
file and fill in private keys (see in.ent.txt
file) - Create
.wallet/master.json
and write your account keypair in base58. This account will be used for deploy program - Run:
yarn
Build program -
anchor build
Deploy program
anchor build
After deploy successfully, you can see program Id
line. Copy this line and update files:
programs/marketplace/src/lib.rs
: updatedeclare_id!(<program Id>)
Anchor.toml
: updatemarketplace = <program Id>
in[programs.devnet]
tagtests/config.json
: update"programId": <program Id>
Test program
anchor test