Periphery Gateway
An in-depth view of Periphery components
This document assumes a prerequisite understanding of the Skate Architecture, which can be found here
Design of the Periphery Gateway
Periphery gateways are those contracts that end user interact with, they hold arbitrary logic and reference kernel for the shared storage. All periphery contracts use the following 2 components:
-
Skate Gateway
This contract defines the interface for all executors to settle user intents, provided the preconfirmed calldata has been signed by a relayer. It:- Defines the relayer, an authority from AVS that attests to and vouches for the preconfirmation results.
- Performs external calls to arbitrary periphery contracts
- Keeps records of executed tasks, ensuring eventual consistency with the kernel
-
Skate Periphery contract
The base contract that all periphery implementations must inherit from. It must pre-register the gateway address and restrict state mutation authority to this address.
An overview of the flow from avs to periphery is shown in the diagram below:
Periphery Settlement Diagram
Similar to kernel, a synced Executor Registry (with guaranteed Consistency and Partition tolerence) will live on Skate to register these actors, who are chain native addresses, with the capability to process user intents. For in-depth details, refer to execution network