Expand description

HookPoint Pallet

The HookPoint pallet provides a mechanism to manage, register, and execute hook points in the runtime. These hook points act as predefined points in code execution where custom logic (in the form of callbacks) can be injected, allowing for extensibility and custom behaviors.

The primary components of this pallet are:

  • GlobalCallbacks: A storage map that holds global callbacks registered for a specific owner. These callbacks act as default behavior when no specific callback is registered for an event.
  • SpecificCallbacks: A double map storage that holds specific callbacks for particular events. These callbacks take precedence over global callbacks.
  • Registration Functions: Allows users to register global or specific callbacks.
  • Execution Function: Allows the execution of a hook point, invoking the associated callback.

This pallet interacts closely with the pallet_contracts to manage and execute contracts as callbacks.

Re-exports

Modules

  • The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.
  • Autogenerated weights for pallet_hookpoints