What is The Compact?
mainThe Compact is an ownerless ERC6909 contract designed to facilitate the voluntary formation and mediation of reusable resource locks. It allows tokens (ERC20 or native) to be committed to a lock, enabling them to be spent in exchange for performing actions across asynchronous environments. Once conditions are met, these tokens can be claimed via a compact through a specified arbiter.
Key actors include:
- Depositor: The token holder who enters a resource lock.
- Sponsor: The owner of the ERC6909 token representing a resource lock who creates a compact.
- Arbiter: The entity responsible for processing claims after attesting that compact conditions are met.
- Allocator: An entity assigned by the depositor to provide authorization for lock operations (transfers, withdrawals, or sponsoring compacts) and protect claimants from double-spends.
- Claimant: An entity that provides proof of meeting compact conditions to claim tokens.
- Emissary: An optional fallback signer assigned by a sponsor to authorize claims.