X: Remove duplicate class
This commit is contained in:
+1
-1
@@ -5,8 +5,8 @@ import com.r35157.libs.jupiter.perps.JupiterPerpsService;
|
|||||||
import com.r35157.libs.solana.SolanaAccountInfo;
|
import com.r35157.libs.solana.SolanaAccountInfo;
|
||||||
import com.r35157.libs.solana.SolanaBlockChain;
|
import com.r35157.libs.solana.SolanaBlockChain;
|
||||||
import com.r35157.libs.solana.SolanaProgramAccountMemcmpFilter;
|
import com.r35157.libs.solana.SolanaProgramAccountMemcmpFilter;
|
||||||
import com.r35157.libs.solana.valuetypes.WellKnownCurrencyTypes;
|
|
||||||
import com.r35157.libs.valuetypes.basic.MoneyAmount;
|
import com.r35157.libs.valuetypes.basic.MoneyAmount;
|
||||||
|
import com.r35157.libs.valuetypes.basic.WellKnownCurrencyTypes;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
package com.r35157.libs.solana.valuetypes;
|
|
||||||
|
|
||||||
import com.r35157.libs.valuetypes.basic.CurrencyType;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines well-known currency types used by the Solana integration.
|
|
||||||
*
|
|
||||||
* <p>Each enum value wraps a {@link CurrencyType} with a stable identifier and a
|
|
||||||
* human-readable currency name. These predefined values are intended for common
|
|
||||||
* currencies that the Solana-related modules need to reference consistently.</p>
|
|
||||||
*/
|
|
||||||
public enum WellKnownCurrencyTypes {
|
|
||||||
/**
|
|
||||||
* Native Solana currency.
|
|
||||||
*/
|
|
||||||
SOLANA(new CurrencyType(
|
|
||||||
UUID.fromString("019e0116-fce5-792f-a647-fa6da4dffec5"),
|
|
||||||
"Solana",
|
|
||||||
"SOL")
|
|
||||||
),
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Syrup USDC token currency.
|
|
||||||
*/
|
|
||||||
SYRUPUSDC(new CurrencyType(
|
|
||||||
UUID.fromString("019e1d51-0600-7956-8231-f3b7058a91c2"),
|
|
||||||
"SyrupUSDC",
|
|
||||||
"SyrupUSDC")
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a well-known currency type entry.
|
|
||||||
*
|
|
||||||
* @param currencyType the currency type represented by this enum value
|
|
||||||
*/
|
|
||||||
WellKnownCurrencyTypes(CurrencyType currencyType) {
|
|
||||||
this.currencyType = currencyType;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the currency type represented by this enum value.
|
|
||||||
*
|
|
||||||
* @return the represented currency type
|
|
||||||
*/
|
|
||||||
public CurrencyType getCurrencyType() {
|
|
||||||
return currencyType;
|
|
||||||
}
|
|
||||||
|
|
||||||
private final CurrencyType currencyType;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user