Overview

EscrowLayer is an upgradeable escrow contract built for ERC‑20 tokens that implement EIP‑2612. Deals are funded via a single createDeal call that first invokes the token’s permit function and then transfers tokens into escrow. The contract calculates platform and service fees, supports optional time‑locked releases or immediate completion, and allows dispute resolution through a designated proxy. Fee balances can be withdrawn by the owner. Experimental cross‑bridge files exist in the repository but are not part of the deployed logic yet.

Repository Layout

Github Repo: https://github.com/Escrow-Layer/Escrow-Layer-Contracts.git

Path Description
contracts/ Solidity sources. Includes Escrow.sol, EscrowStruct.sol, TestToken.sol, plus commented bridge experiments.
scripts/ Hardhat deployment and upgrade scripts.
test/ Default Hardhat test scaffold (Lock.ts).
contracts/bridge/ Prototype bridging contracts (CrossBridgeManger.sol, EscrowWithCrossBridge.sol) for future multi-bridge support.
README.md High‑level project description and usage instructions.

Core Contracts

EscrowStruct.sol

Base contract that centralizes storage, data types, and shared modifiers for the Escrow system.

Events

State