testutil

package
v7.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 12 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StakingPrecompileSuite

type StakingPrecompileSuite struct {
	testutil.EVMSuite
}

func (*StakingPrecompileSuite) Allowance

func (s *StakingPrecompileSuite) Allowance(validator sdk.ValAddress, owner, spender common.Address) *big.Int

func (*StakingPrecompileSuite) Approve

func (s *StakingPrecompileSuite) Approve(validator sdk.ValAddress, spender common.Address, shares *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) Delegate

func (s *StakingPrecompileSuite) Delegate(validator sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) DelegateV2

func (s *StakingPrecompileSuite) DelegateV2(validator sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) Delegation

func (s *StakingPrecompileSuite) Delegation(validator sdk.ValAddress, delegator common.Address) (*big.Int, *big.Int)

func (*StakingPrecompileSuite) DelegationRewards

func (s *StakingPrecompileSuite) DelegationRewards(validator sdk.ValAddress, delegator common.Address) *big.Int

func (*StakingPrecompileSuite) EthereumTx

func (s *StakingPrecompileSuite) EthereumTx(data []byte, value *big.Int, gasLimit uint64, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) RedelegateV2

func (s *StakingPrecompileSuite) RedelegateV2(validatorSrc, validatorDst sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) TransferFromShares

func (s *StakingPrecompileSuite) TransferFromShares(validator sdk.ValAddress, from, to common.Address, shares *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) TransferShares

func (s *StakingPrecompileSuite) TransferShares(validator sdk.ValAddress, to common.Address, shares *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) Undelegate

func (s *StakingPrecompileSuite) Undelegate(validator sdk.ValAddress, shares *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) UndelegateV2

func (s *StakingPrecompileSuite) UndelegateV2(validator sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse

func (*StakingPrecompileSuite) Withdraw

func (s *StakingPrecompileSuite) Withdraw(validator sdk.ValAddress, success bool) *evmtypes.MsgEthereumTxResponse

type StakingSuite

type StakingSuite struct {
	*require.Assertions
	// contains filtered or unexported fields
}

func (*StakingSuite) Delegate

func (s *StakingSuite) Delegate(delAddr sdk.AccAddress, delAmount sdkmath.Int, val sdk.ValAddress)

func (*StakingSuite) GetDelegation

func (s *StakingSuite) GetDelegation(delAddr sdk.AccAddress, val sdk.ValAddress) stakingtypes.Delegation

func (*StakingSuite) GetFirstValidator

func (s *StakingSuite) GetFirstValidator() stakingtypes.Validator

func (*StakingSuite) GetValidator

func (s *StakingSuite) GetValidator(valAddr sdk.ValAddress) stakingtypes.Validator

func (*StakingSuite) GetValidators

func (s *StakingSuite) GetValidators() []stakingtypes.Validator

func (*StakingSuite) Init

func (s *StakingSuite) Init(ass *require.Assertions, ctx sdk.Context, stakingKeeper *fxstakingkeeper.Keeper) *StakingSuite

func (*StakingSuite) Redelegate

func (s *StakingSuite) Redelegate(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress)

func (*StakingSuite) Undelegate

func (s *StakingSuite) Undelegate(delAddr sdk.AccAddress, val sdk.ValAddress)

Jump to

Keyboard shortcuts

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