This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "contracts/UserRegistry.sol": { | |
| "__sources__": { | |
| "contracts/UserRegistry.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @title UserRegistry — On-chain user profiles with IPFS CID storage\n/// @notice Stores user profile CIDs and basic metadata on-chain.\ncontract UserRegistry {\n \n struct UserProfile {\n string ipfsCid;\n string name;\n string profession;\n string phoneHash;\n uint256 registeredAt;\n bool exists;\n }\n \n mapping(address => UserProfile) public users;\n uint256 public userCount;\n \n event UserRegistered(address indexed wallet, string ipfsCid);\n event ProfileUpdated(address indexed wallet, string ipfsCid);\n \n function registerUser(\n string memory _ipfsCid,\n string memory _name,\n string memory _profession,\n string memory _phoneHash\n ) public {\n require(!users[msg.sender].exists, \"User already registered\");\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Userregistryu.sol": { | |
| "__sources__": {} | |
| }, | |
| "UserRegistryu.sol": { | |
| "__sources__": {} | |
| }, | |
| "DocumentRegistryV2.sol": { | |
| "__sources__": { | |
| "DocumentRegistryV2.sol": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "overrides": [ | |
| { | |
| "files": "*.sol", | |
| "options": { | |
| "printWidth": 80, | |
| "tabWidth": 4, | |
| "useTabs": false, | |
| "singleQuote": false, | |
| "bracketSpacing": false |