Skip to content

SPL Token - v3.4.0

Compare
Choose a tag to compare
@joncinque joncinque released this 03 Aug 21:56
· 3268 commits to master since this release
4fadd55

Summary of Changes

New instructions for forward compatibility with Token-2022:

  • InitializeImmutableOwner: no-op instruction
  • UiAmountToAmount / AmountToUiAmount: converts between u64 and string amounts
  • GetAccountDataSize: returns the required size for an account, always 165

Changes:

  • Closing accounts results in a full reinitialization of the account, reassigning it back to the system program and reallocating its size to 0

Release

The program was released under feature flag Ftok4njE8b7tDffYkC5bAbCaQv5sL6jispYrprzatUwN, enable since epoch 334 on mainnet-beta.

Verification

Program verification uses the Anchor command-line interface, which can be installed by following the documentation.

The verification process builds the program in an Ubuntu container which contains the Solana CLI tools and its dependencies. More information can be found on the verifiable builds documentation.

In order to verify the program, please check out this tag, then run:

$ cd token/program
$ anchor verify --solana-version 1.10.33 --bootstrap debian --docker-image ubuntu:20.04 --provider.cluster mainnet TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

This will take a couple of minutes, and then finally output:

Build success
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA is verified.

Note: the actual crate versions are still at version 3.3.0 in order to preserve verifiability. The actual version bump and release was done from #3427