anchor/tests/cfo/Anchor.toml

43 lines
1.4 KiB
TOML
Raw Normal View History

2021-06-28 04:17:05 +08:00
[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json"
2021-08-08 17:11:48 +08:00
[programs.localnet]
2021-06-28 04:17:05 +08:00
registry = { address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv", idl = "./deps/stake/target/idl/registry.json" }
lockup = { address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks", idl = "./deps/stake/target/idl/lockup.json" }
[scripts]
#
# Testing.
#
2021-07-30 05:38:24 +08:00
test = "mocha -t 1000000 tests/"
test-with-build = "anchor run build && anchor test --skip-build"
2021-06-28 04:17:05 +08:00
#
# Build the program and all CPI dependencies.
#
build = "anchor run build-deps && anchor build"
build-deps = "anchor run build-dex && anchor run build-swap && anchor run build-stake"
build-dex = "pushd deps/serum-dex/dex/ && cargo build-bpf && popd"
build-swap = "cd deps/swap && pwd && anchor build && cd ../../"
build-stake = "pushd deps/stake && anchor build && popd"
#
# Runs a localnet with all the programs deployed.
#
localnet = "./scripts/localnet.sh"
[[test.genesis]]
address = "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"
program = "./deps/serum-dex/dex/target/deploy/serum_dex.so"
[[test.genesis]]
address = "22Y43yTVxuUkoRKdm9thyRhQ3SdgQS7c7kB6UNCiaczD"
program = "./deps/swap/target/deploy/swap.so"
[[test.genesis]]
address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv"
program = "./deps/stake/target/deploy/registry.so"
[[test.genesis]]
address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks"
program = "./deps/stake/target/deploy/lockup.so"