Skip to content

Commit

Permalink
Merge pull request #36 from metaDAOproject/migrate-autocrat-to-fewer-…
Browse files Browse the repository at this point in the history
…slots

Autocrat v0.1
  • Loading branch information
metaproph3t authored Dec 15, 2023
2 parents c88a860 + 8bbea95 commit a9eaaf5
Show file tree
Hide file tree
Showing 17 changed files with 1,876 additions and 1,236 deletions.
30 changes: 18 additions & 12 deletions Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
[toolchain]

[features]
seeds = false
skip-lint = false

[programs.localnet]
autocrat_v0 = "meta3cxKzFBmWYgCVozmvCQAS3y9b3fGxrG9HkHL7Wi"
autocrat_migrator = "migkwAXrXFN34voCYQUhFQBXZJjHrWnpEXbSGTqZdB3"
autocrat_v0 = "metaX99LHn3A7Gr7VAcCfXhpfocvpMpqQ3eyp3PGUUq"
conditional_vault = "vaU1tVLj8RFk7mNj1BxqgAsMKKaL8UvEUHvU3tdbZPe"

[[test.genesis]]
address = "opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb"
program = "./tests/fixtures/openbook_v2.so"
[[test.genesis]]
address = "TWAP7frdvD3ia7TWc8e9SxZMmrpd2Yf3ifSPAHS8VG3"
program = "./tests/fixtures/openbook_twap.so"

[registry]
url = "https://api.apr.dev"

Expand All @@ -21,14 +17,24 @@ cluster = "Localnet"
wallet = "~/.config/solana/id.json"

[scripts]
initialize_vault = "yarn run tsc scripts/initializeVault.ts --esModuleInterop --resolveJsonModule && node scripts/initializeVault.js"
clob = "yarn run tsc scripts/clob.ts --esModuleInterop --resolveJsonModule && node scripts/clob.js && rm scripts/clob.js"
autocrat_v0 = "yarn run ts-node scripts/autocratV0.ts"
airdrop = "yarn run ts-node scripts/airdrop.ts"
place_order = "yarn run ts-node scripts/placeOrder.ts"
autocrat_v0 = "yarn run ts-node scripts/autocratV0.ts"
clob = "yarn run tsc scripts/clob.ts --esModuleInterop --resolveJsonModule && node scripts/clob.js && rm scripts/clob.js"
crank = "yarn run ts-node scripts/crank.ts"
main = "yarn run ts-node scripts/main.ts"
initialize_vault = "yarn run tsc scripts/initializeVault.ts --esModuleInterop --resolveJsonModule && node scripts/initializeVault.js"
place_order = "yarn run ts-node scripts/placeOrder.ts"
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/*.ts"

[test]
startup_wait = 5000
shutdown_wait = 2000
upgradeable = false

[[test.genesis]]
address = "opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb"
program = "./tests/fixtures/openbook_v2.so"

[[test.genesis]]
address = "TWAP7frdvD3ia7TWc8e9SxZMmrpd2Yf3ifSPAHS8VG3"
program = "./tests/fixtures/openbook_twap.so"
Loading

0 comments on commit a9eaaf5

Please sign in to comment.