Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryAccountSums ¶
func QueryAccountSums( db *gorm.DB, credentialTag uint8, stakingKey []byte, ) (models.AccountSums, error)
QueryAccountSums aggregates the lovelace totals Blockfrost reports on the account endpoint that are not derivable from the live account row:
- withdrawals_sum: every reward withdrawal recorded for the credential
- reserves_sum / treasury_sum: every MIR distribution to the credential, split by the source pot
All totals are reconstructed from persisted state, so they remain correct across rollbacks (the underlying rows are themselves rollback-aware).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.