Expand description

Definitions and utilities for ink! smart contract static reflection.

Note

The ink! smart contract codegen uses these reflections in order to structure, solidify and manage the generated code.

However, the definitions in this module might be useful to ink! smart contract authors as well as they allow to inspect compile time information about the ink! smart contract at hand.

Structs

Type that is guaranteed by ink! to implement all ink! trait definitions.

Enums

An error that can occur during dispatch of ink! dispatchables.

Traits

Reflects the number of dispatchable ink! messages and constructors respectively.

Generated type used to decode all dispatchable ink! constructors of the ink! smart contract.

Reflects the sequence of all dispatchable ink! constructors of the ink! smart contract.

Reflects the sequence of all dispatchable ink! messages of the ink! smart contract.

Stores the used host environment type of the ink! smart contract.

Defines a base event type for the contract.

Generated type used to decode all dispatchable ink! messages of the ink! smart contract.

Stores the name of the ink! smart contract.

Refers to the generated ink! smart contract reference type.

Decodes an ink! dispatch input into a known selector and its expected parameters.

Stores various information of the respective dispatchable ink! constructor.

Stores various information of the respective dispatchable ink! message.

Starts the execution of the respective ink! message or constructor call.

Captures info about an ink! trait definition.

Stores information for every ink! trait message of an ink! trait definition.