Skip to main content

Overview

StaticAddressCondition restricts an action to a single designated address. Unlike PayerCondition and ReceiverCondition (which read from payment data), this condition checks against an immutable address set at deployment. Type: Per-deployment (deploy one per designated address via factory)

Logic

When to Use

Example

Deploy via StaticAddressConditionFactory:

Gas

Cost: Minimal. view function with a single immutable read (compiled as a constant in bytecode, not a storage read).

Next Steps

Factories

Deploy StaticAddressCondition via factory.

Combinators

Compose with other conditions using And/Or/Not.