constants

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version          = "v0.0.1"
	DBVersion        = 1
	EventHashVersion = 1
)

Variables

View Source
var GenesisRuneConfigMap = map[common.Network]GenesisRuneConfig{
	common.NetworkMainnet: {
		RuneId:       runes.RuneId{BlockHeight: 1, TxIndex: 0},
		Number:       0,
		Divisibility: 0,
		Premine:      uint128.Zero,
		SpacedRune:   runes.NewSpacedRune(runes.NewRune(2055900680524219742), 0b10000000),
		Symbol:       '\u29c9',
		Terms: &runes.Terms{
			Amount:      lo.ToPtr(uint128.From64(1)),
			Cap:         &uint128.Max,
			HeightStart: lo.ToPtr(uint64(840000)),
			HeightEnd:   lo.ToPtr(uint64(1050000)),
			OffsetStart: nil,
			OffsetEnd:   nil,
		},
		Turbo:         true,
		EtchingTxHash: chainhash.Hash{},
		EtchedAt:      time.Unix(0, 0),
	},
	common.NetworkFractalMainnet: {
		RuneId:       runes.RuneId{BlockHeight: 1, TxIndex: 0},
		Number:       0,
		Divisibility: 0,
		Premine:      uint128.Zero,
		SpacedRune:   runes.NewSpacedRune(runes.NewRune(2055900680524219742), 0b10000000),
		Symbol:       '\u29c9',
		Terms: &runes.Terms{
			Amount:      lo.ToPtr(uint128.From64(1)),
			Cap:         &uint128.Max,
			HeightStart: lo.ToPtr(uint64(84000)),
			HeightEnd:   lo.ToPtr(uint64(2184000)),
			OffsetStart: nil,
			OffsetEnd:   nil,
		},
		Turbo:         true,
		EtchingTxHash: chainhash.Hash{},
		EtchedAt:      time.Unix(0, 0),
	},
	common.NetworkFractalTestnet: {
		RuneId:       runes.RuneId{BlockHeight: 1, TxIndex: 0},
		Number:       0,
		Divisibility: 0,
		Premine:      uint128.Zero,
		SpacedRune:   runes.NewSpacedRune(runes.NewRune(2055900680524219742), 0b10000000),
		Symbol:       '\u29c9',
		Terms: &runes.Terms{
			Amount:      lo.ToPtr(uint128.From64(1)),
			Cap:         &uint128.Max,
			HeightStart: lo.ToPtr(uint64(84000)),
			HeightEnd:   lo.ToPtr(uint64(2184000)),
			OffsetStart: nil,
			OffsetEnd:   nil,
		},
		Turbo:         true,
		EtchingTxHash: chainhash.Hash{},
		EtchedAt:      time.Unix(0, 0),
	},
}
View Source
var StartingBlockHeader = map[common.Network]types.BlockHeader{
	common.NetworkMainnet: {
		Height: 839999,
	},
	common.NetworkTestnet: {
		Height: 2519999,
	},
	common.NetworkFractalMainnet: {
		Height: 83999,
	},
	common.NetworkFractalTestnet: {
		Height: 83999,
	},
}

starting block heights and hashes should be 1 block before activation block, as indexer will start from the block after this value

Functions

func NetworkHasGenesisRune added in v0.4.2

func NetworkHasGenesisRune(network common.Network) bool

Types

type GenesisRuneConfig added in v0.4.3

type GenesisRuneConfig struct {
	RuneId        runes.RuneId
	Name          string
	Number        uint64
	Divisibility  uint8
	Premine       uint128.Uint128
	SpacedRune    runes.SpacedRune
	Symbol        rune
	Terms         *runes.Terms
	Turbo         bool
	EtchingTxHash chainhash.Hash
	EtchedAt      time.Time
}

Jump to

Keyboard shortcuts

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