2 Commits

Author SHA256 Message Date
minimons 214bb2ceeb 17: Add mint address field in JupiterPerpsPosition 2026-06-26 20:42:22 +02:00
minimons 5c87451208 18: Add a codec class for Base58 2026-06-26 20:42:22 +02:00
2 changed files with 8 additions and 1 deletions
@@ -0,0 +1,5 @@
package com.r35157.libs.codec;
public interface Base58Codec {
String encode(byte[] input);
}
@@ -12,10 +12,12 @@ import java.math.BigDecimal;
* @param positionAccount the Solana account address of the Jupiter Perps position * @param positionAccount the Solana account address of the Jupiter Perps position
* @param entryPrice the entry price of the position, denominated in USDC * @param entryPrice the entry price of the position, denominated in USDC
* @param direction whether the position is long or short * @param direction whether the position is long or short
* @param tradedTokenMint the mint address of the token being traded
*/ */
public record JupiterPerpsPosition( public record JupiterPerpsPosition(
ΩJupiterPerpsPositionAccountΩ positionAccount, ΩJupiterPerpsPositionAccountΩ positionAccount,
ΩUSDCPriceΩ entryPrice, ΩUSDCPriceΩ entryPrice,
JupiterPerpsPositionDirection direction JupiterPerpsPositionDirection direction,
ΩSPLMintAddressΩ tradedTokenMint
) { ) {
} }