Skip to content

Instantly share code, notes, and snippets.

@johnkutt
johnkutt / .git...HEAD
Created April 28, 2026 16:49
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=
ref: refs/heads/master
@johnkutt
johnkutt / .deps...npm....resolution-index.json
Created April 28, 2026 16:48
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/SimpleStorage.sol": {
"__sources__": {
"contracts/SimpleStorage.sol": {
"content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.20;\r\n\r\ncontract SimpleStorage {\r\n\r\n address public owner;\r\n uint256 private storedValue;\r\n\r\n event ValueChanged(uint256 newValue, address changedBy);\r\n\r\n constructor() {\r\n owner = msg.sender;\r\n }\r\n\r\n // Store a value\r\n function setValue(uint256 _value) public {\r\n storedValue = _value;\r\n emit ValueChanged(_value, msg.sender);\r\n }\r\n\r\n // Get stored value\r\n function getValue() public view returns (uint256) {\r\n return storedValue;\r\n }\r\n\r\n // Only owner function\r\n function onlyOwnerSet(uint256 _value) public {\r\n require(msg.sender == owner, \"Not owner\");\r\n storedValue = _value;\r\n emit ValueChanged(_value, msg.sender);\r\n }\r\n}",
"file": "contracts/SimpleStorage.sol"
}
}
}
}
@johnkutt
johnkutt / .deps...npm....resolution-index.json
Created April 28, 2026 16:42
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/SimpleStorage.sol": {
"__sources__": {
"contracts/SimpleStorage.sol": {
"content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.20;\r\n\r\ncontract SimpleStorage {\r\n\r\n address public owner;\r\n uint256 private storedValue;\r\n\r\n event ValueChanged(uint256 newValue, address changedBy);\r\n\r\n constructor() {\r\n owner = msg.sender;\r\n }\r\n\r\n // Store a value\r\n function setValue(uint256 _value) public {\r\n storedValue = _value;\r\n emit ValueChanged(_value, msg.sender);\r\n }\r\n\r\n // Get stored value\r\n function getValue() public view returns (uint256) {\r\n return storedValue;\r\n }\r\n\r\n // Only owner function\r\n function onlyOwnerSet(uint256 _value) public {\r\n require(msg.sender == owner, \"Not owner\");\r\n storedValue = _value;\r\n emit ValueChanged(_value, msg.sender);\r\n }\r\n}",
"file": "contracts/SimpleStorage.sol"
}
}
}
}
@johnkutt
johnkutt / .deps...npm....resolution-index.json
Created April 28, 2026 16:41
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/SimpleStorage.sol": {
"__sources__": {
"contracts/SimpleStorage.sol": {
"content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.20;\r\n\r\ncontract SimpleStorage {\r\n\r\n address public owner;\r\n uint256 private storedValue;\r\n\r\n event ValueChanged(uint256 newValue, address changedBy);\r\n\r\n constructor() {\r\n owner = msg.sender;\r\n }\r\n\r\n // Store a value\r\n function setValue(uint256 _value) public {\r\n storedValue = _value;\r\n emit ValueChanged(_value, msg.sender);\r\n }\r\n\r\n // Get stored value\r\n function getValue() public view returns (uint256) {\r\n return storedValue;\r\n }\r\n\r\n // Only owner function\r\n function onlyOwnerSet(uint256 _value) public {\r\n require(msg.sender == owner, \"Not owner\");\r\n storedValue = _value;\r\n emit ValueChanged(_value, msg.sender);\r\n }\r\n}",
"file": "contracts/SimpleStorage.sol"
}
}
}
}