This is a template for a Foundry project that uses 0xEssential's Cross-Chain Token Gating.
Review the Foundry project for development documentation.
The sample contract inherits and initializes EssentialERC2771Context and includes an example for writing a function that depends on verified NFT ownership from another EVM chain.
The test directory includes a utility contract for constructing signatures accepted by EssentialForwarder, and a test contract that demonstrates how to test the token gated function from the example contract.