* Bump common-sdk to 0.5.2
* Lockfile
* Version bump
---------
Co-authored-by: Michael Hwang <tmoc@tmoc-mba.local>
Co-authored-by: Wilhelm Thieme <wjthieme@gmail.com>
- Deprecated the old increaseLiquidityQuoteByInputToken quote function & added a new increaseLiquidityQuoteByInputTokenUsingPriceSlippage to calculate tokenMax based on price movement
- Adding increaseLiquidityQuoteByLiquidity quote function to generate a quote by a set liquidity value
- Add back the old listPoolsWithParams method that was missed in the previous refactor
- Add populatePools method to the fetcher to allow users to populate the cache with getAllWhirlpoolAccounts
- Add `rimraf` to build to get rid of dist prior to publishing
- Remove cyclical dependency between impl & index file for fetcher
---------
Co-authored-by: yugure <109891005+yugure-orca@users.noreply.github.com>
- Replace AccountFetcher with WhirlpoolAccountFetcher.
- Modify fetcher references to an interface
- Update PriceModuleUtils to only take in fetcher instead of ctx
- bump common-sdk to 0.3.0-beta (spl-token upgrade)
- update js target to ES2020 to use bigInt literals
- replace all deriveATA to getAssociatedTokenAddressSync
- replace all spl-token instruction builders previously under the Token namespace
- Replace all u64 with BN
- Update parser to use the EntityParser stack (TokenAccount & Mint parsers) from common-sdk. Update - - - parser method (breaking) to include address
- Replace old Token types AccountInfo & MintInfo with Account & Mint
- Remove duplicated account-request util methods. Use the ones in common-sdk
- Remove duplicated util methods createATAIx, getAssociatedTokenAddressSync, createWSOLAccountInstructions
- swap on routes with up to 2-hops
- swap on routes that is split into multiple smaller routes
- route selection
- Support VersionedTransaction & lookup tables
- Add lookupTableFetcher into WhirlpoolContext
- Update SDK web3, anchor 0.27 deps to support VersionedTransactions
- Faster test-suite execution with faster ticks_per_slot for validator.
- Test-suite now runs the test-cases with metaplex out of the box
* Adding function to fetch account sizes and using that instead of static export
* Adding a test for getAccountSize
* Updating test to explicitly check account sizes. Also adding reserved bytes calculations
## Anchor v0.26.0 upgrade (rebased)
Special thanks @dovahcrow !
* anchor 0.26 solana 1.14.12
use mpl-token-metadata 1.7 because rust 1.60 does not compile 1.8
* initialize_pool: ignore passed bump and use one anchor derived
- initialize_pool.test: update error codes, add a test case for ignoring bump
* update expected error messages
* add CHECK comments on UncheckedAccounts
* use create_metadata_accounts_v3 (v2 have been deprecated)
* update unit test cases (cargo test)
## Bundled Positions
* import bundled positions
* upgrade to Anchor v0.26.0 (position bundles related codes)
- ProgramResult to Result<()>
- add /// CHECK comments
- remove space attribute on Mint account
- change create_metadata_accounts_v2 to v3
- update testcases
- Change in error code detected first
- Change in account closing method
https://github.com/coral-xyz/anchor/pull/2169
* cargo fmt
* update seed of BundledPosition
* change temporary mint_authority to position_bundle
* bump to v0.2.0
doc fields are added on IDL
* fix: accidental failure test cases
Fixed test cases that did not take into account rewards accruing up to just before the close.
This test case is not related to bundled positions.
The test case happened to fail, so I fixed them to make them all successful.
---------
Co-authored-by: Weiyuan Wu <weiyuan@crows.land>
- Add PoolGraph API to allow trade route path finding with max hop of 2
- Add tests to verify behavior
- Update docs for PoolGraph API
- bump common-sdk to v0.1.12
Provide a shared module to provide the source of truth of token prices based off of Whirlpool account data.
Add additional liquidity criteria to filter out tokens with outlier prices
Co-authored-by: Otto Cheung <otto@orca.so>
* Make collect all completely parallel
All TransactionBuilders generated by collectAllForPositionAddressesTxns can now be executed in parallel.
Since the ATA is created with CreateIdempotent when necessary, the first TransactionBuilder no longer needs to be executed first.
Added a test case that calls collectAllForPositionAddressesTxns.
``anchor test`` passed.