DCert
Represents an enum of staking related actions:
Register
: register aStakingCredential
Deregister
: deregister aStakingCredential
Delegate
: delegate aStakingCredential
to a poolRegisterPool
: register a poolRetirePool
: deregister a pool
Associated functions
from_data
DCert::from_data(data: Data) -> DCert
new_register
DCert::new_register(credential: StakingCredential) -> DCert::Register
new_deregister
DCert::new_deregister(credential: StakingCredential) -> DCert::Deregister
new_delegate
DCert::new_delegate(
delegator: StakingCredential,
pool_id: PubKeyHash
) -> DCert::Delegate
new_register_pool
DCert::new_register_pool(
pool_id: PubKeyHash,
pool_vfr: PubKeyHash
) -> DCert::RegisterPool
new_retire_pool
DCert::new_retire_pool(
pool_id: PubKeyHash,
epoch: Int
) -> DCert::RetirePool
Getters
DCert::Register
credential
register_dcert.credential -> StakingCredential
DCert::Deregister
credential
deregister_dcert.credential -> StakingCredential
DCert::Delegate
delegator
delegate_dcert.delegator -> StakingCredential
pool_id
delegate_dcert.pool_id -> PubKeyHash
DCert::RegisterPool
pool_id
register_pool_dcert.pool_id -> PubKeyHash
pool_vrf
register_pool_dcert.pool_vrf -> PubKeyHash
DCert::RetirePool
pool_id
retire_pool_dcert.pool_id -> PubKeyHash
epoch
retire_pool_dcert.epoch -> Int
Operators
==
DCert == DCert -> Bool
!=
DCert != DCert -> Bool
Methods
serialize
dcert.serialize() -> ByteArray