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§
- Addressable
Entity - Methods and type signatures supported by a contract.
- Addressable
Entity Hash - A newtype wrapping a
HashAddrwhich references anAddressableEntityin the global state. - Entity
Entry Point - Type signature of a method. Order of arguments matter since can be referenced by index as well as name.
- Entry
Points - Collection of named entry points.
- Message
Topics - Collection of named message topics.
- Named
KeyAddr - A NamedKey address.
- Named
KeyValue - A NamedKey value.
- Parameter
- Parameter to a method
- TryFrom
Slice ForAccount Hash Error - Associated error type of
TryFrom<&[u8]>forAccountHash. - TryFrom
Slice ForContract Hash Error - Associated error type of
TryFrom<&[u8]>forContractHash. - Weight
- The weight associated with public keys in an account’s associated keys.
Enums§
- Action
Type - The various types of action which can be performed in the context of a given account.
- Contract
Runtime Tag - Entity
Addr - The address for an AddressableEntity which contains the 32 bytes and tagging information.
- Entity
Kind - The type of Package.
- Entity
Kind Tag - Tag for the variants of
EntityKind. - Entry
Point Access - Enum describing the possible access control options for a contract entry point (method).
- Entry
Point Addr - The entry point address.
- Entry
Point Payment - An enum specifying who pays for the invocation and execution of the entrypoint.
- Entry
Point Type - Context of method execution
- Entry
Point Value - The encaspulated representation of entrypoints.
- Error
- Set of errors which may happen when working with contract headers.
- From
Account Hash StrError - Error returned when decoding an
AccountHashfrom a formatted string. - From
StrError - An error from parsing a formatted contract string
- Message
Topic Error - Errors that can occur while adding a new topic.
Constants§
- ACCOUNT_
ENTITY_ PREFIX - The prefix applied to the hex-encoded
Accountto produce a formatted string representation. - ADDRESSABLE_
ENTITY_ STRING_ PREFIX - The prefix applied to the hex-encoded
Addressable Entityto produce a formatted string representation. - CONTRACT_
ENTITY_ PREFIX - The prefix applied to the hex-encoded
Smart contractto produce a formatted string representation. - DEFAULT_
ENTRY_ POINT_ NAME - Default name for an entry point.
- ENTITY_
PREFIX - The prefix applied to the hex-encoded
Entityto 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 Keyto produce a formatted string representation. - SYSTEM_
ENTITY_ PREFIX - The prefix applied to the hex-encoded
System entity account or contractto produce a formatted string representation. - WEIGHT_
SERIALIZED_ LENGTH - The number of bytes in a serialized
Weight.
Type Aliases§
- Contract
Address - The address for an AddressableEntity which contains the 32 bytes and tagging information.
- Parameters
- Collection of entry point parameters.