Skip to main content

CheckpointContents

type CheckpointContents

The committed to contents of a checkpoint.

`CheckpointContents` contains a list of digests of Transactions, their effects, and the user signatures that authorized their execution included in a checkpoint.

BCS

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

```text checkpoint-contents = %d00 checkpoint-contents-v1 ; variant 0 ```

type CheckpointContents struct {
// contains filtered or unexported fields
}

func CheckpointContentsFromBcs

func CheckpointContentsFromBcs(bcs []byte) (*CheckpointContents, error)

Create this type from BCS encoded bytes.

func CheckpointContentsFromJson

func CheckpointContentsFromJson(json string) (*CheckpointContents, error)

Create this type from JSON encoded string.

func CheckpointContentsNewV1

func CheckpointContentsNewV1(contents *CheckpointContentsV1) *CheckpointContents

func LiftFromExternalCheckpointContents

func LiftFromExternalCheckpointContents(handle uint64) *CheckpointContents

func (*CheckpointContents) AsV1

func (_self *CheckpointContents) AsV1() *CheckpointContentsV1

func (*CheckpointContents) Destroy

func (object *CheckpointContents) Destroy()

func (*CheckpointContents) Digest

func (_self *CheckpointContents) Digest() *CheckpointContentsDigest

func (*CheckpointContents) IsEmpty

func (_self *CheckpointContents) IsEmpty() bool

Whether this checkpoint has no transactions.

func (*CheckpointContents) IsV1

func (_self *CheckpointContents) IsV1() bool

func (*CheckpointContents) Len

func (_self *CheckpointContents) Len() uint64

The number of transactions in this checkpoint.

func (*CheckpointContents) Transactions

func (_self *CheckpointContents) Transactions() []*CheckpointTransactionInfo