Roberto Huertas 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
..
api 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
program 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
tests 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
.gitignore 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
Cargo.toml 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
README.md 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
package.json 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
pnpm-lock.yaml 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago
tsconfig.json 16068f8dd8 add basics/program-derived-addresses/steel (#343) 9 months ago

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