Contract 0xd7731dEac6595E7b84f96CF1F0E08f01Ee39db50

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6a78d624aa07baf9c4802353ba2e66c6bd43f2f453ff6744245e7a0d5ae86aac0x60808060623384812023-02-19 6:20:59373 days 11 hrs agoCAP: Treasury IN  Create: Governable0 ETH0.000109260.1
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Governable

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 1 : Governable.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

/// @title Governable
/// @notice Basic access control mechanism, gov has access to certain functions
contract Governable {
    address public gov;

    event SetGov(address prevGov, address nextGov);

    /// @dev Initializes the contract setting the deployer address as governance
    constructor() {
        _setGov(msg.sender);
    }

    /// @dev Reverts if called by any account other than gov
    modifier onlyGov() {
        require(msg.sender == gov, '!gov');
        _;
    }

    /// @notice Sets a new governance address
    /// @dev Only callable by governance
    function setGov(address _gov) external onlyGov {
        _setGov(_gov);
    }

    /// @notice Sets a new governance address
    /// @dev Internal function without access restriction
    function _setGov(address _gov) internal {
        address prevGov = gov;
        gov = _gov;
        emit SetGov(prevGov, _gov);
    }
}

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevGov","type":"address"},{"indexed":false,"internalType":"address","name":"nextGov","type":"address"}],"name":"SetGov","type":"event"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608080604052346100645760008054336001600160a01b0319821681179092556001600160a01b0316825260208201527f53351836099c03ffc3b1727d8abd4b0222afa87d4ed76ae3102d51369ef7f78590604090a1604051610131908161006a8239f35b600080fdfe6080806040526004361015601257600080fd5b600090813560e01c90816312d43a511460d5575063cfad57a214603457600080fd5b3460d257602036600319011260d2576004356001600160a01b038181169182900360ce57825490811680330360a357827f53351836099c03ffc3b1727d8abd4b0222afa87d4ed76ae3102d51369ef7f7859360409360018060a01b03191617855582519182526020820152a180f35b606460405162461bcd60e51b815260206004820152600460248201526310b3b7bb60e11b6044820152fd5b8280fd5b80fd5b90503460f7578160031936011260f75790546001600160a01b03168152602090f35b5080fdfea2646970667358221220e67eec3cd10125cf4de721a0ee19cf7664a5d13a324f0968188f89fe966b218f64736f6c63430008110033

Deployed Bytecode

0x6080806040526004361015601257600080fd5b600090813560e01c90816312d43a511460d5575063cfad57a214603457600080fd5b3460d257602036600319011260d2576004356001600160a01b038181169182900360ce57825490811680330360a357827f53351836099c03ffc3b1727d8abd4b0222afa87d4ed76ae3102d51369ef7f7859360409360018060a01b03191617855582519182526020820152a180f35b606460405162461bcd60e51b815260206004820152600460248201526310b3b7bb60e11b6044820152fd5b8280fd5b80fd5b90503460f7578160031936011260f75790546001600160a01b03168152602090f35b5080fdfea2646970667358221220e67eec3cd10125cf4de721a0ee19cf7664a5d13a324f0968188f89fe966b218f64736f6c63430008110033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.