- More accurate quote values - ported the swap logic from contract & add comprehensive unit-test suite to confirm quote values are identical to contract results
- More info available in quote - endTickIndex, sqrtPrice, feeAmount etc...
- Additional swapQuoteFromOutputToken to allow users to ask for a quote (and swap input parameters) based on the desired receive amount
- Bug fix on TickArray calculation that led to the annoying 0x1787 (InvalidTickArraySequence) error
- Addresses all errors in the old-swap quote where it fails to traverse tick-arrays in many cases
- Bug fix on WhirlpoolClient.swap where it incorrectly uses the quote.estimated values rather than the user defined tokenAmount value
- Change parameter ordering for resolveATA as it is the most important parameter
- Default resolveATA to true. Power users who do not want to ping RPC constantly can manually turn it off
- Fix up some comments
- Method will auto-check which tick-array requires initialization
- Will generate a list of initTickArray Ix for a transaction
- Modify test to send initTickArray + openPosition together
- Refactor swapQuoteByInputToken as a convenience method to help users fetch the necessary information to perform the swap quote
- Add swapQuoteWithParams for the more advanced users who have previously fetched the data they need to perform the swap quote
- Add support for auto-resolving ATA accounts prior for decrease liquidity ix
- Removed sourceWallet support for increase_liquidity ix
- Add separate funder/payer support for Whirlpool/Position increase/decrease liquidity functions
- Add tests to verify functions work as intended
- Fix incorrect import for ZERO in decrease_liquidity_quote
- Fix incorrect toTx import in position_management.test.ts
- Confirmed that there are no other /sdk dependencies here
- License change to Apache 2.0
- Typedoc generation & path modification
- Add Typedoc & missing documentation on public methods
- Update package name to "@orca-so/whirlpools-sdk" and "0.1.0"
- Add Typedoc integration to SDK
- Reorganize and finalize SDK structure
- Add documentation and categorize SDK public items (not all)
- Port quotes over from orca-sdk and provide sync options
- Port all utils over from orca-sdk and reorganize them into cleaner buckets
- Update test structure for integration tests and SDK tests
- Update README.md
- Add WhirlpoolClient to help construct the more complicated transactions
- Remove WhirlpoolIx Instruction's dependency on Transaction