OperatorRegistry contract
Last updated
Last updated
Here is the translation of the provided information:
Operator - an account that can perform entry and exit operations in DEFII on behalf of a user. To allow an operator to handle deposits, the user must grant permission for the operator to manage their funds. The OperatorRegistry smart contract stores all user approvals. This contract is also used to check access by contracts in the SHIFT ecosystem.
OperatorRegistry uses to ensure that a user's permissions are granted on a single network, meaning the user does not need to approve the operator on different networks.
Access can be granted to a specific smart contract or to all contracts in the ecosystem.
Constant indicating that the user has granted the operator access to all smart contracts in the ecosystem.
Selector for the function that grants access to the operator.
Domain separator for permits. For additional information, see .
Domain separator for approvals on actions on a specific chain.
Mapping with nonces. Nonces are provided for replay protection.
Grants the operator access to perform actions on behalf of the user on a specific contract or on all contracts in the SHIFT ecosystem.
operator
address
Operator address
forAddress
address
Address of the contract for which access is granted
Similar to approveOperator but using permit.
user
address
User granting access
operator
address
Operator's address
forAddress
address
Address of the contract for which access is granted
chainId
uint256
Network ID of the contract
v
uint8
Permit V parameter
r
bytes32
Permit R parameter
s
bytes32
Permit S parameter
Revokes access from the operator.
operator
address
Operator from whom msg.sender is revoking access
forAddress
address
Address of the smart contract for which access is restricted
Checks if the operator has access to a specific smart contract.