Anchor.toml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [provider]
  2. cluster = "localnet"
  3. wallet = "~/.config/solana/id.json"
  4. [programs.localnet]
  5. registry = { address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv", idl = "./deps/stake/target/idl/registry.json" }
  6. lockup = { address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks", idl = "./deps/stake/target/idl/lockup.json" }
  7. [scripts]
  8. #
  9. # Testing.
  10. #
  11. test = "mocha -t 1000000 tests/"
  12. test-with-build = "anchor run build && anchor test --skip-build"
  13. #
  14. # Build the program and all CPI dependencies.
  15. #
  16. build = "anchor run build-deps && anchor build"
  17. build-deps = "anchor run build-dex && anchor run build-swap && anchor run build-stake"
  18. build-dex = "pushd deps/serum-dex/dex/ && cargo build-bpf && popd"
  19. build-swap = "cd deps/swap && pwd && anchor build && cd ../../"
  20. build-stake = "pushd deps/stake && anchor build && popd"
  21. #
  22. # Runs a localnet with all the programs deployed.
  23. #
  24. localnet = "./scripts/localnet.sh"
  25. [[test.genesis]]
  26. address = "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"
  27. program = "./deps/serum-dex/dex/target/deploy/serum_dex.so"
  28. [[test.genesis]]
  29. address = "22Y43yTVxuUkoRKdm9thyRhQ3SdgQS7c7kB6UNCiaczD"
  30. program = "./deps/swap/target/deploy/swap.so"
  31. [[test.genesis]]
  32. address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv"
  33. program = "./deps/stake/target/deploy/registry.so"
  34. [[test.genesis]]
  35. address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks"
  36. program = "./deps/stake/target/deploy/lockup.so"