Commit 203b246
authored
add pinocchio repository-layout example (#582)
* add pinocchio repository-layout example
Ports the carnival program from anchor/native to a Pinocchio variant
mirroring the same module layout (lib/processor/instructions/state/error).
- #![no_std] crate using pinocchio + pinocchio-log
- Instruction data wire format matches the native borsh layout, so the
bankrun test reuses the same encoding
- Static const tables replace heap-allocated Vec<FoodStand|Game|Ride>
* add pnpm-lock.yaml for pinocchio repository-layout example
Generated via pnpm install; required for CI's pnpm install --frozen-lockfile.
* style: fix rustfmt in pinocchio repository-layout example1 parent 93dc0a0 commit 203b246
20 files changed
Lines changed: 1903 additions & 1 deletion
File tree
- basics/repository-layout
- pinocchio
- program
- src
- instructions
- state
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments