#[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
andWORKTOP_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
andIDENTITY_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
andCONSENSUS_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
andACCOUNT_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
impl NativeCodeId
Auto Trait Implementations§
impl Freeze for NativeCodeId
impl RefUnwindSafe for NativeCodeId
impl Send for NativeCodeId
impl Sync for NativeCodeId
impl Unpin for NativeCodeId
impl UnwindSafe for NativeCodeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more