Skip to main content

EndOfEpochData

type EndOfEpochData

Data which, when included in a [`CheckpointSummary`], signals the end of an `Epoch`.

BCS

The BCS serialized form for this type is defined by the following ABNF:

```text end-of-epoch-data = (vector validator-committee-member) ; next_epoch_committee u64 ; next_epoch_protocol_version (vector checkpoint-commitment) ; epoch_commitments i64 ; epoch_supply_change ```

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 JSON encoded string.

func (*EndOfEpochData) Destroy

func (r *EndOfEpochData) Destroy()