-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove code related to old account balance processing
- Loading branch information
1 parent
affdc6e
commit 27e873b
Showing
26 changed files
with
60 additions
and
2,283 deletions.
There are no files selected for viewing
100 changes: 0 additions & 100 deletions
100
...on/src/main/java/org/cardanofoundation/ledgersync/aggregate/AggregatedAddressBalance.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
application/src/main/java/org/cardanofoundation/ledgersync/repository/AddressRepository.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
.../main/java/org/cardanofoundation/ledgersync/repository/AddressTokenBalanceRepository.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...ion/src/main/java/org/cardanofoundation/ledgersync/repository/AddressTokenRepository.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...src/main/java/org/cardanofoundation/ledgersync/repository/AddressTxBalanceRepository.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 32 additions & 32 deletions
64
...ication/src/main/java/org/cardanofoundation/ledgersync/service/AddressBalanceService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
package org.cardanofoundation.ledgersync.service; | ||
|
||
import org.cardanofoundation.ledgersync.consumercommon.entity.StakeAddress; | ||
import org.cardanofoundation.ledgersync.consumercommon.entity.Tx; | ||
import org.cardanofoundation.ledgersync.aggregate.AggregatedAddressBalance; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
public interface AddressBalanceService { | ||
|
||
/** | ||
* Handle all addresses' balances | ||
* | ||
* @param aggregatedAddressBalanceMap a map with key is address string (Base58 or Bech32 form) and | ||
* value is its aggregated balance | ||
* @param stakeAddressMap a map with key is raw stake address hex and value is the | ||
* respective stake address entity | ||
* @param txMap a map with key is tx hash and value is the respective tx | ||
* entity | ||
*/ | ||
void handleAddressBalance( | ||
Map<String, AggregatedAddressBalance> aggregatedAddressBalanceMap, | ||
Map<String, StakeAddress> stakeAddressMap, Map<String, Tx> txMap); | ||
|
||
/** | ||
* Rollback address balances stats | ||
* | ||
* @param txs txs being rolled back | ||
*/ | ||
void rollbackAddressBalances(Collection<Tx> txs); | ||
} | ||
//package org.cardanofoundation.ledgersync.service; | ||
// | ||
//import org.cardanofoundation.ledgersync.consumercommon.entity.StakeAddress; | ||
//import org.cardanofoundation.ledgersync.consumercommon.entity.Tx; | ||
//import org.cardanofoundation.ledgersync.aggregate.AggregatedAddressBalance; | ||
// | ||
//import java.util.Collection; | ||
//import java.util.Map; | ||
// | ||
//public interface AddressBalanceService { | ||
// | ||
// /** | ||
// * Handle all addresses' balances | ||
// * | ||
// * @param aggregatedAddressBalanceMap a map with key is address string (Base58 or Bech32 form) and | ||
// * value is its aggregated balance | ||
// * @param stakeAddressMap a map with key is raw stake address hex and value is the | ||
// * respective stake address entity | ||
// * @param txMap a map with key is tx hash and value is the respective tx | ||
// * entity | ||
// */ | ||
// void handleAddressBalance( | ||
// Map<String, AggregatedAddressBalance> aggregatedAddressBalanceMap, | ||
// Map<String, StakeAddress> stakeAddressMap, Map<String, Tx> txMap); | ||
// | ||
// /** | ||
// * Rollback address balances stats | ||
// * | ||
// * @param txs txs being rolled back | ||
// */ | ||
// void rollbackAddressBalances(Collection<Tx> txs); | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.