@kamino-finance/kliquidity-sdk 6.2.2 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Kamino.d.ts +1 -0
- package/dist/Kamino.d.ts.map +1 -0
- package/dist/Kamino.js +4749 -4795
- package/dist/Kamino.js.map +1 -1
- package/dist/constants/DefaultStrategyConfig.d.ts +1 -0
- package/dist/constants/DefaultStrategyConfig.d.ts.map +1 -0
- package/dist/constants/DefaultStrategyConfig.js +2 -2
- package/dist/constants/DefaultStrategyConfig.js.map +1 -1
- package/dist/constants/deposit_method.d.ts +1 -0
- package/dist/constants/deposit_method.d.ts.map +1 -0
- package/dist/constants/deposit_method.js.map +1 -1
- package/dist/constants/frontend.d.ts +1 -0
- package/dist/constants/frontend.d.ts.map +1 -0
- package/dist/constants/frontend.js.map +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/metadata.d.ts +1 -0
- package/dist/constants/metadata.d.ts.map +1 -0
- package/dist/constants/metadata.js.map +1 -1
- package/dist/constants/numericalValues.d.ts +1 -0
- package/dist/constants/numericalValues.d.ts.map +1 -0
- package/dist/constants/numericalValues.js.map +1 -1
- package/dist/constants/pubkeys.d.ts +1 -0
- package/dist/constants/pubkeys.d.ts.map +1 -0
- package/dist/constants/pubkeys.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -1
- package/dist/kamino-client/accounts/CollateralInfos.d.ts +1 -0
- package/dist/kamino-client/accounts/CollateralInfos.d.ts.map +1 -0
- package/dist/kamino-client/accounts/CollateralInfos.js +21 -33
- package/dist/kamino-client/accounts/CollateralInfos.js.map +1 -1
- package/dist/kamino-client/accounts/GlobalConfig.d.ts +1 -0
- package/dist/kamino-client/accounts/GlobalConfig.d.ts.map +1 -0
- package/dist/kamino-client/accounts/GlobalConfig.js +66 -55
- package/dist/kamino-client/accounts/GlobalConfig.js.map +1 -1
- package/dist/kamino-client/accounts/PersonalPositionState.d.ts +1 -0
- package/dist/kamino-client/accounts/PersonalPositionState.d.ts.map +1 -0
- package/dist/kamino-client/accounts/PersonalPositionState.js +53 -44
- package/dist/kamino-client/accounts/PersonalPositionState.js.map +1 -1
- package/dist/kamino-client/accounts/PoolState.d.ts +1 -0
- package/dist/kamino-client/accounts/PoolState.d.ts.map +1 -0
- package/dist/kamino-client/accounts/PoolState.js +121 -69
- package/dist/kamino-client/accounts/PoolState.js.map +1 -1
- package/dist/kamino-client/accounts/Position.d.ts +1 -0
- package/dist/kamino-client/accounts/Position.d.ts.map +1 -0
- package/dist/kamino-client/accounts/Position.js +39 -42
- package/dist/kamino-client/accounts/Position.js.map +1 -1
- package/dist/kamino-client/accounts/ProtocolPositionState.d.ts +1 -0
- package/dist/kamino-client/accounts/ProtocolPositionState.d.ts.map +1 -0
- package/dist/kamino-client/accounts/ProtocolPositionState.js +50 -42
- package/dist/kamino-client/accounts/ProtocolPositionState.js.map +1 -1
- package/dist/kamino-client/accounts/ScopeChainAccount.d.ts +1 -0
- package/dist/kamino-client/accounts/ScopeChainAccount.d.ts.map +1 -0
- package/dist/kamino-client/accounts/ScopeChainAccount.js +20 -32
- package/dist/kamino-client/accounts/ScopeChainAccount.js.map +1 -1
- package/dist/kamino-client/accounts/TermsSignature.d.ts +1 -0
- package/dist/kamino-client/accounts/TermsSignature.d.ts.map +1 -0
- package/dist/kamino-client/accounts/TermsSignature.js +20 -32
- package/dist/kamino-client/accounts/TermsSignature.js.map +1 -1
- package/dist/kamino-client/accounts/Whirlpool.d.ts +1 -0
- package/dist/kamino-client/accounts/Whirlpool.d.ts.map +1 -0
- package/dist/kamino-client/accounts/Whirlpool.js +57 -51
- package/dist/kamino-client/accounts/Whirlpool.js.map +1 -1
- package/dist/kamino-client/accounts/WhirlpoolStrategy.d.ts +1 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.d.ts.map +1 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js +230 -138
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js.map +1 -1
- package/dist/kamino-client/accounts/index.d.ts +1 -0
- package/dist/kamino-client/accounts/index.d.ts.map +1 -0
- package/dist/kamino-client/accounts/index.js.map +1 -1
- package/dist/kamino-client/errors/anchor.d.ts +1 -0
- package/dist/kamino-client/errors/anchor.d.ts.map +1 -0
- package/dist/kamino-client/errors/anchor.js +270 -216
- package/dist/kamino-client/errors/anchor.js.map +1 -1
- package/dist/kamino-client/errors/custom.d.ts +1 -0
- package/dist/kamino-client/errors/custom.d.ts.map +1 -0
- package/dist/kamino-client/errors/custom.js +785 -628
- package/dist/kamino-client/errors/custom.js.map +1 -1
- package/dist/kamino-client/errors/index.d.ts +1 -0
- package/dist/kamino-client/errors/index.d.ts.map +1 -0
- package/dist/kamino-client/errors/index.js.map +1 -1
- package/dist/kamino-client/instructions/addKaminoRewards.d.ts +1 -0
- package/dist/kamino-client/instructions/addKaminoRewards.d.ts.map +1 -0
- package/dist/kamino-client/instructions/addKaminoRewards.js.map +1 -1
- package/dist/kamino-client/instructions/changePool.d.ts +1 -0
- package/dist/kamino-client/instructions/changePool.d.ts.map +1 -0
- package/dist/kamino-client/instructions/changePool.js.map +1 -1
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.d.ts +1 -0
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.d.ts.map +1 -0
- package/dist/kamino-client/instructions/checkExpectedVaultsBalances.js.map +1 -1
- package/dist/kamino-client/instructions/closeProgramAccount.d.ts +1 -0
- package/dist/kamino-client/instructions/closeProgramAccount.d.ts.map +1 -0
- package/dist/kamino-client/instructions/closeProgramAccount.js.map +1 -1
- package/dist/kamino-client/instructions/closeStrategy.d.ts +1 -0
- package/dist/kamino-client/instructions/closeStrategy.d.ts.map +1 -0
- package/dist/kamino-client/instructions/closeStrategy.js.map +1 -1
- package/dist/kamino-client/instructions/collectFeesAndRewards.d.ts +1 -0
- package/dist/kamino-client/instructions/collectFeesAndRewards.d.ts.map +1 -0
- package/dist/kamino-client/instructions/collectFeesAndRewards.js.map +1 -1
- package/dist/kamino-client/instructions/deposit.d.ts +1 -0
- package/dist/kamino-client/instructions/deposit.d.ts.map +1 -0
- package/dist/kamino-client/instructions/deposit.js.map +1 -1
- package/dist/kamino-client/instructions/depositAndInvest.d.ts +1 -0
- package/dist/kamino-client/instructions/depositAndInvest.d.ts.map +1 -0
- package/dist/kamino-client/instructions/depositAndInvest.js.map +1 -1
- package/dist/kamino-client/instructions/emergencySwap.d.ts +1 -0
- package/dist/kamino-client/instructions/emergencySwap.d.ts.map +1 -0
- package/dist/kamino-client/instructions/emergencySwap.js.map +1 -1
- package/dist/kamino-client/instructions/executiveWithdraw.d.ts +1 -0
- package/dist/kamino-client/instructions/executiveWithdraw.d.ts.map +1 -0
- package/dist/kamino-client/instructions/executiveWithdraw.js.map +1 -1
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.d.ts +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.d.ts.map +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsEnd.js.map +1 -1
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.d.ts +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.d.ts.map +1 -0
- package/dist/kamino-client/instructions/flashSwapUnevenVaultsStart.js.map +1 -1
- package/dist/kamino-client/instructions/index.d.ts +1 -0
- package/dist/kamino-client/instructions/index.d.ts.map +1 -0
- package/dist/kamino-client/instructions/index.js.map +1 -1
- package/dist/kamino-client/instructions/initializeCollateralInfo.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeCollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeCollateralInfo.js.map +1 -1
- package/dist/kamino-client/instructions/initializeGlobalConfig.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeGlobalConfig.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeGlobalConfig.js.map +1 -1
- package/dist/kamino-client/instructions/initializeKaminoReward.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeKaminoReward.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeKaminoReward.js.map +1 -1
- package/dist/kamino-client/instructions/initializeSharesMetadata.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeSharesMetadata.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeSharesMetadata.js.map +1 -1
- package/dist/kamino-client/instructions/initializeStrategy.d.ts +1 -0
- package/dist/kamino-client/instructions/initializeStrategy.d.ts.map +1 -0
- package/dist/kamino-client/instructions/initializeStrategy.js.map +1 -1
- package/dist/kamino-client/instructions/insertCollateralInfo.d.ts +1 -0
- package/dist/kamino-client/instructions/insertCollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/instructions/insertCollateralInfo.js.map +1 -1
- package/dist/kamino-client/instructions/invest.d.ts +1 -0
- package/dist/kamino-client/instructions/invest.d.ts.map +1 -0
- package/dist/kamino-client/instructions/invest.js.map +1 -1
- package/dist/kamino-client/instructions/openLiquidityPosition.d.ts +1 -0
- package/dist/kamino-client/instructions/openLiquidityPosition.d.ts.map +1 -0
- package/dist/kamino-client/instructions/openLiquidityPosition.js.map +1 -1
- package/dist/kamino-client/instructions/orcaSwap.d.ts +1 -0
- package/dist/kamino-client/instructions/orcaSwap.d.ts.map +1 -0
- package/dist/kamino-client/instructions/orcaSwap.js.map +1 -1
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.d.ts +1 -0
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.d.ts.map +1 -0
- package/dist/kamino-client/instructions/permisionlessWithdrawFromTreasury.js.map +1 -1
- package/dist/kamino-client/instructions/signTerms.d.ts +1 -0
- package/dist/kamino-client/instructions/signTerms.d.ts.map +1 -0
- package/dist/kamino-client/instructions/signTerms.js.map +1 -1
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.d.ts +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.d.ts.map +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositAndInvestWithMin.js.map +1 -1
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.d.ts +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.d.ts.map +1 -0
- package/dist/kamino-client/instructions/singleTokenDepositWithMin.js.map +1 -1
- package/dist/kamino-client/instructions/swapRewards.d.ts +1 -0
- package/dist/kamino-client/instructions/swapRewards.d.ts.map +1 -0
- package/dist/kamino-client/instructions/swapRewards.js.map +1 -1
- package/dist/kamino-client/instructions/swapUnevenVaults.d.ts +1 -0
- package/dist/kamino-client/instructions/swapUnevenVaults.d.ts.map +1 -0
- package/dist/kamino-client/instructions/swapUnevenVaults.js.map +1 -1
- package/dist/kamino-client/instructions/updateCollateralInfo.d.ts +1 -0
- package/dist/kamino-client/instructions/updateCollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateCollateralInfo.js.map +1 -1
- package/dist/kamino-client/instructions/updateGlobalConfig.d.ts +1 -0
- package/dist/kamino-client/instructions/updateGlobalConfig.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateGlobalConfig.js.map +1 -1
- package/dist/kamino-client/instructions/updateRewardMapping.d.ts +1 -0
- package/dist/kamino-client/instructions/updateRewardMapping.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateRewardMapping.js.map +1 -1
- package/dist/kamino-client/instructions/updateSharesMetadata.d.ts +1 -0
- package/dist/kamino-client/instructions/updateSharesMetadata.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateSharesMetadata.js.map +1 -1
- package/dist/kamino-client/instructions/updateStrategyAdmin.d.ts +1 -0
- package/dist/kamino-client/instructions/updateStrategyAdmin.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateStrategyAdmin.js.map +1 -1
- package/dist/kamino-client/instructions/updateStrategyConfig.d.ts +1 -0
- package/dist/kamino-client/instructions/updateStrategyConfig.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateStrategyConfig.js.map +1 -1
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.d.ts +1 -0
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.d.ts.map +1 -0
- package/dist/kamino-client/instructions/updateTreasuryFeeVault.js.map +1 -1
- package/dist/kamino-client/instructions/withdraw.d.ts +1 -0
- package/dist/kamino-client/instructions/withdraw.d.ts.map +1 -0
- package/dist/kamino-client/instructions/withdraw.js.map +1 -1
- package/dist/kamino-client/instructions/withdrawFromTopup.d.ts +1 -0
- package/dist/kamino-client/instructions/withdrawFromTopup.d.ts.map +1 -0
- package/dist/kamino-client/instructions/withdrawFromTopup.js.map +1 -1
- package/dist/kamino-client/instructions/withdrawFromTreasury.d.ts +1 -0
- package/dist/kamino-client/instructions/withdrawFromTreasury.d.ts.map +1 -0
- package/dist/kamino-client/instructions/withdrawFromTreasury.js.map +1 -1
- package/dist/kamino-client/programId.d.ts +1 -0
- package/dist/kamino-client/programId.d.ts.map +1 -0
- package/dist/kamino-client/programId.js.map +1 -1
- package/dist/kamino-client/types/BalanceStatus.d.ts +1 -0
- package/dist/kamino-client/types/BalanceStatus.d.ts.map +1 -0
- package/dist/kamino-client/types/BalanceStatus.js +8 -12
- package/dist/kamino-client/types/BalanceStatus.js.map +1 -1
- package/dist/kamino-client/types/BinAddLiquidityStrategy.d.ts +1 -0
- package/dist/kamino-client/types/BinAddLiquidityStrategy.d.ts.map +1 -0
- package/dist/kamino-client/types/BinAddLiquidityStrategy.js +10 -8
- package/dist/kamino-client/types/BinAddLiquidityStrategy.js.map +1 -1
- package/dist/kamino-client/types/CollateralInfo.d.ts +1 -0
- package/dist/kamino-client/types/CollateralInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/CollateralInfo.js +15 -0
- package/dist/kamino-client/types/CollateralInfo.js.map +1 -1
- package/dist/kamino-client/types/CollateralInfoParams.d.ts +1 -0
- package/dist/kamino-client/types/CollateralInfoParams.d.ts.map +1 -0
- package/dist/kamino-client/types/CollateralInfoParams.js +13 -0
- package/dist/kamino-client/types/CollateralInfoParams.js.map +1 -1
- package/dist/kamino-client/types/CollateralTestToken.d.ts +1 -0
- package/dist/kamino-client/types/CollateralTestToken.d.ts.map +1 -0
- package/dist/kamino-client/types/CollateralTestToken.js +112 -168
- package/dist/kamino-client/types/CollateralTestToken.js.map +1 -1
- package/dist/kamino-client/types/CreationStatus.d.ts +1 -0
- package/dist/kamino-client/types/CreationStatus.d.ts.map +1 -0
- package/dist/kamino-client/types/CreationStatus.js +20 -30
- package/dist/kamino-client/types/CreationStatus.js.map +1 -1
- package/dist/kamino-client/types/DEX.d.ts +1 -0
- package/dist/kamino-client/types/DEX.d.ts.map +1 -0
- package/dist/kamino-client/types/DEX.js +12 -18
- package/dist/kamino-client/types/DEX.js.map +1 -1
- package/dist/kamino-client/types/DexSpecificPrice.d.ts +1 -0
- package/dist/kamino-client/types/DexSpecificPrice.d.ts.map +1 -0
- package/dist/kamino-client/types/DexSpecificPrice.js +10 -8
- package/dist/kamino-client/types/DexSpecificPrice.js.map +1 -1
- package/dist/kamino-client/types/DriftDirection.d.ts +1 -0
- package/dist/kamino-client/types/DriftDirection.d.ts.map +1 -0
- package/dist/kamino-client/types/DriftDirection.js +8 -12
- package/dist/kamino-client/types/DriftDirection.js.map +1 -1
- package/dist/kamino-client/types/ExecutiveWithdrawAction.d.ts +1 -0
- package/dist/kamino-client/types/ExecutiveWithdrawAction.d.ts.map +1 -0
- package/dist/kamino-client/types/ExecutiveWithdrawAction.js +12 -18
- package/dist/kamino-client/types/ExecutiveWithdrawAction.js.map +1 -1
- package/dist/kamino-client/types/ExpanderStep.d.ts +1 -0
- package/dist/kamino-client/types/ExpanderStep.d.ts.map +1 -0
- package/dist/kamino-client/types/ExpanderStep.js +9 -10
- package/dist/kamino-client/types/ExpanderStep.js.map +1 -1
- package/dist/kamino-client/types/GlobalConfigOption.d.ts +1 -0
- package/dist/kamino-client/types/GlobalConfigOption.d.ts.map +1 -0
- package/dist/kamino-client/types/GlobalConfigOption.js +92 -138
- package/dist/kamino-client/types/GlobalConfigOption.js.map +1 -1
- package/dist/kamino-client/types/KaminoRewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/KaminoRewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/KaminoRewardInfo.js +9 -0
- package/dist/kamino-client/types/KaminoRewardInfo.js.map +1 -1
- package/dist/kamino-client/types/LiquidityCalculationMode.d.ts +1 -0
- package/dist/kamino-client/types/LiquidityCalculationMode.d.ts.map +1 -0
- package/dist/kamino-client/types/LiquidityCalculationMode.js +8 -12
- package/dist/kamino-client/types/LiquidityCalculationMode.js.map +1 -1
- package/dist/kamino-client/types/MintingMethod.d.ts +1 -0
- package/dist/kamino-client/types/MintingMethod.d.ts.map +1 -0
- package/dist/kamino-client/types/MintingMethod.js +8 -12
- package/dist/kamino-client/types/MintingMethod.js.map +1 -1
- package/dist/kamino-client/types/PeriodicRebalanceState.d.ts +1 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.d.ts.map +1 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.js +1 -0
- package/dist/kamino-client/types/PeriodicRebalanceState.js.map +1 -1
- package/dist/kamino-client/types/PositionRewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/PositionRewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/PositionRewardInfo.js +2 -0
- package/dist/kamino-client/types/PositionRewardInfo.js.map +1 -1
- package/dist/kamino-client/types/Price.d.ts +1 -0
- package/dist/kamino-client/types/Price.d.ts.map +1 -0
- package/dist/kamino-client/types/Price.js +2 -0
- package/dist/kamino-client/types/Price.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAction.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAction.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAction.js +14 -14
- package/dist/kamino-client/types/RebalanceAction.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftParams.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.js +7 -0
- package/dist/kamino-client/types/RebalanceAutodriftParams.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftState.js +9 -2
- package/dist/kamino-client/types/RebalanceAutodriftState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftStep.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftStep.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftStep.js +8 -12
- package/dist/kamino-client/types/RebalanceAutodriftStep.js.map +1 -1
- package/dist/kamino-client/types/RebalanceAutodriftWindow.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftWindow.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceAutodriftWindow.js +7 -2
- package/dist/kamino-client/types/RebalanceAutodriftWindow.js.map +1 -1
- package/dist/kamino-client/types/RebalanceDriftParams.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceDriftParams.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftParams.js +5 -0
- package/dist/kamino-client/types/RebalanceDriftParams.js.map +1 -1
- package/dist/kamino-client/types/RebalanceDriftState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceDriftState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftState.js +3 -0
- package/dist/kamino-client/types/RebalanceDriftState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceDriftStep.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceDriftStep.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceDriftStep.js +8 -12
- package/dist/kamino-client/types/RebalanceDriftStep.js.map +1 -1
- package/dist/kamino-client/types/RebalanceEffects.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceEffects.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceEffects.js +9 -10
- package/dist/kamino-client/types/RebalanceEffects.js.map +1 -1
- package/dist/kamino-client/types/RebalanceExpanderState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceExpanderState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceExpanderState.js +2 -0
- package/dist/kamino-client/types/RebalanceExpanderState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceManualState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceManualState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceManualState.js.map +1 -1
- package/dist/kamino-client/types/RebalancePricePercentageState.d.ts +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.js +2 -0
- package/dist/kamino-client/types/RebalancePricePercentageState.js.map +1 -1
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.d.ts +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.js +2 -0
- package/dist/kamino-client/types/RebalancePricePercentageWithResetState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceRaw.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceRaw.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceRaw.js +3 -0
- package/dist/kamino-client/types/RebalanceRaw.js.map +1 -1
- package/dist/kamino-client/types/RebalanceTakeProfitState.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.js +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitState.js.map +1 -1
- package/dist/kamino-client/types/RebalanceTakeProfitStep.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitStep.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitStep.js +12 -18
- package/dist/kamino-client/types/RebalanceTakeProfitStep.js.map +1 -1
- package/dist/kamino-client/types/RebalanceTakeProfitToken.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitToken.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceTakeProfitToken.js +8 -12
- package/dist/kamino-client/types/RebalanceTakeProfitToken.js.map +1 -1
- package/dist/kamino-client/types/RebalanceType.d.ts +1 -0
- package/dist/kamino-client/types/RebalanceType.d.ts.map +1 -0
- package/dist/kamino-client/types/RebalanceType.js +32 -48
- package/dist/kamino-client/types/RebalanceType.js.map +1 -1
- package/dist/kamino-client/types/ReferencePriceType.d.ts +1 -0
- package/dist/kamino-client/types/ReferencePriceType.d.ts.map +1 -0
- package/dist/kamino-client/types/ReferencePriceType.js +8 -12
- package/dist/kamino-client/types/ReferencePriceType.js.map +1 -1
- package/dist/kamino-client/types/RemoveLiquidityMode.d.ts +1 -0
- package/dist/kamino-client/types/RemoveLiquidityMode.d.ts.map +1 -0
- package/dist/kamino-client/types/RemoveLiquidityMode.js +14 -14
- package/dist/kamino-client/types/RemoveLiquidityMode.js.map +1 -1
- package/dist/kamino-client/types/RewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/RewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/RewardInfo.js +25 -0
- package/dist/kamino-client/types/RewardInfo.js.map +1 -1
- package/dist/kamino-client/types/ScopeConversionChain.d.ts +1 -0
- package/dist/kamino-client/types/ScopeConversionChain.d.ts.map +1 -0
- package/dist/kamino-client/types/ScopeConversionChain.js.map +1 -1
- package/dist/kamino-client/types/ScopePriceIdTest.d.ts +1 -0
- package/dist/kamino-client/types/ScopePriceIdTest.d.ts.map +1 -0
- package/dist/kamino-client/types/ScopePriceIdTest.js +280 -420
- package/dist/kamino-client/types/ScopePriceIdTest.js.map +1 -1
- package/dist/kamino-client/types/SimulationPrice.d.ts +1 -0
- package/dist/kamino-client/types/SimulationPrice.d.ts.map +1 -0
- package/dist/kamino-client/types/SimulationPrice.js +14 -14
- package/dist/kamino-client/types/SimulationPrice.js.map +1 -1
- package/dist/kamino-client/types/StakingRateSource.d.ts +1 -0
- package/dist/kamino-client/types/StakingRateSource.d.ts.map +1 -0
- package/dist/kamino-client/types/StakingRateSource.js +8 -12
- package/dist/kamino-client/types/StakingRateSource.js.map +1 -1
- package/dist/kamino-client/types/StrategyConfigOption.d.ts +1 -0
- package/dist/kamino-client/types/StrategyConfigOption.d.ts.map +1 -0
- package/dist/kamino-client/types/StrategyConfigOption.js +208 -312
- package/dist/kamino-client/types/StrategyConfigOption.js.map +1 -1
- package/dist/kamino-client/types/StrategyStatus.d.ts +1 -0
- package/dist/kamino-client/types/StrategyStatus.d.ts.map +1 -0
- package/dist/kamino-client/types/StrategyStatus.js +20 -30
- package/dist/kamino-client/types/StrategyStatus.js.map +1 -1
- package/dist/kamino-client/types/StrategyType.d.ts +1 -0
- package/dist/kamino-client/types/StrategyType.d.ts.map +1 -0
- package/dist/kamino-client/types/StrategyType.js +12 -18
- package/dist/kamino-client/types/StrategyType.js.map +1 -1
- package/dist/kamino-client/types/SwapLimit.d.ts +1 -0
- package/dist/kamino-client/types/SwapLimit.d.ts.map +1 -0
- package/dist/kamino-client/types/SwapLimit.js +10 -8
- package/dist/kamino-client/types/SwapLimit.js.map +1 -1
- package/dist/kamino-client/types/UpdateCollateralInfoMode.d.ts +1 -0
- package/dist/kamino-client/types/UpdateCollateralInfoMode.d.ts.map +1 -0
- package/dist/kamino-client/types/UpdateCollateralInfoMode.js +52 -78
- package/dist/kamino-client/types/UpdateCollateralInfoMode.js.map +1 -1
- package/dist/kamino-client/types/WhirlpoolRewardInfo.d.ts +1 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.d.ts.map +1 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.js +13 -0
- package/dist/kamino-client/types/WhirlpoolRewardInfo.js.map +1 -1
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.d.ts +1 -0
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.d.ts.map +1 -0
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.js +8 -12
- package/dist/kamino-client/types/WithdrawalCapAccumulatorAction.js.map +1 -1
- package/dist/kamino-client/types/WithdrawalCaps.d.ts +1 -0
- package/dist/kamino-client/types/WithdrawalCaps.d.ts.map +1 -0
- package/dist/kamino-client/types/WithdrawalCaps.js +4 -0
- package/dist/kamino-client/types/WithdrawalCaps.js.map +1 -1
- package/dist/kamino-client/types/index.d.ts +1 -0
- package/dist/kamino-client/types/index.d.ts.map +1 -0
- package/dist/kamino-client/types/index.js.map +1 -1
- package/dist/meteora_client/accounts/BinArray.d.ts +1 -0
- package/dist/meteora_client/accounts/BinArray.d.ts.map +1 -0
- package/dist/meteora_client/accounts/BinArray.js +30 -37
- package/dist/meteora_client/accounts/BinArray.js.map +1 -1
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.d.ts +1 -0
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.d.ts.map +1 -0
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.js +26 -34
- package/dist/meteora_client/accounts/BinArrayBitmapExtension.js.map +1 -1
- package/dist/meteora_client/accounts/LbPair.d.ts +1 -0
- package/dist/meteora_client/accounts/LbPair.d.ts.map +1 -0
- package/dist/meteora_client/accounts/LbPair.js +106 -65
- package/dist/meteora_client/accounts/LbPair.js.map +1 -1
- package/dist/meteora_client/accounts/Oracle.d.ts +1 -0
- package/dist/meteora_client/accounts/Oracle.d.ts.map +1 -0
- package/dist/meteora_client/accounts/Oracle.js +27 -34
- package/dist/meteora_client/accounts/Oracle.js.map +1 -1
- package/dist/meteora_client/accounts/Position.d.ts +1 -0
- package/dist/meteora_client/accounts/Position.d.ts.map +1 -0
- package/dist/meteora_client/accounts/Position.js +56 -45
- package/dist/meteora_client/accounts/Position.js.map +1 -1
- package/dist/meteora_client/accounts/PositionV2.d.ts +1 -0
- package/dist/meteora_client/accounts/PositionV2.d.ts.map +1 -0
- package/dist/meteora_client/accounts/PositionV2.js +68 -49
- package/dist/meteora_client/accounts/PositionV2.js.map +1 -1
- package/dist/meteora_client/accounts/PresetParameter.d.ts +1 -0
- package/dist/meteora_client/accounts/PresetParameter.d.ts.map +1 -0
- package/dist/meteora_client/accounts/PresetParameter.js +48 -41
- package/dist/meteora_client/accounts/PresetParameter.js.map +1 -1
- package/dist/meteora_client/accounts/index.d.ts +1 -0
- package/dist/meteora_client/accounts/index.d.ts.map +1 -0
- package/dist/meteora_client/accounts/index.js.map +1 -1
- package/dist/meteora_client/errors/anchor.d.ts +1 -0
- package/dist/meteora_client/errors/anchor.d.ts.map +1 -0
- package/dist/meteora_client/errors/anchor.js +270 -216
- package/dist/meteora_client/errors/anchor.js.map +1 -1
- package/dist/meteora_client/errors/custom.d.ts +1 -0
- package/dist/meteora_client/errors/custom.d.ts.map +1 -0
- package/dist/meteora_client/errors/custom.js +295 -236
- package/dist/meteora_client/errors/custom.js.map +1 -1
- package/dist/meteora_client/errors/index.d.ts +1 -0
- package/dist/meteora_client/errors/index.d.ts.map +1 -0
- package/dist/meteora_client/errors/index.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidity.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidity.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidity.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityByStrategy.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategy.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategy.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByStrategyOneSide.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityByWeight.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityByWeight.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityByWeight.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityOneSide.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSide.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSide.js.map +1 -1
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.d.ts +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.d.ts.map +1 -0
- package/dist/meteora_client/instructions/addLiquidityOneSidePrecise.js.map +1 -1
- package/dist/meteora_client/instructions/claimFee.d.ts +1 -0
- package/dist/meteora_client/instructions/claimFee.d.ts.map +1 -0
- package/dist/meteora_client/instructions/claimFee.js.map +1 -1
- package/dist/meteora_client/instructions/claimReward.d.ts +1 -0
- package/dist/meteora_client/instructions/claimReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/claimReward.js.map +1 -1
- package/dist/meteora_client/instructions/closePosition.d.ts +1 -0
- package/dist/meteora_client/instructions/closePosition.d.ts.map +1 -0
- package/dist/meteora_client/instructions/closePosition.js.map +1 -1
- package/dist/meteora_client/instructions/closePresetParameter.d.ts +1 -0
- package/dist/meteora_client/instructions/closePresetParameter.d.ts.map +1 -0
- package/dist/meteora_client/instructions/closePresetParameter.js.map +1 -1
- package/dist/meteora_client/instructions/fundReward.d.ts +1 -0
- package/dist/meteora_client/instructions/fundReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/fundReward.js.map +1 -1
- package/dist/meteora_client/instructions/goToABin.d.ts +1 -0
- package/dist/meteora_client/instructions/goToABin.d.ts.map +1 -0
- package/dist/meteora_client/instructions/goToABin.js.map +1 -1
- package/dist/meteora_client/instructions/increaseOracleLength.d.ts +1 -0
- package/dist/meteora_client/instructions/increaseOracleLength.d.ts.map +1 -0
- package/dist/meteora_client/instructions/increaseOracleLength.js.map +1 -1
- package/dist/meteora_client/instructions/index.d.ts +1 -0
- package/dist/meteora_client/instructions/index.d.ts.map +1 -0
- package/dist/meteora_client/instructions/index.js.map +1 -1
- package/dist/meteora_client/instructions/initializeBinArray.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeBinArray.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeBinArray.js.map +1 -1
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeBinArrayBitmapExtension.js.map +1 -1
- package/dist/meteora_client/instructions/initializeLbPair.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeLbPair.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeLbPair.js.map +1 -1
- package/dist/meteora_client/instructions/initializePermissionLbPair.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePermissionLbPair.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePermissionLbPair.js.map +1 -1
- package/dist/meteora_client/instructions/initializePosition.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePosition.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePosition.js.map +1 -1
- package/dist/meteora_client/instructions/initializePositionByOperator.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePositionByOperator.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePositionByOperator.js.map +1 -1
- package/dist/meteora_client/instructions/initializePositionPda.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePositionPda.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePositionPda.js.map +1 -1
- package/dist/meteora_client/instructions/initializePresetParameter.d.ts +1 -0
- package/dist/meteora_client/instructions/initializePresetParameter.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializePresetParameter.js.map +1 -1
- package/dist/meteora_client/instructions/initializeReward.d.ts +1 -0
- package/dist/meteora_client/instructions/initializeReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/initializeReward.js.map +1 -1
- package/dist/meteora_client/instructions/migrateBinArray.d.ts +1 -0
- package/dist/meteora_client/instructions/migrateBinArray.d.ts.map +1 -0
- package/dist/meteora_client/instructions/migrateBinArray.js.map +1 -1
- package/dist/meteora_client/instructions/migratePosition.d.ts +1 -0
- package/dist/meteora_client/instructions/migratePosition.d.ts.map +1 -0
- package/dist/meteora_client/instructions/migratePosition.js.map +1 -1
- package/dist/meteora_client/instructions/removeAllLiquidity.d.ts +1 -0
- package/dist/meteora_client/instructions/removeAllLiquidity.d.ts.map +1 -0
- package/dist/meteora_client/instructions/removeAllLiquidity.js.map +1 -1
- package/dist/meteora_client/instructions/removeLiquidity.d.ts +1 -0
- package/dist/meteora_client/instructions/removeLiquidity.d.ts.map +1 -0
- package/dist/meteora_client/instructions/removeLiquidity.js.map +1 -1
- package/dist/meteora_client/instructions/removeLiquidityByRange.d.ts +1 -0
- package/dist/meteora_client/instructions/removeLiquidityByRange.d.ts.map +1 -0
- package/dist/meteora_client/instructions/removeLiquidityByRange.js.map +1 -1
- package/dist/meteora_client/instructions/setActivationSlot.d.ts +1 -0
- package/dist/meteora_client/instructions/setActivationSlot.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setActivationSlot.js.map +1 -1
- package/dist/meteora_client/instructions/setLockReleaseSlot.d.ts +1 -0
- package/dist/meteora_client/instructions/setLockReleaseSlot.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setLockReleaseSlot.js.map +1 -1
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.d.ts +1 -0
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setPreActivationSlotDuration.js.map +1 -1
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.d.ts +1 -0
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.d.ts.map +1 -0
- package/dist/meteora_client/instructions/setPreActivationSwapAddress.js.map +1 -1
- package/dist/meteora_client/instructions/swap.d.ts +1 -0
- package/dist/meteora_client/instructions/swap.d.ts.map +1 -0
- package/dist/meteora_client/instructions/swap.js.map +1 -1
- package/dist/meteora_client/instructions/togglePairStatus.d.ts +1 -0
- package/dist/meteora_client/instructions/togglePairStatus.d.ts.map +1 -0
- package/dist/meteora_client/instructions/togglePairStatus.js.map +1 -1
- package/dist/meteora_client/instructions/updateFeeOwner.d.ts +1 -0
- package/dist/meteora_client/instructions/updateFeeOwner.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateFeeOwner.js.map +1 -1
- package/dist/meteora_client/instructions/updateFeeParameters.d.ts +1 -0
- package/dist/meteora_client/instructions/updateFeeParameters.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateFeeParameters.js.map +1 -1
- package/dist/meteora_client/instructions/updateFeesAndRewards.d.ts +1 -0
- package/dist/meteora_client/instructions/updateFeesAndRewards.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateFeesAndRewards.js.map +1 -1
- package/dist/meteora_client/instructions/updatePositionOperator.d.ts +1 -0
- package/dist/meteora_client/instructions/updatePositionOperator.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updatePositionOperator.js.map +1 -1
- package/dist/meteora_client/instructions/updateRewardDuration.d.ts +1 -0
- package/dist/meteora_client/instructions/updateRewardDuration.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateRewardDuration.js.map +1 -1
- package/dist/meteora_client/instructions/updateRewardFunder.d.ts +1 -0
- package/dist/meteora_client/instructions/updateRewardFunder.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateRewardFunder.js.map +1 -1
- package/dist/meteora_client/instructions/updateWhitelistedWallet.d.ts +1 -0
- package/dist/meteora_client/instructions/updateWhitelistedWallet.d.ts.map +1 -0
- package/dist/meteora_client/instructions/updateWhitelistedWallet.js.map +1 -1
- package/dist/meteora_client/instructions/withdrawIneligibleReward.d.ts +1 -0
- package/dist/meteora_client/instructions/withdrawIneligibleReward.d.ts.map +1 -0
- package/dist/meteora_client/instructions/withdrawIneligibleReward.js.map +1 -1
- package/dist/meteora_client/instructions/withdrawProtocolFee.d.ts +1 -0
- package/dist/meteora_client/instructions/withdrawProtocolFee.d.ts.map +1 -0
- package/dist/meteora_client/instructions/withdrawProtocolFee.js.map +1 -1
- package/dist/meteora_client/programId.d.ts +1 -0
- package/dist/meteora_client/programId.d.ts.map +1 -0
- package/dist/meteora_client/programId.js.map +1 -1
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.d.ts +1 -0
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.js +3 -1
- package/dist/meteora_client/types/AddLiquiditySingleSidePreciseParameter.js.map +1 -1
- package/dist/meteora_client/types/Bin.d.ts +1 -0
- package/dist/meteora_client/types/Bin.d.ts.map +1 -0
- package/dist/meteora_client/types/Bin.js +18 -0
- package/dist/meteora_client/types/Bin.js.map +1 -1
- package/dist/meteora_client/types/BinLiquidityDistribution.d.ts +1 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.d.ts.map +1 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.js +6 -0
- package/dist/meteora_client/types/BinLiquidityDistribution.js.map +1 -1
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.d.ts +1 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.d.ts.map +1 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.js +4 -0
- package/dist/meteora_client/types/BinLiquidityDistributionByWeight.js.map +1 -1
- package/dist/meteora_client/types/BinLiquidityReduction.d.ts +1 -0
- package/dist/meteora_client/types/BinLiquidityReduction.d.ts.map +1 -0
- package/dist/meteora_client/types/BinLiquidityReduction.js +2 -0
- package/dist/meteora_client/types/BinLiquidityReduction.js.map +1 -1
- package/dist/meteora_client/types/CompressedBinDepositAmount.d.ts +1 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.d.ts.map +1 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.js +2 -0
- package/dist/meteora_client/types/CompressedBinDepositAmount.js.map +1 -1
- package/dist/meteora_client/types/FeeInfo.d.ts +1 -0
- package/dist/meteora_client/types/FeeInfo.d.ts.map +1 -0
- package/dist/meteora_client/types/FeeInfo.js +4 -0
- package/dist/meteora_client/types/FeeInfo.js.map +1 -1
- package/dist/meteora_client/types/FeeParameter.d.ts +1 -0
- package/dist/meteora_client/types/FeeParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/FeeParameter.js +4 -0
- package/dist/meteora_client/types/FeeParameter.js.map +1 -1
- package/dist/meteora_client/types/InitPermissionPairIx.d.ts +1 -0
- package/dist/meteora_client/types/InitPermissionPairIx.d.ts.map +1 -0
- package/dist/meteora_client/types/InitPermissionPairIx.js +6 -0
- package/dist/meteora_client/types/InitPermissionPairIx.js.map +1 -1
- package/dist/meteora_client/types/InitPresetParametersIx.d.ts +1 -0
- package/dist/meteora_client/types/InitPresetParametersIx.d.ts.map +1 -0
- package/dist/meteora_client/types/InitPresetParametersIx.js +20 -0
- package/dist/meteora_client/types/InitPresetParametersIx.js.map +1 -1
- package/dist/meteora_client/types/LayoutVersion.d.ts +1 -0
- package/dist/meteora_client/types/LayoutVersion.d.ts.map +1 -0
- package/dist/meteora_client/types/LayoutVersion.js +8 -12
- package/dist/meteora_client/types/LayoutVersion.js.map +1 -1
- package/dist/meteora_client/types/LiquidityOneSideParameter.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityOneSideParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityOneSideParameter.js +9 -1
- package/dist/meteora_client/types/LiquidityOneSideParameter.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameter.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameter.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameter.js +7 -1
- package/dist/meteora_client/types/LiquidityParameter.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategy.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategy.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategy.js +13 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategy.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.js +11 -1
- package/dist/meteora_client/types/LiquidityParameterByStrategyOneSide.js.map +1 -1
- package/dist/meteora_client/types/LiquidityParameterByWeight.d.ts +1 -0
- package/dist/meteora_client/types/LiquidityParameterByWeight.d.ts.map +1 -0
- package/dist/meteora_client/types/LiquidityParameterByWeight.js +11 -1
- package/dist/meteora_client/types/LiquidityParameterByWeight.js.map +1 -1
- package/dist/meteora_client/types/Observation.d.ts +1 -0
- package/dist/meteora_client/types/Observation.d.ts.map +1 -0
- package/dist/meteora_client/types/Observation.js +6 -0
- package/dist/meteora_client/types/Observation.js.map +1 -1
- package/dist/meteora_client/types/PairStatus.d.ts +1 -0
- package/dist/meteora_client/types/PairStatus.d.ts.map +1 -0
- package/dist/meteora_client/types/PairStatus.js +8 -12
- package/dist/meteora_client/types/PairStatus.js.map +1 -1
- package/dist/meteora_client/types/PairType.d.ts +1 -0
- package/dist/meteora_client/types/PairType.d.ts.map +1 -0
- package/dist/meteora_client/types/PairType.js +8 -12
- package/dist/meteora_client/types/PairType.js.map +1 -1
- package/dist/meteora_client/types/ProtocolFee.d.ts +1 -0
- package/dist/meteora_client/types/ProtocolFee.d.ts.map +1 -0
- package/dist/meteora_client/types/ProtocolFee.js +2 -0
- package/dist/meteora_client/types/ProtocolFee.js.map +1 -1
- package/dist/meteora_client/types/RewardInfo.d.ts +1 -0
- package/dist/meteora_client/types/RewardInfo.d.ts.map +1 -0
- package/dist/meteora_client/types/RewardInfo.js +16 -0
- package/dist/meteora_client/types/RewardInfo.js.map +1 -1
- package/dist/meteora_client/types/Rounding.d.ts +1 -0
- package/dist/meteora_client/types/Rounding.d.ts.map +1 -0
- package/dist/meteora_client/types/Rounding.js +8 -12
- package/dist/meteora_client/types/Rounding.js.map +1 -1
- package/dist/meteora_client/types/StaticParameters.d.ts +1 -0
- package/dist/meteora_client/types/StaticParameters.d.ts.map +1 -0
- package/dist/meteora_client/types/StaticParameters.js +20 -0
- package/dist/meteora_client/types/StaticParameters.js.map +1 -1
- package/dist/meteora_client/types/StrategyParameters.d.ts +1 -0
- package/dist/meteora_client/types/StrategyParameters.d.ts.map +1 -0
- package/dist/meteora_client/types/StrategyParameters.js +8 -0
- package/dist/meteora_client/types/StrategyParameters.js.map +1 -1
- package/dist/meteora_client/types/StrategyType.d.ts +1 -0
- package/dist/meteora_client/types/StrategyType.d.ts.map +1 -0
- package/dist/meteora_client/types/StrategyType.js +36 -54
- package/dist/meteora_client/types/StrategyType.js.map +1 -1
- package/dist/meteora_client/types/UserRewardInfo.d.ts +1 -0
- package/dist/meteora_client/types/UserRewardInfo.d.ts.map +1 -0
- package/dist/meteora_client/types/UserRewardInfo.js +2 -0
- package/dist/meteora_client/types/UserRewardInfo.js.map +1 -1
- package/dist/meteora_client/types/VariableParameters.d.ts +1 -0
- package/dist/meteora_client/types/VariableParameters.d.ts.map +1 -0
- package/dist/meteora_client/types/VariableParameters.js +15 -0
- package/dist/meteora_client/types/VariableParameters.js.map +1 -1
- package/dist/meteora_client/types/index.d.ts +1 -0
- package/dist/meteora_client/types/index.d.ts.map +1 -0
- package/dist/meteora_client/types/index.js.map +1 -1
- package/dist/models/EnrichedScopePrice.d.ts +1 -0
- package/dist/models/EnrichedScopePrice.d.ts.map +1 -0
- package/dist/models/EnrichedScopePrice.js.map +1 -1
- package/dist/models/Holdings.d.ts +1 -0
- package/dist/models/Holdings.d.ts.map +1 -0
- package/dist/models/Holdings.js.map +1 -1
- package/dist/models/KaminoPosition.d.ts +1 -0
- package/dist/models/KaminoPosition.d.ts.map +1 -0
- package/dist/models/KaminoPosition.js.map +1 -1
- package/dist/models/KaminoStrategyWithShareMint.d.ts +1 -0
- package/dist/models/KaminoStrategyWithShareMint.d.ts.map +1 -0
- package/dist/models/KaminoStrategyWithShareMint.js.map +1 -1
- package/dist/models/KaminoToken.d.ts +1 -0
- package/dist/models/KaminoToken.d.ts.map +1 -0
- package/dist/models/KaminoToken.js.map +1 -1
- package/dist/models/LbPairWithAddress.d.ts +1 -0
- package/dist/models/LbPairWithAddress.d.ts.map +1 -0
- package/dist/models/LbPairWithAddress.js.map +1 -1
- package/dist/models/MultipleAccountsResponse.d.ts +1 -0
- package/dist/models/MultipleAccountsResponse.d.ts.map +1 -0
- package/dist/models/MultipleAccountsResponse.js.map +1 -1
- package/dist/models/PoolSimulationResponseData.d.ts +1 -0
- package/dist/models/PoolSimulationResponseData.d.ts.map +1 -0
- package/dist/models/PoolSimulationResponseData.js.map +1 -1
- package/dist/models/PriceData.d.ts +1 -0
- package/dist/models/PriceData.d.ts.map +1 -0
- package/dist/models/PriceData.js.map +1 -1
- package/dist/models/RaydiumPoolWithAddress.d.ts +1 -0
- package/dist/models/RaydiumPoolWithAddress.d.ts.map +1 -0
- package/dist/models/RaydiumPoolWithAddress.js.map +1 -1
- package/dist/models/ShareData.d.ts +1 -0
- package/dist/models/ShareData.d.ts.map +1 -0
- package/dist/models/ShareData.js.map +1 -1
- package/dist/models/StrategyBalances.d.ts +1 -0
- package/dist/models/StrategyBalances.d.ts.map +1 -0
- package/dist/models/StrategyBalances.js.map +1 -1
- package/dist/models/StrategyHolder.d.ts +1 -0
- package/dist/models/StrategyHolder.d.ts.map +1 -0
- package/dist/models/StrategyHolder.js.map +1 -1
- package/dist/models/StrategyPrices.d.ts +1 -0
- package/dist/models/StrategyPrices.d.ts.map +1 -0
- package/dist/models/StrategyPrices.js.map +1 -1
- package/dist/models/StrategyProgramAddress.d.ts +1 -0
- package/dist/models/StrategyProgramAddress.d.ts.map +1 -0
- package/dist/models/StrategyProgramAddress.js.map +1 -1
- package/dist/models/StrategyVaultBalances.d.ts +1 -0
- package/dist/models/StrategyVaultBalances.d.ts.map +1 -0
- package/dist/models/StrategyVaultBalances.js.map +1 -1
- package/dist/models/StrategyVaultTokens.d.ts +1 -0
- package/dist/models/StrategyVaultTokens.d.ts.map +1 -0
- package/dist/models/StrategyVaultTokens.js.map +1 -1
- package/dist/models/StrategyWithAddress.d.ts +1 -0
- package/dist/models/StrategyWithAddress.d.ts.map +1 -0
- package/dist/models/StrategyWithAddress.js.map +1 -1
- package/dist/models/StrategyWithPendingFees.d.ts +1 -0
- package/dist/models/StrategyWithPendingFees.d.ts.map +1 -0
- package/dist/models/StrategyWithPendingFees.js.map +1 -1
- package/dist/models/TokenAmounts.d.ts +1 -0
- package/dist/models/TokenAmounts.d.ts.map +1 -0
- package/dist/models/TokenAmounts.js.map +1 -1
- package/dist/models/TreasuryFeeVault.d.ts +1 -0
- package/dist/models/TreasuryFeeVault.d.ts.map +1 -0
- package/dist/models/TreasuryFeeVault.js.map +1 -1
- package/dist/models/WhirlpoolWithAddress.d.ts +1 -0
- package/dist/models/WhirlpoolWithAddress.d.ts.map +1 -0
- package/dist/models/WhirlpoolWithAddress.js.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js.map +1 -1
- package/dist/raydium_client/accounts/AmmConfig.d.ts +1 -0
- package/dist/raydium_client/accounts/AmmConfig.d.ts.map +1 -0
- package/dist/raydium_client/accounts/AmmConfig.js +38 -41
- package/dist/raydium_client/accounts/AmmConfig.js.map +1 -1
- package/dist/raydium_client/accounts/ObservationState.d.ts +1 -0
- package/dist/raydium_client/accounts/ObservationState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/ObservationState.js +27 -36
- package/dist/raydium_client/accounts/ObservationState.js.map +1 -1
- package/dist/raydium_client/accounts/OperationState.d.ts +1 -0
- package/dist/raydium_client/accounts/OperationState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/OperationState.js +24 -34
- package/dist/raydium_client/accounts/OperationState.js.map +1 -1
- package/dist/raydium_client/accounts/PersonalPositionState.d.ts +1 -0
- package/dist/raydium_client/accounts/PersonalPositionState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/PersonalPositionState.js +43 -44
- package/dist/raydium_client/accounts/PersonalPositionState.js.map +1 -1
- package/dist/raydium_client/accounts/PoolState.d.ts +1 -0
- package/dist/raydium_client/accounts/PoolState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/PoolState.js +93 -69
- package/dist/raydium_client/accounts/PoolState.js.map +1 -1
- package/dist/raydium_client/accounts/ProtocolPositionState.d.ts +1 -0
- package/dist/raydium_client/accounts/ProtocolPositionState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/ProtocolPositionState.js +40 -42
- package/dist/raydium_client/accounts/ProtocolPositionState.js.map +1 -1
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.d.ts +1 -0
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.d.ts.map +1 -0
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.js +24 -34
- package/dist/raydium_client/accounts/TickArrayBitmapExtension.js.map +1 -1
- package/dist/raydium_client/accounts/TickArrayState.d.ts +1 -0
- package/dist/raydium_client/accounts/TickArrayState.d.ts.map +1 -0
- package/dist/raydium_client/accounts/TickArrayState.js +29 -37
- package/dist/raydium_client/accounts/TickArrayState.js.map +1 -1
- package/dist/raydium_client/accounts/index.d.ts +1 -0
- package/dist/raydium_client/accounts/index.d.ts.map +1 -0
- package/dist/raydium_client/accounts/index.js.map +1 -1
- package/dist/raydium_client/errors/anchor.d.ts +1 -0
- package/dist/raydium_client/errors/anchor.d.ts.map +1 -0
- package/dist/raydium_client/errors/anchor.js +270 -216
- package/dist/raydium_client/errors/anchor.js.map +1 -1
- package/dist/raydium_client/errors/custom.d.ts +1 -0
- package/dist/raydium_client/errors/custom.d.ts.map +1 -0
- package/dist/raydium_client/errors/custom.js +210 -168
- package/dist/raydium_client/errors/custom.js.map +1 -1
- package/dist/raydium_client/errors/index.d.ts +1 -0
- package/dist/raydium_client/errors/index.d.ts.map +1 -0
- package/dist/raydium_client/errors/index.js.map +1 -1
- package/dist/raydium_client/index.d.ts +1 -0
- package/dist/raydium_client/index.d.ts.map +1 -0
- package/dist/raydium_client/index.js.map +1 -1
- package/dist/raydium_client/instructions/closePosition.d.ts +1 -0
- package/dist/raydium_client/instructions/closePosition.d.ts.map +1 -0
- package/dist/raydium_client/instructions/closePosition.js.map +1 -1
- package/dist/raydium_client/instructions/collectFundFee.d.ts +1 -0
- package/dist/raydium_client/instructions/collectFundFee.d.ts.map +1 -0
- package/dist/raydium_client/instructions/collectFundFee.js.map +1 -1
- package/dist/raydium_client/instructions/collectProtocolFee.d.ts +1 -0
- package/dist/raydium_client/instructions/collectProtocolFee.d.ts.map +1 -0
- package/dist/raydium_client/instructions/collectProtocolFee.js.map +1 -1
- package/dist/raydium_client/instructions/collectRemainingRewards.d.ts +1 -0
- package/dist/raydium_client/instructions/collectRemainingRewards.d.ts.map +1 -0
- package/dist/raydium_client/instructions/collectRemainingRewards.js.map +1 -1
- package/dist/raydium_client/instructions/createAmmConfig.d.ts +1 -0
- package/dist/raydium_client/instructions/createAmmConfig.d.ts.map +1 -0
- package/dist/raydium_client/instructions/createAmmConfig.js.map +1 -1
- package/dist/raydium_client/instructions/createOperationAccount.d.ts +1 -0
- package/dist/raydium_client/instructions/createOperationAccount.d.ts.map +1 -0
- package/dist/raydium_client/instructions/createOperationAccount.js.map +1 -1
- package/dist/raydium_client/instructions/createPool.d.ts +1 -0
- package/dist/raydium_client/instructions/createPool.d.ts.map +1 -0
- package/dist/raydium_client/instructions/createPool.js.map +1 -1
- package/dist/raydium_client/instructions/decreaseLiquidity.d.ts +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidity.d.ts.map +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidity.js.map +1 -1
- package/dist/raydium_client/instructions/decreaseLiquidityV2.d.ts +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidityV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/decreaseLiquidityV2.js.map +1 -1
- package/dist/raydium_client/instructions/increaseLiquidity.d.ts +1 -0
- package/dist/raydium_client/instructions/increaseLiquidity.d.ts.map +1 -0
- package/dist/raydium_client/instructions/increaseLiquidity.js.map +1 -1
- package/dist/raydium_client/instructions/increaseLiquidityV2.d.ts +1 -0
- package/dist/raydium_client/instructions/increaseLiquidityV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/increaseLiquidityV2.js.map +1 -1
- package/dist/raydium_client/instructions/index.d.ts +1 -0
- package/dist/raydium_client/instructions/index.d.ts.map +1 -0
- package/dist/raydium_client/instructions/index.js.map +1 -1
- package/dist/raydium_client/instructions/initializeReward.d.ts +1 -0
- package/dist/raydium_client/instructions/initializeReward.d.ts.map +1 -0
- package/dist/raydium_client/instructions/initializeReward.js.map +1 -1
- package/dist/raydium_client/instructions/openPosition.d.ts +1 -0
- package/dist/raydium_client/instructions/openPosition.d.ts.map +1 -0
- package/dist/raydium_client/instructions/openPosition.js.map +1 -1
- package/dist/raydium_client/instructions/openPositionV2.d.ts +1 -0
- package/dist/raydium_client/instructions/openPositionV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/openPositionV2.js.map +1 -1
- package/dist/raydium_client/instructions/setRewardParams.d.ts +1 -0
- package/dist/raydium_client/instructions/setRewardParams.d.ts.map +1 -0
- package/dist/raydium_client/instructions/setRewardParams.js.map +1 -1
- package/dist/raydium_client/instructions/swap.d.ts +1 -0
- package/dist/raydium_client/instructions/swap.d.ts.map +1 -0
- package/dist/raydium_client/instructions/swap.js.map +1 -1
- package/dist/raydium_client/instructions/swapRouterBaseIn.d.ts +1 -0
- package/dist/raydium_client/instructions/swapRouterBaseIn.d.ts.map +1 -0
- package/dist/raydium_client/instructions/swapRouterBaseIn.js.map +1 -1
- package/dist/raydium_client/instructions/swapV2.d.ts +1 -0
- package/dist/raydium_client/instructions/swapV2.d.ts.map +1 -0
- package/dist/raydium_client/instructions/swapV2.js.map +1 -1
- package/dist/raydium_client/instructions/transferRewardOwner.d.ts +1 -0
- package/dist/raydium_client/instructions/transferRewardOwner.d.ts.map +1 -0
- package/dist/raydium_client/instructions/transferRewardOwner.js.map +1 -1
- package/dist/raydium_client/instructions/updateAmmConfig.d.ts +1 -0
- package/dist/raydium_client/instructions/updateAmmConfig.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updateAmmConfig.js.map +1 -1
- package/dist/raydium_client/instructions/updateOperationAccount.d.ts +1 -0
- package/dist/raydium_client/instructions/updateOperationAccount.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updateOperationAccount.js.map +1 -1
- package/dist/raydium_client/instructions/updatePoolStatus.d.ts +1 -0
- package/dist/raydium_client/instructions/updatePoolStatus.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updatePoolStatus.js.map +1 -1
- package/dist/raydium_client/instructions/updateRewardInfos.d.ts +1 -0
- package/dist/raydium_client/instructions/updateRewardInfos.d.ts.map +1 -0
- package/dist/raydium_client/instructions/updateRewardInfos.js.map +1 -1
- package/dist/raydium_client/programId.d.ts +1 -0
- package/dist/raydium_client/programId.d.ts.map +1 -0
- package/dist/raydium_client/programId.js.map +1 -1
- package/dist/raydium_client/types/InitializeRewardParam.d.ts +1 -0
- package/dist/raydium_client/types/InitializeRewardParam.d.ts.map +1 -0
- package/dist/raydium_client/types/InitializeRewardParam.js +3 -0
- package/dist/raydium_client/types/InitializeRewardParam.js.map +1 -1
- package/dist/raydium_client/types/Observation.d.ts +1 -0
- package/dist/raydium_client/types/Observation.d.ts.map +1 -0
- package/dist/raydium_client/types/Observation.js +4 -0
- package/dist/raydium_client/types/Observation.js.map +1 -1
- package/dist/raydium_client/types/PoolStatusBitFlag.d.ts +1 -0
- package/dist/raydium_client/types/PoolStatusBitFlag.d.ts.map +1 -0
- package/dist/raydium_client/types/PoolStatusBitFlag.js +8 -12
- package/dist/raydium_client/types/PoolStatusBitFlag.js.map +1 -1
- package/dist/raydium_client/types/PoolStatusBitIndex.d.ts +1 -0
- package/dist/raydium_client/types/PoolStatusBitIndex.d.ts.map +1 -0
- package/dist/raydium_client/types/PoolStatusBitIndex.js +20 -30
- package/dist/raydium_client/types/PoolStatusBitIndex.js.map +1 -1
- package/dist/raydium_client/types/PositionRewardInfo.d.ts +1 -0
- package/dist/raydium_client/types/PositionRewardInfo.d.ts.map +1 -0
- package/dist/raydium_client/types/PositionRewardInfo.js +2 -0
- package/dist/raydium_client/types/PositionRewardInfo.js.map +1 -1
- package/dist/raydium_client/types/RewardInfo.d.ts +1 -0
- package/dist/raydium_client/types/RewardInfo.d.ts.map +1 -0
- package/dist/raydium_client/types/RewardInfo.js +11 -0
- package/dist/raydium_client/types/RewardInfo.js.map +1 -1
- package/dist/raydium_client/types/RewardState.d.ts +1 -0
- package/dist/raydium_client/types/RewardState.d.ts.map +1 -0
- package/dist/raydium_client/types/RewardState.js +16 -24
- package/dist/raydium_client/types/RewardState.js.map +1 -1
- package/dist/raydium_client/types/TickArryBitmap.d.ts +1 -0
- package/dist/raydium_client/types/TickArryBitmap.d.ts.map +1 -0
- package/dist/raydium_client/types/TickArryBitmap.js.map +1 -1
- package/dist/raydium_client/types/TickState.d.ts +1 -0
- package/dist/raydium_client/types/TickState.d.ts.map +1 -0
- package/dist/raydium_client/types/TickState.js +7 -0
- package/dist/raydium_client/types/TickState.js.map +1 -1
- package/dist/raydium_client/types/index.d.ts +1 -0
- package/dist/raydium_client/types/index.d.ts.map +1 -0
- package/dist/raydium_client/types/index.js.map +1 -1
- package/dist/rebalance_methods/autodriftRebalance.d.ts +1 -0
- package/dist/rebalance_methods/autodriftRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/autodriftRebalance.js +1 -1
- package/dist/rebalance_methods/autodriftRebalance.js.map +1 -1
- package/dist/rebalance_methods/consts.d.ts +1 -0
- package/dist/rebalance_methods/consts.d.ts.map +1 -0
- package/dist/rebalance_methods/consts.js.map +1 -1
- package/dist/rebalance_methods/driftRebalance.d.ts +1 -0
- package/dist/rebalance_methods/driftRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/driftRebalance.js.map +1 -1
- package/dist/rebalance_methods/expanderRebalance.d.ts +1 -0
- package/dist/rebalance_methods/expanderRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/expanderRebalance.js.map +1 -1
- package/dist/rebalance_methods/index.d.ts +1 -0
- package/dist/rebalance_methods/index.d.ts.map +1 -0
- package/dist/rebalance_methods/index.js.map +1 -1
- package/dist/rebalance_methods/manualRebalance.d.ts +1 -0
- package/dist/rebalance_methods/manualRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/manualRebalance.js.map +1 -1
- package/dist/rebalance_methods/math_utils.d.ts +1 -0
- package/dist/rebalance_methods/math_utils.d.ts.map +1 -0
- package/dist/rebalance_methods/math_utils.js.map +1 -1
- package/dist/rebalance_methods/periodicRebalance.d.ts +1 -0
- package/dist/rebalance_methods/periodicRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/periodicRebalance.js.map +1 -1
- package/dist/rebalance_methods/pricePercentageRebalance.d.ts +1 -0
- package/dist/rebalance_methods/pricePercentageRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/pricePercentageRebalance.js +2 -3
- package/dist/rebalance_methods/pricePercentageRebalance.js.map +1 -1
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.d.ts +1 -0
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.js +8 -10
- package/dist/rebalance_methods/pricePercentageWithResetRebalance.js.map +1 -1
- package/dist/rebalance_methods/takeProfitRebalance.d.ts +1 -0
- package/dist/rebalance_methods/takeProfitRebalance.d.ts.map +1 -0
- package/dist/rebalance_methods/takeProfitRebalance.js.map +1 -1
- package/dist/rebalance_methods/utils.d.ts +1 -0
- package/dist/rebalance_methods/utils.d.ts.map +1 -0
- package/dist/rebalance_methods/utils.js.map +1 -1
- package/dist/services/JupService.d.ts +1 -0
- package/dist/services/JupService.d.ts.map +1 -0
- package/dist/services/JupService.js +102 -111
- package/dist/services/JupService.js.map +1 -1
- package/dist/services/MeteoraService.d.ts +1 -0
- package/dist/services/MeteoraService.d.ts.map +1 -0
- package/dist/services/MeteoraService.js +159 -150
- package/dist/services/MeteoraService.js.map +1 -1
- package/dist/services/OrcaService.d.ts +1 -0
- package/dist/services/OrcaService.d.ts.map +1 -0
- package/dist/services/OrcaService.js +195 -201
- package/dist/services/OrcaService.js.map +1 -1
- package/dist/services/OrcaWhirlpoolsResponse.d.ts +1 -0
- package/dist/services/OrcaWhirlpoolsResponse.d.ts.map +1 -0
- package/dist/services/OrcaWhirlpoolsResponse.js.map +1 -1
- package/dist/services/PoolSimulationService.d.ts +1 -0
- package/dist/services/PoolSimulationService.d.ts.map +1 -0
- package/dist/services/PoolSimulationService.js +6 -19
- package/dist/services/PoolSimulationService.js.map +1 -1
- package/dist/services/RaydiumPoolsResponse.d.ts +1 -0
- package/dist/services/RaydiumPoolsResponse.d.ts.map +1 -0
- package/dist/services/RaydiumPoolsResponse.js.map +1 -1
- package/dist/services/RaydiumService.d.ts +1 -0
- package/dist/services/RaydiumService.d.ts.map +1 -0
- package/dist/services/RaydiumService.js +188 -171
- package/dist/services/RaydiumService.js.map +1 -1
- package/dist/services/WhirlpoolAprApy.d.ts +1 -0
- package/dist/services/WhirlpoolAprApy.d.ts.map +1 -0
- package/dist/services/WhirlpoolAprApy.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js.map +1 -1
- package/dist/utils/CreationParameters.d.ts +1 -0
- package/dist/utils/CreationParameters.d.ts.map +1 -0
- package/dist/utils/CreationParameters.js +1 -1
- package/dist/utils/CreationParameters.js.map +1 -1
- package/dist/utils/anchorUtils.d.ts +1 -0
- package/dist/utils/anchorUtils.d.ts.map +1 -0
- package/dist/utils/anchorUtils.js +2 -11
- package/dist/utils/anchorUtils.js.map +1 -1
- package/dist/utils/batch.d.ts +1 -0
- package/dist/utils/batch.d.ts.map +1 -0
- package/dist/utils/batch.js +4 -15
- package/dist/utils/batch.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/instructions.d.ts +1 -0
- package/dist/utils/instructions.d.ts.map +1 -0
- package/dist/utils/instructions.js.map +1 -1
- package/dist/utils/lookupTable.d.ts +1 -0
- package/dist/utils/lookupTable.d.ts.map +1 -0
- package/dist/utils/lookupTable.js +29 -42
- package/dist/utils/lookupTable.js.map +1 -1
- package/dist/utils/math.d.ts +1 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/math.js.map +1 -1
- package/dist/utils/meteora.d.ts +1 -0
- package/dist/utils/meteora.d.ts.map +1 -0
- package/dist/utils/meteora.js.map +1 -1
- package/dist/utils/orca.d.ts +1 -0
- package/dist/utils/orca.d.ts.map +1 -0
- package/dist/utils/orca.js.map +1 -1
- package/dist/utils/priceReferenceTypes.d.ts +1 -0
- package/dist/utils/priceReferenceTypes.d.ts.map +1 -0
- package/dist/utils/priceReferenceTypes.js.map +1 -1
- package/dist/utils/pubkey.d.ts +1 -0
- package/dist/utils/pubkey.d.ts.map +1 -0
- package/dist/utils/pubkey.js +7 -9
- package/dist/utils/pubkey.js.map +1 -1
- package/dist/utils/raydium.d.ts +1 -0
- package/dist/utils/raydium.d.ts.map +1 -0
- package/dist/utils/raydium.js.map +1 -1
- package/dist/utils/tokenUtils.d.ts +1 -0
- package/dist/utils/tokenUtils.d.ts.map +1 -0
- package/dist/utils/tokenUtils.js +40 -57
- package/dist/utils/tokenUtils.js.map +1 -1
- package/dist/utils/transactions.d.ts +1 -0
- package/dist/utils/transactions.d.ts.map +1 -0
- package/dist/utils/transactions.js +21 -31
- package/dist/utils/transactions.js.map +1 -1
- package/dist/utils/types.d.ts +1 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js.map +1 -1
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +13 -24
- package/dist/utils/utils.js.map +1 -1
- package/dist/whirlpools-client/accounts/FeeTier.d.ts +1 -0
- package/dist/whirlpools-client/accounts/FeeTier.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/FeeTier.js +24 -34
- package/dist/whirlpools-client/accounts/FeeTier.js.map +1 -1
- package/dist/whirlpools-client/accounts/Position.d.ts +1 -0
- package/dist/whirlpools-client/accounts/Position.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/Position.js +39 -42
- package/dist/whirlpools-client/accounts/Position.js.map +1 -1
- package/dist/whirlpools-client/accounts/PositionBundle.d.ts +1 -0
- package/dist/whirlpools-client/accounts/PositionBundle.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/PositionBundle.js +22 -33
- package/dist/whirlpools-client/accounts/PositionBundle.js.map +1 -1
- package/dist/whirlpools-client/accounts/TickArray.d.ts +1 -0
- package/dist/whirlpools-client/accounts/TickArray.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/TickArray.js +25 -35
- package/dist/whirlpools-client/accounts/TickArray.js.map +1 -1
- package/dist/whirlpools-client/accounts/TokenBadge.d.ts +1 -0
- package/dist/whirlpools-client/accounts/TokenBadge.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/TokenBadge.js +22 -33
- package/dist/whirlpools-client/accounts/TokenBadge.js.map +1 -1
- package/dist/whirlpools-client/accounts/Whirlpool.d.ts +1 -0
- package/dist/whirlpools-client/accounts/Whirlpool.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/Whirlpool.js +57 -51
- package/dist/whirlpools-client/accounts/Whirlpool.js.map +1 -1
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.d.ts +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.js +26 -35
- package/dist/whirlpools-client/accounts/WhirlpoolsConfig.js.map +1 -1
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.d.ts +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.js +24 -34
- package/dist/whirlpools-client/accounts/WhirlpoolsConfigExtension.js.map +1 -1
- package/dist/whirlpools-client/accounts/index.d.ts +1 -0
- package/dist/whirlpools-client/accounts/index.d.ts.map +1 -0
- package/dist/whirlpools-client/accounts/index.js.map +1 -1
- package/dist/whirlpools-client/errors/anchor.d.ts +1 -0
- package/dist/whirlpools-client/errors/anchor.d.ts.map +1 -0
- package/dist/whirlpools-client/errors/anchor.js +270 -216
- package/dist/whirlpools-client/errors/anchor.js.map +1 -1
- package/dist/whirlpools-client/errors/custom.d.ts +1 -0
- package/dist/whirlpools-client/errors/custom.d.ts.map +1 -0
- package/dist/whirlpools-client/errors/custom.js +270 -216
- package/dist/whirlpools-client/errors/custom.js.map +1 -1
- package/dist/whirlpools-client/errors/index.d.ts +1 -0
- package/dist/whirlpools-client/errors/index.d.ts.map +1 -0
- package/dist/whirlpools-client/errors/index.js.map +1 -1
- package/dist/whirlpools-client/index.d.ts +1 -0
- package/dist/whirlpools-client/index.d.ts.map +1 -0
- package/dist/whirlpools-client/index.js.map +1 -1
- package/dist/whirlpools-client/instructions/closeBundledPosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/closeBundledPosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/closeBundledPosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/closePosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/closePosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/closePosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectFees.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectFees.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectFees.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectFeesV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectFeesV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectFeesV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectProtocolFees.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFees.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFees.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectProtocolFeesV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectReward.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectReward.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectReward.js.map +1 -1
- package/dist/whirlpools-client/instructions/collectRewardV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/collectRewardV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/collectRewardV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/decreaseLiquidity.d.ts +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidity.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidity.js.map +1 -1
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/decreaseLiquidityV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/deletePositionBundle.d.ts +1 -0
- package/dist/whirlpools-client/instructions/deletePositionBundle.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/deletePositionBundle.js.map +1 -1
- package/dist/whirlpools-client/instructions/deleteTokenBadge.d.ts +1 -0
- package/dist/whirlpools-client/instructions/deleteTokenBadge.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/deleteTokenBadge.js.map +1 -1
- package/dist/whirlpools-client/instructions/increaseLiquidity.d.ts +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidity.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidity.js.map +1 -1
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/increaseLiquidityV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/index.d.ts +1 -0
- package/dist/whirlpools-client/instructions/index.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/index.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeConfig.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeConfig.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeConfig.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeConfigExtension.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeConfigExtension.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeConfigExtension.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeFeeTier.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeFeeTier.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeFeeTier.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePool.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePool.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePool.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePoolV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePoolV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePoolV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePositionBundle.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundle.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundle.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializePositionBundleWithMetadata.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeReward.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeReward.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeReward.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeRewardV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeRewardV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeRewardV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeTickArray.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeTickArray.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeTickArray.js.map +1 -1
- package/dist/whirlpools-client/instructions/initializeTokenBadge.d.ts +1 -0
- package/dist/whirlpools-client/instructions/initializeTokenBadge.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/initializeTokenBadge.js.map +1 -1
- package/dist/whirlpools-client/instructions/openBundledPosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/openBundledPosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/openBundledPosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/openPosition.d.ts +1 -0
- package/dist/whirlpools-client/instructions/openPosition.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/openPosition.js.map +1 -1
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.d.ts +1 -0
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/openPositionWithMetadata.js.map +1 -1
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setCollectProtocolFeesAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setConfigExtensionAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setDefaultFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setDefaultProtocolFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setFeeAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setFeeAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setFeeAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setProtocolFeeRate.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardEmissions.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissions.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissions.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setRewardEmissionsV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.d.ts +1 -0
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/setTokenBadgeAuthority.js.map +1 -1
- package/dist/whirlpools-client/instructions/swap.d.ts +1 -0
- package/dist/whirlpools-client/instructions/swap.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/swap.js.map +1 -1
- package/dist/whirlpools-client/instructions/swapV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/swapV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/swapV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/twoHopSwap.d.ts +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwap.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwap.js.map +1 -1
- package/dist/whirlpools-client/instructions/twoHopSwapV2.d.ts +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwapV2.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/twoHopSwapV2.js.map +1 -1
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.d.ts +1 -0
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.d.ts.map +1 -0
- package/dist/whirlpools-client/instructions/updateFeesAndRewards.js.map +1 -1
- package/dist/whirlpools-client/programId.d.ts +1 -0
- package/dist/whirlpools-client/programId.d.ts.map +1 -0
- package/dist/whirlpools-client/programId.js.map +1 -1
- package/dist/whirlpools-client/shim/remove-liquidity.d.ts +1 -0
- package/dist/whirlpools-client/shim/remove-liquidity.d.ts.map +1 -0
- package/dist/whirlpools-client/shim/remove-liquidity.js.map +1 -1
- package/dist/whirlpools-client/types/AccountsType.d.ts +1 -0
- package/dist/whirlpools-client/types/AccountsType.d.ts.map +1 -0
- package/dist/whirlpools-client/types/AccountsType.js +24 -36
- package/dist/whirlpools-client/types/AccountsType.js.map +1 -1
- package/dist/whirlpools-client/types/CurrIndex.d.ts +1 -0
- package/dist/whirlpools-client/types/CurrIndex.d.ts.map +1 -0
- package/dist/whirlpools-client/types/CurrIndex.js +12 -18
- package/dist/whirlpools-client/types/CurrIndex.js.map +1 -1
- package/dist/whirlpools-client/types/Direction.d.ts +1 -0
- package/dist/whirlpools-client/types/Direction.d.ts.map +1 -0
- package/dist/whirlpools-client/types/Direction.js +8 -12
- package/dist/whirlpools-client/types/Direction.js.map +1 -1
- package/dist/whirlpools-client/types/OpenPositionBumps.d.ts +1 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.d.ts.map +1 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.js +1 -0
- package/dist/whirlpools-client/types/OpenPositionBumps.js.map +1 -1
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.d.ts +1 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.d.ts.map +1 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.js +2 -0
- package/dist/whirlpools-client/types/OpenPositionWithMetadataBumps.js.map +1 -1
- package/dist/whirlpools-client/types/PositionRewardInfo.d.ts +1 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.d.ts.map +1 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.js +2 -0
- package/dist/whirlpools-client/types/PositionRewardInfo.js.map +1 -1
- package/dist/whirlpools-client/types/RemainingAccountsInfo.d.ts +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsInfo.d.ts.map +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsInfo.js +2 -1
- package/dist/whirlpools-client/types/RemainingAccountsInfo.js.map +1 -1
- package/dist/whirlpools-client/types/RemainingAccountsSlice.d.ts +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.d.ts.map +1 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.js +2 -0
- package/dist/whirlpools-client/types/RemainingAccountsSlice.js.map +1 -1
- package/dist/whirlpools-client/types/Tick.d.ts +1 -0
- package/dist/whirlpools-client/types/Tick.d.ts.map +1 -0
- package/dist/whirlpools-client/types/Tick.js +6 -0
- package/dist/whirlpools-client/types/Tick.js.map +1 -1
- package/dist/whirlpools-client/types/TickLabel.d.ts +1 -0
- package/dist/whirlpools-client/types/TickLabel.d.ts.map +1 -0
- package/dist/whirlpools-client/types/TickLabel.js +8 -12
- package/dist/whirlpools-client/types/TickLabel.js.map +1 -1
- package/dist/whirlpools-client/types/WhirlpoolBumps.d.ts +1 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.d.ts.map +1 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.js +1 -0
- package/dist/whirlpools-client/types/WhirlpoolBumps.js.map +1 -1
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.d.ts +1 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.d.ts.map +1 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.js +5 -0
- package/dist/whirlpools-client/types/WhirlpoolRewardInfo.js.map +1 -1
- package/dist/whirlpools-client/types/index.d.ts +1 -0
- package/dist/whirlpools-client/types/index.d.ts.map +1 -0
- package/dist/whirlpools-client/types/index.js.map +1 -1
- package/package.json +3 -2
- package/src/Kamino.ts +7625 -0
- package/src/constants/DefaultStrategyConfig.ts +7 -0
- package/src/constants/deposit_method.ts +2 -0
- package/src/constants/frontend.ts +1 -0
- package/src/constants/index.ts +3 -0
- package/src/constants/metadata.ts +4 -0
- package/src/constants/numericalValues.ts +1 -0
- package/src/constants/pubkeys.ts +11 -0
- package/src/index.ts +6 -0
- package/src/kamino-client/accounts/CollateralInfos.ts +95 -0
- package/src/kamino-client/accounts/GlobalConfig.ts +292 -0
- package/src/kamino-client/accounts/PersonalPositionState.ts +215 -0
- package/src/kamino-client/accounts/PoolState.ts +469 -0
- package/src/kamino-client/accounts/Position.ts +169 -0
- package/src/kamino-client/accounts/ProtocolPositionState.ts +201 -0
- package/src/kamino-client/accounts/ScopeChainAccount.ts +89 -0
- package/src/kamino-client/accounts/TermsSignature.ts +89 -0
- package/src/kamino-client/accounts/Whirlpool.ts +242 -0
- package/src/kamino-client/accounts/WhirlpoolStrategy.ts +918 -0
- package/src/kamino-client/accounts/index.ts +35 -0
- package/src/kamino-client/errors/anchor.ts +773 -0
- package/src/kamino-client/errors/custom.ts +2245 -0
- package/src/kamino-client/errors/index.ts +62 -0
- package/src/kamino-client/instructions/addKaminoRewards.ts +53 -0
- package/src/kamino-client/instructions/changePool.ts +48 -0
- package/src/kamino-client/instructions/checkExpectedVaultsBalances.ts +45 -0
- package/src/kamino-client/instructions/closeProgramAccount.ts +30 -0
- package/src/kamino-client/instructions/closeStrategy.ts +130 -0
- package/src/kamino-client/instructions/collectFeesAndRewards.ts +116 -0
- package/src/kamino-client/instructions/deposit.ts +93 -0
- package/src/kamino-client/instructions/depositAndInvest.ts +118 -0
- package/src/kamino-client/instructions/emergencySwap.ts +86 -0
- package/src/kamino-client/instructions/executiveWithdraw.ts +92 -0
- package/src/kamino-client/instructions/flashSwapUnevenVaultsEnd.ts +95 -0
- package/src/kamino-client/instructions/flashSwapUnevenVaultsStart.ts +91 -0
- package/src/kamino-client/instructions/index.ts +140 -0
- package/src/kamino-client/instructions/initializeCollateralInfo.ts +28 -0
- package/src/kamino-client/instructions/initializeGlobalConfig.ts +26 -0
- package/src/kamino-client/instructions/initializeKaminoReward.ts +59 -0
- package/src/kamino-client/instructions/initializeSharesMetadata.ts +64 -0
- package/src/kamino-client/instructions/initializeStrategy.ts +77 -0
- package/src/kamino-client/instructions/insertCollateralInfo.ts +45 -0
- package/src/kamino-client/instructions/invest.ts +84 -0
- package/src/kamino-client/instructions/openLiquidityPosition.ts +144 -0
- package/src/kamino-client/instructions/orcaSwap.ts +82 -0
- package/src/kamino-client/instructions/permisionlessWithdrawFromTreasury.ts +38 -0
- package/src/kamino-client/instructions/signTerms.ts +42 -0
- package/src/kamino-client/instructions/singleTokenDepositAndInvestWithMin.ts +118 -0
- package/src/kamino-client/instructions/singleTokenDepositWithMin.ts +93 -0
- package/src/kamino-client/instructions/swapRewards.ts +116 -0
- package/src/kamino-client/instructions/swapUnevenVaults.ts +105 -0
- package/src/kamino-client/instructions/updateCollateralInfo.ts +48 -0
- package/src/kamino-client/instructions/updateGlobalConfig.ts +48 -0
- package/src/kamino-client/instructions/updateRewardMapping.ts +61 -0
- package/src/kamino-client/instructions/updateSharesMetadata.ts +60 -0
- package/src/kamino-client/instructions/updateStrategyAdmin.ts +24 -0
- package/src/kamino-client/instructions/updateStrategyConfig.ts +49 -0
- package/src/kamino-client/instructions/updateTreasuryFeeVault.ts +56 -0
- package/src/kamino-client/instructions/withdraw.ts +108 -0
- package/src/kamino-client/instructions/withdrawFromTopup.ts +40 -0
- package/src/kamino-client/instructions/withdrawFromTreasury.ts +56 -0
- package/src/kamino-client/programId.ts +13 -0
- package/src/kamino-client/types/BalanceStatus.ts +90 -0
- package/src/kamino-client/types/BinAddLiquidityStrategy.ts +189 -0
- package/src/kamino-client/types/CollateralInfo.ts +184 -0
- package/src/kamino-client/types/CollateralInfoParams.ts +166 -0
- package/src/kamino-client/types/CollateralTestToken.ts +870 -0
- package/src/kamino-client/types/CreationStatus.ts +180 -0
- package/src/kamino-client/types/DEX.ts +118 -0
- package/src/kamino-client/types/DexSpecificPrice.ts +116 -0
- package/src/kamino-client/types/DriftDirection.ts +90 -0
- package/src/kamino-client/types/ExecutiveWithdrawAction.ts +120 -0
- package/src/kamino-client/types/ExpanderStep.ts +101 -0
- package/src/kamino-client/types/GlobalConfigOption.ts +720 -0
- package/src/kamino-client/types/KaminoRewardInfo.ts +130 -0
- package/src/kamino-client/types/LiquidityCalculationMode.ts +90 -0
- package/src/kamino-client/types/MintingMethod.ts +90 -0
- package/src/kamino-client/types/PeriodicRebalanceState.ts +53 -0
- package/src/kamino-client/types/PositionRewardInfo.ts +64 -0
- package/src/kamino-client/types/Price.ts +61 -0
- package/src/kamino-client/types/RebalanceAction.ts +166 -0
- package/src/kamino-client/types/RebalanceAutodriftParams.ts +122 -0
- package/src/kamino-client/types/RebalanceAutodriftState.ts +84 -0
- package/src/kamino-client/types/RebalanceAutodriftStep.ts +90 -0
- package/src/kamino-client/types/RebalanceAutodriftWindow.ts +106 -0
- package/src/kamino-client/types/RebalanceDriftParams.ts +94 -0
- package/src/kamino-client/types/RebalanceDriftState.ts +76 -0
- package/src/kamino-client/types/RebalanceDriftStep.ts +90 -0
- package/src/kamino-client/types/RebalanceEffects.ts +104 -0
- package/src/kamino-client/types/RebalanceExpanderState.ts +64 -0
- package/src/kamino-client/types/RebalanceManualState.ts +37 -0
- package/src/kamino-client/types/RebalancePricePercentageState.ts +69 -0
- package/src/kamino-client/types/RebalancePricePercentageWithResetState.ts +77 -0
- package/src/kamino-client/types/RebalanceRaw.ts +76 -0
- package/src/kamino-client/types/RebalanceTakeProfitState.ts +56 -0
- package/src/kamino-client/types/RebalanceTakeProfitStep.ts +120 -0
- package/src/kamino-client/types/RebalanceTakeProfitToken.ts +87 -0
- package/src/kamino-client/types/RebalanceType.ts +270 -0
- package/src/kamino-client/types/ReferencePriceType.ts +90 -0
- package/src/kamino-client/types/RemoveLiquidityMode.ts +146 -0
- package/src/kamino-client/types/RewardInfo.ts +190 -0
- package/src/kamino-client/types/ScopeConversionChain.ts +0 -0
- package/src/kamino-client/types/ScopePriceIdTest.ts +2130 -0
- package/src/kamino-client/types/SimulationPrice.ts +146 -0
- package/src/kamino-client/types/StakingRateSource.ts +90 -0
- package/src/kamino-client/types/StrategyConfigOption.ts +1590 -0
- package/src/kamino-client/types/StrategyStatus.ts +180 -0
- package/src/kamino-client/types/StrategyType.ts +118 -0
- package/src/kamino-client/types/SwapLimit.ts +157 -0
- package/src/kamino-client/types/UpdateCollateralInfoMode.ts +420 -0
- package/src/kamino-client/types/WhirlpoolRewardInfo.ts +118 -0
- package/src/kamino-client/types/WithdrawalCapAccumulatorAction.ts +92 -0
- package/src/kamino-client/types/WithdrawalCaps.ts +85 -0
- package/src/kamino-client/types/index.ts +765 -0
- package/src/meteora_client/accounts/BinArray.ts +134 -0
- package/src/meteora_client/accounts/BinArrayBitmapExtension.ts +119 -0
- package/src/meteora_client/accounts/LbPair.ts +401 -0
- package/src/meteora_client/accounts/Oracle.ts +114 -0
- package/src/meteora_client/accounts/Position.ts +229 -0
- package/src/meteora_client/accounts/PositionV2.ts +277 -0
- package/src/meteora_client/accounts/PresetParameter.ts +191 -0
- package/src/meteora_client/accounts/index.ts +20 -0
- package/src/meteora_client/errors/anchor.ts +773 -0
- package/src/meteora_client/errors/custom.ts +834 -0
- package/src/meteora_client/errors/index.ts +62 -0
- package/src/meteora_client/instructions/addLiquidity.ts +74 -0
- package/src/meteora_client/instructions/addLiquidityByStrategy.ts +74 -0
- package/src/meteora_client/instructions/addLiquidityByStrategyOneSide.ts +66 -0
- package/src/meteora_client/instructions/addLiquidityByWeight.ts +74 -0
- package/src/meteora_client/instructions/addLiquidityOneSide.ts +66 -0
- package/src/meteora_client/instructions/addLiquidityOneSidePrecise.ts +66 -0
- package/src/meteora_client/instructions/claimFee.ts +48 -0
- package/src/meteora_client/instructions/claimReward.ts +56 -0
- package/src/meteora_client/instructions/closePosition.ts +36 -0
- package/src/meteora_client/instructions/closePresetParameter.ts +26 -0
- package/src/meteora_client/instructions/fundReward.ts +60 -0
- package/src/meteora_client/instructions/goToABin.ts +50 -0
- package/src/meteora_client/instructions/increaseOracleLength.ts +44 -0
- package/src/meteora_client/instructions/index.ts +165 -0
- package/src/meteora_client/instructions/initializeBinArray.ts +42 -0
- package/src/meteora_client/instructions/initializeBinArrayBitmapExtension.ts +35 -0
- package/src/meteora_client/instructions/initializeLbPair.ts +71 -0
- package/src/meteora_client/instructions/initializePermissionLbPair.ts +68 -0
- package/src/meteora_client/instructions/initializePosition.ts +55 -0
- package/src/meteora_client/instructions/initializePositionByOperator.ts +64 -0
- package/src/meteora_client/instructions/initializePositionPda.ts +58 -0
- package/src/meteora_client/instructions/initializePresetParameter.ts +42 -0
- package/src/meteora_client/instructions/initializeReward.ts +60 -0
- package/src/meteora_client/instructions/migrateBinArray.ts +22 -0
- package/src/meteora_client/instructions/migratePosition.ts +40 -0
- package/src/meteora_client/instructions/removeAllLiquidity.ts +56 -0
- package/src/meteora_client/instructions/removeLiquidity.ts +74 -0
- package/src/meteora_client/instructions/removeLiquidityByRange.ts +78 -0
- package/src/meteora_client/instructions/setActivationSlot.ts +38 -0
- package/src/meteora_client/instructions/setLockReleaseSlot.ts +44 -0
- package/src/meteora_client/instructions/setPreActivationSlotDuration.ts +38 -0
- package/src/meteora_client/instructions/setPreActivationSwapAddress.ts +40 -0
- package/src/meteora_client/instructions/swap.ts +73 -0
- package/src/meteora_client/instructions/togglePairStatus.ts +24 -0
- package/src/meteora_client/instructions/updateFeeOwner.ts +26 -0
- package/src/meteora_client/instructions/updateFeeParameters.ts +42 -0
- package/src/meteora_client/instructions/updateFeesAndRewards.ts +30 -0
- package/src/meteora_client/instructions/updatePositionOperator.ts +42 -0
- package/src/meteora_client/instructions/updateRewardDuration.ts +49 -0
- package/src/meteora_client/instructions/updateRewardFunder.ts +47 -0
- package/src/meteora_client/instructions/updateWhitelistedWallet.ts +38 -0
- package/src/meteora_client/instructions/withdrawIneligibleReward.ts +52 -0
- package/src/meteora_client/instructions/withdrawProtocolFee.ts +54 -0
- package/src/meteora_client/programId.ts +14 -0
- package/src/meteora_client/types/AddLiquiditySingleSidePreciseParameter.ts +79 -0
- package/src/meteora_client/types/Bin.ts +161 -0
- package/src/meteora_client/types/BinLiquidityDistribution.ts +85 -0
- package/src/meteora_client/types/BinLiquidityDistributionByWeight.ts +69 -0
- package/src/meteora_client/types/BinLiquidityReduction.ts +64 -0
- package/src/meteora_client/types/CompressedBinDepositAmount.ts +63 -0
- package/src/meteora_client/types/FeeInfo.ts +85 -0
- package/src/meteora_client/types/FeeParameter.ts +70 -0
- package/src/meteora_client/types/InitPermissionPairIx.ts +103 -0
- package/src/meteora_client/types/InitPresetParametersIx.ts +169 -0
- package/src/meteora_client/types/LayoutVersion.ts +87 -0
- package/src/meteora_client/types/LiquidityOneSideParameter.ts +112 -0
- package/src/meteora_client/types/LiquidityParameter.ts +95 -0
- package/src/meteora_client/types/LiquidityParameterByStrategy.ts +119 -0
- package/src/meteora_client/types/LiquidityParameterByStrategyOneSide.ts +107 -0
- package/src/meteora_client/types/LiquidityParameterByWeight.ts +124 -0
- package/src/meteora_client/types/Observation.ts +85 -0
- package/src/meteora_client/types/PairStatus.ts +88 -0
- package/src/meteora_client/types/PairType.ts +88 -0
- package/src/meteora_client/types/ProtocolFee.ts +61 -0
- package/src/meteora_client/types/RewardInfo.ts +152 -0
- package/src/meteora_client/types/Rounding.ts +85 -0
- package/src/meteora_client/types/StaticParameters.ts +170 -0
- package/src/meteora_client/types/StrategyParameters.ts +97 -0
- package/src/meteora_client/types/StrategyType.ts +298 -0
- package/src/meteora_client/types/UserRewardInfo.ts +71 -0
- package/src/meteora_client/types/VariableParameters.ts +131 -0
- package/src/meteora_client/types/index.ts +140 -0
- package/src/models/EnrichedScopePrice.ts +32 -0
- package/src/models/Holdings.ts +15 -0
- package/src/models/KaminoPosition.ts +12 -0
- package/src/models/KaminoStrategyWithShareMint.ts +8 -0
- package/src/models/KaminoToken.ts +6 -0
- package/src/models/LbPairWithAddress.ts +9 -0
- package/src/models/MultipleAccountsResponse.ts +49 -0
- package/src/models/PoolSimulationResponseData.ts +28 -0
- package/src/models/PriceData.ts +17 -0
- package/src/models/RaydiumPoolWithAddress.ts +9 -0
- package/src/models/ShareData.ts +34 -0
- package/src/models/StrategyBalances.ts +15 -0
- package/src/models/StrategyHolder.ts +7 -0
- package/src/models/StrategyPrices.ts +11 -0
- package/src/models/StrategyProgramAddress.ts +14 -0
- package/src/models/StrategyVaultBalances.ts +6 -0
- package/src/models/StrategyVaultTokens.ts +14 -0
- package/src/models/StrategyWithAddress.ts +9 -0
- package/src/models/StrategyWithPendingFees.ts +7 -0
- package/src/models/TokenAmounts.ts +6 -0
- package/src/models/TreasuryFeeVault.ts +9 -0
- package/src/models/WhirlpoolWithAddress.ts +9 -0
- package/src/models/index.ts +19 -0
- package/src/raydium_client/accounts/AmmConfig.ts +161 -0
- package/src/raydium_client/accounts/ObservationState.ts +121 -0
- package/src/raydium_client/accounts/OperationState.ts +105 -0
- package/src/raydium_client/accounts/PersonalPositionState.ts +185 -0
- package/src/raydium_client/accounts/PoolState.ts +385 -0
- package/src/raydium_client/accounts/ProtocolPositionState.ts +171 -0
- package/src/raydium_client/accounts/TickArrayBitmapExtension.ts +113 -0
- package/src/raydium_client/accounts/TickArrayState.ts +125 -0
- package/src/raydium_client/accounts/index.ts +28 -0
- package/src/raydium_client/errors/anchor.ts +773 -0
- package/src/raydium_client/errors/custom.ts +611 -0
- package/src/raydium_client/errors/index.ts +62 -0
- package/src/raydium_client/index.ts +4 -0
- package/src/raydium_client/instructions/closePosition.ts +32 -0
- package/src/raydium_client/instructions/collectFundFee.ts +69 -0
- package/src/raydium_client/instructions/collectProtocolFee.ts +69 -0
- package/src/raydium_client/instructions/collectRemainingRewards.ts +50 -0
- package/src/raydium_client/instructions/createAmmConfig.ts +54 -0
- package/src/raydium_client/instructions/createOperationAccount.ts +26 -0
- package/src/raydium_client/instructions/createPool.ts +65 -0
- package/src/raydium_client/instructions/decreaseLiquidity.ts +74 -0
- package/src/raydium_client/instructions/decreaseLiquidityV2.ts +82 -0
- package/src/raydium_client/instructions/increaseLiquidity.ts +66 -0
- package/src/raydium_client/instructions/increaseLiquidityV2.ts +75 -0
- package/src/raydium_client/instructions/index.ts +94 -0
- package/src/raydium_client/instructions/initializeReward.ts +56 -0
- package/src/raydium_client/instructions/openPosition.ts +96 -0
- package/src/raydium_client/instructions/openPositionV2.ts +108 -0
- package/src/raydium_client/instructions/setRewardParams.ts +57 -0
- package/src/raydium_client/instructions/swap.ts +65 -0
- package/src/raydium_client/instructions/swapRouterBaseIn.ts +51 -0
- package/src/raydium_client/instructions/swapV2.ts +71 -0
- package/src/raydium_client/instructions/transferRewardOwner.ts +38 -0
- package/src/raydium_client/instructions/updateAmmConfig.ts +40 -0
- package/src/raydium_client/instructions/updateOperationAccount.ts +45 -0
- package/src/raydium_client/instructions/updatePoolStatus.ts +38 -0
- package/src/raydium_client/instructions/updateRewardInfos.ts +22 -0
- package/src/raydium_client/programId.ts +14 -0
- package/src/raydium_client/types/InitializeRewardParam.ts +76 -0
- package/src/raydium_client/types/Observation.ts +85 -0
- package/src/raydium_client/types/PoolStatusBitFlag.ts +90 -0
- package/src/raydium_client/types/PoolStatusBitIndex.ts +180 -0
- package/src/raydium_client/types/PositionRewardInfo.ts +64 -0
- package/src/raydium_client/types/RewardInfo.ts +148 -0
- package/src/raydium_client/types/RewardState.ts +148 -0
- package/src/raydium_client/types/TickArryBitmap.ts +0 -0
- package/src/raydium_client/types/TickState.ts +116 -0
- package/src/raydium_client/types/index.ts +56 -0
- package/src/rebalance_methods/autodriftRebalance.ts +363 -0
- package/src/rebalance_methods/consts.ts +1 -0
- package/src/rebalance_methods/driftRebalance.ts +314 -0
- package/src/rebalance_methods/expanderRebalance.ts +371 -0
- package/src/rebalance_methods/index.ts +7 -0
- package/src/rebalance_methods/manualRebalance.ts +43 -0
- package/src/rebalance_methods/math_utils.ts +28 -0
- package/src/rebalance_methods/periodicRebalance.ts +115 -0
- package/src/rebalance_methods/pricePercentageRebalance.ts +184 -0
- package/src/rebalance_methods/pricePercentageWithResetRebalance.ts +329 -0
- package/src/rebalance_methods/takeProfitRebalance.ts +130 -0
- package/src/rebalance_methods/utils.ts +128 -0
- package/src/services/JupService.ts +176 -0
- package/src/services/MeteoraService.ts +260 -0
- package/src/services/OrcaService.ts +383 -0
- package/src/services/OrcaWhirlpoolsResponse.ts +120 -0
- package/src/services/PoolSimulationService.ts +42 -0
- package/src/services/RaydiumPoolsResponse.ts +96 -0
- package/src/services/RaydiumService.ts +320 -0
- package/src/services/WhirlpoolAprApy.ts +14 -0
- package/src/services/index.ts +5 -0
- package/src/utils/CreationParameters.ts +100 -0
- package/src/utils/anchorUtils.ts +15 -0
- package/src/utils/batch.ts +14 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/instructions.ts +38 -0
- package/src/utils/lookupTable.ts +52 -0
- package/src/utils/math.ts +10 -0
- package/src/utils/meteora.ts +94 -0
- package/src/utils/orca.ts +12 -0
- package/src/utils/priceReferenceTypes.ts +11 -0
- package/src/utils/pubkey.ts +249 -0
- package/src/utils/raydium.ts +10 -0
- package/src/utils/tokenUtils.ts +259 -0
- package/src/utils/transactions.ts +201 -0
- package/src/utils/types.ts +312 -0
- package/src/utils/utils.ts +312 -0
- package/src/whirlpools-client/accounts/FeeTier.ts +105 -0
- package/src/whirlpools-client/accounts/Position.ts +169 -0
- package/src/whirlpools-client/accounts/PositionBundle.ts +97 -0
- package/src/whirlpools-client/accounts/TickArray.ts +109 -0
- package/src/whirlpools-client/accounts/TokenBadge.ts +97 -0
- package/src/whirlpools-client/accounts/Whirlpool.ts +241 -0
- package/src/whirlpools-client/accounts/WhirlpoolsConfig.ts +119 -0
- package/src/whirlpools-client/accounts/WhirlpoolsConfigExtension.ts +107 -0
- package/src/whirlpools-client/accounts/index.ts +22 -0
- package/src/whirlpools-client/errors/anchor.ts +773 -0
- package/src/whirlpools-client/errors/custom.ts +773 -0
- package/src/whirlpools-client/errors/index.ts +62 -0
- package/src/whirlpools-client/index.ts +4 -0
- package/src/whirlpools-client/instructions/closeBundledPosition.ts +52 -0
- package/src/whirlpools-client/instructions/closePosition.ts +36 -0
- package/src/whirlpools-client/instructions/collectFees.ts +42 -0
- package/src/whirlpools-client/instructions/collectFeesV2.ts +71 -0
- package/src/whirlpools-client/instructions/collectProtocolFees.ts +40 -0
- package/src/whirlpools-client/instructions/collectProtocolFeesV2.ts +69 -0
- package/src/whirlpools-client/instructions/collectReward.ts +52 -0
- package/src/whirlpools-client/instructions/collectRewardV2.ts +66 -0
- package/src/whirlpools-client/instructions/decreaseLiquidity.ts +68 -0
- package/src/whirlpools-client/instructions/decreaseLiquidityV2.ts +84 -0
- package/src/whirlpools-client/instructions/deletePositionBundle.ts +36 -0
- package/src/whirlpools-client/instructions/deleteTokenBadge.ts +36 -0
- package/src/whirlpools-client/instructions/increaseLiquidity.ts +68 -0
- package/src/whirlpools-client/instructions/increaseLiquidityV2.ts +84 -0
- package/src/whirlpools-client/instructions/index.ts +161 -0
- package/src/whirlpools-client/instructions/initializeConfig.ts +51 -0
- package/src/whirlpools-client/instructions/initializeConfigExtension.ts +30 -0
- package/src/whirlpools-client/instructions/initializeFeeTier.ts +49 -0
- package/src/whirlpools-client/instructions/initializePool.ts +64 -0
- package/src/whirlpools-client/instructions/initializePoolV2.ts +67 -0
- package/src/whirlpools-client/instructions/initializePositionBundle.ts +50 -0
- package/src/whirlpools-client/instructions/initializePositionBundleWithMetadata.ts +60 -0
- package/src/whirlpools-client/instructions/initializeReward.ts +50 -0
- package/src/whirlpools-client/instructions/initializeRewardV2.ts +52 -0
- package/src/whirlpools-client/instructions/initializeTickArray.ts +42 -0
- package/src/whirlpools-client/instructions/initializeTokenBadge.ts +38 -0
- package/src/whirlpools-client/instructions/openBundledPosition.ts +66 -0
- package/src/whirlpools-client/instructions/openPosition.ts +70 -0
- package/src/whirlpools-client/instructions/openPositionWithMetadata.ts +80 -0
- package/src/whirlpools-client/instructions/setCollectProtocolFeesAuthority.ts +34 -0
- package/src/whirlpools-client/instructions/setConfigExtensionAuthority.ts +40 -0
- package/src/whirlpools-client/instructions/setDefaultFeeRate.ts +40 -0
- package/src/whirlpools-client/instructions/setDefaultProtocolFeeRate.ts +38 -0
- package/src/whirlpools-client/instructions/setFeeAuthority.ts +26 -0
- package/src/whirlpools-client/instructions/setFeeRate.ts +40 -0
- package/src/whirlpools-client/instructions/setProtocolFeeRate.ts +40 -0
- package/src/whirlpools-client/instructions/setRewardAuthority.ts +40 -0
- package/src/whirlpools-client/instructions/setRewardAuthorityBySuperAuthority.ts +46 -0
- package/src/whirlpools-client/instructions/setRewardEmissions.ts +45 -0
- package/src/whirlpools-client/instructions/setRewardEmissionsSuperAuthority.ts +34 -0
- package/src/whirlpools-client/instructions/setRewardEmissionsV2.ts +45 -0
- package/src/whirlpools-client/instructions/setTokenBadgeAuthority.ts +40 -0
- package/src/whirlpools-client/instructions/swap.ts +70 -0
- package/src/whirlpools-client/instructions/swapV2.ts +86 -0
- package/src/whirlpools-client/instructions/twoHopSwap.ts +110 -0
- package/src/whirlpools-client/instructions/twoHopSwapV2.ts +134 -0
- package/src/whirlpools-client/instructions/updateFeesAndRewards.ts +28 -0
- package/src/whirlpools-client/programId.ts +14 -0
- package/src/whirlpools-client/shim/remove-liquidity.ts +129 -0
- package/src/whirlpools-client/types/AccountsType.ts +208 -0
- package/src/whirlpools-client/types/CurrIndex.ts +118 -0
- package/src/whirlpools-client/types/Direction.ts +88 -0
- package/src/whirlpools-client/types/OpenPositionBumps.ts +53 -0
- package/src/whirlpools-client/types/OpenPositionWithMetadataBumps.ts +66 -0
- package/src/whirlpools-client/types/PositionRewardInfo.ts +64 -0
- package/src/whirlpools-client/types/RemainingAccountsInfo.ts +66 -0
- package/src/whirlpools-client/types/RemainingAccountsSlice.ts +64 -0
- package/src/whirlpools-client/types/Tick.ts +107 -0
- package/src/whirlpools-client/types/TickLabel.ts +88 -0
- package/src/whirlpools-client/types/WhirlpoolBumps.ts +53 -0
- package/src/whirlpools-client/types/WhirlpoolRewardInfo.ts +94 -0
- package/src/whirlpools-client/types/index.ts +73 -0
|
@@ -6,1732 +6,1889 @@ exports.RewardVaultOverrideNotAllowed = exports.InvalidBPSValue = exports.Unsupp
|
|
|
6
6
|
exports.UnsupportedDexForToken22 = exports.UnsupportedTokenExtension = exports.RepeatedMint = exports.ProvidedRewardVaultMismatch = exports.ChangingPoolRewardMintMismatch = exports.EmptyTreasury = exports.ComputeFeesAndRewardsInvalidReward = void 0;
|
|
7
7
|
exports.fromCode = fromCode;
|
|
8
8
|
class IntegerOverflow extends Error {
|
|
9
|
+
logs;
|
|
10
|
+
static code = 6000;
|
|
11
|
+
code = 6000;
|
|
12
|
+
name = "IntegerOverflow";
|
|
13
|
+
msg = "Integer overflow";
|
|
9
14
|
constructor(logs) {
|
|
10
15
|
super("6000: Integer overflow");
|
|
11
16
|
this.logs = logs;
|
|
12
|
-
this.code = 6000;
|
|
13
|
-
this.name = "IntegerOverflow";
|
|
14
|
-
this.msg = "Integer overflow";
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
exports.IntegerOverflow = IntegerOverflow;
|
|
18
|
-
IntegerOverflow.code = 6000;
|
|
19
20
|
class OperationForbidden extends Error {
|
|
21
|
+
logs;
|
|
22
|
+
static code = 6001;
|
|
23
|
+
code = 6001;
|
|
24
|
+
name = "OperationForbidden";
|
|
25
|
+
msg = "Operation Forbidden";
|
|
20
26
|
constructor(logs) {
|
|
21
27
|
super("6001: Operation Forbidden");
|
|
22
28
|
this.logs = logs;
|
|
23
|
-
this.code = 6001;
|
|
24
|
-
this.name = "OperationForbidden";
|
|
25
|
-
this.msg = "Operation Forbidden";
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
exports.OperationForbidden = OperationForbidden;
|
|
29
|
-
OperationForbidden.code = 6001;
|
|
30
32
|
class ZeroAmount extends Error {
|
|
33
|
+
logs;
|
|
34
|
+
static code = 6002;
|
|
35
|
+
code = 6002;
|
|
36
|
+
name = "ZeroAmount";
|
|
37
|
+
msg = "[DEPRECATED] Zero amount";
|
|
31
38
|
constructor(logs) {
|
|
32
39
|
super("6002: [DEPRECATED] Zero amount");
|
|
33
40
|
this.logs = logs;
|
|
34
|
-
this.code = 6002;
|
|
35
|
-
this.name = "ZeroAmount";
|
|
36
|
-
this.msg = "[DEPRECATED] Zero amount";
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
exports.ZeroAmount = ZeroAmount;
|
|
40
|
-
ZeroAmount.code = 6002;
|
|
41
44
|
class UnableToDeserializeAccount extends Error {
|
|
45
|
+
logs;
|
|
46
|
+
static code = 6003;
|
|
47
|
+
code = 6003;
|
|
48
|
+
name = "UnableToDeserializeAccount";
|
|
49
|
+
msg = "Unable to deserialize account";
|
|
42
50
|
constructor(logs) {
|
|
43
51
|
super("6003: Unable to deserialize account");
|
|
44
52
|
this.logs = logs;
|
|
45
|
-
this.code = 6003;
|
|
46
|
-
this.name = "UnableToDeserializeAccount";
|
|
47
|
-
this.msg = "Unable to deserialize account";
|
|
48
53
|
}
|
|
49
54
|
}
|
|
50
55
|
exports.UnableToDeserializeAccount = UnableToDeserializeAccount;
|
|
51
|
-
UnableToDeserializeAccount.code = 6003;
|
|
52
56
|
class VaultBalanceDoesNotMatchTokenA extends Error {
|
|
57
|
+
logs;
|
|
58
|
+
static code = 6004;
|
|
59
|
+
code = 6004;
|
|
60
|
+
name = "VaultBalanceDoesNotMatchTokenA";
|
|
61
|
+
msg = "[DEPRECATED] Vault balance does not match for token A";
|
|
53
62
|
constructor(logs) {
|
|
54
63
|
super("6004: [DEPRECATED] Vault balance does not match for token A");
|
|
55
64
|
this.logs = logs;
|
|
56
|
-
this.code = 6004;
|
|
57
|
-
this.name = "VaultBalanceDoesNotMatchTokenA";
|
|
58
|
-
this.msg = "[DEPRECATED] Vault balance does not match for token A";
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
exports.VaultBalanceDoesNotMatchTokenA = VaultBalanceDoesNotMatchTokenA;
|
|
62
|
-
VaultBalanceDoesNotMatchTokenA.code = 6004;
|
|
63
68
|
class VaultBalanceDoesNotMatchTokenB extends Error {
|
|
69
|
+
logs;
|
|
70
|
+
static code = 6005;
|
|
71
|
+
code = 6005;
|
|
72
|
+
name = "VaultBalanceDoesNotMatchTokenB";
|
|
73
|
+
msg = "[DEPRECATED] Vault balance does not match for token B";
|
|
64
74
|
constructor(logs) {
|
|
65
75
|
super("6005: [DEPRECATED] Vault balance does not match for token B");
|
|
66
76
|
this.logs = logs;
|
|
67
|
-
this.code = 6005;
|
|
68
|
-
this.name = "VaultBalanceDoesNotMatchTokenB";
|
|
69
|
-
this.msg = "[DEPRECATED] Vault balance does not match for token B";
|
|
70
77
|
}
|
|
71
78
|
}
|
|
72
79
|
exports.VaultBalanceDoesNotMatchTokenB = VaultBalanceDoesNotMatchTokenB;
|
|
73
|
-
VaultBalanceDoesNotMatchTokenB.code = 6005;
|
|
74
80
|
class SharesIssuedAmountDoesNotMatch extends Error {
|
|
81
|
+
logs;
|
|
82
|
+
static code = 6006;
|
|
83
|
+
code = 6006;
|
|
84
|
+
name = "SharesIssuedAmountDoesNotMatch";
|
|
85
|
+
msg = "[DEPRECATED] Shares issued amount does not match";
|
|
75
86
|
constructor(logs) {
|
|
76
87
|
super("6006: [DEPRECATED] Shares issued amount does not match");
|
|
77
88
|
this.logs = logs;
|
|
78
|
-
this.code = 6006;
|
|
79
|
-
this.name = "SharesIssuedAmountDoesNotMatch";
|
|
80
|
-
this.msg = "[DEPRECATED] Shares issued amount does not match";
|
|
81
89
|
}
|
|
82
90
|
}
|
|
83
91
|
exports.SharesIssuedAmountDoesNotMatch = SharesIssuedAmountDoesNotMatch;
|
|
84
|
-
SharesIssuedAmountDoesNotMatch.code = 6006;
|
|
85
92
|
class GlobalConfigKeyError extends Error {
|
|
93
|
+
logs;
|
|
94
|
+
static code = 6007;
|
|
95
|
+
code = 6007;
|
|
96
|
+
name = "GlobalConfigKeyError";
|
|
97
|
+
msg = "Key is not present in global config";
|
|
86
98
|
constructor(logs) {
|
|
87
99
|
super("6007: Key is not present in global config");
|
|
88
100
|
this.logs = logs;
|
|
89
|
-
this.code = 6007;
|
|
90
|
-
this.name = "GlobalConfigKeyError";
|
|
91
|
-
this.msg = "Key is not present in global config";
|
|
92
101
|
}
|
|
93
102
|
}
|
|
94
103
|
exports.GlobalConfigKeyError = GlobalConfigKeyError;
|
|
95
|
-
GlobalConfigKeyError.code = 6007;
|
|
96
104
|
class SystemInEmergencyMode extends Error {
|
|
105
|
+
logs;
|
|
106
|
+
static code = 6008;
|
|
107
|
+
code = 6008;
|
|
108
|
+
name = "SystemInEmergencyMode";
|
|
109
|
+
msg = "[DEPRECATED] System is in emergency mode";
|
|
97
110
|
constructor(logs) {
|
|
98
111
|
super("6008: [DEPRECATED] System is in emergency mode");
|
|
99
112
|
this.logs = logs;
|
|
100
|
-
this.code = 6008;
|
|
101
|
-
this.name = "SystemInEmergencyMode";
|
|
102
|
-
this.msg = "[DEPRECATED] System is in emergency mode";
|
|
103
113
|
}
|
|
104
114
|
}
|
|
105
115
|
exports.SystemInEmergencyMode = SystemInEmergencyMode;
|
|
106
|
-
SystemInEmergencyMode.code = 6008;
|
|
107
116
|
class GlobalDepositBlocked extends Error {
|
|
117
|
+
logs;
|
|
118
|
+
static code = 6009;
|
|
119
|
+
code = 6009;
|
|
120
|
+
name = "GlobalDepositBlocked";
|
|
121
|
+
msg = "Global deposit is currently blocked";
|
|
108
122
|
constructor(logs) {
|
|
109
123
|
super("6009: Global deposit is currently blocked");
|
|
110
124
|
this.logs = logs;
|
|
111
|
-
this.code = 6009;
|
|
112
|
-
this.name = "GlobalDepositBlocked";
|
|
113
|
-
this.msg = "Global deposit is currently blocked";
|
|
114
125
|
}
|
|
115
126
|
}
|
|
116
127
|
exports.GlobalDepositBlocked = GlobalDepositBlocked;
|
|
117
|
-
GlobalDepositBlocked.code = 6009;
|
|
118
128
|
class GlobalWithdrawBlocked extends Error {
|
|
129
|
+
logs;
|
|
130
|
+
static code = 6010;
|
|
131
|
+
code = 6010;
|
|
132
|
+
name = "GlobalWithdrawBlocked";
|
|
133
|
+
msg = "Global withdraw is currently blocked";
|
|
119
134
|
constructor(logs) {
|
|
120
135
|
super("6010: Global withdraw is currently blocked");
|
|
121
136
|
this.logs = logs;
|
|
122
|
-
this.code = 6010;
|
|
123
|
-
this.name = "GlobalWithdrawBlocked";
|
|
124
|
-
this.msg = "Global withdraw is currently blocked";
|
|
125
137
|
}
|
|
126
138
|
}
|
|
127
139
|
exports.GlobalWithdrawBlocked = GlobalWithdrawBlocked;
|
|
128
|
-
GlobalWithdrawBlocked.code = 6010;
|
|
129
140
|
class GlobalInvestBlocked extends Error {
|
|
141
|
+
logs;
|
|
142
|
+
static code = 6011;
|
|
143
|
+
code = 6011;
|
|
144
|
+
name = "GlobalInvestBlocked";
|
|
145
|
+
msg = "Global invest is currently blocked";
|
|
130
146
|
constructor(logs) {
|
|
131
147
|
super("6011: Global invest is currently blocked");
|
|
132
148
|
this.logs = logs;
|
|
133
|
-
this.code = 6011;
|
|
134
|
-
this.name = "GlobalInvestBlocked";
|
|
135
|
-
this.msg = "Global invest is currently blocked";
|
|
136
149
|
}
|
|
137
150
|
}
|
|
138
151
|
exports.GlobalInvestBlocked = GlobalInvestBlocked;
|
|
139
|
-
GlobalInvestBlocked.code = 6011;
|
|
140
152
|
class OutOfRangeIntegralConversion extends Error {
|
|
153
|
+
logs;
|
|
154
|
+
static code = 6012;
|
|
155
|
+
code = 6012;
|
|
156
|
+
name = "OutOfRangeIntegralConversion";
|
|
157
|
+
msg = "Out of range integral conversion attempted";
|
|
141
158
|
constructor(logs) {
|
|
142
159
|
super("6012: Out of range integral conversion attempted");
|
|
143
160
|
this.logs = logs;
|
|
144
|
-
this.code = 6012;
|
|
145
|
-
this.name = "OutOfRangeIntegralConversion";
|
|
146
|
-
this.msg = "Out of range integral conversion attempted";
|
|
147
161
|
}
|
|
148
162
|
}
|
|
149
163
|
exports.OutOfRangeIntegralConversion = OutOfRangeIntegralConversion;
|
|
150
|
-
OutOfRangeIntegralConversion.code = 6012;
|
|
151
164
|
class MathOverflow extends Error {
|
|
165
|
+
logs;
|
|
166
|
+
static code = 6013;
|
|
167
|
+
code = 6013;
|
|
168
|
+
name = "MathOverflow";
|
|
169
|
+
msg = "[DEPRECATED] Mathematical operation with overflow";
|
|
152
170
|
constructor(logs) {
|
|
153
171
|
super("6013: [DEPRECATED] Mathematical operation with overflow");
|
|
154
172
|
this.logs = logs;
|
|
155
|
-
this.code = 6013;
|
|
156
|
-
this.name = "MathOverflow";
|
|
157
|
-
this.msg = "[DEPRECATED] Mathematical operation with overflow";
|
|
158
173
|
}
|
|
159
174
|
}
|
|
160
175
|
exports.MathOverflow = MathOverflow;
|
|
161
|
-
MathOverflow.code = 6013;
|
|
162
176
|
class TooMuchLiquidityToWithdraw extends Error {
|
|
177
|
+
logs;
|
|
178
|
+
static code = 6014;
|
|
179
|
+
code = 6014;
|
|
180
|
+
name = "TooMuchLiquidityToWithdraw";
|
|
181
|
+
msg = "Unable to withdraw more liquidity than available in position";
|
|
163
182
|
constructor(logs) {
|
|
164
183
|
super("6014: Unable to withdraw more liquidity than available in position");
|
|
165
184
|
this.logs = logs;
|
|
166
|
-
this.code = 6014;
|
|
167
|
-
this.name = "TooMuchLiquidityToWithdraw";
|
|
168
|
-
this.msg = "Unable to withdraw more liquidity than available in position";
|
|
169
185
|
}
|
|
170
186
|
}
|
|
171
187
|
exports.TooMuchLiquidityToWithdraw = TooMuchLiquidityToWithdraw;
|
|
172
|
-
TooMuchLiquidityToWithdraw.code = 6014;
|
|
173
188
|
class DepositAmountsZero extends Error {
|
|
189
|
+
logs;
|
|
190
|
+
static code = 6015;
|
|
191
|
+
code = 6015;
|
|
192
|
+
name = "DepositAmountsZero";
|
|
193
|
+
msg = "Deposit amounts must be greater than zero";
|
|
174
194
|
constructor(logs) {
|
|
175
195
|
super("6015: Deposit amounts must be greater than zero");
|
|
176
196
|
this.logs = logs;
|
|
177
|
-
this.code = 6015;
|
|
178
|
-
this.name = "DepositAmountsZero";
|
|
179
|
-
this.msg = "Deposit amounts must be greater than zero";
|
|
180
197
|
}
|
|
181
198
|
}
|
|
182
199
|
exports.DepositAmountsZero = DepositAmountsZero;
|
|
183
|
-
DepositAmountsZero.code = 6015;
|
|
184
200
|
class SharesZero extends Error {
|
|
201
|
+
logs;
|
|
202
|
+
static code = 6016;
|
|
203
|
+
code = 6016;
|
|
204
|
+
name = "SharesZero";
|
|
205
|
+
msg = "Number of shares to withdraw must be greater than zero";
|
|
185
206
|
constructor(logs) {
|
|
186
207
|
super("6016: Number of shares to withdraw must be greater than zero");
|
|
187
208
|
this.logs = logs;
|
|
188
|
-
this.code = 6016;
|
|
189
|
-
this.name = "SharesZero";
|
|
190
|
-
this.msg = "Number of shares to withdraw must be greater than zero";
|
|
191
209
|
}
|
|
192
210
|
}
|
|
193
211
|
exports.SharesZero = SharesZero;
|
|
194
|
-
SharesZero.code = 6016;
|
|
195
212
|
class StrategyNotActive extends Error {
|
|
213
|
+
logs;
|
|
214
|
+
static code = 6017;
|
|
215
|
+
code = 6017;
|
|
216
|
+
name = "StrategyNotActive";
|
|
217
|
+
msg = "Strategy not active";
|
|
196
218
|
constructor(logs) {
|
|
197
219
|
super("6017: Strategy not active");
|
|
198
220
|
this.logs = logs;
|
|
199
|
-
this.code = 6017;
|
|
200
|
-
this.name = "StrategyNotActive";
|
|
201
|
-
this.msg = "Strategy not active";
|
|
202
221
|
}
|
|
203
222
|
}
|
|
204
223
|
exports.StrategyNotActive = StrategyNotActive;
|
|
205
|
-
StrategyNotActive.code = 6017;
|
|
206
224
|
class UnharvestedAmounts extends Error {
|
|
225
|
+
logs;
|
|
226
|
+
static code = 6018;
|
|
227
|
+
code = 6018;
|
|
228
|
+
name = "UnharvestedAmounts";
|
|
229
|
+
msg = "There are unharvested gains";
|
|
207
230
|
constructor(logs) {
|
|
208
231
|
super("6018: There are unharvested gains");
|
|
209
232
|
this.logs = logs;
|
|
210
|
-
this.code = 6018;
|
|
211
|
-
this.name = "UnharvestedAmounts";
|
|
212
|
-
this.msg = "There are unharvested gains";
|
|
213
233
|
}
|
|
214
234
|
}
|
|
215
235
|
exports.UnharvestedAmounts = UnharvestedAmounts;
|
|
216
|
-
UnharvestedAmounts.code = 6018;
|
|
217
236
|
class InvalidRewardMapping extends Error {
|
|
237
|
+
logs;
|
|
238
|
+
static code = 6019;
|
|
239
|
+
code = 6019;
|
|
240
|
+
name = "InvalidRewardMapping";
|
|
241
|
+
msg = "Reward mapping incorrect";
|
|
218
242
|
constructor(logs) {
|
|
219
243
|
super("6019: Reward mapping incorrect");
|
|
220
244
|
this.logs = logs;
|
|
221
|
-
this.code = 6019;
|
|
222
|
-
this.name = "InvalidRewardMapping";
|
|
223
|
-
this.msg = "Reward mapping incorrect";
|
|
224
245
|
}
|
|
225
246
|
}
|
|
226
247
|
exports.InvalidRewardMapping = InvalidRewardMapping;
|
|
227
|
-
InvalidRewardMapping.code = 6019;
|
|
228
248
|
class InvalidRewardIndex extends Error {
|
|
249
|
+
logs;
|
|
250
|
+
static code = 6020;
|
|
251
|
+
code = 6020;
|
|
252
|
+
name = "InvalidRewardIndex";
|
|
253
|
+
msg = "Reward index incorrect";
|
|
229
254
|
constructor(logs) {
|
|
230
255
|
super("6020: Reward index incorrect");
|
|
231
256
|
this.logs = logs;
|
|
232
|
-
this.code = 6020;
|
|
233
|
-
this.name = "InvalidRewardIndex";
|
|
234
|
-
this.msg = "Reward index incorrect";
|
|
235
257
|
}
|
|
236
258
|
}
|
|
237
259
|
exports.InvalidRewardIndex = InvalidRewardIndex;
|
|
238
|
-
InvalidRewardIndex.code = 6020;
|
|
239
260
|
class OwnRewardUninitialized extends Error {
|
|
261
|
+
logs;
|
|
262
|
+
static code = 6021;
|
|
263
|
+
code = 6021;
|
|
264
|
+
name = "OwnRewardUninitialized";
|
|
265
|
+
msg = "Cannot use uninitialized reward vault";
|
|
240
266
|
constructor(logs) {
|
|
241
267
|
super("6021: Cannot use uninitialized reward vault");
|
|
242
268
|
this.logs = logs;
|
|
243
|
-
this.code = 6021;
|
|
244
|
-
this.name = "OwnRewardUninitialized";
|
|
245
|
-
this.msg = "Cannot use uninitialized reward vault";
|
|
246
269
|
}
|
|
247
270
|
}
|
|
248
271
|
exports.OwnRewardUninitialized = OwnRewardUninitialized;
|
|
249
|
-
OwnRewardUninitialized.code = 6021;
|
|
250
272
|
class PriceNotValid extends Error {
|
|
273
|
+
logs;
|
|
274
|
+
static code = 6022;
|
|
275
|
+
code = 6022;
|
|
276
|
+
name = "PriceNotValid";
|
|
277
|
+
msg = "Price is not valid";
|
|
251
278
|
constructor(logs) {
|
|
252
279
|
super("6022: Price is not valid");
|
|
253
280
|
this.logs = logs;
|
|
254
|
-
this.code = 6022;
|
|
255
|
-
this.name = "PriceNotValid";
|
|
256
|
-
this.msg = "Price is not valid";
|
|
257
281
|
}
|
|
258
282
|
}
|
|
259
283
|
exports.PriceNotValid = PriceNotValid;
|
|
260
|
-
PriceNotValid.code = 6022;
|
|
261
284
|
class SwapRewardImbalanced extends Error {
|
|
285
|
+
logs;
|
|
286
|
+
static code = 6023;
|
|
287
|
+
code = 6023;
|
|
288
|
+
name = "SwapRewardImbalanced";
|
|
289
|
+
msg = "Must provide almost equal amounts of tokens";
|
|
262
290
|
constructor(logs) {
|
|
263
291
|
super("6023: Must provide almost equal amounts of tokens");
|
|
264
292
|
this.logs = logs;
|
|
265
|
-
this.code = 6023;
|
|
266
|
-
this.name = "SwapRewardImbalanced";
|
|
267
|
-
this.msg = "Must provide almost equal amounts of tokens";
|
|
268
293
|
}
|
|
269
294
|
}
|
|
270
295
|
exports.SwapRewardImbalanced = SwapRewardImbalanced;
|
|
271
|
-
SwapRewardImbalanced.code = 6023;
|
|
272
296
|
class SwapRewardTooSmall extends Error {
|
|
297
|
+
logs;
|
|
298
|
+
static code = 6024;
|
|
299
|
+
code = 6024;
|
|
300
|
+
name = "SwapRewardTooSmall";
|
|
301
|
+
msg = "Swap reward is zero or less than requested";
|
|
273
302
|
constructor(logs) {
|
|
274
303
|
super("6024: Swap reward is zero or less than requested");
|
|
275
304
|
this.logs = logs;
|
|
276
|
-
this.code = 6024;
|
|
277
|
-
this.name = "SwapRewardTooSmall";
|
|
278
|
-
this.msg = "Swap reward is zero or less than requested";
|
|
279
305
|
}
|
|
280
306
|
}
|
|
281
307
|
exports.SwapRewardTooSmall = SwapRewardTooSmall;
|
|
282
|
-
SwapRewardTooSmall.code = 6024;
|
|
283
308
|
class SwapRewardLessThanRequested extends Error {
|
|
309
|
+
logs;
|
|
310
|
+
static code = 6025;
|
|
311
|
+
code = 6025;
|
|
312
|
+
name = "SwapRewardLessThanRequested";
|
|
313
|
+
msg = "Swap reward is less than what user requested as minimum";
|
|
284
314
|
constructor(logs) {
|
|
285
315
|
super("6025: Swap reward is less than what user requested as minimum");
|
|
286
316
|
this.logs = logs;
|
|
287
|
-
this.code = 6025;
|
|
288
|
-
this.name = "SwapRewardLessThanRequested";
|
|
289
|
-
this.msg = "Swap reward is less than what user requested as minimum";
|
|
290
317
|
}
|
|
291
318
|
}
|
|
292
319
|
exports.SwapRewardLessThanRequested = SwapRewardLessThanRequested;
|
|
293
|
-
SwapRewardLessThanRequested.code = 6025;
|
|
294
320
|
class SwapRewardLessThanMinimum extends Error {
|
|
321
|
+
logs;
|
|
322
|
+
static code = 6026;
|
|
323
|
+
code = 6026;
|
|
324
|
+
name = "SwapRewardLessThanMinimum";
|
|
325
|
+
msg = "Swap reward is less than minimum acceptable";
|
|
295
326
|
constructor(logs) {
|
|
296
327
|
super("6026: Swap reward is less than minimum acceptable");
|
|
297
328
|
this.logs = logs;
|
|
298
|
-
this.code = 6026;
|
|
299
|
-
this.name = "SwapRewardLessThanMinimum";
|
|
300
|
-
this.msg = "Swap reward is less than minimum acceptable";
|
|
301
329
|
}
|
|
302
330
|
}
|
|
303
331
|
exports.SwapRewardLessThanMinimum = SwapRewardLessThanMinimum;
|
|
304
|
-
SwapRewardLessThanMinimum.code = 6026;
|
|
305
332
|
class WrongDiscriminator extends Error {
|
|
333
|
+
logs;
|
|
334
|
+
static code = 6027;
|
|
335
|
+
code = 6027;
|
|
336
|
+
name = "WrongDiscriminator";
|
|
337
|
+
msg = "Wrong discriminator";
|
|
306
338
|
constructor(logs) {
|
|
307
339
|
super("6027: Wrong discriminator");
|
|
308
340
|
this.logs = logs;
|
|
309
|
-
this.code = 6027;
|
|
310
|
-
this.name = "WrongDiscriminator";
|
|
311
|
-
this.msg = "Wrong discriminator";
|
|
312
341
|
}
|
|
313
342
|
}
|
|
314
343
|
exports.WrongDiscriminator = WrongDiscriminator;
|
|
315
|
-
WrongDiscriminator.code = 6027;
|
|
316
344
|
class WrongMint extends Error {
|
|
345
|
+
logs;
|
|
346
|
+
static code = 6028;
|
|
347
|
+
code = 6028;
|
|
348
|
+
name = "WrongMint";
|
|
349
|
+
msg = "Wrong mint";
|
|
317
350
|
constructor(logs) {
|
|
318
351
|
super("6028: Wrong mint");
|
|
319
352
|
this.logs = logs;
|
|
320
|
-
this.code = 6028;
|
|
321
|
-
this.name = "WrongMint";
|
|
322
|
-
this.msg = "Wrong mint";
|
|
323
353
|
}
|
|
324
354
|
}
|
|
325
355
|
exports.WrongMint = WrongMint;
|
|
326
|
-
WrongMint.code = 6028;
|
|
327
356
|
class WrongVault extends Error {
|
|
357
|
+
logs;
|
|
358
|
+
static code = 6029;
|
|
359
|
+
code = 6029;
|
|
360
|
+
name = "WrongVault";
|
|
361
|
+
msg = "Wrong vault";
|
|
328
362
|
constructor(logs) {
|
|
329
363
|
super("6029: Wrong vault");
|
|
330
364
|
this.logs = logs;
|
|
331
|
-
this.code = 6029;
|
|
332
|
-
this.name = "WrongVault";
|
|
333
|
-
this.msg = "Wrong vault";
|
|
334
365
|
}
|
|
335
366
|
}
|
|
336
367
|
exports.WrongVault = WrongVault;
|
|
337
|
-
WrongVault.code = 6029;
|
|
338
368
|
class SwapAmountsZero extends Error {
|
|
369
|
+
logs;
|
|
370
|
+
static code = 6030;
|
|
371
|
+
code = 6030;
|
|
372
|
+
name = "SwapAmountsZero";
|
|
373
|
+
msg = "Swap amounts must be greater than zero";
|
|
339
374
|
constructor(logs) {
|
|
340
375
|
super("6030: Swap amounts must be greater than zero");
|
|
341
376
|
this.logs = logs;
|
|
342
|
-
this.code = 6030;
|
|
343
|
-
this.name = "SwapAmountsZero";
|
|
344
|
-
this.msg = "Swap amounts must be greater than zero";
|
|
345
377
|
}
|
|
346
378
|
}
|
|
347
379
|
exports.SwapAmountsZero = SwapAmountsZero;
|
|
348
|
-
SwapAmountsZero.code = 6030;
|
|
349
380
|
class PriceTooOld extends Error {
|
|
381
|
+
logs;
|
|
382
|
+
static code = 6031;
|
|
383
|
+
code = 6031;
|
|
384
|
+
name = "PriceTooOld";
|
|
385
|
+
msg = "Price too old";
|
|
350
386
|
constructor(logs) {
|
|
351
387
|
super("6031: Price too old");
|
|
352
388
|
this.logs = logs;
|
|
353
|
-
this.code = 6031;
|
|
354
|
-
this.name = "PriceTooOld";
|
|
355
|
-
this.msg = "Price too old";
|
|
356
389
|
}
|
|
357
390
|
}
|
|
358
391
|
exports.PriceTooOld = PriceTooOld;
|
|
359
|
-
PriceTooOld.code = 6031;
|
|
360
392
|
class CannotInvestZeroAmount extends Error {
|
|
393
|
+
logs;
|
|
394
|
+
static code = 6032;
|
|
395
|
+
code = 6032;
|
|
396
|
+
name = "CannotInvestZeroAmount";
|
|
397
|
+
msg = "Cannot invest zero amount";
|
|
361
398
|
constructor(logs) {
|
|
362
399
|
super("6032: Cannot invest zero amount");
|
|
363
400
|
this.logs = logs;
|
|
364
|
-
this.code = 6032;
|
|
365
|
-
this.name = "CannotInvestZeroAmount";
|
|
366
|
-
this.msg = "Cannot invest zero amount";
|
|
367
401
|
}
|
|
368
402
|
}
|
|
369
403
|
exports.CannotInvestZeroAmount = CannotInvestZeroAmount;
|
|
370
|
-
CannotInvestZeroAmount.code = 6032;
|
|
371
404
|
class MaxInvestableZero extends Error {
|
|
405
|
+
logs;
|
|
406
|
+
static code = 6033;
|
|
407
|
+
code = 6033;
|
|
408
|
+
name = "MaxInvestableZero";
|
|
409
|
+
msg = "Cannot have zero investable amount";
|
|
372
410
|
constructor(logs) {
|
|
373
411
|
super("6033: Cannot have zero investable amount");
|
|
374
412
|
this.logs = logs;
|
|
375
|
-
this.code = 6033;
|
|
376
|
-
this.name = "MaxInvestableZero";
|
|
377
|
-
this.msg = "Cannot have zero investable amount";
|
|
378
413
|
}
|
|
379
414
|
}
|
|
380
415
|
exports.MaxInvestableZero = MaxInvestableZero;
|
|
381
|
-
MaxInvestableZero.code = 6033;
|
|
382
416
|
class CollectFeesBlocked extends Error {
|
|
417
|
+
logs;
|
|
418
|
+
static code = 6034;
|
|
419
|
+
code = 6034;
|
|
420
|
+
name = "CollectFeesBlocked";
|
|
421
|
+
msg = "Collect fees is blocked";
|
|
383
422
|
constructor(logs) {
|
|
384
423
|
super("6034: Collect fees is blocked");
|
|
385
424
|
this.logs = logs;
|
|
386
|
-
this.code = 6034;
|
|
387
|
-
this.name = "CollectFeesBlocked";
|
|
388
|
-
this.msg = "Collect fees is blocked";
|
|
389
425
|
}
|
|
390
426
|
}
|
|
391
427
|
exports.CollectFeesBlocked = CollectFeesBlocked;
|
|
392
|
-
CollectFeesBlocked.code = 6034;
|
|
393
428
|
class CollectRewardsBlocked extends Error {
|
|
429
|
+
logs;
|
|
430
|
+
static code = 6035;
|
|
431
|
+
code = 6035;
|
|
432
|
+
name = "CollectRewardsBlocked";
|
|
433
|
+
msg = "Collect rewards is blocked";
|
|
394
434
|
constructor(logs) {
|
|
395
435
|
super("6035: Collect rewards is blocked");
|
|
396
436
|
this.logs = logs;
|
|
397
|
-
this.code = 6035;
|
|
398
|
-
this.name = "CollectRewardsBlocked";
|
|
399
|
-
this.msg = "Collect rewards is blocked";
|
|
400
437
|
}
|
|
401
438
|
}
|
|
402
439
|
exports.CollectRewardsBlocked = CollectRewardsBlocked;
|
|
403
|
-
CollectRewardsBlocked.code = 6035;
|
|
404
440
|
class SwapRewardsBlocked extends Error {
|
|
441
|
+
logs;
|
|
442
|
+
static code = 6036;
|
|
443
|
+
code = 6036;
|
|
444
|
+
name = "SwapRewardsBlocked";
|
|
445
|
+
msg = "Swap rewards is blocked";
|
|
405
446
|
constructor(logs) {
|
|
406
447
|
super("6036: Swap rewards is blocked");
|
|
407
448
|
this.logs = logs;
|
|
408
|
-
this.code = 6036;
|
|
409
|
-
this.name = "SwapRewardsBlocked";
|
|
410
|
-
this.msg = "Swap rewards is blocked";
|
|
411
449
|
}
|
|
412
450
|
}
|
|
413
451
|
exports.SwapRewardsBlocked = SwapRewardsBlocked;
|
|
414
|
-
SwapRewardsBlocked.code = 6036;
|
|
415
452
|
class WrongRewardCollateralID extends Error {
|
|
453
|
+
logs;
|
|
454
|
+
static code = 6037;
|
|
455
|
+
code = 6037;
|
|
456
|
+
name = "WrongRewardCollateralID";
|
|
457
|
+
msg = "Reward collateral ID is incorrect for strategy";
|
|
416
458
|
constructor(logs) {
|
|
417
459
|
super("6037: Reward collateral ID is incorrect for strategy");
|
|
418
460
|
this.logs = logs;
|
|
419
|
-
this.code = 6037;
|
|
420
|
-
this.name = "WrongRewardCollateralID";
|
|
421
|
-
this.msg = "Reward collateral ID is incorrect for strategy";
|
|
422
461
|
}
|
|
423
462
|
}
|
|
424
463
|
exports.WrongRewardCollateralID = WrongRewardCollateralID;
|
|
425
|
-
WrongRewardCollateralID.code = 6037;
|
|
426
464
|
class InvalidPositionAccount extends Error {
|
|
465
|
+
logs;
|
|
466
|
+
static code = 6038;
|
|
467
|
+
code = 6038;
|
|
468
|
+
name = "InvalidPositionAccount";
|
|
469
|
+
msg = "Position account doesn't match internal records";
|
|
427
470
|
constructor(logs) {
|
|
428
471
|
super("6038: Position account doesn't match internal records");
|
|
429
472
|
this.logs = logs;
|
|
430
|
-
this.code = 6038;
|
|
431
|
-
this.name = "InvalidPositionAccount";
|
|
432
|
-
this.msg = "Position account doesn't match internal records";
|
|
433
473
|
}
|
|
434
474
|
}
|
|
435
475
|
exports.InvalidPositionAccount = InvalidPositionAccount;
|
|
436
|
-
InvalidPositionAccount.code = 6038;
|
|
437
476
|
class CouldNotDeserializeScope extends Error {
|
|
477
|
+
logs;
|
|
478
|
+
static code = 6039;
|
|
479
|
+
code = 6039;
|
|
480
|
+
name = "CouldNotDeserializeScope";
|
|
481
|
+
msg = "Scope account could not be deserialized";
|
|
438
482
|
constructor(logs) {
|
|
439
483
|
super("6039: Scope account could not be deserialized");
|
|
440
484
|
this.logs = logs;
|
|
441
|
-
this.code = 6039;
|
|
442
|
-
this.name = "CouldNotDeserializeScope";
|
|
443
|
-
this.msg = "Scope account could not be deserialized";
|
|
444
485
|
}
|
|
445
486
|
}
|
|
446
487
|
exports.CouldNotDeserializeScope = CouldNotDeserializeScope;
|
|
447
|
-
CouldNotDeserializeScope.code = 6039;
|
|
448
488
|
class WrongCollateralID extends Error {
|
|
489
|
+
logs;
|
|
490
|
+
static code = 6040;
|
|
491
|
+
code = 6040;
|
|
492
|
+
name = "WrongCollateralID";
|
|
493
|
+
msg = "[DEPRECATED] Collateral ID invalid for strategy";
|
|
449
494
|
constructor(logs) {
|
|
450
495
|
super("6040: [DEPRECATED] Collateral ID invalid for strategy");
|
|
451
496
|
this.logs = logs;
|
|
452
|
-
this.code = 6040;
|
|
453
|
-
this.name = "WrongCollateralID";
|
|
454
|
-
this.msg = "[DEPRECATED] Collateral ID invalid for strategy";
|
|
455
497
|
}
|
|
456
498
|
}
|
|
457
499
|
exports.WrongCollateralID = WrongCollateralID;
|
|
458
|
-
WrongCollateralID.code = 6040;
|
|
459
500
|
class CollateralTokensExceedDepositCap extends Error {
|
|
501
|
+
logs;
|
|
502
|
+
static code = 6041;
|
|
503
|
+
code = 6041;
|
|
504
|
+
name = "CollateralTokensExceedDepositCap";
|
|
505
|
+
msg = "Collaterals exceed deposit cap";
|
|
460
506
|
constructor(logs) {
|
|
461
507
|
super("6041: Collaterals exceed deposit cap");
|
|
462
508
|
this.logs = logs;
|
|
463
|
-
this.code = 6041;
|
|
464
|
-
this.name = "CollateralTokensExceedDepositCap";
|
|
465
|
-
this.msg = "Collaterals exceed deposit cap";
|
|
466
509
|
}
|
|
467
510
|
}
|
|
468
511
|
exports.CollateralTokensExceedDepositCap = CollateralTokensExceedDepositCap;
|
|
469
|
-
CollateralTokensExceedDepositCap.code = 6041;
|
|
470
512
|
class SwapUnevenVaultsBlocked extends Error {
|
|
513
|
+
logs;
|
|
514
|
+
static code = 6042;
|
|
515
|
+
code = 6042;
|
|
516
|
+
name = "SwapUnevenVaultsBlocked";
|
|
517
|
+
msg = "Swap uneven vaults is blocked";
|
|
471
518
|
constructor(logs) {
|
|
472
519
|
super("6042: Swap uneven vaults is blocked");
|
|
473
520
|
this.logs = logs;
|
|
474
|
-
this.code = 6042;
|
|
475
|
-
this.name = "SwapUnevenVaultsBlocked";
|
|
476
|
-
this.msg = "Swap uneven vaults is blocked";
|
|
477
521
|
}
|
|
478
522
|
}
|
|
479
523
|
exports.SwapUnevenVaultsBlocked = SwapUnevenVaultsBlocked;
|
|
480
|
-
SwapUnevenVaultsBlocked.code = 6042;
|
|
481
524
|
class VaultsAreAlreadyBalanced extends Error {
|
|
525
|
+
logs;
|
|
526
|
+
static code = 6043;
|
|
527
|
+
code = 6043;
|
|
528
|
+
name = "VaultsAreAlreadyBalanced";
|
|
529
|
+
msg = "Cannot swap as vaults are already balanced";
|
|
482
530
|
constructor(logs) {
|
|
483
531
|
super("6043: Cannot swap as vaults are already balanced");
|
|
484
532
|
this.logs = logs;
|
|
485
|
-
this.code = 6043;
|
|
486
|
-
this.name = "VaultsAreAlreadyBalanced";
|
|
487
|
-
this.msg = "Cannot swap as vaults are already balanced";
|
|
488
533
|
}
|
|
489
534
|
}
|
|
490
535
|
exports.VaultsAreAlreadyBalanced = VaultsAreAlreadyBalanced;
|
|
491
|
-
VaultsAreAlreadyBalanced.code = 6043;
|
|
492
536
|
class CannotSwapUnevenOutOfRange extends Error {
|
|
537
|
+
logs;
|
|
538
|
+
static code = 6044;
|
|
539
|
+
code = 6044;
|
|
540
|
+
name = "CannotSwapUnevenOutOfRange";
|
|
541
|
+
msg = "Cannot swap uneven vaults when position is out of range";
|
|
493
542
|
constructor(logs) {
|
|
494
543
|
super("6044: Cannot swap uneven vaults when position is out of range");
|
|
495
544
|
this.logs = logs;
|
|
496
|
-
this.code = 6044;
|
|
497
|
-
this.name = "CannotSwapUnevenOutOfRange";
|
|
498
|
-
this.msg = "Cannot swap uneven vaults when position is out of range";
|
|
499
545
|
}
|
|
500
546
|
}
|
|
501
547
|
exports.CannotSwapUnevenOutOfRange = CannotSwapUnevenOutOfRange;
|
|
502
|
-
CannotSwapUnevenOutOfRange.code = 6044;
|
|
503
548
|
class DivideByZero extends Error {
|
|
549
|
+
logs;
|
|
550
|
+
static code = 6045;
|
|
551
|
+
code = 6045;
|
|
552
|
+
name = "DivideByZero";
|
|
553
|
+
msg = "Cannot divide by zero";
|
|
504
554
|
constructor(logs) {
|
|
505
555
|
super("6045: Cannot divide by zero");
|
|
506
556
|
this.logs = logs;
|
|
507
|
-
this.code = 6045;
|
|
508
|
-
this.name = "DivideByZero";
|
|
509
|
-
this.msg = "Cannot divide by zero";
|
|
510
557
|
}
|
|
511
558
|
}
|
|
512
559
|
exports.DivideByZero = DivideByZero;
|
|
513
|
-
DivideByZero.code = 6045;
|
|
514
560
|
class DeltaATooLarge extends Error {
|
|
561
|
+
logs;
|
|
562
|
+
static code = 6046;
|
|
563
|
+
code = 6046;
|
|
564
|
+
name = "DeltaATooLarge";
|
|
565
|
+
msg = "[DEPRECATED] Delta A too large";
|
|
515
566
|
constructor(logs) {
|
|
516
567
|
super("6046: [DEPRECATED] Delta A too large");
|
|
517
568
|
this.logs = logs;
|
|
518
|
-
this.code = 6046;
|
|
519
|
-
this.name = "DeltaATooLarge";
|
|
520
|
-
this.msg = "[DEPRECATED] Delta A too large";
|
|
521
569
|
}
|
|
522
570
|
}
|
|
523
571
|
exports.DeltaATooLarge = DeltaATooLarge;
|
|
524
|
-
DeltaATooLarge.code = 6046;
|
|
525
572
|
class DeltaBTooLarge extends Error {
|
|
573
|
+
logs;
|
|
574
|
+
static code = 6047;
|
|
575
|
+
code = 6047;
|
|
576
|
+
name = "DeltaBTooLarge";
|
|
577
|
+
msg = "[DEPRECATED] Delta B too large";
|
|
526
578
|
constructor(logs) {
|
|
527
579
|
super("6047: [DEPRECATED] Delta B too large");
|
|
528
580
|
this.logs = logs;
|
|
529
|
-
this.code = 6047;
|
|
530
|
-
this.name = "DeltaBTooLarge";
|
|
531
|
-
this.msg = "[DEPRECATED] Delta B too large";
|
|
532
581
|
}
|
|
533
582
|
}
|
|
534
583
|
exports.DeltaBTooLarge = DeltaBTooLarge;
|
|
535
|
-
DeltaBTooLarge.code = 6047;
|
|
536
584
|
class CannotExecutiveWithdrawZeroAmount extends Error {
|
|
585
|
+
logs;
|
|
586
|
+
static code = 6048;
|
|
587
|
+
code = 6048;
|
|
588
|
+
name = "CannotExecutiveWithdrawZeroAmount";
|
|
589
|
+
msg = "[DEPRECATED] Cannot executive withdraw zero amount";
|
|
537
590
|
constructor(logs) {
|
|
538
591
|
super("6048: [DEPRECATED] Cannot executive withdraw zero amount");
|
|
539
592
|
this.logs = logs;
|
|
540
|
-
this.code = 6048;
|
|
541
|
-
this.name = "CannotExecutiveWithdrawZeroAmount";
|
|
542
|
-
this.msg = "[DEPRECATED] Cannot executive withdraw zero amount";
|
|
543
593
|
}
|
|
544
594
|
}
|
|
545
595
|
exports.CannotExecutiveWithdrawZeroAmount = CannotExecutiveWithdrawZeroAmount;
|
|
546
|
-
CannotExecutiveWithdrawZeroAmount.code = 6048;
|
|
547
596
|
class CannotWithdrawZeroAmount extends Error {
|
|
597
|
+
logs;
|
|
598
|
+
static code = 6049;
|
|
599
|
+
code = 6049;
|
|
600
|
+
name = "CannotWithdrawZeroAmount";
|
|
601
|
+
msg = "Cannot withdraw zero amount";
|
|
548
602
|
constructor(logs) {
|
|
549
603
|
super("6049: Cannot withdraw zero amount");
|
|
550
604
|
this.logs = logs;
|
|
551
|
-
this.code = 6049;
|
|
552
|
-
this.name = "CannotWithdrawZeroAmount";
|
|
553
|
-
this.msg = "Cannot withdraw zero amount";
|
|
554
605
|
}
|
|
555
606
|
}
|
|
556
607
|
exports.CannotWithdrawZeroAmount = CannotWithdrawZeroAmount;
|
|
557
|
-
CannotWithdrawZeroAmount.code = 6049;
|
|
558
608
|
class CannotCollectFeesOnZeroLiquidityPosition extends Error {
|
|
609
|
+
logs;
|
|
610
|
+
static code = 6050;
|
|
611
|
+
code = 6050;
|
|
612
|
+
name = "CannotCollectFeesOnZeroLiquidityPosition";
|
|
613
|
+
msg = "[DEPRECATED] Cannot collect fees on zero liquidity position";
|
|
559
614
|
constructor(logs) {
|
|
560
615
|
super("6050: [DEPRECATED] Cannot collect fees on zero liquidity position");
|
|
561
616
|
this.logs = logs;
|
|
562
|
-
this.code = 6050;
|
|
563
|
-
this.name = "CannotCollectFeesOnZeroLiquidityPosition";
|
|
564
|
-
this.msg = "[DEPRECATED] Cannot collect fees on zero liquidity position";
|
|
565
617
|
}
|
|
566
618
|
}
|
|
567
619
|
exports.CannotCollectFeesOnZeroLiquidityPosition = CannotCollectFeesOnZeroLiquidityPosition;
|
|
568
|
-
CannotCollectFeesOnZeroLiquidityPosition.code = 6050;
|
|
569
620
|
class StrategyNotActiveWhenDepositing extends Error {
|
|
621
|
+
logs;
|
|
622
|
+
static code = 6051;
|
|
623
|
+
code = 6051;
|
|
624
|
+
name = "StrategyNotActiveWhenDepositing";
|
|
625
|
+
msg = "Cannot deposit inactive position";
|
|
570
626
|
constructor(logs) {
|
|
571
627
|
super("6051: Cannot deposit inactive position");
|
|
572
628
|
this.logs = logs;
|
|
573
|
-
this.code = 6051;
|
|
574
|
-
this.name = "StrategyNotActiveWhenDepositing";
|
|
575
|
-
this.msg = "Cannot deposit inactive position";
|
|
576
629
|
}
|
|
577
630
|
}
|
|
578
631
|
exports.StrategyNotActiveWhenDepositing = StrategyNotActiveWhenDepositing;
|
|
579
|
-
StrategyNotActiveWhenDepositing.code = 6051;
|
|
580
632
|
class StrategyNotActiveWhenOpeningPosition extends Error {
|
|
633
|
+
logs;
|
|
634
|
+
static code = 6052;
|
|
635
|
+
code = 6052;
|
|
636
|
+
name = "StrategyNotActiveWhenOpeningPosition";
|
|
637
|
+
msg = "Cannot open position with existing opened position";
|
|
581
638
|
constructor(logs) {
|
|
582
639
|
super("6052: Cannot open position with existing opened position");
|
|
583
640
|
this.logs = logs;
|
|
584
|
-
this.code = 6052;
|
|
585
|
-
this.name = "StrategyNotActiveWhenOpeningPosition";
|
|
586
|
-
this.msg = "Cannot open position with existing opened position";
|
|
587
641
|
}
|
|
588
642
|
}
|
|
589
643
|
exports.StrategyNotActiveWhenOpeningPosition = StrategyNotActiveWhenOpeningPosition;
|
|
590
|
-
StrategyNotActiveWhenOpeningPosition.code = 6052;
|
|
591
644
|
class CollateralTokensExceedDepositCapPerIxn extends Error {
|
|
645
|
+
logs;
|
|
646
|
+
static code = 6053;
|
|
647
|
+
code = 6053;
|
|
648
|
+
name = "CollateralTokensExceedDepositCapPerIxn";
|
|
649
|
+
msg = "Collaterals exceed deposit ixn cap";
|
|
592
650
|
constructor(logs) {
|
|
593
651
|
super("6053: Collaterals exceed deposit ixn cap");
|
|
594
652
|
this.logs = logs;
|
|
595
|
-
this.code = 6053;
|
|
596
|
-
this.name = "CollateralTokensExceedDepositCapPerIxn";
|
|
597
|
-
this.msg = "Collaterals exceed deposit ixn cap";
|
|
598
653
|
}
|
|
599
654
|
}
|
|
600
655
|
exports.CollateralTokensExceedDepositCapPerIxn = CollateralTokensExceedDepositCapPerIxn;
|
|
601
|
-
CollateralTokensExceedDepositCapPerIxn.code = 6053;
|
|
602
656
|
class CannotDepositOutOfRange extends Error {
|
|
657
|
+
logs;
|
|
658
|
+
static code = 6054;
|
|
659
|
+
code = 6054;
|
|
660
|
+
name = "CannotDepositOutOfRange";
|
|
661
|
+
msg = "Cannot deposit when strategy out of range";
|
|
603
662
|
constructor(logs) {
|
|
604
663
|
super("6054: Cannot deposit when strategy out of range");
|
|
605
664
|
this.logs = logs;
|
|
606
|
-
this.code = 6054;
|
|
607
|
-
this.name = "CannotDepositOutOfRange";
|
|
608
|
-
this.msg = "Cannot deposit when strategy out of range";
|
|
609
665
|
}
|
|
610
666
|
}
|
|
611
667
|
exports.CannotDepositOutOfRange = CannotDepositOutOfRange;
|
|
612
|
-
CannotDepositOutOfRange.code = 6054;
|
|
613
668
|
class CannotInvestOutOfRange extends Error {
|
|
669
|
+
logs;
|
|
670
|
+
static code = 6055;
|
|
671
|
+
code = 6055;
|
|
672
|
+
name = "CannotInvestOutOfRange";
|
|
673
|
+
msg = "Cannot invest when strategy out of range";
|
|
614
674
|
constructor(logs) {
|
|
615
675
|
super("6055: Cannot invest when strategy out of range");
|
|
616
676
|
this.logs = logs;
|
|
617
|
-
this.code = 6055;
|
|
618
|
-
this.name = "CannotInvestOutOfRange";
|
|
619
|
-
this.msg = "Cannot invest when strategy out of range";
|
|
620
677
|
}
|
|
621
678
|
}
|
|
622
679
|
exports.CannotInvestOutOfRange = CannotInvestOutOfRange;
|
|
623
|
-
CannotInvestOutOfRange.code = 6055;
|
|
624
680
|
class WithdrawalCapReached extends Error {
|
|
681
|
+
logs;
|
|
682
|
+
static code = 6056;
|
|
683
|
+
code = 6056;
|
|
684
|
+
name = "WithdrawalCapReached";
|
|
685
|
+
msg = "Withdrawal cap is reached";
|
|
625
686
|
constructor(logs) {
|
|
626
687
|
super("6056: Withdrawal cap is reached");
|
|
627
688
|
this.logs = logs;
|
|
628
|
-
this.code = 6056;
|
|
629
|
-
this.name = "WithdrawalCapReached";
|
|
630
|
-
this.msg = "Withdrawal cap is reached";
|
|
631
689
|
}
|
|
632
690
|
}
|
|
633
691
|
exports.WithdrawalCapReached = WithdrawalCapReached;
|
|
634
|
-
WithdrawalCapReached.code = 6056;
|
|
635
692
|
class TimestampDecrease extends Error {
|
|
693
|
+
logs;
|
|
694
|
+
static code = 6057;
|
|
695
|
+
code = 6057;
|
|
696
|
+
name = "TimestampDecrease";
|
|
697
|
+
msg = "Timestamp decrease";
|
|
636
698
|
constructor(logs) {
|
|
637
699
|
super("6057: Timestamp decrease");
|
|
638
700
|
this.logs = logs;
|
|
639
|
-
this.code = 6057;
|
|
640
|
-
this.name = "TimestampDecrease";
|
|
641
|
-
this.msg = "Timestamp decrease";
|
|
642
701
|
}
|
|
643
702
|
}
|
|
644
703
|
exports.TimestampDecrease = TimestampDecrease;
|
|
645
|
-
TimestampDecrease.code = 6057;
|
|
646
704
|
class CPINotAllowed extends Error {
|
|
705
|
+
logs;
|
|
706
|
+
static code = 6058;
|
|
707
|
+
code = 6058;
|
|
708
|
+
name = "CPINotAllowed";
|
|
709
|
+
msg = "CPI not allowed";
|
|
647
710
|
constructor(logs) {
|
|
648
711
|
super("6058: CPI not allowed");
|
|
649
712
|
this.logs = logs;
|
|
650
|
-
this.code = 6058;
|
|
651
|
-
this.name = "CPINotAllowed";
|
|
652
|
-
this.msg = "CPI not allowed";
|
|
653
713
|
}
|
|
654
714
|
}
|
|
655
715
|
exports.CPINotAllowed = CPINotAllowed;
|
|
656
|
-
CPINotAllowed.code = 6058;
|
|
657
716
|
class OrcaPriceTooDifferentFromScope extends Error {
|
|
717
|
+
logs;
|
|
718
|
+
static code = 6059;
|
|
719
|
+
code = 6059;
|
|
720
|
+
name = "OrcaPriceTooDifferentFromScope";
|
|
721
|
+
msg = "Cannot use orca price as it is too different from scope price";
|
|
658
722
|
constructor(logs) {
|
|
659
723
|
super("6059: Cannot use orca price as it is too different from scope price");
|
|
660
724
|
this.logs = logs;
|
|
661
|
-
this.code = 6059;
|
|
662
|
-
this.name = "OrcaPriceTooDifferentFromScope";
|
|
663
|
-
this.msg = "Cannot use orca price as it is too different from scope price";
|
|
664
725
|
}
|
|
665
726
|
}
|
|
666
727
|
exports.OrcaPriceTooDifferentFromScope = OrcaPriceTooDifferentFromScope;
|
|
667
|
-
OrcaPriceTooDifferentFromScope.code = 6059;
|
|
668
728
|
class LowerTickLargerThanUpperTick extends Error {
|
|
729
|
+
logs;
|
|
730
|
+
static code = 6060;
|
|
731
|
+
code = 6060;
|
|
732
|
+
name = "LowerTickLargerThanUpperTick";
|
|
733
|
+
msg = "Lower tick larger than upper tick";
|
|
669
734
|
constructor(logs) {
|
|
670
735
|
super("6060: Lower tick larger than upper tick");
|
|
671
736
|
this.logs = logs;
|
|
672
|
-
this.code = 6060;
|
|
673
|
-
this.name = "LowerTickLargerThanUpperTick";
|
|
674
|
-
this.msg = "Lower tick larger than upper tick";
|
|
675
737
|
}
|
|
676
738
|
}
|
|
677
739
|
exports.LowerTickLargerThanUpperTick = LowerTickLargerThanUpperTick;
|
|
678
|
-
LowerTickLargerThanUpperTick.code = 6060;
|
|
679
740
|
class LowerTickTooLow extends Error {
|
|
741
|
+
logs;
|
|
742
|
+
static code = 6061;
|
|
743
|
+
code = 6061;
|
|
744
|
+
name = "LowerTickTooLow";
|
|
745
|
+
msg = "Lower tick is lower than the minimal supported low tick";
|
|
680
746
|
constructor(logs) {
|
|
681
747
|
super("6061: Lower tick is lower than the minimal supported low tick");
|
|
682
748
|
this.logs = logs;
|
|
683
|
-
this.code = 6061;
|
|
684
|
-
this.name = "LowerTickTooLow";
|
|
685
|
-
this.msg = "Lower tick is lower than the minimal supported low tick";
|
|
686
749
|
}
|
|
687
750
|
}
|
|
688
751
|
exports.LowerTickTooLow = LowerTickTooLow;
|
|
689
|
-
LowerTickTooLow.code = 6061;
|
|
690
752
|
class UpperTickTooLarge extends Error {
|
|
753
|
+
logs;
|
|
754
|
+
static code = 6062;
|
|
755
|
+
code = 6062;
|
|
756
|
+
name = "UpperTickTooLarge";
|
|
757
|
+
msg = "Upper tick is larger than the maximum supported tick";
|
|
691
758
|
constructor(logs) {
|
|
692
759
|
super("6062: Upper tick is larger than the maximum supported tick");
|
|
693
760
|
this.logs = logs;
|
|
694
|
-
this.code = 6062;
|
|
695
|
-
this.name = "UpperTickTooLarge";
|
|
696
|
-
this.msg = "Upper tick is larger than the maximum supported tick";
|
|
697
761
|
}
|
|
698
762
|
}
|
|
699
763
|
exports.UpperTickTooLarge = UpperTickTooLarge;
|
|
700
|
-
UpperTickTooLarge.code = 6062;
|
|
701
764
|
class LowerTickNotMultipleOfTickSpacing extends Error {
|
|
765
|
+
logs;
|
|
766
|
+
static code = 6063;
|
|
767
|
+
code = 6063;
|
|
768
|
+
name = "LowerTickNotMultipleOfTickSpacing";
|
|
769
|
+
msg = "Lower tick is not a multiple of tick spacing";
|
|
702
770
|
constructor(logs) {
|
|
703
771
|
super("6063: Lower tick is not a multiple of tick spacing");
|
|
704
772
|
this.logs = logs;
|
|
705
|
-
this.code = 6063;
|
|
706
|
-
this.name = "LowerTickNotMultipleOfTickSpacing";
|
|
707
|
-
this.msg = "Lower tick is not a multiple of tick spacing";
|
|
708
773
|
}
|
|
709
774
|
}
|
|
710
775
|
exports.LowerTickNotMultipleOfTickSpacing = LowerTickNotMultipleOfTickSpacing;
|
|
711
|
-
LowerTickNotMultipleOfTickSpacing.code = 6063;
|
|
712
776
|
class UpperTickNotMultipleOfTickSpacing extends Error {
|
|
777
|
+
logs;
|
|
778
|
+
static code = 6064;
|
|
779
|
+
code = 6064;
|
|
780
|
+
name = "UpperTickNotMultipleOfTickSpacing";
|
|
781
|
+
msg = "Upper tick is not a multiple of tick spacing";
|
|
713
782
|
constructor(logs) {
|
|
714
783
|
super("6064: Upper tick is not a multiple of tick spacing");
|
|
715
784
|
this.logs = logs;
|
|
716
|
-
this.code = 6064;
|
|
717
|
-
this.name = "UpperTickNotMultipleOfTickSpacing";
|
|
718
|
-
this.msg = "Upper tick is not a multiple of tick spacing";
|
|
719
785
|
}
|
|
720
786
|
}
|
|
721
787
|
exports.UpperTickNotMultipleOfTickSpacing = UpperTickNotMultipleOfTickSpacing;
|
|
722
|
-
UpperTickNotMultipleOfTickSpacing.code = 6064;
|
|
723
788
|
class CannotChangeAdminAuthority extends Error {
|
|
789
|
+
logs;
|
|
790
|
+
static code = 6065;
|
|
791
|
+
code = 6065;
|
|
792
|
+
name = "CannotChangeAdminAuthority";
|
|
793
|
+
msg = "Cannot change admin authority";
|
|
724
794
|
constructor(logs) {
|
|
725
795
|
super("6065: Cannot change admin authority");
|
|
726
796
|
this.logs = logs;
|
|
727
|
-
this.code = 6065;
|
|
728
|
-
this.name = "CannotChangeAdminAuthority";
|
|
729
|
-
this.msg = "Cannot change admin authority";
|
|
730
797
|
}
|
|
731
798
|
}
|
|
732
799
|
exports.CannotChangeAdminAuthority = CannotChangeAdminAuthority;
|
|
733
|
-
CannotChangeAdminAuthority.code = 6065;
|
|
734
800
|
class CannotResizeAccount extends Error {
|
|
801
|
+
logs;
|
|
802
|
+
static code = 6066;
|
|
803
|
+
code = 6066;
|
|
804
|
+
name = "CannotResizeAccount";
|
|
805
|
+
msg = "Cannot resize with smaller new size";
|
|
735
806
|
constructor(logs) {
|
|
736
807
|
super("6066: Cannot resize with smaller new size");
|
|
737
808
|
this.logs = logs;
|
|
738
|
-
this.code = 6066;
|
|
739
|
-
this.name = "CannotResizeAccount";
|
|
740
|
-
this.msg = "Cannot resize with smaller new size";
|
|
741
809
|
}
|
|
742
810
|
}
|
|
743
811
|
exports.CannotResizeAccount = CannotResizeAccount;
|
|
744
|
-
CannotResizeAccount.code = 6066;
|
|
745
812
|
class ScopeChainUpdateFailed extends Error {
|
|
813
|
+
logs;
|
|
814
|
+
static code = 6067;
|
|
815
|
+
code = 6067;
|
|
816
|
+
name = "ScopeChainUpdateFailed";
|
|
817
|
+
msg = "Scope chain update failed";
|
|
746
818
|
constructor(logs) {
|
|
747
819
|
super("6067: Scope chain update failed");
|
|
748
820
|
this.logs = logs;
|
|
749
|
-
this.code = 6067;
|
|
750
|
-
this.name = "ScopeChainUpdateFailed";
|
|
751
|
-
this.msg = "Scope chain update failed";
|
|
752
821
|
}
|
|
753
822
|
}
|
|
754
823
|
exports.ScopeChainUpdateFailed = ScopeChainUpdateFailed;
|
|
755
|
-
ScopeChainUpdateFailed.code = 6067;
|
|
756
824
|
class PriceTooDivergentFromTwap extends Error {
|
|
825
|
+
logs;
|
|
826
|
+
static code = 6068;
|
|
827
|
+
code = 6068;
|
|
828
|
+
name = "PriceTooDivergentFromTwap";
|
|
829
|
+
msg = "Price too divergent from twap";
|
|
757
830
|
constructor(logs) {
|
|
758
831
|
super("6068: Price too divergent from twap");
|
|
759
832
|
this.logs = logs;
|
|
760
|
-
this.code = 6068;
|
|
761
|
-
this.name = "PriceTooDivergentFromTwap";
|
|
762
|
-
this.msg = "Price too divergent from twap";
|
|
763
833
|
}
|
|
764
834
|
}
|
|
765
835
|
exports.PriceTooDivergentFromTwap = PriceTooDivergentFromTwap;
|
|
766
|
-
PriceTooDivergentFromTwap.code = 6068;
|
|
767
836
|
class ExistingRewardOverride extends Error {
|
|
837
|
+
logs;
|
|
838
|
+
static code = 6069;
|
|
839
|
+
code = 6069;
|
|
840
|
+
name = "ExistingRewardOverride";
|
|
841
|
+
msg = "[DEPRECATED] Can not override the existing reward";
|
|
768
842
|
constructor(logs) {
|
|
769
843
|
super("6069: [DEPRECATED] Can not override the existing reward");
|
|
770
844
|
this.logs = logs;
|
|
771
|
-
this.code = 6069;
|
|
772
|
-
this.name = "ExistingRewardOverride";
|
|
773
|
-
this.msg = "[DEPRECATED] Can not override the existing reward";
|
|
774
845
|
}
|
|
775
846
|
}
|
|
776
847
|
exports.ExistingRewardOverride = ExistingRewardOverride;
|
|
777
|
-
ExistingRewardOverride.code = 6069;
|
|
778
848
|
class WrongKaminoRewardId extends Error {
|
|
849
|
+
logs;
|
|
850
|
+
static code = 6070;
|
|
851
|
+
code = 6070;
|
|
852
|
+
name = "WrongKaminoRewardId";
|
|
853
|
+
msg = "Kamino reward id exceeds the available slots";
|
|
779
854
|
constructor(logs) {
|
|
780
855
|
super("6070: Kamino reward id exceeds the available slots");
|
|
781
856
|
this.logs = logs;
|
|
782
|
-
this.code = 6070;
|
|
783
|
-
this.name = "WrongKaminoRewardId";
|
|
784
|
-
this.msg = "Kamino reward id exceeds the available slots";
|
|
785
857
|
}
|
|
786
858
|
}
|
|
787
859
|
exports.WrongKaminoRewardId = WrongKaminoRewardId;
|
|
788
|
-
WrongKaminoRewardId.code = 6070;
|
|
789
860
|
class KaminoRewardNotExist extends Error {
|
|
861
|
+
logs;
|
|
862
|
+
static code = 6071;
|
|
863
|
+
code = 6071;
|
|
864
|
+
name = "KaminoRewardNotExist";
|
|
865
|
+
msg = "Kamino reward is not initialized";
|
|
790
866
|
constructor(logs) {
|
|
791
867
|
super("6071: Kamino reward is not initialized");
|
|
792
868
|
this.logs = logs;
|
|
793
|
-
this.code = 6071;
|
|
794
|
-
this.name = "KaminoRewardNotExist";
|
|
795
|
-
this.msg = "Kamino reward is not initialized";
|
|
796
869
|
}
|
|
797
870
|
}
|
|
798
871
|
exports.KaminoRewardNotExist = KaminoRewardNotExist;
|
|
799
|
-
KaminoRewardNotExist.code = 6071;
|
|
800
872
|
class KaminoRewardAlreadyExists extends Error {
|
|
873
|
+
logs;
|
|
874
|
+
static code = 6072;
|
|
875
|
+
code = 6072;
|
|
876
|
+
name = "KaminoRewardAlreadyExists";
|
|
877
|
+
msg = "Kamino reward is already initialized";
|
|
801
878
|
constructor(logs) {
|
|
802
879
|
super("6072: Kamino reward is already initialized");
|
|
803
880
|
this.logs = logs;
|
|
804
|
-
this.code = 6072;
|
|
805
|
-
this.name = "KaminoRewardAlreadyExists";
|
|
806
|
-
this.msg = "Kamino reward is already initialized";
|
|
807
881
|
}
|
|
808
882
|
}
|
|
809
883
|
exports.KaminoRewardAlreadyExists = KaminoRewardAlreadyExists;
|
|
810
|
-
KaminoRewardAlreadyExists.code = 6072;
|
|
811
884
|
class KaminoCollateralNotValid extends Error {
|
|
885
|
+
logs;
|
|
886
|
+
static code = 6073;
|
|
887
|
+
code = 6073;
|
|
888
|
+
name = "KaminoCollateralNotValid";
|
|
889
|
+
msg = "Kamino collateral is not valid";
|
|
812
890
|
constructor(logs) {
|
|
813
891
|
super("6073: Kamino collateral is not valid");
|
|
814
892
|
this.logs = logs;
|
|
815
|
-
this.code = 6073;
|
|
816
|
-
this.name = "KaminoCollateralNotValid";
|
|
817
|
-
this.msg = "Kamino collateral is not valid";
|
|
818
893
|
}
|
|
819
894
|
}
|
|
820
895
|
exports.KaminoCollateralNotValid = KaminoCollateralNotValid;
|
|
821
|
-
KaminoCollateralNotValid.code = 6073;
|
|
822
896
|
class KaminoRewardExceedsAvailableAmount extends Error {
|
|
897
|
+
logs;
|
|
898
|
+
static code = 6074;
|
|
899
|
+
code = 6074;
|
|
900
|
+
name = "KaminoRewardExceedsAvailableAmount";
|
|
901
|
+
msg = "[DEPRECATED] Expected kamino reward is bigger then the available amount within the vault";
|
|
823
902
|
constructor(logs) {
|
|
824
903
|
super("6074: [DEPRECATED] Expected kamino reward is bigger then the available amount within the vault");
|
|
825
904
|
this.logs = logs;
|
|
826
|
-
this.code = 6074;
|
|
827
|
-
this.name = "KaminoRewardExceedsAvailableAmount";
|
|
828
|
-
this.msg = "[DEPRECATED] Expected kamino reward is bigger then the available amount within the vault";
|
|
829
905
|
}
|
|
830
906
|
}
|
|
831
907
|
exports.KaminoRewardExceedsAvailableAmount = KaminoRewardExceedsAvailableAmount;
|
|
832
|
-
KaminoRewardExceedsAvailableAmount.code = 6074;
|
|
833
908
|
class SwapUnevenVaultsOvershoot extends Error {
|
|
909
|
+
logs;
|
|
910
|
+
static code = 6075;
|
|
911
|
+
code = 6075;
|
|
912
|
+
name = "SwapUnevenVaultsOvershoot";
|
|
913
|
+
msg = "Swap uneven vaults result in the opposite unbalance of the vaults";
|
|
834
914
|
constructor(logs) {
|
|
835
915
|
super("6075: Swap uneven vaults result in the opposite unbalance of the vaults");
|
|
836
916
|
this.logs = logs;
|
|
837
|
-
this.code = 6075;
|
|
838
|
-
this.name = "SwapUnevenVaultsOvershoot";
|
|
839
|
-
this.msg = "Swap uneven vaults result in the opposite unbalance of the vaults";
|
|
840
917
|
}
|
|
841
918
|
}
|
|
842
919
|
exports.SwapUnevenVaultsOvershoot = SwapUnevenVaultsOvershoot;
|
|
843
|
-
SwapUnevenVaultsOvershoot.code = 6075;
|
|
844
920
|
class BpsNotInRange extends Error {
|
|
921
|
+
logs;
|
|
922
|
+
static code = 6076;
|
|
923
|
+
code = 6076;
|
|
924
|
+
name = "BpsNotInRange";
|
|
925
|
+
msg = "Bps parameter passed to instruction is not in range";
|
|
845
926
|
constructor(logs) {
|
|
846
927
|
super("6076: Bps parameter passed to instruction is not in range");
|
|
847
928
|
this.logs = logs;
|
|
848
|
-
this.code = 6076;
|
|
849
|
-
this.name = "BpsNotInRange";
|
|
850
|
-
this.msg = "Bps parameter passed to instruction is not in range";
|
|
851
929
|
}
|
|
852
930
|
}
|
|
853
931
|
exports.BpsNotInRange = BpsNotInRange;
|
|
854
|
-
BpsNotInRange.code = 6076;
|
|
855
932
|
class EmergencySwapBlocked extends Error {
|
|
933
|
+
logs;
|
|
934
|
+
static code = 6077;
|
|
935
|
+
code = 6077;
|
|
936
|
+
name = "EmergencySwapBlocked";
|
|
937
|
+
msg = "Emergency Swap is blocked";
|
|
856
938
|
constructor(logs) {
|
|
857
939
|
super("6077: Emergency Swap is blocked");
|
|
858
940
|
this.logs = logs;
|
|
859
|
-
this.code = 6077;
|
|
860
|
-
this.name = "EmergencySwapBlocked";
|
|
861
|
-
this.msg = "Emergency Swap is blocked";
|
|
862
941
|
}
|
|
863
942
|
}
|
|
864
943
|
exports.EmergencySwapBlocked = EmergencySwapBlocked;
|
|
865
|
-
EmergencySwapBlocked.code = 6077;
|
|
866
944
|
class StrategyNotFrozen extends Error {
|
|
945
|
+
logs;
|
|
946
|
+
static code = 6078;
|
|
947
|
+
code = 6078;
|
|
948
|
+
name = "StrategyNotFrozen";
|
|
949
|
+
msg = "Strategy is expected to be frozen for this operation";
|
|
867
950
|
constructor(logs) {
|
|
868
951
|
super("6078: Strategy is expected to be frozen for this operation");
|
|
869
952
|
this.logs = logs;
|
|
870
|
-
this.code = 6078;
|
|
871
|
-
this.name = "StrategyNotFrozen";
|
|
872
|
-
this.msg = "Strategy is expected to be frozen for this operation";
|
|
873
953
|
}
|
|
874
954
|
}
|
|
875
955
|
exports.StrategyNotFrozen = StrategyNotFrozen;
|
|
876
|
-
StrategyNotFrozen.code = 6078;
|
|
877
956
|
class UnexpectedTokenAmountsPostSwap extends Error {
|
|
957
|
+
logs;
|
|
958
|
+
static code = 6079;
|
|
959
|
+
code = 6079;
|
|
960
|
+
name = "UnexpectedTokenAmountsPostSwap";
|
|
961
|
+
msg = "Token left in vault post swap are lower than expected";
|
|
878
962
|
constructor(logs) {
|
|
879
963
|
super("6079: Token left in vault post swap are lower than expected");
|
|
880
964
|
this.logs = logs;
|
|
881
|
-
this.code = 6079;
|
|
882
|
-
this.name = "UnexpectedTokenAmountsPostSwap";
|
|
883
|
-
this.msg = "Token left in vault post swap are lower than expected";
|
|
884
965
|
}
|
|
885
966
|
}
|
|
886
967
|
exports.UnexpectedTokenAmountsPostSwap = UnexpectedTokenAmountsPostSwap;
|
|
887
|
-
UnexpectedTokenAmountsPostSwap.code = 6079;
|
|
888
968
|
class AccountNotBelongToDEX extends Error {
|
|
969
|
+
logs;
|
|
970
|
+
static code = 6080;
|
|
971
|
+
code = 6080;
|
|
972
|
+
name = "AccountNotBelongToDEX";
|
|
973
|
+
msg = "Account doesn't belong to the DEX";
|
|
889
974
|
constructor(logs) {
|
|
890
975
|
super("6080: Account doesn't belong to the DEX");
|
|
891
976
|
this.logs = logs;
|
|
892
|
-
this.code = 6080;
|
|
893
|
-
this.name = "AccountNotBelongToDEX";
|
|
894
|
-
this.msg = "Account doesn't belong to the DEX";
|
|
895
977
|
}
|
|
896
978
|
}
|
|
897
979
|
exports.AccountNotBelongToDEX = AccountNotBelongToDEX;
|
|
898
|
-
AccountNotBelongToDEX.code = 6080;
|
|
899
980
|
class WrongDEXProgramID extends Error {
|
|
981
|
+
logs;
|
|
982
|
+
static code = 6081;
|
|
983
|
+
code = 6081;
|
|
984
|
+
name = "WrongDEXProgramID";
|
|
985
|
+
msg = "Wrong DEX program ID";
|
|
900
986
|
constructor(logs) {
|
|
901
987
|
super("6081: Wrong DEX program ID");
|
|
902
988
|
this.logs = logs;
|
|
903
|
-
this.code = 6081;
|
|
904
|
-
this.name = "WrongDEXProgramID";
|
|
905
|
-
this.msg = "Wrong DEX program ID";
|
|
906
989
|
}
|
|
907
990
|
}
|
|
908
991
|
exports.WrongDEXProgramID = WrongDEXProgramID;
|
|
909
|
-
WrongDEXProgramID.code = 6081;
|
|
910
992
|
class OrcaRewardUninitialized extends Error {
|
|
993
|
+
logs;
|
|
994
|
+
static code = 6082;
|
|
995
|
+
code = 6082;
|
|
996
|
+
name = "OrcaRewardUninitialized";
|
|
997
|
+
msg = "Cannot use uninitialized orca reward vault";
|
|
911
998
|
constructor(logs) {
|
|
912
999
|
super("6082: Cannot use uninitialized orca reward vault");
|
|
913
1000
|
this.logs = logs;
|
|
914
|
-
this.code = 6082;
|
|
915
|
-
this.name = "OrcaRewardUninitialized";
|
|
916
|
-
this.msg = "Cannot use uninitialized orca reward vault";
|
|
917
1001
|
}
|
|
918
1002
|
}
|
|
919
1003
|
exports.OrcaRewardUninitialized = OrcaRewardUninitialized;
|
|
920
|
-
OrcaRewardUninitialized.code = 6082;
|
|
921
1004
|
class InvalidAdminAuthority extends Error {
|
|
1005
|
+
logs;
|
|
1006
|
+
static code = 6083;
|
|
1007
|
+
code = 6083;
|
|
1008
|
+
name = "InvalidAdminAuthority";
|
|
1009
|
+
msg = "Invalid admin authority";
|
|
922
1010
|
constructor(logs) {
|
|
923
1011
|
super("6083: Invalid admin authority");
|
|
924
1012
|
this.logs = logs;
|
|
925
|
-
this.code = 6083;
|
|
926
|
-
this.name = "InvalidAdminAuthority";
|
|
927
|
-
this.msg = "Invalid admin authority";
|
|
928
1013
|
}
|
|
929
1014
|
}
|
|
930
1015
|
exports.InvalidAdminAuthority = InvalidAdminAuthority;
|
|
931
|
-
InvalidAdminAuthority.code = 6083;
|
|
932
1016
|
class PriceIsBiggerThanHeuristic extends Error {
|
|
1017
|
+
logs;
|
|
1018
|
+
static code = 6084;
|
|
1019
|
+
code = 6084;
|
|
1020
|
+
name = "PriceIsBiggerThanHeuristic";
|
|
1021
|
+
msg = "Token price is bigger than heuristic";
|
|
933
1022
|
constructor(logs) {
|
|
934
1023
|
super("6084: Token price is bigger than heuristic");
|
|
935
1024
|
this.logs = logs;
|
|
936
|
-
this.code = 6084;
|
|
937
|
-
this.name = "PriceIsBiggerThanHeuristic";
|
|
938
|
-
this.msg = "Token price is bigger than heuristic";
|
|
939
1025
|
}
|
|
940
1026
|
}
|
|
941
1027
|
exports.PriceIsBiggerThanHeuristic = PriceIsBiggerThanHeuristic;
|
|
942
|
-
PriceIsBiggerThanHeuristic.code = 6084;
|
|
943
1028
|
class PriceIsLowerThanHeuristic extends Error {
|
|
1029
|
+
logs;
|
|
1030
|
+
static code = 6085;
|
|
1031
|
+
code = 6085;
|
|
1032
|
+
name = "PriceIsLowerThanHeuristic";
|
|
1033
|
+
msg = "Token price is lower than heuristic";
|
|
944
1034
|
constructor(logs) {
|
|
945
1035
|
super("6085: Token price is lower than heuristic");
|
|
946
1036
|
this.logs = logs;
|
|
947
|
-
this.code = 6085;
|
|
948
|
-
this.name = "PriceIsLowerThanHeuristic";
|
|
949
|
-
this.msg = "Token price is lower than heuristic";
|
|
950
1037
|
}
|
|
951
1038
|
}
|
|
952
1039
|
exports.PriceIsLowerThanHeuristic = PriceIsLowerThanHeuristic;
|
|
953
|
-
PriceIsLowerThanHeuristic.code = 6085;
|
|
954
1040
|
class AccountDifferentThanExpected extends Error {
|
|
1041
|
+
logs;
|
|
1042
|
+
static code = 6086;
|
|
1043
|
+
code = 6086;
|
|
1044
|
+
name = "AccountDifferentThanExpected";
|
|
1045
|
+
msg = "Account different than expected";
|
|
955
1046
|
constructor(logs) {
|
|
956
1047
|
super("6086: Account different than expected");
|
|
957
1048
|
this.logs = logs;
|
|
958
|
-
this.code = 6086;
|
|
959
|
-
this.name = "AccountDifferentThanExpected";
|
|
960
|
-
this.msg = "Account different than expected";
|
|
961
1049
|
}
|
|
962
1050
|
}
|
|
963
1051
|
exports.AccountDifferentThanExpected = AccountDifferentThanExpected;
|
|
964
|
-
AccountDifferentThanExpected.code = 6086;
|
|
965
1052
|
class SwapAmountsTooSmall extends Error {
|
|
1053
|
+
logs;
|
|
1054
|
+
static code = 6087;
|
|
1055
|
+
code = 6087;
|
|
1056
|
+
name = "SwapAmountsTooSmall";
|
|
1057
|
+
msg = "Swap amount below the minimum value";
|
|
966
1058
|
constructor(logs) {
|
|
967
1059
|
super("6087: Swap amount below the minimum value");
|
|
968
1060
|
this.logs = logs;
|
|
969
|
-
this.code = 6087;
|
|
970
|
-
this.name = "SwapAmountsTooSmall";
|
|
971
|
-
this.msg = "Swap amount below the minimum value";
|
|
972
1061
|
}
|
|
973
1062
|
}
|
|
974
1063
|
exports.SwapAmountsTooSmall = SwapAmountsTooSmall;
|
|
975
|
-
SwapAmountsTooSmall.code = 6087;
|
|
976
1064
|
class InvalidDexProgramId extends Error {
|
|
1065
|
+
logs;
|
|
1066
|
+
static code = 6088;
|
|
1067
|
+
code = 6088;
|
|
1068
|
+
name = "InvalidDexProgramId";
|
|
1069
|
+
msg = "Invalid dex program id";
|
|
977
1070
|
constructor(logs) {
|
|
978
1071
|
super("6088: Invalid dex program id");
|
|
979
1072
|
this.logs = logs;
|
|
980
|
-
this.code = 6088;
|
|
981
|
-
this.name = "InvalidDexProgramId";
|
|
982
|
-
this.msg = "Invalid dex program id";
|
|
983
1073
|
}
|
|
984
1074
|
}
|
|
985
1075
|
exports.InvalidDexProgramId = InvalidDexProgramId;
|
|
986
|
-
InvalidDexProgramId.code = 6088;
|
|
987
1076
|
class StrategyDepositBlocked extends Error {
|
|
1077
|
+
logs;
|
|
1078
|
+
static code = 6089;
|
|
1079
|
+
code = 6089;
|
|
1080
|
+
name = "StrategyDepositBlocked";
|
|
1081
|
+
msg = "Strategy deposit is currently blocked";
|
|
988
1082
|
constructor(logs) {
|
|
989
1083
|
super("6089: Strategy deposit is currently blocked");
|
|
990
1084
|
this.logs = logs;
|
|
991
|
-
this.code = 6089;
|
|
992
|
-
this.name = "StrategyDepositBlocked";
|
|
993
|
-
this.msg = "Strategy deposit is currently blocked";
|
|
994
1085
|
}
|
|
995
1086
|
}
|
|
996
1087
|
exports.StrategyDepositBlocked = StrategyDepositBlocked;
|
|
997
|
-
StrategyDepositBlocked.code = 6089;
|
|
998
1088
|
class StrategyInvestBlocked extends Error {
|
|
1089
|
+
logs;
|
|
1090
|
+
static code = 6090;
|
|
1091
|
+
code = 6090;
|
|
1092
|
+
name = "StrategyInvestBlocked";
|
|
1093
|
+
msg = "Strategy invest is currently blocked";
|
|
999
1094
|
constructor(logs) {
|
|
1000
1095
|
super("6090: Strategy invest is currently blocked");
|
|
1001
1096
|
this.logs = logs;
|
|
1002
|
-
this.code = 6090;
|
|
1003
|
-
this.name = "StrategyInvestBlocked";
|
|
1004
|
-
this.msg = "Strategy invest is currently blocked";
|
|
1005
1097
|
}
|
|
1006
1098
|
}
|
|
1007
1099
|
exports.StrategyInvestBlocked = StrategyInvestBlocked;
|
|
1008
|
-
StrategyInvestBlocked.code = 6090;
|
|
1009
1100
|
class StrategyWithdrawBlocked extends Error {
|
|
1101
|
+
logs;
|
|
1102
|
+
static code = 6091;
|
|
1103
|
+
code = 6091;
|
|
1104
|
+
name = "StrategyWithdrawBlocked";
|
|
1105
|
+
msg = "Strategy withdraw is currently blocked";
|
|
1010
1106
|
constructor(logs) {
|
|
1011
1107
|
super("6091: Strategy withdraw is currently blocked");
|
|
1012
1108
|
this.logs = logs;
|
|
1013
|
-
this.code = 6091;
|
|
1014
|
-
this.name = "StrategyWithdrawBlocked";
|
|
1015
|
-
this.msg = "Strategy withdraw is currently blocked";
|
|
1016
1109
|
}
|
|
1017
1110
|
}
|
|
1018
1111
|
exports.StrategyWithdrawBlocked = StrategyWithdrawBlocked;
|
|
1019
|
-
StrategyWithdrawBlocked.code = 6091;
|
|
1020
1112
|
class WrongSwapVaultDirection extends Error {
|
|
1113
|
+
logs;
|
|
1114
|
+
static code = 6092;
|
|
1115
|
+
code = 6092;
|
|
1116
|
+
name = "WrongSwapVaultDirection";
|
|
1117
|
+
msg = "Vault swap can't be performed in the required direction";
|
|
1021
1118
|
constructor(logs) {
|
|
1022
1119
|
super("6092: Vault swap can't be performed in the required direction");
|
|
1023
1120
|
this.logs = logs;
|
|
1024
|
-
this.code = 6092;
|
|
1025
|
-
this.name = "WrongSwapVaultDirection";
|
|
1026
|
-
this.msg = "Vault swap can't be performed in the required direction";
|
|
1027
1121
|
}
|
|
1028
1122
|
}
|
|
1029
1123
|
exports.WrongSwapVaultDirection = WrongSwapVaultDirection;
|
|
1030
|
-
WrongSwapVaultDirection.code = 6092;
|
|
1031
1124
|
class SwapVaultsTooBig extends Error {
|
|
1125
|
+
logs;
|
|
1126
|
+
static code = 6093;
|
|
1127
|
+
code = 6093;
|
|
1128
|
+
name = "SwapVaultsTooBig";
|
|
1129
|
+
msg = "Provided amount for vault swap is over the limit";
|
|
1032
1130
|
constructor(logs) {
|
|
1033
1131
|
super("6093: Provided amount for vault swap is over the limit");
|
|
1034
1132
|
this.logs = logs;
|
|
1035
|
-
this.code = 6093;
|
|
1036
|
-
this.name = "SwapVaultsTooBig";
|
|
1037
|
-
this.msg = "Provided amount for vault swap is over the limit";
|
|
1038
1133
|
}
|
|
1039
1134
|
}
|
|
1040
1135
|
exports.SwapVaultsTooBig = SwapVaultsTooBig;
|
|
1041
|
-
SwapVaultsTooBig.code = 6093;
|
|
1042
1136
|
class SwapVaultsCashOutputBelowMinimum extends Error {
|
|
1137
|
+
logs;
|
|
1138
|
+
static code = 6094;
|
|
1139
|
+
code = 6094;
|
|
1140
|
+
name = "SwapVaultsCashOutputBelowMinimum";
|
|
1141
|
+
msg = "Token out for cash based vault swap is below minimum expected";
|
|
1043
1142
|
constructor(logs) {
|
|
1044
1143
|
super("6094: Token out for cash based vault swap is below minimum expected");
|
|
1045
1144
|
this.logs = logs;
|
|
1046
|
-
this.code = 6094;
|
|
1047
|
-
this.name = "SwapVaultsCashOutputBelowMinimum";
|
|
1048
|
-
this.msg = "Token out for cash based vault swap is below minimum expected";
|
|
1049
1145
|
}
|
|
1050
1146
|
}
|
|
1051
1147
|
exports.SwapVaultsCashOutputBelowMinimum = SwapVaultsCashOutputBelowMinimum;
|
|
1052
|
-
SwapVaultsCashOutputBelowMinimum.code = 6094;
|
|
1053
1148
|
class FlashIxsNotEnded extends Error {
|
|
1149
|
+
logs;
|
|
1150
|
+
static code = 6095;
|
|
1151
|
+
code = 6095;
|
|
1152
|
+
name = "FlashIxsNotEnded";
|
|
1153
|
+
msg = "Flash ixs initiated without the closing ix in the transaction";
|
|
1054
1154
|
constructor(logs) {
|
|
1055
1155
|
super("6095: Flash ixs initiated without the closing ix in the transaction");
|
|
1056
1156
|
this.logs = logs;
|
|
1057
|
-
this.code = 6095;
|
|
1058
|
-
this.name = "FlashIxsNotEnded";
|
|
1059
|
-
this.msg = "Flash ixs initiated without the closing ix in the transaction";
|
|
1060
1157
|
}
|
|
1061
1158
|
}
|
|
1062
1159
|
exports.FlashIxsNotEnded = FlashIxsNotEnded;
|
|
1063
|
-
FlashIxsNotEnded.code = 6095;
|
|
1064
1160
|
class FlashTxWithUnexpectedIxs extends Error {
|
|
1161
|
+
logs;
|
|
1162
|
+
static code = 6096;
|
|
1163
|
+
code = 6096;
|
|
1164
|
+
name = "FlashTxWithUnexpectedIxs";
|
|
1165
|
+
msg = "Some unexpected instructions are present in the tx. Either before or after the flash ixs, or some ix target the same program between";
|
|
1065
1166
|
constructor(logs) {
|
|
1066
1167
|
super("6096: Some unexpected instructions are present in the tx. Either before or after the flash ixs, or some ix target the same program between");
|
|
1067
1168
|
this.logs = logs;
|
|
1068
|
-
this.code = 6096;
|
|
1069
|
-
this.name = "FlashTxWithUnexpectedIxs";
|
|
1070
|
-
this.msg = "Some unexpected instructions are present in the tx. Either before or after the flash ixs, or some ix target the same program between";
|
|
1071
1169
|
}
|
|
1072
1170
|
}
|
|
1073
1171
|
exports.FlashTxWithUnexpectedIxs = FlashTxWithUnexpectedIxs;
|
|
1074
|
-
FlashTxWithUnexpectedIxs.code = 6096;
|
|
1075
1172
|
class FlashIxsAccountMismatch extends Error {
|
|
1173
|
+
logs;
|
|
1174
|
+
static code = 6097;
|
|
1175
|
+
code = 6097;
|
|
1176
|
+
name = "FlashIxsAccountMismatch";
|
|
1177
|
+
msg = "Some accounts differ between the two flash ixs";
|
|
1076
1178
|
constructor(logs) {
|
|
1077
1179
|
super("6097: Some accounts differ between the two flash ixs");
|
|
1078
1180
|
this.logs = logs;
|
|
1079
|
-
this.code = 6097;
|
|
1080
|
-
this.name = "FlashIxsAccountMismatch";
|
|
1081
|
-
this.msg = "Some accounts differ between the two flash ixs";
|
|
1082
1181
|
}
|
|
1083
1182
|
}
|
|
1084
1183
|
exports.FlashIxsAccountMismatch = FlashIxsAccountMismatch;
|
|
1085
|
-
FlashIxsAccountMismatch.code = 6097;
|
|
1086
1184
|
class FlashIxsIncludeScope extends Error {
|
|
1185
|
+
logs;
|
|
1186
|
+
static code = 6098;
|
|
1187
|
+
code = 6098;
|
|
1188
|
+
name = "FlashIxsIncludeScope";
|
|
1189
|
+
msg = "A scope ix is present in a flash tx";
|
|
1087
1190
|
constructor(logs) {
|
|
1088
1191
|
super("6098: A scope ix is present in a flash tx");
|
|
1089
1192
|
this.logs = logs;
|
|
1090
|
-
this.code = 6098;
|
|
1091
|
-
this.name = "FlashIxsIncludeScope";
|
|
1092
|
-
this.msg = "A scope ix is present in a flash tx";
|
|
1093
1193
|
}
|
|
1094
1194
|
}
|
|
1095
1195
|
exports.FlashIxsIncludeScope = FlashIxsIncludeScope;
|
|
1096
|
-
FlashIxsIncludeScope.code = 6098;
|
|
1097
1196
|
class FlashVaultSwapBlocked extends Error {
|
|
1197
|
+
logs;
|
|
1198
|
+
static code = 6099;
|
|
1199
|
+
code = 6099;
|
|
1200
|
+
name = "FlashVaultSwapBlocked";
|
|
1201
|
+
msg = "Flash vault swap is blocked on this strategy";
|
|
1098
1202
|
constructor(logs) {
|
|
1099
1203
|
super("6099: Flash vault swap is blocked on this strategy");
|
|
1100
1204
|
this.logs = logs;
|
|
1101
|
-
this.code = 6099;
|
|
1102
|
-
this.name = "FlashVaultSwapBlocked";
|
|
1103
|
-
this.msg = "Flash vault swap is blocked on this strategy";
|
|
1104
1205
|
}
|
|
1105
1206
|
}
|
|
1106
1207
|
exports.FlashVaultSwapBlocked = FlashVaultSwapBlocked;
|
|
1107
|
-
FlashVaultSwapBlocked.code = 6099;
|
|
1108
1208
|
class FlashVaultSwapWrongAmountToLeave extends Error {
|
|
1209
|
+
logs;
|
|
1210
|
+
static code = 6100;
|
|
1211
|
+
code = 6100;
|
|
1212
|
+
name = "FlashVaultSwapWrongAmountToLeave";
|
|
1213
|
+
msg = "Unexpected amount of tokens in ata prior flash vault swap (wrong amount_to_leave_to_user)";
|
|
1109
1214
|
constructor(logs) {
|
|
1110
1215
|
super("6100: Unexpected amount of tokens in ata prior flash vault swap (wrong amount_to_leave_to_user)");
|
|
1111
1216
|
this.logs = logs;
|
|
1112
|
-
this.code = 6100;
|
|
1113
|
-
this.name = "FlashVaultSwapWrongAmountToLeave";
|
|
1114
|
-
this.msg = "Unexpected amount of tokens in ata prior flash vault swap (wrong amount_to_leave_to_user)";
|
|
1115
1217
|
}
|
|
1116
1218
|
}
|
|
1117
1219
|
exports.FlashVaultSwapWrongAmountToLeave = FlashVaultSwapWrongAmountToLeave;
|
|
1118
|
-
FlashVaultSwapWrongAmountToLeave.code = 6100;
|
|
1119
1220
|
class DepositLessThanMinimum extends Error {
|
|
1221
|
+
logs;
|
|
1222
|
+
static code = 6101;
|
|
1223
|
+
code = 6101;
|
|
1224
|
+
name = "DepositLessThanMinimum";
|
|
1225
|
+
msg = "Deposit amount less than minimal allowed";
|
|
1120
1226
|
constructor(logs) {
|
|
1121
1227
|
super("6101: Deposit amount less than minimal allowed");
|
|
1122
1228
|
this.logs = logs;
|
|
1123
|
-
this.code = 6101;
|
|
1124
|
-
this.name = "DepositLessThanMinimum";
|
|
1125
|
-
this.msg = "Deposit amount less than minimal allowed";
|
|
1126
1229
|
}
|
|
1127
1230
|
}
|
|
1128
1231
|
exports.DepositLessThanMinimum = DepositLessThanMinimum;
|
|
1129
|
-
DepositLessThanMinimum.code = 6101;
|
|
1130
1232
|
class DepositWithoutInvestDisallowed extends Error {
|
|
1233
|
+
logs;
|
|
1234
|
+
static code = 6102;
|
|
1235
|
+
code = 6102;
|
|
1236
|
+
name = "DepositWithoutInvestDisallowed";
|
|
1237
|
+
msg = "Cannot deposit without invest";
|
|
1131
1238
|
constructor(logs) {
|
|
1132
1239
|
super("6102: Cannot deposit without invest");
|
|
1133
1240
|
this.logs = logs;
|
|
1134
|
-
this.code = 6102;
|
|
1135
|
-
this.name = "DepositWithoutInvestDisallowed";
|
|
1136
|
-
this.msg = "Cannot deposit without invest";
|
|
1137
1241
|
}
|
|
1138
1242
|
}
|
|
1139
1243
|
exports.DepositWithoutInvestDisallowed = DepositWithoutInvestDisallowed;
|
|
1140
|
-
DepositWithoutInvestDisallowed.code = 6102;
|
|
1141
1244
|
class InvalidScopeChain extends Error {
|
|
1245
|
+
logs;
|
|
1246
|
+
static code = 6103;
|
|
1247
|
+
code = 6103;
|
|
1248
|
+
name = "InvalidScopeChain";
|
|
1249
|
+
msg = "Invalid Scope Chain";
|
|
1142
1250
|
constructor(logs) {
|
|
1143
1251
|
super("6103: Invalid Scope Chain");
|
|
1144
1252
|
this.logs = logs;
|
|
1145
|
-
this.code = 6103;
|
|
1146
|
-
this.name = "InvalidScopeChain";
|
|
1147
|
-
this.msg = "Invalid Scope Chain";
|
|
1148
1253
|
}
|
|
1149
1254
|
}
|
|
1150
1255
|
exports.InvalidScopeChain = InvalidScopeChain;
|
|
1151
|
-
InvalidScopeChain.code = 6103;
|
|
1152
1256
|
class InvalidScopeTWAPChain extends Error {
|
|
1257
|
+
logs;
|
|
1258
|
+
static code = 6104;
|
|
1259
|
+
code = 6104;
|
|
1260
|
+
name = "InvalidScopeTWAPChain";
|
|
1261
|
+
msg = "Invalid Scope TWAP Chain";
|
|
1153
1262
|
constructor(logs) {
|
|
1154
1263
|
super("6104: Invalid Scope TWAP Chain");
|
|
1155
1264
|
this.logs = logs;
|
|
1156
|
-
this.code = 6104;
|
|
1157
|
-
this.name = "InvalidScopeTWAPChain";
|
|
1158
|
-
this.msg = "Invalid Scope TWAP Chain";
|
|
1159
1265
|
}
|
|
1160
1266
|
}
|
|
1161
1267
|
exports.InvalidScopeTWAPChain = InvalidScopeTWAPChain;
|
|
1162
|
-
InvalidScopeTWAPChain.code = 6104;
|
|
1163
1268
|
class PositionHasRemainingLiquidity extends Error {
|
|
1269
|
+
logs;
|
|
1270
|
+
static code = 6105;
|
|
1271
|
+
code = 6105;
|
|
1272
|
+
name = "PositionHasRemainingLiquidity";
|
|
1273
|
+
msg = "Existent position has liquidity, new position creation is forbidden";
|
|
1164
1274
|
constructor(logs) {
|
|
1165
1275
|
super("6105: Existent position has liquidity, new position creation is forbidden");
|
|
1166
1276
|
this.logs = logs;
|
|
1167
|
-
this.code = 6105;
|
|
1168
|
-
this.name = "PositionHasRemainingLiquidity";
|
|
1169
|
-
this.msg = "Existent position has liquidity, new position creation is forbidden";
|
|
1170
1277
|
}
|
|
1171
1278
|
}
|
|
1172
1279
|
exports.PositionHasRemainingLiquidity = PositionHasRemainingLiquidity;
|
|
1173
|
-
PositionHasRemainingLiquidity.code = 6105;
|
|
1174
1280
|
class PoolRebalancing extends Error {
|
|
1281
|
+
logs;
|
|
1282
|
+
static code = 6106;
|
|
1283
|
+
code = 6106;
|
|
1284
|
+
name = "PoolRebalancing";
|
|
1285
|
+
msg = "Deposit is not allowed as pool is rebalancing";
|
|
1175
1286
|
constructor(logs) {
|
|
1176
1287
|
super("6106: Deposit is not allowed as pool is rebalancing");
|
|
1177
1288
|
this.logs = logs;
|
|
1178
|
-
this.code = 6106;
|
|
1179
|
-
this.name = "PoolRebalancing";
|
|
1180
|
-
this.msg = "Deposit is not allowed as pool is rebalancing";
|
|
1181
1289
|
}
|
|
1182
1290
|
}
|
|
1183
1291
|
exports.PoolRebalancing = PoolRebalancing;
|
|
1184
|
-
PoolRebalancing.code = 6106;
|
|
1185
1292
|
class PermissionlessRebalancingDisabled extends Error {
|
|
1293
|
+
logs;
|
|
1294
|
+
static code = 6107;
|
|
1295
|
+
code = 6107;
|
|
1296
|
+
name = "PermissionlessRebalancingDisabled";
|
|
1297
|
+
msg = "Permissionless rebalancing is disabled";
|
|
1186
1298
|
constructor(logs) {
|
|
1187
1299
|
super("6107: Permissionless rebalancing is disabled");
|
|
1188
1300
|
this.logs = logs;
|
|
1189
|
-
this.code = 6107;
|
|
1190
|
-
this.name = "PermissionlessRebalancingDisabled";
|
|
1191
|
-
this.msg = "Permissionless rebalancing is disabled";
|
|
1192
1301
|
}
|
|
1193
1302
|
}
|
|
1194
1303
|
exports.PermissionlessRebalancingDisabled = PermissionlessRebalancingDisabled;
|
|
1195
|
-
PermissionlessRebalancingDisabled.code = 6107;
|
|
1196
1304
|
class ManualRebalanceInvalidOwner extends Error {
|
|
1305
|
+
logs;
|
|
1306
|
+
static code = 6108;
|
|
1307
|
+
code = 6108;
|
|
1308
|
+
name = "ManualRebalanceInvalidOwner";
|
|
1309
|
+
msg = "Only the owner of the strategy can manually rebalance it";
|
|
1197
1310
|
constructor(logs) {
|
|
1198
1311
|
super("6108: Only the owner of the strategy can manually rebalance it");
|
|
1199
1312
|
this.logs = logs;
|
|
1200
|
-
this.code = 6108;
|
|
1201
|
-
this.name = "ManualRebalanceInvalidOwner";
|
|
1202
|
-
this.msg = "Only the owner of the strategy can manually rebalance it";
|
|
1203
1313
|
}
|
|
1204
1314
|
}
|
|
1205
1315
|
exports.ManualRebalanceInvalidOwner = ManualRebalanceInvalidOwner;
|
|
1206
|
-
ManualRebalanceInvalidOwner.code = 6108;
|
|
1207
1316
|
class InvalidRebalanceType extends Error {
|
|
1317
|
+
logs;
|
|
1318
|
+
static code = 6109;
|
|
1319
|
+
code = 6109;
|
|
1320
|
+
name = "InvalidRebalanceType";
|
|
1321
|
+
msg = "Invalid rebalance type for the strategy";
|
|
1208
1322
|
constructor(logs) {
|
|
1209
1323
|
super("6109: Invalid rebalance type for the strategy");
|
|
1210
1324
|
this.logs = logs;
|
|
1211
|
-
this.code = 6109;
|
|
1212
|
-
this.name = "InvalidRebalanceType";
|
|
1213
|
-
this.msg = "Invalid rebalance type for the strategy";
|
|
1214
1325
|
}
|
|
1215
1326
|
}
|
|
1216
1327
|
exports.InvalidRebalanceType = InvalidRebalanceType;
|
|
1217
|
-
InvalidRebalanceType.code = 6109;
|
|
1218
1328
|
class NoRebalanceNecessary extends Error {
|
|
1329
|
+
logs;
|
|
1330
|
+
static code = 6110;
|
|
1331
|
+
code = 6110;
|
|
1332
|
+
name = "NoRebalanceNecessary";
|
|
1333
|
+
msg = "No rebalance necessary based on current rebalance type/parameters";
|
|
1219
1334
|
constructor(logs) {
|
|
1220
1335
|
super("6110: No rebalance necessary based on current rebalance type/parameters");
|
|
1221
1336
|
this.logs = logs;
|
|
1222
|
-
this.code = 6110;
|
|
1223
|
-
this.name = "NoRebalanceNecessary";
|
|
1224
|
-
this.msg = "No rebalance necessary based on current rebalance type/parameters";
|
|
1225
1337
|
}
|
|
1226
1338
|
}
|
|
1227
1339
|
exports.NoRebalanceNecessary = NoRebalanceNecessary;
|
|
1228
|
-
NoRebalanceNecessary.code = 6110;
|
|
1229
1340
|
class TickArraysDoNotMatchRebalance extends Error {
|
|
1341
|
+
logs;
|
|
1342
|
+
static code = 6111;
|
|
1343
|
+
code = 6111;
|
|
1344
|
+
name = "TickArraysDoNotMatchRebalance";
|
|
1345
|
+
msg = "The given tick arrays do not match the rebalance result";
|
|
1230
1346
|
constructor(logs) {
|
|
1231
1347
|
super("6111: The given tick arrays do not match the rebalance result");
|
|
1232
1348
|
this.logs = logs;
|
|
1233
|
-
this.code = 6111;
|
|
1234
|
-
this.name = "TickArraysDoNotMatchRebalance";
|
|
1235
|
-
this.msg = "The given tick arrays do not match the rebalance result";
|
|
1236
1349
|
}
|
|
1237
1350
|
}
|
|
1238
1351
|
exports.TickArraysDoNotMatchRebalance = TickArraysDoNotMatchRebalance;
|
|
1239
|
-
TickArraysDoNotMatchRebalance.code = 6111;
|
|
1240
1352
|
class StrategyPositionNotValid extends Error {
|
|
1353
|
+
logs;
|
|
1354
|
+
static code = 6112;
|
|
1355
|
+
code = 6112;
|
|
1356
|
+
name = "StrategyPositionNotValid";
|
|
1357
|
+
msg = "Expected strategy position to be initialized";
|
|
1241
1358
|
constructor(logs) {
|
|
1242
1359
|
super("6112: Expected strategy position to be initialized");
|
|
1243
1360
|
this.logs = logs;
|
|
1244
|
-
this.code = 6112;
|
|
1245
|
-
this.name = "StrategyPositionNotValid";
|
|
1246
|
-
this.msg = "Expected strategy position to be initialized";
|
|
1247
1361
|
}
|
|
1248
1362
|
}
|
|
1249
1363
|
exports.StrategyPositionNotValid = StrategyPositionNotValid;
|
|
1250
|
-
StrategyPositionNotValid.code = 6112;
|
|
1251
1364
|
class CouldNotDeserializeRebalanceState extends Error {
|
|
1365
|
+
logs;
|
|
1366
|
+
static code = 6113;
|
|
1367
|
+
code = 6113;
|
|
1368
|
+
name = "CouldNotDeserializeRebalanceState";
|
|
1369
|
+
msg = "Rebalance state could not be deserialized";
|
|
1252
1370
|
constructor(logs) {
|
|
1253
1371
|
super("6113: Rebalance state could not be deserialized");
|
|
1254
1372
|
this.logs = logs;
|
|
1255
|
-
this.code = 6113;
|
|
1256
|
-
this.name = "CouldNotDeserializeRebalanceState";
|
|
1257
|
-
this.msg = "Rebalance state could not be deserialized";
|
|
1258
1373
|
}
|
|
1259
1374
|
}
|
|
1260
1375
|
exports.CouldNotDeserializeRebalanceState = CouldNotDeserializeRebalanceState;
|
|
1261
|
-
CouldNotDeserializeRebalanceState.code = 6113;
|
|
1262
1376
|
class CouldNotSerializeRebalanceState extends Error {
|
|
1377
|
+
logs;
|
|
1378
|
+
static code = 6114;
|
|
1379
|
+
code = 6114;
|
|
1380
|
+
name = "CouldNotSerializeRebalanceState";
|
|
1381
|
+
msg = "Rebalance state could not be serialized";
|
|
1263
1382
|
constructor(logs) {
|
|
1264
1383
|
super("6114: Rebalance state could not be serialized");
|
|
1265
1384
|
this.logs = logs;
|
|
1266
|
-
this.code = 6114;
|
|
1267
|
-
this.name = "CouldNotSerializeRebalanceState";
|
|
1268
|
-
this.msg = "Rebalance state could not be serialized";
|
|
1269
1385
|
}
|
|
1270
1386
|
}
|
|
1271
1387
|
exports.CouldNotSerializeRebalanceState = CouldNotSerializeRebalanceState;
|
|
1272
|
-
CouldNotSerializeRebalanceState.code = 6114;
|
|
1273
1388
|
class CouldNotDeserializeRebalanceParams extends Error {
|
|
1389
|
+
logs;
|
|
1390
|
+
static code = 6115;
|
|
1391
|
+
code = 6115;
|
|
1392
|
+
name = "CouldNotDeserializeRebalanceParams";
|
|
1393
|
+
msg = "Rebalance params could not be deserialized";
|
|
1274
1394
|
constructor(logs) {
|
|
1275
1395
|
super("6115: Rebalance params could not be deserialized");
|
|
1276
1396
|
this.logs = logs;
|
|
1277
|
-
this.code = 6115;
|
|
1278
|
-
this.name = "CouldNotDeserializeRebalanceParams";
|
|
1279
|
-
this.msg = "Rebalance params could not be deserialized";
|
|
1280
1397
|
}
|
|
1281
1398
|
}
|
|
1282
1399
|
exports.CouldNotDeserializeRebalanceParams = CouldNotDeserializeRebalanceParams;
|
|
1283
|
-
CouldNotDeserializeRebalanceParams.code = 6115;
|
|
1284
1400
|
class NotEnoughTokensForRatio extends Error {
|
|
1401
|
+
logs;
|
|
1402
|
+
static code = 6116;
|
|
1403
|
+
code = 6116;
|
|
1404
|
+
name = "NotEnoughTokensForRatio";
|
|
1405
|
+
msg = "Deposit is not allowed as token amounts are not enough to match our holdings ratio";
|
|
1285
1406
|
constructor(logs) {
|
|
1286
1407
|
super("6116: Deposit is not allowed as token amounts are not enough to match our holdings ratio");
|
|
1287
1408
|
this.logs = logs;
|
|
1288
|
-
this.code = 6116;
|
|
1289
|
-
this.name = "NotEnoughTokensForRatio";
|
|
1290
|
-
this.msg = "Deposit is not allowed as token amounts are not enough to match our holdings ratio";
|
|
1291
1409
|
}
|
|
1292
1410
|
}
|
|
1293
1411
|
exports.NotEnoughTokensForRatio = NotEnoughTokensForRatio;
|
|
1294
|
-
NotEnoughTokensForRatio.code = 6116;
|
|
1295
1412
|
class AmountsRepresentZeroShares extends Error {
|
|
1413
|
+
logs;
|
|
1414
|
+
static code = 6117;
|
|
1415
|
+
code = 6117;
|
|
1416
|
+
name = "AmountsRepresentZeroShares";
|
|
1417
|
+
msg = "The provided amounts are too small";
|
|
1296
1418
|
constructor(logs) {
|
|
1297
1419
|
super("6117: The provided amounts are too small");
|
|
1298
1420
|
this.logs = logs;
|
|
1299
|
-
this.code = 6117;
|
|
1300
|
-
this.name = "AmountsRepresentZeroShares";
|
|
1301
|
-
this.msg = "The provided amounts are too small";
|
|
1302
1421
|
}
|
|
1303
1422
|
}
|
|
1304
1423
|
exports.AmountsRepresentZeroShares = AmountsRepresentZeroShares;
|
|
1305
|
-
AmountsRepresentZeroShares.code = 6117;
|
|
1306
1424
|
class MaxLossExceeded extends Error {
|
|
1425
|
+
logs;
|
|
1426
|
+
static code = 6118;
|
|
1427
|
+
code = 6118;
|
|
1428
|
+
name = "MaxLossExceeded";
|
|
1429
|
+
msg = "Rouding errors exceed the maximal loss tolerance";
|
|
1307
1430
|
constructor(logs) {
|
|
1308
1431
|
super("6118: Rouding errors exceed the maximal loss tolerance");
|
|
1309
1432
|
this.logs = logs;
|
|
1310
|
-
this.code = 6118;
|
|
1311
|
-
this.name = "MaxLossExceeded";
|
|
1312
|
-
this.msg = "Rouding errors exceed the maximal loss tolerance";
|
|
1313
1433
|
}
|
|
1314
1434
|
}
|
|
1315
1435
|
exports.MaxLossExceeded = MaxLossExceeded;
|
|
1316
|
-
MaxLossExceeded.code = 6118;
|
|
1317
1436
|
class RewardNotStrategyToken extends Error {
|
|
1437
|
+
logs;
|
|
1438
|
+
static code = 6119;
|
|
1439
|
+
code = 6119;
|
|
1440
|
+
name = "RewardNotStrategyToken";
|
|
1441
|
+
msg = "Reward does not match strategy token";
|
|
1318
1442
|
constructor(logs) {
|
|
1319
1443
|
super("6119: Reward does not match strategy token");
|
|
1320
1444
|
this.logs = logs;
|
|
1321
|
-
this.code = 6119;
|
|
1322
|
-
this.name = "RewardNotStrategyToken";
|
|
1323
|
-
this.msg = "Reward does not match strategy token";
|
|
1324
1445
|
}
|
|
1325
1446
|
}
|
|
1326
1447
|
exports.RewardNotStrategyToken = RewardNotStrategyToken;
|
|
1327
|
-
RewardNotStrategyToken.code = 6119;
|
|
1328
1448
|
class DecimalToU64ConversionFailed extends Error {
|
|
1449
|
+
logs;
|
|
1450
|
+
static code = 6120;
|
|
1451
|
+
code = 6120;
|
|
1452
|
+
name = "DecimalToU64ConversionFailed";
|
|
1453
|
+
msg = "Decimal to u64 conversion failed";
|
|
1329
1454
|
constructor(logs) {
|
|
1330
1455
|
super("6120: Decimal to u64 conversion failed");
|
|
1331
1456
|
this.logs = logs;
|
|
1332
|
-
this.code = 6120;
|
|
1333
|
-
this.name = "DecimalToU64ConversionFailed";
|
|
1334
|
-
this.msg = "Decimal to u64 conversion failed";
|
|
1335
1457
|
}
|
|
1336
1458
|
}
|
|
1337
1459
|
exports.DecimalToU64ConversionFailed = DecimalToU64ConversionFailed;
|
|
1338
|
-
DecimalToU64ConversionFailed.code = 6120;
|
|
1339
1460
|
class DecimalOperationFailed extends Error {
|
|
1461
|
+
logs;
|
|
1462
|
+
static code = 6121;
|
|
1463
|
+
code = 6121;
|
|
1464
|
+
name = "DecimalOperationFailed";
|
|
1465
|
+
msg = "Decimal operation failed";
|
|
1340
1466
|
constructor(logs) {
|
|
1341
1467
|
super("6121: Decimal operation failed");
|
|
1342
1468
|
this.logs = logs;
|
|
1343
|
-
this.code = 6121;
|
|
1344
|
-
this.name = "DecimalOperationFailed";
|
|
1345
|
-
this.msg = "Decimal operation failed";
|
|
1346
1469
|
}
|
|
1347
1470
|
}
|
|
1348
1471
|
exports.DecimalOperationFailed = DecimalOperationFailed;
|
|
1349
|
-
DecimalOperationFailed.code = 6121;
|
|
1350
1472
|
class VaultBalancesCausesWrongSharesIssuance extends Error {
|
|
1473
|
+
logs;
|
|
1474
|
+
static code = 6122;
|
|
1475
|
+
code = 6122;
|
|
1476
|
+
name = "VaultBalancesCausesWrongSharesIssuance";
|
|
1477
|
+
msg = "Deposit is not allowed as the strategy is not fully invested in the pool ";
|
|
1351
1478
|
constructor(logs) {
|
|
1352
1479
|
super("6122: Deposit is not allowed as the strategy is not fully invested in the pool ");
|
|
1353
1480
|
this.logs = logs;
|
|
1354
|
-
this.code = 6122;
|
|
1355
|
-
this.name = "VaultBalancesCausesWrongSharesIssuance";
|
|
1356
|
-
this.msg = "Deposit is not allowed as the strategy is not fully invested in the pool ";
|
|
1357
1481
|
}
|
|
1358
1482
|
}
|
|
1359
1483
|
exports.VaultBalancesCausesWrongSharesIssuance = VaultBalancesCausesWrongSharesIssuance;
|
|
1360
|
-
VaultBalancesCausesWrongSharesIssuance.code = 6122;
|
|
1361
1484
|
class TokenDisabled extends Error {
|
|
1485
|
+
logs;
|
|
1486
|
+
static code = 6123;
|
|
1487
|
+
code = 6123;
|
|
1488
|
+
name = "TokenDisabled";
|
|
1489
|
+
msg = "Token cannot be used in strategy creation";
|
|
1362
1490
|
constructor(logs) {
|
|
1363
1491
|
super("6123: Token cannot be used in strategy creation");
|
|
1364
1492
|
this.logs = logs;
|
|
1365
|
-
this.code = 6123;
|
|
1366
|
-
this.name = "TokenDisabled";
|
|
1367
|
-
this.msg = "Token cannot be used in strategy creation";
|
|
1368
1493
|
}
|
|
1369
1494
|
}
|
|
1370
1495
|
exports.TokenDisabled = TokenDisabled;
|
|
1371
|
-
TokenDisabled.code = 6123;
|
|
1372
1496
|
class InvalidReferencePriceType extends Error {
|
|
1497
|
+
logs;
|
|
1498
|
+
static code = 6124;
|
|
1499
|
+
code = 6124;
|
|
1500
|
+
name = "InvalidReferencePriceType";
|
|
1501
|
+
msg = "Invalid reference price type";
|
|
1373
1502
|
constructor(logs) {
|
|
1374
1503
|
super("6124: Invalid reference price type");
|
|
1375
1504
|
this.logs = logs;
|
|
1376
|
-
this.code = 6124;
|
|
1377
|
-
this.name = "InvalidReferencePriceType";
|
|
1378
|
-
this.msg = "Invalid reference price type";
|
|
1379
1505
|
}
|
|
1380
1506
|
}
|
|
1381
1507
|
exports.InvalidReferencePriceType = InvalidReferencePriceType;
|
|
1382
|
-
InvalidReferencePriceType.code = 6124;
|
|
1383
1508
|
class TokenToSwapNotEnough extends Error {
|
|
1509
|
+
logs;
|
|
1510
|
+
static code = 6125;
|
|
1511
|
+
code = 6125;
|
|
1512
|
+
name = "TokenToSwapNotEnough";
|
|
1513
|
+
msg = "Token amount to be swapped is not enough";
|
|
1384
1514
|
constructor(logs) {
|
|
1385
1515
|
super("6125: Token amount to be swapped is not enough");
|
|
1386
1516
|
this.logs = logs;
|
|
1387
|
-
this.code = 6125;
|
|
1388
|
-
this.name = "TokenToSwapNotEnough";
|
|
1389
|
-
this.msg = "Token amount to be swapped is not enough";
|
|
1390
1517
|
}
|
|
1391
1518
|
}
|
|
1392
1519
|
exports.TokenToSwapNotEnough = TokenToSwapNotEnough;
|
|
1393
|
-
TokenToSwapNotEnough.code = 6125;
|
|
1394
1520
|
class TokenAccountBalanceMismatch extends Error {
|
|
1521
|
+
logs;
|
|
1522
|
+
static code = 6126;
|
|
1523
|
+
code = 6126;
|
|
1524
|
+
name = "TokenAccountBalanceMismatch";
|
|
1525
|
+
msg = "Token amount in ata is different than the expected amount";
|
|
1395
1526
|
constructor(logs) {
|
|
1396
1527
|
super("6126: Token amount in ata is different than the expected amount");
|
|
1397
1528
|
this.logs = logs;
|
|
1398
|
-
this.code = 6126;
|
|
1399
|
-
this.name = "TokenAccountBalanceMismatch";
|
|
1400
|
-
this.msg = "Token amount in ata is different than the expected amount";
|
|
1401
1529
|
}
|
|
1402
1530
|
}
|
|
1403
1531
|
exports.TokenAccountBalanceMismatch = TokenAccountBalanceMismatch;
|
|
1404
|
-
TokenAccountBalanceMismatch.code = 6126;
|
|
1405
1532
|
class UnexpectedProgramIdForPrerequisiteIx extends Error {
|
|
1533
|
+
logs;
|
|
1534
|
+
static code = 6127;
|
|
1535
|
+
code = 6127;
|
|
1536
|
+
name = "UnexpectedProgramIdForPrerequisiteIx";
|
|
1537
|
+
msg = "Unexpected programID for prerequisite ix";
|
|
1406
1538
|
constructor(logs) {
|
|
1407
1539
|
super("6127: Unexpected programID for prerequisite ix");
|
|
1408
1540
|
this.logs = logs;
|
|
1409
|
-
this.code = 6127;
|
|
1410
|
-
this.name = "UnexpectedProgramIdForPrerequisiteIx";
|
|
1411
|
-
this.msg = "Unexpected programID for prerequisite ix";
|
|
1412
1541
|
}
|
|
1413
1542
|
}
|
|
1414
1543
|
exports.UnexpectedProgramIdForPrerequisiteIx = UnexpectedProgramIdForPrerequisiteIx;
|
|
1415
|
-
UnexpectedProgramIdForPrerequisiteIx.code = 6127;
|
|
1416
1544
|
class ComputeFeesAndRewardsUpdateError extends Error {
|
|
1545
|
+
logs;
|
|
1546
|
+
static code = 6128;
|
|
1547
|
+
code = 6128;
|
|
1548
|
+
name = "ComputeFeesAndRewardsUpdateError";
|
|
1549
|
+
msg = "Got an error from the dex specific function while computing the fees/rewards update";
|
|
1417
1550
|
constructor(logs) {
|
|
1418
1551
|
super("6128: Got an error from the dex specific function while computing the fees/rewards update");
|
|
1419
1552
|
this.logs = logs;
|
|
1420
|
-
this.code = 6128;
|
|
1421
|
-
this.name = "ComputeFeesAndRewardsUpdateError";
|
|
1422
|
-
this.msg = "Got an error from the dex specific function while computing the fees/rewards update";
|
|
1423
1553
|
}
|
|
1424
1554
|
}
|
|
1425
1555
|
exports.ComputeFeesAndRewardsUpdateError = ComputeFeesAndRewardsUpdateError;
|
|
1426
|
-
ComputeFeesAndRewardsUpdateError.code = 6128;
|
|
1427
1556
|
class SharesNotZero extends Error {
|
|
1557
|
+
logs;
|
|
1558
|
+
static code = 6129;
|
|
1559
|
+
code = 6129;
|
|
1560
|
+
name = "SharesNotZero";
|
|
1561
|
+
msg = "There must be no shares issued when closing a strategy";
|
|
1428
1562
|
constructor(logs) {
|
|
1429
1563
|
super("6129: There must be no shares issued when closing a strategy");
|
|
1430
1564
|
this.logs = logs;
|
|
1431
|
-
this.code = 6129;
|
|
1432
|
-
this.name = "SharesNotZero";
|
|
1433
|
-
this.msg = "There must be no shares issued when closing a strategy";
|
|
1434
1565
|
}
|
|
1435
1566
|
}
|
|
1436
1567
|
exports.SharesNotZero = SharesNotZero;
|
|
1437
|
-
SharesNotZero.code = 6129;
|
|
1438
1568
|
class InvalidScopeStakingRateChain extends Error {
|
|
1569
|
+
logs;
|
|
1570
|
+
static code = 6130;
|
|
1571
|
+
code = 6130;
|
|
1572
|
+
name = "InvalidScopeStakingRateChain";
|
|
1573
|
+
msg = "Invalid Scope staking rate Chain";
|
|
1439
1574
|
constructor(logs) {
|
|
1440
1575
|
super("6130: Invalid Scope staking rate Chain");
|
|
1441
1576
|
this.logs = logs;
|
|
1442
|
-
this.code = 6130;
|
|
1443
|
-
this.name = "InvalidScopeStakingRateChain";
|
|
1444
|
-
this.msg = "Invalid Scope staking rate Chain";
|
|
1445
1577
|
}
|
|
1446
1578
|
}
|
|
1447
1579
|
exports.InvalidScopeStakingRateChain = InvalidScopeStakingRateChain;
|
|
1448
|
-
InvalidScopeStakingRateChain.code = 6130;
|
|
1449
1580
|
class StakingRateNotValid extends Error {
|
|
1581
|
+
logs;
|
|
1582
|
+
static code = 6131;
|
|
1583
|
+
code = 6131;
|
|
1584
|
+
name = "StakingRateNotValid";
|
|
1585
|
+
msg = "Staking rate (provided by Scope) is not valid";
|
|
1450
1586
|
constructor(logs) {
|
|
1451
1587
|
super("6131: Staking rate (provided by Scope) is not valid");
|
|
1452
1588
|
this.logs = logs;
|
|
1453
|
-
this.code = 6131;
|
|
1454
|
-
this.name = "StakingRateNotValid";
|
|
1455
|
-
this.msg = "Staking rate (provided by Scope) is not valid";
|
|
1456
1589
|
}
|
|
1457
1590
|
}
|
|
1458
1591
|
exports.StakingRateNotValid = StakingRateNotValid;
|
|
1459
|
-
StakingRateNotValid.code = 6131;
|
|
1460
1592
|
class DecimalToU128ConversionFailed extends Error {
|
|
1593
|
+
logs;
|
|
1594
|
+
static code = 6132;
|
|
1595
|
+
code = 6132;
|
|
1596
|
+
name = "DecimalToU128ConversionFailed";
|
|
1597
|
+
msg = "Decimal to u128 conversion failed";
|
|
1461
1598
|
constructor(logs) {
|
|
1462
1599
|
super("6132: Decimal to u128 conversion failed");
|
|
1463
1600
|
this.logs = logs;
|
|
1464
|
-
this.code = 6132;
|
|
1465
|
-
this.name = "DecimalToU128ConversionFailed";
|
|
1466
|
-
this.msg = "Decimal to u128 conversion failed";
|
|
1467
1601
|
}
|
|
1468
1602
|
}
|
|
1469
1603
|
exports.DecimalToU128ConversionFailed = DecimalToU128ConversionFailed;
|
|
1470
|
-
DecimalToU128ConversionFailed.code = 6132;
|
|
1471
1604
|
class DecimalNegativeSqrtRoot extends Error {
|
|
1605
|
+
logs;
|
|
1606
|
+
static code = 6133;
|
|
1607
|
+
code = 6133;
|
|
1608
|
+
name = "DecimalNegativeSqrtRoot";
|
|
1609
|
+
msg = "Decimal sqrt on negative number";
|
|
1472
1610
|
constructor(logs) {
|
|
1473
1611
|
super("6133: Decimal sqrt on negative number");
|
|
1474
1612
|
this.logs = logs;
|
|
1475
|
-
this.code = 6133;
|
|
1476
|
-
this.name = "DecimalNegativeSqrtRoot";
|
|
1477
|
-
this.msg = "Decimal sqrt on negative number";
|
|
1478
1613
|
}
|
|
1479
1614
|
}
|
|
1480
1615
|
exports.DecimalNegativeSqrtRoot = DecimalNegativeSqrtRoot;
|
|
1481
|
-
DecimalNegativeSqrtRoot.code = 6133;
|
|
1482
1616
|
class DriftingOppositeDirection extends Error {
|
|
1617
|
+
logs;
|
|
1618
|
+
static code = 6134;
|
|
1619
|
+
code = 6134;
|
|
1620
|
+
name = "DriftingOppositeDirection";
|
|
1621
|
+
msg = "Drifting strategy is moving in the opposite direction";
|
|
1483
1622
|
constructor(logs) {
|
|
1484
1623
|
super("6134: Drifting strategy is moving in the opposite direction");
|
|
1485
1624
|
this.logs = logs;
|
|
1486
|
-
this.code = 6134;
|
|
1487
|
-
this.name = "DriftingOppositeDirection";
|
|
1488
|
-
this.msg = "Drifting strategy is moving in the opposite direction";
|
|
1489
1625
|
}
|
|
1490
1626
|
}
|
|
1491
1627
|
exports.DriftingOppositeDirection = DriftingOppositeDirection;
|
|
1492
|
-
DriftingOppositeDirection.code = 6134;
|
|
1493
1628
|
class WrongRewardCollateralId extends Error {
|
|
1629
|
+
logs;
|
|
1630
|
+
static code = 6135;
|
|
1631
|
+
code = 6135;
|
|
1632
|
+
name = "WrongRewardCollateralId";
|
|
1633
|
+
msg = "Wrong reward collateral_id";
|
|
1494
1634
|
constructor(logs) {
|
|
1495
1635
|
super("6135: Wrong reward collateral_id");
|
|
1496
1636
|
this.logs = logs;
|
|
1497
|
-
this.code = 6135;
|
|
1498
|
-
this.name = "WrongRewardCollateralId";
|
|
1499
|
-
this.msg = "Wrong reward collateral_id";
|
|
1500
1637
|
}
|
|
1501
1638
|
}
|
|
1502
1639
|
exports.WrongRewardCollateralId = WrongRewardCollateralId;
|
|
1503
|
-
WrongRewardCollateralId.code = 6135;
|
|
1504
1640
|
class CollateralInfoAlreadyExists extends Error {
|
|
1641
|
+
logs;
|
|
1642
|
+
static code = 6136;
|
|
1643
|
+
code = 6136;
|
|
1644
|
+
name = "CollateralInfoAlreadyExists";
|
|
1645
|
+
msg = "Collateral info already exists for given index";
|
|
1505
1646
|
constructor(logs) {
|
|
1506
1647
|
super("6136: Collateral info already exists for given index");
|
|
1507
1648
|
this.logs = logs;
|
|
1508
|
-
this.code = 6136;
|
|
1509
|
-
this.name = "CollateralInfoAlreadyExists";
|
|
1510
|
-
this.msg = "Collateral info already exists for given index";
|
|
1511
1649
|
}
|
|
1512
1650
|
}
|
|
1513
1651
|
exports.CollateralInfoAlreadyExists = CollateralInfoAlreadyExists;
|
|
1514
|
-
CollateralInfoAlreadyExists.code = 6136;
|
|
1515
1652
|
class InvestTooEarly extends Error {
|
|
1653
|
+
logs;
|
|
1654
|
+
static code = 6137;
|
|
1655
|
+
code = 6137;
|
|
1656
|
+
name = "InvestTooEarly";
|
|
1657
|
+
msg = "Invest is too early after the position was opened";
|
|
1516
1658
|
constructor(logs) {
|
|
1517
1659
|
super("6137: Invest is too early after the position was opened");
|
|
1518
1660
|
this.logs = logs;
|
|
1519
|
-
this.code = 6137;
|
|
1520
|
-
this.name = "InvestTooEarly";
|
|
1521
|
-
this.msg = "Invest is too early after the position was opened";
|
|
1522
1661
|
}
|
|
1523
1662
|
}
|
|
1524
1663
|
exports.InvestTooEarly = InvestTooEarly;
|
|
1525
|
-
InvestTooEarly.code = 6137;
|
|
1526
1664
|
class SwapUnevenTooEarly extends Error {
|
|
1665
|
+
logs;
|
|
1666
|
+
static code = 6138;
|
|
1667
|
+
code = 6138;
|
|
1668
|
+
name = "SwapUnevenTooEarly";
|
|
1669
|
+
msg = "Swap uneven is too early after the position was opened";
|
|
1527
1670
|
constructor(logs) {
|
|
1528
1671
|
super("6138: Swap uneven is too early after the position was opened");
|
|
1529
1672
|
this.logs = logs;
|
|
1530
|
-
this.code = 6138;
|
|
1531
|
-
this.name = "SwapUnevenTooEarly";
|
|
1532
|
-
this.msg = "Swap uneven is too early after the position was opened";
|
|
1533
1673
|
}
|
|
1534
1674
|
}
|
|
1535
1675
|
exports.SwapUnevenTooEarly = SwapUnevenTooEarly;
|
|
1536
|
-
SwapUnevenTooEarly.code = 6138;
|
|
1537
1676
|
class FlashSwapTooEarly extends Error {
|
|
1677
|
+
logs;
|
|
1678
|
+
static code = 6139;
|
|
1679
|
+
code = 6139;
|
|
1680
|
+
name = "FlashSwapTooEarly";
|
|
1681
|
+
msg = "Flash swap is too early after the position was opened";
|
|
1538
1682
|
constructor(logs) {
|
|
1539
1683
|
super("6139: Flash swap is too early after the position was opened");
|
|
1540
1684
|
this.logs = logs;
|
|
1541
|
-
this.code = 6139;
|
|
1542
|
-
this.name = "FlashSwapTooEarly";
|
|
1543
|
-
this.msg = "Flash swap is too early after the position was opened";
|
|
1544
1685
|
}
|
|
1545
1686
|
}
|
|
1546
1687
|
exports.FlashSwapTooEarly = FlashSwapTooEarly;
|
|
1547
|
-
FlashSwapTooEarly.code = 6139;
|
|
1548
1688
|
class RebalancesCapReached extends Error {
|
|
1689
|
+
logs;
|
|
1690
|
+
static code = 6140;
|
|
1691
|
+
code = 6140;
|
|
1692
|
+
name = "RebalancesCapReached";
|
|
1693
|
+
msg = "Rebalance caps reached, no rebalances are allowed until the end of the current interval";
|
|
1549
1694
|
constructor(logs) {
|
|
1550
1695
|
super("6140: Rebalance caps reached, no rebalances are allowed until the end of the current interval");
|
|
1551
1696
|
this.logs = logs;
|
|
1552
|
-
this.code = 6140;
|
|
1553
|
-
this.name = "RebalancesCapReached";
|
|
1554
|
-
this.msg = "Rebalance caps reached, no rebalances are allowed until the end of the current interval";
|
|
1555
1697
|
}
|
|
1556
1698
|
}
|
|
1557
1699
|
exports.RebalancesCapReached = RebalancesCapReached;
|
|
1558
|
-
RebalancesCapReached.code = 6140;
|
|
1559
1700
|
class SwapUnevenInvalidAuthority extends Error {
|
|
1701
|
+
logs;
|
|
1702
|
+
static code = 6141;
|
|
1703
|
+
code = 6141;
|
|
1704
|
+
name = "SwapUnevenInvalidAuthority";
|
|
1705
|
+
msg = "Cannot swap uneven because authority is set and the given signer does not correspond";
|
|
1560
1706
|
constructor(logs) {
|
|
1561
1707
|
super("6141: Cannot swap uneven because authority is set and the given signer does not correspond");
|
|
1562
1708
|
this.logs = logs;
|
|
1563
|
-
this.code = 6141;
|
|
1564
|
-
this.name = "SwapUnevenInvalidAuthority";
|
|
1565
|
-
this.msg = "Cannot swap uneven because authority is set and the given signer does not correspond";
|
|
1566
1709
|
}
|
|
1567
1710
|
}
|
|
1568
1711
|
exports.SwapUnevenInvalidAuthority = SwapUnevenInvalidAuthority;
|
|
1569
|
-
SwapUnevenInvalidAuthority.code = 6141;
|
|
1570
1712
|
class InvalidTick extends Error {
|
|
1713
|
+
logs;
|
|
1714
|
+
static code = 6142;
|
|
1715
|
+
code = 6142;
|
|
1716
|
+
name = "InvalidTick";
|
|
1717
|
+
msg = "Invalid tick requested";
|
|
1571
1718
|
constructor(logs) {
|
|
1572
1719
|
super("6142: Invalid tick requested");
|
|
1573
1720
|
this.logs = logs;
|
|
1574
|
-
this.code = 6142;
|
|
1575
|
-
this.name = "InvalidTick";
|
|
1576
|
-
this.msg = "Invalid tick requested";
|
|
1577
1721
|
}
|
|
1578
1722
|
}
|
|
1579
1723
|
exports.InvalidTick = InvalidTick;
|
|
1580
|
-
InvalidTick.code = 6142;
|
|
1581
1724
|
class MeteoraMathOverflow extends Error {
|
|
1725
|
+
logs;
|
|
1726
|
+
static code = 6143;
|
|
1727
|
+
code = 6143;
|
|
1728
|
+
name = "MeteoraMathOverflow";
|
|
1729
|
+
msg = "Meteora math overflowed";
|
|
1582
1730
|
constructor(logs) {
|
|
1583
1731
|
super("6143: Meteora math overflowed");
|
|
1584
1732
|
this.logs = logs;
|
|
1585
|
-
this.code = 6143;
|
|
1586
|
-
this.name = "MeteoraMathOverflow";
|
|
1587
|
-
this.msg = "Meteora math overflowed";
|
|
1588
1733
|
}
|
|
1589
1734
|
}
|
|
1590
1735
|
exports.MeteoraMathOverflow = MeteoraMathOverflow;
|
|
1591
|
-
MeteoraMathOverflow.code = 6143;
|
|
1592
1736
|
class StrategyTickArrayNotValid extends Error {
|
|
1737
|
+
logs;
|
|
1738
|
+
static code = 6144;
|
|
1739
|
+
code = 6144;
|
|
1740
|
+
name = "StrategyTickArrayNotValid";
|
|
1741
|
+
msg = "Expected strategy tick arrays to be initialized";
|
|
1593
1742
|
constructor(logs) {
|
|
1594
1743
|
super("6144: Expected strategy tick arrays to be initialized");
|
|
1595
1744
|
this.logs = logs;
|
|
1596
|
-
this.code = 6144;
|
|
1597
|
-
this.name = "StrategyTickArrayNotValid";
|
|
1598
|
-
this.msg = "Expected strategy tick arrays to be initialized";
|
|
1599
1745
|
}
|
|
1600
1746
|
}
|
|
1601
1747
|
exports.StrategyTickArrayNotValid = StrategyTickArrayNotValid;
|
|
1602
|
-
StrategyTickArrayNotValid.code = 6144;
|
|
1603
1748
|
class WrongEventAuthority extends Error {
|
|
1749
|
+
logs;
|
|
1750
|
+
static code = 6145;
|
|
1751
|
+
code = 6145;
|
|
1752
|
+
name = "WrongEventAuthority";
|
|
1753
|
+
msg = "Wrong event authority";
|
|
1604
1754
|
constructor(logs) {
|
|
1605
1755
|
super("6145: Wrong event authority");
|
|
1606
1756
|
this.logs = logs;
|
|
1607
|
-
this.code = 6145;
|
|
1608
|
-
this.name = "WrongEventAuthority";
|
|
1609
|
-
this.msg = "Wrong event authority";
|
|
1610
1757
|
}
|
|
1611
1758
|
}
|
|
1612
1759
|
exports.WrongEventAuthority = WrongEventAuthority;
|
|
1613
|
-
WrongEventAuthority.code = 6145;
|
|
1614
1760
|
class StrategyFieldUpdateNotAllowed extends Error {
|
|
1761
|
+
logs;
|
|
1762
|
+
static code = 6146;
|
|
1763
|
+
code = 6146;
|
|
1764
|
+
name = "StrategyFieldUpdateNotAllowed";
|
|
1765
|
+
msg = "Strategy field update is not allowed";
|
|
1615
1766
|
constructor(logs) {
|
|
1616
1767
|
super("6146: Strategy field update is not allowed");
|
|
1617
1768
|
this.logs = logs;
|
|
1618
|
-
this.code = 6146;
|
|
1619
|
-
this.name = "StrategyFieldUpdateNotAllowed";
|
|
1620
|
-
this.msg = "Strategy field update is not allowed";
|
|
1621
1769
|
}
|
|
1622
1770
|
}
|
|
1623
1771
|
exports.StrategyFieldUpdateNotAllowed = StrategyFieldUpdateNotAllowed;
|
|
1624
|
-
StrategyFieldUpdateNotAllowed.code = 6146;
|
|
1625
1772
|
class UnsupportedDex extends Error {
|
|
1773
|
+
logs;
|
|
1774
|
+
static code = 6147;
|
|
1775
|
+
code = 6147;
|
|
1776
|
+
name = "UnsupportedDex";
|
|
1777
|
+
msg = "DEX is not supported for this operation";
|
|
1626
1778
|
constructor(logs) {
|
|
1627
1779
|
super("6147: DEX is not supported for this operation");
|
|
1628
1780
|
this.logs = logs;
|
|
1629
|
-
this.code = 6147;
|
|
1630
|
-
this.name = "UnsupportedDex";
|
|
1631
|
-
this.msg = "DEX is not supported for this operation";
|
|
1632
1781
|
}
|
|
1633
1782
|
}
|
|
1634
1783
|
exports.UnsupportedDex = UnsupportedDex;
|
|
1635
|
-
UnsupportedDex.code = 6147;
|
|
1636
1784
|
class InvalidBPSValue extends Error {
|
|
1785
|
+
logs;
|
|
1786
|
+
static code = 6148;
|
|
1787
|
+
code = 6148;
|
|
1788
|
+
name = "InvalidBPSValue";
|
|
1789
|
+
msg = "Invalid BPS value provided";
|
|
1637
1790
|
constructor(logs) {
|
|
1638
1791
|
super("6148: Invalid BPS value provided");
|
|
1639
1792
|
this.logs = logs;
|
|
1640
|
-
this.code = 6148;
|
|
1641
|
-
this.name = "InvalidBPSValue";
|
|
1642
|
-
this.msg = "Invalid BPS value provided";
|
|
1643
1793
|
}
|
|
1644
1794
|
}
|
|
1645
1795
|
exports.InvalidBPSValue = InvalidBPSValue;
|
|
1646
|
-
InvalidBPSValue.code = 6148;
|
|
1647
1796
|
class RewardVaultOverrideNotAllowed extends Error {
|
|
1797
|
+
logs;
|
|
1798
|
+
static code = 6149;
|
|
1799
|
+
code = 6149;
|
|
1800
|
+
name = "RewardVaultOverrideNotAllowed";
|
|
1801
|
+
msg = "Reward vault override not allowed";
|
|
1648
1802
|
constructor(logs) {
|
|
1649
1803
|
super("6149: Reward vault override not allowed");
|
|
1650
1804
|
this.logs = logs;
|
|
1651
|
-
this.code = 6149;
|
|
1652
|
-
this.name = "RewardVaultOverrideNotAllowed";
|
|
1653
|
-
this.msg = "Reward vault override not allowed";
|
|
1654
1805
|
}
|
|
1655
1806
|
}
|
|
1656
1807
|
exports.RewardVaultOverrideNotAllowed = RewardVaultOverrideNotAllowed;
|
|
1657
|
-
RewardVaultOverrideNotAllowed.code = 6149;
|
|
1658
1808
|
class ComputeFeesAndRewardsInvalidReward extends Error {
|
|
1809
|
+
logs;
|
|
1810
|
+
static code = 6150;
|
|
1811
|
+
code = 6150;
|
|
1812
|
+
name = "ComputeFeesAndRewardsInvalidReward";
|
|
1813
|
+
msg = "Got invalid reward from the dex specific function while computing the fees/rewards update";
|
|
1659
1814
|
constructor(logs) {
|
|
1660
1815
|
super("6150: Got invalid reward from the dex specific function while computing the fees/rewards update");
|
|
1661
1816
|
this.logs = logs;
|
|
1662
|
-
this.code = 6150;
|
|
1663
|
-
this.name = "ComputeFeesAndRewardsInvalidReward";
|
|
1664
|
-
this.msg = "Got invalid reward from the dex specific function while computing the fees/rewards update";
|
|
1665
1817
|
}
|
|
1666
1818
|
}
|
|
1667
1819
|
exports.ComputeFeesAndRewardsInvalidReward = ComputeFeesAndRewardsInvalidReward;
|
|
1668
|
-
ComputeFeesAndRewardsInvalidReward.code = 6150;
|
|
1669
1820
|
class EmptyTreasury extends Error {
|
|
1821
|
+
logs;
|
|
1822
|
+
static code = 6151;
|
|
1823
|
+
code = 6151;
|
|
1824
|
+
name = "EmptyTreasury";
|
|
1825
|
+
msg = "No tokens to withdraw from treasury fee vault";
|
|
1670
1826
|
constructor(logs) {
|
|
1671
1827
|
super("6151: No tokens to withdraw from treasury fee vault");
|
|
1672
1828
|
this.logs = logs;
|
|
1673
|
-
this.code = 6151;
|
|
1674
|
-
this.name = "EmptyTreasury";
|
|
1675
|
-
this.msg = "No tokens to withdraw from treasury fee vault";
|
|
1676
1829
|
}
|
|
1677
1830
|
}
|
|
1678
1831
|
exports.EmptyTreasury = EmptyTreasury;
|
|
1679
|
-
EmptyTreasury.code = 6151;
|
|
1680
1832
|
class ChangingPoolRewardMintMismatch extends Error {
|
|
1833
|
+
logs;
|
|
1834
|
+
static code = 6152;
|
|
1835
|
+
code = 6152;
|
|
1836
|
+
name = "ChangingPoolRewardMintMismatch";
|
|
1837
|
+
msg = "New pool reward mint does not match the old pool reward mint";
|
|
1681
1838
|
constructor(logs) {
|
|
1682
1839
|
super("6152: New pool reward mint does not match the old pool reward mint");
|
|
1683
1840
|
this.logs = logs;
|
|
1684
|
-
this.code = 6152;
|
|
1685
|
-
this.name = "ChangingPoolRewardMintMismatch";
|
|
1686
|
-
this.msg = "New pool reward mint does not match the old pool reward mint";
|
|
1687
1841
|
}
|
|
1688
1842
|
}
|
|
1689
1843
|
exports.ChangingPoolRewardMintMismatch = ChangingPoolRewardMintMismatch;
|
|
1690
|
-
ChangingPoolRewardMintMismatch.code = 6152;
|
|
1691
1844
|
class ProvidedRewardVaultMismatch extends Error {
|
|
1845
|
+
logs;
|
|
1846
|
+
static code = 6153;
|
|
1847
|
+
code = 6153;
|
|
1848
|
+
name = "ProvidedRewardVaultMismatch";
|
|
1849
|
+
msg = "The provided reward vault does not match the strategy state";
|
|
1692
1850
|
constructor(logs) {
|
|
1693
1851
|
super("6153: The provided reward vault does not match the strategy state");
|
|
1694
1852
|
this.logs = logs;
|
|
1695
|
-
this.code = 6153;
|
|
1696
|
-
this.name = "ProvidedRewardVaultMismatch";
|
|
1697
|
-
this.msg = "The provided reward vault does not match the strategy state";
|
|
1698
1853
|
}
|
|
1699
1854
|
}
|
|
1700
1855
|
exports.ProvidedRewardVaultMismatch = ProvidedRewardVaultMismatch;
|
|
1701
|
-
ProvidedRewardVaultMismatch.code = 6153;
|
|
1702
1856
|
class RepeatedMint extends Error {
|
|
1857
|
+
logs;
|
|
1858
|
+
static code = 6154;
|
|
1859
|
+
code = 6154;
|
|
1860
|
+
name = "RepeatedMint";
|
|
1861
|
+
msg = "The provided reward vault does not match the strategy state";
|
|
1703
1862
|
constructor(logs) {
|
|
1704
1863
|
super("6154: The provided reward vault does not match the strategy state");
|
|
1705
1864
|
this.logs = logs;
|
|
1706
|
-
this.code = 6154;
|
|
1707
|
-
this.name = "RepeatedMint";
|
|
1708
|
-
this.msg = "The provided reward vault does not match the strategy state";
|
|
1709
1865
|
}
|
|
1710
1866
|
}
|
|
1711
1867
|
exports.RepeatedMint = RepeatedMint;
|
|
1712
|
-
RepeatedMint.code = 6154;
|
|
1713
1868
|
class UnsupportedTokenExtension extends Error {
|
|
1869
|
+
logs;
|
|
1870
|
+
static code = 6155;
|
|
1871
|
+
code = 6155;
|
|
1872
|
+
name = "UnsupportedTokenExtension";
|
|
1873
|
+
msg = "The token extension is not supported by the program";
|
|
1714
1874
|
constructor(logs) {
|
|
1715
1875
|
super("6155: The token extension is not supported by the program");
|
|
1716
1876
|
this.logs = logs;
|
|
1717
|
-
this.code = 6155;
|
|
1718
|
-
this.name = "UnsupportedTokenExtension";
|
|
1719
|
-
this.msg = "The token extension is not supported by the program";
|
|
1720
1877
|
}
|
|
1721
1878
|
}
|
|
1722
1879
|
exports.UnsupportedTokenExtension = UnsupportedTokenExtension;
|
|
1723
|
-
UnsupportedTokenExtension.code = 6155;
|
|
1724
1880
|
class UnsupportedDexForToken22 extends Error {
|
|
1881
|
+
logs;
|
|
1882
|
+
static code = 6156;
|
|
1883
|
+
code = 6156;
|
|
1884
|
+
name = "UnsupportedDexForToken22";
|
|
1885
|
+
msg = "Cannot initialize strategy with this dex while having a mint with token22";
|
|
1725
1886
|
constructor(logs) {
|
|
1726
1887
|
super("6156: Cannot initialize strategy with this dex while having a mint with token22");
|
|
1727
1888
|
this.logs = logs;
|
|
1728
|
-
this.code = 6156;
|
|
1729
|
-
this.name = "UnsupportedDexForToken22";
|
|
1730
|
-
this.msg = "Cannot initialize strategy with this dex while having a mint with token22";
|
|
1731
1889
|
}
|
|
1732
1890
|
}
|
|
1733
1891
|
exports.UnsupportedDexForToken22 = UnsupportedDexForToken22;
|
|
1734
|
-
UnsupportedDexForToken22.code = 6156;
|
|
1735
1892
|
function fromCode(code, logs) {
|
|
1736
1893
|
switch (code) {
|
|
1737
1894
|
case 6000:
|