Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Chore/removed replaced schedules #563

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,10 @@
import org.cardanofoundation.explorer.common.entity.ledgersync.TokenTxCount;
import org.cardanofoundation.explorer.common.entity.ledgersyncsagg.AddressTxAmount;
import org.cardanofoundation.job.projection.StakeTxProjection;
import org.cardanofoundation.job.projection.UniqueAccountTxCountProjection;

public interface AddressTxAmountRepository
extends JpaRepository<AddressTxAmount, AddressTxAmountId> {

@Query(
value =
"""
SELECT (CASE WHEN ata.stake_address IS NULL THEN ata.address ELSE ata.stake_address END) AS account,
COUNT(DISTINCT ata.tx_hash) AS txCount
FROM address_tx_amount ata
WHERE ata.epoch = :epochNo
AND ata.slot != -1
GROUP BY account;
""",
nativeQuery = true)
List<UniqueAccountTxCountProjection> findUniqueAccountsInEpoch(@Param("epochNo") Integer epochNo);

@Query(
"""
SELECT new org.cardanofoundation.job.projection.StakeTxProjection(addTxAmount.txHash, sum(addTxAmount.quantity), addTxAmount.blockTime)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading