Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

token-2022: Make program and crate deployable #2985

Merged
merged 5 commits into from
Mar 10, 2022

Conversation

joncinque
Copy link
Contributor

@joncinque joncinque commented Mar 4, 2022

Problem

People want to start using mint close authorities afforded by token-2022, but the program hasn't been deployed, and cannot be released until reallocate, sibling instruction, and zk ops are available.

Solution (?)

Featurize the processor bits that rely on future syscalls. The rest of the crate is usable, and the program build optimizes away unused processor code.

Also, since there was a dependency on new parts of spl-token, copy those bits over.

This PR won't need to be reverted, and instead we'll just remove features as syscalls are released on mainnet.

@joncinque joncinque requested a review from CriesofCarrots March 4, 2022 21:11
@joncinque joncinque force-pushed the tk-22-release branch 2 times, most recently from ba391bb to 93b6576 Compare March 9, 2022 15:48
CriesofCarrots
CriesofCarrots previously approved these changes Mar 9, 2022
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.

The feature approach turned out nice!
One nit

@mergify mergify bot dismissed CriesofCarrots’s stale review March 9, 2022 21:12

Pull request has been modified.

@joncinque joncinque merged commit 29479fc into solana-labs:master Mar 10, 2022
@joncinque joncinque deleted the tk-22-release branch March 10, 2022 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants