Skip to content
Verified contractPartialMIT

ScopedCallPolicy

Address0xdddcbf4e7f844a60fb29441d073dc7fd39df8b58
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.36

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.36+commit.8a079791
Language
solidity
Optimization
Yes, 1,000,000 runs
EVM version
osaka
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,445,932
Creation transaction
0xeeb0c71a35…df710f1f38

Read6

  • checkSignaturePolicy(bytes32,address,bytes32,bytes) → (uint256)
  • encodedPermissions(bytes32,bytes32,address) → (bytes)
  • isInitialized(address) → (bool)
  • isModuleType(uint256) → (bool)
  • status(bytes32,address) → (uint8)
  • usedIds(address) → (uint256)

Write3

  • checkUserOpPolicy(bytes32,tuple) → (uint256)
  • onInstall(bytes)
  • onUninstall(bytes)

Events2

  • ConfigurationInstalled(bytes32,address,tuple[])
  • ConfigurationRemoved(bytes32,address)

Errors9

  • AccountTargetNotAllowed()
  • AlreadyInitialized(address)
  • CallViolatesParamRule()
  • CallViolatesValueRule()
  • DelegateCallNotAllowed()
  • InvalidCallData()
  • InvalidCallType()
  • NotInitialized(address)
  • PermissionTooLarge()

ABI as JSON

[
  {
    "name": "AccountTargetNotAllowed",
    "type": "error",
    "inputs": []
  },
  {
    "name": "AlreadyInitialized",
    "type": "error",
    "inputs": [
      {
        "name": "smartAccount",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "CallViolatesParamRule",
    "type": "error",
    "inputs": []
  },
  {
    "name": "CallViolatesValueRule",
    "type": "error",
    "inputs": []
  },
  {
    "name": "DelegateCallNotAllowed",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidCallData",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidCallType",
    "type": "error",
    "inputs": []
  },
  {
    "name": "NotInitialized",
    "type": "error",
    "inputs": [
      {
        "name": "smartAccount",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "PermissionTooLarge",
    "type": "error",
    "inputs": []
  },
  {
    "name": "ConfigurationInstalled",
    "type": "event",
    "inputs": [
      {
        "name": "id",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "permissions",
        "type": "tuple[]",
        "indexed": false,
        "components": [
          {
            "name": "callType",
            "type": "bytes1",
            "internalType": "CallType"
          },
          {
            "name": "target",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "selector",
            "type": "bytes4",
            "internalType": "bytes4"
          },
          {
            "name": "valueLimit",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "rules",
            "type": "tuple[]",
            "components": [
              {
                "name": "condition",
                "type": "uint8",
                "internalType": "enum ParamCondition"
              },
              {
                "name": "offset",
                "type": "uint64",
                "internalType": "uint64"
              },
              {
                "name": "params",
                "type": "bytes32[]",
                "internalType": "bytes32[]"
              }
            ],
            "internalType": "struct ParamRule[]"
          }
        ],
        "internalType": "struct Permission[]"
      }
    ],
    "anonymous": false
  },
  {
    "name": "ConfigurationRemoved",
    "type": "event",
    "inputs": [
      {
        "name": "id",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "checkSignaturePolicy",
    "type": "function",
    "inputs": [
      {
        "name": "id",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "sender",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "hash",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "sig",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "checkUserOpPolicy",
    "type": "function",
    "inputs": [
      {
        "name": "id",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "userOp",
        "type": "tuple",
        "components": [
          {
            "name": "sender",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "initCode",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "callData",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "accountGasLimits",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "preVerificationGas",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "gasFees",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "paymasterAndData",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "signature",
            "type": "bytes",
            "internalType": "bytes"
          }
        ],
        "internalType": "struct PackedUserOperation"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "payable"
  },
  {
    "name": "encodedPermissions",
    "type": "function",
    "inputs": [
      {
        "name": "_id",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "_permissionHash",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "_owner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "encoded",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "isInitialized",
    "type": "function",
    "inputs": [
      {
        "name": "wallet",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "isModuleType",
    "type": "function",
    "inputs": [
      {
        "name": "id",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "name": "onInstall",
    "type": "function",
    "inputs": [
      {
        "name": "data",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "onUninstall",
    "type": "function",
    "inputs": [
      {
        "name": "data",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "status",
    "type": "function",
    "inputs": [
      {
        "name": "id",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint8",
        "internalType": "enum Status"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "usedIds",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.