@kamino-finance/kliquidity-sdk 6.0.0
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/README.md +462 -0
- package/dist/Kamino.d.ts +962 -0
- package/dist/Kamino.js +5116 -0
- package/dist/Kamino.js.map +1 -0
- package/dist/constants/DefaultStrategyConfig.d.ts +6 -0
- package/dist/constants/DefaultStrategyConfig.js +13 -0
- package/dist/constants/DefaultStrategyConfig.js.map +1 -0
- package/dist/constants/deposit_method.d.ts +2 -0
- package/dist/constants/deposit_method.js +6 -0
- package/dist/constants/deposit_method.js.map +1 -0
- package/dist/constants/frontend.d.ts +1 -0
- package/dist/constants/frontend.js +5 -0
- package/dist/constants/frontend.js.map +1 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.js +20 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/metadata.d.ts +3 -0
- package/dist/constants/metadata.js +7 -0
- package/dist/constants/metadata.js.map +1 -0
- package/dist/constants/numericalValues.d.ts +1 -0
- package/dist/constants/numericalValues.js +5 -0
- package/dist/constants/numericalValues.js.map +1 -0
- package/dist/constants/pubkeys.d.ts +10 -0
- package/dist/constants/pubkeys.js +14 -0
- package/dist/constants/pubkeys.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/kamino-client/accounts/CollateralInfos.d.ts +19 -0
- package/dist/kamino-client/accounts/CollateralInfos.js +96 -0
- package/dist/kamino-client/accounts/CollateralInfos.js.map +1 -0
- package/dist/kamino-client/accounts/GlobalConfig.d.ts +88 -0
- package/dist/kamino-client/accounts/GlobalConfig.js +218 -0
- package/dist/kamino-client/accounts/GlobalConfig.js.map +1 -0
- package/dist/kamino-client/accounts/PersonalPositionState.d.ts +83 -0
- package/dist/kamino-client/accounts/PersonalPositionState.js +156 -0
- package/dist/kamino-client/accounts/PersonalPositionState.js.map +1 -0
- package/dist/kamino-client/accounts/PoolState.d.ts +212 -0
- package/dist/kamino-client/accounts/PoolState.js +281 -0
- package/dist/kamino-client/accounts/PoolState.js.map +1 -0
- package/dist/kamino-client/accounts/Position.d.ts +47 -0
- package/dist/kamino-client/accounts/Position.js +146 -0
- package/dist/kamino-client/accounts/Position.js.map +1 -0
- package/dist/kamino-client/accounts/ProtocolPositionState.d.ts +79 -0
- package/dist/kamino-client/accounts/ProtocolPositionState.js +150 -0
- package/dist/kamino-client/accounts/ProtocolPositionState.js.map +1 -0
- package/dist/kamino-client/accounts/ScopeChainAccount.d.ts +18 -0
- package/dist/kamino-client/accounts/ScopeChainAccount.js +95 -0
- package/dist/kamino-client/accounts/ScopeChainAccount.js.map +1 -0
- package/dist/kamino-client/accounts/TermsSignature.d.ts +18 -0
- package/dist/kamino-client/accounts/TermsSignature.js +95 -0
- package/dist/kamino-client/accounts/TermsSignature.js.map +1 -0
- package/dist/kamino-client/accounts/Whirlpool.d.ts +75 -0
- package/dist/kamino-client/accounts/Whirlpool.js +192 -0
- package/dist/kamino-client/accounts/Whirlpool.js.map +1 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.d.ts +317 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js +596 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js.map +1 -0
- package/dist/kamino-client/accounts/index.d.ts +20 -0
- package/dist/kamino-client/accounts/index.js +24 -0
- package/dist/kamino-client/accounts/index.js.map +1 -0
- package/dist/kamino-client/errors/anchor.d.ts +434 -0
- package/dist/kamino-client/errors/anchor.js +713 -0
- package/dist/kamino-client/errors/anchor.js.map +1 -0
- package/dist/kamino-client/errors/custom.d.ts +1258 -0
- package/dist/kamino-client/errors/custom.js +2054 -0
- package/dist/kamino-client/errors/custom.js.map +1 -0
- package/dist/kamino-client/errors/index.d.ts +5 -0
- package/dist/kamino-client/errors/index.js +70 -0
- package/dist/kamino-client/errors/index.js.map +1 -0
- package/dist/kamino-client/idl.json +7186 -0
- package/dist/kamino-client/instructions/addKaminoRewards.d.ts +17 -0
- package/dist/kamino-client/instructions/addKaminoRewards.js +55 -0
- package/dist/kamino-client/instructions/addKaminoRewards.js.map +1 -0
- package/dist/kamino-client/instructions/changePool.d.ts +12 -0
- package/dist/kamino-client/instructions/changePool.js +34 -0
- package/dist/kamino-client/instructions/changePool.js.map +1 -0
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.d.ts +13 -0
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.js +51 -0
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.js.map +1 -0
- package/dist/kamino-client/instructions/closeProgramAccount.d.ts +9 -0
- package/dist/kamino-client/instructions/closeProgramAccount.js +19 -0
- package/dist/kamino-client/instructions/closeProgramAccount.js.map +1 -0
- package/dist/kamino-client/instructions/closeStrategy.d.ts +49 -0
- package/dist/kamino-client/instructions/closeStrategy.js +79 -0
- package/dist/kamino-client/instructions/closeStrategy.js.map +1 -0
- package/dist/kamino-client/instructions/collectFeesAndRewards.d.ts +43 -0
- package/dist/kamino-client/instructions/collectFeesAndRewards.js +71 -0
- package/dist/kamino-client/instructions/collectFeesAndRewards.js.map +1 -0
- package/dist/kamino-client/instructions/deposit.d.ts +33 -0
- package/dist/kamino-client/instructions/deposit.js +79 -0
- package/dist/kamino-client/instructions/deposit.js.map +1 -0
- package/dist/kamino-client/instructions/depositAndInvest.d.ts +42 -0
- package/dist/kamino-client/instructions/depositAndInvest.js +95 -0
- package/dist/kamino-client/instructions/depositAndInvest.js.map +1 -0
- package/dist/kamino-client/instructions/emergencySwap.d.ts +35 -0
- package/dist/kamino-client/instructions/emergencySwap.js +70 -0
- package/dist/kamino-client/instructions/emergencySwap.js.map +1 -0
- package/dist/kamino-client/instructions/executiveWithdraw.d.ts +33 -0
- package/dist/kamino-client/instructions/executiveWithdraw.js +77 -0
- package/dist/kamino-client/instructions/executiveWithdraw.js.map +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.d.ts +40 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.js +83 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.js.map +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.d.ts +41 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.js +80 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.js.map +1 -0
- package/dist/kamino-client/instructions/index.d.ts +72 -0
- package/dist/kamino-client/instructions/index.js +76 -0
- package/dist/kamino-client/instructions/index.js.map +1 -0
- package/dist/kamino-client/instructions/initializeCollateralInfo.d.ts +8 -0
- package/dist/kamino-client/instructions/initializeCollateralInfo.js +18 -0
- package/dist/kamino-client/instructions/initializeCollateralInfo.js.map +1 -0
- package/dist/kamino-client/instructions/initializeGlobalConfig.d.ts +7 -0
- package/dist/kamino-client/instructions/initializeGlobalConfig.js +17 -0
- package/dist/kamino-client/instructions/initializeGlobalConfig.js.map +1 -0
- package/dist/kamino-client/instructions/initializeKaminoReward.d.ts +20 -0
- package/dist/kamino-client/instructions/initializeKaminoReward.js +58 -0
- package/dist/kamino-client/instructions/initializeKaminoReward.js.map +1 -0
- package/dist/kamino-client/instructions/initializeSharesMetadata.d.ts +19 -0
- package/dist/kamino-client/instructions/initializeSharesMetadata.js +63 -0
- package/dist/kamino-client/instructions/initializeSharesMetadata.js.map +1 -0
- package/dist/kamino-client/instructions/initializeStrategy.d.ts +29 -0
- package/dist/kamino-client/instructions/initializeStrategy.js +67 -0
- package/dist/kamino-client/instructions/initializeStrategy.js.map +1 -0
- package/dist/kamino-client/instructions/insertCollateralInfo.d.ts +14 -0
- package/dist/kamino-client/instructions/insertCollateralInfo.js +52 -0
- package/dist/kamino-client/instructions/insertCollateralInfo.js.map +1 -0
- package/dist/kamino-client/instructions/invest.d.ts +30 -0
- package/dist/kamino-client/instructions/invest.js +52 -0
- package/dist/kamino-client/instructions/invest.js.map +1 -0
- package/dist/kamino-client/instructions/openLiquidityPosition.d.ts +46 -0
- package/dist/kamino-client/instructions/openLiquidityPosition.js +117 -0
- package/dist/kamino-client/instructions/openLiquidityPosition.js.map +1 -0
- package/dist/kamino-client/instructions/orcaSwap.d.ts +30 -0
- package/dist/kamino-client/instructions/orcaSwap.js +71 -0
- package/dist/kamino-client/instructions/orcaSwap.js.map +1 -0
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.d.ts +11 -0
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.js +25 -0
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.js.map +1 -0
- package/dist/kamino-client/instructions/signTerms.d.ts +12 -0
- package/dist/kamino-client/instructions/signTerms.js +48 -0
- package/dist/kamino-client/instructions/signTerms.js.map +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.d.ts +42 -0
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.js +95 -0
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.js.map +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.d.ts +33 -0
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.js +79 -0
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.js.map +1 -0
- package/dist/kamino-client/instructions/swapRewards.d.ts +37 -0
- package/dist/kamino-client/instructions/swapRewards.js +98 -0
- package/dist/kamino-client/instructions/swapRewards.js.map +1 -0
- package/dist/kamino-client/instructions/swapUnevenVaults.d.ts +42 -0
- package/dist/kamino-client/instructions/swapUnevenVaults.js +82 -0
- package/dist/kamino-client/instructions/swapUnevenVaults.js.map +1 -0
- package/dist/kamino-client/instructions/updateCollateralInfo.d.ts +14 -0
- package/dist/kamino-client/instructions/updateCollateralInfo.js +53 -0
- package/dist/kamino-client/instructions/updateCollateralInfo.js.map +1 -0
- package/dist/kamino-client/instructions/updateGlobalConfig.d.ts +13 -0
- package/dist/kamino-client/instructions/updateGlobalConfig.js +53 -0
- package/dist/kamino-client/instructions/updateGlobalConfig.js.map +1 -0
- package/dist/kamino-client/instructions/updateRewardMapping.d.ts +20 -0
- package/dist/kamino-client/instructions/updateRewardMapping.js +59 -0
- package/dist/kamino-client/instructions/updateRewardMapping.js.map +1 -0
- package/dist/kamino-client/instructions/updateSharesMetadata.d.ts +17 -0
- package/dist/kamino-client/instructions/updateSharesMetadata.js +61 -0
- package/dist/kamino-client/instructions/updateSharesMetadata.js.map +1 -0
- package/dist/kamino-client/instructions/updateStrategyConfig.d.ts +14 -0
- package/dist/kamino-client/instructions/updateStrategyConfig.js +53 -0
- package/dist/kamino-client/instructions/updateStrategyConfig.js.map +1 -0
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.d.ts +17 -0
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.js +57 -0
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.js.map +1 -0
- package/dist/kamino-client/instructions/withdraw.d.ts +38 -0
- package/dist/kamino-client/instructions/withdraw.js +89 -0
- package/dist/kamino-client/instructions/withdraw.js.map +1 -0
- package/dist/kamino-client/instructions/withdrawFromTopup.d.ts +12 -0
- package/dist/kamino-client/instructions/withdrawFromTopup.js +47 -0
- package/dist/kamino-client/instructions/withdrawFromTopup.js.map +1 -0
- package/dist/kamino-client/instructions/withdrawFromTreasury.d.ts +18 -0
- package/dist/kamino-client/instructions/withdrawFromTreasury.js +57 -0
- package/dist/kamino-client/instructions/withdrawFromTreasury.js.map +1 -0
- package/dist/kamino-client/programId.d.ts +4 -0
- package/dist/kamino-client/programId.js +13 -0
- package/dist/kamino-client/programId.js.map +1 -0
- package/dist/kamino-client/types/BalanceStatus.d.ts +31 -0
- package/dist/kamino-client/types/BalanceStatus.js +102 -0
- package/dist/kamino-client/types/BalanceStatus.js.map +1 -0
- package/dist/kamino-client/types/BinAddLiquidityStrategy.d.ts +76 -0
- package/dist/kamino-client/types/BinAddLiquidityStrategy.js +162 -0
- package/dist/kamino-client/types/BinAddLiquidityStrategy.js.map +1 -0
- package/dist/kamino-client/types/CollateralInfo.d.ts +93 -0
- package/dist/kamino-client/types/CollateralInfo.js +152 -0
- package/dist/kamino-client/types/CollateralInfo.js.map +1 -0
- package/dist/kamino-client/types/CollateralInfoParams.d.ts +83 -0
- package/dist/kamino-client/types/CollateralInfoParams.js +140 -0
- package/dist/kamino-client/types/CollateralInfoParams.js.map +1 -0
- package/dist/kamino-client/types/CollateralTestToken.d.ts +369 -0
- package/dist/kamino-client/types/CollateralTestToken.js +778 -0
- package/dist/kamino-client/types/CollateralTestToken.js.map +1 -0
- package/dist/kamino-client/types/CreationStatus.d.ts +70 -0
- package/dist/kamino-client/types/CreationStatus.js +180 -0
- package/dist/kamino-client/types/CreationStatus.js.map +1 -0
- package/dist/kamino-client/types/DEX.d.ts +44 -0
- package/dist/kamino-client/types/DEX.js +128 -0
- package/dist/kamino-client/types/DEX.js.map +1 -0
- package/dist/kamino-client/types/DexSpecificPrice.d.ts +46 -0
- package/dist/kamino-client/types/DexSpecificPrice.js +116 -0
- package/dist/kamino-client/types/DexSpecificPrice.js.map +1 -0
- package/dist/kamino-client/types/DriftDirection.d.ts +31 -0
- package/dist/kamino-client/types/DriftDirection.js +102 -0
- package/dist/kamino-client/types/DriftDirection.js.map +1 -0
- package/dist/kamino-client/types/ExecutiveWithdrawAction.d.ts +44 -0
- package/dist/kamino-client/types/ExecutiveWithdrawAction.js +128 -0
- package/dist/kamino-client/types/ExecutiveWithdrawAction.js.map +1 -0
- package/dist/kamino-client/types/ExpanderStep.d.ts +38 -0
- package/dist/kamino-client/types/ExpanderStep.js +107 -0
- package/dist/kamino-client/types/ExpanderStep.js.map +1 -0
- package/dist/kamino-client/types/GlobalConfigOption.d.ts +304 -0
- package/dist/kamino-client/types/GlobalConfigOption.js +648 -0
- package/dist/kamino-client/types/GlobalConfigOption.js.map +1 -0
- package/dist/kamino-client/types/KaminoRewardInfo.d.ts +63 -0
- package/dist/kamino-client/types/KaminoRewardInfo.js +116 -0
- package/dist/kamino-client/types/KaminoRewardInfo.js.map +1 -0
- package/dist/kamino-client/types/LiquidityCalculationMode.d.ts +31 -0
- package/dist/kamino-client/types/LiquidityCalculationMode.js +102 -0
- package/dist/kamino-client/types/LiquidityCalculationMode.js.map +1 -0
- package/dist/kamino-client/types/MintingMethod.d.ts +31 -0
- package/dist/kamino-client/types/MintingMethod.js +102 -0
- package/dist/kamino-client/types/MintingMethod.js.map +1 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.d.ts +22 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.js +65 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.js.map +1 -0
- package/dist/kamino-client/types/PositionRewardInfo.d.ts +27 -0
- package/dist/kamino-client/types/PositionRewardInfo.js +70 -0
- package/dist/kamino-client/types/PositionRewardInfo.js.map +1 -0
- package/dist/kamino-client/types/Price.d.ts +27 -0
- package/dist/kamino-client/types/Price.js +70 -0
- package/dist/kamino-client/types/Price.js.map +1 -0
- package/dist/kamino-client/types/RebalanceAction.d.ts +83 -0
- package/dist/kamino-client/types/RebalanceAction.js +150 -0
- package/dist/kamino-client/types/RebalanceAction.js.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.d.ts +75 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.js +100 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.js.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftState.d.ts +88 -0
- package/dist/kamino-client/types/RebalanceAutodriftState.js +76 -0
- package/dist/kamino-client/types/RebalanceAutodriftState.js.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftStep.d.ts +31 -0
- package/dist/kamino-client/types/RebalanceAutodriftStep.js +102 -0
- package/dist/kamino-client/types/RebalanceAutodriftStep.js.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftWindow.d.ts +54 -0
- package/dist/kamino-client/types/RebalanceAutodriftWindow.js +98 -0
- package/dist/kamino-client/types/RebalanceAutodriftWindow.js.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftParams.d.ts +50 -0
- package/dist/kamino-client/types/RebalanceDriftParams.js +92 -0
- package/dist/kamino-client/types/RebalanceDriftParams.js.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftState.d.ts +40 -0
- package/dist/kamino-client/types/RebalanceDriftState.js +80 -0
- package/dist/kamino-client/types/RebalanceDriftState.js.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftStep.d.ts +31 -0
- package/dist/kamino-client/types/RebalanceDriftStep.js +102 -0
- package/dist/kamino-client/types/RebalanceDriftStep.js.map +1 -0
- package/dist/kamino-client/types/RebalanceEffects.d.ts +39 -0
- package/dist/kamino-client/types/RebalanceEffects.js +108 -0
- package/dist/kamino-client/types/RebalanceEffects.js.map +1 -0
- package/dist/kamino-client/types/RebalanceExpanderState.d.ts +27 -0
- package/dist/kamino-client/types/RebalanceExpanderState.js +70 -0
- package/dist/kamino-client/types/RebalanceExpanderState.js.map +1 -0
- package/dist/kamino-client/types/RebalanceManualState.d.ts +14 -0
- package/dist/kamino-client/types/RebalanceManualState.js +51 -0
- package/dist/kamino-client/types/RebalanceManualState.js.map +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.d.ts +27 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.js +73 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.js.map +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.d.ts +27 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.js +75 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.js.map +1 -0
- package/dist/kamino-client/types/RebalanceRaw.d.ts +31 -0
- package/dist/kamino-client/types/RebalanceRaw.js +75 -0
- package/dist/kamino-client/types/RebalanceRaw.js.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.d.ts +33 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.js +62 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.js.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitStep.d.ts +44 -0
- package/dist/kamino-client/types/RebalanceTakeProfitStep.js +128 -0
- package/dist/kamino-client/types/RebalanceTakeProfitStep.js.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitToken.d.ts +31 -0
- package/dist/kamino-client/types/RebalanceTakeProfitToken.js +99 -0
- package/dist/kamino-client/types/RebalanceTakeProfitToken.js.map +1 -0
- package/dist/kamino-client/types/RebalanceType.d.ts +109 -0
- package/dist/kamino-client/types/RebalanceType.js +258 -0
- package/dist/kamino-client/types/RebalanceType.js.map +1 -0
- package/dist/kamino-client/types/ReferencePriceType.d.ts +31 -0
- package/dist/kamino-client/types/ReferencePriceType.js +102 -0
- package/dist/kamino-client/types/ReferencePriceType.js.map +1 -0
- package/dist/kamino-client/types/RemoveLiquidityMode.d.ts +59 -0
- package/dist/kamino-client/types/RemoveLiquidityMode.js +142 -0
- package/dist/kamino-client/types/RemoveLiquidityMode.js.map +1 -0
- package/dist/kamino-client/types/RewardInfo.d.ts +115 -0
- package/dist/kamino-client/types/RewardInfo.js +128 -0
- package/dist/kamino-client/types/RewardInfo.js.map +1 -0
- package/dist/kamino-client/types/ScopeConversionChain.d.ts +0 -0
- package/dist/kamino-client/types/ScopeConversionChain.js +2 -0
- package/dist/kamino-client/types/ScopeConversionChain.js.map +1 -0
- package/dist/kamino-client/types/ScopePriceIdTest.d.ts +915 -0
- package/dist/kamino-client/types/ScopePriceIdTest.js +1871 -0
- package/dist/kamino-client/types/ScopePriceIdTest.js.map +1 -0
- package/dist/kamino-client/types/SimulationPrice.d.ts +59 -0
- package/dist/kamino-client/types/SimulationPrice.js +142 -0
- package/dist/kamino-client/types/SimulationPrice.js.map +1 -0
- package/dist/kamino-client/types/StakingRateSource.d.ts +31 -0
- package/dist/kamino-client/types/StakingRateSource.js +102 -0
- package/dist/kamino-client/types/StakingRateSource.js.map +1 -0
- package/dist/kamino-client/types/StrategyConfigOption.d.ts +668 -0
- package/dist/kamino-client/types/StrategyConfigOption.js +1377 -0
- package/dist/kamino-client/types/StrategyConfigOption.js.map +1 -0
- package/dist/kamino-client/types/StrategyStatus.d.ts +70 -0
- package/dist/kamino-client/types/StrategyStatus.js +180 -0
- package/dist/kamino-client/types/StrategyStatus.js.map +1 -0
- package/dist/kamino-client/types/StrategyType.d.ts +44 -0
- package/dist/kamino-client/types/StrategyType.js +128 -0
- package/dist/kamino-client/types/StrategyType.js.map +1 -0
- package/dist/kamino-client/types/SwapLimit.d.ts +66 -0
- package/dist/kamino-client/types/SwapLimit.js +138 -0
- package/dist/kamino-client/types/SwapLimit.js.map +1 -0
- package/dist/kamino-client/types/UpdateCollateralInfoMode.d.ts +174 -0
- package/dist/kamino-client/types/UpdateCollateralInfoMode.js +388 -0
- package/dist/kamino-client/types/UpdateCollateralInfoMode.js.map +1 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.d.ts +67 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.js +92 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.js.map +1 -0
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.d.ts +31 -0
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.js +102 -0
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.js.map +1 -0
- package/dist/kamino-client/types/WithdrawalCaps.d.ts +37 -0
- package/dist/kamino-client/types/WithdrawalCaps.js +85 -0
- package/dist/kamino-client/types/WithdrawalCaps.js.map +1 -0
- package/dist/kamino-client/types/index.d.ts +160 -0
- package/dist/kamino-client/types/index.js +127 -0
- package/dist/kamino-client/types/index.js.map +1 -0
- package/dist/meteora_client/accounts/BinArray.d.ts +41 -0
- package/dist/meteora_client/accounts/BinArray.js +127 -0
- package/dist/meteora_client/accounts/BinArray.js.map +1 -0
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.d.ts +31 -0
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.js +110 -0
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.js.map +1 -0
- package/dist/meteora_client/accounts/LbPair.d.ts +179 -0
- package/dist/meteora_client/accounts/LbPair.js +246 -0
- package/dist/meteora_client/accounts/LbPair.js.map +1 -0
- package/dist/meteora_client/accounts/Oracle.d.ts +34 -0
- package/dist/meteora_client/accounts/Oracle.js +109 -0
- package/dist/meteora_client/accounts/Oracle.js.map +1 -0
- package/dist/meteora_client/accounts/Position.d.ts +89 -0
- package/dist/meteora_client/accounts/Position.js +156 -0
- package/dist/meteora_client/accounts/Position.js.map +1 -0
- package/dist/meteora_client/accounts/PositionV2.d.ts +113 -0
- package/dist/meteora_client/accounts/PositionV2.js +177 -0
- package/dist/meteora_client/accounts/PositionV2.js.map +1 -0
- package/dist/meteora_client/accounts/PresetParameter.d.ts +75 -0
- package/dist/meteora_client/accounts/PresetParameter.js +140 -0
- package/dist/meteora_client/accounts/PresetParameter.js.map +1 -0
- package/dist/meteora_client/accounts/index.d.ts +14 -0
- package/dist/meteora_client/accounts/index.js +18 -0
- package/dist/meteora_client/accounts/index.js.map +1 -0
- package/dist/meteora_client/errors/anchor.d.ts +434 -0
- package/dist/meteora_client/errors/anchor.js +713 -0
- package/dist/meteora_client/errors/anchor.js.map +1 -0
- package/dist/meteora_client/errors/custom.d.ts +474 -0
- package/dist/meteora_client/errors/custom.js +778 -0
- package/dist/meteora_client/errors/custom.js.map +1 -0
- package/dist/meteora_client/errors/index.d.ts +5 -0
- package/dist/meteora_client/errors/index.js +70 -0
- package/dist/meteora_client/errors/index.js.map +1 -0
- package/dist/meteora_client/instructions/addLiquidity.d.ts +25 -0
- package/dist/meteora_client/instructions/addLiquidity.js +67 -0
- package/dist/meteora_client/instructions/addLiquidity.js.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategy.d.ts +25 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategy.js +67 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategy.js.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.d.ts +21 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.js +63 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.js.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByWeight.d.ts +25 -0
- package/dist/meteora_client/instructions/addLiquidityByWeight.js +67 -0
- package/dist/meteora_client/instructions/addLiquidityByWeight.js.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSide.d.ts +21 -0
- package/dist/meteora_client/instructions/addLiquidityOneSide.js +63 -0
- package/dist/meteora_client/instructions/addLiquidityOneSide.js.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.d.ts +21 -0
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.js +63 -0
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.js.map +1 -0
- package/dist/meteora_client/instructions/claimFee.d.ts +18 -0
- package/dist/meteora_client/instructions/claimFee.js +28 -0
- package/dist/meteora_client/instructions/claimFee.js.map +1 -0
- package/dist/meteora_client/instructions/claimReward.d.ts +20 -0
- package/dist/meteora_client/instructions/claimReward.js +55 -0
- package/dist/meteora_client/instructions/claimReward.js.map +1 -0
- package/dist/meteora_client/instructions/closePosition.d.ts +12 -0
- package/dist/meteora_client/instructions/closePosition.js +22 -0
- package/dist/meteora_client/instructions/closePosition.js.map +1 -0
- package/dist/meteora_client/instructions/closePresetParameter.d.ts +7 -0
- package/dist/meteora_client/instructions/closePresetParameter.js +17 -0
- package/dist/meteora_client/instructions/closePresetParameter.js.map +1 -0
- package/dist/meteora_client/instructions/fundReward.d.ts +20 -0
- package/dist/meteora_client/instructions/fundReward.js +59 -0
- package/dist/meteora_client/instructions/fundReward.js.map +1 -0
- package/dist/meteora_client/instructions/goToABin.d.ts +14 -0
- package/dist/meteora_client/instructions/goToABin.js +54 -0
- package/dist/meteora_client/instructions/goToABin.js.map +1 -0
- package/dist/meteora_client/instructions/increaseOracleLength.d.ts +14 -0
- package/dist/meteora_client/instructions/increaseOracleLength.js +49 -0
- package/dist/meteora_client/instructions/increaseOracleLength.js.map +1 -0
- package/dist/meteora_client/instructions/index.d.ts +84 -0
- package/dist/meteora_client/instructions/index.js +88 -0
- package/dist/meteora_client/instructions/index.js.map +1 -0
- package/dist/meteora_client/instructions/initializeBinArray.d.ts +13 -0
- package/dist/meteora_client/instructions/initializeBinArray.js +48 -0
- package/dist/meteora_client/instructions/initializeBinArray.js.map +1 -0
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.d.ts +10 -0
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.js +23 -0
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.js.map +1 -0
- package/dist/meteora_client/instructions/initializeLbPair.d.ts +23 -0
- package/dist/meteora_client/instructions/initializeLbPair.js +66 -0
- package/dist/meteora_client/instructions/initializeLbPair.js.map +1 -0
- package/dist/meteora_client/instructions/initializePermissionLbPair.d.ts +23 -0
- package/dist/meteora_client/instructions/initializePermissionLbPair.js +65 -0
- package/dist/meteora_client/instructions/initializePermissionLbPair.js.map +1 -0
- package/dist/meteora_client/instructions/initializePosition.d.ts +17 -0
- package/dist/meteora_client/instructions/initializePosition.js +56 -0
- package/dist/meteora_client/instructions/initializePosition.js.map +1 -0
- package/dist/meteora_client/instructions/initializePositionByOperator.d.ts +21 -0
- package/dist/meteora_client/instructions/initializePositionByOperator.js +61 -0
- package/dist/meteora_client/instructions/initializePositionByOperator.js.map +1 -0
- package/dist/meteora_client/instructions/initializePositionPda.d.ts +19 -0
- package/dist/meteora_client/instructions/initializePositionPda.js +57 -0
- package/dist/meteora_client/instructions/initializePositionPda.js.map +1 -0
- package/dist/meteora_client/instructions/initializePresetParameter.d.ts +13 -0
- package/dist/meteora_client/instructions/initializePresetParameter.js +49 -0
- package/dist/meteora_client/instructions/initializePresetParameter.js.map +1 -0
- package/dist/meteora_client/instructions/initializeReward.d.ts +20 -0
- package/dist/meteora_client/instructions/initializeReward.js +59 -0
- package/dist/meteora_client/instructions/initializeReward.js.map +1 -0
- package/dist/meteora_client/instructions/migrateBinArray.d.ts +5 -0
- package/dist/meteora_client/instructions/migrateBinArray.js +15 -0
- package/dist/meteora_client/instructions/migrateBinArray.js.map +1 -0
- package/dist/meteora_client/instructions/migratePosition.d.ts +14 -0
- package/dist/meteora_client/instructions/migratePosition.js +24 -0
- package/dist/meteora_client/instructions/migratePosition.js.map +1 -0
- package/dist/meteora_client/instructions/removeAllLiquidity.d.ts +20 -0
- package/dist/meteora_client/instructions/removeAllLiquidity.js +34 -0
- package/dist/meteora_client/instructions/removeAllLiquidity.js.map +1 -0
- package/dist/meteora_client/instructions/removeLiquidity.d.ts +25 -0
- package/dist/meteora_client/instructions/removeLiquidity.js +67 -0
- package/dist/meteora_client/instructions/removeLiquidity.js.map +1 -0
- package/dist/meteora_client/instructions/removeLiquidityByRange.d.ts +26 -0
- package/dist/meteora_client/instructions/removeLiquidityByRange.js +70 -0
- package/dist/meteora_client/instructions/removeLiquidityByRange.js.map +1 -0
- package/dist/meteora_client/instructions/setActivationSlot.d.ts +11 -0
- package/dist/meteora_client/instructions/setActivationSlot.js +46 -0
- package/dist/meteora_client/instructions/setActivationSlot.js.map +1 -0
- package/dist/meteora_client/instructions/setLockReleaseSlot.d.ts +14 -0
- package/dist/meteora_client/instructions/setLockReleaseSlot.js +49 -0
- package/dist/meteora_client/instructions/setLockReleaseSlot.js.map +1 -0
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.d.ts +10 -0
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.js +46 -0
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.js.map +1 -0
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.d.ts +10 -0
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.js +48 -0
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.js.map +1 -0
- package/dist/meteora_client/instructions/swap.d.ts +25 -0
- package/dist/meteora_client/instructions/swap.js +67 -0
- package/dist/meteora_client/instructions/swap.js.map +1 -0
- package/dist/meteora_client/instructions/togglePairStatus.d.ts +6 -0
- package/dist/meteora_client/instructions/togglePairStatus.js +16 -0
- package/dist/meteora_client/instructions/togglePairStatus.js.map +1 -0
- package/dist/meteora_client/instructions/updateFeeOwner.d.ts +7 -0
- package/dist/meteora_client/instructions/updateFeeOwner.js +17 -0
- package/dist/meteora_client/instructions/updateFeeOwner.js.map +1 -0
- package/dist/meteora_client/instructions/updateFeeParameters.d.ts +13 -0
- package/dist/meteora_client/instructions/updateFeeParameters.js +49 -0
- package/dist/meteora_client/instructions/updateFeeParameters.js.map +1 -0
- package/dist/meteora_client/instructions/updateFeesAndRewards.d.ts +9 -0
- package/dist/meteora_client/instructions/updateFeesAndRewards.js +19 -0
- package/dist/meteora_client/instructions/updateFeesAndRewards.js.map +1 -0
- package/dist/meteora_client/instructions/updatePositionOperator.d.ts +12 -0
- package/dist/meteora_client/instructions/updatePositionOperator.js +48 -0
- package/dist/meteora_client/instructions/updatePositionOperator.js.map +1 -0
- package/dist/meteora_client/instructions/updateRewardDuration.d.ts +15 -0
- package/dist/meteora_client/instructions/updateRewardDuration.js +53 -0
- package/dist/meteora_client/instructions/updateRewardDuration.js.map +1 -0
- package/dist/meteora_client/instructions/updateRewardFunder.d.ts +14 -0
- package/dist/meteora_client/instructions/updateRewardFunder.js +52 -0
- package/dist/meteora_client/instructions/updateRewardFunder.js.map +1 -0
- package/dist/meteora_client/instructions/updateWhitelistedWallet.d.ts +10 -0
- package/dist/meteora_client/instructions/updateWhitelistedWallet.js +46 -0
- package/dist/meteora_client/instructions/updateWhitelistedWallet.js.map +1 -0
- package/dist/meteora_client/instructions/withdrawIneligibleReward.d.ts +18 -0
- package/dist/meteora_client/instructions/withdrawIneligibleReward.js +53 -0
- package/dist/meteora_client/instructions/withdrawIneligibleReward.js.map +1 -0
- package/dist/meteora_client/instructions/withdrawProtocolFee.d.ts +19 -0
- package/dist/meteora_client/instructions/withdrawProtocolFee.js +54 -0
- package/dist/meteora_client/instructions/withdrawProtocolFee.js.map +1 -0
- package/dist/meteora_client/programId.d.ts +5 -0
- package/dist/meteora_client/programId.js +15 -0
- package/dist/meteora_client/programId.js.map +1 -0
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.d.ts +33 -0
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.js +74 -0
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.js.map +1 -0
- package/dist/meteora_client/types/Bin.d.ts +89 -0
- package/dist/meteora_client/types/Bin.js +115 -0
- package/dist/meteora_client/types/Bin.js.map +1 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.d.ts +40 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.js +75 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.js.map +1 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.d.ts +32 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.js +66 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.js.map +1 -0
- package/dist/meteora_client/types/BinLiquidityReduction.d.ts +26 -0
- package/dist/meteora_client/types/BinLiquidityReduction.js +66 -0
- package/dist/meteora_client/types/BinLiquidityReduction.js.map +1 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.d.ts +26 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.js +66 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.js.map +1 -0
- package/dist/meteora_client/types/FeeInfo.d.ts +37 -0
- package/dist/meteora_client/types/FeeInfo.js +85 -0
- package/dist/meteora_client/types/FeeInfo.js.map +1 -0
- package/dist/meteora_client/types/FeeParameter.d.ts +32 -0
- package/dist/meteora_client/types/FeeParameter.js +66 -0
- package/dist/meteora_client/types/FeeParameter.js.map +1 -0
- package/dist/meteora_client/types/InitPermissionPairIx.d.ts +47 -0
- package/dist/meteora_client/types/InitPermissionPairIx.js +97 -0
- package/dist/meteora_client/types/InitPermissionPairIx.js.map +1 -0
- package/dist/meteora_client/types/InitPresetParametersIx.d.ts +96 -0
- package/dist/meteora_client/types/InitPresetParametersIx.js +117 -0
- package/dist/meteora_client/types/InitPresetParametersIx.js.map +1 -0
- package/dist/meteora_client/types/LayoutVersion.d.ts +31 -0
- package/dist/meteora_client/types/LayoutVersion.js +99 -0
- package/dist/meteora_client/types/LayoutVersion.js.map +1 -0
- package/dist/meteora_client/types/LiquidityOneSideParameter.d.ts +55 -0
- package/dist/meteora_client/types/LiquidityOneSideParameter.js +86 -0
- package/dist/meteora_client/types/LiquidityOneSideParameter.js.map +1 -0
- package/dist/meteora_client/types/LiquidityParameter.d.ts +49 -0
- package/dist/meteora_client/types/LiquidityParameter.js +80 -0
- package/dist/meteora_client/types/LiquidityParameter.js.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategy.d.ts +103 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategy.js +92 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategy.js.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.d.ts +95 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.js +86 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.js.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByWeight.d.ts +63 -0
- package/dist/meteora_client/types/LiquidityParameterByWeight.js +92 -0
- package/dist/meteora_client/types/LiquidityParameterByWeight.js.map +1 -0
- package/dist/meteora_client/types/Observation.d.ts +41 -0
- package/dist/meteora_client/types/Observation.js +79 -0
- package/dist/meteora_client/types/Observation.js.map +1 -0
- package/dist/meteora_client/types/PairStatus.d.ts +31 -0
- package/dist/meteora_client/types/PairStatus.js +102 -0
- package/dist/meteora_client/types/PairStatus.js.map +1 -0
- package/dist/meteora_client/types/PairType.d.ts +31 -0
- package/dist/meteora_client/types/PairType.js +102 -0
- package/dist/meteora_client/types/PairType.js.map +1 -0
- package/dist/meteora_client/types/ProtocolFee.d.ts +27 -0
- package/dist/meteora_client/types/ProtocolFee.js +70 -0
- package/dist/meteora_client/types/ProtocolFee.js.map +1 -0
- package/dist/meteora_client/types/RewardInfo.d.ts +83 -0
- package/dist/meteora_client/types/RewardInfo.js +112 -0
- package/dist/meteora_client/types/RewardInfo.js.map +1 -0
- package/dist/meteora_client/types/Rounding.d.ts +31 -0
- package/dist/meteora_client/types/Rounding.js +99 -0
- package/dist/meteora_client/types/Rounding.js.map +1 -0
- package/dist/meteora_client/types/StaticParameters.d.ts +97 -0
- package/dist/meteora_client/types/StaticParameters.js +118 -0
- package/dist/meteora_client/types/StaticParameters.js.map +1 -0
- package/dist/meteora_client/types/StrategyParameters.d.ts +84 -0
- package/dist/meteora_client/types/StrategyParameters.js +82 -0
- package/dist/meteora_client/types/StrategyParameters.js.map +1 -0
- package/dist/meteora_client/types/StrategyType.d.ts +122 -0
- package/dist/meteora_client/types/StrategyType.js +284 -0
- package/dist/meteora_client/types/StrategyType.js.map +1 -0
- package/dist/meteora_client/types/UserRewardInfo.d.ts +27 -0
- package/dist/meteora_client/types/UserRewardInfo.js +73 -0
- package/dist/meteora_client/types/UserRewardInfo.js.map +1 -0
- package/dist/meteora_client/types/VariableParameters.d.ts +75 -0
- package/dist/meteora_client/types/VariableParameters.js +98 -0
- package/dist/meteora_client/types/VariableParameters.js.map +1 -0
- package/dist/meteora_client/types/index.d.ts +67 -0
- package/dist/meteora_client/types/index.js +81 -0
- package/dist/meteora_client/types/index.js.map +1 -0
- package/dist/models/EnrichedScopePrice.d.ts +28 -0
- package/dist/models/EnrichedScopePrice.js +3 -0
- package/dist/models/EnrichedScopePrice.js.map +1 -0
- package/dist/models/Holdings.d.ts +13 -0
- package/dist/models/Holdings.js +3 -0
- package/dist/models/Holdings.js.map +1 -0
- package/dist/models/KaminoPosition.d.ts +10 -0
- package/dist/models/KaminoPosition.js +3 -0
- package/dist/models/KaminoPosition.js.map +1 -0
- package/dist/models/KaminoStrategyWithShareMint.d.ts +8 -0
- package/dist/models/KaminoStrategyWithShareMint.js +3 -0
- package/dist/models/KaminoStrategyWithShareMint.js.map +1 -0
- package/dist/models/KaminoToken.d.ts +5 -0
- package/dist/models/KaminoToken.js +3 -0
- package/dist/models/KaminoToken.js.map +1 -0
- package/dist/models/LbPairWithAddress.d.ts +7 -0
- package/dist/models/LbPairWithAddress.js +3 -0
- package/dist/models/LbPairWithAddress.js.map +1 -0
- package/dist/models/MultipleAccountsResponse.d.ts +42 -0
- package/dist/models/MultipleAccountsResponse.js +3 -0
- package/dist/models/MultipleAccountsResponse.js.map +1 -0
- package/dist/models/PoolSimulationResponseData.d.ts +27 -0
- package/dist/models/PoolSimulationResponseData.js +3 -0
- package/dist/models/PoolSimulationResponseData.js.map +1 -0
- package/dist/models/PriceData.d.ts +15 -0
- package/dist/models/PriceData.js +3 -0
- package/dist/models/PriceData.js.map +1 -0
- package/dist/models/RaydiumPoolWithAddress.d.ts +7 -0
- package/dist/models/RaydiumPoolWithAddress.js +3 -0
- package/dist/models/RaydiumPoolWithAddress.js.map +1 -0
- package/dist/models/ShareData.d.ts +15 -0
- package/dist/models/ShareData.js +25 -0
- package/dist/models/ShareData.js.map +1 -0
- package/dist/models/StrategyBalances.d.ts +14 -0
- package/dist/models/StrategyBalances.js +3 -0
- package/dist/models/StrategyBalances.js.map +1 -0
- package/dist/models/StrategyHolder.d.ts +6 -0
- package/dist/models/StrategyHolder.js +3 -0
- package/dist/models/StrategyHolder.js.map +1 -0
- package/dist/models/StrategyPrices.d.ts +10 -0
- package/dist/models/StrategyPrices.js +3 -0
- package/dist/models/StrategyPrices.js.map +1 -0
- package/dist/models/StrategyProgramAddress.d.ts +13 -0
- package/dist/models/StrategyProgramAddress.js +3 -0
- package/dist/models/StrategyProgramAddress.js.map +1 -0
- package/dist/models/StrategyVaultBalances.d.ts +5 -0
- package/dist/models/StrategyVaultBalances.js +3 -0
- package/dist/models/StrategyVaultBalances.js.map +1 -0
- package/dist/models/StrategyVaultTokens.d.ts +12 -0
- package/dist/models/StrategyVaultTokens.js +3 -0
- package/dist/models/StrategyVaultTokens.js.map +1 -0
- package/dist/models/StrategyWithAddress.d.ts +7 -0
- package/dist/models/StrategyWithAddress.js +3 -0
- package/dist/models/StrategyWithAddress.js.map +1 -0
- package/dist/models/StrategyWithPendingFees.d.ts +6 -0
- package/dist/models/StrategyWithPendingFees.js +3 -0
- package/dist/models/StrategyWithPendingFees.js.map +1 -0
- package/dist/models/TokenAmounts.d.ts +5 -0
- package/dist/models/TokenAmounts.js +3 -0
- package/dist/models/TokenAmounts.js.map +1 -0
- package/dist/models/TreasuryFeeVault.d.ts +7 -0
- package/dist/models/TreasuryFeeVault.js +3 -0
- package/dist/models/TreasuryFeeVault.js.map +1 -0
- package/dist/models/WhirlpoolWithAddress.d.ts +7 -0
- package/dist/models/WhirlpoolWithAddress.js +3 -0
- package/dist/models/WhirlpoolWithAddress.js.map +1 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +36 -0
- package/dist/models/index.js.map +1 -0
- package/dist/raydium_client/accounts/AmmConfig.d.ts +46 -0
- package/dist/raydium_client/accounts/AmmConfig.js +145 -0
- package/dist/raydium_client/accounts/AmmConfig.js.map +1 -0
- package/dist/raydium_client/accounts/ObservationState.d.ts +29 -0
- package/dist/raydium_client/accounts/ObservationState.js +116 -0
- package/dist/raydium_client/accounts/ObservationState.js.map +1 -0
- package/dist/raydium_client/accounts/OperationState.d.ts +24 -0
- package/dist/raydium_client/accounts/OperationState.js +106 -0
- package/dist/raydium_client/accounts/OperationState.js.map +1 -0
- package/dist/raydium_client/accounts/PersonalPositionState.d.ts +53 -0
- package/dist/raydium_client/accounts/PersonalPositionState.js +156 -0
- package/dist/raydium_client/accounts/PersonalPositionState.js.map +1 -0
- package/dist/raydium_client/accounts/PoolState.d.ts +128 -0
- package/dist/raydium_client/accounts/PoolState.js +281 -0
- package/dist/raydium_client/accounts/PoolState.js.map +1 -0
- package/dist/raydium_client/accounts/ProtocolPositionState.d.ts +49 -0
- package/dist/raydium_client/accounts/ProtocolPositionState.js +150 -0
- package/dist/raydium_client/accounts/ProtocolPositionState.js.map +1 -0
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.d.ts +25 -0
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.js +110 -0
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.js.map +1 -0
- package/dist/raydium_client/accounts/TickArrayState.d.ts +31 -0
- package/dist/raydium_client/accounts/TickArrayState.js +117 -0
- package/dist/raydium_client/accounts/TickArrayState.js.map +1 -0
- package/dist/raydium_client/accounts/index.d.ts +16 -0
- package/dist/raydium_client/accounts/index.js +20 -0
- package/dist/raydium_client/accounts/index.js.map +1 -0
- package/dist/raydium_client/errors/anchor.d.ts +434 -0
- package/dist/raydium_client/errors/anchor.js +713 -0
- package/dist/raydium_client/errors/anchor.js.map +1 -0
- package/dist/raydium_client/errors/custom.d.ts +338 -0
- package/dist/raydium_client/errors/custom.js +556 -0
- package/dist/raydium_client/errors/custom.js.map +1 -0
- package/dist/raydium_client/errors/index.d.ts +5 -0
- package/dist/raydium_client/errors/index.js +70 -0
- package/dist/raydium_client/errors/index.js.map +1 -0
- package/dist/raydium_client/index.d.ts +4 -0
- package/dist/raydium_client/index.js +21 -0
- package/dist/raydium_client/index.js.map +1 -0
- package/dist/raydium_client/instructions/closePosition.d.ts +10 -0
- package/dist/raydium_client/instructions/closePosition.js +20 -0
- package/dist/raydium_client/instructions/closePosition.js.map +1 -0
- package/dist/raydium_client/instructions/collectFundFee.d.ts +21 -0
- package/dist/raydium_client/instructions/collectFundFee.js +67 -0
- package/dist/raydium_client/instructions/collectFundFee.js.map +1 -0
- package/dist/raydium_client/instructions/collectProtocolFee.d.ts +21 -0
- package/dist/raydium_client/instructions/collectProtocolFee.js +67 -0
- package/dist/raydium_client/instructions/collectProtocolFee.js.map +1 -0
- package/dist/raydium_client/instructions/collectRemainingRewards.d.ts +16 -0
- package/dist/raydium_client/instructions/collectRemainingRewards.js +52 -0
- package/dist/raydium_client/instructions/collectRemainingRewards.js.map +1 -0
- package/dist/raydium_client/instructions/createAmmConfig.d.ts +15 -0
- package/dist/raydium_client/instructions/createAmmConfig.js +57 -0
- package/dist/raydium_client/instructions/createAmmConfig.js.map +1 -0
- package/dist/raydium_client/instructions/createOperationAccount.d.ts +7 -0
- package/dist/raydium_client/instructions/createOperationAccount.js +17 -0
- package/dist/raydium_client/instructions/createOperationAccount.js.map +1 -0
- package/dist/raydium_client/instructions/createPool.d.ts +23 -0
- package/dist/raydium_client/instructions/createPool.js +61 -0
- package/dist/raydium_client/instructions/createPool.js.map +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidity.d.ts +23 -0
- package/dist/raydium_client/instructions/decreaseLiquidity.js +70 -0
- package/dist/raydium_client/instructions/decreaseLiquidity.js.map +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidityV2.d.ts +27 -0
- package/dist/raydium_client/instructions/decreaseLiquidityV2.js +74 -0
- package/dist/raydium_client/instructions/decreaseLiquidityV2.js.map +1 -0
- package/dist/raydium_client/instructions/increaseLiquidity.d.ts +23 -0
- package/dist/raydium_client/instructions/increaseLiquidity.js +62 -0
- package/dist/raydium_client/instructions/increaseLiquidity.js.map +1 -0
- package/dist/raydium_client/instructions/increaseLiquidityV2.d.ts +27 -0
- package/dist/raydium_client/instructions/increaseLiquidityV2.js +67 -0
- package/dist/raydium_client/instructions/increaseLiquidityV2.js.map +1 -0
- package/dist/raydium_client/instructions/index.d.ts +46 -0
- package/dist/raydium_client/instructions/index.js +50 -0
- package/dist/raydium_client/instructions/index.js.map +1 -0
- package/dist/raydium_client/instructions/initializeReward.d.ts +19 -0
- package/dist/raydium_client/instructions/initializeReward.js +57 -0
- package/dist/raydium_client/instructions/initializeReward.js.map +1 -0
- package/dist/raydium_client/instructions/openPosition.d.ts +34 -0
- package/dist/raydium_client/instructions/openPosition.js +81 -0
- package/dist/raydium_client/instructions/openPosition.js.map +1 -0
- package/dist/raydium_client/instructions/openPositionV2.d.ts +39 -0
- package/dist/raydium_client/instructions/openPositionV2.js +88 -0
- package/dist/raydium_client/instructions/openPositionV2.js.map +1 -0
- package/dist/raydium_client/instructions/setRewardParams.d.ts +18 -0
- package/dist/raydium_client/instructions/setRewardParams.js +58 -0
- package/dist/raydium_client/instructions/setRewardParams.js.map +1 -0
- package/dist/raydium_client/instructions/swap.d.ts +22 -0
- package/dist/raydium_client/instructions/swap.js +62 -0
- package/dist/raydium_client/instructions/swap.js.map +1 -0
- package/dist/raydium_client/instructions/swapRouterBaseIn.d.ts +16 -0
- package/dist/raydium_client/instructions/swapRouterBaseIn.js +54 -0
- package/dist/raydium_client/instructions/swapRouterBaseIn.js.map +1 -0
- package/dist/raydium_client/instructions/swapV2.d.ts +25 -0
- package/dist/raydium_client/instructions/swapV2.js +65 -0
- package/dist/raydium_client/instructions/swapV2.js.map +1 -0
- package/dist/raydium_client/instructions/transferRewardOwner.d.ts +10 -0
- package/dist/raydium_client/instructions/transferRewardOwner.js +46 -0
- package/dist/raydium_client/instructions/transferRewardOwner.js.map +1 -0
- package/dist/raydium_client/instructions/updateAmmConfig.d.ts +11 -0
- package/dist/raydium_client/instructions/updateAmmConfig.js +47 -0
- package/dist/raydium_client/instructions/updateAmmConfig.js.map +1 -0
- package/dist/raydium_client/instructions/updateOperationAccount.d.ts +12 -0
- package/dist/raydium_client/instructions/updateOperationAccount.js +51 -0
- package/dist/raydium_client/instructions/updateOperationAccount.js.map +1 -0
- package/dist/raydium_client/instructions/updatePoolStatus.d.ts +10 -0
- package/dist/raydium_client/instructions/updatePoolStatus.js +46 -0
- package/dist/raydium_client/instructions/updatePoolStatus.js.map +1 -0
- package/dist/raydium_client/instructions/updateRewardInfos.d.ts +5 -0
- package/dist/raydium_client/instructions/updateRewardInfos.js +15 -0
- package/dist/raydium_client/instructions/updateRewardInfos.js.map +1 -0
- package/dist/raydium_client/programId.d.ts +5 -0
- package/dist/raydium_client/programId.js +15 -0
- package/dist/raydium_client/programId.js.map +1 -0
- package/dist/raydium_client/types/InitializeRewardParam.d.ts +32 -0
- package/dist/raydium_client/types/InitializeRewardParam.js +79 -0
- package/dist/raydium_client/types/InitializeRewardParam.js.map +1 -0
- package/dist/raydium_client/types/Observation.d.ts +37 -0
- package/dist/raydium_client/types/Observation.js +85 -0
- package/dist/raydium_client/types/Observation.js.map +1 -0
- package/dist/raydium_client/types/PoolStatusBitFlag.d.ts +31 -0
- package/dist/raydium_client/types/PoolStatusBitFlag.js +102 -0
- package/dist/raydium_client/types/PoolStatusBitFlag.js.map +1 -0
- package/dist/raydium_client/types/PoolStatusBitIndex.d.ts +70 -0
- package/dist/raydium_client/types/PoolStatusBitIndex.js +180 -0
- package/dist/raydium_client/types/PoolStatusBitIndex.js.map +1 -0
- package/dist/raydium_client/types/PositionRewardInfo.d.ts +27 -0
- package/dist/raydium_client/types/PositionRewardInfo.js +70 -0
- package/dist/raydium_client/types/PositionRewardInfo.js.map +1 -0
- package/dist/raydium_client/types/RewardInfo.d.ts +73 -0
- package/dist/raydium_client/types/RewardInfo.js +128 -0
- package/dist/raydium_client/types/RewardInfo.js.map +1 -0
- package/dist/raydium_client/types/RewardState.d.ts +57 -0
- package/dist/raydium_client/types/RewardState.js +154 -0
- package/dist/raydium_client/types/RewardState.js.map +1 -0
- package/dist/raydium_client/types/TickArryBitmap.d.ts +0 -0
- package/dist/raydium_client/types/TickArryBitmap.js +2 -0
- package/dist/raydium_client/types/TickArryBitmap.js.map +1 -0
- package/dist/raydium_client/types/TickState.d.ts +52 -0
- package/dist/raydium_client/types/TickState.js +103 -0
- package/dist/raydium_client/types/TickState.js.map +1 -0
- package/dist/raydium_client/types/index.d.ts +22 -0
- package/dist/raydium_client/types/index.js +43 -0
- package/dist/raydium_client/types/index.js.map +1 -0
- package/dist/rebalance_methods/autodriftRebalance.d.ts +20 -0
- package/dist/rebalance_methods/autodriftRebalance.js +220 -0
- package/dist/rebalance_methods/autodriftRebalance.js.map +1 -0
- package/dist/rebalance_methods/consts.d.ts +1 -0
- package/dist/rebalance_methods/consts.js +5 -0
- package/dist/rebalance_methods/consts.js.map +1 -0
- package/dist/rebalance_methods/driftRebalance.d.ts +17 -0
- package/dist/rebalance_methods/driftRebalance.js +180 -0
- package/dist/rebalance_methods/driftRebalance.js.map +1 -0
- package/dist/rebalance_methods/expanderRebalance.d.ts +18 -0
- package/dist/rebalance_methods/expanderRebalance.js +283 -0
- package/dist/rebalance_methods/expanderRebalance.js.map +1 -0
- package/dist/rebalance_methods/index.d.ts +7 -0
- package/dist/rebalance_methods/index.js +24 -0
- package/dist/rebalance_methods/index.js.map +1 -0
- package/dist/rebalance_methods/manualRebalance.d.ts +5 -0
- package/dist/rebalance_methods/manualRebalance.js +35 -0
- package/dist/rebalance_methods/manualRebalance.js.map +1 -0
- package/dist/rebalance_methods/math_utils.d.ts +4 -0
- package/dist/rebalance_methods/math_utils.js +18 -0
- package/dist/rebalance_methods/math_utils.js.map +1 -0
- package/dist/rebalance_methods/periodicRebalance.d.ts +14 -0
- package/dist/rebalance_methods/periodicRebalance.js +92 -0
- package/dist/rebalance_methods/periodicRebalance.js.map +1 -0
- package/dist/rebalance_methods/pricePercentageRebalance.d.ts +13 -0
- package/dist/rebalance_methods/pricePercentageRebalance.js +150 -0
- package/dist/rebalance_methods/pricePercentageRebalance.js.map +1 -0
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.d.ts +14 -0
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.js +233 -0
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.js.map +1 -0
- package/dist/rebalance_methods/takeProfitRebalance.d.ts +14 -0
- package/dist/rebalance_methods/takeProfitRebalance.js +99 -0
- package/dist/rebalance_methods/takeProfitRebalance.js.map +1 -0
- package/dist/rebalance_methods/utils.d.ts +10 -0
- package/dist/rebalance_methods/utils.js +103 -0
- package/dist/rebalance_methods/utils.js.map +1 -0
- package/dist/services/JupService.d.ts +22 -0
- package/dist/services/JupService.js +130 -0
- package/dist/services/JupService.js.map +1 -0
- package/dist/services/MeteoraService.d.ts +24 -0
- package/dist/services/MeteoraService.js +193 -0
- package/dist/services/MeteoraService.js.map +1 -0
- package/dist/services/OrcaService.d.ts +36 -0
- package/dist/services/OrcaService.js +290 -0
- package/dist/services/OrcaService.js.map +1 -0
- package/dist/services/OrcaWhirlpoolsResponse.d.ts +105 -0
- package/dist/services/OrcaWhirlpoolsResponse.js +3 -0
- package/dist/services/OrcaWhirlpoolsResponse.js.map +1 -0
- package/dist/services/PoolSimulationService.d.ts +20 -0
- package/dist/services/PoolSimulationService.js +30 -0
- package/dist/services/PoolSimulationService.js.map +1 -0
- package/dist/services/RaydiumPoolsResponse.d.ts +85 -0
- package/dist/services/RaydiumPoolsResponse.js +3 -0
- package/dist/services/RaydiumPoolsResponse.js.map +1 -0
- package/dist/services/RaydiumService.d.ts +18 -0
- package/dist/services/RaydiumService.js +202 -0
- package/dist/services/RaydiumService.js.map +1 -0
- package/dist/services/WhirlpoolAprApy.d.ts +13 -0
- package/dist/services/WhirlpoolAprApy.js +3 -0
- package/dist/services/WhirlpoolAprApy.js.map +1 -0
- package/dist/services/index.d.ts +5 -0
- package/dist/services/index.js +22 -0
- package/dist/services/index.js.map +1 -0
- package/dist/utils/CreationParameters.d.ts +32 -0
- package/dist/utils/CreationParameters.js +81 -0
- package/dist/utils/CreationParameters.js.map +1 -0
- package/dist/utils/anchorUtils.d.ts +5 -0
- package/dist/utils/anchorUtils.js +27 -0
- package/dist/utils/anchorUtils.js.map +1 -0
- package/dist/utils/batch.d.ts +2 -0
- package/dist/utils/batch.js +24 -0
- package/dist/utils/batch.js.map +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +25 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/instructions.d.ts +6 -0
- package/dist/utils/instructions.js +40 -0
- package/dist/utils/instructions.js.map +1 -0
- package/dist/utils/lookupTable.d.ts +4 -0
- package/dist/utils/lookupTable.js +51 -0
- package/dist/utils/lookupTable.js.map +1 -0
- package/dist/utils/math.d.ts +3 -0
- package/dist/utils/math.js +16 -0
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/meteora.d.ts +20 -0
- package/dist/utils/meteora.js +80 -0
- package/dist/utils/meteora.js.map +1 -0
- package/dist/utils/orca.d.ts +2 -0
- package/dist/utils/orca.js +8 -0
- package/dist/utils/orca.js.map +1 -0
- package/dist/utils/priceReferenceTypes.d.ts +3 -0
- package/dist/utils/priceReferenceTypes.js +12 -0
- package/dist/utils/priceReferenceTypes.js.map +1 -0
- package/dist/utils/pubkey.d.ts +65 -0
- package/dist/utils/pubkey.js +218 -0
- package/dist/utils/pubkey.js.map +1 -0
- package/dist/utils/raydium.d.ts +1 -0
- package/dist/utils/raydium.js +15 -0
- package/dist/utils/raydium.js.map +1 -0
- package/dist/utils/tokenUtils.d.ts +47 -0
- package/dist/utils/tokenUtils.js +185 -0
- package/dist/utils/tokenUtils.js.map +1 -0
- package/dist/utils/transactions.d.ts +13 -0
- package/dist/utils/transactions.js +147 -0
- package/dist/utils/transactions.js.map +1 -0
- package/dist/utils/types.d.ts +178 -0
- package/dist/utils/types.js +110 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/utils.d.ts +36 -0
- package/dist/utils/utils.js +313 -0
- package/dist/utils/utils.js.map +1 -0
- package/dist/whirlpools-client/accounts/FeeTier.d.ts +24 -0
- package/dist/whirlpools-client/accounts/FeeTier.js +106 -0
- package/dist/whirlpools-client/accounts/FeeTier.js.map +1 -0
- package/dist/whirlpools-client/accounts/Position.d.ts +47 -0
- package/dist/whirlpools-client/accounts/Position.js +146 -0
- package/dist/whirlpools-client/accounts/Position.js.map +1 -0
- package/dist/whirlpools-client/accounts/PositionBundle.d.ts +21 -0
- package/dist/whirlpools-client/accounts/PositionBundle.js +101 -0
- package/dist/whirlpools-client/accounts/PositionBundle.js.map +1 -0
- package/dist/whirlpools-client/accounts/TickArray.d.ts +25 -0
- package/dist/whirlpools-client/accounts/TickArray.js +107 -0
- package/dist/whirlpools-client/accounts/TickArray.js.map +1 -0
- package/dist/whirlpools-client/accounts/TokenBadge.d.ts +21 -0
- package/dist/whirlpools-client/accounts/TokenBadge.js +101 -0
- package/dist/whirlpools-client/accounts/TokenBadge.js.map +1 -0
- package/dist/whirlpools-client/accounts/Whirlpool.d.ts +74 -0
- package/dist/whirlpools-client/accounts/Whirlpool.js +191 -0
- package/dist/whirlpools-client/accounts/Whirlpool.js.map +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.d.ts +27 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.js +111 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.js.map +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.d.ts +24 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.js +106 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.js.map +1 -0
- package/dist/whirlpools-client/accounts/index.d.ts +16 -0
- package/dist/whirlpools-client/accounts/index.js +20 -0
- package/dist/whirlpools-client/accounts/index.js.map +1 -0
- package/dist/whirlpools-client/errors/anchor.d.ts +434 -0
- package/dist/whirlpools-client/errors/anchor.js +713 -0
- package/dist/whirlpools-client/errors/anchor.js.map +1 -0
- package/dist/whirlpools-client/errors/custom.d.ts +434 -0
- package/dist/whirlpools-client/errors/custom.js +713 -0
- package/dist/whirlpools-client/errors/custom.js.map +1 -0
- package/dist/whirlpools-client/errors/index.d.ts +5 -0
- package/dist/whirlpools-client/errors/index.js +70 -0
- package/dist/whirlpools-client/errors/index.js.map +1 -0
- package/dist/whirlpools-client/index.d.ts +4 -0
- package/dist/whirlpools-client/index.js +21 -0
- package/dist/whirlpools-client/index.js.map +1 -0
- package/dist/whirlpools-client/instructions/closeBundledPosition.d.ts +13 -0
- package/dist/whirlpools-client/instructions/closeBundledPosition.js +57 -0
- package/dist/whirlpools-client/instructions/closeBundledPosition.js.map +1 -0
- package/dist/whirlpools-client/instructions/closePosition.d.ts +10 -0
- package/dist/whirlpools-client/instructions/closePosition.js +24 -0
- package/dist/whirlpools-client/instructions/closePosition.js.map +1 -0
- package/dist/whirlpools-client/instructions/collectFees.d.ts +13 -0
- package/dist/whirlpools-client/instructions/collectFees.js +27 -0
- package/dist/whirlpools-client/instructions/collectFees.js.map +1 -0
- package/dist/whirlpools-client/instructions/collectFeesV2.d.ts +22 -0
- package/dist/whirlpools-client/instructions/collectFeesV2.js +66 -0
- package/dist/whirlpools-client/instructions/collectFeesV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFees.d.ts +12 -0
- package/dist/whirlpools-client/instructions/collectProtocolFees.js +26 -0
- package/dist/whirlpools-client/instructions/collectProtocolFees.js.map +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.d.ts +21 -0
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.js +65 -0
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/collectReward.d.ts +15 -0
- package/dist/whirlpools-client/instructions/collectReward.js +55 -0
- package/dist/whirlpools-client/instructions/collectReward.js.map +1 -0
- package/dist/whirlpools-client/instructions/collectRewardV2.d.ts +19 -0
- package/dist/whirlpools-client/instructions/collectRewardV2.js +64 -0
- package/dist/whirlpools-client/instructions/collectRewardV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidity.d.ts +22 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidity.js +65 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidity.js.map +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.d.ts +28 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.js +74 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/deletePositionBundle.d.ts +10 -0
- package/dist/whirlpools-client/instructions/deletePositionBundle.js +24 -0
- package/dist/whirlpools-client/instructions/deletePositionBundle.js.map +1 -0
- package/dist/whirlpools-client/instructions/deleteTokenBadge.d.ts +10 -0
- package/dist/whirlpools-client/instructions/deleteTokenBadge.js +24 -0
- package/dist/whirlpools-client/instructions/deleteTokenBadge.js.map +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidity.d.ts +22 -0
- package/dist/whirlpools-client/instructions/increaseLiquidity.js +65 -0
- package/dist/whirlpools-client/instructions/increaseLiquidity.js.map +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.d.ts +28 -0
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.js +74 -0
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/index.d.ts +92 -0
- package/dist/whirlpools-client/instructions/index.js +96 -0
- package/dist/whirlpools-client/instructions/index.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializeConfig.d.ts +14 -0
- package/dist/whirlpools-client/instructions/initializeConfig.js +55 -0
- package/dist/whirlpools-client/instructions/initializeConfig.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializeConfigExtension.d.ts +9 -0
- package/dist/whirlpools-client/instructions/initializeConfigExtension.js +19 -0
- package/dist/whirlpools-client/instructions/initializeConfigExtension.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializeFeeTier.d.ts +14 -0
- package/dist/whirlpools-client/instructions/initializeFeeTier.js +53 -0
- package/dist/whirlpools-client/instructions/initializeFeeTier.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializePool.d.ts +23 -0
- package/dist/whirlpools-client/instructions/initializePool.js +62 -0
- package/dist/whirlpools-client/instructions/initializePool.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializePoolV2.d.ts +24 -0
- package/dist/whirlpools-client/instructions/initializePoolV2.js +62 -0
- package/dist/whirlpools-client/instructions/initializePoolV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundle.d.ts +13 -0
- package/dist/whirlpools-client/instructions/initializePositionBundle.js +35 -0
- package/dist/whirlpools-client/instructions/initializePositionBundle.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.d.ts +16 -0
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.js +42 -0
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializeReward.d.ts +16 -0
- package/dist/whirlpools-client/instructions/initializeReward.js +52 -0
- package/dist/whirlpools-client/instructions/initializeReward.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializeRewardV2.d.ts +17 -0
- package/dist/whirlpools-client/instructions/initializeRewardV2.js +53 -0
- package/dist/whirlpools-client/instructions/initializeRewardV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializeTickArray.d.ts +12 -0
- package/dist/whirlpools-client/instructions/initializeTickArray.js +48 -0
- package/dist/whirlpools-client/instructions/initializeTickArray.js.map +1 -0
- package/dist/whirlpools-client/instructions/initializeTokenBadge.d.ts +11 -0
- package/dist/whirlpools-client/instructions/initializeTokenBadge.js +25 -0
- package/dist/whirlpools-client/instructions/initializeTokenBadge.js.map +1 -0
- package/dist/whirlpools-client/instructions/openBundledPosition.d.ts +18 -0
- package/dist/whirlpools-client/instructions/openBundledPosition.js +66 -0
- package/dist/whirlpools-client/instructions/openBundledPosition.js.map +1 -0
- package/dist/whirlpools-client/instructions/openPosition.d.ts +21 -0
- package/dist/whirlpools-client/instructions/openPosition.js +69 -0
- package/dist/whirlpools-client/instructions/openPosition.js.map +1 -0
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.d.ts +24 -0
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.js +76 -0
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.js.map +1 -0
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.d.ts +7 -0
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.js +25 -0
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.js.map +1 -0
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.d.ts +8 -0
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.js +30 -0
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.js.map +1 -0
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.d.ts +11 -0
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.js +47 -0
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.js.map +1 -0
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.d.ts +10 -0
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.js +46 -0
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.js.map +1 -0
- package/dist/whirlpools-client/instructions/setFeeAuthority.d.ts +7 -0
- package/dist/whirlpools-client/instructions/setFeeAuthority.js +17 -0
- package/dist/whirlpools-client/instructions/setFeeAuthority.js.map +1 -0
- package/dist/whirlpools-client/instructions/setFeeRate.d.ts +11 -0
- package/dist/whirlpools-client/instructions/setFeeRate.js +47 -0
- package/dist/whirlpools-client/instructions/setFeeRate.js.map +1 -0
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.d.ts +11 -0
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.js +47 -0
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.js.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthority.d.ts +11 -0
- package/dist/whirlpools-client/instructions/setRewardAuthority.js +47 -0
- package/dist/whirlpools-client/instructions/setRewardAuthority.js.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.d.ts +12 -0
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.js +52 -0
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.js.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissions.d.ts +13 -0
- package/dist/whirlpools-client/instructions/setRewardEmissions.js +51 -0
- package/dist/whirlpools-client/instructions/setRewardEmissions.js.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.d.ts +7 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.js +25 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.js.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.d.ts +13 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.js +51 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.d.ts +8 -0
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.js +30 -0
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.js.map +1 -0
- package/dist/whirlpools-client/instructions/swap.d.ts +24 -0
- package/dist/whirlpools-client/instructions/swap.js +65 -0
- package/dist/whirlpools-client/instructions/swap.js.map +1 -0
- package/dist/whirlpools-client/instructions/swapV2.d.ts +30 -0
- package/dist/whirlpools-client/instructions/swapV2.js +74 -0
- package/dist/whirlpools-client/instructions/swapV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwap.d.ts +35 -0
- package/dist/whirlpools-client/instructions/twoHopSwap.js +94 -0
- package/dist/whirlpools-client/instructions/twoHopSwap.js.map +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwapV2.d.ts +41 -0
- package/dist/whirlpools-client/instructions/twoHopSwapV2.js +111 -0
- package/dist/whirlpools-client/instructions/twoHopSwapV2.js.map +1 -0
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.d.ts +8 -0
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.js +18 -0
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.js.map +1 -0
- package/dist/whirlpools-client/programId.d.ts +5 -0
- package/dist/whirlpools-client/programId.js +15 -0
- package/dist/whirlpools-client/programId.js.map +1 -0
- package/dist/whirlpools-client/shim/remove-liquidity.d.ts +15 -0
- package/dist/whirlpools-client/shim/remove-liquidity.js +72 -0
- package/dist/whirlpools-client/shim/remove-liquidity.js.map +1 -0
- package/dist/whirlpools-client/types/AccountsType.d.ts +83 -0
- package/dist/whirlpools-client/types/AccountsType.js +206 -0
- package/dist/whirlpools-client/types/AccountsType.js.map +1 -0
- package/dist/whirlpools-client/types/CurrIndex.d.ts +44 -0
- package/dist/whirlpools-client/types/CurrIndex.js +128 -0
- package/dist/whirlpools-client/types/CurrIndex.js.map +1 -0
- package/dist/whirlpools-client/types/Direction.d.ts +31 -0
- package/dist/whirlpools-client/types/Direction.js +102 -0
- package/dist/whirlpools-client/types/Direction.js.map +1 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.d.ts +21 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.js +61 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.js.map +1 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.d.ts +26 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.js +66 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.js.map +1 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.d.ts +27 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.js +70 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.js.map +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsInfo.d.ts +51 -0
- package/dist/whirlpools-client/types/RemainingAccountsInfo.js +62 -0
- package/dist/whirlpools-client/types/RemainingAccountsInfo.js.map +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.d.ts +50 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.js +67 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.js.map +1 -0
- package/dist/whirlpools-client/types/Tick.d.ts +47 -0
- package/dist/whirlpools-client/types/Tick.js +97 -0
- package/dist/whirlpools-client/types/Tick.js.map +1 -0
- package/dist/whirlpools-client/types/TickLabel.d.ts +31 -0
- package/dist/whirlpools-client/types/TickLabel.js +102 -0
- package/dist/whirlpools-client/types/TickLabel.js.map +1 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.d.ts +21 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.js +61 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.js.map +1 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.d.ts +43 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.js +92 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.js.map +1 -0
- package/dist/whirlpools-client/types/index.d.ts +32 -0
- package/dist/whirlpools-client/types/index.js +51 -0
- package/dist/whirlpools-client/types/index.js.map +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalConfig.js","sourceRoot":"","sources":["../../../src/kamino-client/accounts/GlobalConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,kDAAsB,CAAC,wDAAwD;AAC/E,wDAAyC,CAAC,wDAAwD;AAElG,4CAAyC;AAwDzC,MAAa,YAAY;IAyDvB,YAAY,MAA0B;QACpC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAA;QACzC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAA;QACvC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAA;QACzC,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAA;QAC/C,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAA;QACrD,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAA;QAC/C,IAAI,CAAC,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAA;QACzD,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAA;QACnD,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAA;QACrD,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAA;QACvC,IAAI,CAAC,sBAAsB,GAAG,MAAM,CAAC,sBAAsB,CAAA;QAC3D,I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C,iBAAiB,CAAC;IAC5B,KAAK,CAAC,GAAG,CAAC,sBAAsB,CAAC;IACjC,KAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC;IAC9C,KAAK,CAAC,GAAG,CAAC,uCAAuC,CAAC;IAClD,KAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC;IAC9C,KAAK,CAAC,SAAS,CAAC,0BAA0B,CAAC;IAC3C,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC;CAC1C,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 GlobalConfigFields {\n emergencyMode: BN\n blockDeposit: BN\n blockInvest: BN\n blockWithdraw: BN\n blockCollectFees: BN\n blockCollectRewards: BN\n blockSwapRewards: BN\n blockSwapUnevenVaults: number\n blockEmergencySwap: number\n minWithdrawalFeeBps: BN\n scopeProgramId: PublicKey\n scopePriceId: PublicKey\n swapRewardsDiscountBps: Array<BN>\n actionsAuthority: PublicKey\n adminAuthority: PublicKey\n treasuryFeeVaults: Array<PublicKey>\n tokenInfos: PublicKey\n blockLocalAdmin: BN\n minPerformanceFeeBps: BN\n minSwapUnevenSlippageToleranceBps: BN\n minReferencePriceSlippageToleranceBps: BN\n actionsAfterRebalanceDelaySeconds: BN\n treasuryFeeVaultReceiver: PublicKey\n padding: Array<BN>\n}\n\nexport interface GlobalConfigJSON {\n emergencyMode: string\n blockDeposit: string\n blockInvest: string\n blockWithdraw: string\n blockCollectFees: string\n blockCollectRewards: string\n blockSwapRewards: string\n blockSwapUnevenVaults: number\n blockEmergencySwap: number\n minWithdrawalFeeBps: string\n scopeProgramId: string\n scopePriceId: string\n swapRewardsDiscountBps: Array<string>\n actionsAuthority: string\n adminAuthority: string\n treasuryFeeVaults: Array<string>\n tokenInfos: string\n blockLocalAdmin: string\n minPerformanceFeeBps: string\n minSwapUnevenSlippageToleranceBps: string\n minReferencePriceSlippageToleranceBps: string\n actionsAfterRebalanceDelaySeconds: string\n treasuryFeeVaultReceiver: string\n padding: Array<string>\n}\n\nexport class GlobalConfig {\n readonly emergencyMode: BN\n readonly blockDeposit: BN\n readonly blockInvest: BN\n readonly blockWithdraw: BN\n readonly blockCollectFees: BN\n readonly blockCollectRewards: BN\n readonly blockSwapRewards: BN\n readonly blockSwapUnevenVaults: number\n readonly blockEmergencySwap: number\n readonly minWithdrawalFeeBps: BN\n readonly scopeProgramId: PublicKey\n readonly scopePriceId: PublicKey\n readonly swapRewardsDiscountBps: Array<BN>\n readonly actionsAuthority: PublicKey\n readonly adminAuthority: PublicKey\n readonly treasuryFeeVaults: Array<PublicKey>\n readonly tokenInfos: PublicKey\n readonly blockLocalAdmin: BN\n readonly minPerformanceFeeBps: BN\n readonly minSwapUnevenSlippageToleranceBps: BN\n readonly minReferencePriceSlippageToleranceBps: BN\n readonly actionsAfterRebalanceDelaySeconds: BN\n readonly treasuryFeeVaultReceiver: PublicKey\n readonly padding: Array<BN>\n\n static readonly discriminator = Buffer.from([\n 149, 8, 156, 202, 160, 252, 176, 217,\n ])\n\n static readonly layout = borsh.struct([\n borsh.u64(\"emergencyMode\"),\n borsh.u64(\"blockDeposit\"),\n borsh.u64(\"blockInvest\"),\n borsh.u64(\"blockWithdraw\"),\n borsh.u64(\"blockCollectFees\"),\n borsh.u64(\"blockCollectRewards\"),\n borsh.u64(\"blockSwapRewards\"),\n borsh.u32(\"blockSwapUnevenVaults\"),\n borsh.u32(\"blockEmergencySwap\"),\n borsh.u64(\"minWithdrawalFeeBps\"),\n borsh.publicKey(\"scopeProgramId\"),\n borsh.publicKey(\"scopePriceId\"),\n borsh.array(borsh.u64(), 256, \"swapRewardsDiscountBps\"),\n borsh.publicKey(\"actionsAuthority\"),\n borsh.publicKey(\"adminAuthority\"),\n borsh.array(borsh.publicKey(), 256, \"treasuryFeeVaults\"),\n borsh.publicKey(\"tokenInfos\"),\n borsh.u64(\"blockLocalAdmin\"),\n borsh.u64(\"minPerformanceFeeBps\"),\n borsh.u64(\"minSwapUnevenSlippageToleranceBps\"),\n borsh.u64(\"minReferencePriceSlippageToleranceBps\"),\n borsh.u64(\"actionsAfterRebalanceDelaySeconds\"),\n borsh.publicKey(\"treasuryFeeVaultReceiver\"),\n borsh.array(borsh.u64(), 2035, \"padding\"),\n ])\n\n constructor(fields: GlobalConfigFields) {\n this.emergencyMode = fields.emergencyMode\n this.blockDeposit = fields.blockDeposit\n this.blockInvest = fields.blockInvest\n this.blockWithdraw = fields.blockWithdraw\n this.blockCollectFees = fields.blockCollectFees\n this.blockCollectRewards = fields.blockCollectRewards\n this.blockSwapRewards = fields.blockSwapRewards\n this.blockSwapUnevenVaults = fields.blockSwapUnevenVaults\n this.blockEmergencySwap = fields.blockEmergencySwap\n this.minWithdrawalFeeBps = fields.minWithdrawalFeeBps\n this.scopeProgramId = fields.scopeProgramId\n this.scopePriceId = fields.scopePriceId\n this.swapRewardsDiscountBps = fields.swapRewardsDiscountBps\n this.actionsAuthority = fields.actionsAuthority\n this.adminAuthority = fields.adminAuthority\n this.treasuryFeeVaults = fields.treasuryFeeVaults\n this.tokenInfos = fields.tokenInfos\n this.blockLocalAdmin = fields.blockLocalAdmin\n this.minPerformanceFeeBps = fields.minPerformanceFeeBps\n this.minSwapUnevenSlippageToleranceBps =\n fields.minSwapUnevenSlippageToleranceBps\n this.minReferencePriceSlippageToleranceBps =\n fields.minReferencePriceSlippageToleranceBps\n this.actionsAfterRebalanceDelaySeconds =\n fields.actionsAfterRebalanceDelaySeconds\n this.treasuryFeeVaultReceiver = fields.treasuryFeeVaultReceiver\n this.padding = fields.padding\n }\n\n static async fetch(\n c: Connection,\n address: PublicKey,\n programId: PublicKey = PROGRAM_ID\n ): Promise<GlobalConfig | 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<GlobalConfig | 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): GlobalConfig {\n if (!data.slice(0, 8).equals(GlobalConfig.discriminator)) {\n throw new Error(\"invalid account discriminator\")\n }\n\n const dec = GlobalConfig.layout.decode(data.slice(8))\n\n return new GlobalConfig({\n emergencyMode: dec.emergencyMode,\n blockDeposit: dec.blockDeposit,\n blockInvest: dec.blockInvest,\n blockWithdraw: dec.blockWithdraw,\n blockCollectFees: dec.blockCollectFees,\n blockCollectRewards: dec.blockCollectRewards,\n blockSwapRewards: dec.blockSwapRewards,\n blockSwapUnevenVaults: dec.blockSwapUnevenVaults,\n blockEmergencySwap: dec.blockEmergencySwap,\n minWithdrawalFeeBps: dec.minWithdrawalFeeBps,\n scopeProgramId: dec.scopeProgramId,\n scopePriceId: dec.scopePriceId,\n swapRewardsDiscountBps: dec.swapRewardsDiscountBps,\n actionsAuthority: dec.actionsAuthority,\n adminAuthority: dec.adminAuthority,\n treasuryFeeVaults: dec.treasuryFeeVaults,\n tokenInfos: dec.tokenInfos,\n blockLocalAdmin: dec.blockLocalAdmin,\n minPerformanceFeeBps: dec.minPerformanceFeeBps,\n minSwapUnevenSlippageToleranceBps: dec.minSwapUnevenSlippageToleranceBps,\n minReferencePriceSlippageToleranceBps:\n dec.minReferencePriceSlippageToleranceBps,\n actionsAfterRebalanceDelaySeconds: dec.actionsAfterRebalanceDelaySeconds,\n treasuryFeeVaultReceiver: dec.treasuryFeeVaultReceiver,\n padding: dec.padding,\n })\n }\n\n toJSON(): GlobalConfigJSON {\n return {\n emergencyMode: this.emergencyMode.toString(),\n blockDeposit: this.blockDeposit.toString(),\n blockInvest: this.blockInvest.toString(),\n blockWithdraw: this.blockWithdraw.toString(),\n blockCollectFees: this.blockCollectFees.toString(),\n blockCollectRewards: this.blockCollectRewards.toString(),\n blockSwapRewards: this.blockSwapRewards.toString(),\n blockSwapUnevenVaults: this.blockSwapUnevenVaults,\n blockEmergencySwap: this.blockEmergencySwap,\n minWithdrawalFeeBps: this.minWithdrawalFeeBps.toString(),\n scopeProgramId: this.scopeProgramId.toString(),\n scopePriceId: this.scopePriceId.toString(),\n swapRewardsDiscountBps: this.swapRewardsDiscountBps.map((item) =>\n item.toString()\n ),\n actionsAuthority: this.actionsAuthority.toString(),\n adminAuthority: this.adminAuthority.toString(),\n treasuryFeeVaults: this.treasuryFeeVaults.map((item) => item.toString()),\n tokenInfos: this.tokenInfos.toString(),\n blockLocalAdmin: this.blockLocalAdmin.toString(),\n minPerformanceFeeBps: this.minPerformanceFeeBps.toString(),\n minSwapUnevenSlippageToleranceBps:\n this.minSwapUnevenSlippageToleranceBps.toString(),\n minReferencePriceSlippageToleranceBps:\n this.minReferencePriceSlippageToleranceBps.toString(),\n actionsAfterRebalanceDelaySeconds:\n this.actionsAfterRebalanceDelaySeconds.toString(),\n treasuryFeeVaultReceiver: this.treasuryFeeVaultReceiver.toString(),\n padding: this.padding.map((item) => item.toString()),\n }\n }\n\n static fromJSON(obj: GlobalConfigJSON): GlobalConfig {\n return new GlobalConfig({\n emergencyMode: new BN(obj.emergencyMode),\n blockDeposit: new BN(obj.blockDeposit),\n blockInvest: new BN(obj.blockInvest),\n blockWithdraw: new BN(obj.blockWithdraw),\n blockCollectFees: new BN(obj.blockCollectFees),\n blockCollectRewards: new BN(obj.blockCollectRewards),\n blockSwapRewards: new BN(obj.blockSwapRewards),\n blockSwapUnevenVaults: obj.blockSwapUnevenVaults,\n blockEmergencySwap: obj.blockEmergencySwap,\n minWithdrawalFeeBps: new BN(obj.minWithdrawalFeeBps),\n scopeProgramId: new PublicKey(obj.scopeProgramId),\n scopePriceId: new PublicKey(obj.scopePriceId),\n swapRewardsDiscountBps: obj.swapRewardsDiscountBps.map(\n (item) => new BN(item)\n ),\n actionsAuthority: new PublicKey(obj.actionsAuthority),\n adminAuthority: new PublicKey(obj.adminAuthority),\n treasuryFeeVaults: obj.treasuryFeeVaults.map(\n (item) => new PublicKey(item)\n ),\n tokenInfos: new PublicKey(obj.tokenInfos),\n blockLocalAdmin: new BN(obj.blockLocalAdmin),\n minPerformanceFeeBps: new BN(obj.minPerformanceFeeBps),\n minSwapUnevenSlippageToleranceBps: new BN(\n obj.minSwapUnevenSlippageToleranceBps\n ),\n minReferencePriceSlippageToleranceBps: new BN(\n obj.minReferencePriceSlippageToleranceBps\n ),\n actionsAfterRebalanceDelaySeconds: new BN(\n obj.actionsAfterRebalanceDelaySeconds\n ),\n treasuryFeeVaultReceiver: new PublicKey(obj.treasuryFeeVaultReceiver),\n padding: obj.padding.map((item) => new BN(item)),\n })\n }\n}\n"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { PublicKey, Connection } from "@solana/web3.js";
|
|
2
|
+
import BN from "bn.js";
|
|
3
|
+
import * as types from "../types";
|
|
4
|
+
export interface PersonalPositionStateFields {
|
|
5
|
+
/** Bump to identify PDA */
|
|
6
|
+
bump: number;
|
|
7
|
+
/** Mint address of the tokenized position */
|
|
8
|
+
nftMint: PublicKey;
|
|
9
|
+
/** The ID of the pool with which this token is connected */
|
|
10
|
+
poolId: PublicKey;
|
|
11
|
+
/** The lower bound tick of the position */
|
|
12
|
+
tickLowerIndex: number;
|
|
13
|
+
/** The upper bound tick of the position */
|
|
14
|
+
tickUpperIndex: number;
|
|
15
|
+
/** The amount of liquidity owned by this position */
|
|
16
|
+
liquidity: BN;
|
|
17
|
+
/** The token_0 fee growth of the aggregate position as of the last action on the individual position */
|
|
18
|
+
feeGrowthInside0LastX64: BN;
|
|
19
|
+
/** The token_1 fee growth of the aggregate position as of the last action on the individual position */
|
|
20
|
+
feeGrowthInside1LastX64: BN;
|
|
21
|
+
/** The fees owed to the position owner in token_0, as of the last computation */
|
|
22
|
+
tokenFeesOwed0: BN;
|
|
23
|
+
/** The fees owed to the position owner in token_1, as of the last computation */
|
|
24
|
+
tokenFeesOwed1: BN;
|
|
25
|
+
rewardInfos: Array<types.PositionRewardInfoFields>;
|
|
26
|
+
padding: Array<BN>;
|
|
27
|
+
}
|
|
28
|
+
export interface PersonalPositionStateJSON {
|
|
29
|
+
/** Bump to identify PDA */
|
|
30
|
+
bump: number;
|
|
31
|
+
/** Mint address of the tokenized position */
|
|
32
|
+
nftMint: string;
|
|
33
|
+
/** The ID of the pool with which this token is connected */
|
|
34
|
+
poolId: string;
|
|
35
|
+
/** The lower bound tick of the position */
|
|
36
|
+
tickLowerIndex: number;
|
|
37
|
+
/** The upper bound tick of the position */
|
|
38
|
+
tickUpperIndex: number;
|
|
39
|
+
/** The amount of liquidity owned by this position */
|
|
40
|
+
liquidity: string;
|
|
41
|
+
/** The token_0 fee growth of the aggregate position as of the last action on the individual position */
|
|
42
|
+
feeGrowthInside0LastX64: string;
|
|
43
|
+
/** The token_1 fee growth of the aggregate position as of the last action on the individual position */
|
|
44
|
+
feeGrowthInside1LastX64: string;
|
|
45
|
+
/** The fees owed to the position owner in token_0, as of the last computation */
|
|
46
|
+
tokenFeesOwed0: string;
|
|
47
|
+
/** The fees owed to the position owner in token_1, as of the last computation */
|
|
48
|
+
tokenFeesOwed1: string;
|
|
49
|
+
rewardInfos: Array<types.PositionRewardInfoJSON>;
|
|
50
|
+
padding: Array<string>;
|
|
51
|
+
}
|
|
52
|
+
export declare class PersonalPositionState {
|
|
53
|
+
/** Bump to identify PDA */
|
|
54
|
+
readonly bump: number;
|
|
55
|
+
/** Mint address of the tokenized position */
|
|
56
|
+
readonly nftMint: PublicKey;
|
|
57
|
+
/** The ID of the pool with which this token is connected */
|
|
58
|
+
readonly poolId: PublicKey;
|
|
59
|
+
/** The lower bound tick of the position */
|
|
60
|
+
readonly tickLowerIndex: number;
|
|
61
|
+
/** The upper bound tick of the position */
|
|
62
|
+
readonly tickUpperIndex: number;
|
|
63
|
+
/** The amount of liquidity owned by this position */
|
|
64
|
+
readonly liquidity: BN;
|
|
65
|
+
/** The token_0 fee growth of the aggregate position as of the last action on the individual position */
|
|
66
|
+
readonly feeGrowthInside0LastX64: BN;
|
|
67
|
+
/** The token_1 fee growth of the aggregate position as of the last action on the individual position */
|
|
68
|
+
readonly feeGrowthInside1LastX64: BN;
|
|
69
|
+
/** The fees owed to the position owner in token_0, as of the last computation */
|
|
70
|
+
readonly tokenFeesOwed0: BN;
|
|
71
|
+
/** The fees owed to the position owner in token_1, as of the last computation */
|
|
72
|
+
readonly tokenFeesOwed1: BN;
|
|
73
|
+
readonly rewardInfos: Array<types.PositionRewardInfo>;
|
|
74
|
+
readonly padding: Array<BN>;
|
|
75
|
+
static readonly discriminator: Buffer;
|
|
76
|
+
static readonly layout: any;
|
|
77
|
+
constructor(fields: PersonalPositionStateFields);
|
|
78
|
+
static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<PersonalPositionState | null>;
|
|
79
|
+
static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<PersonalPositionState | null>>;
|
|
80
|
+
static decode(data: Buffer): PersonalPositionState;
|
|
81
|
+
toJSON(): PersonalPositionStateJSON;
|
|
82
|
+
static fromJSON(obj: PersonalPositionStateJSON): PersonalPositionState;
|
|
83
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.PersonalPositionState = void 0;
|
|
39
|
+
const web3_js_1 = require("@solana/web3.js");
|
|
40
|
+
const bn_js_1 = __importDefault(require("bn.js")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
41
|
+
const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
42
|
+
const types = __importStar(require("../types")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
43
|
+
const programId_1 = require("../programId");
|
|
44
|
+
class PersonalPositionState {
|
|
45
|
+
constructor(fields) {
|
|
46
|
+
this.bump = fields.bump;
|
|
47
|
+
this.nftMint = fields.nftMint;
|
|
48
|
+
this.poolId = fields.poolId;
|
|
49
|
+
this.tickLowerIndex = fields.tickLowerIndex;
|
|
50
|
+
this.tickUpperIndex = fields.tickUpperIndex;
|
|
51
|
+
this.liquidity = fields.liquidity;
|
|
52
|
+
this.feeGrowthInside0LastX64 = fields.feeGrowthInside0LastX64;
|
|
53
|
+
this.feeGrowthInside1LastX64 = fields.feeGrowthInside1LastX64;
|
|
54
|
+
this.tokenFeesOwed0 = fields.tokenFeesOwed0;
|
|
55
|
+
this.tokenFeesOwed1 = fields.tokenFeesOwed1;
|
|
56
|
+
this.rewardInfos = fields.rewardInfos.map((item) => new types.PositionRewardInfo(Object.assign({}, item)));
|
|
57
|
+
this.padding = fields.padding;
|
|
58
|
+
}
|
|
59
|
+
static fetch(c_1, address_1) {
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* (c, address, programId = programId_1.PROGRAM_ID) {
|
|
61
|
+
const info = yield c.getAccountInfo(address);
|
|
62
|
+
if (info === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
if (!info.owner.equals(programId)) {
|
|
66
|
+
throw new Error("account doesn't belong to this program");
|
|
67
|
+
}
|
|
68
|
+
return this.decode(info.data);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
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
|
+
static decode(data) {
|
|
86
|
+
if (!data.slice(0, 8).equals(PersonalPositionState.discriminator)) {
|
|
87
|
+
throw new Error("invalid account discriminator");
|
|
88
|
+
}
|
|
89
|
+
const dec = PersonalPositionState.layout.decode(data.slice(8));
|
|
90
|
+
return new PersonalPositionState({
|
|
91
|
+
bump: dec.bump,
|
|
92
|
+
nftMint: dec.nftMint,
|
|
93
|
+
poolId: dec.poolId,
|
|
94
|
+
tickLowerIndex: dec.tickLowerIndex,
|
|
95
|
+
tickUpperIndex: dec.tickUpperIndex,
|
|
96
|
+
liquidity: dec.liquidity,
|
|
97
|
+
feeGrowthInside0LastX64: dec.feeGrowthInside0LastX64,
|
|
98
|
+
feeGrowthInside1LastX64: dec.feeGrowthInside1LastX64,
|
|
99
|
+
tokenFeesOwed0: dec.tokenFeesOwed0,
|
|
100
|
+
tokenFeesOwed1: dec.tokenFeesOwed1,
|
|
101
|
+
rewardInfos: dec.rewardInfos.map((item /* eslint-disable-line @typescript-eslint/no-explicit-any */) => types.PositionRewardInfo.fromDecoded(item)),
|
|
102
|
+
padding: dec.padding,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
toJSON() {
|
|
106
|
+
return {
|
|
107
|
+
bump: this.bump,
|
|
108
|
+
nftMint: this.nftMint.toString(),
|
|
109
|
+
poolId: this.poolId.toString(),
|
|
110
|
+
tickLowerIndex: this.tickLowerIndex,
|
|
111
|
+
tickUpperIndex: this.tickUpperIndex,
|
|
112
|
+
liquidity: this.liquidity.toString(),
|
|
113
|
+
feeGrowthInside0LastX64: this.feeGrowthInside0LastX64.toString(),
|
|
114
|
+
feeGrowthInside1LastX64: this.feeGrowthInside1LastX64.toString(),
|
|
115
|
+
tokenFeesOwed0: this.tokenFeesOwed0.toString(),
|
|
116
|
+
tokenFeesOwed1: this.tokenFeesOwed1.toString(),
|
|
117
|
+
rewardInfos: this.rewardInfos.map((item) => item.toJSON()),
|
|
118
|
+
padding: this.padding.map((item) => item.toString()),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
static fromJSON(obj) {
|
|
122
|
+
return new PersonalPositionState({
|
|
123
|
+
bump: obj.bump,
|
|
124
|
+
nftMint: new web3_js_1.PublicKey(obj.nftMint),
|
|
125
|
+
poolId: new web3_js_1.PublicKey(obj.poolId),
|
|
126
|
+
tickLowerIndex: obj.tickLowerIndex,
|
|
127
|
+
tickUpperIndex: obj.tickUpperIndex,
|
|
128
|
+
liquidity: new bn_js_1.default(obj.liquidity),
|
|
129
|
+
feeGrowthInside0LastX64: new bn_js_1.default(obj.feeGrowthInside0LastX64),
|
|
130
|
+
feeGrowthInside1LastX64: new bn_js_1.default(obj.feeGrowthInside1LastX64),
|
|
131
|
+
tokenFeesOwed0: new bn_js_1.default(obj.tokenFeesOwed0),
|
|
132
|
+
tokenFeesOwed1: new bn_js_1.default(obj.tokenFeesOwed1),
|
|
133
|
+
rewardInfos: obj.rewardInfos.map((item) => types.PositionRewardInfo.fromJSON(item)),
|
|
134
|
+
padding: obj.padding.map((item) => new bn_js_1.default(item)),
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
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
|
+
//# sourceMappingURL=PersonalPositionState.js.map
|
|
@@ -0,0 +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,CA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C,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CACxC;YACD,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,eAAE,CAAC,IAAI,CAAC,CAAC;SACjD,CAAC,CAAA;IACJ,CAAC;;AA7JH,sDA8JC;AAtIiB,mCAAa,GAAG,MAAM,CAAC,IAAI,CAAC;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"]}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { PublicKey, Connection } from "@solana/web3.js";
|
|
2
|
+
import BN from "bn.js";
|
|
3
|
+
import * as types from "../types";
|
|
4
|
+
export interface PoolStateFields {
|
|
5
|
+
/** Bump to identify PDA */
|
|
6
|
+
bump: number;
|
|
7
|
+
ammConfig: PublicKey;
|
|
8
|
+
owner: PublicKey;
|
|
9
|
+
/** Token pair of the pool, where token_mint_0 address < token_mint_1 address */
|
|
10
|
+
tokenMint0: PublicKey;
|
|
11
|
+
tokenMint1: PublicKey;
|
|
12
|
+
/** Token pair vault */
|
|
13
|
+
tokenVault0: PublicKey;
|
|
14
|
+
tokenVault1: PublicKey;
|
|
15
|
+
/** observation account key */
|
|
16
|
+
observationKey: PublicKey;
|
|
17
|
+
/** mint0 and mint1 decimals */
|
|
18
|
+
mintDecimals0: number;
|
|
19
|
+
mintDecimals1: number;
|
|
20
|
+
/** The minimum number of ticks between initialized ticks */
|
|
21
|
+
tickSpacing: number;
|
|
22
|
+
/** The currently in range liquidity available to the pool. */
|
|
23
|
+
liquidity: BN;
|
|
24
|
+
/** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */
|
|
25
|
+
sqrtPriceX64: BN;
|
|
26
|
+
/** The current tick of the pool, i.e. according to the last tick transition that was run. */
|
|
27
|
+
tickCurrent: number;
|
|
28
|
+
/** the most-recently updated index of the observations array */
|
|
29
|
+
observationIndex: number;
|
|
30
|
+
observationUpdateDuration: number;
|
|
31
|
+
/**
|
|
32
|
+
* The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per
|
|
33
|
+
* unit of liquidity for the entire life of the pool.
|
|
34
|
+
*/
|
|
35
|
+
feeGrowthGlobal0X64: BN;
|
|
36
|
+
feeGrowthGlobal1X64: BN;
|
|
37
|
+
/** The amounts of token_0 and token_1 that are owed to the protocol. */
|
|
38
|
+
protocolFeesToken0: BN;
|
|
39
|
+
protocolFeesToken1: BN;
|
|
40
|
+
/** The amounts in and out of swap token_0 and token_1 */
|
|
41
|
+
swapInAmountToken0: BN;
|
|
42
|
+
swapOutAmountToken1: BN;
|
|
43
|
+
swapInAmountToken1: BN;
|
|
44
|
+
swapOutAmountToken0: BN;
|
|
45
|
+
/**
|
|
46
|
+
* Bitwise representation of the state of the pool
|
|
47
|
+
* bit0, 1: disable open position and increase liquidity, 0: normal
|
|
48
|
+
* bit1, 1: disable decrease liquidity, 0: normal
|
|
49
|
+
* bit2, 1: disable collect fee, 0: normal
|
|
50
|
+
* bit3, 1: disable collect reward, 0: normal
|
|
51
|
+
* bit4, 1: disable swap, 0: normal
|
|
52
|
+
*/
|
|
53
|
+
status: number;
|
|
54
|
+
/** Leave blank for future use */
|
|
55
|
+
padding: Array<number>;
|
|
56
|
+
rewardInfos: Array<types.RewardInfoFields>;
|
|
57
|
+
/** Packed initialized tick array state */
|
|
58
|
+
tickArrayBitmap: Array<BN>;
|
|
59
|
+
/** except protocol_fee and fund_fee */
|
|
60
|
+
totalFeesToken0: BN;
|
|
61
|
+
/** except protocol_fee and fund_fee */
|
|
62
|
+
totalFeesClaimedToken0: BN;
|
|
63
|
+
totalFeesToken1: BN;
|
|
64
|
+
totalFeesClaimedToken1: BN;
|
|
65
|
+
fundFeesToken0: BN;
|
|
66
|
+
fundFeesToken1: BN;
|
|
67
|
+
openTime: BN;
|
|
68
|
+
padding1: Array<BN>;
|
|
69
|
+
padding2: Array<BN>;
|
|
70
|
+
}
|
|
71
|
+
export interface PoolStateJSON {
|
|
72
|
+
/** Bump to identify PDA */
|
|
73
|
+
bump: number;
|
|
74
|
+
ammConfig: string;
|
|
75
|
+
owner: string;
|
|
76
|
+
/** Token pair of the pool, where token_mint_0 address < token_mint_1 address */
|
|
77
|
+
tokenMint0: string;
|
|
78
|
+
tokenMint1: string;
|
|
79
|
+
/** Token pair vault */
|
|
80
|
+
tokenVault0: string;
|
|
81
|
+
tokenVault1: string;
|
|
82
|
+
/** observation account key */
|
|
83
|
+
observationKey: string;
|
|
84
|
+
/** mint0 and mint1 decimals */
|
|
85
|
+
mintDecimals0: number;
|
|
86
|
+
mintDecimals1: number;
|
|
87
|
+
/** The minimum number of ticks between initialized ticks */
|
|
88
|
+
tickSpacing: number;
|
|
89
|
+
/** The currently in range liquidity available to the pool. */
|
|
90
|
+
liquidity: string;
|
|
91
|
+
/** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */
|
|
92
|
+
sqrtPriceX64: string;
|
|
93
|
+
/** The current tick of the pool, i.e. according to the last tick transition that was run. */
|
|
94
|
+
tickCurrent: number;
|
|
95
|
+
/** the most-recently updated index of the observations array */
|
|
96
|
+
observationIndex: number;
|
|
97
|
+
observationUpdateDuration: number;
|
|
98
|
+
/**
|
|
99
|
+
* The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per
|
|
100
|
+
* unit of liquidity for the entire life of the pool.
|
|
101
|
+
*/
|
|
102
|
+
feeGrowthGlobal0X64: string;
|
|
103
|
+
feeGrowthGlobal1X64: string;
|
|
104
|
+
/** The amounts of token_0 and token_1 that are owed to the protocol. */
|
|
105
|
+
protocolFeesToken0: string;
|
|
106
|
+
protocolFeesToken1: string;
|
|
107
|
+
/** The amounts in and out of swap token_0 and token_1 */
|
|
108
|
+
swapInAmountToken0: string;
|
|
109
|
+
swapOutAmountToken1: string;
|
|
110
|
+
swapInAmountToken1: string;
|
|
111
|
+
swapOutAmountToken0: string;
|
|
112
|
+
/**
|
|
113
|
+
* Bitwise representation of the state of the pool
|
|
114
|
+
* bit0, 1: disable open position and increase liquidity, 0: normal
|
|
115
|
+
* bit1, 1: disable decrease liquidity, 0: normal
|
|
116
|
+
* bit2, 1: disable collect fee, 0: normal
|
|
117
|
+
* bit3, 1: disable collect reward, 0: normal
|
|
118
|
+
* bit4, 1: disable swap, 0: normal
|
|
119
|
+
*/
|
|
120
|
+
status: number;
|
|
121
|
+
/** Leave blank for future use */
|
|
122
|
+
padding: Array<number>;
|
|
123
|
+
rewardInfos: Array<types.RewardInfoJSON>;
|
|
124
|
+
/** Packed initialized tick array state */
|
|
125
|
+
tickArrayBitmap: Array<string>;
|
|
126
|
+
/** except protocol_fee and fund_fee */
|
|
127
|
+
totalFeesToken0: string;
|
|
128
|
+
/** except protocol_fee and fund_fee */
|
|
129
|
+
totalFeesClaimedToken0: string;
|
|
130
|
+
totalFeesToken1: string;
|
|
131
|
+
totalFeesClaimedToken1: string;
|
|
132
|
+
fundFeesToken0: string;
|
|
133
|
+
fundFeesToken1: string;
|
|
134
|
+
openTime: string;
|
|
135
|
+
padding1: Array<string>;
|
|
136
|
+
padding2: Array<string>;
|
|
137
|
+
}
|
|
138
|
+
export declare class PoolState {
|
|
139
|
+
/** Bump to identify PDA */
|
|
140
|
+
readonly bump: number;
|
|
141
|
+
readonly ammConfig: PublicKey;
|
|
142
|
+
readonly owner: PublicKey;
|
|
143
|
+
/** Token pair of the pool, where token_mint_0 address < token_mint_1 address */
|
|
144
|
+
readonly tokenMint0: PublicKey;
|
|
145
|
+
readonly tokenMint1: PublicKey;
|
|
146
|
+
/** Token pair vault */
|
|
147
|
+
readonly tokenVault0: PublicKey;
|
|
148
|
+
readonly tokenVault1: PublicKey;
|
|
149
|
+
/** observation account key */
|
|
150
|
+
readonly observationKey: PublicKey;
|
|
151
|
+
/** mint0 and mint1 decimals */
|
|
152
|
+
readonly mintDecimals0: number;
|
|
153
|
+
readonly mintDecimals1: number;
|
|
154
|
+
/** The minimum number of ticks between initialized ticks */
|
|
155
|
+
readonly tickSpacing: number;
|
|
156
|
+
/** The currently in range liquidity available to the pool. */
|
|
157
|
+
readonly liquidity: BN;
|
|
158
|
+
/** The current price of the pool as a sqrt(token_1/token_0) Q64.64 value */
|
|
159
|
+
readonly sqrtPriceX64: BN;
|
|
160
|
+
/** The current tick of the pool, i.e. according to the last tick transition that was run. */
|
|
161
|
+
readonly tickCurrent: number;
|
|
162
|
+
/** the most-recently updated index of the observations array */
|
|
163
|
+
readonly observationIndex: number;
|
|
164
|
+
readonly observationUpdateDuration: number;
|
|
165
|
+
/**
|
|
166
|
+
* The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per
|
|
167
|
+
* unit of liquidity for the entire life of the pool.
|
|
168
|
+
*/
|
|
169
|
+
readonly feeGrowthGlobal0X64: BN;
|
|
170
|
+
readonly feeGrowthGlobal1X64: BN;
|
|
171
|
+
/** The amounts of token_0 and token_1 that are owed to the protocol. */
|
|
172
|
+
readonly protocolFeesToken0: BN;
|
|
173
|
+
readonly protocolFeesToken1: BN;
|
|
174
|
+
/** The amounts in and out of swap token_0 and token_1 */
|
|
175
|
+
readonly swapInAmountToken0: BN;
|
|
176
|
+
readonly swapOutAmountToken1: BN;
|
|
177
|
+
readonly swapInAmountToken1: BN;
|
|
178
|
+
readonly swapOutAmountToken0: BN;
|
|
179
|
+
/**
|
|
180
|
+
* Bitwise representation of the state of the pool
|
|
181
|
+
* bit0, 1: disable open position and increase liquidity, 0: normal
|
|
182
|
+
* bit1, 1: disable decrease liquidity, 0: normal
|
|
183
|
+
* bit2, 1: disable collect fee, 0: normal
|
|
184
|
+
* bit3, 1: disable collect reward, 0: normal
|
|
185
|
+
* bit4, 1: disable swap, 0: normal
|
|
186
|
+
*/
|
|
187
|
+
readonly status: number;
|
|
188
|
+
/** Leave blank for future use */
|
|
189
|
+
readonly padding: Array<number>;
|
|
190
|
+
readonly rewardInfos: Array<types.RewardInfo>;
|
|
191
|
+
/** Packed initialized tick array state */
|
|
192
|
+
readonly tickArrayBitmap: Array<BN>;
|
|
193
|
+
/** except protocol_fee and fund_fee */
|
|
194
|
+
readonly totalFeesToken0: BN;
|
|
195
|
+
/** except protocol_fee and fund_fee */
|
|
196
|
+
readonly totalFeesClaimedToken0: BN;
|
|
197
|
+
readonly totalFeesToken1: BN;
|
|
198
|
+
readonly totalFeesClaimedToken1: BN;
|
|
199
|
+
readonly fundFeesToken0: BN;
|
|
200
|
+
readonly fundFeesToken1: BN;
|
|
201
|
+
readonly openTime: BN;
|
|
202
|
+
readonly padding1: Array<BN>;
|
|
203
|
+
readonly padding2: Array<BN>;
|
|
204
|
+
static readonly discriminator: Buffer;
|
|
205
|
+
static readonly layout: any;
|
|
206
|
+
constructor(fields: PoolStateFields);
|
|
207
|
+
static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<PoolState | null>;
|
|
208
|
+
static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<PoolState | null>>;
|
|
209
|
+
static decode(data: Buffer): PoolState;
|
|
210
|
+
toJSON(): PoolStateJSON;
|
|
211
|
+
static fromJSON(obj: PoolStateJSON): PoolState;
|
|
212
|
+
}
|