2021-06-27 13:17:05 -07:00
|
|
|
[provider]
|
|
|
|
cluster = "localnet"
|
|
|
|
wallet = "~/.config/solana/id.json"
|
|
|
|
|
2021-08-08 02:11:48 -07:00
|
|
|
[programs.localnet]
|
2021-09-07 13:06:15 -07:00
|
|
|
cfo = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
|
2021-06-27 13:17:05 -07:00
|
|
|
registry = { address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv", idl = "./deps/stake/target/idl/registry.json" }
|
|
|
|
lockup = { address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks", idl = "./deps/stake/target/idl/lockup.json" }
|
|
|
|
|
|
|
|
[scripts]
|
|
|
|
#
|
|
|
|
# Testing.
|
|
|
|
#
|
2021-11-11 14:38:35 -08:00
|
|
|
test = "yarn run mocha -t 1000000 tests/"
|
2021-07-29 14:38:24 -07:00
|
|
|
test-with-build = "anchor run build && anchor test --skip-build"
|
2021-06-27 13:17:05 -07: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"
|