ETH Price: $3,351.68 (-1.10%)

Contract

0xE8d5A85758FE98F7Dce251CAd552691D49b499Bb
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Pending Gove...133098192021-09-27 19:48:161188 days ago1632772096IN
0xE8d5A857...D49b499Bb
0 ETH0.0041909188.80568592
Add Mechanic131225082021-08-29 20:25:451217 days ago1630268745IN
0xE8d5A857...D49b499Bb
0 ETH0.0053275571
Add Mechanic130369042021-08-16 14:53:001231 days ago1629125580IN
0xE8d5A857...D49b499Bb
0 ETH0.0055412173.84735653
Remove Mechanic129923692021-08-09 17:43:551238 days ago1628531035IN
0xE8d5A857...D49b499Bb
0 ETH0.0022904755
Accept Governor129922112021-08-09 17:09:031238 days ago1628528943IN
0xE8d5A857...D49b499Bb
0 ETH0.0013364748.627354
Set Pending Gove...129922102021-08-09 17:08:401238 days ago1628528920IN
0xE8d5A857...D49b499Bb
0 ETH0.0021125444.8219721
Add Mechanic129916432021-08-09 15:05:571238 days ago1628521557IN
0xE8d5A857...D49b499Bb
0 ETH0.003750650
Add Mechanic129916192021-08-09 14:59:501238 days ago1628521190IN
0xE8d5A857...D49b499Bb
0 ETH0.0038987552
Add Mechanic128833612021-07-23 15:17:381255 days ago1627053458IN
0xE8d5A857...D49b499Bb
0 ETH0.0018199924.255
Add Mechanic128593532021-07-19 21:14:241258 days ago1626729264IN
0xE8d5A857...D49b499Bb
0 ETH0.0022510830

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MechanicsRegistry

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : MechanicsRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import '../../interfaces/mechanics/IMechanicsRegistry.sol';
import '../abstract/UtilsReady.sol';

contract MechanicsRegistry is UtilsReady, IMechanicsRegistry {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet internal _mechanics;

    constructor(address _mechanic) public {
        _addMechanic(_mechanic);
    }

    // Setters
    function addMechanic(address _mechanic) external override onlyGovernor {
        _addMechanic(_mechanic);
    }

    function removeMechanic(address _mechanic) external override onlyGovernor {
        _removeMechanic(_mechanic);
    }

    function _addMechanic(address _mechanic) internal {
        require(_mechanic != address(0), 'MechanicsRegistry::add-mechanic:mechanic-should-not-be-zero-address');
        require(!_mechanics.contains(_mechanic), "MechanicsRegistry::add-mechanic:mechanic-already-added");
        _mechanics.add(_mechanic);
        emit MechanicAdded(_mechanic);
    }

    function _removeMechanic(address _mechanic) internal {
        require(_mechanics.contains(_mechanic), "MechanicsRegistry::remove-mechanic:mechanic-not-found");
        _mechanics.remove(_mechanic);
        emit MechanicRemoved(_mechanic);
    }

    // View helpers
    function isMechanic(address mechanic) public view override returns (bool _isMechanic) {
        return _mechanics.contains(mechanic);
    }

    // Getters
    function mechanics() public view override returns (address[] memory _mechanicsList) {
        _mechanicsList = new address[](_mechanics.length());
        for (uint256 i; i < _mechanics.length(); i++) {
            _mechanicsList[i] = _mechanics.at(i);
        }
    }
}

File 2 of 14 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 3 of 14 : IMechanicsRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

interface IMechanicsRegistry {
    event MechanicAdded(address _mechanic);
    event MechanicRemoved(address _mechanic);

    function addMechanic(address _mechanic) external;

    function removeMechanic(address _mechanic) external;

    function mechanics() external view returns (address[] memory _mechanicsList);

    function isMechanic(address mechanic) external view returns (bool _isMechanic);

}

File 4 of 14 : UtilsReady.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import '../utils/Governable.sol';
import '../utils/CollectableDust.sol';
import '../utils/Pausable.sol';

