Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 664 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 664 Bytes

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: update declare_id!(<program Id>)
  • Anchor.toml: update marketplace = <program Id> in [programs.devnet] tag
  • tests/config.json: update "programId": <program Id>

Test program

anchor test