-
Notifications
You must be signed in to change notification settings - Fork 7
/
Anchor.toml
34 lines (27 loc) · 1.89 KB
/
Anchor.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
anchor_version = "0.29.0"
[provider]
cluster = "localnet"
wallet = "~/.config/solana/nina.json"
[programs.mainnet]
nina = "ninaN2tm9vUkxoanvGcNApEeWiidLMM2TdBX8HoJuL4"
[programs.devnet]
nina = "77BKtqWTbTRxj5eZPuFbeXjx3qz4TTHoXRnpCejYWiQH"
[programs.localnet]
nina = "77BKtqWTbTRxj5eZPuFbeXjx3qz4TTHoXRnpCejYWiQH"
[registry]
url = "https://anchor.projectserum.com"
[scripts]
test = "ts-mocha -t 1000000 -p ./tsconfig.json --provider.cluster localnet -b"
test-with-build = "anchor run build && anchor test ./tests --skip-build --provider.cluster localnet"
nina-upgrade-devnet = "anchor upgrade --program-id 77BKtqWTbTRxj5eZPuFbeXjx3qz4TTHoXRnpCejYWiQH ./target/deploy/nina.so --provider.cluster https://nina.devnet.rpcpool.com/a4720dd909cb194f1d9ea07d50ee"
nina-upgrade-idl-devnet = "anchor idl upgrade --filepath ./target/idl/nina.json 77BKtqWTbTRxj5eZPuFbeXjx3qz4TTHoXRnpCejYWiQH --provider.cluster https://nina.devnet.rpcpool.com/a4720dd909cb194f1d9ea07d50ee"
build = "anchor run build-deps && anchor build"
build-deps = "anchor run build-metaplex"
build-metaplex = "cd ./deps/metaplex/mpl-token-metadata/programs/token-metadata/program && pwd && cargo build-bpf && cd ../../../"
upgrade-devnet = "anchor run nina-upgrade-devnet && anchor run nina-upgrade-idl-devnet"
nina-upgrade-mainnet = "anchor upgrade --program-id ninaN2tm9vUkxoanvGcNApEeWiidLMM2TdBX8HoJuL4 ./target/deploy/nina.so --provider.cluster https://nina.rpcpool.com/a4720dd909cb194f1d9ea07d50ee"
nina-upgrade-idl-mainnet = "anchor idl upgrade --filepath ./target/idl/nina.json ninaN2tm9vUkxoanvGcNApEeWiidLMM2TdBX8HoJuL4 --provider.cluster https://nina.rpcpool.com/a4720dd909cb194f1d9ea07d50ee"
upgrade-mainnet = "anchor run nina-upgrade-mainnet && anchor run nina-upgrade-idl-mainnet"
[[test.genesis]]
address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
program = "./deps/metaplex/mpl-token-metadata/programs/token-metadata/target/deploy/token_metadata.so"