Skip to content

Instantly share code, notes, and snippets.

View outstandingom's full-sized avatar

Om Uikey outstandingom

View GitHub Profile
@outstandingom
outstandingom / .deps...npm....resolution-index.json
Created May 20, 2026 06:38
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"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
@outstandingom
outstandingom / .deps...npm....resolution-index.json
Created May 20, 2026 06:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"Userregistryu.sol": {
"__sources__": {}
},
"UserRegistryu.sol": {
"__sources__": {}
},
"DocumentRegistryV2.sol": {
"__sources__": {
"DocumentRegistryV2.sol": {
@outstandingom
outstandingom / .prettierrc.json
Created May 20, 2026 06:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false