Documentation ¶
Index ¶
- Constants
- Variables
- func CheckValidatorStatus(t *testing.T, cs chainSimulatorIntegrationTests.ChainSimulator, blsKey string, ...)
- func GetAllNodeStates(t *testing.T, metachainNode chainSimulatorProcess.NodeHandler, address []byte) map[string]string
- func GetBLSKeyStatus(t *testing.T, metachainNode chainSimulatorProcess.NodeHandler, blsKey []byte) string
- func GetNonce(t *testing.T, cs chainSimulatorIntegrationTests.ChainSimulator, ...) uint64
Constants ¶
View Source
const ( // MockBLSSignature the const for a mocked bls signature MockBLSSignature = "010101" // GasLimitForStakeOperation the const for the gas limit value for the stake operation GasLimitForStakeOperation = 50_000_000 // GasLimitForUnBond the const for the gas limit value for the unBond operation GasLimitForUnBond = 12_000_000 // MaxNumOfBlockToGenerateWhenExecutingTx the const for the maximum number of block to generate when execute a transaction MaxNumOfBlockToGenerateWhenExecutingTx = 7 // QueuedStatus the const for the queued status of a validators QueuedStatus = "queued" // StakedStatus the const for the staked status of a validators StakedStatus = "staked" // NotStakedStatus the const for the notStaked status of a validators NotStakedStatus = "notStaked" // AuctionStatus the const for the action status of a validators AuctionStatus = "auction" // UnStakedStatus the const for the unStaked status of a validators UnStakedStatus = "unStaked" )
Variables ¶
View Source
var ( //InitialDelegationValue the variable for the initial delegation value InitialDelegationValue = big.NewInt(0).Mul(chainSimulatorIntegrationTests.OneEGLD, big.NewInt(1250)) )
Functions ¶
func CheckValidatorStatus ¶
func CheckValidatorStatus(t *testing.T, cs chainSimulatorIntegrationTests.ChainSimulator, blsKey string, expectedStatus string)
CheckValidatorStatus will compare the status of the provided bls key with the provided expected status
func GetAllNodeStates ¶
func GetAllNodeStates(t *testing.T, metachainNode chainSimulatorProcess.NodeHandler, address []byte) map[string]string
GetAllNodeStates will return the status of all the nodes that belong to the provided address
func GetBLSKeyStatus ¶
func GetBLSKeyStatus(t *testing.T, metachainNode chainSimulatorProcess.NodeHandler, blsKey []byte) string
GetBLSKeyStatus will return the bls key status
func GetNonce ¶
func GetNonce(t *testing.T, cs chainSimulatorIntegrationTests.ChainSimulator, address dtos.WalletAddress) uint64
GetNonce will return the nonce of the provided address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.