Expand description
Data types for supporting contract headers feature.
Structs§
- Contract
- Methods and type signatures supported by a contract.
- Contract
Hash - A newtype wrapping a
HashAddrwhich references aContractin the global state. - Contract
Package - Contract definition, metadata, and security container.
- Contract
Package Hash - A newtype wrapping a
HashAddrwhich references aContractPackagein the global state. - Contract
Version Key - Major element of
ProtocolVersioncombined withContractVersion. - 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.
- Named
Keys - A collection of named keys.
- TryFrom
Slice ForContract Hash Error - Associated error type of
TryFrom<&[u8]>forContractHash.
Enums§
- Contract
Package Status - A enum to determine the lock status of the contract package.
- Error
- Set of errors which may happen when working with contract headers.
- From
StrError - An error from parsing a formatted contract string
Constants§
- CONTRACT_
INITIAL_ VERSION - Within each discrete major
ProtocolVersion, contract version resets to this value. - CONTRACT_
VERSION_ KEY_ SERIALIZED_ LENGTH - Serialized length of
ContractVersionKey. - DEFAULT_
ENTRY_ POINT_ NAME - Default name for an entry point
- ENTRY_
POINT_ NAME_ INSTALL - Default name for an installer entry point
- UPGRADE_
ENTRY_ POINT_ NAME - Default name for an upgrade entry point
Type Aliases§
- Contract
Version - Automatically incremented value for a contract version within a major
ProtocolVersion. - Contract
Versions - Collection of contract versions.
- Disabled
Versions - Collection of disabled contract versions. The runtime will not permit disabled contract versions to be executed.
- Protocol
Version Major - Major element of
ProtocolVersionaContractVersionis compatible with.