Module casper_types::contracts

source ·
Expand description

Data types for supporting contract headers feature.

Structs

  • Methods and type signatures supported by a contract.
  • A newtype wrapping a HashAddr which references a Contract in the global state.
  • Contract definition, metadata, and security container.
  • A newtype wrapping a HashAddr which references a ContractPackage in the global state.
  • Major element of ProtocolVersion combined with ContractVersion.
  • Type signature of a method. Order of arguments matter since can be referenced by index as well as name.
  • Collection of named entry points
  • A (labelled) “user group”. Each method of a versioned contract may be associated with one or more user groups which are allowed to call it.
  • Parameter to a method
  • Associated error type of TryFrom<&[u8]> for ContractHash.

Enums

  • A enum to determine the lock status of the contract package.
  • Enum describing the possible access control options for a contract entry point (method).
  • Context of method execution
  • Set of errors which may happen when working with contract headers.
  • An error from parsing a formatted contract string

Constants

Type Definitions