Documentation
¶
Index ¶
Constants ¶
View Source
const ( StakingMessageActionDelegate = "Delegate" StakingMessageActionUndelegate = "Undelegate" StakingMessageActionRedelegate = "Redelegate" )
View Source
const WithdrawRewardMessageActionWithdrawFromAllValidators = "all"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomPrecompiledContractInfo ¶
var ( Erc20CpcInfo CustomPrecompiledContractInfo StakingCpcInfo CustomPrecompiledContractInfo Bech32CpcInfo CustomPrecompiledContractInfo )
func (CustomPrecompiledContractInfo) PackMethodOutput ¶
func (s CustomPrecompiledContractInfo) PackMethodOutput(methodName string, args ...any) ([]byte, error)
func (*CustomPrecompiledContractInfo) UnmarshalJSON ¶
func (s *CustomPrecompiledContractInfo) UnmarshalJSON(data []byte) error
func (CustomPrecompiledContractInfo) UnpackMethodInput ¶
func (s CustomPrecompiledContractInfo) UnpackMethodInput(methodName string, fullInput []byte) ([]interface{}, error)
type StakingMessage ¶
type StakingMessage struct { Action string `json:"action"` Delegator common.Address `json:"delegator"` Validator string `json:"validator"` Amount *big.Int `json:"amount"` Denom string `json:"denom"` OldValidator string `json:"oldValidator"` }
func (*StakingMessage) FromUnpackedStruct ¶
func (m *StakingMessage) FromUnpackedStruct(v any) error
func (StakingMessage) ToTypedData ¶
func (m StakingMessage) ToTypedData(chainId *big.Int) apitypes.TypedData
func (StakingMessage) Validate ¶
func (m StakingMessage) Validate(valAddrCodec addresscodec.Codec, bondDenom string) error
type WithdrawRewardMessage ¶
type WithdrawRewardMessage struct { Delegator common.Address `json:"delegator"` FromValidator string `json:"fromValidator"` }
func (*WithdrawRewardMessage) FromUnpackedStruct ¶
func (m *WithdrawRewardMessage) FromUnpackedStruct(v any) error
func (WithdrawRewardMessage) ToTypedData ¶
func (m WithdrawRewardMessage) ToTypedData(chainId *big.Int) apitypes.TypedData
func (WithdrawRewardMessage) Validate ¶
func (m WithdrawRewardMessage) Validate(valAddrCodec addresscodec.Codec) error
Click to show internal directories.
Click to hide internal directories.