[
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "address",
                "name": "previousAdmin",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "address",
                "name": "newAdmin",
                "type": "address"
            }
        ],
        "name": "AdminChanged",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "address",
                "name": "beacon",
                "type": "address"
            }
        ],
        "name": "BeaconUpgraded",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "bool",
                "name": "canEdit",
                "type": "bool"
            },
            {
                "indexed": false,
                "internalType": "bool",
                "name": "canDelete",
                "type": "bool"
            },
            {
                "indexed": false,
                "internalType": "uint256",
                "name": "publishExpiration",
                "type": "uint256"
            },
            {
                "indexed": false,
                "internalType": "uint256",
                "name": "subscribeExpiration",
                "type": "uint256"
            },
            {
                "indexed": false,
                "internalType": "bool",
                "name": "canGrant",
                "type": "bool"
            }
        ],
        "name": "PermissionUpdated",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            },
            {
                "indexed": true,
                "internalType": "bytes32",
                "name": "previousAdminRole",
                "type": "bytes32"
            },
            {
                "indexed": true,
                "internalType": "bytes32",
                "name": "newAdminRole",
                "type": "bytes32"
            }
        ],
        "name": "RoleAdminChanged",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "account",
                "type": "address"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "sender",
                "type": "address"
            }
        ],
        "name": "RoleGranted",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "account",
                "type": "address"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "sender",
                "type": "address"
            }
        ],
        "name": "RoleRevoked",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "string",
                "name": "id",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "string",
                "name": "metadata",
                "type": "string"
            }
        ],
        "name": "StreamCreated",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "string",
                "name": "id",
                "type": "string"
            }
        ],
        "name": "StreamDeleted",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "string",
                "name": "id",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "string",
                "name": "metadata",
                "type": "string"
            }
        ],
        "name": "StreamUpdated",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "address",
                "name": "implementation",
                "type": "address"
            }
        ],
        "name": "Upgraded",
        "type": "event"
    },
    {
        "inputs": [],
        "name": "DEFAULT_ADMIN_ROLE",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "ownerAddress",
                "type": "address"
            },
            {
                "internalType": "string",
                "name": "ensName",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "streamIdPath",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "metadataJsonString",
                "type": "string"
            }
        ],
        "name": "ENScreateStreamCallback",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "MAX_INT",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "TRUSTED_ROLE",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "_address",
                "type": "address"
            }
        ],
        "name": "addressToString",
        "outputs": [
            {
                "internalType": "string",
                "name": "",
                "type": "string"
            }
        ],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string[]",
                "name": "streamIdPaths",
                "type": "string[]"
            },
            {
                "internalType": "string[]",
                "name": "metadataJsonStrings",
                "type": "string[]"
            },
            {
                "internalType": "address[][]",
                "name": "users",
                "type": "address[][]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission[][]",
                "name": "permissions",
                "type": "tuple[][]"
            }
        ],
        "name": "createMultipleStreamsWithPermissions",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamIdPath",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "metadataJsonString",
                "type": "string"
            }
        ],
        "name": "createStream",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "ensName",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "streamIdPath",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "metadataJsonString",
                "type": "string"
            }
        ],
        "name": "createStreamWithENS",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamIdPath",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "metadataJsonString",
                "type": "string"
            },
            {
                "internalType": "address[]",
                "name": "users",
                "type": "address[]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission[]",
                "name": "permissions",
                "type": "tuple[]"
            }
        ],
        "name": "createStreamWithPermissions",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            }
        ],
        "name": "deleteStream",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            }
        ],
        "name": "exists",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            }
        ],
        "name": "getAddressKey",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            }
        ],
        "name": "getDirectPermissionsForUser",
        "outputs": [
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission",
                "name": "permission",
                "type": "tuple"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            }
        ],
        "name": "getPermissionsForUser",
        "outputs": [
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission",
                "name": "permission",
                "type": "tuple"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            }
        ],
        "name": "getRoleAdmin",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            }
        ],
        "name": "getStreamMetadata",
        "outputs": [
            {
                "internalType": "string",
                "name": "des",
                "type": "string"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getTrustedRole",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "grantPermission",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "grantPublicPermission",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            },
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            }
        ],
        "name": "grantRole",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "hasDirectPermission",
        "outputs": [
            {
                "internalType": "bool",
                "name": "userHasPermission",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "hasPermission",
        "outputs": [
            {
                "internalType": "bool",
                "name": "userHasPermission",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "hasPublicPermission",
        "outputs": [
            {
                "internalType": "bool",
                "name": "userHasPermission",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            },
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            }
        ],
        "name": "hasRole",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "ensCacheAddr",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "trustedForwarderAddress",
                "type": "address"
            }
        ],
        "name": "initialize",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "forwarder",
                "type": "address"
            }
        ],
        "name": "isTrustedForwarder",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            },
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            }
        ],
        "name": "renounceRole",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            }
        ],
        "name": "revokeAllPermissionsForUser",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "revokePermission",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "revokePublicPermission",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "role",
                "type": "bytes32"
            },
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            }
        ],
        "name": "revokeRole",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "ensCacheAddr",
                "type": "address"
            }
        ],
        "name": "setEnsCache",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            },
            {
                "internalType": "uint256",
                "name": "expirationTime",
                "type": "uint256"
            }
        ],
        "name": "setExpirationTime",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address[]",
                "name": "users",
                "type": "address[]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission[]",
                "name": "permissions",
                "type": "tuple[]"
            }
        ],
        "name": "setPermissions",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "canEdit",
                "type": "bool"
            },
            {
                "internalType": "bool",
                "name": "deletePerm",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "publishExpiration",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "subscribeExpiration",
                "type": "uint256"
            },
            {
                "internalType": "bool",
                "name": "canGrant",
                "type": "bool"
            }
        ],
        "name": "setPermissionsForUser",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string[]",
                "name": "streamIds",
                "type": "string[]"
            },
            {
                "internalType": "address[][]",
                "name": "users",
                "type": "address[][]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission[][]",
                "name": "permissions",
                "type": "tuple[][]"
            }
        ],
        "name": "setPermissionsMultipleStreams",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string[]",
                "name": "streamIds",
                "type": "string[]"
            },
            {
                "internalType": "address[][]",
                "name": "users",
                "type": "address[][]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission[][]",
                "name": "permissions",
                "type": "tuple[][]"
            }
        ],
        "name": "setPermissionsMultipleStreans",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "uint256",
                "name": "publishExpiration",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "subscribeExpiration",
                "type": "uint256"
            }
        ],
        "name": "setPublicPermission",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "forwarder",
                "type": "address"
            }
        ],
        "name": "setTrustedForwarder",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "",
                "type": "string"
            }
        ],
        "name": "streamIdToMetadata",
        "outputs": [
            {
                "internalType": "string",
                "name": "",
                "type": "string"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "",
                "type": "string"
            },
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "name": "streamIdToPermissions",
        "outputs": [
            {
                "internalType": "bool",
                "name": "canEdit",
                "type": "bool"
            },
            {
                "internalType": "bool",
                "name": "canDelete",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "publishExpiration",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "subscribeExpiration",
                "type": "uint256"
            },
            {
                "internalType": "bool",
                "name": "canGrant",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes4",
                "name": "interfaceId",
                "type": "bytes4"
            }
        ],
        "name": "supportsInterface",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            }
        ],
        "name": "transferAllPermissionsToUser",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "enum StreamRegistryV4.PermissionType",
                "name": "permissionType",
                "type": "uint8"
            }
        ],
        "name": "transferPermissionToUser",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string[]",
                "name": "streamIds",
                "type": "string[]"
            },
            {
                "internalType": "string[]",
                "name": "metadatas",
                "type": "string[]"
            }
        ],
        "name": "trustedCreateStreams",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string[]",
                "name": "streamids",
                "type": "string[]"
            },
            {
                "internalType": "address[]",
                "name": "users",
                "type": "address[]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission[]",
                "name": "permissions",
                "type": "tuple[]"
            }
        ],
        "name": "trustedSetPermissions",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "canEdit",
                "type": "bool"
            },
            {
                "internalType": "bool",
                "name": "deletePerm",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "publishExpiration",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "subscribeExpiration",
                "type": "uint256"
            },
            {
                "internalType": "bool",
                "name": "canGrant",
                "type": "bool"
            }
        ],
        "name": "trustedSetPermissionsForUser",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "metadata",
                "type": "string"
            }
        ],
        "name": "trustedSetStreamMetadata",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "metadata",
                "type": "string"
            },
            {
                "internalType": "address",
                "name": "user",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "canEdit",
                "type": "bool"
            },
            {
                "internalType": "bool",
                "name": "deletePerm",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "publishExpiration",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "subscribeExpiration",
                "type": "uint256"
            },
            {
                "internalType": "bool",
                "name": "canGrant",
                "type": "bool"
            }
        ],
        "name": "trustedSetStreamWithPermission",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string[]",
                "name": "streamids",
                "type": "string[]"
            },
            {
                "internalType": "address[]",
                "name": "users",
                "type": "address[]"
            },
            {
                "internalType": "string[]",
                "name": "metadatas",
                "type": "string[]"
            },
            {
                "components": [
                    {
                        "internalType": "bool",
                        "name": "canEdit",
                        "type": "bool"
                    },
                    {
                        "internalType": "bool",
                        "name": "canDelete",
                        "type": "bool"
                    },
                    {
                        "internalType": "uint256",
                        "name": "publishExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "subscribeExpiration",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bool",
                        "name": "canGrant",
                        "type": "bool"
                    }
                ],
                "internalType": "struct StreamRegistryV4.Permission[]",
                "name": "permissions",
                "type": "tuple[]"
            }
        ],
        "name": "trustedSetStreams",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "string",
                "name": "streamId",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "metadata",
                "type": "string"
            }
        ],
        "name": "updateStreamMetadata",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "newImplementation",
                "type": "address"
            }
        ],
        "name": "upgradeTo",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "newImplementation",
                "type": "address"
            },
            {
                "internalType": "bytes",
                "name": "data",
                "type": "bytes"
            }
        ],
        "name": "upgradeToAndCall",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    }
]
