Skip to content

Commit

Permalink
anchor: split instructions & use system-owned treasury pda (#86)
Browse files Browse the repository at this point in the history
1. Create test helper functions for reusable code, e.g., create fund 
2. Split fund initialization and share class setup
3. Manually create treasury account and set owner to system
4. Downgraded to anchor 0.29.0
5. breaking change: updated share class pda seeds to include share
symbol
  • Loading branch information
yurushao authored May 4, 2024
1 parent 6962afb commit f6afb90
Show file tree
Hide file tree
Showing 26 changed files with 10,361 additions and 12,597 deletions.
6 changes: 4 additions & 2 deletions anchor/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ cluster = "localnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_investor"
# test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_crud"
# test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_staking"
# test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_investor"
test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_crud"
# test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_drift"
#test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern devnet"

[test]
Expand Down
Loading

0 comments on commit f6afb90

Please sign in to comment.