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
Types ¶
Click to show internal directories.
Click to hide internal directories.