[
    {
        "inputs": [],
        "name": "VolatilityOracle__ArrayLengthMismatch",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "int256",
                "name": "value",
                "type": "int256"
            }
        ],
        "name": "VolatilityOracle__OutOfBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "VolatilityOracle__SpotIsZero",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "VolatilityOracle__StrikeIsZero",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "VolatilityOracle__TimeToMaturityIsZero",
        "type": "error"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "address",
                "name": "token",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "bytes32",
                "name": "tau",
                "type": "bytes32"
            },
            {
                "indexed": false,
                "internalType": "bytes32",
                "name": "theta",
                "type": "bytes32"
            },
            {
                "indexed": false,
                "internalType": "bytes32",
                "name": "psi",
                "type": "bytes32"
            },
            {
                "indexed": false,
                "internalType": "bytes32",
                "name": "rho",
                "type": "bytes32"
            }
        ],
        "name": "UpdateParameters",
        "type": "event"
    },
    {
        "inputs": [
            {
                "internalType": "int256[5]",
                "name": "params",
                "type": "int256[5]"
            }
        ],
        "name": "formatParams",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "result",
                "type": "bytes32"
            }
        ],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "token",
                "type": "address"
            }
        ],
        "name": "getParams",
        "outputs": [
            {
                "components": [
                    {
                        "internalType": "uint256",
                        "name": "updatedAt",
                        "type": "uint256"
                    },
                    {
                        "internalType": "bytes32",
                        "name": "tau",
                        "type": "bytes32"
                    },
                    {
                        "internalType": "bytes32",
                        "name": "theta",
                        "type": "bytes32"
                    },
                    {
                        "internalType": "bytes32",
                        "name": "psi",
                        "type": "bytes32"
                    },
                    {
                        "internalType": "bytes32",
                        "name": "rho",
                        "type": "bytes32"
                    }
                ],
                "internalType": "struct VolatilityOracleStorage.Update",
                "name": "",
                "type": "tuple"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "token",
                "type": "address"
            }
        ],
        "name": "getParamsUnpacked",
        "outputs": [
            {
                "components": [
                    {
                        "internalType": "int256[5]",
                        "name": "tau",
                        "type": "int256[5]"
                    },
                    {
                        "internalType": "int256[5]",
                        "name": "theta",
                        "type": "int256[5]"
                    },
                    {
                        "internalType": "int256[5]",
                        "name": "psi",
                        "type": "int256[5]"
                    },
                    {
                        "internalType": "int256[5]",
                        "name": "rho",
                        "type": "int256[5]"
                    }
                ],
                "internalType": "struct VolatilityOracleStorage.Params",
                "name": "",
                "type": "tuple"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getRiskFreeRate",
        "outputs": [
            {
                "internalType": "UD60x18",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "UD60x18",
                "name": "spot",
                "type": "uint256"
            },
            {
                "internalType": "UD60x18",
                "name": "strike",
                "type": "uint256"
            },
            {
                "internalType": "UD60x18",
                "name": "timeToMaturity",
                "type": "uint256"
            }
        ],
        "name": "getVolatility",
        "outputs": [
            {
                "internalType": "UD60x18",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "UD60x18",
                "name": "spot",
                "type": "uint256"
            },
            {
                "internalType": "UD60x18[]",
                "name": "strike",
                "type": "uint256[]"
            },
            {
                "internalType": "UD60x18[]",
                "name": "timeToMaturity",
                "type": "uint256[]"
            }
        ],
        "name": "getVolatility",
        "outputs": [
            {
                "internalType": "UD60x18[]",
                "name": "",
                "type": "uint256[]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "input",
                "type": "bytes32"
            }
        ],
        "name": "parseParams",
        "outputs": [
            {
                "internalType": "int256[5]",
                "name": "params",
                "type": "int256[5]"
            }
        ],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address[]",
                "name": "tokens",
                "type": "address[]"
            },
            {
                "internalType": "bytes32[]",
                "name": "tau",
                "type": "bytes32[]"
            },
            {
                "internalType": "bytes32[]",
                "name": "theta",
                "type": "bytes32[]"
            },
            {
                "internalType": "bytes32[]",
                "name": "psi",
                "type": "bytes32[]"
            },
            {
                "internalType": "bytes32[]",
                "name": "rho",
                "type": "bytes32[]"
            },
            {
                "internalType": "UD60x18",
                "name": "riskFreeRate",
                "type": "uint256"
            }
        ],
        "name": "updateParams",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    }
]
