Skip to content

Commit

Permalink
add proccessing instruction example
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamSspirit committed Oct 20, 2024
1 parent 5191fea commit 5b979de
Show file tree
Hide file tree
Showing 13 changed files with 1,397 additions and 0 deletions.
8 changes: 8 additions & 0 deletions basics/processing-instructions/poseidon/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.anchor
.DS_Store
target
**/*.rs.bk
node_modules
test-ledger
Cargo.lock
.yarn
18 changes: 18 additions & 0 deletions basics/processing-instructions/poseidon/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[toolchain]

[features]
resolution = true
skip-lint = false

[programs.localnet]
processing_instructions = "6Ra6xuBTuL8ytoHsGEzaAQcHHqNyGjjzemHpFyYrpGdV"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
14 changes: 14 additions & 0 deletions basics/processing-instructions/poseidon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[workspace]
members = [
"programs/*"
]
resolver = "2"

[profile.release]
overflow-checks = true
lto = "fat"
codegen-units = 1
[profile.release.build-override]
opt-level = 3
incremental = false
codegen-units = 1
17 changes: 17 additions & 0 deletions basics/processing-instructions/poseidon/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"dependencies": {
"@coral-xyz/anchor": "^0.30.0",
"@solana/web3.js": "^1.95.2"
},
"devDependencies": {
"anchor-bankrun": "^0.4.0",
"solana-bankrun": "^0.3.0",
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"chai": "^4.3.4",
"mocha": "^9.0.3",
"ts-mocha": "^10.0.0",
"typescript": "^4.3.5"
}
}
Loading

0 comments on commit 5b979de

Please sign in to comment.