Skip to main content

GPv2AllowListAuthentication Contract

The GPv2AllowListAuthentication contract manages solver authorization for CoW Protocol settlements through an allowlist-based access control system.

Architecture

The contract employs a two-tier access model:
  • Manager - Handles day-to-day solver administration
  • Proxy Owner - Top-level administrator with override capabilities

State Variables

Functions

initializeManager()

One-time initialization for proxy deployment:

setManager()

Transfers the manager role. Can be called by the current manager or proxy owner:

addSolver()

Grants solver authorization (manager only):

removeSolver()

Revokes solver authorization (manager only):

isSolver()

Checks solver authorization status (public view):

Access Control Modifiers

Events

Proxy Integration

The contract supports EIP-1967 compliant proxies, enabling:
  • Upgradeability of the authentication logic
  • Emergency governance override through proxy admin
  • Consistent address across upgrades
Last modified on March 4, 2026