constants

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	VAULT_BUSY             = "Vault is busy"
	OPERATION_ID_NOT_FOUND = "Operation not found"
)
View Source
const (
	STokensABI    = "" /* 14395-byte string literal not displayed */
	STokenAddress = "0x44017598f2AF1bD733F9D87b5017b4E7c1B28DDE"

	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"
)

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