Module addressable_entity

Source
Expand description

Data types for supporting contract headers feature.

Re-exports§

pub use self::action_thresholds::ActionThresholds;
pub use self::associated_keys::AssociatedKeys;

Modules§

action_thresholds
This module contains types and functions for managing action thresholds.
associated_keys
This module contains types and functions for working with keys associated with an account.

Structs§

AddressableEntity
Methods and type signatures supported by a contract.
AddressableEntityHash
A newtype wrapping a HashAddr which references an AddressableEntity in the global state.
EntityEntryPoint
Type signature of a method. Order of arguments matter since can be referenced by index as well as name.
EntryPoints
Collection of named entry points.
MessageTopics
Collection of named message topics.
NamedKeyAddr
A NamedKey address.
NamedKeyValue
A NamedKey value.
Parameter
Parameter to a method
TryFromSliceForAccountHashError
Associated error type of TryFrom<&[u8]> for AccountHash.
TryFromSliceForContractHashError
Associated error type of TryFrom<&[u8]> for ContractHash.
Weight
The weight associated with public keys in an account’s associated keys.

Enums§

ActionType
The various types of action which can be performed in the context of a given account.
ContractRuntimeTag
EntityAddr
The address for an AddressableEntity which contains the 32 bytes and tagging information.
EntityKind
The type of Package.
EntityKindTag
Tag for the variants of EntityKind.
EntryPointAccess
Enum describing the possible access control options for a contract entry point (method).
EntryPointAddr
The entry point address.
EntryPointPayment
An enum specifying who pays for the invocation and execution of the entrypoint.
EntryPointType
Context of method execution
EntryPointValue
The encaspulated representation of entrypoints.
Error
Set of errors which may happen when working with contract headers.
FromAccountHashStrError
Error returned when decoding an AccountHash from a formatted string.
FromStrError
An error from parsing a formatted contract string
MessageTopicError
Errors that can occur while adding a new topic.

Constants§

ACCOUNT_ENTITY_PREFIX
The prefix applied to the hex-encoded Account to produce a formatted string representation.
ADDRESSABLE_ENTITY_STRING_PREFIX
The prefix applied to the hex-encoded Addressable Entity to produce a formatted string representation.
CONTRACT_ENTITY_PREFIX
The prefix applied to the hex-encoded Smart contract to produce a formatted string representation.
DEFAULT_ENTRY_POINT_NAME
Default name for an entry point.
ENTITY_PREFIX
The prefix applied to the hex-encoded Entity to produce a formatted string representation.
MAX_GROUPS
Maximum number of distinct user groups.
MAX_TOTAL_UREFS
Maximum number of URefs which can be assigned across all user groups.
NAMED_KEY_PREFIX
The prefix applied to the hex-encoded Named Key to produce a formatted string representation.
SYSTEM_ENTITY_PREFIX
The prefix applied to the hex-encoded System entity account or contract to produce a formatted string representation.
WEIGHT_SERIALIZED_LENGTH
The number of bytes in a serialized Weight.

Type Aliases§

ContractAddress
The address for an AddressableEntity which contains the 32 bytes and tagging information.
Parameters
Collection of entry point parameters.