Module bee_message::output
source · Expand description
A module that provides types and syntactic validations of outputs.
Structs
- The identifier of an
Output. - A
SignatureLockedDustAllowanceOutputfunctions like aSignatureLockedSingleOutputbut as a special property it is used to increase the allowance/amount of dust outputs on a given address. - An output type which can be unlocked via a signature. It deposits onto one single address.
TreasuryOutputis an output which holds the treasury of a network.
Enums
- A generic output that can represent different types defining the deposit of funds.
Constants
- Divisor used to compute the allowed dust outputs on an address.
- Maximum number of dust outputs for an address.
- Amount of tokens below which an output is considered a dust output.
- The length of an
OutputId. - Valid amounts for a signature locked dust allowance output.
- Valid amounts for a signature locked single output.
- The allowed range of the amount of a
TreasuryOutput.
Functions
- The maximum number of allowed dust outputs on an address is
dust_allowance_sumdivided byDUST_ALLOWANCE_DIVISORand rounded down, i.e. 10 outputs for each 1 Mi deposited.dust_allowance_sumis the sum of all the amounts of all unspentSigLockedDustAllowanceOutputson this address. Regardless ofdust_allowance_sum, the number of dust outputs must never exceedDUST_OUTPUTS_MAXper address.