Updated on 2026-08-14
This commit is contained in:
parent
a50a6a5bbc
commit
c7543bb3ec
5 changed files with 1 additions and 25 deletions
|
|
@ -23,10 +23,6 @@ class BinanceWalletManager(
|
|||
private val transactionBuilder = BinanceTransactionBuilder(walletPublicKey, isTestNet)
|
||||
private val networkManager = BinanceNetworkManager(isTestNet)
|
||||
|
||||
init {
|
||||
wallet.balances[AmountType.Coin] = Amount(null, blockchain, address)
|
||||
}
|
||||
|
||||
override suspend fun update() {
|
||||
val result = networkManager.getInfo(address)
|
||||
when (result) {
|
||||
|
|
|
|||
|
|
@ -25,10 +25,6 @@ class BitcoinWalletManager(
|
|||
private val transactionBuilder = BitcoinTransactionBuilder(isTestNet)
|
||||
private val networkManager = BitcoinNetworkManager(isTestNet)
|
||||
|
||||
init {
|
||||
wallet.balances[AmountType.Coin] = Amount(null, blockchain, address)
|
||||
}
|
||||
|
||||
override suspend fun update() {
|
||||
val response = networkManager.getInfo(address)
|
||||
when (response) {
|
||||
|
|
|
|||
|
|
@ -37,17 +37,6 @@ class EthereumWalletManager(
|
|||
private var pendingTxCount = -1L
|
||||
private var txCount = -1L
|
||||
|
||||
init {
|
||||
if (token != null) wallet.balances[AmountType.Token] =
|
||||
Amount(
|
||||
token.symbol,
|
||||
null,
|
||||
token.contractAddress,
|
||||
token.decimals,
|
||||
AmountType.Token)
|
||||
wallet.balances[AmountType.Coin] = Amount(null, blockchain)
|
||||
}
|
||||
|
||||
override suspend fun update() {
|
||||
val result = networkManager.getInfo(address, wallet.balances[AmountType.Token]?.address)
|
||||
when (result) {
|
||||
|
|
|
|||
|
|
@ -22,11 +22,6 @@ class XrpWalletManager(
|
|||
private val transactionBuilder = XrpTransactionBuilder(walletPublicKey)
|
||||
private val networkManager = XrpNetworkManager()
|
||||
|
||||
init {
|
||||
wallet.balances[AmountType.Coin] = Amount(null, blockchain)
|
||||
wallet.balances[AmountType.Reserve] = Amount(null, blockchain, type = AmountType.Reserve)
|
||||
}
|
||||
|
||||
override suspend fun update() {
|
||||
val result = networkManager.getInfo(address)
|
||||
when (result) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
ext.versions = [
|
||||
kotlin : '1.3.72',
|
||||
build_gradle: '3.6.2',
|
||||
build_gradle: '3.6.3',
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue