pub enum EIVersion {
    V1_0,
    V1_1,
    V1_2,
    V1_3,
}
Expand description

The version of the SC environment interface (EI), it deals with the VM hooks available at a certain point in time.

It is not tied to the version of the VM, hence the different numbering.

Variants§

§

V1_0

This is not necessarily the first version of the EI, but rather the oldest version when we started keeping track of the EI.

§

V1_1

New hooks added in Q4 2021.

Added a few more managed type & ESDT utilities.

§

V1_2

New hooks added in Q2 2022. This is the EI version of VM 1.4.

This is the version currently on mainnet.

Added:

  • more managed type conversions
  • more managed crypto hooks
  • big floats
  • some managed ESDT properties.
§

V1_3

VM Hooks version planned to be released with VM 1.5 in Q2 2023.

It adds the new async call functionality (promises).

Implementations§

source§

impl EIVersion

source

pub fn from_name(name: &str) -> Option<Self>

source

pub fn name(&self) -> &'static str

source

pub fn vm_hook_names(&self) -> &'static [&'static str]

source

pub fn contains_vm_hook(&self, vm_hook_names: &str) -> bool

Trait Implementations§

source§

impl Clone for EIVersion

source§

fn clone(&self) -> EIVersion

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 Default for EIVersion

source§

fn default() -> EIVersion

Returns the “default value” for a type. Read more
source§

impl PartialEq<EIVersion> for EIVersion

source§

fn eq(&self, other: &EIVersion) -> 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 Copy for EIVersion

source§

impl Eq for EIVersion

source§

impl StructuralEq for EIVersion

source§

impl StructuralPartialEq for EIVersion

Auto Trait Implementations§

§

impl CodecFromSelf for EIVersion

§

impl RefUnwindSafe for EIVersion

§

impl Send for EIVersion

§

impl Sync for EIVersion

§

impl Unpin for EIVersion

§

impl UnwindSafe for EIVersion

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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

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

Checks if this value is equivalent to the given key. 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

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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> 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, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
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.
source§

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

Performs the conversion.