Skip to content

Releases: solana-labs/solana-program-library

SPL Token Swap - v2.0.0

01 Mar 22:29
b264915
Compare
Choose a tag to compare

Changes

  • Add multiple curve possibilities on top of the traditional constant product / Uniswap curve
    • constant price: price fixed at pool creation
    • constant product with offset: adds a faked amount of liquidity on one side of the pool, useful for new coin offerings
  • Add ability to deposit and withdraw a single token type, instead of both at once
  • Improve calculations

Build

The token swap program contains hard-coded constraints on fees and fee account owners. For this build, available at program id SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8 on devnet, testnet, and mainnet-beta, the fee account for any pool must be owned by HfoTxFR1Tm6kGmWgYWD6J7YHVy1UwqSULUGVLXkJqaKN.

Run the build command from token-swap/program:

SWAP_PROGRAM_OWNER_FEE_ADDRESS=HfoTxFR1Tm6kGmWgYWD6J7YHVy1UwqSULUGVLXkJqaKN cargo build-bpf --features=production

SPL Memo v3.0.0

29 Jan 19:57
190e664
Compare
Choose a tag to compare

In addition to validating a string of UTF-8 encoded characters, the Memo program now:

  • verifies that any accounts provided are signers of the transaction
  • logs the memo, as well as any verified signer addresses, to the transaction log, so that anyone can easily observe memos and know they were approved by zero or more addresses by inspecting the transaction log from a trusted provider.

SPL Feature Proposal v1.0.0

19 Nov 03:22
Compare
Choose a tag to compare

The SPL Feature Proposal Program provides a workflow for activation of Solana network features through community vote based on validator stake weight.

SPL Associated Token Account v1.0.1

05 Nov 21:54
Compare
Choose a tag to compare

The SPL Associated Token Account program defines the convention and the provides the mechanism for mapping a user wallet address to its associated token accounts

SPL Token v2.0.6

10 Nov 06:13
8131bec
Compare
Choose a tag to compare

Features:

  • Multisig: require a 1x1 pairing of M signers to M multisig keys
  • Allows various accounts to be borrowed multiple times in token instructions, which generally enables Account and Mint accounts to serve as their own authority
  • Standardized error-case ordering in instruction processing

SPL Token v2.0.3

29 Aug 08:45
cbba9b3
Compare
Choose a tag to compare

Features:

  • A Mint requires a mint authority on initialization, and tokens must be minted in separate instructions. Once unset, the mint authority can never be reset, fixing the supply
  • Token accounts can be frozen and thawed, if a freeze authority is set in the Mint on initialization. Once unset, the freeze authority can never be reset.
  • Token, Mint, and Multisig accounts are required to be rent-exempt, to ensure consistency in authorities and a valid supply (now reported in Mint)
  • Non-native Accounts can now be closed by the account's close authority, if the token balance is zero
  • SetAuthority instruction now supports easy reconfiguration of Mint or Token authorities

SPL Token v1.0.0

22 Jul 20:59
b24bfe7
Compare
Choose a tag to compare

An ERC20-like Token program on the Solana blockchain

SPL Memo v1.0.0

18 Jun 17:15
b581366
Compare
Choose a tag to compare

A simple program that accepts a string of encoded characters and verifies that it parses.
Currently handles UTF-8.