Anchor.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [provider]
  2. cluster = "localnet"
  3. wallet = "~/.config/solana/id.json"
  4. [clusters.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 = "anchor run build && anchor test --skip-build"
  12. #
  13. # Build the program and all CPI dependencies.
  14. #
  15. build = "anchor run build-deps && anchor build"
  16. build-deps = "anchor run build-dex && anchor run build-swap && anchor run build-stake"
  17. build-dex = "pushd deps/serum-dex/dex/ && cargo build-bpf && popd"
  18. build-swap = "cd deps/swap && pwd && anchor build && cd ../../"
  19. build-stake = "pushd deps/stake && anchor build && popd"
  20. #
  21. # Runs a localnet with all the programs deployed.
  22. #
  23. localnet = "./scripts/localnet.sh"
  24. [[test.genesis]]
  25. address = "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"
  26. program = "./deps/serum-dex/dex/target/deploy/serum_dex.so"
  27. [[test.genesis]]
  28. address = "22Y43yTVxuUkoRKdm9thyRhQ3SdgQS7c7kB6UNCiaczD"
  29. program = "./deps/swap/target/deploy/swap.so"
  30. [[test.genesis]]
  31. address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv"
  32. program = "./deps/stake/target/deploy/registry.so"
  33. [[test.genesis]]
  34. address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks"
  35. program = "./deps/stake/target/deploy/lockup.so"