43 lines
1.4 KiB
TOML
43 lines
1.4 KiB
TOML
|
[provider]
|
||
|
cluster = "localnet"
|
||
|
wallet = "~/.config/solana/id.json"
|
||
|
|
||
|
[programs.localnet]
|
||
|
registry = { address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv", idl = "./deps/stake/target/idl/registry.json" }
|
||
|
lockup = { address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks", idl = "./deps/stake/target/idl/lockup.json" }
|
||
|
|
||
|
[scripts]
|
||
|
#
|
||
|
# Testing.
|
||
|
#
|
||
|
test = "mocha -t 1000000 tests/"
|
||
|
test-with-build = "anchor run build && anchor test --skip-build"
|
||
|
#
|
||
|
# 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"
|