constants

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VAULT_BUSY             = "Vault is busy"
	OPERATION_ID_NOT_FOUND = "Operation not found"
	PENDING                = "PENDING"
)
View Source
const (
	LiquidStakingABI     = "" /* 12056-byte string literal not displayed */
	LiquidStakingAddress = "0xce3f57A8De9AA69da3289871b5FeE5E77fFCF480"
	LiquidStakingStake   = "stake"
	LiquidStakingUnStake = "unStake"

	TokenWrapperABI             = "" /* 8912-byte string literal not displayed */
	TokenWrapperAddress         = "0xA9739b5BdAfe956DEAa8b2e695c7d4f1DF7Bc1D6"
	TokenWrapperWithdrawUTokens = "withdrawUTokens"
)
View Source
const (
	FlagTimeOut               = "timeout"
	FlagPBridgeHome           = "pBridgeHome"
	FlagEthereumEndPoint      = "ethEndPoint"
	FlagTendermintSleepTime   = "tmSleepTime"
	FlagEthereumSleepTime     = "ethSleepTime"
	FlagTendermintStartHeight = "tmStart"
	FlagEthereumStartHeight   = "ethStart"
	FlagDenom                 = "denom"
	FlagEthGasLimit           = "ethGasLimit"
	FlagKafkaPorts            = "kafkaPorts"
	FlagBroadcastMode         = "tmBroadcastMode"
	FlagCASPURL               = "caspURL"
	FlagCASPVaultID           = "caspVaultID"
	FlagCASPTMPublicKey       = "caspTMPublicKey"
	FlagCASPEthPublicKey      = "caspEthPublicKey"
	FlagCASPSignatureWaitTime = "caspSignatureWaitTime"
	FlagCASPApiToken          = "caspApiToken"
	FlagCASPConcurrentKey     = "caspConcurrentKeyUsage"
	FlagRPCEndpoint           = "rpc-endpoint"
	FlagMinimumWrapAmount     = "minWrapAmt"
	FlagTelegramBotToken      = "botToken"
	FlagTelegramChatID        = "botChatID"
)

Variables

View Source
var (
	DefaultTimeout               = "10s"
	DefaultEthereumEndPoint      = "wss://ropsten.infura.io/ws/v3/b21966541db246d398fb31402eec2c14"
	DefaultTendermintSleepTime   = 3000     //ms
	DefaultEthereumSleepTime     = 4500     //ms
	DefaultTendermintStartHeight = int64(0) // 0 will not change the db at start
	DefaultEthereumStartHeight   = int64(0) // 0 will not change the db at start
	DefaultPBridgeHome           = os.ExpandEnv("$HOME/.persistenceBridge")
	DefaultDenom                 = "uatom"
	DefaultEthGasLimit           = uint64(500000)
	DefaultBroadcastMode         = flags.BroadcastAsync
	DefaultMinimumWrapAmount     = int64(5000000)
	DefaultKafkaPorts            = "localhost:9092"
	DefaultCASPSignatureWaitTime = 8 * time.Second
	DefaultRPCEndpoint           = "localhost:4040"
)
View Source
var (
	DefaultBrokers            = []string{"localhost:9092"}
	MinEthBatchSize           = 1
	MaxEthBatchSize           = 30
	EthTicker                 = 30 * time.Second
	MinTendermintBatchSize    = 1 //Do not change
	MaxTendermintBatchSize    = 30
	TendermintTicker          = 3 * time.Second
	DefaultEthUnbondCycleTime = 259200 * time.Second //3days in seconds

	// TopicDetail : configs only required for admin to create topics if not present.
	TopicDetail = sarama.TopicDetail{
		NumPartitions:     1,
		ReplicationFactor: 1,
	}
)

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