Skip to content

Commit 5e4b21d

Browse files
authored
feat: add close account pinocchio example (#462)
1 parent c455355 commit 5e4b21d

File tree

22 files changed

+1648
-11
lines changed

22 files changed

+1648
-11
lines changed

Cargo.lock

Lines changed: 18 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
@@ -8,6 +8,7 @@ members = [
88
"basics/checking-accounts/pinocchio/program",
99
"basics/checking-accounts/anchor/programs/anchor-program-example",
1010
"basics/close-account/native/program",
11+
"basics/close-account/pinocchio/program",
1112
"basics/close-account/anchor/programs/close-account",
1213
"basics/counter/native/program",
1314
"basics/counter/anchor/programs/counter_anchor",

basics/close-account/native/program/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ solana-system-interface.workspace = true
1313
crate-type = ["cdylib", "lib"]
1414

1515
[features]
16-
anchor-debug = []
1716
custom-heap = []
1817
custom-panic = []
1918

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 ./tests/tsconfig.test.json -t 1000000 ./tests/close-account.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.98.4"
11+
},
12+
"devDependencies": {
13+
"@types/bn.js": "^5.2.0",
14+
"@types/chai": "^4.3.20",
15+
"@types/mocha": "^9.1.1",
16+
"chai": "^4.5.0",
17+
"mocha": "^9.2.2",
18+
"solana-bankrun": "^0.3.1",
19+
"ts-mocha": "^10.1.0",
20+
"typescript": "^4.9.5"
21+
}
22+
}

0 commit comments

Comments
 (0)