Documentation ¶
Index ¶
- func EqualOutput(t *testing.T, expected *utxo.Output, actual *utxo.Output)
- func EqualOutputs(t *testing.T, expected utxo.Outputs, actual utxo.Outputs)
- func EqualSpent(t *testing.T, expected *utxo.Spent, actual *utxo.Spent)
- func EqualSpents(t *testing.T, expected utxo.Spents, actual utxo.Spents)
- func Rand32ByteHash() [32]byte
- func RandAddress(addressType iotago.AddressType) iotago.Address
- func RandAliasID() iotago.AliasID
- func RandAmount() uint64
- func RandBlockID() iotago.BlockID
- func RandByte() byte
- func RandBytes(length int) []byte
- func RandFloat64(max float64) float64
- func RandMilestoneID() iotago.MilestoneID
- func RandMilestoneIndex() iotago.MilestoneIndex
- func RandMilestoneTimestamp() uint32
- func RandNFTID() iotago.NFTID
- func RandOutput(outputType iotago.OutputType) iotago.Output
- func RandOutputID(index ...uint16) iotago.OutputID
- func RandOutputOnAddress(outputType iotago.OutputType, address iotago.Address) iotago.Output
- func RandOutputOnAddressWithAmount(outputType iotago.OutputType, address iotago.Address, amount uint64) iotago.Output
- func RandOutputType() iotago.OutputType
- func RandProtocolParameters() *iotago.ProtocolParameters
- func RandProtocolParamsMilestoneOpt(targetIndex ...iotago.MilestoneIndex) *iotago.ProtocolParamsMilestoneOpt
- func RandReceipt(msIndex iotago.MilestoneIndex, protoParams *iotago.ProtocolParameters) (*iotago.ReceiptMilestoneOpt, error)
- func RandRentStructure() *iotago.RentStructure
- func RandSeed() []byte
- func RandString(length int) string
- func RandTransactionID() iotago.TransactionID
- func RandTreasuryOutput() *utxo.TreasuryOutput
- func RandUTXOOutput() *utxo.Output
- func RandUTXOOutputOnAddress(outputType iotago.OutputType, address iotago.Address) *utxo.Output
- func RandUTXOOutputOnAddressWithAmount(outputType iotago.OutputType, address iotago.Address, amount uint64) *utxo.Output
- func RandUTXOOutputWithType(outputType iotago.OutputType) *utxo.Output
- func RandUTXOSpent(msIndexSpent iotago.MilestoneIndex, msTimestampSpent uint32) *utxo.Spent
- func RandUTXOSpentWithOutput(output *utxo.Output, msIndexSpent iotago.MilestoneIndex, ...) *utxo.Spent
- func RandUint16(max uint16) uint16
- func RandUint32(max uint32) uint32
- func RandUint64(max uint64) uint64
- func RandUint8(max uint8) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rand32ByteHash ¶
func Rand32ByteHash() [32]byte
func RandAddress ¶
func RandAddress(addressType iotago.AddressType) iotago.Address
func RandAliasID ¶
func RandAmount ¶
func RandAmount() uint64
func RandBlockID ¶
func RandMilestoneID ¶
func RandMilestoneID() iotago.MilestoneID
func RandMilestoneIndex ¶
func RandMilestoneIndex() iotago.MilestoneIndex
func RandMilestoneTimestamp ¶
func RandMilestoneTimestamp() uint32
func RandOutput ¶
func RandOutput(outputType iotago.OutputType) iotago.Output
func RandOutputID ¶
func RandOutputOnAddress ¶
func RandOutputType ¶
func RandOutputType() iotago.OutputType
func RandProtocolParameters ¶
func RandProtocolParameters() *iotago.ProtocolParameters
RandProtocolParameters produces random protocol parameters.
func RandProtocolParamsMilestoneOpt ¶
func RandProtocolParamsMilestoneOpt(targetIndex ...iotago.MilestoneIndex) *iotago.ProtocolParamsMilestoneOpt
RandProtocolParamsMilestoneOpt produces random protocol parameters milestone option.
func RandReceipt ¶
func RandReceipt(msIndex iotago.MilestoneIndex, protoParams *iotago.ProtocolParameters) (*iotago.ReceiptMilestoneOpt, error)
func RandRentStructure ¶
func RandRentStructure() *iotago.RentStructure
RandRentStructure produces random rent structure.
func RandString ¶
func RandTransactionID ¶
func RandTransactionID() iotago.TransactionID
func RandTreasuryOutput ¶
func RandTreasuryOutput() *utxo.TreasuryOutput
func RandUTXOOutput ¶
func RandUTXOOutputOnAddress ¶
func RandUTXOOutputWithType ¶
func RandUTXOOutputWithType(outputType iotago.OutputType) *utxo.Output
func RandUTXOSpent ¶
func RandUTXOSpent(msIndexSpent iotago.MilestoneIndex, msTimestampSpent uint32) *utxo.Spent
func RandUTXOSpentWithOutput ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.