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