bidhan-a b7ac3d80da fix:tests 1 tydzień temu
..
src e26a32eb41 Upgraded tests 3 tygodni temu
.gitignore e42cff98e7 add counter program to examples 1 miesiąc temu
Cargo.toml b7ac3d80da fix:tests 1 tydzień temu
README.md e42cff98e7 add counter program to examples 1 miesiąc temu

README.md

sbpf-asm-counter

A Solana program written in sBPF Assembly that allows users to create and increment an on-chain counter.

Its main purpose is to demonstrate how to create an account and manage account data directly using sBPF.

It utilizes the following syscalls:

  • sol_create_program_address
  • sol_memcmp_
  • sol_get_rent_sysvar
  • sol_memcpy_
  • sol_invoke_signed_c

Build

To build the program, run the following command:

sbpf build

Test

To test the program, run the following command:

sbpf test

Created with sbpf