X: Moved all API files into Implementation package
Until Nenjim works better navigation in the code is just too annoying.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.r35157.libs.jupiter.perps;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Represents a Jupiter Perps position.
|
||||
*
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package com.r35157.libs.raydium;
|
||||
|
||||
import com.r35157.libs.valuetypes.basic.MoneyAmount;
|
||||
import com.r35157.libs.valuetypes.basic.Range;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Set;
|
||||
|
||||
public interface Raydium {
|
||||
|
||||
@@ -17,6 +17,9 @@ package com.r35157.libs.raydium;
|
||||
* @param mintBDecimals the number of decimals used by token B
|
||||
* @param priceEstimate the pool price estimate as reported by Raydium
|
||||
*/
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public record RaydiumConcentratedPoolInfo(
|
||||
ΩRaydiumLiquidityPoolConcentratedIdΩ poolId,
|
||||
ΩSPLMintAddressΩ mintA,
|
||||
|
||||
@@ -21,6 +21,9 @@ package com.r35157.libs.raydium;
|
||||
* @param sqrtPriceX64 the current square-root price in Q64.64 fixed-point format
|
||||
* @param tickCurrent the current Raydium liquidity tick index
|
||||
*/
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
public record RaydiumConcentratedPoolState(
|
||||
ΩRaydiumLiquidityPoolConcentratedIdΩ poolId,
|
||||
ΩRaydiumLiquidityΩ liquidity,
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
package com.r35157.libs.raydium;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
||||
public record RaydiumConcentratedPositionState(
|
||||
ΩRaydiumLiquidityPoolPositionNftIdΩ nftId,
|
||||
ΩRaydiumLiquidityPoolConcentratedIdΩ poolId,
|
||||
|
||||
@@ -17,6 +17,9 @@ package com.r35157.libs.raydium;
|
||||
* @param lpTokenAccount the SPL token account holding the liquidity pool tokens
|
||||
* @param lpTokenAmount the amount of liquidity pool tokens held in the SPL token account
|
||||
*/
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public record RaydiumLiquidityPoolPositionStandard(
|
||||
ΩRaydiumLiquidityPoolPositionIdΩ positionId,
|
||||
ΩRaydiumLiquidityPoolPositionMintIdΩ lpMintId,
|
||||
|
||||
@@ -16,6 +16,9 @@ package com.r35157.libs.raydium;
|
||||
* @param mintB the SPL mint address of token B
|
||||
* @param amountB the amount of token B
|
||||
*/
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public record RaydiumLiquidityPoolTokenAmounts(
|
||||
ΩRaydiumLiquidityPoolIdΩ poolId,
|
||||
ΩSPLMintAddressΩ mintA,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.r35157.libs.solana;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Represents an SPL token holding owned by a Solana address.
|
||||
*
|
||||
|
||||
@@ -12,6 +12,9 @@ package com.r35157.libs.solana;
|
||||
* @param decimals the number of decimals used by the token mint
|
||||
* @param programId the SPL token program id for the mint
|
||||
*/
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public record SPLTokenSupply(
|
||||
ΩSPLMintAddressΩ mintAddress,
|
||||
ΩAmountΩ uiAmount,
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.r35157.libs.solana;
|
||||
|
||||
import com.r35157.libs.solana.valuetypes.SolanaProgramDerivedAddress;
|
||||
import com.r35157.libs.solana.valuetypes.economic.SolanaSPLTokenProgram;
|
||||
import com.r35157.libs.valuetypes.basic.MoneyAmount;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.r35157.libs.valuetypes.basic;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public record MoneyAmount(
|
||||
ΩAmountΩ amount,
|
||||
CurrencyType currencyType
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.r35157.libs.valuetypes.basic;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public record MoneyPrice(
|
||||
ΩPriceΩ price,
|
||||
CurrencyType currencyType
|
||||
|
||||
Reference in New Issue
Block a user