pub enum LegacyStdlibScript {
Show 33 variants
AddCurrencyToAccount,
AddRecoveryRotationCapability,
AddValidatorAndReconfigure,
Burn,
BurnTxnFees,
CancelBurn,
CreateChildVaspAccount,
CreateDesignatedDealer,
CreateParentVaspAccount,
CreateRecoveryAddress,
CreateValidatorAccount,
CreateValidatorOperatorAccount,
FreezeAccount,
PeerToPeerWithMetadata,
Preburn,
PublishSharedEd2551PublicKey,
RegisterValidatorConfig,
RemoveValidatorAndReconfigure,
RotateAuthenticationKey,
RotateAuthenticationKeyWithNonce,
RotateAuthenticationKeyWithNonceAdmin,
RotateAuthenticationKeyWithRecoveryAddress,
RotateDualAttestationInfo,
RotateSharedEd2551PublicKey,
SetValidatorConfigAndReconfigure,
SetValidatorOperator,
SetValidatorOperatorWithNonceAdmin,
TieredMint,
UnfreezeAccount,
UpdateExchangeRate,
UpdateDiemVersion,
UpdateMintingAbility,
UpdateDualAttestationLimit,
}
Expand description
All of the Move transaction scripts that can be executed on the Diem blockchain
Variants§
AddCurrencyToAccount
AddRecoveryRotationCapability
AddValidatorAndReconfigure
Burn
BurnTxnFees
CancelBurn
CreateChildVaspAccount
CreateDesignatedDealer
CreateParentVaspAccount
CreateRecoveryAddress
CreateValidatorAccount
CreateValidatorOperatorAccount
FreezeAccount
PeerToPeerWithMetadata
Preburn
RegisterValidatorConfig
RemoveValidatorAndReconfigure
RotateAuthenticationKey
RotateAuthenticationKeyWithNonce
RotateAuthenticationKeyWithNonceAdmin
RotateAuthenticationKeyWithRecoveryAddress
RotateDualAttestationInfo
SetValidatorConfigAndReconfigure
SetValidatorOperator
SetValidatorOperatorWithNonceAdmin
TieredMint
UnfreezeAccount
UpdateExchangeRate
UpdateDiemVersion
UpdateMintingAbility
UpdateDualAttestationLimit
Implementations§
source§impl LegacyStdlibScript
impl LegacyStdlibScript
sourcepub fn all() -> Vec<Self> ⓘ
pub fn all() -> Vec<Self> ⓘ
Return a vector containing all of the standard library scripts (i.e., all inhabitants of the StdlibScript enum)
sourcepub fn allowlist() -> Vec<HashValue> ⓘ
pub fn allowlist() -> Vec<HashValue> ⓘ
Construct the allowlist of script hashes used to determine whether a transaction script can be executed on the Diem blockchain
sourcepub fn is(code_bytes: &[u8]) -> bool
pub fn is(code_bytes: &[u8]) -> bool
Return true if code_bytes
is the bytecode of one of the standard library scripts
sourcepub fn compiled_bytes(self) -> CompiledBytes
pub fn compiled_bytes(self) -> CompiledBytes
Return the Move bytecode that was produced by compiling this script.
Trait Implementations§
source§impl Clone for LegacyStdlibScript
impl Clone for LegacyStdlibScript
source§fn clone(&self) -> LegacyStdlibScript
fn clone(&self) -> LegacyStdlibScript
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Display for LegacyStdlibScript
impl Display for LegacyStdlibScript
source§impl PartialEq<LegacyStdlibScript> for LegacyStdlibScript
impl PartialEq<LegacyStdlibScript> for LegacyStdlibScript
source§fn eq(&self, other: &LegacyStdlibScript) -> bool
fn eq(&self, other: &LegacyStdlibScript) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u8]> for LegacyStdlibScript
impl TryFrom<&[u8]> for LegacyStdlibScript
impl Copy for LegacyStdlibScript
impl Eq for LegacyStdlibScript
impl StructuralEq for LegacyStdlibScript
impl StructuralPartialEq for LegacyStdlibScript
Auto Trait Implementations§
impl RefUnwindSafe for LegacyStdlibScript
impl Send for LegacyStdlibScript
impl Sync for LegacyStdlibScript
impl Unpin for LegacyStdlibScript
impl UnwindSafe for LegacyStdlibScript
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.