Expand description
Scrypto preludes.
Re-exports§
pub extern crate radix_common;
pub extern crate sbor;
pub use crate::engine::scrypto_env::ScryptoVmV1Api;
pub use crate::component::*;
pub use crate::crypto_utils::*;
pub use crate::engine::*;
pub use crate::modules::*;
pub use crate::resource::*;
pub use crate::runtime::*;
Modules§
- actor_
api - actor_
index_ api - actor_
key_ value_ entry_ api - actor_
sorted_ index_ api - additional_
attributes - Documentation for Additional Attributes
- basic
- SBOR basic, no custom types
- blueprint_
api - bnum_
integer - Definitions of safe integers and uints.
- borrow
- A module for working with borrowed data.
- btree_
map - btree_
set - categorize
- SBOR Categorize trait
- codec
- SBOR codec for core Rust types.
- constants
- SBOR constants
- costing_
api - decimal
- decode
- SBOR decode trait.
- decoder
- SBOR decoding.
- encode
- SBOR encode trait.
- encoded_
wrappers - SBOR payload wrappers. These are new types around an encoded payload or sub-payload, with helper methods / traits implemented. They can be used as a more efficient wrapper a ScryptoValue if the content of that value is not needed.
- encoder
- SBOR encoding.
- execution_
trace_ api - field_
api - fmt
- Utilities for formatting and printing
String
s. - hash_
map - hash_
set - index_
map - The methods and macros provided directly in this
index_map
module (new
,with_capacity
) work in both std and no-std modes - unlike the corresponding methods onIndexMap
itself. - index_
set - The methods and macros provided directly in this
index_set
module (new
,with_capacity
) work in both std and no-std modes - unlike the corresponding methods onIndexSet
itself. - indexmap
IndexMap
is a hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.- instant
- key_
value_ entry_ api - key_
value_ store_ api - mem
- Basic functions for dealing with memory.
- non_
iter_ map - object_
api - paste
- github crates-io docs-rs
- path
- SBOR paths.
- payload_
validation - SBOR payload validation.
- precise_
decimal - prelude
- Each module should have its own prelude, which:
- representations
- SBOR textual representations
- rounding_
mode - rust
- A facade of Rust types.
- schema
- SBOR Schema
- test_
addresses - traits
- transaction_
runtime_ api - traversal
- SBOR structured payload traversal.
- utc_
date_ time - value
- SBOR value model and any decoding/encoding.
- value_
kind - SBOR value kinds - ie the types of value that are supported.
- vec
- A contiguous growable array type with heap-allocated contents, written
Vec<T>
. - vec_
traits - Simpler traits specific to encodability/decodability against vec-based encoders/decoders
- versioned
- Data model versioning helper macro
- well_
known_ scrypto_ custom_ types
Macros§
- access_
and_ or - assert_
matches - Attempts to be a replacement for
assert!(matches!(...))
but with better error messages, and allowing further code on success. - btreemap
- btreeset
- burn_
roles - component_
royalties - component_
royalty_ config - composite_
requirement - create_
well_ known_ lookup - debug
- dec
- Creates a
Decimal
from literals. It is a compile-time macro. It allows to declare constants and statics. Example: const D1: Decimal = dec!(“1111.11111”) const D2: Decimal = dec!(“-1111.11111”) const D3: Decimal = dec!(1) const D4: Decimal = dec!(-1_0000_000_u128) - define_
single_ versioned - This macro is intended for creating a data model which supports versioning. This is useful for creating an SBOR data model which can be updated in future.
- define_
versioned - This macro is intended for creating a data model which supports versioning. This is useful for creating an SBOR data model which can be updated in future. In future, enum variants can be added, and automatically mapped to.
- define_
wrapped_ hash - deposit_
roles - eager_
replace - NOTE: This should probably be moved out of sbor to its own crate.
- enable_
function_ auth - enable_
method_ auth - enable_
package_ royalties - error
- extern_
blueprint_ internal - format
- Creates a
String
using interpolation of runtime expressions. - freeze_
roles - hashmap
- hashset
- i
- Creates a safe integer from literals. You must specify the type of the integer you want to create.
- indexmap
- indexset
- info
- internal_
add_ role - internal_
component_ royalty_ entry - internal_
roles - labelled_
resolvable_ using_ resolvable_ impl - labelled_
resolvable_ with_ identity_ impl - look_
up_ type - main_
accessibility - manifest_
args - metadata
- metadata_
init - metadata_
init_ set_ entry - metadata_
roles - method_
accessibilities - method_
accessibility - mint_
roles - non_
fungible_ data_ update_ roles - numeric_
validation_ match - pdec
- Creates a
PreciseDecimal
from literals. It is a compile-time macro. It allows to declare constants and statics. Example: const D1: PreciseDecimal = pdec!(“1111.11111”) const D2: PreciseDecimal = pdec!(“-1111.11111”) const D3: PreciseDecimal = pdec!(1) const D4: PreciseDecimal = pdec!(-1_0000_000_u128) - recall_
roles - resolvable_
with_ identity_ impl - resolvable_
with_ try_ into_ impls - return_
type_ mismatch_ error - role_
entry - role_
list - roles
- Roles macro for main module
- roles2
- rule
- scrypto_
args - to_
manifest_ value_ and_ unwrap - to_
role_ key - trace
- vec
- Creates a
Vec
containing the arguments. - warn
- withdraw_
roles
Structs§
- Account
Locker Airdrop Input - Account
Locker Airdrop Manifest Input - Account
Locker Claim Input - Account
Locker Claim Manifest Input - Account
Locker Claim NonFungibles Input - Account
Locker Claim NonFungibles Manifest Input - Account
Locker GetAmount Input - Account
Locker GetAmount Manifest Input - Account
Locker GetNon Fungible Local IdsInput - Account
Locker GetNon Fungible Local IdsManifest Input - Account
Locker Instantiate Input - Account
Locker Instantiate Manifest Input - Account
Locker Instantiate Simple Input - Account
Locker Instantiate Simple Manifest Input - Account
Locker Marker - Account
Locker Recover Input - Account
Locker Recover Manifest Input - Account
Locker Recover NonFungibles Input - Account
Locker Recover NonFungibles Manifest Input - Account
Locker Store Input - Account
Locker Store Manifest Input - Address
Bech32 Decoder - Represents a decoder which understands how to decode Scrypto addresses in Bech32.
- Address
Bech32 Encoder - Represents an encoder which understands how to encode Scrypto addresses in Bech32.
- Address
Display Context - Aggregate
Resource Balances - Arc
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Array
Data - Attached
Module IdIter - An iterator over the variants of Self
- Auth
Addresses - Auth
Zone Assert Access Rule Input - Auth
Zone Create Proof OfAll Input - Auth
Zone Create Proof OfAmount Input - Auth
Zone Create Proof OfNon Fungibles Input - Auth
Zone Drain Input - Auth
Zone Drop Proofs Input - Auth
Zone Drop Regular Proofs Input - Auth
Zone Drop Signature Proofs Input - Auth
Zone PopInput - Auth
Zone Push Input - Auth
Zone Push Manifest Input - Auth
Zone Ref - BTree
Map - An ordered map based on a B-Tree.
- BTree
Set - An ordered set based on a B-Tree.
- Bls12381
G1Private Key - Bls12381
G1Public Key - Represents a BLS12-381 G1 public key.
- Bls12381
G2Signature - Represents a BLS12-381 G2 signature (variant with 96-byte signature and 48-byte public key)
- Blueprint
Id - Blueprint
Info - Core object state, persisted in
TypeInfoSubstate
. - Blueprint
Type Identifier - Borrow
Error - An error returned by
RefCell::try_borrow
. - Borrow
MutError - An error returned by
RefCell::try_borrow_mut
. - Box
- A pointer type that uniquely owns a heap allocation of type
T
. - Bucket
- Bucket
Create Proof OfAll Input - Bucket
GetAmount Input - Bucket
GetNon Fungible Local IdsInput - Bucket
GetResource Address Input - Bucket
PutInput - Bucket
PutManifest Input - Bucket
Take Advanced Input - Bucket
Take Input - Bucket
Take NonFungibles Input - Buffer
- Burn
Roles - Bytes
NonFungible Local Id - Bytes, of length between 1 and 64.
- Cell
- A mutable memory location.
- Checked
Origin - Checked
Url - Component
Address - Address to a global component
- Component
Claim Royalties Input - Component
Royalty Config - Royalty rules
- Component
Royalty Create Input - Component
Royalty Lock Input - Component
Royalty SetInput - Component
Royalty Substate - Consensus
Manager Compare Current Time Input V1 - Consensus
Manager Compare Current Time Input V2 - Consensus
Manager Config - Consensus
Manager Create Input - Consensus
Manager Create Manifest Input - Consensus
Manager Create Validator Input - Consensus
Manager Create Validator Manifest Input - Consensus
Manager GetCurrent Epoch Input - Consensus
Manager GetCurrent Time Input V1 - Consensus
Manager GetCurrent Time Input V2 - Consensus
Manager Marker - Consensus
Manager Next Round Input - Consensus
Manager Start Input - Context
Displayable - Decimal
Decimal
represents a 192 bit representation of a fixed-scale decimal number.- Deposit
Roles - Ed25519
Private Key - Ed25519
Public Key - Represents an ED25519 public key.
- Ed25519
Public KeyHash - Ed25519
Signature - Represents an ED25519 signature.
- Enum
Variant Data - Enum
Variant Value - Epoch
- A type-safe consensus epoch number.
- Epoch
Change Condition - Event
Flags - Event
Type Identifier - Identifies a specific event schema emitter by some emitter RENode.
- Field
Value - FnIdentifier
- Freeze
Roles - Fully
Scoped Type Id - An identifier for a type under a given node’s schema context in the Radix network.
- Fungible
Bucket - Fungible
Bucket Create Proof OfAmount Input - Fungible
Bucket Lock Amount Input - Fungible
Bucket Unlock Amount Input - Fungible
Proof - Fungible
Resource Manager Create Input - Fungible
Resource Manager Create Manifest Input - Fungible
Resource Manager Create With Initial Supply Input - Fungible
Resource Manager Create With Initial Supply Manifest Input - Fungible
Resource Manager Mint Input - Fungible
Resource Roles - Fungible
Vault - Fungible
Vault Create Proof OfAmount Input - Fungible
Vault Lock FeeInput - Fungible
Vault Lock Fungible Amount Input - Fungible
Vault Unlock Fungible Amount Input - General
Resource Constraint GeneralResourceConstraint
captures constraints on the balance of a single fungible or non-fungible resource.- Generic
Args - Global
Address - Address to a global entity
- Global
Address Phantom - Global
Address Reservation - Hash
- Represents a 32-byte hash digest.
- Hash
Accumulator - Represents a 32-byte hash accumulator.
- HrpSet
- Represents an HRP set (typically corresponds to a network).
- I192
- Provides safe integer arithmetic.
- I256
- Provides safe integer arithmetic.
- I320
- Provides safe integer arithmetic.
- I384
- Provides safe integer arithmetic.
- I448
- Provides safe integer arithmetic.
- I512
- Provides safe integer arithmetic.
- I768
- Provides safe integer arithmetic.
- Indexed
Scrypto Value - Instant
- Represents a Unix timestamp, capturing the seconds since the unix epoch.
- Integer
NonFungible Local Id - Unsigned integers, up to u64.
- Internal
Address - Address to a local entity
- KVEntry
- KeyValue
Store Info - KeyValue
Store Init - KeyValue
Store Init Entry - Lazy
Cell - A value which is initialized on the first access.
- Leader
Proposal History - Length
Validation - Represents additional validation that should be performed on the size.
- Linked
List - A doubly-linked list with owned nodes.
- Liquid
Fungible Resource - Liquid
NonFungible Resource - Liquid
NonFungible Vault - Local
KeyValue Store Data Schema - Local
NonFungible Data Schema - Located
Validation Error - Lock
Flags - Locked
Fungible Resource - Locked
NonFungible Resource - Manifest
Address Reservation - Manifest
Args - Manifest
Blob Ref - Manifest
Bucket - Manifest
Custom Terminal Value Ref - Manifest
Decimal - Manifest
Named Address - Manifest
Precise Decimal - Manifest
Proof - Manifest
Resource Constraints - Manifest
Value Display Context - Note - this is quite similar to ManifestDecompilationDisplayContext
- MapData
- Metadata
Create Input - Metadata
Create With Data Input - Metadata
GetInput - Metadata
Lock Input - Metadata
Remove Input - Metadata
Roles - Metadata
SetInput - Method
Key - Mint
Roles - Module
Config - Module
IdIter - An iterator over the variants of Self
- Module
Role Key - Name
Change Error - Named
Schema Versions - A list of named comparable schemas, intended to capture various versions of the same schema over time.
- Network
Definition - Network Definition is intended to be the actual definition of a network
- NodeId
- The unique identifier of a (stored) node.
- NonFungible
Bucket - NonFungible
Bucket Contains NonFungible Input - NonFungible
Bucket Create Proof OfNon Fungibles Input - NonFungible
Bucket Lock NonFungibles Input - NonFungible
Bucket Unlock NonFungibles Input - NonFungible
Data Update Roles - NonFungible
Global Id - Represents the global id of a non-fungible.
- NonFungible
Proof - NonFungible
Proof GetLocal IdsInput - NonFungible
Resource Manager Create Generic Input - NonFungible
Resource Manager Create Input - NonFungible
Resource Manager Create Manifest Input - NonFungible
Resource Manager Create Ruid With Initial Supply Generic Input - For typed value, to skip any codec
- NonFungible
Resource Manager Create Ruid With Initial Supply Input - NonFungible
Resource Manager Create Ruid With Initial Supply Manifest Input - For manifest
- NonFungible
Resource Manager Create With Initial Supply Generic Input - For typed value, to skip any codec
- NonFungible
Resource Manager Create With Initial Supply Input - NonFungible
Resource Manager Create With Initial Supply Manifest Input - For manifest
- NonFungible
Resource Manager Exists Input - NonFungible
Resource Manager GetNon Fungible Input - NonFungible
Resource Manager Mint Generic Input - For typed value, to skip any codec
- NonFungible
Resource Manager Mint Input - NonFungible
Resource Manager Mint Manifest Input - For manifest
- NonFungible
Resource Manager Mint Ruid Generic Input - For typed value, to skip any codec
- NonFungible
Resource Manager Mint Ruid Input - NonFungible
Resource Manager Mint Ruid Manifest Input - For manifest
- NonFungible
Resource Manager Mint Single Ruid Generic Input - For typed value, to skip any codec
- NonFungible
Resource Manager Mint Single Ruid Input - NonFungible
Resource Manager Mint Single Ruid Manifest Input - NonFungible
Resource Manager Update Data Generic Input - For typed value, to skip any codec
- NonFungible
Resource Manager Update Data Input - NonFungible
Resource Manager Update Data Manifest Input - For manifest
- NonFungible
Resource Roles - NonFungible
Vault - NonFungible
Vault Burn NonFungibles Input - NonFungible
Vault Contains NonFungible Input - NonFungible
Vault Create Proof OfNon Fungibles Input - NonFungible
Vault GetNon Fungible Local IdsInput - NonFungible
Vault Lock NonFungibles Input - NonFungible
Vault Recall NonFungibles Input - NonFungible
Vault Take NonFungibles Input - NonFungible
Vault Unlock NonFungibles Input - NonIter
Map - A thin wrapper around a
HashMap
, which guarantees that aHashMap
usage will not result in a non-deterministic execution (simply by disallowing the iteration over its elements). - Novel
Type Metadata - This is the struct used in the Schema
- Numeric
Validation - Represents additional validation that should be performed on the numeric value.
- Object
Info - Once
Cell - A cell which can nominally be written to only once.
- Overlaying
Iterator - An iterator overlaying a “change on a value” (coming from the [
overlaying
] iterator) over a “base value” (coming from the [underlying
] iterator). The one is matched to another by aK
part (of the iterated tuple(K, V)
), which both iterators are assumed to be ordered by. - Overlaying
Result Iterator - An iterator overlaying a “change on a value” (coming from the [
overlaying
] iterator) over a “base value” (coming from the [underlying
] iterator) which may error. The one is matched to another by aK
part (of the iterated tuple(K, V)
), which both iterators are assumed to be ordered by. - Own
- Owned
Worktop - Owner
Role Entry - Package
Address - Address to a global package
- Partition
Number - The unique identifier of a node module.
- Partition
Offset - Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T
. - Precise
Decimal PreciseDecimal
represents a 256 bit representation of a fixed-scale decimal number.- Proof
- Proof
Clone Input - Proof
Drop Input - Proof
Drop Manifest Input - Proof
GetAmount Input - Proof
GetResource Address Input - RUID
NonFungible Local Id - RUID, v4, variant 1, big endian. See https://www.rfc-editor.org/rfc/rfc4122
- RawPayload
- A wrapper for a full encoded SBOR payload, including the prefix byte.
- RawValue
- A wrapper for a reference to a valid partial SBOR payload representing a single value.
- Rc
- A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
- Recall
Roles - Ref
- Wraps a borrowed reference to a value in a
RefCell
box. A wrapper type for an immutably borrowed value from aRefCell<T>
. - RefCell
- A mutable memory location with dynamically checked borrow rules
- RefMut
- A wrapper type for a mutably borrowed value from a
RefCell<T>
. - Reference
- Remote
KeyValue Store Data Schema - Remote
NonFungible Data Schema - Resource
Address - Address to a global resource
- Resource
Manager Burn Input - Resource
Manager Burn Manifest Input - Resource
Manager Create Empty Bucket Input - Resource
Manager Create Empty Vault Input - Resource
Manager Drop Empty Bucket Input - Resource
Manager Drop Empty Bucket Manifest Input - Resource
Manager GetAmount ForWithdrawal Input - Resource
Manager GetResource Type Input - Resource
Manager GetTotal Supply Input - Resource
Manager Package Burn Input - Resource
Manager Package Burn Manifest Input - Resource
OrNon Fungible List - Role
Assignment Create Input - Role
Assignment GetInput - Role
Assignment GetOwner Role Input - Role
Assignment Init - Role
Assignment Lock Owner Input - Role
Assignment SetInput - Role
Assignment SetOwner Input - RoleKey
- Role
List - Round
- A type-safe consensus round number within a single epoch.
- Sbor
Fixed Enum Variant - Sbor
Path - A series of indexes which describes some value in the sbor tree
- Sbor
Path Buf - Sbor
RawPayload - A wrapper for a full encoded SBOR payload, including the prefix byte.
- Sbor
RawValue - A wrapper for a reference to a valid partial SBOR payload representing a single value.
- Schema
Comparison Completeness Settings - Schema
Comparison Error - Schema
Comparison Metadata Settings - Schema
Comparison Result - Schema
Comparison Settings - Schema
Comparison Structure Settings - Schema
Comparison Validation Settings - Schema
Context - Schema
Hash - Represents a particular schema under a package
- Schema
V1 - An array of custom type kinds, and associated extra information which can attach to the type kinds
- Scoped
Type Id - An identifier for a type in the context of a schema.
- Scrypto
Custom Extension - Scrypto
Custom Schema - Scrypto
Custom Terminal Value Ref - Scrypto
Value Display Context - Secp256k1
Public Key - Represents a compressed ECDSA Secp256k1 public key, which is the default format used in the Radix stack.
- Secp256k1
Public KeyHash - Secp256k1
Signature - Represents an ECDSA Secp256k1 signature.
- Secp256k1
Uncompressed Public Key - Represents an uncompressed ECDSA Secp256k1 public key.
- Single
Type Schema - A serializable record of the schema of a single type. Intended for historical backwards compatibility checking of a single type.
- Slice
- State
Updates - A tree-like description of all updates that happened to a stored state, to be included as a part
of a transaction receipt.
This structure is indexed (i.e. uses
IndexMap
s whereVec
s could be used) for convenience and performance, since both the source (i.e. Track) and the sink (i.e. Database and API) operate on indexed structures too. This structure maintains partial information on the order of operations (please see individual fields for details), since the end users care about it. Please note that this means multiple instances ofStateUpdates
can represent the same transform of state store (i.e. differing only by order of some operations), and hence it is not 100% “canonical form”. - String
- A UTF-8–encoded, growable string.
- String
NonFungible Local Id - A string matching
[_0-9a-zA-Z]{1,64}
. - Tuple
Data - Type
Aggregator - Type
Collection Schema - A serializable record of the schema of a set of named types. Intended for historical backwards compatibility of a collection of types in a single schema.
- Type
Compatibility Parameters - Type
Data - Combines all data about a Type:
- Type
Metadata - This enables the type to be represented as eg JSON Also used to facilitate type reconstruction
- U192
- Provides safe integer arithmetic.
- U256
- Provides safe integer arithmetic.
- U320
- Provides safe integer arithmetic.
- U384
- Provides safe integer arithmetic.
- U448
- Provides safe integer arithmetic.
- U512
- Provides safe integer arithmetic.
- U768
- Provides safe integer arithmetic.
- Unchecked
Origin - Unchecked
Url - Unsafe
Cell - The core primitive for interior mutability in Rust.
- UtcDate
Time - A
UtcDateTime
represents a Unix timestamp on the UTC Calendar. - Validator
Accepts Delegated Stake Input - Validator
Apply Emission Input - Validator
Apply Emission Manifest Input - Validator
Apply Reward Input - Validator
Apply Reward Manifest Input - Validator
Claim XrdInput - Validator
Claim XrdManifest Input - Validator
Finish Unlock Owner Stake Units Input - Validator
GetProtocol Update Readiness Input - Validator
GetRedemption Value Input - Validator
Lock Owner Stake Units Input - Validator
Lock Owner Stake Units Manifest Input - Validator
Marker - Validator
Register Input - Validator
Signal Protocol Update Readiness Input - Validator
Stake AsOwner Input - Validator
Stake AsOwner Manifest Input - Validator
Stake Input - Validator
Stake Manifest Input - Validator
Start Unlock Owner Stake Units Input - Validator
Total Stake Unit Supply Input - Validator
Total Stake XrdAmount Input - Validator
Unregister Input - Validator
Unstake Input - Validator
Unstake Manifest Input - Validator
Update Accept Delegated Stake Input - Validator
Update FeeInput - Validator
Update KeyInput - Vault
- Vault
Burn Input - Vault
Freeze Flags - Vault
Freeze Input - Vault
Frozen Flag - Vault
GetAmount Input - Vault
PutInput - Vault
PutManifest Input - Vault
Recall Input - Vault
Take Advanced Input - Vault
Take Input - Vault
Unfreeze Input - Vec
- A contiguous growable array type, written as
Vec<T>
, short for ‘vector’. - VecDecoder
- A
Decoder
abstracts the logic for decoding basic types. - VecDeque
- A double-ended queue implemented with a growable ring buffer.
- VecEncoder
- An
Encoder
abstracts the logic for writing core types into a byte buffer. - Versioned
Schema - If you wish to get access to match on the versions, use
.as_ref()
or.as_mut()
. - Well
Known Type Id - Withdraw
Roles - Worktop
Assert Contains Amount Input - Worktop
Assert Contains Input - Worktop
Assert Contains NonFungibles Input - Worktop
Assert Resources Include Input - Worktop
Assert Resources Only Input - Worktop
Drain Input - Worktop
Drop Input - Worktop
Drop Manifest Input - Worktop
PutInput - Worktop
PutManifest Input - Worktop
Take AllInput - Worktop
Take Input - Worktop
Take NonFungibles Input - Sync
Unsafe Cell Experimental UnsafeCell
, butSync
.
Enums§
- Access
Controller Partition Offset - Access
Rule - Account
Locker Partition Offset - Account
Partition Offset - Address
Bech32 Decode Error - Address
Bech32 Encode Error - Allowed
Ids - Represents which ids are possible in a non-fungible balance.
- Always
Visible Global Nodes Version - Attached
Module Id - Auth
Zone Field - Basic
Requirement - Resource Proof Rules
- Batch
Partition State Update - A description of a batch update affecting an entire Partition.
- Boot
Loader Field - Bound
Adjustment Error - Child
Names - Client
Costing Entry - Component
Field - Component
Royalty Partition Offset - Composite
Requirement - Consensus
Manager Partition Offset - Content
Validation Error - Cow
- A clone-on-write smart pointer.
- Database
Update - An update of a single substate’s value.
- Database
Update Ref - A 1:1 counterpart of
DatabaseUpdate
, but operating on references. - Date
Time Error - Decode
Error - Represents an error occurred during decoding.
- Emitter
- Encode
Error - Represents an error occurred during encoding.
- Entity
Type - An enum which represents the different addressable entities.
- Epoch
Change Outcome - Fall
ToOwner - Fungible
Bucket Field - Fungible
Proof Field - Fungible
Resource Manager Partition Offset - Fungible
Vault Partition Offset - Generic
Metadata Value - Generic
Substitution - A reference to the type to substitute with for the case of generics.
- Global
Caller - KeyValue
Store Data Schema - Less flexible than previous revision, as mixed type origin is not allowed, but better for client-side optimization
- Level
- Represents the level of a log message.
- Local
Type Id - The TypeId which is local to a given
Schema
. This is theSchemaTypeLink
used in a linearizedSchema
to linkTypeKind
s. - Lower
Bound - Represents a lower bound on a non-negative decimal.
- Manifest
Address - Any address supported by manifest, both global and local.
- Manifest
Bucket Batch - Manifest
Component Address - Manifest
Custom Extension - Manifest
Custom Traversal - Manifest
Custom Value - Manifest
Custom Value Kind - Manifest
Expression - Manifest
Global Address - Manifest
NonFungible Local Id - Manifest
NonFungible Local IdValidation Error - Manifest
Package Address - Manifest
Proof Batch - Manifest
Resource Address - Manifest
Resource Constraint - Manifest
Resource OrNon Fungible - Manifest
ToRust Value Error - Metadata
Conversion Error - Metadata
Partition Offset - Method
Accessibility - Module
Id - Multi
Resource Pool Partition Offset - Name
Change - Name
Change Rule - NoCustom
Extension - NoCustom
Schema - NoCustom
Terminal Value Ref - NoCustom
Traversal - NoCustom
Type Kind - NoCustom
Type Kind Label - NoCustom
Type Validation - NoCustom
Value - NoCustom
Value Kind - Node
State Updates - A description of all updates that happened to a state of a single Node. Note: currently, we do not support any Node-wide changes (e.g. deleting entire Node); however, we use an enum for potential future development.
- NonFungible
Bucket Field - NonFungible
Data Schema - NonFungible
IdType - Represents type of non-fungible id
- NonFungible
Local Id - Represents the local id of a non-fungible.
- NonFungible
Proof Field - NonFungible
Resource Manager Partition Offset - NonFungible
Vault Partition Offset - Object
Type - OneResource
Pool Partition Offset - Option
- The
Option
type. See the module level documentation for more. - Outer
Object Info - OwnValidation
- Owned
Name Change - Owner
Role - Front end data structure for specifying owner role
- Owner
Role Updater - Package
Code - Package
Partition Offset - Package
Royalty - Royalty rules
- Package
Royalty Config - Royalty rules
- Parse
BlsPublic KeyError - Represents an error when retrieving BLS public key from hex or when aggregating.
- Parse
BlsSignature Error - Represents an error when retrieving BLS signature from hex or when aggregating.
- Parse
Component Address Error - Parse
Decimal Error - Represents an error when parsing Decimal from another type.
- Parse
Ed25519 Public KeyError - Represents an error when parsing ED25519 public key from hex.
- Parse
Ed25519 Signature Error - Parse
Error - The
ParseError
enum is a collection of all the possible reasons an enum can fail to parse from a string. - Parse
Global Address Error - Parse
Hash Error - Represents an error when parsing hash.
- Parse
I192 Error - Parse
I256 Error - Parse
I320 Error - Parse
I384 Error - Parse
I448 Error - Parse
I512 Error - Parse
I768 Error - Parse
Internal Address Error - Parse
Manifest Address Reservation Error - Represents an error when parsing ManifestAddressReservation.
- Parse
Manifest Blob RefError - Represents an error when parsing ManifestBlobRef.
- Parse
Manifest Bucket Error - Represents an error when parsing ManifestBucket.
- Parse
Manifest Decimal Error - Represents an error when parsing ManifestDecimal.
- Parse
Manifest Expression Error - Represents an error when parsing ManifestExpression.
- Parse
Manifest Precise Decimal Error - Represents an error when parsing ManifestPreciseDecimal.
- Parse
Manifest Proof Error - Represents an error when parsing ManifestProof.
- Parse
Network Error - Parse
NonFungible Global IdError - Represents an error when parsing non-fungible address.
- Parse
NonFungible Local IdError - Represents an error when decoding non-fungible id.
- Parse
OwnError - Parse
Package Address Error - Parse
Precise Decimal Error - Represents an error when parsing PreciseDecimal from another type.
- Parse
Reference Error - Parse
Resource Address Error - Parse
Secp256k1 Public KeyError - Represents an error when parsing ED25519 public key from hex.
- Parse
Secp256k1 Signature Error - Parse
U192 Error - Parse
U256 Error - Parse
U320 Error - Parse
U384 Error - Parse
U448 Error - Parse
U512 Error - Parse
U768 Error - Parse
UtcDate Time Error - Partition
State Updates - A description of all updates that happened to a state of a single Partition.
- Payload
Validation Error - Protocol
Update Status Field - Public
Key - Represents any natively supported public key.
- Public
KeyHash - The hash of a given public key.
- Reference
Validation - Resource
Constraint Error - Resource
Constraints Error - Resource
Error - Resource
Feature - Resource
OrNon Fungible - Resource
Specifier - Resource
Type - Represents the type of a resource.
- Result
Result
is a type that represents either success (Ok
) or failure (Err
).- Role
Assignment Partition Offset - Rounding
Mode - Defines the rounding strategy.
- Royalty
Amount - Royalty
Field - Rust
ToManifest Value Error - Rust
Type Id - This is a compile-time identifier for a given type, used by the type aggregator to uniquely identify a type.
- Sbor
Value - Represents any value conforming to the SBOR value model.
- Schema
Comparison Error Detail - Schema
Validation Error - Schema
Versions - Scrypto
Custom Traversal - Scrypto
Custom Type Kind - A schema for the values that a codec can decode / views as valid
- Scrypto
Custom Type Kind Label - Scrypto
Custom Type Validation - Scrypto
Custom Value - Scrypto
Custom Value Kind - Substate
Key - The unique identifier of a substate within a node module.
- Substate
KeyOr Ref - Substate
KeyRef - System
Execution - For definition @see SYSTEM_EXECUTION_RESOURCE
- Time
Comparison Operator - Time
Precision V1 - Time
Precision V2 - Transaction
Tracker Field - TwoResource
Pool Partition Offset - Type
Info Field - Type
Kind - A schema for the values that a codec can decode / views as valid
- Type
Kind Label - Type
Validation - Additional validation to apply to a payload of the given type, beyond validation from the
TypeKind
’s type structure. - Upper
Bound - Represents an upper bound on a non-negative decimal.
- Validation
Change - Validation
Error - Validator
Partition Offset - Value
- Represents any value conforming to the SBOR value model.
- Value
Kind - Withdraw
Strategy - Define the withdraw strategy when request amount does not match underlying resource divisibility.
- Worktop
Field
Constants§
- ACCESS_
CONTROLLER_ PACKAGE - The native package for access controllers.
- ACCESS_
RULE_ TYPE - ACCOUNT_
LOCKER_ AIRDROP_ EXPORT_ NAME - ACCOUNT_
LOCKER_ AIRDROP_ IDENT - ACCOUNT_
LOCKER_ BLUEPRINT - ACCOUNT_
LOCKER_ CLAIM_ EXPORT_ NAME - ACCOUNT_
LOCKER_ CLAIM_ IDENT - ACCOUNT_
LOCKER_ CLAIM_ NON_ FUNGIBLES_ EXPORT_ NAME - ACCOUNT_
LOCKER_ CLAIM_ NON_ FUNGIBLES_ IDENT - ACCOUNT_
LOCKER_ GET_ AMOUNT_ EXPORT_ NAME - ACCOUNT_
LOCKER_ GET_ AMOUNT_ IDENT - ACCOUNT_
LOCKER_ GET_ NON_ FUNGIBLE_ LOCAL_ IDS_ EXPORT_ NAME - ACCOUNT_
LOCKER_ GET_ NON_ FUNGIBLE_ LOCAL_ IDS_ IDENT - ACCOUNT_
LOCKER_ INSTANTIATE_ EXPORT_ NAME - ACCOUNT_
LOCKER_ INSTANTIATE_ IDENT - ACCOUNT_
LOCKER_ INSTANTIATE_ SIMPLE_ EXPORT_ NAME - ACCOUNT_
LOCKER_ INSTANTIATE_ SIMPLE_ IDENT - ACCOUNT_
LOCKER_ RECOVER_ EXPORT_ NAME - ACCOUNT_
LOCKER_ RECOVER_ IDENT - ACCOUNT_
LOCKER_ RECOVER_ NON_ FUNGIBLES_ EXPORT_ NAME - ACCOUNT_
LOCKER_ RECOVER_ NON_ FUNGIBLES_ IDENT - ACCOUNT_
LOCKER_ STORE_ EXPORT_ NAME - ACCOUNT_
LOCKER_ STORE_ IDENT - ACCOUNT_
OWNER_ BADGE - The non-fungible badge resource which is used for account ownership, if accounts have been set up with simple account creation, or have been securified.
- ACCOUNT_
PACKAGE - The native package for accounts.
- ACTOR_
REF_ AUTH_ ZONE - ACTOR_
REF_ GLOBAL - ACTOR_
REF_ OUTER - ACTOR_
REF_ SELF - ACTOR_
STATE_ OUTER_ OBJECT - ACTOR_
STATE_ SELF - ARCHIVE_
STORAGE_ PRICE_ IN_ XRD - The price for adding a single byte to archive storage, in XRD. 1 MB = 6 USD This is primarily for transaction payload, events and logs.
- ATTACHED_
MODULE_ ID_ TYPE - AUTH_
ZONE_ ASSERT_ ACCESS_ RULE_ IDENT - AUTH_
ZONE_ BLUEPRINT - AUTH_
ZONE_ CREATE_ PROOF_ OF_ ALL_ IDENT - AUTH_
ZONE_ CREATE_ PROOF_ OF_ AMOUNT_ IDENT - AUTH_
ZONE_ CREATE_ PROOF_ OF_ NON_ FUNGIBLES_ IDENT - AUTH_
ZONE_ DRAIN_ IDENT - AUTH_
ZONE_ DROP_ PROOFS_ IDENT - AUTH_
ZONE_ DROP_ REGULAR_ PROOFS_ IDENT - AUTH_
ZONE_ DROP_ SIGNATURE_ PROOFS_ IDENT - AUTH_
ZONE_ POP_ IDENT - AUTH_
ZONE_ PUSH_ IDENT - BASIC_
REQUIREMENT_ TYPE - Name of the schema type ProofRule is not changed to BasicRequirement to preserve backward compatibility.
- BASIC_
SBOR_ V1_ MAX_ DEPTH - BASIC_
SBOR_ V1_ PAYLOAD_ PREFIX - BLS12381_
CIPHERSITE_ V1 - BLS12-381 ciphersuite v1 It has following parameters
- BLUEPRINT_
PAYLOAD_ MAX_ DEPTH - Depth limit for various types of blueprint payload
- BOOT_
LOADER_ PARTITION - Used only with TRANSACTION_TRACKER Node for boot loading
- BOOT_
LOADER_ RESERVED_ NODE_ ID_ FIRST_ BYTE - BUCKET_
CREATE_ PROOF_ OF_ ALL_ IDENT - BUCKET_
GET_ AMOUNT_ IDENT - BUCKET_
GET_ RESOURCE_ ADDRESS_ IDENT - BUCKET_
PUT_ IDENT - BUCKET_
TAKE_ ADVANCED_ IDENT - BUCKET_
TAKE_ IDENT - BURNER_
ROLE - BURNER_
UPDATER_ ROLE - COMPONENT_
ADDRESS_ TYPE - COMPONENT_
ROYALTY_ BLUEPRINT - COMPONENT_
ROYALTY_ CLAIMER_ ROLE - COMPONENT_
ROYALTY_ CLAIMER_ UPDATER_ ROLE - COMPONENT_
ROYALTY_ CLAIM_ ROYALTIES_ IDENT - COMPONENT_
ROYALTY_ CREATE_ IDENT - COMPONENT_
ROYALTY_ LOCKER_ ROLE - COMPONENT_
ROYALTY_ LOCKER_ UPDATER_ ROLE - COMPONENT_
ROYALTY_ LOCK_ ROYALTY_ IDENT - COMPONENT_
ROYALTY_ SETTER_ ROLE - COMPONENT_
ROYALTY_ SETTER_ UPDATER_ ROLE - COMPONENT_
ROYALTY_ SET_ ROYALTY_ IDENT - COMPOSITE_
REQUIREMENT_ LIST_ TYPE - COMPOSITE_
REQUIREMENT_ TYPE - Name of the schema type AccessRuleNode is not changed to CompositeRequirement to preserve backward compatibility.
- CONSENSUS_
MANAGER - The consensus manager native component - in charge of validators, consensus and epochs.
- CONSENSUS_
MANAGER_ BLUEPRINT - CONSENSUS_
MANAGER_ COMPARE_ CURRENT_ TIME_ IDENT - CONSENSUS_
MANAGER_ CREATE_ IDENT - CONSENSUS_
MANAGER_ CREATE_ VALIDATOR_ IDENT - CONSENSUS_
MANAGER_ GET_ CURRENT_ EPOCH_ IDENT - CONSENSUS_
MANAGER_ GET_ CURRENT_ TIME_ IDENT - CONSENSUS_
MANAGER_ NEXT_ ROUND_ IDENT - CONSENSUS_
MANAGER_ PACKAGE - The native package for the consensus manager.
- CONSENSUS_
MANAGER_ START_ IDENT - CUSTOM_
VALUE_ KIND_ START - A custom type is an application defined type with special semantics.
- DECIMAL_
SIZE - DECIMAL_
TYPE - DEPOSITOR_
ROLE - DEPOSITOR_
UPDATER_ ROLE - ED25519_
PUBLIC_ KEY_ HASH_ TYPE - ED25519_
PUBLIC_ KEY_ TYPE - ED25519_
SIGNATURE_ RESOURCE - The non-fungible badge resource which is used for proofs of EdDSA Ed25519 transacton signatures in the transaction processor.
- EMPTY
- EXECUTION_
COST_ UNIT_ LIMIT - The execution cost unit limit.
- EXECUTION_
COST_ UNIT_ LOAN - The execution cost units loaned from system
- EXECUTION_
COST_ UNIT_ PRICE_ IN_ XRD - The price of execution cost unit, in XRD.
- FAUCET
- The faucet native component - use this on testnets for getting XRD and locking fee.
- FAUCET_
BLUEPRINT - The name of the faucet blueprint under the
FAUCET_PACKAGE
. - FAUCET_
COMPONENT - The faucet native component - use this on testnets for getting XRD and locking fee.
- FAUCET_
FREE_ AMOUNT - XRD amount put on worktop by free() method from Faucet blueprint.
- FAUCET_
PACKAGE - The scrypto package for the faucet
- FINALIZATION_
COST_ UNIT_ LIMIT - The finalization cost unit limit.
- FINALIZATION_
COST_ UNIT_ PRICE_ IN_ XRD - The price of finalization cost unit, in XRD.
- FRAME_
OWNED_ GLOBAL_ MARKER - FREEZER_
ROLE - FREEZER_
UPDATER_ ROLE - FUNGIBLE_
BUCKET_ BLUEPRINT - FUNGIBLE_
BUCKET_ CREATE_ PROOF_ OF_ AMOUNT_ IDENT - FUNGIBLE_
BUCKET_ LOCK_ AMOUNT_ IDENT - FUNGIBLE_
BUCKET_ UNLOCK_ AMOUNT_ IDENT - FUNGIBLE_
PROOF_ BLUEPRINT - FUNGIBLE_
RESOURCE_ MANAGER_ BLUEPRINT - FUNGIBLE_
RESOURCE_ MANAGER_ CREATE_ IDENT - FUNGIBLE_
RESOURCE_ MANAGER_ CREATE_ WITH_ INITIAL_ SUPPLY_ IDENT - FUNGIBLE_
RESOURCE_ MANAGER_ MINT_ IDENT - FUNGIBLE_
VAULT_ BLUEPRINT - FUNGIBLE_
VAULT_ CREATE_ PROOF_ OF_ AMOUNT_ IDENT - FUNGIBLE_
VAULT_ LOCK_ FEE_ IDENT - FUNGIBLE_
VAULT_ LOCK_ FUNGIBLE_ AMOUNT_ IDENT - FUNGIBLE_
VAULT_ UNLOCK_ FUNGIBLE_ AMOUNT_ IDENT - GENESIS_
HELPER - The genesis helper scrypto component - used for sorting out genesis.
- GENESIS_
HELPER_ BLUEPRINT - The name of the genesis helper blueprint under the
GENESIS_HELPER_PACKAGE
. - GENESIS_
HELPER_ PACKAGE - The scrypto package for the genesis helper.
- GLOBAL_
ADDRESS_ TYPE - GLOBAL_
CALLER_ RESOURCE - The non-fungible badge resource which is used for proofs which represent the global ancestor of the actor which made the latest global call.
- IDENTITY_
OWNER_ BADGE - The non-fungible badge resource which is used for identity ownership, if identities have been set up with simple account creation, or have been securified.
- IDENTITY_
PACKAGE - The native package for identities.
- INSTANT_
TYPE - INTERNAL_
ADDRESS_ TYPE - KEY_
VALUE_ STORE_ PAYLOAD_ MAX_ DEPTH - Depth limit for the key and value of an entry in
KeyValueStore
- KV_
STORE_ DATA_ SCHEMA_ VARIANT_ LOCAL - KV_
STORE_ DATA_ SCHEMA_ VARIANT_ REMOTE - LOCKER_
PACKAGE - The native package for lockers.
- MAIN_
BASE_ PARTITION - MANIFEST_
ADDRESS_ DISCRIMINATOR_ NAMED - MANIFEST_
ADDRESS_ DISCRIMINATOR_ STATIC - MANIFEST_
NON_ FUNGIBLE_ LOCAL_ ID_ MAX_ LENGTH - MANIFEST_
SBOR_ V1_ MAX_ DEPTH - MANIFEST_
SBOR_ V1_ PAYLOAD_ PREFIX - 0x4d = M in ASCII for Manifest - (77 in decimal)
- MANIFEST_
VALUE_ KIND_ ADDRESS - MANIFEST_
VALUE_ KIND_ ADDRESS_ RESERVATION - MANIFEST_
VALUE_ KIND_ BLOB - MANIFEST_
VALUE_ KIND_ BUCKET - MANIFEST_
VALUE_ KIND_ DECIMAL - MANIFEST_
VALUE_ KIND_ EXPRESSION - MANIFEST_
VALUE_ KIND_ NON_ FUNGIBLE_ LOCAL_ ID - MANIFEST_
VALUE_ KIND_ PRECISE_ DECIMAL - MANIFEST_
VALUE_ KIND_ PROOF - MAX_
ACCESS_ RULE_ DEPTH - The max depth of an access rule, to protect unbounded native stack usage
- MAX_
BLUEPRINT_ NAME_ LEN - The max length of a blueprint identifier
- MAX_
CALL_ DEPTH - The max call depth, used by transaction executor.
- MAX_
COMPOSITE_ REQUIREMENTS - The max number of composite requirements in an access rule
- MAX_
EVENT_ NAME_ LEN - The max length of an event name
- MAX_
EVENT_ SIZE - The max event size
- MAX_
EXECUTION_ TRACE_ DEPTH - MAX_
FEATURE_ NAME_ LEN - The max length of a feature name
- MAX_
FUNCTION_ NAME_ LEN - The max length of a function name
- MAX_
HEAP_ SUBSTATE_ TOTAL_ BYTES - The max total heap substate size.
- MAX_
INITIAL_ TABLE_ SIZE - The maximum initial table size
- MAX_
INVOKE_ PAYLOAD_ SIZE - The maximum invoke payload size.
- MAX_
LOG_ SIZE - The max log size
- MAX_
MEMORY_ SIZE_ IN_ PAGES - The maximum memory size (per call frame): 64 * 64KiB = 4MiB
- MAX_
METADATA_ KEY_ STRING_ LEN - The max SBOR size of metadata key
- MAX_
METADATA_ VALUE_ SBOR_ LEN - The max SBOR size of metadata value
- MAX_
NUMBER_ OF_ BLUEPRINT_ FIELDS - The max number of fields a blueprint can have
- MAX_
NUMBER_ OF_ BR_ TABLE_ TARGETS - The max number of labels of a table jump, excluding the default
- MAX_
NUMBER_ OF_ EVENTS - The max number of events
- MAX_
NUMBER_ OF_ FIELDS - MAX_
NUMBER_ OF_ FUNCTIONS - The max number of functions
- MAX_
NUMBER_ OF_ FUNCTION_ LOCALS - The max number of function local variables
- MAX_
NUMBER_ OF_ FUNCTION_ PARAMS - The max number of function parameters
- MAX_
NUMBER_ OF_ GLOBALS - The max number of global variables
- MAX_
NUMBER_ OF_ LOGS - The max number of logs
- MAX_
ORIGIN_ LENGTH - The max length of an Origin in metadata
- MAX_
PANIC_ MESSAGE_ SIZE - The max panic message size
- MAX_
PER_ FUNCTION_ ROYALTY_ IN_ XRD - The maximum that a package or component owner is allowed to set their method royalty to. 10 USD
- MAX_
ROLES - The max number of roles in a Role Specification
- MAX_
ROLE_ NAME_ LEN - The max length of a role name
- MAX_
SUBSTATE_ KEY_ SIZE - The maximum substate key read and write size
- MAX_
SUBSTATE_ VALUE_ SIZE - The maximum substate read and write size.
- MAX_
TRACK_ SUBSTATE_ TOTAL_ BYTES - The max total track substate size.
- MAX_
TYPE_ NAME_ LEN - The max length of a registered type name
- MAX_
URL_ LENGTH - The max length of a URL in metadata
- METADATA_
BASE_ PARTITION - METADATA_
BLUEPRINT - METADATA_
CREATE_ IDENT - METADATA_
CREATE_ WITH_ DATA_ IDENT - METADATA_
DISCRIMINATOR_ ARRAY_ BASE - METADATA_
GET_ IDENT - METADATA_
KV_ STORE_ PARTITION_ OFFSET - METADATA_
LOCKER_ ROLE - METADATA_
LOCKER_ UPDATER_ ROLE - METADATA_
LOCK_ IDENT - METADATA_
MODULE_ PACKAGE - The native package for the metadata module.
- METADATA_
REMOVE_ IDENT - METADATA_
SETTER_ ROLE - METADATA_
SETTER_ UPDATER_ ROLE - METADATA_
SET_ IDENT - METADATA_
VALUE_ BOOLEAN_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ BOOLEAN_ DISCRIMINATOR - METADATA_
VALUE_ DECIMAL_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ DECIMAL_ DISCRIMINATOR - METADATA_
VALUE_ GLOBAL_ ADDRESS_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ GLOBAL_ ADDRESS_ DISCRIMINATOR - METADATA_
VALUE_ I32_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ I32_ DISCRIMINATOR - METADATA_
VALUE_ I64_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ I64_ DISCRIMINATOR - METADATA_
VALUE_ INSTANT_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ INSTANT_ DISCRIMINATOR - METADATA_
VALUE_ NON_ FUNGIBLE_ GLOBAL_ ID_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ NON_ FUNGIBLE_ GLOBAL_ ID_ DISCRIMINATOR - METADATA_
VALUE_ NON_ FUNGIBLE_ LOCAL_ ID_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ NON_ FUNGIBLE_ LOCAL_ ID_ DISCRIMINATOR - METADATA_
VALUE_ ORIGIN_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ ORIGIN_ DISCRIMINATOR - METADATA_
VALUE_ PUBLIC_ KEY_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ PUBLIC_ KEY_ DISCRIMINATOR - METADATA_
VALUE_ PUBLIC_ KEY_ HASH_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ PUBLIC_ KEY_ HASH_ DISCRIMINATOR - METADATA_
VALUE_ STRING_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ STRING_ DISCRIMINATOR - METADATA_
VALUE_ U8_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ U8_ DISCRIMINATOR - METADATA_
VALUE_ U32_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ U32_ DISCRIMINATOR - METADATA_
VALUE_ U64_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ U64_ DISCRIMINATOR - METADATA_
VALUE_ URL_ ARRAY_ DISCRIMINATOR - METADATA_
VALUE_ URL_ DISCRIMINATOR - MINTER_
ROLE - MINTER_
UPDATER_ ROLE - MODULE_
ID_ TYPE - NETWORK_
FEES_ PROPOSER_ SHARE_ PERCENTAGE - The proposer’s share of network fees (execution, finalization and storage)
- NETWORK_
FEES_ VALIDATOR_ SET_ SHARE_ PERCENTAGE - The validator set’s share of network fees (execution, finalization and storage)
- NON_
FUNGIBLE_ BUCKET_ BLUEPRINT - NON_
FUNGIBLE_ BUCKET_ CONTAINS_ NON_ FUNGIBLE_ IDENT - NON_
FUNGIBLE_ BUCKET_ CREATE_ PROOF_ OF_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ BUCKET_ GET_ NON_ FUNGIBLE_ LOCAL_ IDS_ IDENT - NON_
FUNGIBLE_ BUCKET_ LOCK_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ BUCKET_ TAKE_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ BUCKET_ UNLOCK_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ DATA_ SCHEMA_ VARIANT_ LOCAL - NON_
FUNGIBLE_ DATA_ SCHEMA_ VARIANT_ REMOTE - NON_
FUNGIBLE_ DATA_ UPDATER_ ROLE - NON_
FUNGIBLE_ DATA_ UPDATER_ UPDATER_ ROLE - NON_
FUNGIBLE_ GLOBAL_ ID_ TYPE - NON_
FUNGIBLE_ LOCAL_ ID_ MAX_ LENGTH - NON_
FUNGIBLE_ LOCAL_ ID_ TYPE - NON_
FUNGIBLE_ PROOF_ BLUEPRINT - NON_
FUNGIBLE_ PROOF_ GET_ LOCAL_ IDS_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ BLUEPRINT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ CREATE_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ CREATE_ RUID_ WITH_ INITIAL_ SUPPLY_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ CREATE_ WITH_ INITIAL_ SUPPLY_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ EXISTS_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ GET_ NON_ FUNGIBLE_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ MINT_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ MINT_ RUID_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ MINT_ SINGLE_ RUID_ IDENT - NON_
FUNGIBLE_ RESOURCE_ MANAGER_ UPDATE_ DATA_ IDENT - NON_
FUNGIBLE_ VAULT_ BLUEPRINT - NON_
FUNGIBLE_ VAULT_ BURN_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ VAULT_ CONTAINS_ NON_ FUNGIBLE_ IDENT - NON_
FUNGIBLE_ VAULT_ CREATE_ PROOF_ OF_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ VAULT_ GET_ NON_ FUNGIBLE_ LOCAL_ IDS_ IDENT - NON_
FUNGIBLE_ VAULT_ LOCK_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ VAULT_ RECALL_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ VAULT_ TAKE_ NON_ FUNGIBLES_ IDENT - NON_
FUNGIBLE_ VAULT_ UNLOCK_ NON_ FUNGIBLES_ IDENT - OPTION_
VARIANT_ NONE - OPTION_
VARIANT_ SOME - ORIGIN_
TYPE - OWNER_
ROLE - OWNER_
ROLE_ TYPE - OWN_
BUCKET_ TYPE - OWN_
FUNGIBLE_ BUCKET_ TYPE - OWN_
FUNGIBLE_ PROOF_ TYPE - OWN_
FUNGIBLE_ VAULT_ TYPE - OWN_
GLOBAL_ ADDRESS_ RESERVATION_ TYPE - OWN_
KEY_ VALUE_ STORE_ TYPE - OWN_
NON_ FUNGIBLE_ BUCKET_ TYPE - OWN_
NON_ FUNGIBLE_ PROOF_ TYPE - OWN_
NON_ FUNGIBLE_ VAULT_ TYPE - OWN_
PROOF_ TYPE - OWN_
TYPE - OWN_
VAULT_ TYPE - PACKAGE_
ADDRESS_ TYPE - PACKAGE_
OF_ DIRECT_ CALLER_ RESOURCE - The non-fungible badge resource which is used for proofs which represent the package of the immediate caller - ie the actor which made the latest (global or internal) call.
- PACKAGE_
OWNER_ BADGE - The non-fungible badge resource which is used for package ownership when creating packages with the simple package creation set-up.
- PACKAGE_
PACKAGE - The native package for package deployment.
- POOL_
PACKAGE - The native package for pools.
- PRECISE_
DECIMAL_ SIZE - PRECISE_
DECIMAL_ TYPE - PREVIEW_
CREDIT_ IN_ XRD - The free credit amount used by preview. 1000000 XRD = $60000, which should be enough to cover all sensible preview requests.
- PROOF_
CLONE_ IDENT - PROOF_
DROP_ IDENT - PROOF_
GET_ AMOUNT_ IDENT - PROOF_
GET_ RESOURCE_ ADDRESS_ IDENT - PROTOCOL_
UPDATE_ STATUS_ PARTITION - Used only with TRANSACTION_TRACKER Node for protocol updating
- PUBLIC_
KEY_ HASH_ TYPE - PUBLIC_
KEY_ TYPE - RECALLER_
ROLE - RECALLER_
UPDATER_ ROLE - REFERENCE_
TYPE - RESOURCE_
ADDRESS_ TYPE - RESOURCE_
MANAGER_ BURN_ IDENT - RESOURCE_
MANAGER_ CREATE_ EMPTY_ BUCKET_ IDENT - RESOURCE_
MANAGER_ CREATE_ EMPTY_ VAULT_ IDENT - RESOURCE_
MANAGER_ DROP_ EMPTY_ BUCKET_ IDENT - RESOURCE_
MANAGER_ GET_ AMOUNT_ FOR_ WITHDRAWAL_ IDENT - RESOURCE_
MANAGER_ GET_ RESOURCE_ TYPE_ IDENT - RESOURCE_
MANAGER_ GET_ TOTAL_ SUPPLY_ IDENT - RESOURCE_
MANAGER_ PACKAGE_ BURN_ IDENT - RESOURCE_
OR_ NON_ FUNGIBLE_ LIST_ TYPE - RESOURCE_
OR_ NON_ FUNGIBLE_ TYPE - RESOURCE_
PACKAGE - The native package for resource managers, proofs, buckets, vaults etc.
- RESULT_
VARIANT_ ERR - RESULT_
VARIANT_ OK - ROLA_
HASHABLE_ PAYLOAD_ PREFIX - The ROLA hash which is signed is created as
hash(ROLA_HASHABLE_PAYLOAD_PREFIX || ..)
- ROLE_
ASSIGNMENT_ BASE_ PARTITION - ROLE_
ASSIGNMENT_ BLUEPRINT - ROLE_
ASSIGNMENT_ CREATE_ IDENT - ROLE_
ASSIGNMENT_ FIELDS_ PARTITION - ROLE_
ASSIGNMENT_ FIELDS_ PARTITION_ OFFSET - ROLE_
ASSIGNMENT_ GET_ IDENT - ROLE_
ASSIGNMENT_ GET_ OWNER_ ROLE_ IDENT - ROLE_
ASSIGNMENT_ LOCK_ OWNER_ IDENT - ROLE_
ASSIGNMENT_ MODULE_ PACKAGE - The native package for the role assignment module.
- ROLE_
ASSIGNMENT_ MUTABILITY_ PARTITION_ OFFSET - ROLE_
ASSIGNMENT_ ROLE_ DEF_ PARTITION - ROLE_
ASSIGNMENT_ ROLE_ DEF_ PARTITION_ OFFSET - ROLE_
ASSIGNMENT_ SET_ IDENT - ROLE_
ASSIGNMENT_ SET_ OWNER_ IDENT - ROLE_
KEY_ TYPE - ROYALTY_
AMOUNT_ TYPE - ROYALTY_
BASE_ PARTITION - ROYALTY_
CONFIG_ PARTITION - ROYALTY_
CONFIG_ PARTITION_ OFFSET - ROYALTY_
FIELDS_ PARTITION - ROYALTY_
FIELDS_ PARTITION_ OFFSET - ROYALTY_
MODULE_ PACKAGE - The native package for the royalty module.
- SCHEMAS_
PARTITION - SCRYPTO_
SBOR_ V1_ MAX_ DEPTH - SCRYPTO_
SBOR_ V1_ PAYLOAD_ PREFIX - 0x5c for [5c]rypto - (92 in decimal)
- SECP256
K1_ PUBLIC_ KEY_ HASH_ TYPE - SECP256
K1_ PUBLIC_ KEY_ TYPE - SECP256
K1_ SIGNATURE_ RESOURCE - The non-fungible badge resource which is used for proofs of ECDSA Secp256k1 transacton signatures in the transaction processor.
- SELF_
ROLE - STATE_
STORAGE_ PRICE_ IN_ XRD - The price for adding a single byte to state storage, in XRD. 1 MB = 6 USD
- SYSTEM_
EXECUTION_ RESOURCE - The non-fungible badge resource which is used for proofs representing the fact that the current transaction is a system transaction.
- TEST_
UTILS_ PACKAGE - The native package for test utils.
- TIPS_
PROPOSER_ SHARE_ PERCENTAGE - The proposer’s share of tips
- TIPS_
VALIDATOR_ SET_ SHARE_ PERCENTAGE - The validator set’s share of tips
- TRANSACTION_
HASHABLE_ PAYLOAD_ PREFIX - The Transaction hash which is signed is created as:
hash(TRANSACTION_HASHABLE_PAYLOAD_PREFIX || version prefix according to type of transaction payload || ..)
- TRANSACTION_
PROCESSOR_ PACKAGE - The native package for the transaction processor.
- TRANSACTION_
TRACKER - The intent hash store component
- TRANSACTION_
TRACKER_ BLUEPRINT - TRANSACTION_
TRACKER_ PACKAGE - TRANSIENT_
SUBSTATE_ DEFAULT_ VALUE_ MAX_ DEPTH - Depth limit for the default value of a transient substate
- TYPE_
INFO_ FIELD_ PARTITION - URL_
TYPE - USD_
PRICE_ IN_ XRD - The USD price, in XRD. 1 XRD = 0.06 USD
- UTC_
DATE_ TIME_ TYPE - VALIDATOR_
ACCEPTS_ DELEGATED_ STAKE_ IDENT - VALIDATOR_
APPLY_ EMISSION_ IDENT - VALIDATOR_
APPLY_ REWARD_ IDENT - VALIDATOR_
BLUEPRINT - VALIDATOR_
CLAIM_ XRD_ IDENT - VALIDATOR_
FINISH_ UNLOCK_ OWNER_ STAKE_ UNITS_ IDENT - VALIDATOR_
GET_ PROTOCOL_ UPDATE_ READINESS_ IDENT - VALIDATOR_
GET_ REDEMPTION_ VALUE_ IDENT - VALIDATOR_
LOCK_ OWNER_ STAKE_ UNITS_ IDENT - VALIDATOR_
OWNER_ BADGE - The non-fungible badge resource which is used for validator ownership.
- VALIDATOR_
REGISTER_ IDENT - VALIDATOR_
SIGNAL_ PROTOCOL_ UPDATE_ READINESS_ IDENT - VALIDATOR_
STAKE_ AS_ OWNER_ IDENT - VALIDATOR_
STAKE_ IDENT - VALIDATOR_
START_ UNLOCK_ OWNER_ STAKE_ UNITS_ IDENT - VALIDATOR_
TOTAL_ STAKE_ UNIT_ SUPPLY_ IDENT - VALIDATOR_
TOTAL_ STAKE_ XRD_ AMOUNT_ IDENT - VALIDATOR_
UNREGISTER_ IDENT - VALIDATOR_
UNSTAKE_ IDENT - VALIDATOR_
UPDATE_ ACCEPT_ DELEGATED_ STAKE_ IDENT - VALIDATOR_
UPDATE_ FEE_ IDENT - VALIDATOR_
UPDATE_ KEY_ IDENT - VALUE_
KIND_ ARRAY - VALUE_
KIND_ BOOL - VALUE_
KIND_ DECIMAL - VALUE_
KIND_ ENUM - VALUE_
KIND_ I8 - VALUE_
KIND_ I16 - VALUE_
KIND_ I32 - VALUE_
KIND_ I64 - VALUE_
KIND_ I128 - VALUE_
KIND_ MAP - VALUE_
KIND_ NON_ FUNGIBLE_ LOCAL_ ID - VALUE_
KIND_ OWN - VALUE_
KIND_ PRECISE_ DECIMAL - VALUE_
KIND_ REFERENCE - VALUE_
KIND_ STRING - VALUE_
KIND_ TUPLE - VALUE_
KIND_ U8 - VALUE_
KIND_ U16 - VALUE_
KIND_ U32 - VALUE_
KIND_ U64 - VALUE_
KIND_ U128 - VAULT_
BURN_ IDENT - VAULT_
FREEZE_ IDENT - VAULT_
GET_ AMOUNT_ IDENT - VAULT_
PUT_ IDENT - VAULT_
RECALL_ IDENT - VAULT_
TAKE_ ADVANCED_ IDENT - VAULT_
TAKE_ IDENT - VAULT_
UNFREEZE_ IDENT - WASM_
ENGINE_ CACHE_ SIZE - The number of entries in the engine cache
- WASM_
EXECUTION_ COST_ UNITS_ BUFFER - WITHDRAWER_
ROLE - WITHDRAWER_
UPDATER_ ROLE - WORKTOP_
ASSERT_ CONTAINS_ AMOUNT_ IDENT - WORKTOP_
ASSERT_ CONTAINS_ IDENT - WORKTOP_
ASSERT_ CONTAINS_ NON_ FUNGIBLES_ IDENT - WORKTOP_
ASSERT_ RESOURCES_ INCLUDE_ IDENT - WORKTOP_
ASSERT_ RESOURCES_ ONLY_ IDENT - WORKTOP_
BLUEPRINT - WORKTOP_
DRAIN_ IDENT - WORKTOP_
DROP_ IDENT - WORKTOP_
PUT_ IDENT - WORKTOP_
TAKE_ ALL_ IDENT - WORKTOP_
TAKE_ IDENT - WORKTOP_
TAKE_ NON_ FUNGIBLES_ IDENT - XRD
- XRD is the native token of the Radix ledger.
It is a fungible token, measured in attos (
10^-18
).
Statics§
Traits§
- Access
Rule Visitor - Array
Metadata Val - AsMut
- Used to do a cheap mutable-to-mutable reference conversion.
- AsRef
- Used to do a cheap reference-to-reference conversion.
- AsStatic
Ref Deprecated - A cheap reference-to-reference conversion. Used to convert a value to a
reference value with
'static
lifetime within generic code. - Basic
Categorize - Basic
Decode - Basic
Describe - Basic
Encode - Basic
Sbor - Basic
Sbor Enum - Basic
Sbor Enum Variant For - Basic
Sbor Tuple - Blueprint
Partition Offset - Borrowing
Decoder - Categorize
- The
Categorize
trait marks a rust type as having a fixed value kind for SBOR encoding/decoding. - Cbrt
- Checked
Add - Checked
Backwards Compatible Schema - Checked
Div - Checked
Fixed Schema - Marker traits intended to be implemented by the SborAssert macros
- Checked
Mul - Checked
Neg - Checked
Sub - Checked
Truncate - Clone
- A common trait that allows explicit creation of a duplicate value.
- Collection
Descriptor - Comparable
Schema - Marker trait for
SingleTypeSchema
andTypeCollectionSchema
which includes named pointers to types, and can be used for comparisons of different versions of the same schema. - Contextual
Display - This trait is used where context is required to correctly display a value.
- Contextual
TryFrom - Contextual
TryInto - Copy
- Types whose values can be duplicated simply by copying bits.
- Custom
Extension - Custom
Schema - Custom
Type Kind - Custom
Type Kind Label - Custom
Type Validation - Custom
Value - Represents a custom SBOR value.
- Custom
Value Kind - Debug
?
formatting.- Decode
- A data structure that can be decoded from a byte array using SBOR.
- Decoder
- Default
- A trait for giving a type a useful default value.
- Describe
- The
Describe
trait allows a type to describe how to interpret and validate a corresponding SBOR payload. - Display
- Format trait for an empty format,
{}
. - Double
Ended Iterator - An iterator able to yield elements from both ends.
- Drop
- Custom code within the destructor.
- Encode
- A data structure that can be serialized into a byte array using SBOR.
- Encoder
- Enum
Count - A trait for capturing the number of variants in Enum. This trait can be autoderived by
strum_macros
. - Enum
Message - Associates additional pieces of information with an Enum. This can be
autoimplemented by deriving
EnumMessage
and annotating your variants with#[strum(message="...")]
. - Enum
Property EnumProperty
is a trait that makes it possible to store additional information with enum variants. This trait is designed to be used with the macro of the same name in thestrum_macros
crate. Currently, the only string literals are supported in attributes, the other methods will be implemented as additional attribute types become stabilized.- Eq
- Trait for comparisons corresponding to equivalence relations.
- Exact
Size Iterator - An iterator that knows its exact length.
- Extend
- Extend a collection with the contents of an iterator.
- Field
Descriptor - Field
Payload Marker - Fn
- The version of the call operator that takes an immutable receiver.
- FnMut
- The version of the call operator that takes a mutable receiver.
- FnOnce
- The version of the call operator that takes a by-value receiver.
- ForWithdrawal
- From
- Used to do value-to-value conversions while consuming the input value. It is the reciprocal of
Into
. - From
Iterator - Conversion from an
Iterator
. - From
Primitive - A generic trait for converting a number to a value.
- From
Public Key - FromStr
- Parse a value from a string
- HasPublic
KeyHash - HasSchema
Hash - Into
- A value-to-value conversion that consumes the input value. The
opposite of
From
. - Into
Comparable Schema - Into
Enum Iterator - This trait designates that an
Enum
can be iterated over. It can be auto generated usingstrum_macros
on your behalf. - Into
Iterator - Conversion into an
Iterator
. - IsHash
- IsNon
Auto Generated NonFungible Local Id - Marks the rust type that represents a non-fungible id, of non-auto-generated kind (i.e. String, Integer and Bytes).
- IsNon
Fungible Local Id - Marks the rust type that represents a non-fungible id, of any kind (i.e. String, Integer, Bytes and RUID).
- IsPublic
KeyHash - IsSbor
Fixed Enum Variant - Iterator
- A trait for dealing with iterators.
- Label
Resolver - Labelled
Resolvable LabelledResolvable
is a marker trait, serving a few purposes:- Labelled
Resolve - This trait is intended to be used as an
impl
argument in helper methods, to accept a wider range of arguments. - Labelled
Resolve From - The inverse trait of
LabelledResolve
. - Manifest
Categorize - Manifest
Decode - Manifest
Encode - Manifest
Sbor Enum - Manifest
Sbor Enum Variant For - Manifest
Sbor Tuple - Metadata
Val - NonFungible
Data - Represents the data structure of a non-fungible.
- NthRoot
- Numeric
Validation Bound - One
- Defines a multiplicative identity element for
Self
. - Ord
- Trait for types that form a total order.
- Partial
Eq - Trait for comparisons using the equality operator.
- Partial
Ord - Trait for types that form a partial order.
- Pow
- Binary operator for raising a value to a power.
- Resolvable
Resolvable
is a marker trait, mainly to make resolution opt-in and to avoid polluting every type with a resolve method.- Resolvable
Optional Substate Key - Resolvable
Static Manifest Package Address - This trait resolves a static resource address for manifest instructions which (as of Cuttlefish) only support a fixed address.
- Resolvable
Static Manifest Resource Address - This trait resolves a static resource address for manifest instructions which (as of Cuttlefish) only support a fixed address.
- Resolvable
Substate Key - Resolve
- This trait is intended to be used as an
impl
argument in helper methods, to accept a wider range of arguments. - Resolve
From - The inverse trait of
Resolve
. - Saturating
Add - Sbor
Custom Value - Represents a custom SBOR value.
- Sbor
Enum - Marker trait for encoding as an Sbor Enum
- Sbor
Enum Variant For - This trait is output for unique unskipped single children of enum variants, when
#[sbor(impl_variant_traits)]
is specified on an Enum or#[sbor(impl_variant_trait)]
is specified on a single Enum variant. - Sbor
Tuple - Marker trait for encoding as an Sbor Tuple
- Schema
Type Link - Marker trait for a link between
TypeKind
s: - Scrypto
Categorize - Scrypto
Checked Backwards Compatible Schema - Scrypto
Checked Fixed Schema - Scrypto
Decode - Scrypto
Describe - Scrypto
Encode - Scrypto
Event - Scrypto
Sbor - Scrypto
Sbor Enum - Scrypto
Sbor Enum Variant For - Scrypto
Sbor Tuple - Send
- Types that can be transferred across thread boundaries.
- Signed
- Useful functions for signed numbers (i.e. numbers that can be negative).
- Single
Metadata Val - Sized
- Types with a constant size known at compile time.
- Sqrt
- Sync
- Types for which it is safe to share references between threads.
- System
Actor Api - Api which exposes methods in the context of the actor
- System
Actor Index Api - Api to manage an iterable index
- System
Actor KeyValue Entry Api - System
Actor Sorted Index Api - System
Api - Interface of the system, for blueprints and object modules.
- System
ApiError - System
Blueprint Api - System
Costing Api - System
Execution Trace Api - System
Field Api - System api to read/write fields
- System
KeyValue Entry Api - System
KeyValue Store Api - System
Object Api - A high level interface to manipulate objects in the actor’s call frame
- System
Transaction Runtime Api - ToMetadata
Entry - ToOwned
- A generalization of
Clone
to borrowed data. - ToPrimitive
- A generic trait for converting a value to a number.
- ToRole
Entry - ToString
- A trait for converting a value to a
String
. - TryFrom
- Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of
TryInto
. - TryInto
- An attempted conversion that consumes
self
, which may or may not be expensive. - Unique
Versioned - A trait for Versioned types which only have a single version.
- Unpin
- Types that do not require any pinning guarantees.
- Validatable
Custom Extension - Value
Visitor - Variant
Names - A trait for retrieving the names of each variant in Enum. This trait can
be autoderived by
strum_macros
. - Versioned
- A trait implemented by versioned types created via
define_versioned
anddefine_single_versioned
. - Versioned
Schema Version - Zero
- Defines an additive identity element for
Self
.
Functions§
- access_
rule_ type_ data - aggregate_
verify_ bls12381_ v1 - Performs BLS12-381 G2 aggregated signature verification of multiple messages each signed with different key. Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_
- always_
visible_ global_ nodes - assert_
type_ backwards_ compatibility - Designed for ensuring a type is only altered in ways which ensure backwards compatibility in SBOR serialization (i.e. that old payloads can be deserialized correctly by the latest type).
- assert_
type_ collection_ backwards_ compatibility - Designed for ensuring a type collection is only altered in ways which ensure backwards compatibility in SBOR serialization (i.e. that old payloads of named types can be deserialized correctly by the latest schema).
- attached_
module_ id_ type_ data - basic_
decode - Decode an instance of
T
from a slice. - basic_
decode_ with_ depth_ limit - basic_
decode_ with_ depth_ limit_ and_ nice_ error - Decodes a data structure from a byte array.
- basic_
decode_ with_ nice_ error - Decodes a data structure from a byte array.
- basic_
encode - Encode a
T
into byte array. - basic_
encode_ with_ depth_ limit - basic_
payload_ traverser - Creates a payload traverser from the buffer
- basic_
requirement_ type_ data - bech32_
encode_ to_ fmt - NOTE: The below code is copied with minor alterations from the bech32 crate. These alterations are to avoid using std for allocations, and fit with the sbor no-alloc options.
- blake2b_
256_ hash - check_
fungible_ amount - check_
non_ fungible_ amount - combine
- Combines a u8 with a u8 slice.
- compare_
single_ type_ schemas - Designed for basic comparisons between two types, e.g. equality checking.
- compare_
type_ collection_ schemas - Designed for basic comparisons between two type collection schemas, e.g. equality checking.
- component_
address - component_
address_ type_ data - composite_
requirement_ list_ type_ data - composite_
requirement_ type_ data - copy_
u8_ array - Copies a slice to a fixed-sized array.
- decimal_
type_ data - drop
- Disposes of a value.
- ed25519_
public_ key_ hash_ type_ data - ed25519_
public_ key_ type_ data - fast_
aggregate_ verify_ bls12381_ v1 - Performs BLS12-381 G2 aggregated signature verification one message signed with multiple keys. Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_ This method validates provided input keys when aggregating.
- fast_
aggregate_ verify_ bls12381_ v1_ anemone - Performs BLS12-381 G2 aggregated signature verification
one message signed with multiple keys.
Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_
This method does not validate provided input keys when aggregating,
it is left here for backward compatibility.
It is recommended to use
fast_aggregate_verify_bls12381_v1()
method instead. - from_
manifest_ value - generate_
full_ schema - You may wish to use the newer
aggregator.generate_type_collection_schema()
which, in tandom withadd_named_root_type_and_descendents
also captures named root types to give more structure to enable schema comparisons over time. - generate_
full_ schema_ from_ single_ type - generate_
single_ type_ schema - global_
address_ type_ data - global_
caller - A requirement for the global ancestor of the actor who made the latest global call to either be:
- hash
- Computes the hash digest of a message.
- hash_
map_ new - Creates an empty map with capacity 0 and default Hasher
- hash_
map_ with_ capacity - Creates an empty map with given capacity and default Hasher
- hash_
public_ key_ bytes - hash_
set_ new - Creates an empty set with capacity 0 and default Hasher
- hash_
set_ with_ capacity - Creates an empty set with given capacity and default Hasher
- index_
map_ new - This is safe for std and no-std use cases (unlike
IndexMap::new
which disappears when std is not in the toolchain - see this article for deep technical reasons) - index_
map_ with_ capacity - This is safe for std and no-std use cases (unlike
IndexMap::with_capacity
which disappears when std is not in the toolchain - see this article for deep technical reasons) - index_
set_ new - This is safe for std and no-std use cases (unlike
IndexSet::new
which disappears when std is not in the toolchain - see this article for deep technical reasons) - index_
set_ with_ capacity - This is safe for std and no-std use cases (unlike
IndexSet::with_capacity
which disappears when std is not in the toolchain - see this article for deep technical reasons) - instant_
type_ data - internal_
address_ type_ data - keccak256_
hash - local_
address - localize_
well_ known - localize_
well_ known_ type_ data - manifest_
decode - manifest_
decode_ with_ depth_ limit - manifest_
decode_ with_ depth_ limit_ and_ nice_ error - Decodes a data structure from a byte array.
- manifest_
decode_ with_ nice_ error - Decodes a data structure from a byte array.
- manifest_
encode - manifest_
encode_ with_ depth_ limit - module_
id_ type_ data - non_
fungible_ global_ id_ type_ data - non_
fungible_ local_ id_ type_ data - origin_
type_ data - own_
bucket_ type_ data - own_
fungible_ bucket_ type_ data - own_
fungible_ proof_ type_ data - own_
fungible_ vault_ type_ data - own_
global_ address_ reservation_ type_ data - own_
key_ value_ store_ type_ data - own_
non_ fungible_ bucket_ type_ data - own_
non_ fungible_ proof_ type_ data - own_
non_ fungible_ vault_ type_ data - own_
proof_ type_ data - own_
type_ data - own_
vault_ type_ data - owner_
role_ type_ data - package_
address - package_
address_ type_ data - package_
of_ direct_ caller - A requirement for the immediate caller’s package to equal the given package.
- precise_
decimal_ type_ data - public_
key_ hash_ type_ data - public_
key_ type_ data - reference_
type_ data - replace_
self_ package_ address - require
- require_
all_ of - require_
amount - require_
any_ of - require_
n_ of - resolve_
invoked_ blueprint_ id - This function resolves the
BlueprintId
of the invoked blueprint given theBlueprintId
of the main module and theModuleId
being invoked. - resolve_
local_ type_ id - resolve_
main_ module_ blueprint_ id - This function resolves the
BlueprintId
based on the entity type for native blueprints. - resolve_
scrypto_ well_ known_ type - resource_
address - resource_
address_ type_ data - resource_
or_ non_ fungible_ list_ type_ data - resource_
or_ non_ fungible_ type_ data - role_
key_ type_ data - royalty_
amount_ type_ data - scrypto_
decode - Decodes a data structure from a byte array.
- scrypto_
decode_ with_ depth_ limit - scrypto_
decode_ with_ depth_ limit_ and_ nice_ error - Decodes a data structure from a byte array.
- scrypto_
decode_ with_ nice_ error - Decodes a data structure from a byte array.
- scrypto_
encode - Encodes a data structure into byte array.
- scrypto_
encode_ with_ depth_ limit - secp256k1_
public_ key_ hash_ type_ data - secp256k1_
public_ key_ type_ data - signature
- A requirement for the transaction to be signed using a specific key.
- system_
execution - A requirement for the transaction to be a system transaction.
- to_
manifest_ value - traverse_
any - ============================================== (DEPRECATED) TRAVERSAL
- url_
type_ data - utc_
date_ time_ type_ data - validate_
childless_ metadata - validate_
container - validate_
custom_ type_ validation - validate_
enum_ metadata - validate_
field_ names - validate_
index - validate_
partial_ payload_ against_ schema - validate_
payload_ against_ schema - validate_
schema - validate_
schema_ enum_ variant_ name - validate_
schema_ field_ name - validate_
schema_ type_ name - validate_
terminal_ value - validate_
terminal_ value_ batch - validate_
tuple_ metadata - validate_
type_ kind - validate_
type_ metadata_ with_ type_ kind - verify_
bls12381_ v1 - Performs BLS12-381 G2 signature verification. Domain specifier tag: BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_
- verify_
ed25519
Type Aliases§
- Account
Locker Airdrop Output - Account
Locker Claim NonFungibles Output - Account
Locker Claim Output - Account
Locker GetAmount Output - Account
Locker GetNon Fungible Local IdsOutput - Account
Locker Instantiate Output - Account
Locker Instantiate Simple Output - Account
Locker Recover NonFungibles Output - Account
Locker Recover Output - Account
Locker Store Output - Actor
RefHandle - Actor
State Handle - Aggregator
Type Data - Aggregator
Type Id - A newer alias for
RustTypeId
. - Aggregator
Type Kind - Auth
Zone Assert Access Rule Manifest Input - Auth
Zone Assert Access Rule Output - Auth
Zone Create Proof OfAll Manifest Input - Auth
Zone Create Proof OfAll Output - Auth
Zone Create Proof OfAmount Manifest Input - Auth
Zone Create Proof OfAmount Output - Auth
Zone Create Proof OfNon Fungibles Manifest Input - Auth
Zone Create Proof OfNon Fungibles Output - Auth
Zone Drain Manifest Input - Auth
Zone Drain Output - Auth
Zone Drop Proofs Manifest Input - Auth
Zone Drop Proofs Output - Auth
Zone Drop Regular Proofs Manifest Input - Auth
Zone Drop Regular Proofs Output - Auth
Zone Drop Signature Proofs Manifest Input - Auth
Zone Drop Signature Proofs Output - Auth
Zone PopManifest Input - Auth
Zone PopOutput - Auth
Zone Push Output - Basic
Aggregator Type Data - Basic
Aggregator Type Kind - Basic
Decoder - Basic
Encoder - Basic
Enum Variant Value - Basic
Local Type Data - Basic
Local Type Kind - Basic
Owned RawPayload - Basic
Owned RawValue - Basic
RawPayload - Basic
RawValue - Basic
Schema - Basic
Traverser - Basic
Type Aggregator - Basic
Type Data - Basic
Type Kind - Basic
Value - Basic
Value Kind - Basic
Versioned Schema - Blake2b256
- Bucket
Create Proof OfAll Manifest Input - Bucket
Create Proof OfAll Output - Bucket
GetAmount Manifest Input - Bucket
GetAmount Output - Bucket
GetNon Fungible Local IdsManifest Input - Bucket
GetNon Fungible Local IdsOutput - Bucket
GetResource Address Manifest Input - Bucket
GetResource Address Output - Bucket
PutOutput - Bucket
Take Advanced Manifest Input - Bucket
Take Advanced Output - Bucket
Take Manifest Input - Bucket
Take NonFungibles Manifest Input - Bucket
Take NonFungibles Output - Bucket
Take Output - Buffer
Id - Checked
Metadata Value - Collection
Index - Component
Claim Royalties Manifest Input - Component
Claim Royalties Output - Component
Royalty Create Manifest Input - Component
Royalty Create Output - Component
Royalty Lock Manifest Input - Component
Royalty Lock Output - Component
Royalty SetManifest Input - Component
Royalty SetOutput - Consensus
Manager Compare Current Time Manifest Input V1 - Consensus
Manager Compare Current Time Manifest Input V2 - Consensus
Manager Compare Current Time Output - Consensus
Manager Create Output - Consensus
Manager Create Validator Output - Consensus
Manager GetCurrent Epoch Manifest Input - Consensus
Manager GetCurrent Epoch Output - Consensus
Manager GetCurrent Time Manifest Input V1 - Consensus
Manager GetCurrent Time Manifest Input V2 - Consensus
Manager GetCurrent Time Output - Consensus
Manager Next Round Manifest Input - Consensus
Manager Next Round Output - Consensus
Manager Start Manifest Input - Consensus
Manager Start Output - DbSubstate
Value - A raw substate value stored by the database.
- Dynamic
Component Address - Dynamic
Global Address - Dynamic
Package Address - Dynamic
Resource Address - Field
Handle - Field
Index - Field
Key - Fungible
Bucket Create Proof OfAll Input - Fungible
Bucket Create Proof OfAll Manifest Input - Fungible
Bucket Create Proof OfAmount Manifest Input - Fungible
Bucket Create Proof OfAmount Output - Fungible
Bucket GetAmount Input - Fungible
Bucket GetAmount Manifest Input - Fungible
Bucket GetResource Address Input - Fungible
Bucket GetResource Address Manifest Input - Fungible
Bucket Lock Amount Manifest Input - Fungible
Bucket Lock Amount Output - Fungible
Bucket PutInput - Fungible
Bucket PutManifest Input - Fungible
Bucket Unlock Amount Manifest Input - Fungible
Bucket Unlock Amount Output - Fungible
Proof Clone Input - Fungible
Proof Clone Manifest Input - Fungible
Proof Drop Input - Fungible
Proof Drop Manifest Input - Fungible
Proof GetAmount Input - Fungible
Proof GetAmount Manifest Input - Fungible
Proof GetResource Address Input - Fungible
Proof GetResource Address Manifest Input - Fungible
Resource Manager Amount ForWithdrawal Input - Fungible
Resource Manager Amount ForWithdrawal Manifest Input - Fungible
Resource Manager Burn Input - Fungible
Resource Manager Burn Manifest Input - Fungible
Resource Manager Create Empty Bucket Input - Fungible
Resource Manager Create Empty Bucket Manifest Input - Fungible
Resource Manager Create Empty Vault Input - Fungible
Resource Manager Create Empty Vault Manifest Input - Fungible
Resource Manager Create Output - Fungible
Resource Manager Create With Initial Supply Output - Fungible
Resource Manager Drop Empty Bucket Input - Fungible
Resource Manager Drop Empty Bucket Manifest Input - Fungible
Resource Manager GetResource Type Input - Fungible
Resource Manager GetResource Type Manifest Input - Fungible
Resource Manager GetTotal Supply Input - Fungible
Resource Manager GetTotal Supply Manifest Input - Fungible
Resource Manager Mint Manifest Input - Fungible
Resource Manager Mint Output - Fungible
Resource Manager Package Burn Input - Fungible
Resource Manager Package Burn Manifest Input - Fungible
Vault Burn Input - Fungible
Vault Burn Manifest Input - Fungible
Vault Create Proof OfAmount Manifest Input - Fungible
Vault Create Proof OfAmount Output - Fungible
Vault Freeze Input - Fungible
Vault Freeze Manifest Input - Fungible
Vault GetAmount Input - Fungible
Vault GetAmount Manifest Input - Fungible
Vault Lock FeeManifest Input - Fungible
Vault Lock FeeOutput - Fungible
Vault Lock Fungible Amount Manifest Input - Fungible
Vault Lock Fungible Amount Output - Fungible
Vault PutInput - Fungible
Vault PutManifest Input - Fungible
Vault Unfreeze Input - Fungible
Vault Unfreeze Manifest Input - Fungible
Vault Unlock Fungible Amount Manifest Input - Fungible
Vault Unlock Fungible Amount Output - HashMap
- HashSet
- Index
Map - Index
Set - Inner
Decimal - Inner
Precise Decimal - KeyValue
Entry Handle - Local
Type Data - Local
Type Kind - Manifest
Decoder - Manifest
Encoder - Manifest
Enum Variant Value - Manifest
Owned RawPayload - Manifest
Owned RawValue - Manifest
RawPayload - Manifest
RawValue - Manifest
Traverser - Manifest
Value - Manifest
Value Kind - MapKey
- Metadata
Create Manifest Input - Metadata
Create Output - Metadata
Create With Data Manifest Input - Metadata
Create With Data Output - Metadata
GetManifest Input - Metadata
GetOutput - Metadata
Init - Metadata
Lock Manifest Input - Metadata
Lock Output - Metadata
Remove Manifest Input - Metadata
Remove Output - Metadata
SetManifest Input - Metadata
SetOutput - Metadata
Value - NonFungible
Bucket Contains NonFungible Manifest Input - NonFungible
Bucket Contains NonFungible Output - NonFungible
Bucket Create Proof OfAll Input - NonFungible
Bucket Create Proof OfAll Manifest Input - NonFungible
Bucket Create Proof OfNon Fungibles Manifest Input - NonFungible
Bucket Create Proof OfNon Fungibles Output - NonFungible
Bucket GetAmount Input - NonFungible
Bucket GetAmount Manifest Input - NonFungible
Bucket GetNon Fungible Local IdsInput - NonFungible
Bucket GetNon Fungible Local IdsManifest Input - NonFungible
Bucket GetResource Address Input - NonFungible
Bucket GetResource Address Manifest Input - NonFungible
Bucket Lock NonFungibles Manifest Input - NonFungible
Bucket Lock NonFungibles Output - NonFungible
Bucket PutInput - NonFungible
Bucket PutManifest Input - NonFungible
Bucket Unlock NonFungibles Manifest Input - NonFungible
Bucket Unlock NonFungibles Output - NonFungible
Proof Clone Input - NonFungible
Proof Clone Manifest Input - NonFungible
Proof Drop Input - NonFungible
Proof Drop Manifest Input - NonFungible
Proof GetAmount Input - NonFungible
Proof GetAmount Manifest Input - NonFungible
Proof GetLocal IdsManifest Input - NonFungible
Proof GetLocal IdsOutput - NonFungible
Proof GetResource Address Input - NonFungible
Proof GetResource Address Manifest Input - NonFungible
Resource Manager Amount ForWithdrawal Input - NonFungible
Resource Manager Amount ForWithdrawal Manifest Input - NonFungible
Resource Manager Burn Input - NonFungible
Resource Manager Burn Manifest Input - NonFungible
Resource Manager Create Empty Bucket Input - NonFungible
Resource Manager Create Empty Bucket Manifest Input - NonFungible
Resource Manager Create Empty Vault Input - NonFungible
Resource Manager Create Empty Vault Manifest Input - NonFungible
Resource Manager Create Output - NonFungible
Resource Manager Create Ruid With Initial Supply Output - NonFungible
Resource Manager Create With Initial Supply Output - NonFungible
Resource Manager Drop Empty Bucket Input - NonFungible
Resource Manager Drop Empty Bucket Manifest Input - NonFungible
Resource Manager Exists Manifest Input - NonFungible
Resource Manager Exists Output - NonFungible
Resource Manager GetNon Fungible Manifest Input - NonFungible
Resource Manager GetNon Fungible Output - NonFungible
Resource Manager GetResource Type Input - NonFungible
Resource Manager GetResource Type Manifest Input - NonFungible
Resource Manager GetTotal Supply Input - NonFungible
Resource Manager GetTotal Supply Manifest Input - NonFungible
Resource Manager Mint Output - NonFungible
Resource Manager Mint Ruid Output - NonFungible
Resource Manager Mint Single Ruid Output - NonFungible
Resource Manager Package Burn Input - NonFungible
Resource Manager Package Burn Manifest Input - NonFungible
Resource Manager Update Data Output - NonFungible
Vault Burn Input - NonFungible
Vault Burn Manifest Input - NonFungible
Vault Burn NonFungibles Manifest Input - NonFungible
Vault Burn NonFungibles Output - NonFungible
Vault Contains NonFungible Manifest Input - NonFungible
Vault Contains NonFungible Output - NonFungible
Vault Create Proof OfNon Fungibles Manifest Input - NonFungible
Vault Create Proof OfNon Fungibles Output - NonFungible
Vault Freeze Input - NonFungible
Vault Freeze Manifest Input - NonFungible
Vault GetAmount Input - NonFungible
Vault GetAmount Manifest Input - NonFungible
Vault GetNon Fungible Local IdsManifest Input - NonFungible
Vault GetNon Fungible Local IdsOutput - NonFungible
Vault Lock NonFungibles Manifest Input - NonFungible
Vault Lock NonFungibles Output - NonFungible
Vault PutInput - NonFungible
Vault PutManifest Input - NonFungible
Vault Recall NonFungibles Manifest Input - NonFungible
Vault Recall NonFungibles Output - NonFungible
Vault Take NonFungibles Manifest Input - NonFungible
Vault Take NonFungibles Output - NonFungible
Vault Unfreeze Input - NonFungible
Vault Unfreeze Manifest Input - NonFungible
Vault Unlock NonFungibles Manifest Input - NonFungible
Vault Unlock NonFungibles Output - Object
Module Id - Notes: This is to be deprecated, please use
ModuleId
instead - Origin
- We should always
UncheckedOrigin
in Scrypto, as the validation logic is heavy. Thus, this type alias is added. - Proof
Clone Manifest Input - Proof
Clone Output - Proof
Drop Output - Proof
GetAmount Manifest Input - Proof
GetAmount Output - Proof
GetResource Address Manifest Input - Proof
GetResource Address Output - Resource
Manager Burn Output - Resource
Manager Create Empty Bucket Manifest Input - Resource
Manager Create Empty Bucket Output - Resource
Manager Create Empty Vault Manifest Input - Resource
Manager Create Empty Vault Output - Resource
Manager Drop Empty Bucket Output - Resource
Manager GetAmount ForWithdrawal Manifest Input - Resource
Manager GetAmount ForWithdrawal Output - Resource
Manager GetResource Type Manifest Input - Resource
Manager GetResource Type Output - Resource
Manager GetTotal Supply Manifest Input - Resource
Manager GetTotal Supply Output - Resource
Manager Package Burn Output - Role
Assignment Create Manifest Input - Role
Assignment Create Output - Role
Assignment GetManifest Input - Role
Assignment GetOutput - Role
Assignment GetOwner Role Manifest Input - Role
Assignment GetOwner Role Output - Role
Assignment Lock Owner Manifest Input - Role
Assignment Lock Owner Output - Role
Assignment SetManifest Input - Role
Assignment SetOutput - Role
Assignment SetOwner Manifest Input - Role
Assignment SetOwner Output - Role
Definition - Schema
- Scrypto
Aggregator Type Data - Scrypto
Aggregator Type Kind - Scrypto
Decoder - Scrypto
Encoder - Scrypto
Local Type Data - Scrypto
Local Type Kind - Scrypto
Owned RawPayload - Scrypto
Owned RawValue - Scrypto
RawPayload - Scrypto
RawValue - Scrypto
Schema - Scrypto
Single Type Schema - Scrypto
Traverser - Scrypto
Type Aggregator - Scrypto
Type Collection Schema - Scrypto
Type Data - Scrypto
Type Kind - Scrypto
Type Validation - Scrypto
Value - Scrypto
Value Kind - Single
Type Schema Compatibility Parameters - Sorted
Key - Substate
Handle - Time
Precision - Type
Collection Schema Compatibility Parameters - Type
Hash - Url
- We should always
UncheckedUrl
in Scrypto, as the validation logic is heavy. Thus, this type alias is added. - Validator
Accepts Delegated Stake Manifest Input - Validator
Accepts Delegated Stake Output - Validator
Apply Emission Output - Validator
Apply Reward Output - Validator
Claim XrdOutput - Validator
Finish Unlock Owner Stake Units Manifest Input - Validator
Finish Unlock Owner Stake Units Output - Validator
GetProtocol Update Readiness Manifest Input - Validator
GetProtocol Update Readiness Output - Validator
GetRedemption Value Manifest Input - Validator
GetRedemption Value Output - Validator
Index - An index of a specific validator within the current validator set.
To be exact: a
ValidatorIndex
equal tok
references thek-th
element returned by the iterator of theIndexMap<ComponentAddress, Validator>
in this epoch’s active validator set (which is expected to be sorted by stake, descending). This uniquely identifies the validator, while being shorter thanComponentAddress
(we do care about the constant factor of the space taken byLeaderProposalHistory
under prolonged liveness break scenarios). - Validator
Lock Owner Stake Units Output - Validator
Register Manifest Input - Validator
Register Output - Validator
Signal Protocol Update Readiness Manifest Input - Validator
Signal Protocol Update Readiness Output - Validator
Stake AsOwner Output - Validator
Stake Output - Validator
Start Unlock Owner Stake Units Manifest Input - Validator
Start Unlock Owner Stake Units Output - Validator
Total Stake Unit Supply Manifest Input - Validator
Total Stake Unit Supply Output - Validator
Total Stake XrdAmount Manifest Input - Validator
Total Stake XrdAmount Output - Validator
Unregister Manifest Input - Validator
Unregister Output - Validator
Unstake Output - Validator
Update Accept Delegated Stake Manifest Input - Validator
Update Accept Delegated Stake Output - Validator
Update FeeManifest Input - Validator
Update FeeOutput - Validator
Update KeyManifest Input - Validator
Update KeyOutput - Vault
Burn Manifest Input - Vault
Burn Output - Vault
Freeze Manifest Input - Vault
Freeze Output - Vault
GetAmount Manifest Input - Vault
GetAmount Output - Vault
PutOutput - Vault
Recall Manifest Input - Vault
Recall Output - Vault
Take Advanced Manifest Input - Vault
Take Advanced Output - Vault
Take Manifest Input - Vault
Take Output - Vault
Unfreeze Manifest Input - Vault
Unfreeze Output - Versioned
Scrypto Schema - Worktop
Assert Contains Amount Manifest Input - Worktop
Assert Contains Amount Output - Worktop
Assert Contains Manifest Input - Worktop
Assert Contains NonFungibles Manifest Input - Worktop
Assert Contains NonFungibles Output - Worktop
Assert Contains Output - Worktop
Assert Resources Include Output - Worktop
Assert Resources Only Output - Worktop
Drain Manifest Input - Worktop
Drain Output - Worktop
Drop Output - Worktop
PutOutput - Worktop
Take AllManifest Input - Worktop
Take AllOutput - Worktop
Take Manifest Input - Worktop
Take NonFungibles Manifest Input - Worktop
Take NonFungibles Output - Worktop
Take Output
Attribute Macros§
- blueprint
- Declares a blueprint.
Derive Macros§
- AsRef
Str - Converts enum variants to
&'static str
. - AsStatic
Str - Basic
Categorize - Derive code that returns the value kind - specifically for Basic SBOR.
- Basic
Decode - Derive code that decodes this data structure from a byte array - specifically for Basic SBOR.
- Basic
Describe - Derive code that describes the type - specifically for Basic SBOR.
- Basic
Encode - Derive code that encodes this data structure - specifically for Basic SBOR.
- Basic
Sbor - A shortcut for
BasicCategorize
,BasicEncode
,BasicDecode
, andBasicDescribe
derives. - Basic
Sbor Assertion - A macro for outputting tests and marker traits to assert that a type has maintained its shape over time.
- Categorize
- Derive code that returns the value kind.
- Clone
- Derive macro generating an impl of the trait
Clone
. - Copy
- Derive macro generating an impl of the trait
Copy
. - Debug
- Derive macro generating an impl of the trait
Debug
. - Decode
- Derive code that decodes this data structure from a byte array.
- Default
- Derive macro generating an impl of the trait
Default
. - Describe
- Derive code that describes this type.
- Display
- Converts enum variants to strings.
- Encode
- Derive code that encodes this data structure
- Enum
Count - Add a constant
usize
equal to the number of variants. - Enum
Discriminants - Generate a new type with only the discriminant names.
- Enum
Iter - Creates a new type that iterates of the variants of an enum.
- Enum
Message - Add a verbose message to an enum variant.
- Enum
Property - Add custom properties to enum variants.
- Enum
String - Converts strings to enum variants based on their name.
- Enum
Variant Names - Implements
Strum::VariantNames
which adds an associated constantVARIANTS
which is an array of discriminant names. - Eq
- Derive macro generating an impl of the trait
Eq
. - From
Repr - Add a function to enum that allows accessing variants by its discriminant
- Into
Static Str - Implements
From<MyEnum> for &'static str
on an enum. - Manifest
Categorize - Derives code for categorizing a struct or enum with Manifest value model.
- Manifest
Decode - Derives code for decoding a struct or enum with Manifest value model.
- Manifest
Encode - Derives code for encoding a struct or enum with Manifest value model.
- Manifest
Sbor - A shortcut for
ManifestCategorize
,ManifestEncode
andManifestDecode
derives. - NonFungible
Data - Derive code that describe a non-fungible data structure.
- Ord
- Derive macro generating an impl of the trait
Ord
. The behavior of this macro is described in detail here. - Partial
Eq - Derive macro generating an impl of the trait
PartialEq
. The behavior of this macro is described in detail here. - Partial
Ord - Derive macro generating an impl of the trait
PartialOrd
. The behavior of this macro is described in detail here. - Permit
Sbor Attributes - An empty derive which exists solely to allow the helper “sbor” attribute to be used without generating a compile error.
- Sbor
- A shortcut for
Categorize
,Encode
,Decode
, andDescribe
derives. - Scrypto
Categorize - Derives code for categorizing a struct or enum with Scrypto value model.
- Scrypto
Decode - Derives code for decoding a struct or enum with Scrypto value model.
- Scrypto
Describe - Derives code for describing a struct or enum with Scrypto schema.
- Scrypto
Encode - Derives code for encoding a struct or enum with Scrypto value model.
- Scrypto
Event - Derive code for implementing the required logic to mark a type as being an event.
- Scrypto
Sbor - A shortcut for
ScryptoCategorize
,ScryptoEncode
,ScryptoDecode
, andScryptoDescribe
derives. - Scrypto
Sbor Assertion - A macro for outputting tests and marker traits to assert that a type has maintained its shape over time.
- ToString
- implements
std::string::ToString
on en enum