Commit 7e76536
committed
test(tokens): migrate token-minter, transfer-tokens, nft-minter, pda-mint-authority natives to mpl 5.x + LiteSVM
Migrate the four Metaplex-using native token examples off the old
mpl-token-metadata 1.x / system_instruction / spl-token APIs onto the
current toolchain, matching the create-token reference:
- mpl-token-metadata 5.x builders (CreateMetadataAccountV3,
CreateMasterEditionV3) bridged from the older solana-program types the
builders return via a shared bridge.rs (to_mpl / bridge_instruction).
- solana-system-interface for create_account.
- spl-token-interface + spl-associated-token-account-interface 2.0.0.
- transfer-tokens now uses transfer_checked (reads mint decimals).
- Add each crate to the root workspace members and remove from .ghaignore.
- Add LiteSVM Rust tests (program/tests/test.rs) loading the program plus
the committed mpl_token_metadata.so fixture, exercising create/mint/
transfer/master-edition/PDA-authority flows end to end with assertions.
- Replace package.json with scripts-only, delete devnet TS tests +
tsconfig, regenerate empty pnpm lockfiles.
https://claude.ai/code/session_013dpnF6uSGWXjkJJZseqzcP1 parent 3bd06fb commit 7e76536
54 files changed
Lines changed: 1140 additions & 8686 deletions
File tree
- .github
- tokens
- nft-minter/native
- program
- src
- instructions
- tests
- tests
- fixtures
- pda-mint-authority/native
- program
- src
- instructions
- tests
- tests
- fixtures
- token-minter/native
- program
- src
- instructions
- tests
- tests
- fixtures
- transfer-tokens/native
- program
- src
- instructions
- tests
- tests
- fixtures
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
21 | 6 | | |
22 | 7 | | |
0 commit comments