Documentation ¶
Index ¶
- Constants
- func CheckIfDirectoryExist(dir string) error
- func GetAccount(accountDir, accountConfig string) (*wallet.Account, error)
- func GetAccountFromDir(accountDir string) (*wallet.Account, error)
- func GetDelegatorReward(validatorAddr ethgo.Address, delegatorAddr ethgo.Address, ...) (*big.Int, error)
- func GetValidatorInfo(validatorAddr ethgo.Address, txRelayer txrelayer.TxRelayer) (*komerbft.ValidatorInfo, error)
- func ValidateSecretFlags(dataDir, config string) error
Constants ¶
View Source
const ( SelfFlag = "self" AmountFlag = "amount" DefaultGasPrice = 1879048192 // 0x70000000 )
Variables ¶
This section is empty.
Functions ¶
func CheckIfDirectoryExist ¶
func GetAccount ¶
GetAccount resolves secrets manager and returns an account object
func GetAccountFromDir ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.