Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

spl: Bump token-2022 and friends #33453

Merged
merged 7 commits into from
Sep 29, 2023
Merged

Conversation

joncinque
Copy link
Contributor

Problem

token-2022 is now up to version 0.9.0, but the monorepo still uses 0.6.0

Summary of Changes

It was a bit tough to split this up without leaving the repo in a broken state at a certain commit, but the idea is to bump all of the spl crates to their newer versions that use 1.16.

After that, token-2022 has a few new extensions and instructions, so we need to support those too. Note that the token-metadata interface implemented by token-2022 is not included here.

Fixes #

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #33453 (c93e11d) into master (e3cd13e) will decrease coverage by 0.2%.
Report is 1 commits behind head on master.
The diff coverage is 44.8%.

@@            Coverage Diff            @@
##           master   #33453     +/-   ##
=========================================
- Coverage    81.9%    81.8%   -0.2%     
=========================================
  Files         799      802      +3     
  Lines      217344   218045    +701     
=========================================
+ Hits       178169   178364    +195     
- Misses      39175    39681    +506     

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! (Thanks for doing all the hand-parsers; I know they are a pita. Hopefully we'll get to rip that out sometime Soon ™️ )

@@ -13,8 +13,7 @@ edition = { workspace = true }
Inflector = { workspace = true }
base64 = { workspace = true }
bincode = { workspace = true }
# NOTE: Use the workspace version once spl-associated-token-account uses borsh 0.10.
borsh0-9 = { package = "borsh", version = "0.9.3" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@joncinque joncinque merged commit de38b05 into solana-labs:master Sep 29, 2023
@joncinque joncinque deleted the tk22bump branch September 29, 2023 17:12
mergify bot pushed a commit that referenced this pull request Sep 29, 2023
* token: Update to 4.0.0

* token-2022: Bump and support new account and instruction types

* Update token-2022 in fetch_spl / program-test

* Fixup downstream uses

* Mint and destination were flipped in 0.9.0

* Don't use `convert_pubkey`

* Bump spl dependencies to versions which avoid recompilations

(cherry picked from commit de38b05)

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	account-decoder/Cargo.toml
#	programs/sbf/Cargo.lock
joncinque added a commit that referenced this pull request Oct 2, 2023
* token: Update to 4.0.0

* token-2022: Bump and support new account and instruction types

* Update token-2022 in fetch_spl / program-test

* Fixup downstream uses

* Mint and destination were flipped in 0.9.0

* Don't use `convert_pubkey`

* Bump spl dependencies to versions which avoid recompilations

(cherry picked from commit de38b05)

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	account-decoder/Cargo.toml
#	programs/sbf/Cargo.lock
joncinque added a commit that referenced this pull request Oct 2, 2023
* token: Update to 4.0.0

* token-2022: Bump and support new account and instruction types

* Update token-2022 in fetch_spl / program-test

* Fixup downstream uses

* Mint and destination were flipped in 0.9.0

* Don't use `convert_pubkey`

* Bump spl dependencies to versions which avoid recompilations

(cherry picked from commit de38b05)

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	account-decoder/Cargo.toml
#	programs/sbf/Cargo.lock
mergify bot added a commit that referenced this pull request Oct 3, 2023
* spl: Bump token-2022 and friends (#33453)

* token: Update to 4.0.0

* token-2022: Bump and support new account and instruction types

* Update token-2022 in fetch_spl / program-test

* Fixup downstream uses

* Mint and destination were flipped in 0.9.0

* Don't use `convert_pubkey`

* Bump spl dependencies to versions which avoid recompilations

(cherry picked from commit de38b05)

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	account-decoder/Cargo.toml
#	programs/sbf/Cargo.lock

* Fix toml conflicts

* Update lockfiles

* Bump proc-macro2 down to 1.0.60, lowest compatible version

* Bump down hashbrown used by borsh

---------

Co-authored-by: Jon Cinque <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants