OperatorFiltererLib

OperatorFiltererLib

Contains functionality to implement operator filtering.

OPERATOR_FILTER_REGISTRY

contract IOperatorFilterRegistry OPERATOR_FILTER_REGISTRY

CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS

address CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS

CANONICAL_CORI_SUBSCRIPTION

address CANONICAL_CORI_SUBSCRIPTION

_checkFilterOperator

function _checkFilterOperator(address operator) internal view

A helper function to check if the operator is allowed.

_init

function _init() internal

Initializes with the default registry and subscribes.

_register

function _register(address subscriptionOrRegistrantToCopy, bool subscribe) internal

Registers the contract with the registry. This must be called from the proxy.

Parameters

Name
Type
Description

subscriptionOrRegistrantToCopy

address

Provide a valid subscription address to copy the subscriptions from or the 0 address.

subscribe

bool

registers and subscribes

_unregister

function _unregister() internal

Unregisters the contract from the registry.

Was this helpful?