Ayush 4b8594ec04 chore: solana native and steel bump to v2.1 (#382) преди 4 месеца
..
api 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца
program 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца
tests 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца
.gitignore 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца
Cargo.toml 4b8594ec04 chore: solana native and steel bump to v2.1 (#382) преди 4 месеца
README.md 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца
package.json 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца
pnpm-lock.yaml 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца
tsconfig.json 16068f8dd8 add basics/program-derived-addresses/steel (#343) преди 9 месеца

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