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

§

PublishSharedEd2551PublicKey

§

RegisterValidatorConfig

§

RemoveValidatorAndReconfigure

§

RotateAuthenticationKey

§

RotateAuthenticationKeyWithNonce

§

RotateAuthenticationKeyWithNonceAdmin

§

RotateAuthenticationKeyWithRecoveryAddress

§

RotateDualAttestationInfo

§

RotateSharedEd2551PublicKey

§

SetValidatorConfigAndReconfigure

§

SetValidatorOperator

§

SetValidatorOperatorWithNonceAdmin

§

TieredMint

§

UnfreezeAccount

§

UpdateExchangeRate

§

UpdateDiemVersion

§

UpdateMintingAbility

§

UpdateDualAttestationLimit

Implementations§

source§

impl LegacyStdlibScript

source

pub fn all() -> Vec<Self>

Return a vector containing all of the standard library scripts (i.e., all inhabitants of the StdlibScript enum)

source

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

source

pub fn name(self) -> String

Return a lowercase-underscore style name for this script

source

pub fn is(code_bytes: &[u8]) -> bool

Return true if code_bytes is the bytecode of one of the standard library scripts

source

pub fn compiled_bytes(self) -> CompiledBytes

Return the Move bytecode that was produced by compiling this script.

source

pub fn abi(self) -> TransactionScriptABI

Return the ABI of the script (including the bytecode). NB: For legacy scripts, the script ABI will always be a TransactionScriptABI.

source

pub fn hash(self) -> HashValue

Return the sha3-256 hash of the compiled script bytes.

Trait Implementations§

source§

impl Clone for LegacyStdlibScript

source§

fn clone(&self) -> LegacyStdlibScript

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Display for LegacyStdlibScript

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<LegacyStdlibScript> for LegacyStdlibScript

source§

fn eq(&self, other: &LegacyStdlibScript) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<&[u8]> for LegacyStdlibScript

source§

fn try_from(code_bytes: &[u8]) -> Result<Self>

Return Some(<script_name>) if code_bytes is the bytecode of one of the standard library scripts, None otherwise.

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl Copy for LegacyStdlibScript

source§

impl Eq for LegacyStdlibScript

source§

impl StructuralEq for LegacyStdlibScript

source§

impl StructuralPartialEq for LegacyStdlibScript

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V