smartrollup

package
v0.0.0-...-c0db43c Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 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 Repository

type Repository interface {
	Get(ctx context.Context, address string) (SmartRollup, error)
	List(ctx context.Context, limit, offset int64, sort string) ([]SmartRollup, error)
}

type SmartRollup

type SmartRollup struct {
	bun.BaseModel `bun:"smart_rollup"`

	ID        int64 `bun:"id,pk,notnull,autoincrement"`
	Level     int64
	Timestamp time.Time

	Size      uint64
	AddressId int64
	Address   account.Account `bun:",rel:belongs-to"`

	GenesisCommitmentHash string `bun:"genesis_commitment_hash,type:text"`
	PvmKind               string `bun:"pvm_kind,type:text"`
	Kernel                []byte `bun:",type:bytea"`
	Type                  []byte `bun:",type:bytea"`
}

SmartRollup - entity for smart rollup

func (*SmartRollup) GetID

func (sr *SmartRollup) GetID() int64

GetID -

func (*SmartRollup) LogFields

func (sr *SmartRollup) LogFields() map[string]interface{}

LogFields -

func (SmartRollup) TableName

func (SmartRollup) TableName() string

Jump to

Keyboard shortcuts

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