2021-06-28 04:17:05 +08:00
|
|
|
[provider]
|
|
|
|
cluster = "localnet"
|
|
|
|
wallet = "~/.config/solana/id.json"
|
|
|
|
|
2021-08-08 17:11:48 +08:00
|
|
|
[programs.localnet]
|
2021-09-08 04:06:15 +08:00
|
|
|
cfo = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
|
2021-06-28 04:17:05 +08: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-12 06:38:35 +08:00
|
|
|
test = "yarn run mocha -t 1000000 tests/"
|
2022-02-21 08:43:19 +08:00
|
|
|
test-with-build = "anchor run build && anchor test --skip-build --skip-lint"
|
2021-06-28 04:17:05 +08:00
|
|
|
#
|
|
|
|
# Build the program and all CPI dependencies.
|
|
|
|
#
|
2022-02-21 08:43:19 +08:00
|
|
|
build = "anchor run build-deps && anchor build --skip-lint"
|
2021-06-28 04:17:05 +08:00
|
|
|
build-deps = "anchor run build-dex && anchor run build-swap && anchor run build-stake"
|
2022-12-13 00:12:33 +08:00
|
|
|
build-dex = "pushd deps/openbook-dex/dex/ && cargo build-bpf && popd"
|
2022-02-21 08:43:19 +08:00
|
|
|
build-swap = "cd deps/swap && pwd && anchor build --skip-lint && cd ../../"
|
|
|
|
build-stake = "pushd deps/stake && anchor build --skip-lint && popd"
|
2021-06-28 04:17:05 +08:00
|
|
|
#
|
|
|
|
# Runs a localnet with all the programs deployed.
|
|
|
|
#
|
|
|
|
localnet = "./scripts/localnet.sh"
|
|
|
|
|
|
|
|
[[test.genesis]]
|
2022-12-13 00:12:33 +08:00
|
|
|
address = "srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX"
|
|
|
|
program = "./deps/openbook-dex/dex/target/deploy/serum_dex.so"
|
2021-06-28 04:17:05 +08:00
|
|
|
|
|
|
|
[[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"
|
2022-02-18 06:45:33 +08:00
|
|
|
|
|
|
|
[features]
|