entity

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 RunesUTXO added in v0.3.0

type RunesUTXO struct {
	PkScript     []byte
	OutPoint     wire.OutPoint
	RuneBalances []RunesUTXOBalance
}

type RunesUTXOBalance added in v0.3.0

type RunesUTXOBalance struct {
	RuneId runes.RuneId
	Amount uint128.Uint128
}

type RunesUTXOWithSats added in v0.4.0

type RunesUTXOWithSats struct {
	RunesUTXO
	Sats int64
}

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