StartStopUpdateExample

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": []
  }
}}

Tags:
Factory|addr:0xed12e1ae1285a2777f0fb47f72ff7e268f26fb4e|verified:true|block:23700768|tx:0x5f3232bb1a3536c32f404357a4e1f7b5195c9a4dc9a1479d39c26cb4b399ee34|first_check:1761991601

Submitted on: 2025-11-01 11:06:41

Comments

Log in to comment.

No comments yet.