Can also be used via the corresponding method with same name on BalanceArray
Adds multiple balances to the existing balances. Returns a new BalanceArray.
Can also be used via the corresponding method with same name on BalanceArray
Applys increments to balances. Returns a new BalanceArray with the incremented balances.
Can also be used via the applyIncrements method on BalanceArray
Checks if two balances are equal. Flag to check if the balances with zero amounts should be checked as well.
Can also be used via the corresponding method with same name on BalanceArray
Filters out all balances with amount == 0. Returns a new BalanceArray.
Can also be used via the corresponding method with same name on BalanceArray
Gets all badge IDs from the balances (sorted and merged).
Find the balance amount for a specific badge ID at a specific time within a set of balances. Returns x0 if not found.
Can also be used via the corresponding method with same name on BalanceArray
Returns all matching balances for a specific badge ID. Returns a new BalanceArray.
Can also be used via the corresponding method with same name on BalanceArray
Returns all matching balances for a specific time via a new BalanceArray.
Can also be used via the corresponding method with same name on BalanceArray
Sorts balances by their amount property. Returns a new BalanceArray.
Can also be used via the corresponding method with same name on BalanceArray
Checks if the current balances are a subset of the threshold balances (i.e. doesn't exceed the threshold).
Subtracts the balanceToRemove from the existing balances. Returns a new BalanceArray.
Throws an error if the balances underflow.
Can also be used via the corresponding method with same name on BalanceArray
Subtracts multiple balances from the existing balances. Returns a new BalanceArray.
Throws an error if the balances underflow.
Can also be used via the corresponding method with same name on BalanceArray
Updates the balance for what it currently is to newAmount.
Returns a new BalanceArray. Does not modify the original.
Can also be used via the corresponding method with same name on BalanceArray
Static
From
Adds the balanceToAdd to the existing balances. Returns a new BalanceArray.