pub enum TransactionKind {
ProgrammableTransaction(ProgrammableTransaction),
ChangeEpoch(ChangeEpoch),
Genesis(GenesisTransaction),
ConsensusCommitPrologue(ConsensusCommitPrologue),
AuthenticatorStateUpdate(AuthenticatorStateUpdate),
EndOfEpoch(Vec<EndOfEpochTransactionKind>),
RandomnessStateUpdate(RandomnessStateUpdate),
ConsensusCommitPrologueV2(ConsensusCommitPrologueV2),
ConsensusCommitPrologueV3(ConsensusCommitPrologueV3),
}
Variants§
ProgrammableTransaction(ProgrammableTransaction)
A transaction that allows the interleaving of native commands and Move calls
ChangeEpoch(ChangeEpoch)
A system transaction that will update epoch information on-chain. It will only ever be executed once in an epoch. The argument is the next epoch number, which is critical because it ensures that this transaction has a unique digest. This will eventually be translated to a Move call during execution. It also doesn’t require/use a gas object. A validator will not sign a transaction of this kind from outside. It only signs internally during epoch changes.
The ChangeEpoch enumerant is now deprecated (but the ChangeEpoch struct is still used by EndOfEpochTransaction below).
Genesis(GenesisTransaction)
ConsensusCommitPrologue(ConsensusCommitPrologue)
AuthenticatorStateUpdate(AuthenticatorStateUpdate)
EndOfEpoch(Vec<EndOfEpochTransactionKind>)
EndOfEpochTransaction replaces ChangeEpoch with a list of transactions that are allowed to run at the end of the epoch.
RandomnessStateUpdate(RandomnessStateUpdate)
ConsensusCommitPrologueV2(ConsensusCommitPrologueV2)
ConsensusCommitPrologueV3(ConsensusCommitPrologueV3)
Trait Implementations§
Source§impl Arbitrary for TransactionKind
impl Arbitrary for TransactionKind
Source§type Parameters = ()
type Parameters = ()
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.Source§type Strategy = BoxedStrategy<TransactionKind>
type Strategy = BoxedStrategy<TransactionKind>
Strategy
used to generate values of type Self
.Source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
Source§impl Clone for TransactionKind
impl Clone for TransactionKind
Source§fn clone(&self) -> TransactionKind
fn clone(&self) -> TransactionKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactionKind
impl Debug for TransactionKind
Source§impl<'de> Deserialize<'de> for TransactionKind
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TransactionKind
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl PartialEq for TransactionKind
impl PartialEq for TransactionKind
Source§impl Serialize for TransactionKind
Available on crate feature serde
only.
impl Serialize for TransactionKind
serde
only.