dal

package
v0.0.0-...-6c424d2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dal

type Dal struct {
	DB *gorm.DB
}

func NewDal

func NewDal(db *gorm.DB) *Dal

func (*Dal) CountMintActivityWithBlock

func (d *Dal) CountMintActivityWithBlock(tick, opBlockNumber string, inscriptionHeight int64) (int64, error)

func (*Dal) GetElementTick

func (d *Dal) GetElementTick(tickInsId string, inscriptionHeight int64) (*model.TapElementTick, error)

func (*Dal) GetElementTickByTick

func (d *Dal) GetElementTickByTick(tick string, inscriptionHeight int64) (*model.TapElementTick, error)

func (*Dal) GetElements

func (d *Dal) GetElements() ([]model.TapElement, error)

func (*Dal) GetElementsBits

func (d *Dal) GetElementsBits() ([]model.TapElement, error)

func (*Dal) GetSyncBlockByName

func (d *Dal) GetSyncBlockByName(name string) (*model.SyncBlock, error)

func (*Dal) GetTickElementActivityBlocks

func (d *Dal) GetTickElementActivityBlocks(deploy model.TapElementTick) ([]model.TapActivity, error)

func (*Dal) GetsElementTick

func (d *Dal) GetsElementTick() ([]model.TapElementTick, error)

func (*Dal) UpdateBlockByName

func (d *Dal) UpdateBlockByName(name, blockHash string, blockHeight int64) error

func (*Dal) UpsertActivities

func (d *Dal) UpsertActivities(elems []model.TapActivity) error

func (*Dal) UpsertElementTick

func (d *Dal) UpsertElementTick(elemTicks []model.TapElementTick) error

func (*Dal) UpsertElements

func (d *Dal) UpsertElements(elems []model.TapElement) error

func (*Dal) UpsertTapActivity

func (d *Dal) UpsertTapActivity(activity model.TapActivity) error

Jump to

Keyboard shortcuts

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