-
Notifications
You must be signed in to change notification settings - Fork 4.5k
spl: Bump token to v3.3.0 and ATA to v1.0.5 #22649
Conversation
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
07ff8fe
to
6b4b6bd
Compare
@joncinque Can you also remove this audit exception as part of these changes, bumping spl-token also pulls in a safe |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
4f2b56e
to
8c7c238
Compare
@CriesofCarrots Once you merge the test fixes in #23067, i'll just need to update the keys in the tests here, but otherwise, this should be good to go! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, looks great! r+ when rebased and CI is happy
let initialize_mint_ix = initialize_mint2( | ||
&spl_token::id(), | ||
&convert_pubkey(keys[0]), | ||
&convert_pubkey(keys[2]), | ||
Some(&convert_pubkey(keys[3])), | ||
2, | ||
) | ||
.unwrap(); | ||
let message = Message::new(&[initialize_mint_ix], None); | ||
let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); | ||
assert_eq!( | ||
parse_token(&compiled_instruction, &keys).unwrap(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an example of the new handling from #23067 :
let initialize_mint_ix = initialize_mint2( | |
&spl_token::id(), | |
&convert_pubkey(keys[0]), | |
&convert_pubkey(keys[2]), | |
Some(&convert_pubkey(keys[3])), | |
2, | |
) | |
.unwrap(); | |
let message = Message::new(&[initialize_mint_ix], None); | |
let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); | |
assert_eq!( | |
parse_token(&compiled_instruction, &keys).unwrap(), | |
let initialize_mint_ix = initialize_mint2( | |
&spl_token::id(), // TODO: replace with `program_id` | |
&convert_pubkey(mint_pubkey), | |
&convert_pubkey(mint_authority), | |
Some(&convert_pubkey(freeze_authority)), | |
2, | |
) | |
.unwrap(); | |
let message = make_coerced_message(initialize_mint_ix, program_id); | |
let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); | |
assert_eq!( | |
parse_token(&compiled_instruction, &convert_account_keys(&message)).unwrap(), |
* Add parsers for new token instructions * Update parser for modified associated-token-account instruction
8c7c238
to
c2483f2
Compare
Pull request has been modified.
🎉🎉 |
Ready to add v1.10 label? |
Yes! Sorry, didn't get around to it yesterday -- thanks for backporting #23067 |
* Bump spl-token and ATA to v3.3.0 * Add parsers for new token instructions * Update parser for modified associated-token-account instruction * Update to use 1.0.5 once it's released * Update Cargo.lock in programs/bpf (cherry picked from commit c43afe2) # Conflicts: # account-decoder/Cargo.toml # accounts-cluster-bench/Cargo.toml # rpc/Cargo.toml # tokens/Cargo.toml # transaction-status/Cargo.toml
* spl: Bump token to v3.3.0 and ATA to v1.0.5 (#22649) * Bump spl-token and ATA to v3.3.0 * Add parsers for new token instructions * Update parser for modified associated-token-account instruction * Update to use 1.0.5 once it's released * Update Cargo.lock in programs/bpf (cherry picked from commit c43afe2) # Conflicts: # account-decoder/Cargo.toml # accounts-cluster-bench/Cargo.toml # rpc/Cargo.toml # tokens/Cargo.toml # transaction-status/Cargo.toml * Fix merge conflicts * Re-add audit ignore to avoid bumping more crates Co-authored-by: Jon Cinque <[email protected]>
* Bump spl-token and ATA to v3.3.0 * Add parsers for new token instructions * Update parser for modified associated-token-account instruction * Update to use 1.0.5 once it's released * Update Cargo.lock in programs/bpf
* Bump spl-token and ATA to v3.3.0 * Add parsers for new token instructions * Update parser for modified associated-token-account instruction * Update to use 1.0.5 once it's released * Update Cargo.lock in programs/bpf
* Bump spl-token and ATA to v3.3.0 * Add parsers for new token instructions * Update parser for modified associated-token-account instruction * Update to use 1.0.5 once it's released * Update Cargo.lock in programs/bpf
Problem
The new token program was deployed, but the monorepo isn't using the new packages.
Summary of Changes
Fixes #
NOTE: Only merge this once the associated token program version 1.0.5 is released on all clusters, tracked by the feature introduced in #22648