{ "compiler": { "version": "0.8.22+commit.4fc1097e" }, "language": "Solidity", "output": { "abi": [ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "string", "name": "policyType", "type": "string" } ], "name": "PolicyRegistered", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "string", "name": "policyType", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "isFraudulent", "type": "bool" } ], "name": "PolicyUpdated", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "_user", "type": "address" } ], "name": "getPolicy", "outputs": [ { "components": [ { "internalType": "string", "name": "policyType", "type": "string" }, { "internalType": "uint256", "name": "coverageAmount", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "startDate", "type": "uint256" }, { "internalType": "uint256", "name": "endDate", "type": "uint256" }, { "internalType": "bool", "name": "isFraudulent", "type": "bool" } ], "internalType": "struct PolicyManagementContract.Policy", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "policies", "outputs": [ { "internalType": "string", "name": "policyType", "type": "string" }, { "internalType": "uint256", "name": "coverageAmount", "type": "uint256" }, { "internalType": "uint256", "name": "premium", "type": "uint256" }, { "internalType": "uint256", "name": "startDate", "type": "uint256" }, { "internalType": "uint256", "name": "endDate", "type": "uint256" }, { "internalType": "bool", "name": "isFraudulent", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "string", "name": "_policyType", "type": "string" }, { "internalType": "uint256", "name": "_coverageAmount", "type": "uint256" }, { "internalType": "uint256", "name": "_premium", "type": "uint256" }, { "internalType": "uint256", "name": "_startDate", "type": "uint256" }, { "internalType": "uint256", "name": "_endDate", "type": "uint256" } ], "name": "registerPolicy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "bool", "name": "_isFraudulent", "type": "bool" } ], "name": "updatePolicyFraudStatus", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }, "settings": { "compilationTarget": { "contracts/3_PolicyManagment.sol": "PolicyManagementContract" }, "evmVersion": "shanghai", "libraries": {}, "metadata": { "bytecodeHash": "ipfs" }, "optimizer": { "enabled": false, "runs": 200 }, "remappings": [] }, "sources": { "contracts/3_PolicyManagment.sol": { "keccak256": "0xe3add11b8e29049d3b9615935a7dc1e4b2bffb38f4cc19dfd9ff7b702672512c", "license": "MIT", "urls": [ "bzz-raw://0e9251c061acd7952ece52d8251cb24bdd0e5e38f5aba0126676ebe1f95f21a0", "dweb:/ipfs/QmVEaRddj38Y4b8wQqJWM7ZZKgrweYySoBwuyH18JshbHY" ] } }, "version": 1 }