ExPlasma.Output.Position.Validator (ExPlasma v0.3.0)
Contain stateless validation logic for position
Link to this section Summary
Link to this section Types
Link to this type
blknum_validation_errors()
Specs
blknum_validation_errors() :: {:blknum, :cannot_be_nil} | {:blknum, :cannot_exceed_maximum_value} | {:blknum, :must_be_an_integer}
Link to this type
oindex_validation_errors()
Specs
oindex_validation_errors() :: {:oindex, :cannot_be_nil} | {:oindex, :must_be_an_integer}
Link to this type
txindex_validation_errors()
Specs
txindex_validation_errors() :: {:txindex, :cannot_be_nil} | {:txindex, :cannot_exceed_maximum_value} | {:txindex, :must_be_an_integer}
Link to this section Functions
Link to this function
validate_blknum(blknum)
Specs
validate_blknum(pos_integer()) :: :ok | {:error, blknum_validation_errors()}
Link to this function
validate_oindex(oindex)
Specs
validate_oindex(non_neg_integer()) :: :ok | {:error, oindex_validation_errors()}
Link to this function
validate_txindex(txindex)
Specs
validate_txindex(non_neg_integer()) :: :ok | {:error, txindex_validation_errors()}