Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"sources": {
"contracts/def.sol": {
"content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.30;\r
\r
contract StartStopUpdateExample {\r
\r
address public owner;\r
bool public paused;\r
\r
constructor() {\r
owner = msg.sender;\r
}\r
\r
function sendMoney() public payable {\r
\r
}\r
\r
function setPaused(bool _paused) public {\r
require(msg.sender == owner, "You are not the owner");\r
paused = _paused;\r
}\r
\r
function withdrawAllMoney(address payable _to) public {\r
require(owner == msg.sender, "You cannot withdraw.");\r
require(paused == false, "Contract Paused");\r
_to.transfer(address(this).balance);\r
}\r
\r
function destroySmartContract(address payable _to) public {\r
require(msg.sender == owner, "You are not the owner");\r
selfdestruct(_to);\r
}\r
}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}
}}
Submitted on: 2025-11-01 11:06:41
Comments
Log in to comment.
No comments yet.