Skip to content

Commit

Permalink
Vanderwaal/token 2022 (#81)
Browse files Browse the repository at this point in the history
* parameterize anchor tests for both token programs

* replace token instructions with token_2022

* replace Token Program with TokenInterface

* convert Token and Mint accounts to Interface types

* refactor spl account unpacking to support token2022

* update any-allowlist test to use umi for T2022 support

* update creator royalty test

* fix ata amount for immutable owner extension

* update deposit tests

* update fulfill exp

* update fulfill linear

* update mip1 tests

* refactor a bit

* update withdraw tests

* reset OCP tests to only run tokenkeg; use alias for old mpl-token-metadata package

* specify old mpl-token-metadata lib for client

* clean up Anchor toml file

* add token_program constraints; remove debug logging

* replace ocp Interface with Token program

* small cleanup

---------

Co-authored-by: Erik Yu <[email protected]>
  • Loading branch information
Samuel Vanderwaal and madergaser authored Feb 8, 2024
1 parent 93bdb51 commit 2873883
Show file tree
Hide file tree
Showing 39 changed files with 10,881 additions and 19,093 deletions.
4 changes: 0 additions & 4 deletions Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ address = "ocp4vWUzA2z2XMYJ3QhM9vWdyoyoQwAFJhRdVTbvo9E" # ocp: open_creator_prot
[[test.validator.clone]]
address = "6Huqrb4xxmmNA4NufYdgpmspoLmjXFd3qEfteCddLgSz" # ocp: policy (allow all)

[[test.genesis]]
address = "migrxZFChTqicHpNa1CAjPcF29Mui2JU2q4Ym7qQUTi"
program = "tests/deps/mpl_migration_validator.so" # custom migration validator with only waiting period updated

[programs.localnet]
mmm = "mmm3XBJg5gk8XJxEKBvdgptZz6SgK4tXvn36sodowMc"

Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2873883

Please sign in to comment.