EndOfEpochData
type EndOfEpochData
Data which, when included in a [`CheckpointSummary`], signals the end of an `Epoch`.
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
type EndOfEpochData struct {
NextEpochCommittee []ValidatorCommitteeMember
NextEpochProtocolVersion uint64
EpochCommitments []*CheckpointCommitment
EpochSupplyChange int64
}
func EndOfEpochDataFromBcs
func EndOfEpochDataFromBcs(bcs []byte) (EndOfEpochData, error)
Create this type from BCS encoded bytes.
func EndOfEpochDataFromJson
func EndOfEpochDataFromJson(json string) (EndOfEpochData, error)
Create this type from a JSON encoded string.
func (*EndOfEpochData) Destroy
func (r *EndOfEpochData) Destroy()
func (EndOfEpochData) ToBcs
func (_self EndOfEpochData) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (EndOfEpochData) ToDisplayString
func (_self EndOfEpochData) ToDisplayString() string
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
func (EndOfEpochData) ToJson
func (_self EndOfEpochData) ToJson() (string, error)
Convert this type to a JSON encoded string.