Expand description
A module providing functionality for defining the Casper Contract Schema.
It includes traits for defining entrypoints, events, custom types, and errors, as well as functions for creating various schema elements such as arguments, entrypoints, struct members, enum variants, custom types, events, and errors.
Re-exports§
pub use casper_contract_schema;
Traits§
- Trait for types that can be represented as a NamedCLType.
- Represents a custom element in the schema.
- Trait for defining custom types in a schema.
- Trait representing schema entrypoints.
- A trait for defining schema user errors.
- Trait representing schema events.
Functions§
- Creates a new argument.
- Creates a new CustomType of type enum.
- Creates a new CustomType of type struct.
- Creates a new entrypoint.
- Creates a new enum variant of type NamedCLType::Custom.
- Creates a new enum variant.
- Creates a new enum variant of type NamedCLType::Unit.
- Creates a new UserError.
- Creates a new Event.
- Finds the path to the schema file for the given contract name.
- Creates an instance of ContractSchema.
- Creates a new struct member.