[−][src]Crate casperlabs_types
Types used to allow creation of Wasm contracts and tests for use on the CasperLabs Platform.
no_std
By default, the library is no_std
, however you can enable full std
functionality by enabling
the crate's std
feature.
Re-exports
pub use contracts::Contract; |
pub use contracts::ContractPackage; |
pub use contracts::ContractVersion; |
pub use contracts::ContractVersionKey; |
pub use contracts::EntryPoint; |
pub use contracts::EntryPointAccess; |
pub use contracts::EntryPointType; |
pub use contracts::EntryPoints; |
pub use contracts::Group; |
pub use contracts::Parameter; |
pub use runtime_args::NamedArg; |
pub use runtime_args::RuntimeArgs; |
pub use system_contract_type::SystemContractType; |
Modules
account | Contains types and constants associated with user accounts. |
api_error | Contains |
bytesrepr | Contains serialization and deserialization code for types used throughout the system. |
contracts | Data types for supporting contract headers feature. |
runtime_args | Home of RuntimeArgs for calling contracts |
system_contract_errors | Home of error types returned by system contracts. |
system_contract_type | Home of system contract type enum. |
Macros
runtime_args | Macro that makes it easier to construct named arguments. |
Structs
AccessRights | A struct which behaves like a set of bitflags to define access rights associated with a
|
BlockTime | A newtype wrapping a |
CLTypeMismatch | Error while converting a |
CLValue | A CasperLabs value, i.e. a value which can be stored and manipulated by smart contracts. |
ContractWasm | A container for contract's WASM bytes. |
ProtocolVersion | A newtype wrapping a |
SemVer | A struct for semantic versioning. |
U128 | Little-endian large integer type |
U256 | Little-endian large integer type |
U512 | Little-endian large integer type |
URef | Represents an unforgeable reference, containing an address in the network's global storage and
the |
Enums
ApiError | Errors which can be encountered while running a smart contract. |
CLType | CasperLabs types, i.e. types which can be stored and manipulated by smart contracts. |
CLValueError | Error relating to |
Key | The type under which data (e.g. |
Phase | The phase in which a given contract is executing. |
TransferredTo | The result of a successful transfer between purses. |
UIntParseError | |
VersionCheckResult | The result of |
Constants
ACCESS_RIGHTS_SERIALIZED_LENGTH | The number of bytes in a serialized |
BLAKE2B_DIGEST_LENGTH | The number of bytes in a Blake2b hash |
BLOCKTIME_SERIALIZED_LENGTH | The number of bytes in a serialized |
KEY_HASH_LENGTH | The number of bytes in a |
PHASE_SERIALIZED_LENGTH | The number of bytes in a serialized |
SEM_VER_SERIALIZED_LENGTH | Length of SemVer when serialized |
UREF_ADDR_LENGTH | The number of bytes in a |
UREF_SERIALIZED_LENGTH | The number of bytes in a serialized |
Traits
CLTyped | A type which can be described as a |
Functions
named_key_type | Returns the |
Type Definitions
ContractHash | An alias for |
ContractPackageHash | An alias for |
ContractWasmHash | An alias for |
HashAddr | An alias for |
TransferResult | The result of an attempt to transfer between purses. |