Documentation ¶
Index ¶
- type StakingPrecompileSuite
- func (s *StakingPrecompileSuite) Allowance(validator sdk.ValAddress, owner, spender common.Address) *big.Int
- func (s *StakingPrecompileSuite) Approve(validator sdk.ValAddress, spender common.Address, shares *big.Int, ...) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) Delegate(validator sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) DelegateV2(validator sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) Delegation(validator sdk.ValAddress, delegator common.Address) (*big.Int, *big.Int)
- func (s *StakingPrecompileSuite) DelegationRewards(validator sdk.ValAddress, delegator common.Address) *big.Int
- func (s *StakingPrecompileSuite) EthereumTx(data []byte, value *big.Int, gasLimit uint64, success bool) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) RedelegateV2(validatorSrc, validatorDst sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) TransferFromShares(validator sdk.ValAddress, from, to common.Address, shares *big.Int, ...) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) TransferShares(validator sdk.ValAddress, to common.Address, shares *big.Int, success bool) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) Undelegate(validator sdk.ValAddress, shares *big.Int, success bool) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) UndelegateV2(validator sdk.ValAddress, amount *big.Int, success bool) *evmtypes.MsgEthereumTxResponse
- func (s *StakingPrecompileSuite) Withdraw(validator sdk.ValAddress, success bool) *evmtypes.MsgEthereumTxResponse
- type StakingSuite
- func (s *StakingSuite) Delegate(delAddr sdk.AccAddress, delAmount sdkmath.Int, val sdk.ValAddress)
- func (s *StakingSuite) GetDelegation(delAddr sdk.AccAddress, val sdk.ValAddress) stakingtypes.Delegation
- func (s *StakingSuite) GetFirstValidator() stakingtypes.Validator
- func (s *StakingSuite) GetValidator(valAddr sdk.ValAddress) stakingtypes.Validator
- func (s *StakingSuite) GetValidators() []stakingtypes.Validator
- func (s *StakingSuite) Init(ass *require.Assertions, ctx sdk.Context, ...) *StakingSuite
- func (s *StakingSuite) Redelegate(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress)
- func (s *StakingSuite) Undelegate(delAddr sdk.AccAddress, val sdk.ValAddress)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StakingPrecompileSuite ¶
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)
Click to show internal directories.
Click to hide internal directories.