@kamino-finance/kliquidity-sdk 6.2.2 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Kamino.d.ts +1 -0
- package/dist/Kamino.d.ts.map +1 -0
- package/dist/Kamino.js +4749 -4795
- package/dist/Kamino.js.map +1 -1
- package/dist/constants/DefaultStrategyConfig.d.ts +1 -0
- package/dist/constants/DefaultStrategyConfig.d.ts.map +1 -0
- package/dist/constants/DefaultStrategyConfig.js +2 -2
- package/dist/constants/DefaultStrategyConfig.js.map +1 -1
- package/dist/constants/deposit_method.d.ts +1 -0
- package/dist/constants/deposit_method.d.ts.map +1 -0
- package/dist/constants/deposit_method.js.map +1 -1
- package/dist/constants/frontend.d.ts +1 -0
- package/dist/constants/frontend.d.ts.map +1 -0
- package/dist/constants/frontend.js.map +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/metadata.d.ts +1 -0
- package/dist/constants/metadata.d.ts.map +1 -0
- package/dist/constants/metadata.js.map +1 -1
- package/dist/constants/numericalValues.d.ts +1 -0
- package/dist/constants/numericalValues.d.ts.map +1 -0
- package/dist/constants/numericalValues.js.map +1 -1
- package/dist/constants/pubkeys.d.ts +1 -0
- package/dist/constants/pubkeys.d.ts.map +1 -0
- package/dist/constants/pubkeys.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -1
- package/dist/kamino-client/accounts/CollateralInfos.d.ts +1 -0
- package/dist/kamino-client/accounts/CollateralInfos.d.ts.map +1 -0
- package/dist/kamino-client/accounts/CollateralInfos.js +21 -33
- package/dist/kamino-client/accounts/CollateralInfos.js.map +1 -1
- package/dist/kamino-client/accounts/GlobalConfig.d.ts +1 -0
- package/dist/kamino-client/accounts/GlobalConfig.d.ts.map +1 -0
- package/dist/kamino-client/accounts/GlobalConfig.js +66 -55
- package/dist/kamino-client/accounts/GlobalConfig.js.map +1 -1
- package/dist/kamino-client/accounts/PersonalPositionState.d.ts +1 -0
- package/dist/kamino-client/accounts/PersonalPositionState.d.ts.map +1 -0
- package/dist/kamino-client/accounts/PersonalPositionState.js +53 -44
- package/dist/kamino-client/accounts/PersonalPositionState.js.map +1 -1
- package/dist/kamino-client/accounts/PoolState.d.ts +1 -0
- package/dist/kamino-client/accounts/PoolState.d.ts.map +1 -0
- package/dist/kamino-client/accounts/PoolState.js +121 -69
- package/dist/kamino-client/accounts/PoolState.js.map +1 -1
- package/dist/kamino-client/accounts/Position.d.ts +1 -0
- package/dist/kamino-client/accounts/Position.d.ts.map +1 -0
- package/dist/kamino-client/accounts/Position.js +39 -42
- package/dist/kamino-client/accounts/Position.js.map +1 -1
- package/dist/kamino-client/accounts/ProtocolPositionState.d.ts +1 -0
- package/dist/kamino-client/accounts/ProtocolPositionState.d.ts.map +1 -0
- package/dist/kamino-client/accounts/ProtocolPositionState.js +50 -42
- package/dist/kamino-client/accounts/ProtocolPositionState.js.map +1 -1
- package/dist/kamino-client/accounts/ScopeChainAccount.d.ts +1 -0
- package/dist/kamino-client/accounts/ScopeChainAccount.d.ts.map +1 -0
- package/dist/kamino-client/accounts/ScopeChainAccount.js +20 -32
- package/dist/kamino-client/accounts/ScopeChainAccount.js.map +1 -1
- package/dist/kamino-client/accounts/TermsSignature.d.ts +1 -0
- package/dist/kamino-client/accounts/TermsSignature.d.ts.map +1 -0
- package/dist/kamino-client/accounts/TermsSignature.js +20 -32
- package/dist/kamino-client/accounts/TermsSignature.js.map +1 -1
- package/dist/kamino-client/accounts/Whirlpool.d.ts +1 -0
- package/dist/kamino-client/accounts/Whirlpool.d.ts.map +1 -0
- package/dist/kamino-client/accounts/Whirlpool.js +57 -51
- package/dist/kamino-client/accounts/Whirlpool.js.map +1 -1
- package/dist/kamino-client/accounts/WhirlpoolStrategy.d.ts +1 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.d.ts.map +1 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js +230 -138
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js.map +1 -1
- package/dist/kamino-client/accounts/index.d.ts +1 -0
- package/dist/kamino-client/accounts/index.d.ts.map +1 -0
- package/dist/kamino-client/accounts/index.js.map +1 -1
- package/dist/kamino-client/errors/anchor.d.ts +1 -0
- package/dist/kamino-client/errors/anchor.d.ts.map +1 -0
- package/dist/kamino-client/errors/anchor.js +270 -216
- package/dist/kamino-client/errors/anchor.js.map +1 -1
- package/dist/kamino-client/errors/custom.d.ts +1 -0
- package/dist/kamino-client/errors/custom.d.ts.map +1 -0
- package/dist/kamino-client/errors/custom.js +785 -628
- package/dist/kamino-client/errors/custom.js.map +1 -1
- package/dist/kamino-client/errors/index.d.ts +1 -0
- package/dist/kamino-client/errors/index.d.ts.map +1 -0
- package/dist/kamino-client/errors/index.js.map +1 -1
- package/dist/kamino-client/instructions/addKaminoRewards.d.ts +1 -0
- package/dist/kamino-client/instructions/addKaminoRewards.d.ts.map +1 -0
- package/dist/kamino-client/instructions/addKaminoRewards.js.map +1 -1
- package/dist/kamino-client/instructions/changePool.d.ts +1 -0
- package/dist/kamino-client/instructions/changePool.d.ts.map +1 -0
- package/dist/kamino-client/instructions/changePool.js.map +1 -1
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.d.ts +1 -0
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.d.ts.map +1 -0
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.js.map +1 -1
- package/dist/kamino-client/instructions/closeProgramAccount.d.ts +1 -0
- package/dist/kamino-client/instructions/closeProgramAccount.d.ts.map +1 -0
- package/dist/kamino-client/instructions/closeProgramAccount.js.map +1 -1
- package/dist/kamino-client/instructions/closeStrategy.d.ts +1 -0
- package/dist/kamino-client/instructions/closeStrategy.d.ts.map +1 -0
- package/dist/kamino-client/instructions/closeStrategy.js.map +1 -1
- package/dist/kamino-client/instructions/collectFeesAndRewards.d.ts +1 -0
- package/dist/kamino-client/instructions/collectFeesAndRewards.d.ts.map +1 -0
- package/dist/kamino-client/instructions/collectFeesAndRewards.js.map +1 -1
- package/dist/kamino-client/instructions/deposit.d.ts +1 -0
- package/dist/kamino-client/instructions/deposit.d.ts.map +1 -0
- package/dist/kamino-client/instructions/deposit.js.map +1 -1
- package/dist/kamino-client/instructions/depositAndInvest.d.ts +1 -0
- package/dist/kamino-client/instructions/depositAndInvest.d.ts.map +1 -0
- package/dist/kamino-client/instructions/depositAndInvest.js.map +1 -1
- package/dist/kamino-client/instructions/emergencySwap.d.ts +1 -0
- package/dist/kamino-client/instructions/emergencySwap.d.ts.map +1 -0
- package/dist/kamino-client/instructions/emergencySwap.js.map +1 -1
- package/dist/kamino-client/instructions/executiveWithdraw.d.ts +1 -0
- package/dist/kamino-client/instructions/executiveWithdraw.d.ts.map +1 -0
- package/dist/kamino-client/instructions/executiveWithdraw.js.map +1 -1
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.d.ts +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.d.ts.map +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.js.map +1 -1
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.d.ts +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.d.ts.map +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.js.map +1 -1
- package/dist/kamino-client/instructions/index.d.ts +1 -0
- package/dist/kamino-client/instructions/index.d.ts.map +1 -0
- package/dist/kamino-client/instructions/index.js.map +1 -1
- package/dist/kamino-client/instructions/initializeCollateralInfo.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeCollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeCollateralInfo.js.map +1 -1
- package/dist/kamino-client/instructions/initializeGlobalConfig.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeGlobalConfig.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeGlobalConfig.js.map +1 -1
- package/dist/kamino-client/instructions/initializeKaminoReward.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeKaminoReward.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeKaminoReward.js.map +1 -1
- package/dist/kamino-client/instructions/initializeSharesMetadata.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeSharesMetadata.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeSharesMetadata.js.map +1 -1
- package/dist/kamino-client/instructions/initializeStrategy.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeStrategy.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeStrategy.js.map +1 -1
- package/dist/kamino-client/instructions/insertCollateralInfo.d.ts +1 -0
- package/dist/kamino-client/instructions/insertCollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/instructions/insertCollateralInfo.js.map +1 -1
- package/dist/kamino-client/instructions/invest.d.ts +1 -0
- package/dist/kamino-client/instructions/invest.d.ts.map +1 -0
- package/dist/kamino-client/instructions/invest.js.map +1 -1
- package/dist/kamino-client/instructions/openLiquidityPosition.d.ts +1 -0
- package/dist/kamino-client/instructions/openLiquidityPosition.d.ts.map +1 -0
- package/dist/kamino-client/instructions/openLiquidityPosition.js.map +1 -1
- package/dist/kamino-client/instructions/orcaSwap.d.ts +1 -0
- package/dist/kamino-client/instructions/orcaSwap.d.ts.map +1 -0
- package/dist/kamino-client/instructions/orcaSwap.js.map +1 -1
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.d.ts +1 -0
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.d.ts.map +1 -0
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.js.map +1 -1
- package/dist/kamino-client/instructions/signTerms.d.ts +1 -0
- package/dist/kamino-client/instructions/signTerms.d.ts.map +1 -0
- package/dist/kamino-client/instructions/signTerms.js.map +1 -1
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.d.ts +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.d.ts.map +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.js.map +1 -1
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.d.ts +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.d.ts.map +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.js.map +1 -1
- package/dist/kamino-client/instructions/swapRewards.d.ts +1 -0
- package/dist/kamino-client/instructions/swapRewards.d.ts.map +1 -0
- package/dist/kamino-client/instructions/swapRewards.js.map +1 -1
- package/dist/kamino-client/instructions/swapUnevenVaults.d.ts +1 -0
- package/dist/kamino-client/instructions/swapUnevenVaults.d.ts.map +1 -0
- package/dist/kamino-client/instructions/swapUnevenVaults.js.map +1 -1
- package/dist/kamino-client/instructions/updateCollateralInfo.d.ts +1 -0
- package/dist/kamino-client/instructions/updateCollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateCollateralInfo.js.map +1 -1
- package/dist/kamino-client/instructions/updateGlobalConfig.d.ts +1 -0
- package/dist/kamino-client/instructions/updateGlobalConfig.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateGlobalConfig.js.map +1 -1
- package/dist/kamino-client/instructions/updateRewardMapping.d.ts +1 -0
- package/dist/kamino-client/instructions/updateRewardMapping.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateRewardMapping.js.map +1 -1
- package/dist/kamino-client/instructions/updateSharesMetadata.d.ts +1 -0
- package/dist/kamino-client/instructions/updateSharesMetadata.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateSharesMetadata.js.map +1 -1
- package/dist/kamino-client/instructions/updateStrategyAdmin.d.ts +1 -0
- package/dist/kamino-client/instructions/updateStrategyAdmin.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateStrategyAdmin.js.map +1 -1
- package/dist/kamino-client/instructions/updateStrategyConfig.d.ts +1 -0
- package/dist/kamino-client/instructions/updateStrategyConfig.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateStrategyConfig.js.map +1 -1
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.d.ts +1 -0
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.js.map +1 -1
- package/dist/kamino-client/instructions/withdraw.d.ts +1 -0
- package/dist/kamino-client/instructions/withdraw.d.ts.map +1 -0
- package/dist/kamino-client/instructions/withdraw.js.map +1 -1
- package/dist/kamino-client/instructions/withdrawFromTopup.d.ts +1 -0
- package/dist/kamino-client/instructions/withdrawFromTopup.d.ts.map +1 -0
- package/dist/kamino-client/instructions/withdrawFromTopup.js.map +1 -1
- package/dist/kamino-client/instructions/withdrawFromTreasury.d.ts +1 -0
- package/dist/kamino-client/instructions/withdrawFromTreasury.d.ts.map +1 -0
- package/dist/kamino-client/instructions/withdrawFromTreasury.js.map +1 -1
- package/dist/kamino-client/programId.d.ts +1 -0
- package/dist/kamino-client/programId.d.ts.map +1 -0
- package/dist/kamino-client/programId.js.map +1 -1
- package/dist/kamino-client/types/BalanceStatus.d.ts +1 -0
- package/dist/kamino-client/types/BalanceStatus.d.ts.map +1 -0
- package/dist/kamino-client/types/BalanceStatus.js +8 -12
- package/dist/kamino-client/types/BalanceStatus.js.map +1 -1
- package/dist/kamino-client/types/BinAddLiquidityStrategy.d.ts +1 -0
- package/dist/kamino-client/types/BinAddLiquidityStrategy.d.ts.map +1 -0
- package/dist/kamino-client/types/BinAddLiquidityStrategy.js +10 -8
- package/dist/kamino-client/types/BinAddLiquidityStrategy.js.map +1 -1
- package/dist/kamino-client/types/CollateralInfo.d.ts +1 -0
- package/dist/kamino-client/types/CollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/CollateralInfo.js +15 -0
- package/dist/kamino-client/types/CollateralInfo.js.map +1 -1
- package/dist/kamino-client/types/CollateralInfoParams.d.ts +1 -0
- package/dist/kamino-client/types/CollateralInfoParams.d.ts.map +1 -0
- package/dist/kamino-client/types/CollateralInfoParams.js +13 -0
- package/dist/kamino-client/types/CollateralInfoParams.js.map +1 -1
- package/dist/kamino-client/types/CollateralTestToken.d.ts +1 -0
- package/dist/kamino-client/types/CollateralTestToken.d.ts.map +1 -0
- package/dist/kamino-client/types/CollateralTestToken.js +112 -168
- package/dist/kamino-client/types/CollateralTestToken.js.map +1 -1
- package/dist/kamino-client/types/CreationStatus.d.ts +1 -0
- package/dist/kamino-client/types/CreationStatus.d.ts.map +1 -0
- package/dist/kamino-client/types/CreationStatus.js +20 -30
- package/dist/kamino-client/types/CreationStatus.js.map +1 -1
- package/dist/kamino-client/types/DEX.d.ts +1 -0
- package/dist/kamino-client/types/DEX.d.ts.map +1 -0
- package/dist/kamino-client/types/DEX.js +12 -18
- package/dist/kamino-client/types/DEX.js.map +1 -1
- package/dist/kamino-client/types/DexSpecificPrice.d.ts +1 -0
- package/dist/kamino-client/types/DexSpecificPrice.d.ts.map +1 -0
- package/dist/kamino-client/types/DexSpecificPrice.js +10 -8
- package/dist/kamino-client/types/DexSpecificPrice.js.map +1 -1
- package/dist/kamino-client/types/DriftDirection.d.ts +1 -0
- package/dist/kamino-client/types/DriftDirection.d.ts.map +1 -0
- package/dist/kamino-client/types/DriftDirection.js +8 -12
- package/dist/kamino-client/types/DriftDirection.js.map +1 -1
- package/dist/kamino-client/types/ExecutiveWithdrawAction.d.ts +1 -0
- package/dist/kamino-client/types/ExecutiveWithdrawAction.d.ts.map +1 -0
- package/dist/kamino-client/types/ExecutiveWithdrawAction.js +12 -18
- package/dist/kamino-client/types/ExecutiveWithdrawAction.js.map +1 -1
- package/dist/kamino-client/types/ExpanderStep.d.ts +1 -0
- package/dist/kamino-client/types/ExpanderStep.d.ts.map +1 -0
- package/dist/kamino-client/types/ExpanderStep.js +9 -10
- package/dist/kamino-client/types/ExpanderStep.js.map +1 -1
- package/dist/kamino-client/types/GlobalConfigOption.d.ts +1 -0
- package/dist/kamino-client/types/GlobalConfigOption.d.ts.map +1 -0
- package/dist/kamino-client/types/GlobalConfigOption.js +92 -138
- package/dist/kamino-client/types/GlobalConfigOption.js.map +1 -1
- package/dist/kamino-client/types/KaminoRewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/KaminoRewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/KaminoRewardInfo.js +9 -0
- package/dist/kamino-client/types/KaminoRewardInfo.js.map +1 -1
- package/dist/kamino-client/types/LiquidityCalculationMode.d.ts +1 -0
- package/dist/kamino-client/types/LiquidityCalculationMode.d.ts.map +1 -0
- package/dist/kamino-client/types/LiquidityCalculationMode.js +8 -12
- package/dist/kamino-client/types/LiquidityCalculationMode.js.map +1 -1
- package/dist/kamino-client/types/MintingMethod.d.ts +1 -0
- package/dist/kamino-client/types/MintingMethod.d.ts.map +1 -0
- package/dist/kamino-client/types/MintingMethod.js +8 -12
- package/dist/kamino-client/types/MintingMethod.js.map +1 -1
- package/dist/kamino-client/types/PeriodicRebalanceState.d.ts +1 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.d.ts.map +1 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.js +1 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.js.map +1 -1
- package/dist/kamino-client/types/PositionRewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/PositionRewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/PositionRewardInfo.js +2 -0
- package/dist/kamino-client/types/PositionRewardInfo.js.map +1 -1
- package/dist/kamino-client/types/Price.d.ts +1 -0
- package/dist/kamino-client/types/Price.d.ts.map +1 -0
- package/dist/kamino-client/types/Price.js +2 -0
- package/dist/kamino-client/types/Price.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAction.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAction.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAction.js +14 -14
- package/dist/kamino-client/types/RebalanceAction.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftParams.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.js +7 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftState.js +9 -2
- package/dist/kamino-client/types/RebalanceAutodriftState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftStep.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftStep.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftStep.js +8 -12
- package/dist/kamino-client/types/RebalanceAutodriftStep.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftWindow.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftWindow.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftWindow.js +7 -2
- package/dist/kamino-client/types/RebalanceAutodriftWindow.js.map +1 -1
- package/dist/kamino-client/types/RebalanceDriftParams.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceDriftParams.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftParams.js +5 -0
- package/dist/kamino-client/types/RebalanceDriftParams.js.map +1 -1
- package/dist/kamino-client/types/RebalanceDriftState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceDriftState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftState.js +3 -0
- package/dist/kamino-client/types/RebalanceDriftState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceDriftStep.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceDriftStep.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftStep.js +8 -12
- package/dist/kamino-client/types/RebalanceDriftStep.js.map +1 -1
- package/dist/kamino-client/types/RebalanceEffects.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceEffects.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceEffects.js +9 -10
- package/dist/kamino-client/types/RebalanceEffects.js.map +1 -1
- package/dist/kamino-client/types/RebalanceExpanderState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceExpanderState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceExpanderState.js +2 -0
- package/dist/kamino-client/types/RebalanceExpanderState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceManualState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceManualState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceManualState.js.map +1 -1
- package/dist/kamino-client/types/RebalancePricePercentageState.d.ts +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.js +2 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.js.map +1 -1
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.d.ts +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.js +2 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceRaw.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceRaw.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceRaw.js +3 -0
- package/dist/kamino-client/types/RebalanceRaw.js.map +1 -1
- package/dist/kamino-client/types/RebalanceTakeProfitState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.js +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceTakeProfitStep.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitStep.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitStep.js +12 -18
- package/dist/kamino-client/types/RebalanceTakeProfitStep.js.map +1 -1
- package/dist/kamino-client/types/RebalanceTakeProfitToken.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitToken.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitToken.js +8 -12
- package/dist/kamino-client/types/RebalanceTakeProfitToken.js.map +1 -1
- package/dist/kamino-client/types/RebalanceType.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceType.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceType.js +32 -48
- package/dist/kamino-client/types/RebalanceType.js.map +1 -1
- package/dist/kamino-client/types/ReferencePriceType.d.ts +1 -0
- package/dist/kamino-client/types/ReferencePriceType.d.ts.map +1 -0
- package/dist/kamino-client/types/ReferencePriceType.js +8 -12
- package/dist/kamino-client/types/ReferencePriceType.js.map +1 -1
- package/dist/kamino-client/types/RemoveLiquidityMode.d.ts +1 -0
- package/dist/kamino-client/types/RemoveLiquidityMode.d.ts.map +1 -0
- package/dist/kamino-client/types/RemoveLiquidityMode.js +14 -14
- package/dist/kamino-client/types/RemoveLiquidityMode.js.map +1 -1
- package/dist/kamino-client/types/RewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/RewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/RewardInfo.js +25 -0
- package/dist/kamino-client/types/RewardInfo.js.map +1 -1
- package/dist/kamino-client/types/ScopeConversionChain.d.ts +1 -0
- package/dist/kamino-client/types/ScopeConversionChain.d.ts.map +1 -0
- package/dist/kamino-client/types/ScopeConversionChain.js.map +1 -1
- package/dist/kamino-client/types/ScopePriceIdTest.d.ts +1 -0
- package/dist/kamino-client/types/ScopePriceIdTest.d.ts.map +1 -0
- package/dist/kamino-client/types/ScopePriceIdTest.js +280 -420
- package/dist/kamino-client/types/ScopePriceIdTest.js.map +1 -1
- package/dist/kamino-client/types/SimulationPrice.d.ts +1 -0
- package/dist/kamino-client/types/SimulationPrice.d.ts.map +1 -0
- package/dist/kamino-client/types/SimulationPrice.js +14 -14
- package/dist/kamino-client/types/SimulationPrice.js.map +1 -1
- package/dist/kamino-client/types/StakingRateSource.d.ts +1 -0
- package/dist/kamino-client/types/StakingRateSource.d.ts.map +1 -0
- package/dist/kamino-client/types/StakingRateSource.js +8 -12
- package/dist/kamino-client/types/StakingRateSource.js.map +1 -1
- package/dist/kamino-client/types/StrategyConfigOption.d.ts +1 -0
- package/dist/kamino-client/types/StrategyConfigOption.d.ts.map +1 -0
- package/dist/kamino-client/types/StrategyConfigOption.js +208 -312
- package/dist/kamino-client/types/StrategyConfigOption.js.map +1 -1
- package/dist/kamino-client/types/StrategyStatus.d.ts +1 -0
- package/dist/kamino-client/types/StrategyStatus.d.ts.map +1 -0
- package/dist/kamino-client/types/StrategyStatus.js +20 -30
- package/dist/kamino-client/types/StrategyStatus.js.map +1 -1
- package/dist/kamino-client/types/StrategyType.d.ts +1 -0
- package/dist/kamino-client/types/StrategyType.d.ts.map +1 -0
- package/dist/kamino-client/types/StrategyType.js +12 -18
- package/dist/kamino-client/types/StrategyType.js.map +1 -1
- package/dist/kamino-client/types/SwapLimit.d.ts +1 -0
- package/dist/kamino-client/types/SwapLimit.d.ts.map +1 -0
- package/dist/kamino-client/types/SwapLimit.js +10 -8
- package/dist/kamino-client/types/SwapLimit.js.map +1 -1
- package/dist/kamino-client/types/UpdateCollateralInfoMode.d.ts +1 -0
- package/dist/kamino-client/types/UpdateCollateralInfoMode.d.ts.map +1 -0
- package/dist/kamino-client/types/UpdateCollateralInfoMode.js +52 -78
- package/dist/kamino-client/types/UpdateCollateralInfoMode.js.map +1 -1
- package/dist/kamino-client/types/WhirlpoolRewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.js +13 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.js.map +1 -1
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.d.ts +1 -0
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.d.ts.map +1 -0
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.js +8 -12
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.js.map +1 -1
- package/dist/kamino-client/types/WithdrawalCaps.d.ts +1 -0
- package/dist/kamino-client/types/WithdrawalCaps.d.ts.map +1 -0
- package/dist/kamino-client/types/WithdrawalCaps.js +4 -0
- package/dist/kamino-client/types/WithdrawalCaps.js.map +1 -1
- package/dist/kamino-client/types/index.d.ts +1 -0
- package/dist/kamino-client/types/index.d.ts.map +1 -0
- package/dist/kamino-client/types/index.js.map +1 -1
- package/dist/meteora_client/accounts/BinArray.d.ts +1 -0
- package/dist/meteora_client/accounts/BinArray.d.ts.map +1 -0
- package/dist/meteora_client/accounts/BinArray.js +30 -37
- package/dist/meteora_client/accounts/BinArray.js.map +1 -1
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.d.ts +1 -0
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.d.ts.map +1 -0
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.js +26 -34
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.js.map +1 -1
- package/dist/meteora_client/accounts/LbPair.d.ts +1 -0
- package/dist/meteora_client/accounts/LbPair.d.ts.map +1 -0
- package/dist/meteora_client/accounts/LbPair.js +106 -65
- package/dist/meteora_client/accounts/LbPair.js.map +1 -1
- package/dist/meteora_client/accounts/Oracle.d.ts +1 -0
- package/dist/meteora_client/accounts/Oracle.d.ts.map +1 -0
- package/dist/meteora_client/accounts/Oracle.js +27 -34
- package/dist/meteora_client/accounts/Oracle.js.map +1 -1
- package/dist/meteora_client/accounts/Position.d.ts +1 -0
- package/dist/meteora_client/accounts/Position.d.ts.map +1 -0
- package/dist/meteora_client/accounts/Position.js +56 -45
- package/dist/meteora_client/accounts/Position.js.map +1 -1
- package/dist/meteora_client/accounts/PositionV2.d.ts +1 -0
- package/dist/meteora_client/accounts/PositionV2.d.ts.map +1 -0
- package/dist/meteora_client/accounts/PositionV2.js +68 -49
- package/dist/meteora_client/accounts/PositionV2.js.map +1 -1
- package/dist/meteora_client/accounts/PresetParameter.d.ts +1 -0
- package/dist/meteora_client/accounts/PresetParameter.d.ts.map +1 -0
- package/dist/meteora_client/accounts/PresetParameter.js +48 -41
- package/dist/meteora_client/accounts/PresetParameter.js.map +1 -1
- package/dist/meteora_client/accounts/index.d.ts +1 -0
- package/dist/meteora_client/accounts/index.d.ts.map +1 -0
- package/dist/meteora_client/accounts/index.js.map +1 -1
- package/dist/meteora_client/errors/anchor.d.ts +1 -0
- package/dist/meteora_client/errors/anchor.d.ts.map +1 -0
- package/dist/meteora_client/errors/anchor.js +270 -216
- package/dist/meteora_client/errors/anchor.js.map +1 -1
- package/dist/meteora_client/errors/custom.d.ts +1 -0
- package/dist/meteora_client/errors/custom.d.ts.map +1 -0
- package/dist/meteora_client/errors/custom.js +295 -236
- package/dist/meteora_client/errors/custom.js.map +1 -1
- package/dist/meteora_client/errors/index.d.ts +1 -0
- package/dist/meteora_client/errors/index.d.ts.map +1 -0
- package/dist/meteora_client/errors/index.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidity.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidity.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidity.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityByStrategy.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategy.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategy.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityByWeight.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityByWeight.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByWeight.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityOneSide.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSide.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSide.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.js.map +1 -1
- package/dist/meteora_client/instructions/claimFee.d.ts +1 -0
- package/dist/meteora_client/instructions/claimFee.d.ts.map +1 -0
- package/dist/meteora_client/instructions/claimFee.js.map +1 -1
- package/dist/meteora_client/instructions/claimReward.d.ts +1 -0
- package/dist/meteora_client/instructions/claimReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/claimReward.js.map +1 -1
- package/dist/meteora_client/instructions/closePosition.d.ts +1 -0
- package/dist/meteora_client/instructions/closePosition.d.ts.map +1 -0
- package/dist/meteora_client/instructions/closePosition.js.map +1 -1
- package/dist/meteora_client/instructions/closePresetParameter.d.ts +1 -0
- package/dist/meteora_client/instructions/closePresetParameter.d.ts.map +1 -0
- package/dist/meteora_client/instructions/closePresetParameter.js.map +1 -1
- package/dist/meteora_client/instructions/fundReward.d.ts +1 -0
- package/dist/meteora_client/instructions/fundReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/fundReward.js.map +1 -1
- package/dist/meteora_client/instructions/goToABin.d.ts +1 -0
- package/dist/meteora_client/instructions/goToABin.d.ts.map +1 -0
- package/dist/meteora_client/instructions/goToABin.js.map +1 -1
- package/dist/meteora_client/instructions/increaseOracleLength.d.ts +1 -0
- package/dist/meteora_client/instructions/increaseOracleLength.d.ts.map +1 -0
- package/dist/meteora_client/instructions/increaseOracleLength.js.map +1 -1
- package/dist/meteora_client/instructions/index.d.ts +1 -0
- package/dist/meteora_client/instructions/index.d.ts.map +1 -0
- package/dist/meteora_client/instructions/index.js.map +1 -1
- package/dist/meteora_client/instructions/initializeBinArray.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeBinArray.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeBinArray.js.map +1 -1
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.js.map +1 -1
- package/dist/meteora_client/instructions/initializeLbPair.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeLbPair.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeLbPair.js.map +1 -1
- package/dist/meteora_client/instructions/initializePermissionLbPair.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePermissionLbPair.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePermissionLbPair.js.map +1 -1
- package/dist/meteora_client/instructions/initializePosition.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePosition.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePosition.js.map +1 -1
- package/dist/meteora_client/instructions/initializePositionByOperator.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePositionByOperator.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePositionByOperator.js.map +1 -1
- package/dist/meteora_client/instructions/initializePositionPda.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePositionPda.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePositionPda.js.map +1 -1
- package/dist/meteora_client/instructions/initializePresetParameter.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePresetParameter.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePresetParameter.js.map +1 -1
- package/dist/meteora_client/instructions/initializeReward.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeReward.js.map +1 -1
- package/dist/meteora_client/instructions/migrateBinArray.d.ts +1 -0
- package/dist/meteora_client/instructions/migrateBinArray.d.ts.map +1 -0
- package/dist/meteora_client/instructions/migrateBinArray.js.map +1 -1
- package/dist/meteora_client/instructions/migratePosition.d.ts +1 -0
- package/dist/meteora_client/instructions/migratePosition.d.ts.map +1 -0
- package/dist/meteora_client/instructions/migratePosition.js.map +1 -1
- package/dist/meteora_client/instructions/removeAllLiquidity.d.ts +1 -0
- package/dist/meteora_client/instructions/removeAllLiquidity.d.ts.map +1 -0
- package/dist/meteora_client/instructions/removeAllLiquidity.js.map +1 -1
- package/dist/meteora_client/instructions/removeLiquidity.d.ts +1 -0
- package/dist/meteora_client/instructions/removeLiquidity.d.ts.map +1 -0
- package/dist/meteora_client/instructions/removeLiquidity.js.map +1 -1
- package/dist/meteora_client/instructions/removeLiquidityByRange.d.ts +1 -0
- package/dist/meteora_client/instructions/removeLiquidityByRange.d.ts.map +1 -0
- package/dist/meteora_client/instructions/removeLiquidityByRange.js.map +1 -1
- package/dist/meteora_client/instructions/setActivationSlot.d.ts +1 -0
- package/dist/meteora_client/instructions/setActivationSlot.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setActivationSlot.js.map +1 -1
- package/dist/meteora_client/instructions/setLockReleaseSlot.d.ts +1 -0
- package/dist/meteora_client/instructions/setLockReleaseSlot.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setLockReleaseSlot.js.map +1 -1
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.d.ts +1 -0
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.js.map +1 -1
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.d.ts +1 -0
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.js.map +1 -1
- package/dist/meteora_client/instructions/swap.d.ts +1 -0
- package/dist/meteora_client/instructions/swap.d.ts.map +1 -0
- package/dist/meteora_client/instructions/swap.js.map +1 -1
- package/dist/meteora_client/instructions/togglePairStatus.d.ts +1 -0
- package/dist/meteora_client/instructions/togglePairStatus.d.ts.map +1 -0
- package/dist/meteora_client/instructions/togglePairStatus.js.map +1 -1
- package/dist/meteora_client/instructions/updateFeeOwner.d.ts +1 -0
- package/dist/meteora_client/instructions/updateFeeOwner.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateFeeOwner.js.map +1 -1
- package/dist/meteora_client/instructions/updateFeeParameters.d.ts +1 -0
- package/dist/meteora_client/instructions/updateFeeParameters.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateFeeParameters.js.map +1 -1
- package/dist/meteora_client/instructions/updateFeesAndRewards.d.ts +1 -0
- package/dist/meteora_client/instructions/updateFeesAndRewards.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateFeesAndRewards.js.map +1 -1
- package/dist/meteora_client/instructions/updatePositionOperator.d.ts +1 -0
- package/dist/meteora_client/instructions/updatePositionOperator.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updatePositionOperator.js.map +1 -1
- package/dist/meteora_client/instructions/updateRewardDuration.d.ts +1 -0
- package/dist/meteora_client/instructions/updateRewardDuration.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateRewardDuration.js.map +1 -1
- package/dist/meteora_client/instructions/updateRewardFunder.d.ts +1 -0
- package/dist/meteora_client/instructions/updateRewardFunder.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateRewardFunder.js.map +1 -1
- package/dist/meteora_client/instructions/updateWhitelistedWallet.d.ts +1 -0
- package/dist/meteora_client/instructions/updateWhitelistedWallet.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateWhitelistedWallet.js.map +1 -1
- package/dist/meteora_client/instructions/withdrawIneligibleReward.d.ts +1 -0
- package/dist/meteora_client/instructions/withdrawIneligibleReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/withdrawIneligibleReward.js.map +1 -1
- package/dist/meteora_client/instructions/withdrawProtocolFee.d.ts +1 -0
- package/dist/meteora_client/instructions/withdrawProtocolFee.d.ts.map +1 -0
- package/dist/meteora_client/instructions/withdrawProtocolFee.js.map +1 -1
- package/dist/meteora_client/programId.d.ts +1 -0
- package/dist/meteora_client/programId.d.ts.map +1 -0
- package/dist/meteora_client/programId.js.map +1 -1
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.d.ts +1 -0
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.js +3 -1
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.js.map +1 -1
- package/dist/meteora_client/types/Bin.d.ts +1 -0
- package/dist/meteora_client/types/Bin.d.ts.map +1 -0
- package/dist/meteora_client/types/Bin.js +18 -0
- package/dist/meteora_client/types/Bin.js.map +1 -1
- package/dist/meteora_client/types/BinLiquidityDistribution.d.ts +1 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.d.ts.map +1 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.js +6 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.js.map +1 -1
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.d.ts +1 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.d.ts.map +1 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.js +4 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.js.map +1 -1
- package/dist/meteora_client/types/BinLiquidityReduction.d.ts +1 -0
- package/dist/meteora_client/types/BinLiquidityReduction.d.ts.map +1 -0
- package/dist/meteora_client/types/BinLiquidityReduction.js +2 -0
- package/dist/meteora_client/types/BinLiquidityReduction.js.map +1 -1
- package/dist/meteora_client/types/CompressedBinDepositAmount.d.ts +1 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.d.ts.map +1 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.js +2 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.js.map +1 -1
- package/dist/meteora_client/types/FeeInfo.d.ts +1 -0
- package/dist/meteora_client/types/FeeInfo.d.ts.map +1 -0
- package/dist/meteora_client/types/FeeInfo.js +4 -0
- package/dist/meteora_client/types/FeeInfo.js.map +1 -1
- package/dist/meteora_client/types/FeeParameter.d.ts +1 -0
- package/dist/meteora_client/types/FeeParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/FeeParameter.js +4 -0
- package/dist/meteora_client/types/FeeParameter.js.map +1 -1
- package/dist/meteora_client/types/InitPermissionPairIx.d.ts +1 -0
- package/dist/meteora_client/types/InitPermissionPairIx.d.ts.map +1 -0
- package/dist/meteora_client/types/InitPermissionPairIx.js +6 -0
- package/dist/meteora_client/types/InitPermissionPairIx.js.map +1 -1
- package/dist/meteora_client/types/InitPresetParametersIx.d.ts +1 -0
- package/dist/meteora_client/types/InitPresetParametersIx.d.ts.map +1 -0
- package/dist/meteora_client/types/InitPresetParametersIx.js +20 -0
- package/dist/meteora_client/types/InitPresetParametersIx.js.map +1 -1
- package/dist/meteora_client/types/LayoutVersion.d.ts +1 -0
- package/dist/meteora_client/types/LayoutVersion.d.ts.map +1 -0
- package/dist/meteora_client/types/LayoutVersion.js +8 -12
- package/dist/meteora_client/types/LayoutVersion.js.map +1 -1
- package/dist/meteora_client/types/LiquidityOneSideParameter.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityOneSideParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityOneSideParameter.js +9 -1
- package/dist/meteora_client/types/LiquidityOneSideParameter.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameter.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameter.js +7 -1
- package/dist/meteora_client/types/LiquidityParameter.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategy.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategy.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategy.js +13 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategy.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.js +11 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameterByWeight.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameterByWeight.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByWeight.js +11 -1
- package/dist/meteora_client/types/LiquidityParameterByWeight.js.map +1 -1
- package/dist/meteora_client/types/Observation.d.ts +1 -0
- package/dist/meteora_client/types/Observation.d.ts.map +1 -0
- package/dist/meteora_client/types/Observation.js +6 -0
- package/dist/meteora_client/types/Observation.js.map +1 -1
- package/dist/meteora_client/types/PairStatus.d.ts +1 -0
- package/dist/meteora_client/types/PairStatus.d.ts.map +1 -0
- package/dist/meteora_client/types/PairStatus.js +8 -12
- package/dist/meteora_client/types/PairStatus.js.map +1 -1
- package/dist/meteora_client/types/PairType.d.ts +1 -0
- package/dist/meteora_client/types/PairType.d.ts.map +1 -0
- package/dist/meteora_client/types/PairType.js +8 -12
- package/dist/meteora_client/types/PairType.js.map +1 -1
- package/dist/meteora_client/types/ProtocolFee.d.ts +1 -0
- package/dist/meteora_client/types/ProtocolFee.d.ts.map +1 -0
- package/dist/meteora_client/types/ProtocolFee.js +2 -0
- package/dist/meteora_client/types/ProtocolFee.js.map +1 -1
- package/dist/meteora_client/types/RewardInfo.d.ts +1 -0
- package/dist/meteora_client/types/RewardInfo.d.ts.map +1 -0
- package/dist/meteora_client/types/RewardInfo.js +16 -0
- package/dist/meteora_client/types/RewardInfo.js.map +1 -1
- package/dist/meteora_client/types/Rounding.d.ts +1 -0
- package/dist/meteora_client/types/Rounding.d.ts.map +1 -0
- package/dist/meteora_client/types/Rounding.js +8 -12
- package/dist/meteora_client/types/Rounding.js.map +1 -1
- package/dist/meteora_client/types/StaticParameters.d.ts +1 -0
- package/dist/meteora_client/types/StaticParameters.d.ts.map +1 -0
- package/dist/meteora_client/types/StaticParameters.js +20 -0
- package/dist/meteora_client/types/StaticParameters.js.map +1 -1
- package/dist/meteora_client/types/StrategyParameters.d.ts +1 -0
- package/dist/meteora_client/types/StrategyParameters.d.ts.map +1 -0
- package/dist/meteora_client/types/StrategyParameters.js +8 -0
- package/dist/meteora_client/types/StrategyParameters.js.map +1 -1
- package/dist/meteora_client/types/StrategyType.d.ts +1 -0
- package/dist/meteora_client/types/StrategyType.d.ts.map +1 -0
- package/dist/meteora_client/types/StrategyType.js +36 -54
- package/dist/meteora_client/types/StrategyType.js.map +1 -1
- package/dist/meteora_client/types/UserRewardInfo.d.ts +1 -0
- package/dist/meteora_client/types/UserRewardInfo.d.ts.map +1 -0
- package/dist/meteora_client/types/UserRewardInfo.js +2 -0
- package/dist/meteora_client/types/UserRewardInfo.js.map +1 -1
- package/dist/meteora_client/types/VariableParameters.d.ts +1 -0
- package/dist/meteora_client/types/VariableParameters.d.ts.map +1 -0
- package/dist/meteora_client/types/VariableParameters.js +15 -0
- package/dist/meteora_client/types/VariableParameters.js.map +1 -1
- package/dist/meteora_client/types/index.d.ts +1 -0
- package/dist/meteora_client/types/index.d.ts.map +1 -0
- package/dist/meteora_client/types/index.js.map +1 -1
- package/dist/models/EnrichedScopePrice.d.ts +1 -0
- package/dist/models/EnrichedScopePrice.d.ts.map +1 -0
- package/dist/models/EnrichedScopePrice.js.map +1 -1
- package/dist/models/Holdings.d.ts +1 -0
- package/dist/models/Holdings.d.ts.map +1 -0
- package/dist/models/Holdings.js.map +1 -1
- package/dist/models/KaminoPosition.d.ts +1 -0
- package/dist/models/KaminoPosition.d.ts.map +1 -0
- package/dist/models/KaminoPosition.js.map +1 -1
- package/dist/models/KaminoStrategyWithShareMint.d.ts +1 -0
- package/dist/models/KaminoStrategyWithShareMint.d.ts.map +1 -0
- package/dist/models/KaminoStrategyWithShareMint.js.map +1 -1
- package/dist/models/KaminoToken.d.ts +1 -0
- package/dist/models/KaminoToken.d.ts.map +1 -0
- package/dist/models/KaminoToken.js.map +1 -1
- package/dist/models/LbPairWithAddress.d.ts +1 -0
- package/dist/models/LbPairWithAddress.d.ts.map +1 -0
- package/dist/models/LbPairWithAddress.js.map +1 -1
- package/dist/models/MultipleAccountsResponse.d.ts +1 -0
- package/dist/models/MultipleAccountsResponse.d.ts.map +1 -0
- package/dist/models/MultipleAccountsResponse.js.map +1 -1
- package/dist/models/PoolSimulationResponseData.d.ts +1 -0
- package/dist/models/PoolSimulationResponseData.d.ts.map +1 -0
- package/dist/models/PoolSimulationResponseData.js.map +1 -1
- package/dist/models/PriceData.d.ts +1 -0
- package/dist/models/PriceData.d.ts.map +1 -0
- package/dist/models/PriceData.js.map +1 -1
- package/dist/models/RaydiumPoolWithAddress.d.ts +1 -0
- package/dist/models/RaydiumPoolWithAddress.d.ts.map +1 -0
- package/dist/models/RaydiumPoolWithAddress.js.map +1 -1
- package/dist/models/ShareData.d.ts +1 -0
- package/dist/models/ShareData.d.ts.map +1 -0
- package/dist/models/ShareData.js.map +1 -1
- package/dist/models/StrategyBalances.d.ts +1 -0
- package/dist/models/StrategyBalances.d.ts.map +1 -0
- package/dist/models/StrategyBalances.js.map +1 -1
- package/dist/models/StrategyHolder.d.ts +1 -0
- package/dist/models/StrategyHolder.d.ts.map +1 -0
- package/dist/models/StrategyHolder.js.map +1 -1
- package/dist/models/StrategyPrices.d.ts +1 -0
- package/dist/models/StrategyPrices.d.ts.map +1 -0
- package/dist/models/StrategyPrices.js.map +1 -1
- package/dist/models/StrategyProgramAddress.d.ts +1 -0
- package/dist/models/StrategyProgramAddress.d.ts.map +1 -0
- package/dist/models/StrategyProgramAddress.js.map +1 -1
- package/dist/models/StrategyVaultBalances.d.ts +1 -0
- package/dist/models/StrategyVaultBalances.d.ts.map +1 -0
- package/dist/models/StrategyVaultBalances.js.map +1 -1
- package/dist/models/StrategyVaultTokens.d.ts +1 -0
- package/dist/models/StrategyVaultTokens.d.ts.map +1 -0
- package/dist/models/StrategyVaultTokens.js.map +1 -1
- package/dist/models/StrategyWithAddress.d.ts +1 -0
- package/dist/models/StrategyWithAddress.d.ts.map +1 -0
- package/dist/models/StrategyWithAddress.js.map +1 -1
- package/dist/models/StrategyWithPendingFees.d.ts +1 -0
- package/dist/models/StrategyWithPendingFees.d.ts.map +1 -0
- package/dist/models/StrategyWithPendingFees.js.map +1 -1
- package/dist/models/TokenAmounts.d.ts +1 -0
- package/dist/models/TokenAmounts.d.ts.map +1 -0
- package/dist/models/TokenAmounts.js.map +1 -1
- package/dist/models/TreasuryFeeVault.d.ts +1 -0
- package/dist/models/TreasuryFeeVault.d.ts.map +1 -0
- package/dist/models/TreasuryFeeVault.js.map +1 -1
- package/dist/models/WhirlpoolWithAddress.d.ts +1 -0
- package/dist/models/WhirlpoolWithAddress.d.ts.map +1 -0
- package/dist/models/WhirlpoolWithAddress.js.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js.map +1 -1
- package/dist/raydium_client/accounts/AmmConfig.d.ts +1 -0
- package/dist/raydium_client/accounts/AmmConfig.d.ts.map +1 -0
- package/dist/raydium_client/accounts/AmmConfig.js +38 -41
- package/dist/raydium_client/accounts/AmmConfig.js.map +1 -1
- package/dist/raydium_client/accounts/ObservationState.d.ts +1 -0
- package/dist/raydium_client/accounts/ObservationState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/ObservationState.js +27 -36
- package/dist/raydium_client/accounts/ObservationState.js.map +1 -1
- package/dist/raydium_client/accounts/OperationState.d.ts +1 -0
- package/dist/raydium_client/accounts/OperationState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/OperationState.js +24 -34
- package/dist/raydium_client/accounts/OperationState.js.map +1 -1
- package/dist/raydium_client/accounts/PersonalPositionState.d.ts +1 -0
- package/dist/raydium_client/accounts/PersonalPositionState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/PersonalPositionState.js +43 -44
- package/dist/raydium_client/accounts/PersonalPositionState.js.map +1 -1
- package/dist/raydium_client/accounts/PoolState.d.ts +1 -0
- package/dist/raydium_client/accounts/PoolState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/PoolState.js +93 -69
- package/dist/raydium_client/accounts/PoolState.js.map +1 -1
- package/dist/raydium_client/accounts/ProtocolPositionState.d.ts +1 -0
- package/dist/raydium_client/accounts/ProtocolPositionState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/ProtocolPositionState.js +40 -42
- package/dist/raydium_client/accounts/ProtocolPositionState.js.map +1 -1
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.d.ts +1 -0
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.d.ts.map +1 -0
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.js +24 -34
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.js.map +1 -1
- package/dist/raydium_client/accounts/TickArrayState.d.ts +1 -0
- package/dist/raydium_client/accounts/TickArrayState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/TickArrayState.js +29 -37
- package/dist/raydium_client/accounts/TickArrayState.js.map +1 -1
- package/dist/raydium_client/accounts/index.d.ts +1 -0
- package/dist/raydium_client/accounts/index.d.ts.map +1 -0
- package/dist/raydium_client/accounts/index.js.map +1 -1
- package/dist/raydium_client/errors/anchor.d.ts +1 -0
- package/dist/raydium_client/errors/anchor.d.ts.map +1 -0
- package/dist/raydium_client/errors/anchor.js +270 -216
- package/dist/raydium_client/errors/anchor.js.map +1 -1
- package/dist/raydium_client/errors/custom.d.ts +1 -0
- package/dist/raydium_client/errors/custom.d.ts.map +1 -0
- package/dist/raydium_client/errors/custom.js +210 -168
- package/dist/raydium_client/errors/custom.js.map +1 -1
- package/dist/raydium_client/errors/index.d.ts +1 -0
- package/dist/raydium_client/errors/index.d.ts.map +1 -0
- package/dist/raydium_client/errors/index.js.map +1 -1
- package/dist/raydium_client/index.d.ts +1 -0
- package/dist/raydium_client/index.d.ts.map +1 -0
- package/dist/raydium_client/index.js.map +1 -1
- package/dist/raydium_client/instructions/closePosition.d.ts +1 -0
- package/dist/raydium_client/instructions/closePosition.d.ts.map +1 -0
- package/dist/raydium_client/instructions/closePosition.js.map +1 -1
- package/dist/raydium_client/instructions/collectFundFee.d.ts +1 -0
- package/dist/raydium_client/instructions/collectFundFee.d.ts.map +1 -0
- package/dist/raydium_client/instructions/collectFundFee.js.map +1 -1
- package/dist/raydium_client/instructions/collectProtocolFee.d.ts +1 -0
- package/dist/raydium_client/instructions/collectProtocolFee.d.ts.map +1 -0
- package/dist/raydium_client/instructions/collectProtocolFee.js.map +1 -1
- package/dist/raydium_client/instructions/collectRemainingRewards.d.ts +1 -0
- package/dist/raydium_client/instructions/collectRemainingRewards.d.ts.map +1 -0
- package/dist/raydium_client/instructions/collectRemainingRewards.js.map +1 -1
- package/dist/raydium_client/instructions/createAmmConfig.d.ts +1 -0
- package/dist/raydium_client/instructions/createAmmConfig.d.ts.map +1 -0
- package/dist/raydium_client/instructions/createAmmConfig.js.map +1 -1
- package/dist/raydium_client/instructions/createOperationAccount.d.ts +1 -0
- package/dist/raydium_client/instructions/createOperationAccount.d.ts.map +1 -0
- package/dist/raydium_client/instructions/createOperationAccount.js.map +1 -1
- package/dist/raydium_client/instructions/createPool.d.ts +1 -0
- package/dist/raydium_client/instructions/createPool.d.ts.map +1 -0
- package/dist/raydium_client/instructions/createPool.js.map +1 -1
- package/dist/raydium_client/instructions/decreaseLiquidity.d.ts +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidity.d.ts.map +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidity.js.map +1 -1
- package/dist/raydium_client/instructions/decreaseLiquidityV2.d.ts +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidityV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidityV2.js.map +1 -1
- package/dist/raydium_client/instructions/increaseLiquidity.d.ts +1 -0
- package/dist/raydium_client/instructions/increaseLiquidity.d.ts.map +1 -0
- package/dist/raydium_client/instructions/increaseLiquidity.js.map +1 -1
- package/dist/raydium_client/instructions/increaseLiquidityV2.d.ts +1 -0
- package/dist/raydium_client/instructions/increaseLiquidityV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/increaseLiquidityV2.js.map +1 -1
- package/dist/raydium_client/instructions/index.d.ts +1 -0
- package/dist/raydium_client/instructions/index.d.ts.map +1 -0
- package/dist/raydium_client/instructions/index.js.map +1 -1
- package/dist/raydium_client/instructions/initializeReward.d.ts +1 -0
- package/dist/raydium_client/instructions/initializeReward.d.ts.map +1 -0
- package/dist/raydium_client/instructions/initializeReward.js.map +1 -1
- package/dist/raydium_client/instructions/openPosition.d.ts +1 -0
- package/dist/raydium_client/instructions/openPosition.d.ts.map +1 -0
- package/dist/raydium_client/instructions/openPosition.js.map +1 -1
- package/dist/raydium_client/instructions/openPositionV2.d.ts +1 -0
- package/dist/raydium_client/instructions/openPositionV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/openPositionV2.js.map +1 -1
- package/dist/raydium_client/instructions/setRewardParams.d.ts +1 -0
- package/dist/raydium_client/instructions/setRewardParams.d.ts.map +1 -0
- package/dist/raydium_client/instructions/setRewardParams.js.map +1 -1
- package/dist/raydium_client/instructions/swap.d.ts +1 -0
- package/dist/raydium_client/instructions/swap.d.ts.map +1 -0
- package/dist/raydium_client/instructions/swap.js.map +1 -1
- package/dist/raydium_client/instructions/swapRouterBaseIn.d.ts +1 -0
- package/dist/raydium_client/instructions/swapRouterBaseIn.d.ts.map +1 -0
- package/dist/raydium_client/instructions/swapRouterBaseIn.js.map +1 -1
- package/dist/raydium_client/instructions/swapV2.d.ts +1 -0
- package/dist/raydium_client/instructions/swapV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/swapV2.js.map +1 -1
- package/dist/raydium_client/instructions/transferRewardOwner.d.ts +1 -0
- package/dist/raydium_client/instructions/transferRewardOwner.d.ts.map +1 -0
- package/dist/raydium_client/instructions/transferRewardOwner.js.map +1 -1
- package/dist/raydium_client/instructions/updateAmmConfig.d.ts +1 -0
- package/dist/raydium_client/instructions/updateAmmConfig.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updateAmmConfig.js.map +1 -1
- package/dist/raydium_client/instructions/updateOperationAccount.d.ts +1 -0
- package/dist/raydium_client/instructions/updateOperationAccount.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updateOperationAccount.js.map +1 -1
- package/dist/raydium_client/instructions/updatePoolStatus.d.ts +1 -0
- package/dist/raydium_client/instructions/updatePoolStatus.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updatePoolStatus.js.map +1 -1
- package/dist/raydium_client/instructions/updateRewardInfos.d.ts +1 -0
- package/dist/raydium_client/instructions/updateRewardInfos.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updateRewardInfos.js.map +1 -1
- package/dist/raydium_client/programId.d.ts +1 -0
- package/dist/raydium_client/programId.d.ts.map +1 -0
- package/dist/raydium_client/programId.js.map +1 -1
- package/dist/raydium_client/types/InitializeRewardParam.d.ts +1 -0
- package/dist/raydium_client/types/InitializeRewardParam.d.ts.map +1 -0
- package/dist/raydium_client/types/InitializeRewardParam.js +3 -0
- package/dist/raydium_client/types/InitializeRewardParam.js.map +1 -1
- package/dist/raydium_client/types/Observation.d.ts +1 -0
- package/dist/raydium_client/types/Observation.d.ts.map +1 -0
- package/dist/raydium_client/types/Observation.js +4 -0
- package/dist/raydium_client/types/Observation.js.map +1 -1
- package/dist/raydium_client/types/PoolStatusBitFlag.d.ts +1 -0
- package/dist/raydium_client/types/PoolStatusBitFlag.d.ts.map +1 -0
- package/dist/raydium_client/types/PoolStatusBitFlag.js +8 -12
- package/dist/raydium_client/types/PoolStatusBitFlag.js.map +1 -1
- package/dist/raydium_client/types/PoolStatusBitIndex.d.ts +1 -0
- package/dist/raydium_client/types/PoolStatusBitIndex.d.ts.map +1 -0
- package/dist/raydium_client/types/PoolStatusBitIndex.js +20 -30
- package/dist/raydium_client/types/PoolStatusBitIndex.js.map +1 -1
- package/dist/raydium_client/types/PositionRewardInfo.d.ts +1 -0
- package/dist/raydium_client/types/PositionRewardInfo.d.ts.map +1 -0
- package/dist/raydium_client/types/PositionRewardInfo.js +2 -0
- package/dist/raydium_client/types/PositionRewardInfo.js.map +1 -1
- package/dist/raydium_client/types/RewardInfo.d.ts +1 -0
- package/dist/raydium_client/types/RewardInfo.d.ts.map +1 -0
- package/dist/raydium_client/types/RewardInfo.js +11 -0
- package/dist/raydium_client/types/RewardInfo.js.map +1 -1
- package/dist/raydium_client/types/RewardState.d.ts +1 -0
- package/dist/raydium_client/types/RewardState.d.ts.map +1 -0
- package/dist/raydium_client/types/RewardState.js +16 -24
- package/dist/raydium_client/types/RewardState.js.map +1 -1
- package/dist/raydium_client/types/TickArryBitmap.d.ts +1 -0
- package/dist/raydium_client/types/TickArryBitmap.d.ts.map +1 -0
- package/dist/raydium_client/types/TickArryBitmap.js.map +1 -1
- package/dist/raydium_client/types/TickState.d.ts +1 -0
- package/dist/raydium_client/types/TickState.d.ts.map +1 -0
- package/dist/raydium_client/types/TickState.js +7 -0
- package/dist/raydium_client/types/TickState.js.map +1 -1
- package/dist/raydium_client/types/index.d.ts +1 -0
- package/dist/raydium_client/types/index.d.ts.map +1 -0
- package/dist/raydium_client/types/index.js.map +1 -1
- package/dist/rebalance_methods/autodriftRebalance.d.ts +1 -0
- package/dist/rebalance_methods/autodriftRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/autodriftRebalance.js +1 -1
- package/dist/rebalance_methods/autodriftRebalance.js.map +1 -1
- package/dist/rebalance_methods/consts.d.ts +1 -0
- package/dist/rebalance_methods/consts.d.ts.map +1 -0
- package/dist/rebalance_methods/consts.js.map +1 -1
- package/dist/rebalance_methods/driftRebalance.d.ts +1 -0
- package/dist/rebalance_methods/driftRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/driftRebalance.js.map +1 -1
- package/dist/rebalance_methods/expanderRebalance.d.ts +1 -0
- package/dist/rebalance_methods/expanderRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/expanderRebalance.js.map +1 -1
- package/dist/rebalance_methods/index.d.ts +1 -0
- package/dist/rebalance_methods/index.d.ts.map +1 -0
- package/dist/rebalance_methods/index.js.map +1 -1
- package/dist/rebalance_methods/manualRebalance.d.ts +1 -0
- package/dist/rebalance_methods/manualRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/manualRebalance.js.map +1 -1
- package/dist/rebalance_methods/math_utils.d.ts +1 -0
- package/dist/rebalance_methods/math_utils.d.ts.map +1 -0
- package/dist/rebalance_methods/math_utils.js.map +1 -1
- package/dist/rebalance_methods/periodicRebalance.d.ts +1 -0
- package/dist/rebalance_methods/periodicRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/periodicRebalance.js.map +1 -1
- package/dist/rebalance_methods/pricePercentageRebalance.d.ts +1 -0
- package/dist/rebalance_methods/pricePercentageRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/pricePercentageRebalance.js +2 -3
- package/dist/rebalance_methods/pricePercentageRebalance.js.map +1 -1
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.d.ts +1 -0
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.js +8 -10
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.js.map +1 -1
- package/dist/rebalance_methods/takeProfitRebalance.d.ts +1 -0
- package/dist/rebalance_methods/takeProfitRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/takeProfitRebalance.js.map +1 -1
- package/dist/rebalance_methods/utils.d.ts +1 -0
- package/dist/rebalance_methods/utils.d.ts.map +1 -0
- package/dist/rebalance_methods/utils.js.map +1 -1
- package/dist/services/JupService.d.ts +1 -0
- package/dist/services/JupService.d.ts.map +1 -0
- package/dist/services/JupService.js +102 -111
- package/dist/services/JupService.js.map +1 -1
- package/dist/services/MeteoraService.d.ts +1 -0
- package/dist/services/MeteoraService.d.ts.map +1 -0
- package/dist/services/MeteoraService.js +159 -150
- package/dist/services/MeteoraService.js.map +1 -1
- package/dist/services/OrcaService.d.ts +1 -0
- package/dist/services/OrcaService.d.ts.map +1 -0
- package/dist/services/OrcaService.js +195 -201
- package/dist/services/OrcaService.js.map +1 -1
- package/dist/services/OrcaWhirlpoolsResponse.d.ts +1 -0
- package/dist/services/OrcaWhirlpoolsResponse.d.ts.map +1 -0
- package/dist/services/OrcaWhirlpoolsResponse.js.map +1 -1
- package/dist/services/PoolSimulationService.d.ts +1 -0
- package/dist/services/PoolSimulationService.d.ts.map +1 -0
- package/dist/services/PoolSimulationService.js +6 -19
- package/dist/services/PoolSimulationService.js.map +1 -1
- package/dist/services/RaydiumPoolsResponse.d.ts +1 -0
- package/dist/services/RaydiumPoolsResponse.d.ts.map +1 -0
- package/dist/services/RaydiumPoolsResponse.js.map +1 -1
- package/dist/services/RaydiumService.d.ts +1 -0
- package/dist/services/RaydiumService.d.ts.map +1 -0
- package/dist/services/RaydiumService.js +188 -171
- package/dist/services/RaydiumService.js.map +1 -1
- package/dist/services/WhirlpoolAprApy.d.ts +1 -0
- package/dist/services/WhirlpoolAprApy.d.ts.map +1 -0
- package/dist/services/WhirlpoolAprApy.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js.map +1 -1
- package/dist/utils/CreationParameters.d.ts +1 -0
- package/dist/utils/CreationParameters.d.ts.map +1 -0
- package/dist/utils/CreationParameters.js +1 -1
- package/dist/utils/CreationParameters.js.map +1 -1
- package/dist/utils/anchorUtils.d.ts +1 -0
- package/dist/utils/anchorUtils.d.ts.map +1 -0
- package/dist/utils/anchorUtils.js +2 -11
- package/dist/utils/anchorUtils.js.map +1 -1
- package/dist/utils/batch.d.ts +1 -0
- package/dist/utils/batch.d.ts.map +1 -0
- package/dist/utils/batch.js +4 -15
- package/dist/utils/batch.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/instructions.d.ts +1 -0
- package/dist/utils/instructions.d.ts.map +1 -0
- package/dist/utils/instructions.js.map +1 -1
- package/dist/utils/lookupTable.d.ts +1 -0
- package/dist/utils/lookupTable.d.ts.map +1 -0
- package/dist/utils/lookupTable.js +29 -42
- package/dist/utils/lookupTable.js.map +1 -1
- package/dist/utils/math.d.ts +1 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/math.js.map +1 -1
- package/dist/utils/meteora.d.ts +1 -0
- package/dist/utils/meteora.d.ts.map +1 -0
- package/dist/utils/meteora.js.map +1 -1
- package/dist/utils/orca.d.ts +1 -0
- package/dist/utils/orca.d.ts.map +1 -0
- package/dist/utils/orca.js.map +1 -1
- package/dist/utils/priceReferenceTypes.d.ts +1 -0
- package/dist/utils/priceReferenceTypes.d.ts.map +1 -0
- package/dist/utils/priceReferenceTypes.js.map +1 -1
- package/dist/utils/pubkey.d.ts +1 -0
- package/dist/utils/pubkey.d.ts.map +1 -0
- package/dist/utils/pubkey.js +7 -9
- package/dist/utils/pubkey.js.map +1 -1
- package/dist/utils/raydium.d.ts +1 -0
- package/dist/utils/raydium.d.ts.map +1 -0
- package/dist/utils/raydium.js.map +1 -1
- package/dist/utils/tokenUtils.d.ts +1 -0
- package/dist/utils/tokenUtils.d.ts.map +1 -0
- package/dist/utils/tokenUtils.js +40 -57
- package/dist/utils/tokenUtils.js.map +1 -1
- package/dist/utils/transactions.d.ts +1 -0
- package/dist/utils/transactions.d.ts.map +1 -0
- package/dist/utils/transactions.js +21 -31
- package/dist/utils/transactions.js.map +1 -1
- package/dist/utils/types.d.ts +1 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js.map +1 -1
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +13 -24
- package/dist/utils/utils.js.map +1 -1
- package/dist/whirlpools-client/accounts/FeeTier.d.ts +1 -0
- package/dist/whirlpools-client/accounts/FeeTier.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/FeeTier.js +24 -34
- package/dist/whirlpools-client/accounts/FeeTier.js.map +1 -1
- package/dist/whirlpools-client/accounts/Position.d.ts +1 -0
- package/dist/whirlpools-client/accounts/Position.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/Position.js +39 -42
- package/dist/whirlpools-client/accounts/Position.js.map +1 -1
- package/dist/whirlpools-client/accounts/PositionBundle.d.ts +1 -0
- package/dist/whirlpools-client/accounts/PositionBundle.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/PositionBundle.js +22 -33
- package/dist/whirlpools-client/accounts/PositionBundle.js.map +1 -1
- package/dist/whirlpools-client/accounts/TickArray.d.ts +1 -0
- package/dist/whirlpools-client/accounts/TickArray.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/TickArray.js +25 -35
- package/dist/whirlpools-client/accounts/TickArray.js.map +1 -1
- package/dist/whirlpools-client/accounts/TokenBadge.d.ts +1 -0
- package/dist/whirlpools-client/accounts/TokenBadge.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/TokenBadge.js +22 -33
- package/dist/whirlpools-client/accounts/TokenBadge.js.map +1 -1
- package/dist/whirlpools-client/accounts/Whirlpool.d.ts +1 -0
- package/dist/whirlpools-client/accounts/Whirlpool.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/Whirlpool.js +57 -51
- package/dist/whirlpools-client/accounts/Whirlpool.js.map +1 -1
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.d.ts +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.js +26 -35
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.js.map +1 -1
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.d.ts +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.js +24 -34
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.js.map +1 -1
- package/dist/whirlpools-client/accounts/index.d.ts +1 -0
- package/dist/whirlpools-client/accounts/index.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/index.js.map +1 -1
- package/dist/whirlpools-client/errors/anchor.d.ts +1 -0
- package/dist/whirlpools-client/errors/anchor.d.ts.map +1 -0
- package/dist/whirlpools-client/errors/anchor.js +270 -216
- package/dist/whirlpools-client/errors/anchor.js.map +1 -1
- package/dist/whirlpools-client/errors/custom.d.ts +1 -0
- package/dist/whirlpools-client/errors/custom.d.ts.map +1 -0
- package/dist/whirlpools-client/errors/custom.js +270 -216
- package/dist/whirlpools-client/errors/custom.js.map +1 -1
- package/dist/whirlpools-client/errors/index.d.ts +1 -0
- package/dist/whirlpools-client/errors/index.d.ts.map +1 -0
- package/dist/whirlpools-client/errors/index.js.map +1 -1
- package/dist/whirlpools-client/index.d.ts +1 -0
- package/dist/whirlpools-client/index.d.ts.map +1 -0
- package/dist/whirlpools-client/index.js.map +1 -1
- package/dist/whirlpools-client/instructions/closeBundledPosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/closeBundledPosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/closeBundledPosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/closePosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/closePosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/closePosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectFees.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectFees.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectFees.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectFeesV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectFeesV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectFeesV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectProtocolFees.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFees.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFees.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectReward.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectReward.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectReward.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectRewardV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectRewardV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectRewardV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/decreaseLiquidity.d.ts +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidity.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidity.js.map +1 -1
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/deletePositionBundle.d.ts +1 -0
- package/dist/whirlpools-client/instructions/deletePositionBundle.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/deletePositionBundle.js.map +1 -1
- package/dist/whirlpools-client/instructions/deleteTokenBadge.d.ts +1 -0
- package/dist/whirlpools-client/instructions/deleteTokenBadge.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/deleteTokenBadge.js.map +1 -1
- package/dist/whirlpools-client/instructions/increaseLiquidity.d.ts +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidity.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidity.js.map +1 -1
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/index.d.ts +1 -0
- package/dist/whirlpools-client/instructions/index.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/index.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeConfig.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeConfig.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeConfig.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeConfigExtension.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeConfigExtension.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeConfigExtension.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeFeeTier.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeFeeTier.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeFeeTier.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePool.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePool.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePool.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePoolV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePoolV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePoolV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePositionBundle.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundle.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundle.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeReward.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeReward.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeReward.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeRewardV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeRewardV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeRewardV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeTickArray.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeTickArray.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeTickArray.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeTokenBadge.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeTokenBadge.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeTokenBadge.js.map +1 -1
- package/dist/whirlpools-client/instructions/openBundledPosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/openBundledPosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/openBundledPosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/openPosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/openPosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/openPosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.d.ts +1 -0
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.js.map +1 -1
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setFeeAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setFeeAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setFeeAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardEmissions.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissions.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissions.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/swap.d.ts +1 -0
- package/dist/whirlpools-client/instructions/swap.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/swap.js.map +1 -1
- package/dist/whirlpools-client/instructions/swapV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/swapV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/swapV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/twoHopSwap.d.ts +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwap.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwap.js.map +1 -1
- package/dist/whirlpools-client/instructions/twoHopSwapV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwapV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwapV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.d.ts +1 -0
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.js.map +1 -1
- package/dist/whirlpools-client/programId.d.ts +1 -0
- package/dist/whirlpools-client/programId.d.ts.map +1 -0
- package/dist/whirlpools-client/programId.js.map +1 -1
- package/dist/whirlpools-client/shim/remove-liquidity.d.ts +1 -0
- package/dist/whirlpools-client/shim/remove-liquidity.d.ts.map +1 -0
- package/dist/whirlpools-client/shim/remove-liquidity.js.map +1 -1
- package/dist/whirlpools-client/types/AccountsType.d.ts +1 -0
- package/dist/whirlpools-client/types/AccountsType.d.ts.map +1 -0
- package/dist/whirlpools-client/types/AccountsType.js +24 -36
- package/dist/whirlpools-client/types/AccountsType.js.map +1 -1
- package/dist/whirlpools-client/types/CurrIndex.d.ts +1 -0
- package/dist/whirlpools-client/types/CurrIndex.d.ts.map +1 -0
- package/dist/whirlpools-client/types/CurrIndex.js +12 -18
- package/dist/whirlpools-client/types/CurrIndex.js.map +1 -1
- package/dist/whirlpools-client/types/Direction.d.ts +1 -0
- package/dist/whirlpools-client/types/Direction.d.ts.map +1 -0
- package/dist/whirlpools-client/types/Direction.js +8 -12
- package/dist/whirlpools-client/types/Direction.js.map +1 -1
- package/dist/whirlpools-client/types/OpenPositionBumps.d.ts +1 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.d.ts.map +1 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.js +1 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.js.map +1 -1
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.d.ts +1 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.d.ts.map +1 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.js +2 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.js.map +1 -1
- package/dist/whirlpools-client/types/PositionRewardInfo.d.ts +1 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.d.ts.map +1 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.js +2 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.js.map +1 -1
- package/dist/whirlpools-client/types/RemainingAccountsInfo.d.ts +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsInfo.d.ts.map +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsInfo.js +2 -1
- package/dist/whirlpools-client/types/RemainingAccountsInfo.js.map +1 -1
- package/dist/whirlpools-client/types/RemainingAccountsSlice.d.ts +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.d.ts.map +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.js +2 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.js.map +1 -1
- package/dist/whirlpools-client/types/Tick.d.ts +1 -0
- package/dist/whirlpools-client/types/Tick.d.ts.map +1 -0
- package/dist/whirlpools-client/types/Tick.js +6 -0
- package/dist/whirlpools-client/types/Tick.js.map +1 -1
- package/dist/whirlpools-client/types/TickLabel.d.ts +1 -0
- package/dist/whirlpools-client/types/TickLabel.d.ts.map +1 -0
- package/dist/whirlpools-client/types/TickLabel.js +8 -12
- package/dist/whirlpools-client/types/TickLabel.js.map +1 -1
- package/dist/whirlpools-client/types/WhirlpoolBumps.d.ts +1 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.d.ts.map +1 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.js +1 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.js.map +1 -1
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.d.ts +1 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.d.ts.map +1 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.js +5 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.js.map +1 -1
- package/dist/whirlpools-client/types/index.d.ts +1 -0
- package/dist/whirlpools-client/types/index.d.ts.map +1 -0
- package/dist/whirlpools-client/types/index.js.map +1 -1
- package/package.json +3 -2
- package/src/Kamino.ts +7625 -0
- package/src/constants/DefaultStrategyConfig.ts +7 -0
- package/src/constants/deposit_method.ts +2 -0
- package/src/constants/frontend.ts +1 -0
- package/src/constants/index.ts +3 -0
- package/src/constants/metadata.ts +4 -0
- package/src/constants/numericalValues.ts +1 -0
- package/src/constants/pubkeys.ts +11 -0
- package/src/index.ts +6 -0
- package/src/kamino-client/accounts/CollateralInfos.ts +95 -0
- package/src/kamino-client/accounts/GlobalConfig.ts +292 -0
- package/src/kamino-client/accounts/PersonalPositionState.ts +215 -0
- package/src/kamino-client/accounts/PoolState.ts +469 -0
- package/src/kamino-client/accounts/Position.ts +169 -0
- package/src/kamino-client/accounts/ProtocolPositionState.ts +201 -0
- package/src/kamino-client/accounts/ScopeChainAccount.ts +89 -0
- package/src/kamino-client/accounts/TermsSignature.ts +89 -0
- package/src/kamino-client/accounts/Whirlpool.ts +242 -0
- package/src/kamino-client/accounts/WhirlpoolStrategy.ts +918 -0
- package/src/kamino-client/accounts/index.ts +35 -0
- package/src/kamino-client/errors/anchor.ts +773 -0
- package/src/kamino-client/errors/custom.ts +2245 -0
- package/src/kamino-client/errors/index.ts +62 -0
- package/src/kamino-client/instructions/addKaminoRewards.ts +53 -0
- package/src/kamino-client/instructions/changePool.ts +48 -0
- package/src/kamino-client/instructions/checkExpectedVaultsBalances.ts +45 -0
- package/src/kamino-client/instructions/closeProgramAccount.ts +30 -0
- package/src/kamino-client/instructions/closeStrategy.ts +130 -0
- package/src/kamino-client/instructions/collectFeesAndRewards.ts +116 -0
- package/src/kamino-client/instructions/deposit.ts +93 -0
- package/src/kamino-client/instructions/depositAndInvest.ts +118 -0
- package/src/kamino-client/instructions/emergencySwap.ts +86 -0
- package/src/kamino-client/instructions/executiveWithdraw.ts +92 -0
- package/src/kamino-client/instructions/flashSwapUnevenVaultsEnd.ts +95 -0
- package/src/kamino-client/instructions/flashSwapUnevenVaultsStart.ts +91 -0
- package/src/kamino-client/instructions/index.ts +140 -0
- package/src/kamino-client/instructions/initializeCollateralInfo.ts +28 -0
- package/src/kamino-client/instructions/initializeGlobalConfig.ts +26 -0
- package/src/kamino-client/instructions/initializeKaminoReward.ts +59 -0
- package/src/kamino-client/instructions/initializeSharesMetadata.ts +64 -0
- package/src/kamino-client/instructions/initializeStrategy.ts +77 -0
- package/src/kamino-client/instructions/insertCollateralInfo.ts +45 -0
- package/src/kamino-client/instructions/invest.ts +84 -0
- package/src/kamino-client/instructions/openLiquidityPosition.ts +144 -0
- package/src/kamino-client/instructions/orcaSwap.ts +82 -0
- package/src/kamino-client/instructions/permisionlessWithdrawFromTreasury.ts +38 -0
- package/src/kamino-client/instructions/signTerms.ts +42 -0
- package/src/kamino-client/instructions/singleTokenDepositAndInvestWithMin.ts +118 -0
- package/src/kamino-client/instructions/singleTokenDepositWithMin.ts +93 -0
- package/src/kamino-client/instructions/swapRewards.ts +116 -0
- package/src/kamino-client/instructions/swapUnevenVaults.ts +105 -0
- package/src/kamino-client/instructions/updateCollateralInfo.ts +48 -0
- package/src/kamino-client/instructions/updateGlobalConfig.ts +48 -0
- package/src/kamino-client/instructions/updateRewardMapping.ts +61 -0
- package/src/kamino-client/instructions/updateSharesMetadata.ts +60 -0
- package/src/kamino-client/instructions/updateStrategyAdmin.ts +24 -0
- package/src/kamino-client/instructions/updateStrategyConfig.ts +49 -0
- package/src/kamino-client/instructions/updateTreasuryFeeVault.ts +56 -0
- package/src/kamino-client/instructions/withdraw.ts +108 -0
- package/src/kamino-client/instructions/withdrawFromTopup.ts +40 -0
- package/src/kamino-client/instructions/withdrawFromTreasury.ts +56 -0
- package/src/kamino-client/programId.ts +13 -0
- package/src/kamino-client/types/BalanceStatus.ts +90 -0
- package/src/kamino-client/types/BinAddLiquidityStrategy.ts +189 -0
- package/src/kamino-client/types/CollateralInfo.ts +184 -0
- package/src/kamino-client/types/CollateralInfoParams.ts +166 -0
- package/src/kamino-client/types/CollateralTestToken.ts +870 -0
- package/src/kamino-client/types/CreationStatus.ts +180 -0
- package/src/kamino-client/types/DEX.ts +118 -0
- package/src/kamino-client/types/DexSpecificPrice.ts +116 -0
- package/src/kamino-client/types/DriftDirection.ts +90 -0
- package/src/kamino-client/types/ExecutiveWithdrawAction.ts +120 -0
- package/src/kamino-client/types/ExpanderStep.ts +101 -0
- package/src/kamino-client/types/GlobalConfigOption.ts +720 -0
- package/src/kamino-client/types/KaminoRewardInfo.ts +130 -0
- package/src/kamino-client/types/LiquidityCalculationMode.ts +90 -0
- package/src/kamino-client/types/MintingMethod.ts +90 -0
- package/src/kamino-client/types/PeriodicRebalanceState.ts +53 -0
- package/src/kamino-client/types/PositionRewardInfo.ts +64 -0
- package/src/kamino-client/types/Price.ts +61 -0
- package/src/kamino-client/types/RebalanceAction.ts +166 -0
- package/src/kamino-client/types/RebalanceAutodriftParams.ts +122 -0
- package/src/kamino-client/types/RebalanceAutodriftState.ts +84 -0
- package/src/kamino-client/types/RebalanceAutodriftStep.ts +90 -0
- package/src/kamino-client/types/RebalanceAutodriftWindow.ts +106 -0
- package/src/kamino-client/types/RebalanceDriftParams.ts +94 -0
- package/src/kamino-client/types/RebalanceDriftState.ts +76 -0
- package/src/kamino-client/types/RebalanceDriftStep.ts +90 -0
- package/src/kamino-client/types/RebalanceEffects.ts +104 -0
- package/src/kamino-client/types/RebalanceExpanderState.ts +64 -0
- package/src/kamino-client/types/RebalanceManualState.ts +37 -0
- package/src/kamino-client/types/RebalancePricePercentageState.ts +69 -0
- package/src/kamino-client/types/RebalancePricePercentageWithResetState.ts +77 -0
- package/src/kamino-client/types/RebalanceRaw.ts +76 -0
- package/src/kamino-client/types/RebalanceTakeProfitState.ts +56 -0
- package/src/kamino-client/types/RebalanceTakeProfitStep.ts +120 -0
- package/src/kamino-client/types/RebalanceTakeProfitToken.ts +87 -0
- package/src/kamino-client/types/RebalanceType.ts +270 -0
- package/src/kamino-client/types/ReferencePriceType.ts +90 -0
- package/src/kamino-client/types/RemoveLiquidityMode.ts +146 -0
- package/src/kamino-client/types/RewardInfo.ts +190 -0
- package/src/kamino-client/types/ScopeConversionChain.ts +0 -0
- package/src/kamino-client/types/ScopePriceIdTest.ts +2130 -0
- package/src/kamino-client/types/SimulationPrice.ts +146 -0
- package/src/kamino-client/types/StakingRateSource.ts +90 -0
- package/src/kamino-client/types/StrategyConfigOption.ts +1590 -0
- package/src/kamino-client/types/StrategyStatus.ts +180 -0
- package/src/kamino-client/types/StrategyType.ts +118 -0
- package/src/kamino-client/types/SwapLimit.ts +157 -0
- package/src/kamino-client/types/UpdateCollateralInfoMode.ts +420 -0
- package/src/kamino-client/types/WhirlpoolRewardInfo.ts +118 -0
- package/src/kamino-client/types/WithdrawalCapAccumulatorAction.ts +92 -0
- package/src/kamino-client/types/WithdrawalCaps.ts +85 -0
- package/src/kamino-client/types/index.ts +765 -0
- package/src/meteora_client/accounts/BinArray.ts +134 -0
- package/src/meteora_client/accounts/BinArrayBitmapExtension.ts +119 -0
- package/src/meteora_client/accounts/LbPair.ts +401 -0
- package/src/meteora_client/accounts/Oracle.ts +114 -0
- package/src/meteora_client/accounts/Position.ts +229 -0
- package/src/meteora_client/accounts/PositionV2.ts +277 -0
- package/src/meteora_client/accounts/PresetParameter.ts +191 -0
- package/src/meteora_client/accounts/index.ts +20 -0
- package/src/meteora_client/errors/anchor.ts +773 -0
- package/src/meteora_client/errors/custom.ts +834 -0
- package/src/meteora_client/errors/index.ts +62 -0
- package/src/meteora_client/instructions/addLiquidity.ts +74 -0
- package/src/meteora_client/instructions/addLiquidityByStrategy.ts +74 -0
- package/src/meteora_client/instructions/addLiquidityByStrategyOneSide.ts +66 -0
- package/src/meteora_client/instructions/addLiquidityByWeight.ts +74 -0
- package/src/meteora_client/instructions/addLiquidityOneSide.ts +66 -0
- package/src/meteora_client/instructions/addLiquidityOneSidePrecise.ts +66 -0
- package/src/meteora_client/instructions/claimFee.ts +48 -0
- package/src/meteora_client/instructions/claimReward.ts +56 -0
- package/src/meteora_client/instructions/closePosition.ts +36 -0
- package/src/meteora_client/instructions/closePresetParameter.ts +26 -0
- package/src/meteora_client/instructions/fundReward.ts +60 -0
- package/src/meteora_client/instructions/goToABin.ts +50 -0
- package/src/meteora_client/instructions/increaseOracleLength.ts +44 -0
- package/src/meteora_client/instructions/index.ts +165 -0
- package/src/meteora_client/instructions/initializeBinArray.ts +42 -0
- package/src/meteora_client/instructions/initializeBinArrayBitmapExtension.ts +35 -0
- package/src/meteora_client/instructions/initializeLbPair.ts +71 -0
- package/src/meteora_client/instructions/initializePermissionLbPair.ts +68 -0
- package/src/meteora_client/instructions/initializePosition.ts +55 -0
- package/src/meteora_client/instructions/initializePositionByOperator.ts +64 -0
- package/src/meteora_client/instructions/initializePositionPda.ts +58 -0
- package/src/meteora_client/instructions/initializePresetParameter.ts +42 -0
- package/src/meteora_client/instructions/initializeReward.ts +60 -0
- package/src/meteora_client/instructions/migrateBinArray.ts +22 -0
- package/src/meteora_client/instructions/migratePosition.ts +40 -0
- package/src/meteora_client/instructions/removeAllLiquidity.ts +56 -0
- package/src/meteora_client/instructions/removeLiquidity.ts +74 -0
- package/src/meteora_client/instructions/removeLiquidityByRange.ts +78 -0
- package/src/meteora_client/instructions/setActivationSlot.ts +38 -0
- package/src/meteora_client/instructions/setLockReleaseSlot.ts +44 -0
- package/src/meteora_client/instructions/setPreActivationSlotDuration.ts +38 -0
- package/src/meteora_client/instructions/setPreActivationSwapAddress.ts +40 -0
- package/src/meteora_client/instructions/swap.ts +73 -0
- package/src/meteora_client/instructions/togglePairStatus.ts +24 -0
- package/src/meteora_client/instructions/updateFeeOwner.ts +26 -0
- package/src/meteora_client/instructions/updateFeeParameters.ts +42 -0
- package/src/meteora_client/instructions/updateFeesAndRewards.ts +30 -0
- package/src/meteora_client/instructions/updatePositionOperator.ts +42 -0
- package/src/meteora_client/instructions/updateRewardDuration.ts +49 -0
- package/src/meteora_client/instructions/updateRewardFunder.ts +47 -0
- package/src/meteora_client/instructions/updateWhitelistedWallet.ts +38 -0
- package/src/meteora_client/instructions/withdrawIneligibleReward.ts +52 -0
- package/src/meteora_client/instructions/withdrawProtocolFee.ts +54 -0
- package/src/meteora_client/programId.ts +14 -0
- package/src/meteora_client/types/AddLiquiditySingleSidePreciseParameter.ts +79 -0
- package/src/meteora_client/types/Bin.ts +161 -0
- package/src/meteora_client/types/BinLiquidityDistribution.ts +85 -0
- package/src/meteora_client/types/BinLiquidityDistributionByWeight.ts +69 -0
- package/src/meteora_client/types/BinLiquidityReduction.ts +64 -0
- package/src/meteora_client/types/CompressedBinDepositAmount.ts +63 -0
- package/src/meteora_client/types/FeeInfo.ts +85 -0
- package/src/meteora_client/types/FeeParameter.ts +70 -0
- package/src/meteora_client/types/InitPermissionPairIx.ts +103 -0
- package/src/meteora_client/types/InitPresetParametersIx.ts +169 -0
- package/src/meteora_client/types/LayoutVersion.ts +87 -0
- package/src/meteora_client/types/LiquidityOneSideParameter.ts +112 -0
- package/src/meteora_client/types/LiquidityParameter.ts +95 -0
- package/src/meteora_client/types/LiquidityParameterByStrategy.ts +119 -0
- package/src/meteora_client/types/LiquidityParameterByStrategyOneSide.ts +107 -0
- package/src/meteora_client/types/LiquidityParameterByWeight.ts +124 -0
- package/src/meteora_client/types/Observation.ts +85 -0
- package/src/meteora_client/types/PairStatus.ts +88 -0
- package/src/meteora_client/types/PairType.ts +88 -0
- package/src/meteora_client/types/ProtocolFee.ts +61 -0
- package/src/meteora_client/types/RewardInfo.ts +152 -0
- package/src/meteora_client/types/Rounding.ts +85 -0
- package/src/meteora_client/types/StaticParameters.ts +170 -0
- package/src/meteora_client/types/StrategyParameters.ts +97 -0
- package/src/meteora_client/types/StrategyType.ts +298 -0
- package/src/meteora_client/types/UserRewardInfo.ts +71 -0
- package/src/meteora_client/types/VariableParameters.ts +131 -0
- package/src/meteora_client/types/index.ts +140 -0
- package/src/models/EnrichedScopePrice.ts +32 -0
- package/src/models/Holdings.ts +15 -0
- package/src/models/KaminoPosition.ts +12 -0
- package/src/models/KaminoStrategyWithShareMint.ts +8 -0
- package/src/models/KaminoToken.ts +6 -0
- package/src/models/LbPairWithAddress.ts +9 -0
- package/src/models/MultipleAccountsResponse.ts +49 -0
- package/src/models/PoolSimulationResponseData.ts +28 -0
- package/src/models/PriceData.ts +17 -0
- package/src/models/RaydiumPoolWithAddress.ts +9 -0
- package/src/models/ShareData.ts +34 -0
- package/src/models/StrategyBalances.ts +15 -0
- package/src/models/StrategyHolder.ts +7 -0
- package/src/models/StrategyPrices.ts +11 -0
- package/src/models/StrategyProgramAddress.ts +14 -0
- package/src/models/StrategyVaultBalances.ts +6 -0
- package/src/models/StrategyVaultTokens.ts +14 -0
- package/src/models/StrategyWithAddress.ts +9 -0
- package/src/models/StrategyWithPendingFees.ts +7 -0
- package/src/models/TokenAmounts.ts +6 -0
- package/src/models/TreasuryFeeVault.ts +9 -0
- package/src/models/WhirlpoolWithAddress.ts +9 -0
- package/src/models/index.ts +19 -0
- package/src/raydium_client/accounts/AmmConfig.ts +161 -0
- package/src/raydium_client/accounts/ObservationState.ts +121 -0
- package/src/raydium_client/accounts/OperationState.ts +105 -0
- package/src/raydium_client/accounts/PersonalPositionState.ts +185 -0
- package/src/raydium_client/accounts/PoolState.ts +385 -0
- package/src/raydium_client/accounts/ProtocolPositionState.ts +171 -0
- package/src/raydium_client/accounts/TickArrayBitmapExtension.ts +113 -0
- package/src/raydium_client/accounts/TickArrayState.ts +125 -0
- package/src/raydium_client/accounts/index.ts +28 -0
- package/src/raydium_client/errors/anchor.ts +773 -0
- package/src/raydium_client/errors/custom.ts +611 -0
- package/src/raydium_client/errors/index.ts +62 -0
- package/src/raydium_client/index.ts +4 -0
- package/src/raydium_client/instructions/closePosition.ts +32 -0
- package/src/raydium_client/instructions/collectFundFee.ts +69 -0
- package/src/raydium_client/instructions/collectProtocolFee.ts +69 -0
- package/src/raydium_client/instructions/collectRemainingRewards.ts +50 -0
- package/src/raydium_client/instructions/createAmmConfig.ts +54 -0
- package/src/raydium_client/instructions/createOperationAccount.ts +26 -0
- package/src/raydium_client/instructions/createPool.ts +65 -0
- package/src/raydium_client/instructions/decreaseLiquidity.ts +74 -0
- package/src/raydium_client/instructions/decreaseLiquidityV2.ts +82 -0
- package/src/raydium_client/instructions/increaseLiquidity.ts +66 -0
- package/src/raydium_client/instructions/increaseLiquidityV2.ts +75 -0
- package/src/raydium_client/instructions/index.ts +94 -0
- package/src/raydium_client/instructions/initializeReward.ts +56 -0
- package/src/raydium_client/instructions/openPosition.ts +96 -0
- package/src/raydium_client/instructions/openPositionV2.ts +108 -0
- package/src/raydium_client/instructions/setRewardParams.ts +57 -0
- package/src/raydium_client/instructions/swap.ts +65 -0
- package/src/raydium_client/instructions/swapRouterBaseIn.ts +51 -0
- package/src/raydium_client/instructions/swapV2.ts +71 -0
- package/src/raydium_client/instructions/transferRewardOwner.ts +38 -0
- package/src/raydium_client/instructions/updateAmmConfig.ts +40 -0
- package/src/raydium_client/instructions/updateOperationAccount.ts +45 -0
- package/src/raydium_client/instructions/updatePoolStatus.ts +38 -0
- package/src/raydium_client/instructions/updateRewardInfos.ts +22 -0
- package/src/raydium_client/programId.ts +14 -0
- package/src/raydium_client/types/InitializeRewardParam.ts +76 -0
- package/src/raydium_client/types/Observation.ts +85 -0
- package/src/raydium_client/types/PoolStatusBitFlag.ts +90 -0
- package/src/raydium_client/types/PoolStatusBitIndex.ts +180 -0
- package/src/raydium_client/types/PositionRewardInfo.ts +64 -0
- package/src/raydium_client/types/RewardInfo.ts +148 -0
- package/src/raydium_client/types/RewardState.ts +148 -0
- package/src/raydium_client/types/TickArryBitmap.ts +0 -0
- package/src/raydium_client/types/TickState.ts +116 -0
- package/src/raydium_client/types/index.ts +56 -0
- package/src/rebalance_methods/autodriftRebalance.ts +363 -0
- package/src/rebalance_methods/consts.ts +1 -0
- package/src/rebalance_methods/driftRebalance.ts +314 -0
- package/src/rebalance_methods/expanderRebalance.ts +371 -0
- package/src/rebalance_methods/index.ts +7 -0
- package/src/rebalance_methods/manualRebalance.ts +43 -0
- package/src/rebalance_methods/math_utils.ts +28 -0
- package/src/rebalance_methods/periodicRebalance.ts +115 -0
- package/src/rebalance_methods/pricePercentageRebalance.ts +184 -0
- package/src/rebalance_methods/pricePercentageWithResetRebalance.ts +329 -0
- package/src/rebalance_methods/takeProfitRebalance.ts +130 -0
- package/src/rebalance_methods/utils.ts +128 -0
- package/src/services/JupService.ts +176 -0
- package/src/services/MeteoraService.ts +260 -0
- package/src/services/OrcaService.ts +383 -0
- package/src/services/OrcaWhirlpoolsResponse.ts +120 -0
- package/src/services/PoolSimulationService.ts +42 -0
- package/src/services/RaydiumPoolsResponse.ts +96 -0
- package/src/services/RaydiumService.ts +320 -0
- package/src/services/WhirlpoolAprApy.ts +14 -0
- package/src/services/index.ts +5 -0
- package/src/utils/CreationParameters.ts +100 -0
- package/src/utils/anchorUtils.ts +15 -0
- package/src/utils/batch.ts +14 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/instructions.ts +38 -0
- package/src/utils/lookupTable.ts +52 -0
- package/src/utils/math.ts +10 -0
- package/src/utils/meteora.ts +94 -0
- package/src/utils/orca.ts +12 -0
- package/src/utils/priceReferenceTypes.ts +11 -0
- package/src/utils/pubkey.ts +249 -0
- package/src/utils/raydium.ts +10 -0
- package/src/utils/tokenUtils.ts +259 -0
- package/src/utils/transactions.ts +201 -0
- package/src/utils/types.ts +312 -0
- package/src/utils/utils.ts +312 -0
- package/src/whirlpools-client/accounts/FeeTier.ts +105 -0
- package/src/whirlpools-client/accounts/Position.ts +169 -0
- package/src/whirlpools-client/accounts/PositionBundle.ts +97 -0
- package/src/whirlpools-client/accounts/TickArray.ts +109 -0
- package/src/whirlpools-client/accounts/TokenBadge.ts +97 -0
- package/src/whirlpools-client/accounts/Whirlpool.ts +241 -0
- package/src/whirlpools-client/accounts/WhirlpoolsConfig.ts +119 -0
- package/src/whirlpools-client/accounts/WhirlpoolsConfigExtension.ts +107 -0
- package/src/whirlpools-client/accounts/index.ts +22 -0
- package/src/whirlpools-client/errors/anchor.ts +773 -0
- package/src/whirlpools-client/errors/custom.ts +773 -0
- package/src/whirlpools-client/errors/index.ts +62 -0
- package/src/whirlpools-client/index.ts +4 -0
- package/src/whirlpools-client/instructions/closeBundledPosition.ts +52 -0
- package/src/whirlpools-client/instructions/closePosition.ts +36 -0
- package/src/whirlpools-client/instructions/collectFees.ts +42 -0
- package/src/whirlpools-client/instructions/collectFeesV2.ts +71 -0
- package/src/whirlpools-client/instructions/collectProtocolFees.ts +40 -0
- package/src/whirlpools-client/instructions/collectProtocolFeesV2.ts +69 -0
- package/src/whirlpools-client/instructions/collectReward.ts +52 -0
- package/src/whirlpools-client/instructions/collectRewardV2.ts +66 -0
- package/src/whirlpools-client/instructions/decreaseLiquidity.ts +68 -0
- package/src/whirlpools-client/instructions/decreaseLiquidityV2.ts +84 -0
- package/src/whirlpools-client/instructions/deletePositionBundle.ts +36 -0
- package/src/whirlpools-client/instructions/deleteTokenBadge.ts +36 -0
- package/src/whirlpools-client/instructions/increaseLiquidity.ts +68 -0
- package/src/whirlpools-client/instructions/increaseLiquidityV2.ts +84 -0
- package/src/whirlpools-client/instructions/index.ts +161 -0
- package/src/whirlpools-client/instructions/initializeConfig.ts +51 -0
- package/src/whirlpools-client/instructions/initializeConfigExtension.ts +30 -0
- package/src/whirlpools-client/instructions/initializeFeeTier.ts +49 -0
- package/src/whirlpools-client/instructions/initializePool.ts +64 -0
- package/src/whirlpools-client/instructions/initializePoolV2.ts +67 -0
- package/src/whirlpools-client/instructions/initializePositionBundle.ts +50 -0
- package/src/whirlpools-client/instructions/initializePositionBundleWithMetadata.ts +60 -0
- package/src/whirlpools-client/instructions/initializeReward.ts +50 -0
- package/src/whirlpools-client/instructions/initializeRewardV2.ts +52 -0
- package/src/whirlpools-client/instructions/initializeTickArray.ts +42 -0
- package/src/whirlpools-client/instructions/initializeTokenBadge.ts +38 -0
- package/src/whirlpools-client/instructions/openBundledPosition.ts +66 -0
- package/src/whirlpools-client/instructions/openPosition.ts +70 -0
- package/src/whirlpools-client/instructions/openPositionWithMetadata.ts +80 -0
- package/src/whirlpools-client/instructions/setCollectProtocolFeesAuthority.ts +34 -0
- package/src/whirlpools-client/instructions/setConfigExtensionAuthority.ts +40 -0
- package/src/whirlpools-client/instructions/setDefaultFeeRate.ts +40 -0
- package/src/whirlpools-client/instructions/setDefaultProtocolFeeRate.ts +38 -0
- package/src/whirlpools-client/instructions/setFeeAuthority.ts +26 -0
- package/src/whirlpools-client/instructions/setFeeRate.ts +40 -0
- package/src/whirlpools-client/instructions/setProtocolFeeRate.ts +40 -0
- package/src/whirlpools-client/instructions/setRewardAuthority.ts +40 -0
- package/src/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.ts +46 -0
- package/src/whirlpools-client/instructions/setRewardEmissions.ts +45 -0
- package/src/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.ts +34 -0
- package/src/whirlpools-client/instructions/setRewardEmissionsV2.ts +45 -0
- package/src/whirlpools-client/instructions/setTokenBadgeAuthority.ts +40 -0
- package/src/whirlpools-client/instructions/swap.ts +70 -0
- package/src/whirlpools-client/instructions/swapV2.ts +86 -0
- package/src/whirlpools-client/instructions/twoHopSwap.ts +110 -0
- package/src/whirlpools-client/instructions/twoHopSwapV2.ts +134 -0
- package/src/whirlpools-client/instructions/updateFeesAndRewards.ts +28 -0
- package/src/whirlpools-client/programId.ts +14 -0
- package/src/whirlpools-client/shim/remove-liquidity.ts +129 -0
- package/src/whirlpools-client/types/AccountsType.ts +208 -0
- package/src/whirlpools-client/types/CurrIndex.ts +118 -0
- package/src/whirlpools-client/types/Direction.ts +88 -0
- package/src/whirlpools-client/types/OpenPositionBumps.ts +53 -0
- package/src/whirlpools-client/types/OpenPositionWithMetadataBumps.ts +66 -0
- package/src/whirlpools-client/types/PositionRewardInfo.ts +64 -0
- package/src/whirlpools-client/types/RemainingAccountsInfo.ts +66 -0
- package/src/whirlpools-client/types/RemainingAccountsSlice.ts +64 -0
- package/src/whirlpools-client/types/Tick.ts +107 -0
- package/src/whirlpools-client/types/TickLabel.ts +88 -0
- package/src/whirlpools-client/types/WhirlpoolBumps.ts +53 -0
- package/src/whirlpools-client/types/WhirlpoolRewardInfo.ts +94 -0
- package/src/whirlpools-client/types/index.ts +73 -0
|
@@ -22,15 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
27
|
};
|
|
@@ -42,6 +33,45 @@ const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line
|
|
|
42
33
|
const types = __importStar(require("../types")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
43
34
|
const programId_1 = require("../programId");
|
|
44
35
|
class PersonalPositionState {
|
|
36
|
+
/** Bump to identify PDA */
|
|
37
|
+
bump;
|
|
38
|
+
/** Mint address of the tokenized position */
|
|
39
|
+
nftMint;
|
|
40
|
+
/** The ID of the pool with which this token is connected */
|
|
41
|
+
poolId;
|
|
42
|
+
/** The lower bound tick of the position */
|
|
43
|
+
tickLowerIndex;
|
|
44
|
+
/** The upper bound tick of the position */
|
|
45
|
+
tickUpperIndex;
|
|
46
|
+
/** The amount of liquidity owned by this position */
|
|
47
|
+
liquidity;
|
|
48
|
+
/** The token_0 fee growth of the aggregate position as of the last action on the individual position */
|
|
49
|
+
feeGrowthInside0LastX64;
|
|
50
|
+
/** The token_1 fee growth of the aggregate position as of the last action on the individual position */
|
|
51
|
+
feeGrowthInside1LastX64;
|
|
52
|
+
/** The fees owed to the position owner in token_0, as of the last computation */
|
|
53
|
+
tokenFeesOwed0;
|
|
54
|
+
/** The fees owed to the position owner in token_1, as of the last computation */
|
|
55
|
+
tokenFeesOwed1;
|
|
56
|
+
rewardInfos;
|
|
57
|
+
padding;
|
|
58
|
+
static discriminator = Buffer.from([
|
|
59
|
+
70, 111, 150, 126, 230, 15, 25, 117,
|
|
60
|
+
]);
|
|
61
|
+
static layout = borsh.struct([
|
|
62
|
+
borsh.u8("bump"),
|
|
63
|
+
borsh.publicKey("nftMint"),
|
|
64
|
+
borsh.publicKey("poolId"),
|
|
65
|
+
borsh.i32("tickLowerIndex"),
|
|
66
|
+
borsh.i32("tickUpperIndex"),
|
|
67
|
+
borsh.u128("liquidity"),
|
|
68
|
+
borsh.u128("feeGrowthInside0LastX64"),
|
|
69
|
+
borsh.u128("feeGrowthInside1LastX64"),
|
|
70
|
+
borsh.u64("tokenFeesOwed0"),
|
|
71
|
+
borsh.u64("tokenFeesOwed1"),
|
|
72
|
+
borsh.array(types.PositionRewardInfo.layout(), 3, "rewardInfos"),
|
|
73
|
+
borsh.array(borsh.u64(), 8, "padding"),
|
|
74
|
+
]);
|
|
45
75
|
constructor(fields) {
|
|
46
76
|
this.bump = fields.bump;
|
|
47
77
|
this.nftMint = fields.nftMint;
|
|
@@ -53,12 +83,22 @@ class PersonalPositionState {
|
|
|
53
83
|
this.feeGrowthInside1LastX64 = fields.feeGrowthInside1LastX64;
|
|
54
84
|
this.tokenFeesOwed0 = fields.tokenFeesOwed0;
|
|
55
85
|
this.tokenFeesOwed1 = fields.tokenFeesOwed1;
|
|
56
|
-
this.rewardInfos = fields.rewardInfos.map((item) => new types.PositionRewardInfo(
|
|
86
|
+
this.rewardInfos = fields.rewardInfos.map((item) => new types.PositionRewardInfo({ ...item }));
|
|
57
87
|
this.padding = fields.padding;
|
|
58
88
|
}
|
|
59
|
-
static fetch(
|
|
60
|
-
|
|
61
|
-
|
|
89
|
+
static async fetch(c, address, programId = programId_1.PROGRAM_ID) {
|
|
90
|
+
const info = await c.getAccountInfo(address);
|
|
91
|
+
if (info === null) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
if (!info.owner.equals(programId)) {
|
|
95
|
+
throw new Error("account doesn't belong to this program");
|
|
96
|
+
}
|
|
97
|
+
return this.decode(info.data);
|
|
98
|
+
}
|
|
99
|
+
static async fetchMultiple(c, addresses, programId = programId_1.PROGRAM_ID) {
|
|
100
|
+
const infos = await c.getMultipleAccountsInfo(addresses);
|
|
101
|
+
return infos.map((info) => {
|
|
62
102
|
if (info === null) {
|
|
63
103
|
return null;
|
|
64
104
|
}
|
|
@@ -68,20 +108,6 @@ class PersonalPositionState {
|
|
|
68
108
|
return this.decode(info.data);
|
|
69
109
|
});
|
|
70
110
|
}
|
|
71
|
-
static fetchMultiple(c_1, addresses_1) {
|
|
72
|
-
return __awaiter(this, arguments, void 0, function* (c, addresses, programId = programId_1.PROGRAM_ID) {
|
|
73
|
-
const infos = yield c.getMultipleAccountsInfo(addresses);
|
|
74
|
-
return infos.map((info) => {
|
|
75
|
-
if (info === null) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
if (!info.owner.equals(programId)) {
|
|
79
|
-
throw new Error("account doesn't belong to this program");
|
|
80
|
-
}
|
|
81
|
-
return this.decode(info.data);
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
111
|
static decode(data) {
|
|
86
112
|
if (!data.slice(0, 8).equals(PersonalPositionState.discriminator)) {
|
|
87
113
|
throw new Error("invalid account discriminator");
|
|
@@ -136,21 +162,4 @@ class PersonalPositionState {
|
|
|
136
162
|
}
|
|
137
163
|
}
|
|
138
164
|
exports.PersonalPositionState = PersonalPositionState;
|
|
139
|
-
PersonalPositionState.discriminator = Buffer.from([
|
|
140
|
-
70, 111, 150, 126, 230, 15, 25, 117,
|
|
141
|
-
]);
|
|
142
|
-
PersonalPositionState.layout = borsh.struct([
|
|
143
|
-
borsh.u8("bump"),
|
|
144
|
-
borsh.publicKey("nftMint"),
|
|
145
|
-
borsh.publicKey("poolId"),
|
|
146
|
-
borsh.i32("tickLowerIndex"),
|
|
147
|
-
borsh.i32("tickUpperIndex"),
|
|
148
|
-
borsh.u128("liquidity"),
|
|
149
|
-
borsh.u128("feeGrowthInside0LastX64"),
|
|
150
|
-
borsh.u128("feeGrowthInside1LastX64"),
|
|
151
|
-
borsh.u64("tokenFeesOwed0"),
|
|
152
|
-
borsh.u64("tokenFeesOwed1"),
|
|
153
|
-
borsh.array(types.PositionRewardInfo.layout(), 3, "rewardInfos"),
|
|
154
|
-
borsh.array(borsh.u64(), 8, "padding"),
|
|
155
|
-
]);
|
|
156
165
|
//# sourceMappingURL=PersonalPositionState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonalPositionState.js","sourceRoot":"","sources":["../../../src/kamino-client/accounts/PersonalPositionState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,kDAAsB,CAAC,wDAAwD;AAC/E,wDAAyC,CAAC,wDAAwD;AAClG,gDAAiC,CAAC,wDAAwD;AAC1F,4CAAyC;AAoDzC,MAAa,qBAAqB;IA2ChC,YAAY,MAAmC;QAC7C,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAA;QAC7D,IAAI,CAAC,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAA;QAC7D,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CACvC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,kBAAkB,mBAAM,IAAI,EAAG,CACpD,CAAA;QACD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;IAC/B,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AAC;IAC1C,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG;CACpC,CAAC,CAAA;AAEc,4BAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IACpC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC;IAChB,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;IACzB,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3B,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3B,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;IACvB,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC;IACrC,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC;IACrC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3B,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,aAAa,CAAC;IAChE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC;CACvC,CAAC,CAAA","sourcesContent":["import { PublicKey, Connection } from \"@solana/web3.js\"\nimport BN from \"bn.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as borsh from \"@coral-xyz/borsh\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as types from \"../types\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport { PROGRAM_ID } from \"../programId\"\n\nexport interface PersonalPositionStateFields {\n /** Bump to identify PDA */\n bump: number\n /** Mint address of the tokenized position */\n nftMint: PublicKey\n /** The ID of the pool with which this token is connected */\n poolId: PublicKey\n /** The lower bound tick of the position */\n tickLowerIndex: number\n /** The upper bound tick of the position */\n tickUpperIndex: number\n /** The amount of liquidity owned by this position */\n liquidity: BN\n /** The token_0 fee growth of the aggregate position as of the last action on the individual position */\n feeGrowthInside0LastX64: BN\n /** The token_1 fee growth of the aggregate position as of the last action on the individual position */\n feeGrowthInside1LastX64: BN\n /** The fees owed to the position owner in token_0, as of the last computation */\n tokenFeesOwed0: BN\n /** The fees owed to the position owner in token_1, as of the last computation */\n tokenFeesOwed1: BN\n rewardInfos: Array<types.PositionRewardInfoFields>\n padding: Array<BN>\n}\n\nexport interface PersonalPositionStateJSON {\n /** Bump to identify PDA */\n bump: number\n /** Mint address of the tokenized position */\n nftMint: string\n /** The ID of the pool with which this token is connected */\n poolId: string\n /** The lower bound tick of the position */\n tickLowerIndex: number\n /** The upper bound tick of the position */\n tickUpperIndex: number\n /** The amount of liquidity owned by this position */\n liquidity: string\n /** The token_0 fee growth of the aggregate position as of the last action on the individual position */\n feeGrowthInside0LastX64: string\n /** The token_1 fee growth of the aggregate position as of the last action on the individual position */\n feeGrowthInside1LastX64: string\n /** The fees owed to the position owner in token_0, as of the last computation */\n tokenFeesOwed0: string\n /** The fees owed to the position owner in token_1, as of the last computation */\n tokenFeesOwed1: string\n rewardInfos: Array<types.PositionRewardInfoJSON>\n padding: Array<string>\n}\n\nexport class PersonalPositionState {\n /** Bump to identify PDA */\n readonly bump: number\n /** Mint address of the tokenized position */\n readonly nftMint: PublicKey\n /** The ID of the pool with which this token is connected */\n readonly poolId: PublicKey\n /** The lower bound tick of the position */\n readonly tickLowerIndex: number\n /** The upper bound tick of the position */\n readonly tickUpperIndex: number\n /** The amount of liquidity owned by this position */\n readonly liquidity: BN\n /** The token_0 fee growth of the aggregate position as of the last action on the individual position */\n readonly feeGrowthInside0LastX64: BN\n /** The token_1 fee growth of the aggregate position as of the last action on the individual position */\n readonly feeGrowthInside1LastX64: BN\n /** The fees owed to the position owner in token_0, as of the last computation */\n readonly tokenFeesOwed0: BN\n /** The fees owed to the position owner in token_1, as of the last computation */\n readonly tokenFeesOwed1: BN\n readonly rewardInfos: Array<types.PositionRewardInfo>\n readonly padding: Array<BN>\n\n static readonly discriminator = Buffer.from([\n 70, 111, 150, 126, 230, 15, 25, 117,\n ])\n\n static readonly layout = borsh.struct([\n borsh.u8(\"bump\"),\n borsh.publicKey(\"nftMint\"),\n borsh.publicKey(\"poolId\"),\n borsh.i32(\"tickLowerIndex\"),\n borsh.i32(\"tickUpperIndex\"),\n borsh.u128(\"liquidity\"),\n borsh.u128(\"feeGrowthInside0LastX64\"),\n borsh.u128(\"feeGrowthInside1LastX64\"),\n borsh.u64(\"tokenFeesOwed0\"),\n borsh.u64(\"tokenFeesOwed1\"),\n borsh.array(types.PositionRewardInfo.layout(), 3, \"rewardInfos\"),\n borsh.array(borsh.u64(), 8, \"padding\"),\n ])\n\n constructor(fields: PersonalPositionStateFields) {\n this.bump = fields.bump\n this.nftMint = fields.nftMint\n this.poolId = fields.poolId\n this.tickLowerIndex = fields.tickLowerIndex\n this.tickUpperIndex = fields.tickUpperIndex\n this.liquidity = fields.liquidity\n this.feeGrowthInside0LastX64 = fields.feeGrowthInside0LastX64\n this.feeGrowthInside1LastX64 = fields.feeGrowthInside1LastX64\n this.tokenFeesOwed0 = fields.tokenFeesOwed0\n this.tokenFeesOwed1 = fields.tokenFeesOwed1\n this.rewardInfos = fields.rewardInfos.map(\n (item) => new types.PositionRewardInfo({ ...item })\n )\n this.padding = fields.padding\n }\n\n static async fetch(\n c: Connection,\n address: PublicKey,\n programId: PublicKey = PROGRAM_ID\n ): Promise<PersonalPositionState | null> {\n const info = await c.getAccountInfo(address)\n\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n }\n\n static async fetchMultiple(\n c: Connection,\n addresses: PublicKey[],\n programId: PublicKey = PROGRAM_ID\n ): Promise<Array<PersonalPositionState | null>> {\n const infos = await c.getMultipleAccountsInfo(addresses)\n\n return infos.map((info) => {\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n })\n }\n\n static decode(data: Buffer): PersonalPositionState {\n if (!data.slice(0, 8).equals(PersonalPositionState.discriminator)) {\n throw new Error(\"invalid account discriminator\")\n }\n\n const dec = PersonalPositionState.layout.decode(data.slice(8))\n\n return new PersonalPositionState({\n bump: dec.bump,\n nftMint: dec.nftMint,\n poolId: dec.poolId,\n tickLowerIndex: dec.tickLowerIndex,\n tickUpperIndex: dec.tickUpperIndex,\n liquidity: dec.liquidity,\n feeGrowthInside0LastX64: dec.feeGrowthInside0LastX64,\n feeGrowthInside1LastX64: dec.feeGrowthInside1LastX64,\n tokenFeesOwed0: dec.tokenFeesOwed0,\n tokenFeesOwed1: dec.tokenFeesOwed1,\n rewardInfos: dec.rewardInfos.map(\n (\n item: any /* eslint-disable-line @typescript-eslint/no-explicit-any */\n ) => types.PositionRewardInfo.fromDecoded(item)\n ),\n padding: dec.padding,\n })\n }\n\n toJSON(): PersonalPositionStateJSON {\n return {\n bump: this.bump,\n nftMint: this.nftMint.toString(),\n poolId: this.poolId.toString(),\n tickLowerIndex: this.tickLowerIndex,\n tickUpperIndex: this.tickUpperIndex,\n liquidity: this.liquidity.toString(),\n feeGrowthInside0LastX64: this.feeGrowthInside0LastX64.toString(),\n feeGrowthInside1LastX64: this.feeGrowthInside1LastX64.toString(),\n tokenFeesOwed0: this.tokenFeesOwed0.toString(),\n tokenFeesOwed1: this.tokenFeesOwed1.toString(),\n rewardInfos: this.rewardInfos.map((item) => item.toJSON()),\n padding: this.padding.map((item) => item.toString()),\n }\n }\n\n static fromJSON(obj: PersonalPositionStateJSON): PersonalPositionState {\n return new PersonalPositionState({\n bump: obj.bump,\n nftMint: new PublicKey(obj.nftMint),\n poolId: new PublicKey(obj.poolId),\n tickLowerIndex: obj.tickLowerIndex,\n tickUpperIndex: obj.tickUpperIndex,\n liquidity: new BN(obj.liquidity),\n feeGrowthInside0LastX64: new BN(obj.feeGrowthInside0LastX64),\n feeGrowthInside1LastX64: new BN(obj.feeGrowthInside1LastX64),\n tokenFeesOwed0: new BN(obj.tokenFeesOwed0),\n tokenFeesOwed1: new BN(obj.tokenFeesOwed1),\n rewardInfos: obj.rewardInfos.map((item) =>\n types.PositionRewardInfo.fromJSON(item)\n ),\n padding: obj.padding.map((item) => new BN(item)),\n })\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PersonalPositionState.js","sourceRoot":"","sources":["../../../src/kamino-client/accounts/PersonalPositionState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,kDAAsB,CAAC,wDAAwD;AAC/E,wDAAyC,CAAC,wDAAwD;AAClG,gDAAiC,CAAC,wDAAwD;AAC1F,4CAAyC;AAoDzC,MAAa,qBAAqB;IAChC,2BAA2B;IAClB,IAAI,CAAQ;IACrB,6CAA6C;IACpC,OAAO,CAAW;IAC3B,4DAA4D;IACnD,MAAM,CAAW;IAC1B,2CAA2C;IAClC,cAAc,CAAQ;IAC/B,2CAA2C;IAClC,cAAc,CAAQ;IAC/B,qDAAqD;IAC5C,SAAS,CAAI;IACtB,wGAAwG;IAC/F,uBAAuB,CAAI;IACpC,wGAAwG;IAC/F,uBAAuB,CAAI;IACpC,iFAAiF;IACxE,cAAc,CAAI;IAC3B,iFAAiF;IACxE,cAAc,CAAI;IAClB,WAAW,CAAiC;IAC5C,OAAO,CAAW;IAE3B,MAAM,CAAU,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC;QAC1C,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG;KACpC,CAAC,CAAA;IAEF,MAAM,CAAU,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QACpC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC;QAChB,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;QAC1B,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;QACzB,KAAK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-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
27
|
};
|
|
@@ -42,6 +33,113 @@ const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line
|
|
|
42
33
|
const types = __importStar(require("../types")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
43
34
|
const programId_1 = require("../programId");
|
|
44
35
|
class PoolState {
|
|
36
|
+
/** Bump to identify PDA */
|
|
37
|
+
bump;
|
|
38
|
+
ammConfig;
|
|
39
|
+
owner;
|
|
40
|
+
/** Token pair of the pool, where token_mint_0 address < token_mint_1 address */
|
|
41
|
+
tokenMint0;
|
|
42
|
+
tokenMint1;
|
|
43
|
+
/** Token pair vault */
|
|
44
|
+
tokenVault0;
|
|
45
|
+
tokenVault1;
|
|
46
|
+
/** observation account key */
|
|
47
|
+
observationKey;
|
|
48
|
+
/** mint0 and mint1 decimals */
|
|
49
|
+
mintDecimals0;
|
|
50
|
+
mintDecimals1;
|
|
51
|
+
/** The minimum number of ticks between initialized ticks */
|
|
52
|
+
tickSpacing;
|
|
53
|
+
/** The currently in range liquidity available to the pool. */
|
|
54
|
+
liquidity;
|
|
55
|
+
/** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */
|
|
56
|
+
sqrtPriceX64;
|
|
57
|
+
/** The current tick of the pool, i.e. according to the last tick transition that was run. */
|
|
58
|
+
tickCurrent;
|
|
59
|
+
/** the most-recently updated index of the observations array */
|
|
60
|
+
observationIndex;
|
|
61
|
+
observationUpdateDuration;
|
|
62
|
+
/**
|
|
63
|
+
* The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per
|
|
64
|
+
* unit of liquidity for the entire life of the pool.
|
|
65
|
+
*/
|
|
66
|
+
feeGrowthGlobal0X64;
|
|
67
|
+
feeGrowthGlobal1X64;
|
|
68
|
+
/** The amounts of token_0 and token_1 that are owed to the protocol. */
|
|
69
|
+
protocolFeesToken0;
|
|
70
|
+
protocolFeesToken1;
|
|
71
|
+
/** The amounts in and out of swap token_0 and token_1 */
|
|
72
|
+
swapInAmountToken0;
|
|
73
|
+
swapOutAmountToken1;
|
|
74
|
+
swapInAmountToken1;
|
|
75
|
+
swapOutAmountToken0;
|
|
76
|
+
/**
|
|
77
|
+
* Bitwise representation of the state of the pool
|
|
78
|
+
* bit0, 1: disable open position and increase liquidity, 0: normal
|
|
79
|
+
* bit1, 1: disable decrease liquidity, 0: normal
|
|
80
|
+
* bit2, 1: disable collect fee, 0: normal
|
|
81
|
+
* bit3, 1: disable collect reward, 0: normal
|
|
82
|
+
* bit4, 1: disable swap, 0: normal
|
|
83
|
+
*/
|
|
84
|
+
status;
|
|
85
|
+
/** Leave blank for future use */
|
|
86
|
+
padding;
|
|
87
|
+
rewardInfos;
|
|
88
|
+
/** Packed initialized tick array state */
|
|
89
|
+
tickArrayBitmap;
|
|
90
|
+
/** except protocol_fee and fund_fee */
|
|
91
|
+
totalFeesToken0;
|
|
92
|
+
/** except protocol_fee and fund_fee */
|
|
93
|
+
totalFeesClaimedToken0;
|
|
94
|
+
totalFeesToken1;
|
|
95
|
+
totalFeesClaimedToken1;
|
|
96
|
+
fundFeesToken0;
|
|
97
|
+
fundFeesToken1;
|
|
98
|
+
openTime;
|
|
99
|
+
padding1;
|
|
100
|
+
padding2;
|
|
101
|
+
static discriminator = Buffer.from([
|
|
102
|
+
247, 237, 227, 245, 215, 195, 222, 70,
|
|
103
|
+
]);
|
|
104
|
+
static layout = borsh.struct([
|
|
105
|
+
borsh.u8("bump"),
|
|
106
|
+
borsh.publicKey("ammConfig"),
|
|
107
|
+
borsh.publicKey("owner"),
|
|
108
|
+
borsh.publicKey("tokenMint0"),
|
|
109
|
+
borsh.publicKey("tokenMint1"),
|
|
110
|
+
borsh.publicKey("tokenVault0"),
|
|
111
|
+
borsh.publicKey("tokenVault1"),
|
|
112
|
+
borsh.publicKey("observationKey"),
|
|
113
|
+
borsh.u8("mintDecimals0"),
|
|
114
|
+
borsh.u8("mintDecimals1"),
|
|
115
|
+
borsh.u16("tickSpacing"),
|
|
116
|
+
borsh.u128("liquidity"),
|
|
117
|
+
borsh.u128("sqrtPriceX64"),
|
|
118
|
+
borsh.i32("tickCurrent"),
|
|
119
|
+
borsh.u16("observationIndex"),
|
|
120
|
+
borsh.u16("observationUpdateDuration"),
|
|
121
|
+
borsh.u128("feeGrowthGlobal0X64"),
|
|
122
|
+
borsh.u128("feeGrowthGlobal1X64"),
|
|
123
|
+
borsh.u64("protocolFeesToken0"),
|
|
124
|
+
borsh.u64("protocolFeesToken1"),
|
|
125
|
+
borsh.u128("swapInAmountToken0"),
|
|
126
|
+
borsh.u128("swapOutAmountToken1"),
|
|
127
|
+
borsh.u128("swapInAmountToken1"),
|
|
128
|
+
borsh.u128("swapOutAmountToken0"),
|
|
129
|
+
borsh.u8("status"),
|
|
130
|
+
borsh.array(borsh.u8(), 7, "padding"),
|
|
131
|
+
borsh.array(types.RewardInfo.layout(), 3, "rewardInfos"),
|
|
132
|
+
borsh.array(borsh.u64(), 16, "tickArrayBitmap"),
|
|
133
|
+
borsh.u64("totalFeesToken0"),
|
|
134
|
+
borsh.u64("totalFeesClaimedToken0"),
|
|
135
|
+
borsh.u64("totalFeesToken1"),
|
|
136
|
+
borsh.u64("totalFeesClaimedToken1"),
|
|
137
|
+
borsh.u64("fundFeesToken0"),
|
|
138
|
+
borsh.u64("fundFeesToken1"),
|
|
139
|
+
borsh.u64("openTime"),
|
|
140
|
+
borsh.array(borsh.u64(), 25, "padding1"),
|
|
141
|
+
borsh.array(borsh.u64(), 32, "padding2"),
|
|
142
|
+
]);
|
|
45
143
|
constructor(fields) {
|
|
46
144
|
this.bump = fields.bump;
|
|
47
145
|
this.ammConfig = fields.ammConfig;
|
|
@@ -69,7 +167,7 @@ class PoolState {
|
|
|
69
167
|
this.swapOutAmountToken0 = fields.swapOutAmountToken0;
|
|
70
168
|
this.status = fields.status;
|
|
71
169
|
this.padding = fields.padding;
|
|
72
|
-
this.rewardInfos = fields.rewardInfos.map((item) => new types.RewardInfo(
|
|
170
|
+
this.rewardInfos = fields.rewardInfos.map((item) => new types.RewardInfo({ ...item }));
|
|
73
171
|
this.tickArrayBitmap = fields.tickArrayBitmap;
|
|
74
172
|
this.totalFeesToken0 = fields.totalFeesToken0;
|
|
75
173
|
this.totalFeesClaimedToken0 = fields.totalFeesClaimedToken0;
|
|
@@ -81,9 +179,19 @@ class PoolState {
|
|
|
81
179
|
this.padding1 = fields.padding1;
|
|
82
180
|
this.padding2 = fields.padding2;
|
|
83
181
|
}
|
|
84
|
-
static fetch(
|
|
85
|
-
|
|
86
|
-
|
|
182
|
+
static async fetch(c, address, programId = programId_1.PROGRAM_ID) {
|
|
183
|
+
const info = await c.getAccountInfo(address);
|
|
184
|
+
if (info === null) {
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
if (!info.owner.equals(programId)) {
|
|
188
|
+
throw new Error("account doesn't belong to this program");
|
|
189
|
+
}
|
|
190
|
+
return this.decode(info.data);
|
|
191
|
+
}
|
|
192
|
+
static async fetchMultiple(c, addresses, programId = programId_1.PROGRAM_ID) {
|
|
193
|
+
const infos = await c.getMultipleAccountsInfo(addresses);
|
|
194
|
+
return infos.map((info) => {
|
|
87
195
|
if (info === null) {
|
|
88
196
|
return null;
|
|
89
197
|
}
|
|
@@ -93,20 +201,6 @@ class PoolState {
|
|
|
93
201
|
return this.decode(info.data);
|
|
94
202
|
});
|
|
95
203
|
}
|
|
96
|
-
static fetchMultiple(c_1, addresses_1) {
|
|
97
|
-
return __awaiter(this, arguments, void 0, function* (c, addresses, programId = programId_1.PROGRAM_ID) {
|
|
98
|
-
const infos = yield c.getMultipleAccountsInfo(addresses);
|
|
99
|
-
return infos.map((info) => {
|
|
100
|
-
if (info === null) {
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
if (!info.owner.equals(programId)) {
|
|
104
|
-
throw new Error("account doesn't belong to this program");
|
|
105
|
-
}
|
|
106
|
-
return this.decode(info.data);
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
204
|
static decode(data) {
|
|
111
205
|
if (!data.slice(0, 8).equals(PoolState.discriminator)) {
|
|
112
206
|
throw new Error("invalid account discriminator");
|
|
@@ -236,46 +330,4 @@ class PoolState {
|
|
|
236
330
|
}
|
|
237
331
|
}
|
|
238
332
|
exports.PoolState = PoolState;
|
|
239
|
-
PoolState.discriminator = Buffer.from([
|
|
240
|
-
247, 237, 227, 245, 215, 195, 222, 70,
|
|
241
|
-
]);
|
|
242
|
-
PoolState.layout = borsh.struct([
|
|
243
|
-
borsh.u8("bump"),
|
|
244
|
-
borsh.publicKey("ammConfig"),
|
|
245
|
-
borsh.publicKey("owner"),
|
|
246
|
-
borsh.publicKey("tokenMint0"),
|
|
247
|
-
borsh.publicKey("tokenMint1"),
|
|
248
|
-
borsh.publicKey("tokenVault0"),
|
|
249
|
-
borsh.publicKey("tokenVault1"),
|
|
250
|
-
borsh.publicKey("observationKey"),
|
|
251
|
-
borsh.u8("mintDecimals0"),
|
|
252
|
-
borsh.u8("mintDecimals1"),
|
|
253
|
-
borsh.u16("tickSpacing"),
|
|
254
|
-
borsh.u128("liquidity"),
|
|
255
|
-
borsh.u128("sqrtPriceX64"),
|
|
256
|
-
borsh.i32("tickCurrent"),
|
|
257
|
-
borsh.u16("observationIndex"),
|
|
258
|
-
borsh.u16("observationUpdateDuration"),
|
|
259
|
-
borsh.u128("feeGrowthGlobal0X64"),
|
|
260
|
-
borsh.u128("feeGrowthGlobal1X64"),
|
|
261
|
-
borsh.u64("protocolFeesToken0"),
|
|
262
|
-
borsh.u64("protocolFeesToken1"),
|
|
263
|
-
borsh.u128("swapInAmountToken0"),
|
|
264
|
-
borsh.u128("swapOutAmountToken1"),
|
|
265
|
-
borsh.u128("swapInAmountToken1"),
|
|
266
|
-
borsh.u128("swapOutAmountToken0"),
|
|
267
|
-
borsh.u8("status"),
|
|
268
|
-
borsh.array(borsh.u8(), 7, "padding"),
|
|
269
|
-
borsh.array(types.RewardInfo.layout(), 3, "rewardInfos"),
|
|
270
|
-
borsh.array(borsh.u64(), 16, "tickArrayBitmap"),
|
|
271
|
-
borsh.u64("totalFeesToken0"),
|
|
272
|
-
borsh.u64("totalFeesClaimedToken0"),
|
|
273
|
-
borsh.u64("totalFeesToken1"),
|
|
274
|
-
borsh.u64("totalFeesClaimedToken1"),
|
|
275
|
-
borsh.u64("fundFeesToken0"),
|
|
276
|
-
borsh.u64("fundFeesToken1"),
|
|
277
|
-
borsh.u64("openTime"),
|
|
278
|
-
borsh.array(borsh.u64(), 25, "padding1"),
|
|
279
|
-
borsh.array(borsh.u64(), 32, "padding2"),
|
|
280
|
-
]);
|
|
281
333
|
//# sourceMappingURL=PoolState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoolState.js","sourceRoot":"","sources":["../../../src/kamino-client/accounts/PoolState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,kDAAsB,CAAC,wDAAwD;AAC/E,wDAAyC,CAAC,wDAAwD;AAClG,gDAAiC,CAAC,wDAAwD;AAC1F,4CAAyC;AA0IzC,MAAa,SAAS;IA+GpB,YAAY,MAAuB;QACjC,IAAI,CAAC,IAAI,GAAG,MAAM,CA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AAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC;IACrC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,aAAa,CAAC;IACxD,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,iBAAiB,CAAC;IAC/C,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC;IAC5B,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC;IACnC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC;IAC5B,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC;IACnC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3B,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3B,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC;IACrB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;IACxC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;CACzC,CAAC,CAAA","sourcesContent":["import { PublicKey, Connection } from \"@solana/web3.js\"\nimport BN from \"bn.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as borsh from \"@coral-xyz/borsh\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as types from \"../types\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport { PROGRAM_ID } from \"../programId\"\n\nexport interface PoolStateFields {\n /** Bump to identify PDA */\n bump: number\n ammConfig: PublicKey\n owner: PublicKey\n /** Token pair of the pool, where token_mint_0 address < token_mint_1 address */\n tokenMint0: PublicKey\n tokenMint1: PublicKey\n /** Token pair vault */\n tokenVault0: PublicKey\n tokenVault1: PublicKey\n /** observation account key */\n observationKey: PublicKey\n /** mint0 and mint1 decimals */\n mintDecimals0: number\n mintDecimals1: number\n /** The minimum number of ticks between initialized ticks */\n tickSpacing: number\n /** The currently in range liquidity available to the pool. */\n liquidity: BN\n /** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */\n sqrtPriceX64: BN\n /** The current tick of the pool, i.e. according to the last tick transition that was run. */\n tickCurrent: number\n /** the most-recently updated index of the observations array */\n observationIndex: number\n observationUpdateDuration: number\n /**\n * The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per\n * unit of liquidity for the entire life of the pool.\n */\n feeGrowthGlobal0X64: BN\n feeGrowthGlobal1X64: BN\n /** The amounts of token_0 and token_1 that are owed to the protocol. */\n protocolFeesToken0: BN\n protocolFeesToken1: BN\n /** The amounts in and out of swap token_0 and token_1 */\n swapInAmountToken0: BN\n swapOutAmountToken1: BN\n swapInAmountToken1: BN\n swapOutAmountToken0: BN\n /**\n * Bitwise representation of the state of the pool\n * bit0, 1: disable open position and increase liquidity, 0: normal\n * bit1, 1: disable decrease liquidity, 0: normal\n * bit2, 1: disable collect fee, 0: normal\n * bit3, 1: disable collect reward, 0: normal\n * bit4, 1: disable swap, 0: normal\n */\n status: number\n /** Leave blank for future use */\n padding: Array<number>\n rewardInfos: Array<types.RewardInfoFields>\n /** Packed initialized tick array state */\n tickArrayBitmap: Array<BN>\n /** except protocol_fee and fund_fee */\n totalFeesToken0: BN\n /** except protocol_fee and fund_fee */\n totalFeesClaimedToken0: BN\n totalFeesToken1: BN\n totalFeesClaimedToken1: BN\n fundFeesToken0: BN\n fundFeesToken1: BN\n openTime: BN\n padding1: Array<BN>\n padding2: Array<BN>\n}\n\nexport interface PoolStateJSON {\n /** Bump to identify PDA */\n bump: number\n ammConfig: string\n owner: string\n /** Token pair of the pool, where token_mint_0 address < token_mint_1 address */\n tokenMint0: string\n tokenMint1: string\n /** Token pair vault */\n tokenVault0: string\n tokenVault1: string\n /** observation account key */\n observationKey: string\n /** mint0 and mint1 decimals */\n mintDecimals0: number\n mintDecimals1: number\n /** The minimum number of ticks between initialized ticks */\n tickSpacing: number\n /** The currently in range liquidity available to the pool. */\n liquidity: string\n /** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */\n sqrtPriceX64: string\n /** The current tick of the pool, i.e. according to the last tick transition that was run. */\n tickCurrent: number\n /** the most-recently updated index of the observations array */\n observationIndex: number\n observationUpdateDuration: number\n /**\n * The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per\n * unit of liquidity for the entire life of the pool.\n */\n feeGrowthGlobal0X64: string\n feeGrowthGlobal1X64: string\n /** The amounts of token_0 and token_1 that are owed to the protocol. */\n protocolFeesToken0: string\n protocolFeesToken1: string\n /** The amounts in and out of swap token_0 and token_1 */\n swapInAmountToken0: string\n swapOutAmountToken1: string\n swapInAmountToken1: string\n swapOutAmountToken0: string\n /**\n * Bitwise representation of the state of the pool\n * bit0, 1: disable open position and increase liquidity, 0: normal\n * bit1, 1: disable decrease liquidity, 0: normal\n * bit2, 1: disable collect fee, 0: normal\n * bit3, 1: disable collect reward, 0: normal\n * bit4, 1: disable swap, 0: normal\n */\n status: number\n /** Leave blank for future use */\n padding: Array<number>\n rewardInfos: Array<types.RewardInfoJSON>\n /** Packed initialized tick array state */\n tickArrayBitmap: Array<string>\n /** except protocol_fee and fund_fee */\n totalFeesToken0: string\n /** except protocol_fee and fund_fee */\n totalFeesClaimedToken0: string\n totalFeesToken1: string\n totalFeesClaimedToken1: string\n fundFeesToken0: string\n fundFeesToken1: string\n openTime: string\n padding1: Array<string>\n padding2: Array<string>\n}\n\nexport class PoolState {\n /** Bump to identify PDA */\n readonly bump: number\n readonly ammConfig: PublicKey\n readonly owner: PublicKey\n /** Token pair of the pool, where token_mint_0 address < token_mint_1 address */\n readonly tokenMint0: PublicKey\n readonly tokenMint1: PublicKey\n /** Token pair vault */\n readonly tokenVault0: PublicKey\n readonly tokenVault1: PublicKey\n /** observation account key */\n readonly observationKey: PublicKey\n /** mint0 and mint1 decimals */\n readonly mintDecimals0: number\n readonly mintDecimals1: number\n /** The minimum number of ticks between initialized ticks */\n readonly tickSpacing: number\n /** The currently in range liquidity available to the pool. */\n readonly liquidity: BN\n /** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */\n readonly sqrtPriceX64: BN\n /** The current tick of the pool, i.e. according to the last tick transition that was run. */\n readonly tickCurrent: number\n /** the most-recently updated index of the observations array */\n readonly observationIndex: number\n readonly observationUpdateDuration: number\n /**\n * The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per\n * unit of liquidity for the entire life of the pool.\n */\n readonly feeGrowthGlobal0X64: BN\n readonly feeGrowthGlobal1X64: BN\n /** The amounts of token_0 and token_1 that are owed to the protocol. */\n readonly protocolFeesToken0: BN\n readonly protocolFeesToken1: BN\n /** The amounts in and out of swap token_0 and token_1 */\n readonly swapInAmountToken0: BN\n readonly swapOutAmountToken1: BN\n readonly swapInAmountToken1: BN\n readonly swapOutAmountToken0: BN\n /**\n * Bitwise representation of the state of the pool\n * bit0, 1: disable open position and increase liquidity, 0: normal\n * bit1, 1: disable decrease liquidity, 0: normal\n * bit2, 1: disable collect fee, 0: normal\n * bit3, 1: disable collect reward, 0: normal\n * bit4, 1: disable swap, 0: normal\n */\n readonly status: number\n /** Leave blank for future use */\n readonly padding: Array<number>\n readonly rewardInfos: Array<types.RewardInfo>\n /** Packed initialized tick array state */\n readonly tickArrayBitmap: Array<BN>\n /** except protocol_fee and fund_fee */\n readonly totalFeesToken0: BN\n /** except protocol_fee and fund_fee */\n readonly totalFeesClaimedToken0: BN\n readonly totalFeesToken1: BN\n readonly totalFeesClaimedToken1: BN\n readonly fundFeesToken0: BN\n readonly fundFeesToken1: BN\n readonly openTime: BN\n readonly padding1: Array<BN>\n readonly padding2: Array<BN>\n\n static readonly discriminator = Buffer.from([\n 247, 237, 227, 245, 215, 195, 222, 70,\n ])\n\n static readonly layout = borsh.struct([\n borsh.u8(\"bump\"),\n borsh.publicKey(\"ammConfig\"),\n borsh.publicKey(\"owner\"),\n borsh.publicKey(\"tokenMint0\"),\n borsh.publicKey(\"tokenMint1\"),\n borsh.publicKey(\"tokenVault0\"),\n borsh.publicKey(\"tokenVault1\"),\n borsh.publicKey(\"observationKey\"),\n borsh.u8(\"mintDecimals0\"),\n borsh.u8(\"mintDecimals1\"),\n borsh.u16(\"tickSpacing\"),\n borsh.u128(\"liquidity\"),\n borsh.u128(\"sqrtPriceX64\"),\n borsh.i32(\"tickCurrent\"),\n borsh.u16(\"observationIndex\"),\n borsh.u16(\"observationUpdateDuration\"),\n borsh.u128(\"feeGrowthGlobal0X64\"),\n borsh.u128(\"feeGrowthGlobal1X64\"),\n borsh.u64(\"protocolFeesToken0\"),\n borsh.u64(\"protocolFeesToken1\"),\n borsh.u128(\"swapInAmountToken0\"),\n borsh.u128(\"swapOutAmountToken1\"),\n borsh.u128(\"swapInAmountToken1\"),\n borsh.u128(\"swapOutAmountToken0\"),\n borsh.u8(\"status\"),\n borsh.array(borsh.u8(), 7, \"padding\"),\n borsh.array(types.RewardInfo.layout(), 3, \"rewardInfos\"),\n borsh.array(borsh.u64(), 16, \"tickArrayBitmap\"),\n borsh.u64(\"totalFeesToken0\"),\n borsh.u64(\"totalFeesClaimedToken0\"),\n borsh.u64(\"totalFeesToken1\"),\n borsh.u64(\"totalFeesClaimedToken1\"),\n borsh.u64(\"fundFeesToken0\"),\n borsh.u64(\"fundFeesToken1\"),\n borsh.u64(\"openTime\"),\n borsh.array(borsh.u64(), 25, \"padding1\"),\n borsh.array(borsh.u64(), 32, \"padding2\"),\n ])\n\n constructor(fields: PoolStateFields) {\n this.bump = fields.bump\n this.ammConfig = fields.ammConfig\n this.owner = fields.owner\n this.tokenMint0 = fields.tokenMint0\n this.tokenMint1 = fields.tokenMint1\n this.tokenVault0 = fields.tokenVault0\n this.tokenVault1 = fields.tokenVault1\n this.observationKey = fields.observationKey\n this.mintDecimals0 = fields.mintDecimals0\n this.mintDecimals1 = fields.mintDecimals1\n this.tickSpacing = fields.tickSpacing\n this.liquidity = fields.liquidity\n this.sqrtPriceX64 = fields.sqrtPriceX64\n this.tickCurrent = fields.tickCurrent\n this.observationIndex = fields.observationIndex\n this.observationUpdateDuration = fields.observationUpdateDuration\n this.feeGrowthGlobal0X64 = fields.feeGrowthGlobal0X64\n this.feeGrowthGlobal1X64 = fields.feeGrowthGlobal1X64\n this.protocolFeesToken0 = fields.protocolFeesToken0\n this.protocolFeesToken1 = fields.protocolFeesToken1\n this.swapInAmountToken0 = fields.swapInAmountToken0\n this.swapOutAmountToken1 = fields.swapOutAmountToken1\n this.swapInAmountToken1 = fields.swapInAmountToken1\n this.swapOutAmountToken0 = fields.swapOutAmountToken0\n this.status = fields.status\n this.padding = fields.padding\n this.rewardInfos = fields.rewardInfos.map(\n (item) => new types.RewardInfo({ ...item })\n )\n this.tickArrayBitmap = fields.tickArrayBitmap\n this.totalFeesToken0 = fields.totalFeesToken0\n this.totalFeesClaimedToken0 = fields.totalFeesClaimedToken0\n this.totalFeesToken1 = fields.totalFeesToken1\n this.totalFeesClaimedToken1 = fields.totalFeesClaimedToken1\n this.fundFeesToken0 = fields.fundFeesToken0\n this.fundFeesToken1 = fields.fundFeesToken1\n this.openTime = fields.openTime\n this.padding1 = fields.padding1\n this.padding2 = fields.padding2\n }\n\n static async fetch(\n c: Connection,\n address: PublicKey,\n programId: PublicKey = PROGRAM_ID\n ): Promise<PoolState | null> {\n const info = await c.getAccountInfo(address)\n\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n }\n\n static async fetchMultiple(\n c: Connection,\n addresses: PublicKey[],\n programId: PublicKey = PROGRAM_ID\n ): Promise<Array<PoolState | null>> {\n const infos = await c.getMultipleAccountsInfo(addresses)\n\n return infos.map((info) => {\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n })\n }\n\n static decode(data: Buffer): PoolState {\n if (!data.slice(0, 8).equals(PoolState.discriminator)) {\n throw new Error(\"invalid account discriminator\")\n }\n\n const dec = PoolState.layout.decode(data.slice(8))\n\n return new PoolState({\n bump: dec.bump,\n ammConfig: dec.ammConfig,\n owner: dec.owner,\n tokenMint0: dec.tokenMint0,\n tokenMint1: dec.tokenMint1,\n tokenVault0: dec.tokenVault0,\n tokenVault1: dec.tokenVault1,\n observationKey: dec.observationKey,\n mintDecimals0: dec.mintDecimals0,\n mintDecimals1: dec.mintDecimals1,\n tickSpacing: dec.tickSpacing,\n liquidity: dec.liquidity,\n sqrtPriceX64: dec.sqrtPriceX64,\n tickCurrent: dec.tickCurrent,\n observationIndex: dec.observationIndex,\n observationUpdateDuration: dec.observationUpdateDuration,\n feeGrowthGlobal0X64: dec.feeGrowthGlobal0X64,\n feeGrowthGlobal1X64: dec.feeGrowthGlobal1X64,\n protocolFeesToken0: dec.protocolFeesToken0,\n protocolFeesToken1: dec.protocolFeesToken1,\n swapInAmountToken0: dec.swapInAmountToken0,\n swapOutAmountToken1: dec.swapOutAmountToken1,\n swapInAmountToken1: dec.swapInAmountToken1,\n swapOutAmountToken0: dec.swapOutAmountToken0,\n status: dec.status,\n padding: dec.padding,\n rewardInfos: dec.rewardInfos.map(\n (\n item: any /* eslint-disable-line @typescript-eslint/no-explicit-any */\n ) => types.RewardInfo.fromDecoded(item)\n ),\n tickArrayBitmap: dec.tickArrayBitmap,\n totalFeesToken0: dec.totalFeesToken0,\n totalFeesClaimedToken0: dec.totalFeesClaimedToken0,\n totalFeesToken1: dec.totalFeesToken1,\n totalFeesClaimedToken1: dec.totalFeesClaimedToken1,\n fundFeesToken0: dec.fundFeesToken0,\n fundFeesToken1: dec.fundFeesToken1,\n openTime: dec.openTime,\n padding1: dec.padding1,\n padding2: dec.padding2,\n })\n }\n\n toJSON(): PoolStateJSON {\n return {\n bump: this.bump,\n ammConfig: this.ammConfig.toString(),\n owner: this.owner.toString(),\n tokenMint0: this.tokenMint0.toString(),\n tokenMint1: this.tokenMint1.toString(),\n tokenVault0: this.tokenVault0.toString(),\n tokenVault1: this.tokenVault1.toString(),\n observationKey: this.observationKey.toString(),\n mintDecimals0: this.mintDecimals0,\n mintDecimals1: this.mintDecimals1,\n tickSpacing: this.tickSpacing,\n liquidity: this.liquidity.toString(),\n sqrtPriceX64: this.sqrtPriceX64.toString(),\n tickCurrent: this.tickCurrent,\n observationIndex: this.observationIndex,\n observationUpdateDuration: this.observationUpdateDuration,\n feeGrowthGlobal0X64: this.feeGrowthGlobal0X64.toString(),\n feeGrowthGlobal1X64: this.feeGrowthGlobal1X64.toString(),\n protocolFeesToken0: this.protocolFeesToken0.toString(),\n protocolFeesToken1: this.protocolFeesToken1.toString(),\n swapInAmountToken0: this.swapInAmountToken0.toString(),\n swapOutAmountToken1: this.swapOutAmountToken1.toString(),\n swapInAmountToken1: this.swapInAmountToken1.toString(),\n swapOutAmountToken0: this.swapOutAmountToken0.toString(),\n status: this.status,\n padding: this.padding,\n rewardInfos: this.rewardInfos.map((item) => item.toJSON()),\n tickArrayBitmap: this.tickArrayBitmap.map((item) => item.toString()),\n totalFeesToken0: this.totalFeesToken0.toString(),\n totalFeesClaimedToken0: this.totalFeesClaimedToken0.toString(),\n totalFeesToken1: this.totalFeesToken1.toString(),\n totalFeesClaimedToken1: this.totalFeesClaimedToken1.toString(),\n fundFeesToken0: this.fundFeesToken0.toString(),\n fundFeesToken1: this.fundFeesToken1.toString(),\n openTime: this.openTime.toString(),\n padding1: this.padding1.map((item) => item.toString()),\n padding2: this.padding2.map((item) => item.toString()),\n }\n }\n\n static fromJSON(obj: PoolStateJSON): PoolState {\n return new PoolState({\n bump: obj.bump,\n ammConfig: new PublicKey(obj.ammConfig),\n owner: new PublicKey(obj.owner),\n tokenMint0: new PublicKey(obj.tokenMint0),\n tokenMint1: new PublicKey(obj.tokenMint1),\n tokenVault0: new PublicKey(obj.tokenVault0),\n tokenVault1: new PublicKey(obj.tokenVault1),\n observationKey: new PublicKey(obj.observationKey),\n mintDecimals0: obj.mintDecimals0,\n mintDecimals1: obj.mintDecimals1,\n tickSpacing: obj.tickSpacing,\n liquidity: new BN(obj.liquidity),\n sqrtPriceX64: new BN(obj.sqrtPriceX64),\n tickCurrent: obj.tickCurrent,\n observationIndex: obj.observationIndex,\n observationUpdateDuration: obj.observationUpdateDuration,\n feeGrowthGlobal0X64: new BN(obj.feeGrowthGlobal0X64),\n feeGrowthGlobal1X64: new BN(obj.feeGrowthGlobal1X64),\n protocolFeesToken0: new BN(obj.protocolFeesToken0),\n protocolFeesToken1: new BN(obj.protocolFeesToken1),\n swapInAmountToken0: new BN(obj.swapInAmountToken0),\n swapOutAmountToken1: new BN(obj.swapOutAmountToken1),\n swapInAmountToken1: new BN(obj.swapInAmountToken1),\n swapOutAmountToken0: new BN(obj.swapOutAmountToken0),\n status: obj.status,\n padding: obj.padding,\n rewardInfos: obj.rewardInfos.map((item) =>\n types.RewardInfo.fromJSON(item)\n ),\n tickArrayBitmap: obj.tickArrayBitmap.map((item) => new BN(item)),\n totalFeesToken0: new BN(obj.totalFeesToken0),\n totalFeesClaimedToken0: new BN(obj.totalFeesClaimedToken0),\n totalFeesToken1: new BN(obj.totalFeesToken1),\n totalFeesClaimedToken1: new BN(obj.totalFeesClaimedToken1),\n fundFeesToken0: new BN(obj.fundFeesToken0),\n fundFeesToken1: new BN(obj.fundFeesToken1),\n openTime: new BN(obj.openTime),\n padding1: obj.padding1.map((item) => new BN(item)),\n padding2: obj.padding2.map((item) => new BN(item)),\n })\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PoolState.js","sourceRoot":"","sources":["../../../src/kamino-client/accounts/PoolState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,kDAAsB,CAAC,wDAAwD;AAC/E,wDAAyC,CAAC,wDAAwD;AAClG,gDAAiC,CAAC,wDAAwD;AAC1F,4CAAyC;AA0IzC,MAAa,SAAS;IACpB,2BAA2B;IAClB,IAAI,CAAQ;IACZ,SAAS,CAAW;IACpB,KAAK,CAAW;IACzB,g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;IAyBrC,MAAM,IAAI,YAAY;IAetB,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,YAAY,GAAG,QAAQ;CAgB7C"}
|
|
@@ -22,15 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
27
|
};
|
|
@@ -42,6 +33,31 @@ const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line
|
|
|
42
33
|
const types = __importStar(require("../types")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
43
34
|
const programId_1 = require("../programId");
|
|
44
35
|
class Position {
|
|
36
|
+
whirlpool;
|
|
37
|
+
positionMint;
|
|
38
|
+
liquidity;
|
|
39
|
+
tickLowerIndex;
|
|
40
|
+
tickUpperIndex;
|
|
41
|
+
feeGrowthCheckpointA;
|
|
42
|
+
feeOwedA;
|
|
43
|
+
feeGrowthCheckpointB;
|
|
44
|
+
feeOwedB;
|
|
45
|
+
rewardInfos;
|
|
46
|
+
static discriminator = Buffer.from([
|
|
47
|
+
170, 188, 143, 228, 122, 64, 247, 208,
|
|
48
|
+
]);
|
|
49
|
+
static layout = borsh.struct([
|
|
50
|
+
borsh.publicKey("whirlpool"),
|
|
51
|
+
borsh.publicKey("positionMint"),
|
|
52
|
+
borsh.u128("liquidity"),
|
|
53
|
+
borsh.i32("tickLowerIndex"),
|
|
54
|
+
borsh.i32("tickUpperIndex"),
|
|
55
|
+
borsh.u128("feeGrowthCheckpointA"),
|
|
56
|
+
borsh.u64("feeOwedA"),
|
|
57
|
+
borsh.u128("feeGrowthCheckpointB"),
|
|
58
|
+
borsh.u64("feeOwedB"),
|
|
59
|
+
borsh.array(types.PositionRewardInfo.layout(), 3, "rewardInfos"),
|
|
60
|
+
]);
|
|
45
61
|
constructor(fields) {
|
|
46
62
|
this.whirlpool = fields.whirlpool;
|
|
47
63
|
this.positionMint = fields.positionMint;
|
|
@@ -52,11 +68,21 @@ class Position {
|
|
|
52
68
|
this.feeOwedA = fields.feeOwedA;
|
|
53
69
|
this.feeGrowthCheckpointB = fields.feeGrowthCheckpointB;
|
|
54
70
|
this.feeOwedB = fields.feeOwedB;
|
|
55
|
-
this.rewardInfos = fields.rewardInfos.map((item) => new types.PositionRewardInfo(
|
|
71
|
+
this.rewardInfos = fields.rewardInfos.map((item) => new types.PositionRewardInfo({ ...item }));
|
|
72
|
+
}
|
|
73
|
+
static async fetch(c, address, programId = programId_1.PROGRAM_ID) {
|
|
74
|
+
const info = await c.getAccountInfo(address);
|
|
75
|
+
if (info === null) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
if (!info.owner.equals(programId)) {
|
|
79
|
+
throw new Error("account doesn't belong to this program");
|
|
80
|
+
}
|
|
81
|
+
return this.decode(info.data);
|
|
56
82
|
}
|
|
57
|
-
static
|
|
58
|
-
|
|
59
|
-
|
|
83
|
+
static async fetchMultiple(c, addresses, programId = programId_1.PROGRAM_ID) {
|
|
84
|
+
const infos = await c.getMultipleAccountsInfo(addresses);
|
|
85
|
+
return infos.map((info) => {
|
|
60
86
|
if (info === null) {
|
|
61
87
|
return null;
|
|
62
88
|
}
|
|
@@ -66,20 +92,6 @@ class Position {
|
|
|
66
92
|
return this.decode(info.data);
|
|
67
93
|
});
|
|
68
94
|
}
|
|
69
|
-
static fetchMultiple(c_1, addresses_1) {
|
|
70
|
-
return __awaiter(this, arguments, void 0, function* (c, addresses, programId = programId_1.PROGRAM_ID) {
|
|
71
|
-
const infos = yield c.getMultipleAccountsInfo(addresses);
|
|
72
|
-
return infos.map((info) => {
|
|
73
|
-
if (info === null) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
if (!info.owner.equals(programId)) {
|
|
77
|
-
throw new Error("account doesn't belong to this program");
|
|
78
|
-
}
|
|
79
|
-
return this.decode(info.data);
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
95
|
static decode(data) {
|
|
84
96
|
if (!data.slice(0, 8).equals(Position.discriminator)) {
|
|
85
97
|
throw new Error("invalid account discriminator");
|
|
@@ -128,19 +140,4 @@ class Position {
|
|
|
128
140
|
}
|
|
129
141
|
}
|
|
130
142
|
exports.Position = Position;
|
|
131
|
-
Position.discriminator = Buffer.from([
|
|
132
|
-
170, 188, 143, 228, 122, 64, 247, 208,
|
|
133
|
-
]);
|
|
134
|
-
Position.layout = borsh.struct([
|
|
135
|
-
borsh.publicKey("whirlpool"),
|
|
136
|
-
borsh.publicKey("positionMint"),
|
|
137
|
-
borsh.u128("liquidity"),
|
|
138
|
-
borsh.i32("tickLowerIndex"),
|
|
139
|
-
borsh.i32("tickUpperIndex"),
|
|
140
|
-
borsh.u128("feeGrowthCheckpointA"),
|
|
141
|
-
borsh.u64("feeOwedA"),
|
|
142
|
-
borsh.u128("feeGrowthCheckpointB"),
|
|
143
|
-
borsh.u64("feeOwedB"),
|
|
144
|
-
borsh.array(types.PositionRewardInfo.layout(), 3, "rewardInfos"),
|
|
145
|
-
]);
|
|
146
143
|
//# sourceMappingURL=Position.js.map
|