Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2.0 KiB
CallContextChecker
Call context checker mixin.
Custom Errors
UnauthorizedCallContext()
error UnauthorizedCallContext()
The call is from an unauthorized call context.
Call Context Checks
A proxy call can be either via a delegatecall to an implementation,
or a 7702 call on an authority that points to a delegation.
_onEIP7702Authority()
function _onEIP7702Authority()
internal
view
virtual
returns (bool result)
Returns whether the current call context is on a EIP7702 authority
(i.e. externally owned account).
_selfImplementation()
function _selfImplementation() internal view virtual returns (address)
Returns the implementation of this contract.
_onImplementation()
function _onImplementation() internal view virtual returns (bool)
Returns whether the current call context is on the implementation itself.
_checkOnlyEIP7702Authority()
function _checkOnlyEIP7702Authority() internal view virtual
Requires that the current call context is performed via a EIP7702 authority.
_checkOnlyProxy()
function _checkOnlyProxy() internal view virtual
Requires that the current call context is performed via a proxy.
_checkNotDelegated()
function _checkNotDelegated() internal view virtual
Requires that the current call context is NOT performed via a proxy.
This is the opposite of checkOnlyProxy.
onlyEIP7702Authority()
modifier onlyEIP7702Authority() virtual
Requires that the current call context is performed via a EIP7702 authority.
onlyProxy()
modifier onlyProxy() virtual
Requires that the current call context is performed via a proxy.
notDelegated()
modifier notDelegated() virtual
Requires that the current call context is NOT performed via a proxy.
This is the opposite of onlyProxy.