Expand description

The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

The main components of this pallet are:

  • Pallet, which implements all of the dispatchable extrinsics of the pallet, among other public functions.
    • The subset of the functions that are dispatchable can be identified either in the dispatchables module or in the Call enum.
  • storage_types, which contains the list of all types that are representing a storage item. Otherwise, all storage items are listed among Type Definitions.
  • Config, which contains the configuration trait of this pallet.
  • Event and Error, which are listed among the Enums.

Re-exports§

  • pub use __tt_error_token_1 as tt_error_token;
  • pub use __tt_default_parts_7 as tt_default_parts;
  • pub use __tt_extra_parts_7 as tt_extra_parts;
  • pub use __tt_default_parts_v2_7 as tt_default_parts_v2;

Modules§

  • Auto-generated docs-only module listing all defined dispatchables for this pallet.
  • Auto-generated docs-only module listing all (public and private) defined storage types for this pallet.

Structs§

  • Struct that defines how to express the payment in a particular currency currency is defined by the Currency enum, which can be expressed as:
  • Can be used to configure the genesis state of this pallet.
  • The Pallet struct, the main type that implements traits and standalone functions within the pallet.
  • Stores the information to be able to issue a transact operation in another chain use an asset as fee payer.
  • Struct tindicating information about transact weights It allows to specify:

Enums§

  • Contains a variant per dispatchable extrinsic that this pallet has.
  • Enum defining the way to express a Currency.
  • An error that can occur while executing the mapping pallet’s logic.
  • The Event enum of this pallet
  • Enum defining the way to express a Currency.

Constants§

  • The amount of ref_time and proof_size to use for fee calculation if we are dealing with an Unlimited variant inside ‘overall_weight’ field of ‘TransactWeights’ struct.

Traits§

  • Configuration trait of this pallet.

Type Aliases§

  • Stores the fee per second for an asset in its reserve chain. This allows us to convert from weight to fee
  • Since we are using pallet-utility for account derivation (through AsDerivative), we need to provide an index for the account derivation. This storage item stores the index assigned for a given local account. These indices are usable as derivative in the relay chain
  • ModuleDeprecated
    Type alias to Pallet, to be used by construct_runtime.
  • Stores the indices of relay chain pallets
  • Stores the transact info of a Location. This defines how much extra weight we need to add when we want to transact in the destination chain and maximum amount of weight allowed by the destination chain