Skip to main content

RandomnessStateUpdate

data class RandomnessStateUpdate(var epoch: ULong, var randomnessRound: ULong, var randomBytes: ByteArray, var randomnessObjInitialSharedVersion: Version) : Disposable

Randomness update

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Constructors​

RandomnessStateUpdateconstructor(epoch: ULong, randomnessRound: ULong, randomBytes: ByteArray, randomnessObjInitialSharedVersion: Version)

Properties​

NameSummary
epochvar epoch: ULong
Epoch of the randomness state update transaction
randomBytesvar randomBytes: ByteArray
Updated random bytes
randomnessObjInitialSharedVersionvar randomnessObjInitialSharedVersion: Version
The initial version of the randomness object that it was shared at
randomnessRoundvar randomnessRound: ULong
Randomness round of the update

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.