Skip to content

v2.1.0

Latest
Compare
Choose a tag to compare
@HardhatChad HardhatChad released this 23 Oct 16:47
· 8 commits to master since this release

New features in v2:

  • CLI
    • new command for creating new projects
    • build command for running cargo build
    • test command for running cargo test
    • clean command for running cargo clean
  • Refined account validation logic
    • Renamed to_ prefix to as_
    • Renamed check to assert
    • Added assert_err and assert_msg variations
  • Hidden PDA bumps
    • All helpers implicitly calculate bumps
    • _with_bump helpers provided for devs who want to manually manage bumps
  • Event loggers
    • Add .log() to any event to log with sol_log
    • Add .log_return() to any event to return with set_return_data
  • Lamport transfer helpers
    • collect function to collect lamports from signers and non-program owned accounts
    • send function to send lamports from program owned accounts
  • More SPL helpers
    • Helper functions for freeze burn, mint, initialize_mint commands