All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Renamed package from
@project-serum/swap
to@project-serum/spl-token-swap
.
CurveType
enum - enables support for custom curves. Currently supported:- ConstantProduct = 0
- ConstantPrice = 1
- Stable = 2
- ConstantProductWithOffset = 3
token_b_offset
andtoken_b_price
inPoolConfig
withdrawExactOneInstruction
- support for single-side withdrawalsdepositExactOneInstruction
- support for single-side deposits- Used ephemeral authority for all transfers
- Moved fees fields into a nested property
fees
insidePoolConfig
initializePool
requires now programId to support multiple contractsmakeInitializePoolTransaction
requires now programId to support multiple contractsswapInstruction
added transferAuthoritydepositInstruction
added transferAuthoritywithdrawInstruction
added transferAuthoritycreateInitSwapInstruction
uses PoolConfig object instead of individual fields