Crate stake_contract_types

Source
Expand description

Types used for transactions with Dusk’s stake contract.

Structs§

ArchivedStake
An archived Stake
ArchivedStakingEvent
An archived StakingEvent
ArchivedUnstake
An archived Unstake
ArchivedWithdraw
An archived Withdraw
Stake
Stake a value on the stake contract.
StakeData
The representation of a public key’s stake.
StakeResolver
The resolver for an archived Stake
StakingEvent
Events Event emitted after a stake contract operation is performed.
StakingEventResolver
The resolver for an archived StakingEvent
Unstake
Unstake a value from the stake contract.
UnstakeResolver
The resolver for an archived Unstake
Withdraw
Withdraw the accumulated reward.
WithdrawResolver
The resolver for an archived Withdraw

Constants§

EPOCH
Epoch used for stake operations

Functions§

next_epoch
Calculate the block height at which the next epoch takes effect.
stake_signature_message
Return the digest to be signed in the stake function of the stake contract.
unstake_signature_message
Signature message used for [Unstake].
withdraw_signature_message
Signature message used for [Withdraw].

Type Aliases§

BlockHeight
Block height type alias