forked from solana-foundation/program-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnchor.toml
More file actions
23 lines (17 loc) · 933 Bytes
/
Copy pathAnchor.toml
File metadata and controls
23 lines (17 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[toolchain]
solana_version = "3.1.8"
[features]
resolution = true
skip-lint = false
[hooks]
# program keypairs are committed under keypairs/ so ids stay stable (declare_program! bakes the lever id); stage them and fail loudly if one no longer matches Anchor.toml (the global anchor build --ignore-keys would otherwise hide drift until test time)
pre_build = "mkdir -p target/deploy && cp keypairs/*.json target/deploy/ && for k in keypairs/*-keypair.json; do grep -q \"$(solana-keygen pubkey \"$k\")\" Anchor.toml || { echo \"keypair drift: $k does not match Anchor.toml\"; exit 1; }; done"
[programs.localnet]
hand = "59c3ER1YrnnnezUVH7ix4WDUw9TQ9k7xH6wQyAmWvc52"
lever = "A6GUsa5Ej8iWzMMP3B6otFVB5aaUckVm8a31Y5TMLYRV"
# [registry] section removed — no longer used in Anchor 1.0
[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
[scripts]
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"