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

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