Roberto Huertas da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
..
api da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
program da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
tests da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
.gitignore da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
Cargo.toml da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
README.md da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
package.json da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
pnpm-lock.yaml da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ
tsconfig.json da2163d602 add basics/processing-instructions/steel (#166) 9 mēneši atpakaļ

README.md

ProcessingInstructions

See the Processing instructions's README for more information. In our case, we cannot use Borsh for serialization, as we're constrained by the Steel framework dependency on PODs (Plain Old Data).

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