common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OracleChannelId              types.ChannelId = 0
	ZkmeSBTChannelId             types.ChannelId = 10
	SleepTimeAfterSyncLightBlock                 = 15 * time.Second

	OpBNBChainId    uint64 = 204
	PolygonChainId  uint64 = 137
	ScrollChainId   uint64 = 534352 // 534352 overflows uint16
	LineaChainId    uint64 = 59144
	MantleChainId   uint64 = 5000
	ArbitrumChainId uint64 = 42161
	OptimismChainId uint64 = 10

	ListenerPauseTime  = 3 * time.Second
	ErrorRetryInterval = 1 * time.Second
	AssembleInterval   = 500 * time.Millisecond

	TxDelayAlertThreshHold = 300 // in second

	DefaultBscMirrorZkmeSBTRelayerFee    = "1300000000000000" // 0.0013
	DefaultBscMirrorZkmeSBTAckRelayerFee = "250000000000000"  // 0.00025
)

Variables

View Source
var (
	RtyAttNum = uint(5)
	RtyAttem  = retry.Attempts(RtyAttNum)
	RtyDelay  = retry.Delay(time.Millisecond * 500)
	RtyErr    = retry.LastErrorOnly(true)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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