Ayush 4b8594ec04 chore: solana native and steel bump to v2.1 (#382) hai 4 meses
..
api 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses
program 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses
tests 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses
.gitignore 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses
Cargo.toml 4b8594ec04 chore: solana native and steel bump to v2.1 (#382) hai 4 meses
README.md 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses
package.json 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses
pnpm-lock.yaml 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses
tsconfig.json 16068f8dd8 add basics/program-derived-addresses/steel (#343) hai 9 meses

README.md

Program Derived Addresses

This program demonstrates how to derive addresses. It will use a PDA to store a counter of visits and increment it.

Building

cargo build-sbf

Tests

This project includes both:

  • Rust tests: program/tests directory.
  • Node.js tests using Bankrun: tests directory.

    # rust tests
    cargo test-sbf 
    
    # node tests
    pnpm build-and-test # this will also build the program
    #or 
    pnpm test # if you have already built the program