mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-29 03:07:59 +00:00
Initial commit: Pezkuwi Wallet Android
Complete rebrand of Nova Wallet for Pezkuwichain ecosystem. ## Features - Full Pezkuwichain support (HEZ & PEZ tokens) - Polkadot ecosystem compatibility - Staking, Governance, DeFi, NFTs - XCM cross-chain transfers - Hardware wallet support (Ledger, Polkadot Vault) - WalletConnect v2 - Push notifications ## Languages - English, Turkish, Kurmanci (Kurdish), Spanish, French, German, Russian, Japanese, Chinese, Korean, Portuguese, Vietnamese Based on Nova Wallet by Novasama Technologies GmbH © Dijital Kurdistan Tech Institute 2026
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<manifest />
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package io.novafoundation.nova.hydra_dx_math
|
||||
|
||||
import io.novafoundation.nova.common.utils.atLeastZero
|
||||
import java.math.BigInteger
|
||||
|
||||
object HydraDxMathConversions {
|
||||
|
||||
fun String.fromBridgeResultToBalance(): BigInteger? {
|
||||
return if (this == "-1") null else toBigInteger().atLeastZero()
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
package io.novafoundation.nova.hydra_dx_math.stableswap;
|
||||
|
||||
public class StableSwapMathBridge {
|
||||
|
||||
static {
|
||||
System.loadLibrary("hydra_dx_math_java");
|
||||
}
|
||||
|
||||
public static native String calculate_out_given_in(
|
||||
String reserves,
|
||||
int asset_in,
|
||||
int asset_out,
|
||||
String amount_in,
|
||||
String amplification,
|
||||
String fee,
|
||||
String pegs
|
||||
);
|
||||
|
||||
public static native String calculate_in_given_out(
|
||||
String reserves,
|
||||
int asset_in,
|
||||
int asset_out,
|
||||
String amount_out,
|
||||
String amplification,
|
||||
String fee,
|
||||
String pegs
|
||||
);
|
||||
|
||||
public static native String calculate_amplification(
|
||||
String initial_amplification,
|
||||
String final_amplification,
|
||||
String initial_block,
|
||||
String final_block,
|
||||
String current_block
|
||||
);
|
||||
|
||||
public static native String calculate_shares(
|
||||
String reserves,
|
||||
String assets,
|
||||
String amplification,
|
||||
String share_issuance,
|
||||
String fee,
|
||||
String pegs
|
||||
);
|
||||
|
||||
public static native String calculate_shares_for_amount(
|
||||
String reserves,
|
||||
int asset_in,
|
||||
String amount,
|
||||
String amplification,
|
||||
String share_issuance,
|
||||
String fee,
|
||||
String pegs
|
||||
);
|
||||
|
||||
public static native String calculate_add_one_asset(
|
||||
String reserves,
|
||||
String shares,
|
||||
int asset_in,
|
||||
String amplification,
|
||||
String share_issuance,
|
||||
String fee,
|
||||
String pegs
|
||||
);
|
||||
|
||||
public static native String calculate_liquidity_out_one_asset(
|
||||
String reserves,
|
||||
String shares,
|
||||
int asset_out,
|
||||
String amplification,
|
||||
String share_issuance,
|
||||
String withdraw_fee,
|
||||
String pegs
|
||||
);
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package io.novafoundation.nova.hydra_dx_math.xyk;
|
||||
|
||||
public class HYKSwapMathBridge {
|
||||
|
||||
static {
|
||||
System.loadLibrary("hydra_dx_math_java");
|
||||
}
|
||||
|
||||
public static native String calculate_out_given_in(
|
||||
String balanceIn,
|
||||
String balanceOut,
|
||||
String amountIn
|
||||
);
|
||||
|
||||
public static native String calculate_in_given_out(
|
||||
String balanceIn,
|
||||
String balanceOut,
|
||||
String amountOut
|
||||
);
|
||||
|
||||
public static native String calculate_pool_trade_fee(
|
||||
String amount,
|
||||
String feeNumerator,
|
||||
String feeDenominator
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user