abstract
contract UtilsReady is Governable, CollectableDust, Pausable {

  constructor() public Governable(msg.sender) {
  }

  // Governable: restricted-access
  function setPendingGovernor(address _pendingGovernor) external override onlyGovernor {
    _setPendingGovernor(_pendingGovernor);
  }

  function acceptGovernor() external override onlyPendingGovernor {
    _acceptGovernor();
  }

  // Collectable Dust: restricted-access
  function sendDust(
    address _to,
    address _token,
    uint256 _amount
  ) external override virtual onlyGovernor {
    _sendDust(_to, _token, _amount);
  }

  // Pausable: restricted-access
  function pause(bool _paused) external override onlyGovernor {
    _pause(_paused);
  }

}

File 5 of 14 : Governable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import '../../interfaces/utils/IGovernable.sol';

abstract
contract Governable is IGovernable {
  address public override governor;
  address public override pendingGovernor;

  constructor(address _governor) public {
    require(_governor != address(0), 'governable/governor-should-not-be-zero-address');
    governor = _governor;
  }

  function _setPendingGovernor(address _pendingGovernor) internal {
    require(_pendingGovernor != address(0), 'governable/pending-governor-should-not-be-zero-addres');
    pendingGovernor = _pendingGovernor;
    emit PendingGovernorSet(_pendingGovernor);
  }

  function _acceptGovernor() internal {
    governor = pendingGovernor;
    pendingGovernor = address(0);
    emit GovernorAccepted();
  }

  function isGovernor(address _account) public view override returns (bool _isGovernor) {
    return _account == governor;
  }

  modifier onlyGovernor {
    require(isGovernor(msg.sender), 'governable/only-governor');
    _;
  }

  modifier onlyPendingGovernor {
    require(msg.sender == pendingGovernor, 'governable/only-pending-governor');
    _;
  }
}

File 6 of 14 : CollectableDust.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/EnumerableSet.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";

import '../../interfaces/utils/ICollectableDust.sol';

abstract
contract CollectableDust is ICollectableDust {
  using SafeERC20 for IERC20;
  using EnumerableSet for EnumerableSet.AddressSet;

  address public constant ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
  EnumerableSet.AddressSet internal protocolTokens;

  constructor() public {}

  function _addProtocolToken(address _token) internal {
    require(!protocolTokens.contains(_token), 'collectable-dust/token-is-part-of-the-protocol');
    protocolTokens.add(_token);
  }

  function _removeProtocolToken(address _token) internal {
    require(protocolTokens.contains(_token), 'collectable-dust/token-not-part-of-the-protocol');
    protocolTokens.remove(_token);
  }

  function _sendDust(
    address _to,
    address _token,
    uint256 _amount
  ) internal {
    require(_to != address(0), 'collectable-dust/cant-send-dust-to-zero-address');
    require(!protocolTokens.contains(_token), 'collectable-dust/token-is-part-of-the-protocol');
    if (_token == ETH_ADDRESS) {
      payable(_to).transfer(_amount);
    } else {
      IERC20(_token).safeTransfer(_to, _amount);
    }
    emit DustSent(_to, _token, _amount);
  }
}

File 7 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import '../../interfaces/utils/IPausable.sol';

abstract
contract Pausable is IPausable {
  bool public paused;

  constructor() public {}
  
  modifier notPaused() {
    require(!paused, 'paused');
    _;
  }

  function _pause(bool _paused) internal {
    require(paused != _paused, 'no-change');
    paused = _paused;
    emit Paused(_paused);
  }

}

File 8 of 14 : IGovernable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

interface IGovernable {
  event PendingGovernorSet(address pendingGovernor);
  event GovernorAccepted();

  function setPendingGovernor(address _pendingGovernor) external;
  function acceptGovernor() external;

  function governor() external view returns (address _governor);
  function pendingGovernor() external view returns (address _pendingGovernor);

  function isGovernor(address _account) external view returns (bool _isGovernor);
}

File 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 11 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 12 of 14 : ICollectableDust.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

interface ICollectableDust {
  event DustSent(address _to, address token, uint256 amount);

  function sendDust(address _to, address _token, uint256 _amount) external;
}

File 13 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 14 of 14 : IPausable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

interface IPausable {
  event Paused(bool _paused);

