constant

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxRetryInterval      = time.Second * 5 // TxRetryInterval Time between retrying a failed tx
	ThirtySecondInterval = time.Second * 30
)
View Source
const (
	SlotsPerEpoch   int64 = 32
	EpochsPerPeriod int64 = 256
)
View Source
const (
	ProofTypeOfOrigin = iota + 1
	ProofTypeOfZk
	ProofTypeOfOracle
	ProofTypeOfNewOracle
	ProofTypeOfLogOracle
)
View Source
const (
	LegacyTxType     = iota
	AccessListTxType = 0x01
	DynamicFeeTxType = 0x02
	BlobTxType       = 0x03
)
View Source
const (
	MerlinChainId     = 4200
	MapChainId        = 22776
	CfxChainId        = 1030
	ZkSyncChainId     = 324
	OpChainId         = 10
	BaseChainId       = 8453
	BlastChainId      = 81457
	ArbChainId        = 421614
	ArbTestnetChainId = 42161
	MantleChainId     = 5000
	ScrollChainId     = 534352
	DodoChainId       = 53457
	TronChainId       = 728126428
	SolTestChainId    = 1360108768460811
	SolMainChainId    = 1360108768460801
	NearChainId       = 1360100178526209
	TonChainId        = 1360104473493506
)
View Source
const (
	ProjectOfMsger  = int64(1)
	ProjectOfOracle = int64(8)
)
View Source
const (
	FilterUrl       = "v1/mos/list"
	FilterBlockUrl  = "v1/block"
	FilterBtcLogUrl = "api/v1/logs"
)
View Source
const (
	Bsc      = "bsc"
	Conflux  = "conflux"
	Eth2     = "eth2"
	Ethereum = "ethereum"
	Klaytn   = "klaytn"
	Matic    = "matic"
	Near     = "near"
	Solana   = "sol"
	Ton      = "ton"
	Tron     = "tron"
	Btc      = "btc"
)
View Source
const (
	StatusOfInit = iota
	StatusOfUnKnow
	StatusOfRelayFailed
	StatusOfRelayFinish
	StatusOfSwapFailed
	StatusOfDesFailed
)

0: init,2: relay failed,3: relay finish, 4: swap failed, 5: det chain mos failed

View Source
const (
	FeeRentType = "fee.io"
)
View Source
const (
	ProofTypeOfContract = iota + 1
)
View Source
const (
	ReceiptStatusFailed = uint64(0)
)
View Source
const (
	ReqInterval = int64(3)
)

Variables

View Source
var (
	ErrNonceTooLow  = errors.New("nonce too low")
	ErrUnWantedSync = errors.New("unwanted Sync")
)
View Source
var (
	BlockRetryInterval   = time.Second * 3
	QueryRetryInterval   = time.Second * 5
	MaintainerInterval   = time.Second * 3
	MessengerInterval    = time.Second * 1
	BalanceRetryInterval = time.Second * 60
)
View Source
var (
	ReceiptStatusFailedRLP     = []byte{}
	ReceiptStatusSuccessfulRLP = []byte{0x01}
)
View Source
var (
	MapLogIdx  = make(map[string]int64)
	MapOrderId = make(map[string][32]byte)
)
View Source
var IgnoreError = map[string]struct{}{
	"order exist":                       {},
	"Header is have":                    {},
	"header is have":                    {},
	"height error":                      {},
	"invalid start block":               {},
	"invalid syncing block":             {},
	"initialized or unknown epoch":      {},
	"no need to update exe headers":     {},
	"New block must have higher height": {},
	"round mismatch":                    {},
	"epoch mismatch":                    {},
	"headers size too big":              {},
	"Height error":                      {},
	"Update height0 error":              {},
	"invalid end exe header number":     {},
	"the update finalized slot should be higher than the finalized slot":      {},
	"previous exe block headers should be updated before update light client": {},
	"REVERT opcode executed":    {},
	"Validators repetition add": {},
	"oracle: already update":    {},
	"already verified":          {},
	"0x6838b56d":                {},
	"0x8bc9d07c":                {},
	"0x98087555":                {},
	"already in use":            {},
}
View Source
var (
	ZeroAddress = common.HexToAddress("0x0000000000000000000000000000000000000000")
)

Functions

This section is empty.

Types

type BlockIdOfEth2

type BlockIdOfEth2 string
const (
	FinalBlockIdOfEth2 BlockIdOfEth2 = "finalized"
	HeadBlockIdOfEth2  BlockIdOfEth2 = "head"
)

type EventSig added in v1.2.0

type EventSig string

func (EventSig) GetTopic added in v1.2.0

func (es EventSig) GetTopic() common.Hash

Jump to

Keyboard shortcuts

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