Skip to content

Commit c455355

Browse files
authored
feat: add checking account pinocchio example (#463)
1 parent b72c92f commit c455355

File tree

10 files changed

+1621
-0
lines changed

10 files changed

+1621
-0
lines changed

Cargo.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ members = [
55
"basics/account-data/pinocchio/program",
66
"basics/account-data/anchor/programs/anchor-program-example",
77
"basics/checking-accounts/native/program",
8+
"basics/checking-accounts/pinocchio/program",
89
"basics/checking-accounts/anchor/programs/anchor-program-example",
910
"basics/close-account/native/program",
1011
"basics/close-account/anchor/programs/close-account",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# This script is for quick building & deploying of the program.
4+
# It also serves as a reference for the commands used for building & deploying Solana programs.
5+
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
6+
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"type": "module",
3+
"scripts": {
4+
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
5+
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",
6+
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so",
7+
"deploy": "solana program deploy ./program/target/so/program.so"
8+
},
9+
"dependencies": {
10+
"@solana/web3.js": "^1.47.3"
11+
},
12+
"devDependencies": {
13+
"@types/bn.js": "^5.1.0",
14+
"@types/chai": "^4.3.1",
15+
"@types/mocha": "^9.1.1",
16+
"chai": "^4.3.4",
17+
"mocha": "^9.0.3",
18+
"ts-mocha": "^10.0.0",
19+
"typescript": "^4.3.5",
20+
"solana-bankrun": "^0.3.0"
21+
}
22+
}

0 commit comments

Comments
 (0)