[provider] cluster = "localnet" wallet = "~/.config/solana/id.json" [programs.localnet] cfo = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS" registry = { address = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv", idl = "./deps/stake/target/idl/registry.json" } lockup = { address = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks", idl = "./deps/stake/target/idl/lockup.json" } [scripts] # # Testing. # test = "yarn run mocha -t 1000000 tests/" test-with-build = "anchor run build && anchor test --skip-build --skip-lint" # # Build the program and all CPI dependencies. # build = "anchor run build-deps && anchor build --skip-lint" 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 --skip-lint && cd ../../" build-stake = "pushd deps/stake && anchor build --skip-lint && 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" [features]