entity

package
v0.3.0-brc20-1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: GPL-3.0 Imports: 6 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
	Tick             string
	BlockHeight      uint64
	OverallBalance   decimal.Decimal
	AvailableBalance decimal.Decimal
}

type EventDeploy

type EventDeploy struct {
	Id                uint64
	InscriptionId     ordinals.InscriptionId
	InscriptionNumber int64
	Tick              string
	OriginalTick      string
	TxHash            chainhash.Hash
	BlockHeight       uint64
	TxIndex           uint32
	Timestamp         time.Time

	PkScript     []byte
	SatPoint     ordinals.SatPoint
	TotalSupply  decimal.Decimal
	Decimals     uint16
	LimitPerMint decimal.Decimal
	IsSelfMint   bool
}

type EventInscribeTransfer

type EventInscribeTransfer struct {
	Id                uint64
	InscriptionId     ordinals.InscriptionId
	InscriptionNumber int64
	Tick              string
	OriginalTick      string
	TxHash            chainhash.Hash
	BlockHeight       uint64
	TxIndex           uint32
	Timestamp         time.Time

	PkScript    []byte
	SatPoint    ordinals.SatPoint
	OutputIndex uint32
	SatsAmount  uint64
	Amount      decimal.Decimal
}

type EventMint

type EventMint struct {
	Id                uint64
	InscriptionId     ordinals.InscriptionId
	InscriptionNumber int64
	Tick              string
	OriginalTick      string
	TxHash            chainhash.Hash
	BlockHeight       uint64
	TxIndex           uint32
	Timestamp         time.Time

	PkScript []byte
	SatPoint ordinals.SatPoint
	Amount   decimal.Decimal
	ParentId *ordinals.InscriptionId
}

type EventTransferTransfer

type EventTransferTransfer struct {
	Id                uint64
	InscriptionId     ordinals.InscriptionId
	InscriptionNumber int64
	Tick              string
	OriginalTick      string
	TxHash            chainhash.Hash
	BlockHeight       uint64
	TxIndex           uint32
	Timestamp         time.Time

	FromPkScript   []byte
	FromSatPoint   ordinals.SatPoint
	FromInputIndex uint32
	ToPkScript     []byte
	ToSatPoint     ordinals.SatPoint
	ToOutputIndex  uint32
	SpentAsFee     bool
	Amount         decimal.Decimal
}

type Flotsam

type Flotsam struct {
	Tx            *types.Transaction
	OriginOld     *OriginOld // OriginOld and OriginNew are mutually exclusive
	OriginNew     *OriginNew // OriginOld and OriginNew are mutually exclusive
	Offset        uint64
	InscriptionId ordinals.InscriptionId
}

type IndexedBlock

type IndexedBlock struct {
	Height              uint64
	Hash                chainhash.Hash
	EventHash           chainhash.Hash
	CumulativeEventHash chainhash.Hash
}

type IndexerState

type IndexerState struct {
	CreatedAt        time.Time
	ClientVersion    string
	DBVersion        int32
	EventHashVersion int32
	Network          common.Network
}

type InscriptionTransfer

type InscriptionTransfer struct {
	InscriptionId  ordinals.InscriptionId
	BlockHeight    uint64
	TxIndex        uint32
	TxHash         chainhash.Hash
	Content        []byte
	FromInputIndex uint32
	OldSatPoint    ordinals.SatPoint
	NewSatPoint    ordinals.SatPoint
	NewPkScript    []byte
	NewOutputValue uint64
	SentAsFee      bool
	TransferCount  uint32
}

type OriginNew

type OriginNew struct {
	Inscription    ordinals.Inscription
	Parent         *ordinals.InscriptionId
	Pointer        *uint64
	Fee            uint64
	Cursed         bool
	CursedForBRC20 bool
	Hidden         bool
	Reinscription  bool
	Unbound        bool
}

type OriginOld

type OriginOld struct {
	Content     []byte
	OldSatPoint ordinals.SatPoint
	InputIndex  uint32
}

type ProcessorStats

type ProcessorStats struct {
	BlockHeight             uint64
	CursedInscriptionCount  uint64
	BlessedInscriptionCount uint64
	LostSats                uint64
}

type TickEntry

type TickEntry struct {
	Tick                string
	OriginalTick        string
	TotalSupply         decimal.Decimal
	Decimals            uint16
	LimitPerMint        decimal.Decimal
	IsSelfMint          bool
	DeployInscriptionId ordinals.InscriptionId
	DeployedAt          time.Time
	DeployedAtHeight    uint64

	MintedAmount      decimal.Decimal
	BurnedAmount      decimal.Decimal
	CompletedAt       time.Time
	CompletedAtHeight uint64
}

Jump to

Keyboard shortcuts

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