bidhan-a b7ac3d80da fix:tests пре 1 недеља
..
src e26a32eb41 Upgraded tests пре 3 недеља
.gitignore e42cff98e7 add counter program to examples пре 1 месец
Cargo.toml b7ac3d80da fix:tests пре 1 недеља
README.md e42cff98e7 add counter program to examples пре 1 месец

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