Anchor.toml 1.4 KB

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