entity

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	PkScript []byte
	Amount   uint128.Uint128
	RuneId   runes.RuneId
	// BlockHeight last updated block height
	BlockHeight uint64
}

type IndexedBlock

type IndexedBlock struct {
	Height              int64
	Hash                chainhash.Hash
	PrevHash            chainhash.Hash
	EventHash           chainhash.Hash
	CumulativeEventHash chainhash.Hash
}

type IndexerState

type IndexerState struct {
	CreatedAt        time.Time
	DBVersion        int32
	EventHashVersion int32
}

type OutPointBalance

type OutPointBalance struct {
	RuneId      runes.RuneId
	PkScript    []byte
	OutPoint    wire.OutPoint
	Amount      uint128.Uint128
	BlockHeight uint64
	SpentHeight *uint64
}

type RuneTransaction

type RuneTransaction struct {
	Hash        chainhash.Hash
	BlockHeight uint64
	Index       uint32
	Timestamp   time.Time
	Inputs      []*TxInputOutput
	Outputs     []*TxInputOutput
	Mints       map[runes.RuneId]uint128.Uint128
	Burns       map[runes.RuneId]uint128.Uint128
	Runestone   *runes.Runestone
	RuneEtched  bool
}

type TxInputOutput

type TxInputOutput struct {
	PkScript   []byte
	RuneId     runes.RuneId
	Amount     uint128.Uint128
	Index      uint32
	TxHash     chainhash.Hash
	TxOutIndex uint32
}

func (TxInputOutput) MarshalJSON

func (o TxInputOutput) MarshalJSON() ([]byte, error)

func (*TxInputOutput) UnmarshalJSON

func (o *TxInputOutput) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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