Skip to content

Commit

Permalink
add tokens/token-2022/transfer-hook/transfer-switch/anchor (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
thewuhxyz authored Jan 2, 2025
1 parent 08ef4e0 commit 9b6c969
Show file tree
Hide file tree
Showing 17 changed files with 2,222 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.anchor
.DS_Store
target
**/*.rs.bk
node_modules
test-ledger
.yarn
18 changes: 18 additions & 0 deletions tokens/token-2022/transfer-hook/transfer-switch/anchor/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]
transfer_switch = "FjcHckEgXcBhFmSGai3FRpDLiT6hbpV893n8iTxVd81g"

[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 tokens/token-2022/transfer-hook/transfer-switch/anchor/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
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@solana/spl-token": "^0.4.0"
},
"devDependencies": {
"anchor-bankrun": "^0.5.0",
"solana-bankrun": "^0.4.0",
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "10.0.9",
"chai": "^4.3.4",
"mocha": "^10.8.2",
"prettier": "^2.6.2",
"ts-mocha": "^10.0.0",
"typescript": "^5"
}
}
Loading

0 comments on commit 9b6c969

Please sign in to comment.