  function pause(bool _paused) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_mechanic","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DustSent","type":"event"},{"anonymous":false,"inputs":[],"name":"GovernorAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_mechanic","type":"address"}],"name":"MechanicAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_mechanic","type":"address"}],"name":"MechanicRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_paused","type":"bool"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pendingGovernor","type":"address"}],"name":"PendingGovernorSet","type":"event"},{"inputs":[],"name":"ETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mechanic","type":"address"}],"name":"addMechanic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isGovernor","outputs":[{"internalType":"bool","name":"_isGovernor","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"mechanic","type":"address"}],"name":"isMechanic","outputs":[{"internalType":"bool","name":"_isMechanic","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mechanics","outputs":[{"internalType":"address[]","name":"_mechanicsList","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mechanic","type":"address"}],"name":"removeMechanic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sendDust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingGovernor","type":"address"}],"name":"setPendingGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620013e6380380620013e6833981810160405260208110156200003757600080fd5b50513380620000785760405162461bcd60e51b815260040180806020018281038252602e815260200180620013b8602e913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055620000a381620000aa565b5062000243565b6001600160a01b038116620000f15760405162461bcd60e51b8152600401808060200182810382526043815260200180620013756043913960600191505060405180910390fd5b6200010c816005620001a560201b620005a51790919060201c565b156200014a5760405162461bcd60e51b81526004018080602001828103825260368152602001806200133f6036913960400191505060405180910390fd5b62000165816005620001c560201b620005c11790919060201c565b50604080516001600160a01b038316815290517fc8c07a63c733ffec55e94684c0f16ba32cab53da9aed430c73b6eaad959866489181900360200190a150565b6000620001bc836001600160a01b038416620001dc565b90505b92915050565b6000620001bc836001600160a01b038416620001f4565b60009081526001919091016020526040902054151590565b6000620002028383620001dc565b6200023a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001bf565b506000620001bf565b6110ec80620002536000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063a734f06e1161008c578063e3056a3411610066578063e3056a341461023d578063e43581b814610245578063e58bb6391461026b578063f235757f14610273576100cf565b8063a734f06e146101e9578063d8207763146101f1578063da9402eb14610217576100cf565b806302329a29146100d45780630c340a24146100f55780632db8c1291461011957806338b427851461014f5780635c975abb146101a757806365834acc146101c3575b600080fd5b6100f3600480360360208110156100ea57600080fd5b50351515610299565b005b6100fd6102ed565b604080516001600160a01b039092168252519081900360200190f35b6100f36004803603606081101561012f57600080fd5b506001600160a01b038135811691602081013590911690604001356102fc565b610157610354565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561019357818101518382015260200161017b565b505050509050019250505060405180910390f35b6101af6103f2565b604080519115158252519081900360200190f35b6101af600480360360208110156101d957600080fd5b50356001600160a01b03166103fb565b6100fd61040e565b6100f36004803603602081101561020757600080fd5b50356001600160a01b0316610426565b6100f36004803603602081101561022d57600080fd5b50356001600160a01b0316610477565b6100fd6104c8565b6101af6004803603602081101561025b57600080fd5b50356001600160a01b03166104d7565b6100f36104eb565b6100f36004803603602081101561028957600080fd5b50356001600160a01b0316610554565b6102a2336104d7565b6102e1576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea816105d6565b50565b6000546001600160a01b031681565b610305336104d7565b610344576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b61034f838383610667565b505050565b606061036060056107b7565b67ffffffffffffffff8111801561037657600080fd5b506040519080825280602002602001820160405280156103a0578160200160208202803683370190505b50905060005b6103b060056107b7565b8110156103ee576103c26005826107c2565b8282815181106103ce57fe5b6001600160a01b03909216602092830291909101909101526001016103a6565b5090565b60045460ff1681565b60006104086005836105a5565b92915050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b61042f336104d7565b61046e576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea816107ce565b610480336104d7565b6104bf576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea816108a5565b6001546001600160a01b031681565b6000546001600160a01b0390811691161490565b6001546001600160a01b0316331461054a576040805162461bcd60e51b815260206004820181905260248201527f676f7665726e61626c652f6f6e6c792d70656e64696e672d676f7665726e6f72604482015290519081900360640190fd5b610552610936565b565b61055d336104d7565b61059c576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea81610986565b60006105ba836001600160a01b038416610a1f565b9392505050565b60006105ba836001600160a01b038416610a37565b60045460ff1615158115151415610620576040805162461bcd60e51b81526020600482015260096024820152686e6f2d6368616e676560b81b604482015290519081900360640190fd5b6004805482151560ff19909116811790915560408051918252517f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd29181900360200190a150565b6001600160a01b0383166106ac5760405162461bcd60e51b815260040180806020018281038252602f815260200180610f07602f913960400191505060405180910390fd5b6106b76002836105a5565b156106f35760405162461bcd60e51b815260040180806020018281038252602e815260200180610fb1602e913960400191505060405180910390fd5b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610754576040516001600160a01b0384169082156108fc029083906000818181858888f1935050505015801561074e573d6000803e3d6000fd5b50610768565b6107686001600160a01b0383168483610a81565b604080516001600160a01b0380861682528416602082015280820183905290517f1e34c1aee8e83c2dcc14c21bb4bfeea7f46c0c998cb797ac7cc4d7a18f5c656b9181900360600190a1505050565b600061040882610ad3565b60006105ba8383610ad7565b6001600160a01b0381166108135760405162461bcd60e51b815260040180806020018281038252604381526020018061104a6043913960600191505060405180910390fd5b61081e6005826105a5565b1561085a5760405162461bcd60e51b81526004018080602001828103825260368152602001806110146036913960400191505060405180910390fd5b6108656005826105c1565b50604080516001600160a01b038316815290517fc8c07a63c733ffec55e94684c0f16ba32cab53da9aed430c73b6eaad959866489181900360200190a150565b6108b06005826105a5565b6108eb5760405162461bcd60e51b8152600401808060200182810382526035815260200180610fdf6035913960400191505060405180910390fd5b6108f6600582610b3b565b50604080516001600160a01b038316815290517f3bdc973d68e0d3506f595542d7aec755e9a35bd06b72483c6f508a9eb36a9d719181900360200190a150565b60018054600080546001600160a01b03199081166001600160a01b0384161782559091169091556040517f7880f0fcc848e1f26e461654b100a69f8d0641e29aa29f6596c6afadbb36b5ea9190a1565b6001600160a01b0381166109cb5760405162461bcd60e51b8152600401808060200182810382526035815260200180610f7c6035913960400191505060405180910390fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f56bddfa0cee9697cebddf9acd7f23dc6583663b05e007b877056d05017994def9181900360200190a150565b60009081526001919091016020526040902054151590565b6000610a438383610a1f565b610a7957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610408565b506000610408565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261034f908490610b50565b5490565b81546000908210610b195760405162461bcd60e51b8152600401808060200182810382526022815260200180610ee56022913960400191505060405180910390fd5b826000018281548110610b2857fe5b9060005260206000200154905092915050565b60006105ba836001600160a01b038416610c01565b6060610ba5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610cc79092919063ffffffff16565b80519091501561034f57808060200190516020811015610bc457600080fd5b505161034f5760405162461bcd60e51b815260040180806020018281038252602a81526020018061108d602a913960400191505060405180910390fd5b60008181526001830160205260408120548015610cbd5783546000198083019190810190600090879083908110610c3457fe5b9060005260206000200154905080876000018481548110610c5157fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080610c8157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610408565b6000915050610408565b6060610cd68484600085610cde565b949350505050565b606082471015610d1f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610f566026913960400191505060405180910390fd5b610d2885610e3a565b610d79576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610db85780518252601f199092019160209182019101610d99565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610e1a576040519150601f19603f3d011682016040523d82523d6000602084013e610e1f565b606091505b5091509150610e2f828286610e40565b979650505050505050565b3b151590565b60608315610e4f5750816105ba565b825115610e5f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ea9578181015183820152602001610e91565b50505050905090810190601f168015610ed65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473636f6c6c65637461626c652d647573742f63616e742d73656e642d647573742d746f2d7a65726f2d61646472657373676f7665726e61626c652f6f6e6c792d676f7665726e6f720000000000000000416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c676f7665726e61626c652f70656e64696e672d676f7665726e6f722d73686f756c642d6e6f742d62652d7a65726f2d616464726573636f6c6c65637461626c652d647573742f746f6b656e2d69732d706172742d6f662d7468652d70726f746f636f6c4d656368616e69637352656769737472793a3a72656d6f76652d6d656368616e69633a6d656368616e69632d6e6f742d666f756e644d656368616e69637352656769737472793a3a6164642d6d656368616e69633a6d656368616e69632d616c72656164792d61646465644d656368616e69637352656769737472793a3a6164642d6d656368616e69633a6d656368616e69632d73686f756c642d6e6f742d62652d7a65726f2d616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204de83b5bfae5f3b53fc29e591557139a86b4b4dfebaa9adc8c74beb0cb1c113364736f6c634300060c00334d656368616e69637352656769737472793a3a6164642d6d656368616e69633a6d656368616e69632d616c72656164792d61646465644d656368616e69637352656769737472793a3a6164642d6d656368616e69633a6d656368616e69632d73686f756c642d6e6f742d62652d7a65726f2d61646472657373676f7665726e61626c652f676f7665726e6f722d73686f756c642d6e6f742d62652d7a65726f2d616464726573730000000000000000000000001ea056c13f8ccc981e51c5f1cdf87476666d0a74

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063a734f06e1161008c578063e3056a3411610066578063e3056a341461023d578063e43581b814610245578063e58bb6391461026b578063f235757f14610273576100cf565b8063a734f06e146101e9578063d8207763146101f1578063da9402eb14610217576100cf565b806302329a29146100d45780630c340a24146100f55780632db8c1291461011957806338b427851461014f5780635c975abb146101a757806365834acc146101c3575b600080fd5b6100f3600480360360208110156100ea57600080fd5b50351515610299565b005b6100fd6102ed565b604080516001600160a01b039092168252519081900360200190f35b6100f36004803603606081101561012f57600080fd5b506001600160a01b038135811691602081013590911690604001356102fc565b610157610354565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561019357818101518382015260200161017b565b505050509050019250505060405180910390f35b6101af6103f2565b604080519115158252519081900360200190f35b6101af600480360360208110156101d957600080fd5b50356001600160a01b03166103fb565b6100fd61040e565b6100f36004803603602081101561020757600080fd5b50356001600160a01b0316610426565b6100f36004803603602081101561022d57600080fd5b50356001600160a01b0316610477565b6100fd6104c8565b6101af6004803603602081101561025b57600080fd5b50356001600160a01b03166104d7565b6100f36104eb565b6100f36004803603602081101561028957600080fd5b50356001600160a01b0316610554565b6102a2336104d7565b6102e1576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea816105d6565b50565b6000546001600160a01b031681565b610305336104d7565b610344576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b61034f838383610667565b505050565b606061036060056107b7565b67ffffffffffffffff8111801561037657600080fd5b506040519080825280602002602001820160405280156103a0578160200160208202803683370190505b50905060005b6103b060056107b7565b8110156103ee576103c26005826107c2565b8282815181106103ce57fe5b6001600160a01b03909216602092830291909101909101526001016103a6565b5090565b60045460ff1681565b60006104086005836105a5565b92915050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b61042f336104d7565b61046e576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea816107ce565b610480336104d7565b6104bf576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea816108a5565b6001546001600160a01b031681565b6000546001600160a01b0390811691161490565b6001546001600160a01b0316331461054a576040805162461bcd60e51b815260206004820181905260248201527f676f7665726e61626c652f6f6e6c792d70656e64696e672d676f7665726e6f72604482015290519081900360640190fd5b610552610936565b565b61055d336104d7565b61059c576040805162461bcd60e51b81526020600482015260186024820152600080516020610f36833981519152604482015290519081900360640190fd5b6102ea81610986565b60006105ba836001600160a01b038416610a1f565b9392505050565b60006105ba836001600160a01b038416610a37565b60045460ff1615158115151415610620576040805162461bcd60e51b81526020600482015260096024820152686e6f2d6368616e676560b81b604482015290519081900360640190fd5b6004805482151560ff19909116811790915560408051918252517f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd29181900360200190a150565b6001600160a01b0383166106ac5760405162461bcd60e51b815260040180806020018281038252602f815260200180610f07602f913960400191505060405180910390fd5b6106b76002836105a5565b156106f35760405162461bcd60e51b815260040180806020018281038252602e815260200180610fb1602e913960400191505060405180910390fd5b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610754576040516001600160a01b0384169082156108fc029083906000818181858888f1935050505015801561074e573d6000803e3d6000fd5b50610768565b6107686001600160a01b0383168483610a81565b604080516001600160a01b0380861682528416602082015280820183905290517f1e34c1aee8e83c2dcc14c21bb4bfeea7f46c0c998cb797ac7cc4d7a18f5c656b9181900360600190a1505050565b600061040882610ad3565b60006105ba8383610ad7565b6001600160a01b0381166108135760405162461bcd60e51b815260040180806020018281038252604381526020018061104a6043913960600191505060405180910390fd5b61081e6005826105a5565b1561085a5760405162461bcd60e51b81526004018080602001828103825260368152602001806110146036913960400191505060405180910390fd5b6108656005826105c1565b50604080516001600160a01b038316815290517fc8c07a63c733ffec55e94684c0f16ba32cab53da9aed430c73b6eaad959866489181900360200190a150565b6108b06005826105a5565b6108eb5760405162461bcd60e51b8152600401808060200182810382526035815260200180610fdf6035913960400191505060405180910390fd5b6108f6600582610b3b565b50604080516001600160a01b038316815290517f3bdc973d68e0d3506f595542d7aec755e9a35bd06b72483c6f508a9eb36a9d719181900360200190a150565b60018054600080546001600160a01b03199081166001600160a01b0384161782559091169091556040517f7880f0fcc848e1f26e461654b100a69f8d0641e29aa29f6596c6afadbb36b5ea9190a1565b6001600160a01b0381166109cb5760405162461bcd60e51b8152600401808060200182810382526035815260200180610f7c6035913960400191505060405180910390fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f56bddfa0cee9697cebddf9acd7f23dc6583663b05e007b877056d05017994def9181900360200190a150565b60009081526001919091016020526040902054151590565b6000610a438383610a1f565b610a7957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610408565b506000610408565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261034f908490610b50565b5490565b81546000908210610b195760405162461bcd60e51b8152600401808060200182810382526022815260200180610ee56022913960400191505060405180910390fd5b826000018281548110610b2857fe5b9060005260206000200154905092915050565b60006105ba836001600160a01b038416610c01565b6060610ba5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610cc79092919063ffffffff16565b80519091501561034f57808060200190516020811015610bc457600080fd5b505161034f5760405162461bcd60e51b815260040180806020018281038252602a81526020018061108d602a913960400191505060405180910390fd5b60008181526001830160205260408120548015610cbd5783546000198083019190810190600090879083908110610c3457fe5b9060005260206000200154905080876000018481548110610c5157fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080610c8157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610408565b6000915050610408565b6060610cd68484600085610cde565b949350505050565b606082471015610d1f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610f566026913960400191505060405180910390fd5b610d2885610e3a565b610d79576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610db85780518252601f199092019160209182019101610d99565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610e1a576040519150601f19603f3d011682016040523d82523d6000602084013e610e1f565b606091505b5091509150610e2f828286610e40565b979650505050505050565b3b151590565b60608315610e4f5750816105ba565b825115610e5f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ea9578181015183820152602001610e91565b50505050905090810190601f168015610ed65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473636f6c6c65637461626c652d647573742f63616e742d73656e642d647573742d746f2d7a65726f2d61646472657373676f7665726e61626c652f6f6e6c792d676f7665726e6f720000000000000000416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c676f7665726e61626c652f70656e64696e672d676f7665726e6f722d73686f756c642d6e6f742d62652d7a65726f2d616464726573636f6c6c65637461626c652d647573742f746f6b656e2d69732d706172742d6f662d7468652d70726f746f636f6c4d656368616e69637352656769737472793a3a72656d6f76652d6d656368616e69633a6d656368616e69632d6e6f742d666f756e644d656368616e69637352656769737472793a3a6164642d6d656368616e69633a6d656368616e69632d616c72656164792d61646465644d656368616e69637352656769737472793a3a6164642d6d656368616e69633a6d656368616e69632d73686f756c642d6e6f742d62652d7a65726f2d616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204de83b5bfae5f3b53fc29e591557139a86b4b4dfebaa9adc8c74beb0cb1c113364736f6c634300060c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000001ea056c13f8ccc981e51c5f1cdf87476666d0a74

-----Decoded View---------------
Arg [0] : _mechanic (address): 0x1ea056C13F8ccC981E51c5f1CDF87476666D0A74

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001ea056c13f8ccc981e51c5f1cdf87476666d0a74


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.