package
1.10.20
Repository: https://github.com/code-payments/code-server.git
Documentation: pkg.go.dev

# Functions

BatchCalculateFromCacheWithAccountRecords is the default and recommended batch strategy or reliably estimating a set of token accounts' balance when common.AccountRecords are available.
BatchCalculateFromCacheWithTokenAccounts is the default and recommended batch strategy or reliably estimating a set of token accounts' balance when common.Account are available.
Calculate calculates a token account's balance using a starting point and a set of strategies.
CalculateBatch calculates a set of token accounts' balance using a starting point and a set of strategies.
CalculateFromBlockchain is the default and recommended strategy for reliably estimating a token account's balance from the blockchain.
CalculateFromCache is the default and recommended strategy for reliably estimating a token account's balance using cached values.
FundingFromExternalDeposits is a balance calculation strategy that adds funding from deposits from external accounts.
FundingFromExternalDepositsBatch is a balance calculation strategy that adds funding from deposits from external accounts.
No description provided by the author
GetPrivateBalance gets an owner account's total private balance.
NetBalanceFromIntentActions is a balance calculation strategy that incorporates the net balance by applying payment intents to the current balance.
NetBalanceFromIntentActionsBatch is a balance calculation strategy that incorporates the net balance by applying payment intents to the current balance.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrNegativeBalance indicates that a balance calculation resulted in a negative value.
ErrNotManagedByCode indicates that an account is not owned by Code.
ErrUnhandledAccount indicates that the balance calculator does not have strategies to handle the provided account.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

BatchCalculator is a functiona that calculates a batch of accounts' balances.
No description provided by the author
Calculator is a function that calculates a token account's balance.
No description provided by the author
No description provided by the author