> For the complete documentation index, see [llms.txt](https://docs.allstake.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.allstake.org/technical-architecture/modules.md).

# Modules

Here we introduce the system modules of Allstake, by illustrating how Allstake works between NEAR and Solana.

**Allstake Hub**, living on NEAR Protocol, is built with the modules below:&#x20;

1. **Strategy Manager**: track the deposit and stake states of LST strategies across multiple chains like NEAR and Solana
2. **Delegation Manager**: register operator to AVS/App chain; allow delegation from restakers to operators
3. **AVS/App chain Directory**: register AVS/App chain by AVS/App chain developers
4. **Slasher**: slash operators for under-performance according to network's performance evaluation criteria
5. **Payment Coordinator**: distribute rewards to operators and restakers based on operator performance and delegation amount

**Client Contracts on Solana**, enable native restaking with LSTs on Solana:

1. **Strategy Manager**: accept deposit and stake native LSTs (e.g. mSOL) on Solana.
2. **Delegation Manager**: allow restaked LSTs to be delegated to operators registered on Allstake Hub;
3. **Operator Manager**: manage slashing and reward distribution to delegators on Solana;

**Cross-Chain Interoperability,** powered by Chain Signature and Light Clients:&#x20;

1. The states of Strategy Manager and Delegation Manager on Solana are relayed to **Light Clients** on NEAR, and are accessible with **Connector** contracts on NEAR.
2. Powered by [**Chain Signature**](https://docs.near.org/build/chain-abstraction/chain-signatures), Allstake Hub can synchronize AVSs/App chains and operators registration states to Solana, and slash and reward restakers on Solana in real time.&#x20;

**AVS/App chain**, built with middleware and SDKs provided by Allstake, can register on Allstake Hub. The **Stake Registry** can read delegation shares from both NEAR and Solana Delegation Managers, and secure AVSs with restaked assets from both NEAR and Solana.

<figure><img src="/files/rPc5islWkBz8tllLGSiN" alt=""><figcaption></figcaption></figure>
