models

package
v0.0.0-...-ded9150 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageBlsAggregation

type MessageBlsAggregation struct {
	gorm.Model

	EthBlockNumber               uint64 `gorm:"type:text"`
	MessageDigest                []byte
	NonSignersPubkeysG1          []*bls.G1Point `gorm:"type:json;serializer:json"`
	QuorumApksG1                 []*bls.G1Point `gorm:"type:json;serializer:json"`
	SignersApkG2                 *bls.G2Point   `gorm:"type:json;serializer:json"`
	SignersAggSigG1              *bls.Signature `gorm:"type:json;serializer:json"`
	NonSignerQuorumBitmapIndices []uint32       `gorm:"type:json;serializer:json"`
	QuorumApkIndices             []uint32       `gorm:"type:json;serializer:json"`
	TotalStakeIndices            []uint32       `gorm:"type:json;serializer:json"`
	NonSignerStakeIndices        [][]uint32     `gorm:"type:json;serializer:json"`
}

func (MessageBlsAggregation) ToMessage

type OperatorSetUpdateMessage

type OperatorSetUpdateMessage struct {
	gorm.Model

	UpdateId      uint64                     `gorm:"uniqueIndex:operator_set_update_message_key;type:text"`
	Timestamp     uint64                     `gorm:"index;type:integer"` // TODO: validate range
	Operators     []coretypes.RollupOperator `gorm:"type:json;serializer:json"`
	AggregationId uint32
	Aggregation   *MessageBlsAggregation `gorm:"foreignKey:AggregationId;references:ID"`
}

func (OperatorSetUpdateMessage) ToMessage

type StateRootUpdateMessage

type StateRootUpdateMessage struct {
	gorm.Model

	RollupId            uint32 `gorm:"uniqueIndex:state_root_update_message_key;type:text"`
	BlockHeight         uint64 `gorm:"uniqueIndex:state_root_update_message_key;type:text"`
	Timestamp           uint64 `gorm:"index;type:integer"` // TODO: validate range
	NearDaTransactionId []byte
	NearDaCommitment    []byte
	StateRoot           []byte
	AggregationId       uint32
	Aggregation         *MessageBlsAggregation `gorm:"foreignKey:AggregationId;references:ID"`
}

func (StateRootUpdateMessage) ToMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL