sidechain

package
v0.0.0-...-dd56834 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SelfFlag   = "self"
	AmountFlag = "amount"

	DefaultGasPrice = 1879048192 // 0x70000000
)

Variables

This section is empty.

Functions

func CheckIfDirectoryExist

func CheckIfDirectoryExist(dir string) error

func GetAccount

func GetAccount(accountDir, accountConfig string) (*wallet.Account, error)

GetAccount resolves secrets manager and returns an account object

func GetAccountFromDir

func GetAccountFromDir(accountDir string) (*wallet.Account, error)

GetAccountFromDir returns an account object from local secrets manager

func GetDelegatorReward

func GetDelegatorReward(validatorAddr ethgo.Address, delegatorAddr ethgo.Address,
	txRelayer txrelayer.TxRelayer) (*big.Int, error)

GetDelegatorReward queries delegator reward for given validator and delegator addresses

func GetValidatorInfo

func GetValidatorInfo(validatorAddr ethgo.Address, txRelayer txrelayer.TxRelayer) (*komerbft.ValidatorInfo, error)

GetValidatorInfo queries ChildValidatorSet smart contract and retrieves validator info for given address

func ValidateSecretFlags

func ValidateSecretFlags(dataDir, config string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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