sidechain

package
v0.7.3-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 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(dataDir, config string) (*wallet.Account, error)

func GetAccountFromDir

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

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) (*polybft.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