Skip to main content

GlobalCapability

Enum GlobalCapability 

Source
#[repr(u64)]
pub enum GlobalCapability {
Show 35 variants CapIhrEnabled = 1, CapCreateStatsEnabled = 2, CapBounceMsgBody = 4, CapReportVersion = 8, CapSplitMergeTransactions = 16, CapShortDequeue = 32, CapMbppEnabled = 64, CapFastStorageStat = 128, CapInitCodeHash = 256, CapOffHypercube = 512, CapMyCode = 1_024, CapSetLibCode = 2_048, CapFixTupleIndexBug = 4_096, CapRemp = 8_192, CapDelections = 16_384, CapFullBodyInBounced = 65_536, CapStorageFeeToTvm = 131_072, CapCopyleft = 262_144, CapIndexAccounts = 524_288, CapDiff = 1_048_576, CapsTvmBugfixes2022 = 2_097_152, CapWorkchains = 4_194_304, CapStcontNewFormat = 8_388_608, CapFastStorageStatBugfix = 16_777_216, CapResolveMerkleCell = 33_554_432, CapSignatureWithId = 67_108_864, CapBounceAfterFailedAction = 134_217_728, CapGroth16 = 268_435_456, CapFeeInGasUnits = 536_870_912, CapBigCells = 1_073_741_824, CapSuspendedList = 2_147_483_648, CapFastFinality = 4_294_967_296, CapSuspendByMarks = 8_589_934_592, CapOmitMasterBlockHistory = 17_179_869_184, CapSignatureDomain = 34_359_738_368,
}
Expand description

Node software capabilities.

Variants§

§

CapIhrEnabled = 1

Instant Hypercube Routing.

Mask: 0x0000001.

§

CapCreateStatsEnabled = 2

Tracking of block collation stats.

Mask: 0x0000002.

§

CapBounceMsgBody = 4

Body (at most 256 bits) in bounced messages.

Mask: 0x0000004.

§

CapReportVersion = 8

Supported software version and capabilities as field in BlockInfo.

Mask: 0x0000008.

§

CapSplitMergeTransactions = 16

Special transactions on split or merge.

Mask: 0x0000010.

§

CapShortDequeue = 32

Short output messages queue.

Mask: 0x0000020.

§

CapMbppEnabled = 64

unknown (possibly just a stub).

Mask: 0x0000040.

§

CapFastStorageStat = 128

Precompute storage stats for cells and use this info for storage phase. NOTE: changes behavior for storage phase, computing stats for non-unique cells.

Mask: 0x0000080

§

CapInitCodeHash = 256

Store init code hash in account state.

Mask: 0x0000100.

§

CapOffHypercube = 512

Disable hypercube for message routing.

Mask: 0x0000200.

§

CapMyCode = 1_024

MYCODE TVM opcode.

Mask: 0x0000400.

§

CapSetLibCode = 2_048

CHANGELIB and SETLIBCODE TVM opcodes.

Mask: 0x0000800.

§

CapFixTupleIndexBug = 4_096

Fix in SETINDEX* TVM opcodes.

Mask: 0x0001000.

§

CapRemp = 8_192

Reliable External Messaging Protocol.

Mask: 0x0002000.

§

CapDelections = 16_384

Support for decentralized elections.

Mask: 0x0004000.

§

CapFullBodyInBounced = 65_536

Full message body in bounced messages (in the first child cell).

Mask: 0x0010000.

§

CapStorageFeeToTvm = 131_072

STORAGEFEE TVM opcode.

Mask: 0x0020000.

§

CapCopyleft = 262_144

Support for copyleft messages.

Mask: 0x0040000.

§

CapIndexAccounts = 524_288

FIND_BY_* TVM opcodes.

Mask: 0x0080000.

§

CapDiff = 1_048_576

DIFF*, ZIP, UNZIP TVM opcodes.

Mask: 0x0100000.

§

CapsTvmBugfixes2022 = 2_097_152

Cumulative patches to TVM and cells (popsave, exception handler, loops).

Mask: 0x0200000.

§

CapWorkchains = 4_194_304

Support for message queues between workchains.

Mask: 0x0400000.

§

CapStcontNewFormat = 8_388_608

New continuation serialization format.

Mask: 0x0800000.

§

CapFastStorageStatBugfix = 16_777_216

Use fast stats for *DATASIZE* TVM opcodes.

Mask: 0x1000000.

§

CapResolveMerkleCell = 33_554_432

Add support for transparent loading of merkle cells.

Mask: 0x2000000.

§

CapSignatureWithId = 67_108_864

Prepend signature with global_id for TVM.

Mask: 0x4000000.

§

CapBounceAfterFailedAction = 134_217_728

Execute bounce phase even after failed action phase.

Mask: 0x8000000.

§

CapGroth16 = 268_435_456

Groth16 support in TVM.

Mask: 0x10000000

§

CapFeeInGasUnits = 536_870_912

Makes all fees in config in gas units.

Mask: 0x20000000

§

CapBigCells = 1_073_741_824

Big cells support.

Mask: 0x40000000

§

CapSuspendedList = 2_147_483_648

Suspend addresses using a config param.

Mask: 0x80000000

§

CapFastFinality = 4_294_967_296

Adds intershard communication between master blocks.

Mask: 0x100000000

§

CapSuspendByMarks = 8_589_934_592

Allows to suspend accounts by special extra currencies.

Mask: 0x200000000

§

CapOmitMasterBlockHistory = 17_179_869_184

Omits master block history to save storage space.

Mask: 0x400000000

§

CapSignatureDomain = 34_359_738_368

Apply signature domain to verified data.

It is a newer version of GlobalCapability::CapSignatureWithId and has a higher priority if both are enabled at the same time.

Mask: 0x800000000

Trait Implementations§

Source§

impl BitOr for GlobalCapability

Source§

type Output = GlobalCapabilities

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: GlobalCapability) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<GlobalCapabilities> for GlobalCapability

Source§

type Output = GlobalCapabilities

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: GlobalCapabilities) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<GlobalCapability> for u64

Source§

type Output = GlobalCapabilities

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: GlobalCapability) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<GlobalCapability> for GlobalCapabilities

Source§

type Output = GlobalCapabilities

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: GlobalCapability) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<u64> for GlobalCapability

Source§

type Output = GlobalCapabilities

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u64) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign<GlobalCapability> for u64

Source§

fn bitor_assign(&mut self, rhs: GlobalCapability)

Performs the |= operation. Read more
Source§

impl BitOrAssign<GlobalCapability> for GlobalCapabilities

Source§

fn bitor_assign(&mut self, rhs: GlobalCapability)

Performs the |= operation. Read more
Source§

impl Clone for GlobalCapability

Source§

fn clone(&self) -> GlobalCapability

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for GlobalCapability

Source§

impl Debug for GlobalCapability

Source§

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

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

impl<'de> Deserialize<'de> for GlobalCapability

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for GlobalCapability

Source§

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

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

impl Eq for GlobalCapability

Source§

impl FromIterator<GlobalCapability> for GlobalCapabilities

Source§

fn from_iter<T: IntoIterator<Item = GlobalCapability>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl FromStr for GlobalCapability

Source§

type Err = ParseGlobalCapabilityError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for GlobalCapability

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for GlobalCapability

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for GlobalCapability

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<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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

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

Compares self to key and returns true if they are equal.
Source§

impl<T> EquivalentRepr<T> for 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<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.