constants

package
v0.0.0-...-23cc077 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_NAME    = "Block Explorer Indexer"
	APP_DESC    = "Indexing multiple blockchains"
	BINARY_NAME = "beid"

	DEFAULT_HOME                 = "." + BINARY_NAME
	DEFAULT_CONFIG_FILE_NAME     = "config." + CONFIG_TYPE
	DEFAULT_CHAIN_LIST_FILE_NAME = "chains." + CONFIG_TYPE
	CONFIG_TYPE                  = "yaml"
)
View Source
const (
	FILE_PERMISSION     = 0o600
	FILE_PERMISSION_STR = "600"
)
View Source
const (
	RetryIndexingFailedBlockGapSeconds = 60
	RetryIndexingFailedBlockMaxRetries = 100
)
View Source
const (
	MaximumNumberOfBlocksToIndexPerBatch = 100

	RecheckPostponedChainInterval = 5 * time.Minute
)
View Source
const (
	InvolversTypeSenderOrSigner     = "s"
	InvolversTypeNormal             = "0"
	InvolversTypeErc20              = "erc20"
	InvolversTypeNft                = "nft"
	InvolversTypeContractsInvolvers = "contracts"
)
View Source
const (
	IT_DB_PG_VERSION       = "15.2"
	IT_PG_PORT             = 42345
	IT_PG_SHARED_IDENTITY  = "itestdb" // database name, user name
	IT_PG_PASS             = "1234567"
	IT_PG_DOCKER_CONTAINER = "drbe-it-local"
)
View Source
const (
	RpcTxAheadBlockTimeAllowed                     = 86400 - 1 // now + X
	RpcTxMaximumTxsPerBlockAllowed                 = 100       // maximum X txs per block
	RpcTxMaximumMessagesPerTxAllowed               = 30        // maximum X msgs per tx
	RpcTxMaximumSystemMessagesPerTxAllowed         = 300       // maximum X system msgs per tx
	RpcTxMaximumStringSizeAllowed                  = 1000      // characters
	RpcTxMaximumSignersPerTx                       = 10        // maximum X signers per tx
	RpcTxMaximumLengthAddressAllowed               = 100       // address characters can not access X characters
	RpcTxMaximumInvolversPerTxAllowed              = 250       // no more than X involvers can be involved in one tx
	RpcTxMaximumTokenContractsInvolvesPerTxAllowed = 20        // no more than X token contracts can be involved in one tx
)
View Source
const (
	FLAG_HOME = "home"
)

Variables

View Source
var (
	VERSION     = ""
	COMMIT_HASH = ""
	BUILD_DATE  = ""
)

Functions

func GetTablesPartitionedByChainId

func GetTablesPartitionedByChainId() []string

func GetTablesPartitionedByEpochWeekAndChainId

func GetTablesPartitionedByEpochWeekAndChainId() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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