Enum NativeCodeId

Source
#[repr(u64)]
pub enum NativeCodeId {
Show 24 variants PackageCode1 = 0, PackageCode2 = 22, ResourceCode1 = 1, ResourceCode2 = 26, IdentityCode1 = 2, IdentityCode2 = 25, ConsensusManagerCode1 = 3, ConsensusManagerCode2 = 16, AccountCode1 = 5, AccountCode2 = 20, AccountCode3 = 24, AccessControllerCode1 = 6, AccessControllerCode2 = 23, PoolCode1 = 13, PoolCode2 = 17, TransactionTrackerCode1 = 14, TestUtilsCode1 = 15, LockerCode1 = 19, TransactionProcessorCode1 = 7, TransactionProcessorCode2 = 21, MetadataCode1 = 10, RoyaltyCode1 = 11, RoleAssignmentCode1 = 12, RoleAssignmentCode2 = 18,
}

Variants§

§

PackageCode1 = 0

  • Introduced: Babylon
  • Coverage : All package blueprints
  • Changes : N/A
§

PackageCode2 = 22

  • Introduced: Bottlenose
  • Coverage : All package blueprints
  • Changes : Add limit to reserved role key
§

ResourceCode1 = 1

  • Introduced: Babylon
  • Coverage : All resource blueprints
  • Changes : N/A
§

ResourceCode2 = 26

  • Introduced: Cuttlefish
  • Coverage : WORKTOP_ASSERT_RESOURCES_INCLUDE_IDENT and WORKTOP_ASSERT_RESOURCES_ONLY_IDENT
  • Changes : Add assert resources methods to the worktop blueprint
§

IdentityCode1 = 2

  • Introduced: Babylon
  • Coverage : All identity blueprints
  • Changes : N/A
§

IdentityCode2 = 25

  • Introduced: Bottlenose
  • Coverage : IDENTITY_CREATE_ADVANCED_IDENT, IDENTITY_CREATE_IDENT and IDENTITY_ON_VIRTUALIZE_EXPORT_NAME
  • Changes : Do not create royalty module
§

ConsensusManagerCode1 = 3

  • Introduced: Babylon
  • Coverage : All consensus manager blueprints
  • Changes : N/A
§

ConsensusManagerCode2 = 16

  • Introduced: Anemone
  • Coverage : CONSENSUS_MANAGER_GET_CURRENT_TIME_IDENT and CONSENSUS_MANAGER_COMPARE_CURRENT_TIME_IDENT
  • Changes : Add second precision time
§

AccountCode1 = 5

  • Introduced: Babylon
  • Coverage : All account blueprints
  • Changes : N/A
§

AccountCode2 = 20

  • Introduced: Bottlenose
  • Coverage : ACCOUNT_TRY_DEPOSIT_OR_REFUND_IDENT and ACCOUNT_TRY_DEPOSIT_BATCH_OR_REFUND_IDENT
  • Changes : Update try_deposit logic
§

AccountCode3 = 24

  • Introduced: Cuttlefish
  • Coverage : Account getters
  • Changes : Adds getters to the account blueprint
§

AccessControllerCode1 = 6

  • Introduced: Babylon
  • Coverage : All access controller blueprints
  • Changes : N/A
§

AccessControllerCode2 = 23

  • Introduced: Babylon
  • Coverage : All access controller blueprints
  • Changes : Introduce fee vault
§

PoolCode1 = 13

  • Introduced: Babylon
  • Coverage : All pool blueprints
  • Changes : N/A
§

PoolCode2 = 17

  • Introduced: Anemone
  • Coverage : All pool blueprints
  • Changes : Update pools to use precise decimal
§

TransactionTrackerCode1 = 14

  • Introduced: Babylon
  • Coverage : All transaction tracker blueprints
  • Changes : N/A
§

TestUtilsCode1 = 15

  • Introduced: Babylon
  • Coverage : All test blueprints
  • Changes : N/A
§

LockerCode1 = 19

  • Introduced: Bottlenose
  • Coverage : All locker blueprints
  • Changes : N/A
§

TransactionProcessorCode1 = 7

  • Introduced: Babylon
  • Coverage : All transaction processor blueprints
  • Changes : N/A
§

TransactionProcessorCode2 = 21

  • Introduced: Bottlenose
  • Coverage : All transaction processor blueprints
  • Changes : Add blob limits
§

MetadataCode1 = 10

  • Introduced: Babylon
  • Coverage : All metadata object module blueprints
  • Changes : N/A
§

RoyaltyCode1 = 11

  • Introduced: Babylon
  • Coverage : All royalty object module blueprints
  • Changes : N/A
§

RoleAssignmentCode1 = 12

  • Introduced: Babylon
  • Coverage : All role assignment object module blueprints
  • Changes : N/A
§

RoleAssignmentCode2 = 18

  • Introduced: Bottlenose
  • Coverage : ROLE_ASSIGNMENT_GET_OWNER_ROLE_IDENT
  • Changes : Add `get_owner_role``

Implementations§

Source§

impl NativeCodeId

Source

pub const fn from_repr(discriminant: u64) -> Option<NativeCodeId>

Try to create Self from the raw representation

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T, U> ContextualTryInto<U> for T
where U: ContextualTryFrom<T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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<X, Y> LabelledResolve<Y> for X
where Y: LabelledResolveFrom<X>,

Source§

fn labelled_resolve( self, resolver: &impl LabelResolver<<Y as LabelledResolvable>::ResolverOutput>, ) -> Y

Source§

impl<X, Y> Resolve<Y> for X
where Y: ResolveFrom<X>,

Source§

fn resolve(self) -> Y

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.