ETH Price: $1,979.12 (-5.03%)

Contract

0x3E14373EFBcbd5bE16F6f1634175192dDb127D75
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create2155970912022-09-23 15:58:471260 days ago1663948727IN
0x3E14373E...dDb127D75
0.03868681 ETH0.0198991311.70324612
Create2155901922022-09-22 16:52:351261 days ago1663865555IN
0x3E14373E...dDb127D75
0.00078119 ETH0.0261249513.80449901
Create2155793872022-09-21 4:14:351262 days ago1663733675IN
0x3E14373E...dDb127D75
0.00074768 ETH0.007872725.21997143
Create2154489552022-08-31 21:27:311283 days ago1661981251IN
0x3E14373E...dDb127D75
0.00633942 ETH0.0522688332.58338957
Create2154003792022-08-24 2:47:181290 days ago1661309238IN
0x3E14373E...dDb127D75
0.06179133 ETH0.01224037.78049868

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x60806040155970912022-09-23 15:58:471260 days ago1663948727
0x3E14373E...dDb127D75
 Contract Creation0.03868681 ETH
0x60806040155901922022-09-22 16:52:351261 days ago1663865555
0x3E14373E...dDb127D75
 Contract Creation0.00078119 ETH
0x60806040155793872022-09-21 4:14:351262 days ago1663733675
0x3E14373E...dDb127D75
 Contract Creation0.00074768 ETH
0x60806040154489552022-08-31 21:27:311283 days ago1661981251
0x3E14373E...dDb127D75
 Contract Creation0.00633942 ETH
0x60806040154003792022-08-24 2:47:181290 days ago1661309238
0x3E14373E...dDb127D75
 Contract Creation0.06179133 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiSigFactory

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

// import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/Create2.sol";

import "./MultiSigWallet.sol";

//custom errors
error CALLER_NOT_REGISTERED();

contract MultiSigFactory {
    MultiSigWallet[] public multiSigs;
    mapping(address => bool) existsMultiSig;

    event Create2Event(
        uint256 indexed contractId,
        string name,
        address indexed contractAddress,
        address creator,
        address[] owners,
        uint256 signaturesRequired
    );

    event Owners(
        address indexed contractAddress,
        address[] owners,
        uint256 indexed signaturesRequired
    );

    modifier onlyRegistered() {
        if (!existsMultiSig[msg.sender]) {
            revert CALLER_NOT_REGISTERED();
        }
        _;
    }

    function emitOwners(
        address _contractAddress,
        address[] calldata _owners,
        uint256 _signaturesRequired
    ) external onlyRegistered {
        emit Owners(_contractAddress, _owners, _signaturesRequired);
    }

    function numberOfMultiSigs() public view returns (uint256) {
        return multiSigs.length;
    }

    function getMultiSig(uint256 _index)
        public
        view
        returns (
            address multiSigAddress,
            uint256 signaturesRequired,
            uint256 balance
        )
    {
        MultiSigWallet multiSig = multiSigs[_index];
        return (
            address(multiSig),
            multiSig.signaturesRequired(),
            address(multiSig).balance
        );
    }

    function create2(
        uint256 _chainId,
        address[] calldata _owners,
        uint256 _signaturesRequired,
        string calldata _name
    ) public payable {
        uint256 id = numberOfMultiSigs();

        bytes32 _salt = keccak256(
            abi.encodePacked(abi.encode(_name, address(msg.sender)))
        );

        /**----------------------
         * create2 implementation
         * ---------------------*/
        address multiSig_address = payable(
            Create2.deploy(
                msg.value,
                _salt,
                abi.encodePacked(
                    type(MultiSigWallet).creationCode,
                    abi.encode(_name, address(this))
                )
            )
        );

        MultiSigWallet multiSig = MultiSigWallet(payable(multiSig_address));

        /**----------------------
         * init remaining values
         * ---------------------*/
        multiSig.init(_chainId, _owners, _signaturesRequired);

        multiSigs.push(multiSig);
        existsMultiSig[address(multiSig_address)] = true;

        emit Create2Event(
            id,
            _name,
            address(multiSig),
            msg.sender,
            _owners,
            _signaturesRequired
        );
        emit Owners(address(multiSig), _owners, _signaturesRequired);
    }

    /**----------------------
     * get a pre-computed address
     * ---------------------*/
    function computedAddress(string calldata _name)
        public
        view
        returns (address)
    {
        bytes32 bytecodeHash = keccak256(
            abi.encodePacked(
                type(MultiSigWallet).creationCode,
                abi.encode(_name, address(this))
            )
        );

        bytes32 _salt = keccak256(
            abi.encodePacked(abi.encode(_name, address(msg.sender)))
        );
        address computed_address = Create2.computeAddress(_salt, bytecodeHash);

        return computed_address;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Create2.sol)

pragma solidity ^0.8.0;

/**
 * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
 * `CREATE2` can be used to compute in advance the address where a smart
 * contract will be deployed, which allows for interesting new mechanisms known
 * as 'counterfactual interactions'.
 *
 * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
 * information.
 */
library Create2 {
    /**
     * @dev Deploys a contract using `CREATE2`. The address where the contract
     * will be deployed can be known in advance via {computeAddress}.
     *
     * The bytecode for a contract can be obtained from Solidity with
     * `type(contractName).creationCode`.
     *
     * Requirements:
     *
     * - `bytecode` must not be empty.
     * - `salt` must have not been used for `bytecode` already.
     * - the factory must have a balance of at least `amount`.
     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
     */
    function deploy(
        uint256 amount,
        bytes32 salt,
        bytes memory bytecode
    ) internal returns (address) {
        address addr;
        require(address(this).balance >= amount, "Create2: insufficient balance");
        require(bytecode.length != 0, "Create2: bytecode length is zero");
        assembly {
            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
        }
        require(addr != address(0), "Create2: Failed on deploy");
        return addr;
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
     * `bytecodeHash` or `salt` will result in a new destination address.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
        return computeAddress(salt, bytecodeHash, address(this));
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
     */
    function computeAddress(
        bytes32 salt,
        bytes32 bytecodeHash,
        address deployer
    ) internal pure returns (address) {
        bytes32 _data = keccak256(abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash));
        return address(uint160(uint256(_data)));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

// never forget the OG simple sig wallet: https://github.com/christianlundkvist/simple-multisig/blob/master/contracts/SimpleMultiSig.sol

pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./MultiSigFactory.sol";

//custom errors
error DUPLICATE_OR_UNORDERED_SIGNATURES();
error INVALID_OWNER();
error INVALID_SIGNER();
error INVALID_SIGNATURES_REQUIRED();
error INSUFFICIENT_VALID_SIGNATURES();
error NOT_ENOUGH_SIGNERS();
error NOT_OWNER();
error NOT_SELF();
error NOT_FACTORY();
error TX_FAILED();

contract MultiSigWallet {
    using ECDSA for bytes32;
    MultiSigFactory private multiSigFactory;
    uint256 public constant factoryVersion = 1; // <---- set the factory version for backword compatiblity for future contract updates

    event Deposit(address indexed sender, uint256 amount, uint256 balance);
    event ExecuteTransaction(
        address indexed owner,
        address payable to,
        uint256 value,
        bytes data,
        uint256 nonce,
        bytes32 hash,
        bytes result
    );
    event Owner(address indexed owner, bool added);

    mapping(address => bool) public isOwner;

    address[] public owners;

    uint256 public signaturesRequired;
    uint256 public nonce;
    uint256 public chainId;
    string public name;

    modifier onlyOwner() {
        if (!isOwner[msg.sender]) {
            revert NOT_OWNER();
        }
        _;
    }

    modifier onlySelf() {
        if (msg.sender != address(this)) {
            revert NOT_SELF();
        }
        _;
    }

    modifier onlyValidSignaturesRequired() {
        _;
        if (signaturesRequired == 0) {
            revert INVALID_SIGNATURES_REQUIRED();
        }
        if (owners.length < signaturesRequired) {
            revert NOT_ENOUGH_SIGNERS();
        }
    }
    modifier onlyFactory() {
        if (msg.sender != address(multiSigFactory)) {
            revert NOT_FACTORY();
        }
        _;
    }

    constructor(string memory _name, address _factory) payable {
        name = _name;
        multiSigFactory = MultiSigFactory(_factory);
    }

    function init(
        uint256 _chainId,
        address[] calldata _owners,
        uint256 _signaturesRequired
    ) public payable onlyFactory onlyValidSignaturesRequired {
        signaturesRequired = _signaturesRequired;
        for (uint256 i = 0; i < _owners.length; ) {
            address owner = _owners[i];
            if (owner == address(0) || isOwner[owner]) {
                revert INVALID_OWNER();
            }
            isOwner[owner] = true;
            owners.push(owner);

            emit Owner(owner, isOwner[owner]);
            unchecked {
                ++i;
            }
        }

        chainId = _chainId;
    }

    function addSigner(address newSigner, uint256 newSignaturesRequired)
        public
        onlySelf
        onlyValidSignaturesRequired
    {
        if (newSigner == address(0) || isOwner[newSigner]) {
            revert INVALID_SIGNER();
        }

        isOwner[newSigner] = true;
        owners.push(newSigner);
        signaturesRequired = newSignaturesRequired;

        emit Owner(newSigner, isOwner[newSigner]);
        multiSigFactory.emitOwners(
            address(this),
            owners,
            newSignaturesRequired
        );
    }

    function removeSigner(address oldSigner, uint256 newSignaturesRequired)
        public
        onlySelf
        onlyValidSignaturesRequired
    {
        if (!isOwner[oldSigner]) {
            revert NOT_OWNER();
        }

        _removeOwner(oldSigner);
        signaturesRequired = newSignaturesRequired;

        emit Owner(oldSigner, isOwner[oldSigner]);
        multiSigFactory.emitOwners(
            address(this),
            owners,
            newSignaturesRequired
        );
    }

    function _removeOwner(address _oldSigner) private {
        isOwner[_oldSigner] = false;
        uint256 ownersLength = owners.length;
        address[] memory poppedOwners = new address[](owners.length);
        for (uint256 i = ownersLength - 1; i >= 0; ) {
            if (owners[i] != _oldSigner) {
                poppedOwners[i] = owners[i];
                owners.pop();
            } else {
                owners.pop();
                for (uint256 j = i; j < ownersLength - 1; ) {
                    owners.push(poppedOwners[j + 1]); // shout out to moltam89!! https://github.com/austintgriffith/maas/pull/2/commits/e981c5fa5b4d25a1f0946471b876f9a002a9a82b
                    unchecked {
                        ++j;
                    }
                }
                return;
            }
            unchecked {
                --i;
            }
        }
    }

    function updateSignaturesRequired(uint256 newSignaturesRequired)
        public
        onlySelf
        onlyValidSignaturesRequired
    {
        signaturesRequired = newSignaturesRequired;
    }

    function executeTransaction(
        address payable to,
        uint256 value,
        bytes calldata data,
        bytes[] calldata signatures
    ) public onlyOwner returns (bytes memory) {
        bytes32 _hash = getTransactionHash(nonce, to, value, data);

        nonce++;

        uint256 validSignatures;
        address duplicateGuard;
        for (uint256 i = 0; i < signatures.length; ) {
            address recovered = recover(_hash, signatures[i]);
            if (recovered <= duplicateGuard) {
                revert DUPLICATE_OR_UNORDERED_SIGNATURES();
            }
            duplicateGuard = recovered;

            if (isOwner[recovered]) {
                validSignatures++;
            }
            unchecked {
                ++i;
            }
        }

        if (validSignatures < signaturesRequired) {
            revert INSUFFICIENT_VALID_SIGNATURES();
        }

        (bool success, bytes memory result) = to.call{value: value}(data);
        if (!success) {
            revert TX_FAILED();
        }

        emit ExecuteTransaction(
            msg.sender,
            to,
            value,
            data,
            nonce - 1,
            _hash,
            result
        );
        return result;
    }

    function getTransactionHash(
        uint256 _nonce,
        address to,
        uint256 value,
        bytes calldata data
    ) public view returns (bytes32) {
        return
            keccak256(
                abi.encodePacked(
                    address(this),
                    chainId,
                    _nonce,
                    to,
                    value,
                    data
                )
            );
    }

    function recover(bytes32 _hash, bytes calldata _signature)
        public
        pure
        returns (address)
    {
        return _hash.toEthSignedMessageHash().recover(_signature);
    }

    receive() external payable {
        emit Deposit(msg.sender, msg.value, address(this).balance);
    }

    function numberOfOwners() public view returns (uint256) {
        return owners.length;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"CALLER_NOT_REGISTERED","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"contractId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"address[]","name":"owners","type":"address[]"},{"indexed":false,"internalType":"uint256","name":"signaturesRequired","type":"uint256"}],"name":"Create2Event","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"address[]","name":"owners","type":"address[]"},{"indexed":true,"internalType":"uint256","name":"signaturesRequired","type":"uint256"}],"name":"Owners","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"computedAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256","name":"_signaturesRequired","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"create2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256","name":"_signaturesRequired","type":"uint256"}],"name":"emitOwners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getMultiSig","outputs":[{"internalType":"address","name":"multiSigAddress","type":"address"},{"internalType":"uint256","name":"signaturesRequired","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"multiSigs","outputs":[{"internalType":"contract MultiSigWallet","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfMultiSigs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506124bf806100206000396000f3fe6080604052600436106200005c5760003560e01c80632f1d8a2314620000615780639567e7ed1462000085578063b1a01a5414620000d0578063bedf4294146200010e578063c67fdb941462000135578063cebed300146200015a575b600080fd5b3480156200006e57600080fd5b506000546040519081526020015b60405180910390f35b3480156200009257600080fd5b50620000aa620000a4366004620008fe565b62000171565b604080516001600160a01b0390941684526020840192909252908201526060016200007c565b348015620000dd57600080fd5b50620000f5620000ef366004620008ba565b62000247565b6040516001600160a01b0390911681526020016200007c565b3480156200011b57600080fd5b50620001336200012d3660046200085c565b62000325565b005b3480156200014257600080fd5b50620000f562000154366004620008fe565b620003a2565b620001336200016b36600462000930565b620003cd565b600080600080600085815481106200019957634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316905080816001600160a01b031663ce757d296040518163ffffffff1660e01b815260040160206040518083038186803b158015620001f457600080fd5b505afa15801562000209573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200022f919062000917565b90945092506001600160a01b03163190509193909250565b600080604051806020016200025c90620007a1565b601f1982820381018352601f909101166040819052620002859086908690309060200162000aa3565b60408051601f1981840301815290829052620002a5929160200162000a74565b6040516020818303038152906040528051906020012090506000848433604051602001620002d69392919062000aa3565b60408051601f1981840301815290829052620002f59160200162000a66565b60405160208183030381529060405280519060200120905060006200031b82846200062e565b9695505050505050565b3360009081526001602052604090205460ff16620003565760405163059ac83f60e51b815260040160405180910390fd5b80846001600160a01b03167f767d0acba39e4cf96349b168ed9d32211fb4940be0f3549d31154941785c9b6a85856040516200039492919062000a8d565b60405180910390a350505050565b60008181548110620003b357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000805490506000838333604051602001620003ec9392919062000aa3565b60408051601f19818403018152908290526200040b9160200162000a66565b60405160208183030381529060405280519060200120905060006200049b3483604051806020016200043d90620007a1565b601f1982820381018352601f90910116604081905262000466908a908a90309060200162000aa3565b60408051601f198184030181529082905262000486929160200162000a74565b6040516020818303038152906040526200068d565b60405163b280a3c760e01b815290915081906001600160a01b0382169063b280a3c790620004d4908d908d908d908d9060040162000b1f565b600060405180830381600087803b158015620004ef57600080fd5b505af115801562000504573d6000803e3d6000fd5b505050506000819080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506001806000846001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b0316847f771dbe09d95eb613ad8d8801b72a555733cd50b33bc510c15a9b51b2cd3fad958888338e8e8e604051620005d49695949392919062000ad1565b60405180910390a386816001600160a01b03167f767d0acba39e4cf96349b168ed9d32211fb4940be0f3549d31154941785c9b6a8b8b6040516200061a92919062000a8d565b60405180910390a350505050505050505050565b604080516001600160f81b03196020808301919091526bffffffffffffffffffffffff193060601b16602183015260358201859052605580830185905283518084039091018152607590920190925280519101206000905b9392505050565b60008084471015620006e65760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b8251620007365760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f6044820152606401620006dd565b8383516020850187f590506001600160a01b038116620007995760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f79000000000000006044820152606401620006dd565b949350505050565b61193d8062000b4d83390190565b80356001600160a01b0381168114620007c757600080fd5b919050565b60008083601f840112620007de578182fd5b50813567ffffffffffffffff811115620007f6578182fd5b6020830191508360208260051b85010111156200081257600080fd5b9250929050565b60008083601f8401126200082b578182fd5b50813567ffffffffffffffff81111562000843578182fd5b6020830191508360208285010111156200081257600080fd5b6000806000806060858703121562000872578384fd5b6200087d85620007af565b9350602085013567ffffffffffffffff81111562000899578384fd5b620008a787828801620007cc565b9598909750949560400135949350505050565b60008060208385031215620008cd578182fd5b823567ffffffffffffffff811115620008e4578283fd5b620008f28582860162000819565b90969095509350505050565b60006020828403121562000910578081fd5b5035919050565b60006020828403121562000929578081fd5b5051919050565b6000806000806000806080878903121562000949578182fd5b86359550602087013567ffffffffffffffff8082111562000968578384fd5b620009768a838b01620007cc565b909750955060408901359450606089013591508082111562000996578384fd5b50620009a589828a0162000819565b979a9699509497509295939492505050565b81835260006020808501945082825b85811015620009f6576001600160a01b03620009e283620007af565b1687529582019590820190600101620009c6565b509495945050505050565b60008151815b8181101562000a23576020818501810151868301520162000a07565b8181111562000a325782828601525b509290920192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600062000686828462000a01565b60006200079962000a86838662000a01565b8462000a01565b60208152600062000799602083018486620009b7565b60408152600062000ab960408301858762000a3d565b905060018060a01b0383166020830152949350505050565b60808152600062000ae760808301888a62000a3d565b6001600160a01b0387166020840152828103604084015262000b0b818688620009b7565b915050826060830152979650505050505050565b84815260606020820152600062000b3b606083018587620009b7565b90508260408301529594505050505056fe60806040526040516200193d3803806200193d833981016040819052620000269162000126565b81516200003b90600690602085019062000063565b50600080546001600160a01b0319166001600160a01b03929092169190911790555062000264565b828054620000719062000211565b90600052602060002090601f016020900481019282620000955760008555620000e0565b82601f10620000b057805160ff1916838001178555620000e0565b82800160010185558215620000e0579182015b82811115620000e0578251825591602001919060010190620000c3565b50620000ee929150620000f2565b5090565b5b80821115620000ee5760008155600101620000f3565b80516001600160a01b03811681146200012157600080fd5b919050565b6000806040838503121562000139578182fd5b82516001600160401b038082111562000150578384fd5b818501915085601f83011262000164578384fd5b8151818111156200017957620001796200024e565b604051601f8201601f19908116603f01168101908382118183101715620001a457620001a46200024e565b81604052828152602093508884848701011115620001c0578687fd5b8691505b82821015620001e35784820184015181830185015290830190620001c4565b82821115620001f457868484830101525b95506200020691505085820162000109565b925050509250929050565b600181811c908216806200022657607f821691505b602082108114156200024857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6116c980620002746000396000f3fe6080604052600436106100ec5760003560e01c806365af1bed1161008a578063b280a3c711610059578063b280a3c7146102c2578063ce757d29146102d5578063d1fbffa0146102eb578063d41304861461030b57600080fd5b806365af1bed1461026157806393fd1844146102815780639a8a059214610296578063affed0e0146102ac57600080fd5b80632f54bf6e116100c65780632f54bf6e146101b15780633034a742146101f15780633bad542614610213578063545a4a3c1461023357600080fd5b8063025e7c271461013257806306fdde031461016f57806319045a251461019157600080fd5b3661012d576040805134815247602082015233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a2005b600080fd5b34801561013e57600080fd5b5061015261014d36600461133d565b610320565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017b57600080fd5b5061018461034a565b604051610166919061158b565b34801561019d57600080fd5b506101526101ac3660046112f3565b6103d8565b3480156101bd57600080fd5b506101e16101cc36600461121c565b60016020526000908152604090205460ff1681565b6040519015158152602001610166565b3480156101fd57600080fd5b5061021161020c36600461133d565b61042d565b005b34801561021f57600080fd5b5061021161022e3660046112c8565b610498565b34801561023f57600080fd5b5061025361024e366004611355565b610607565b604051908152602001610166565b34801561026d57600080fd5b5061021161027c3660046112c8565b610649565b34801561028d57600080fd5b50600254610253565b3480156102a257600080fd5b5061025360055481565b3480156102b857600080fd5b5061025360045481565b6102116102d03660046113bd565b610752565b3480156102e157600080fd5b5061025360035481565b3480156102f757600080fd5b5061018461030636600461123f565b610907565b34801561031757600080fd5b50610253600181565b6002818154811061033057600080fd5b6000918252602090912001546001600160a01b0316905081565b6006805461035790611612565b80601f016020809104026020016040519081016040528092919081815260200182805461038390611612565b80156103d05780601f106103a5576101008083540402835291602001916103d0565b820191906000526020600020905b8154815290600101906020018083116103b357829003601f168201915b505050505081565b600061042583838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061041f9250889150610b299050565b90610b7c565b949350505050565b33301461044d57604051637d06bfa960e01b815260040160405180910390fd5b600381905580610470576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561049557604051630bceea4f60e21b815260040160405180910390fd5b50565b3330146104b857604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205460ff166104f1576040516338ebc58960e11b815260040160405180910390fd5b6104fa82610ba0565b60038190556001600160a01b03821660008181526001602090815260409182902054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e91015b60405180910390a2600054604051632fb7d0a560e21b81526001600160a01b039091169063bedf4294906105889030906002908690600401611526565b600060405180830381600087803b1580156105a257600080fd5b505af11580156105b6573d6000803e3d6000fd5b50505050600354600014156105de576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561060357604051630bceea4f60e21b815260040160405180910390fd5b5050565b60003060055487878787876040516020016106289796959493929190611459565b60405160208183030381529060405280519060200120905095945050505050565b33301461066957604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b038216158061069757506001600160a01b03821660009081526001602052604090205460ff165b156106b557604051631b2ff60b60e21b815260040160405180910390fd5b6001600160a01b038216600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b0319168517905560038590559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910161054b565b6000546001600160a01b0316331461077d5760405163d00b204760e01b815260040160405180910390fd5b600381905560005b828110156108b65760008484838181106107af57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107c4919061121c565b90506001600160a01b03811615806107f457506001600160a01b03811660009081526001602052604090205460ff165b1561081257604051639d2d273160e01b815260040160405180910390fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b031916851790559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910160405180910390a250600101610785565b5060058490556003546108dc576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561090157604051630bceea4f60e21b815260040160405180910390fd5b50505050565b3360009081526001602052604090205460609060ff1661093a576040516338ebc58960e11b815260040160405180910390fd5b600061094b60045489898989610607565b60048054919250600061095d8361164d565b919050555060008060005b85811015610a185760006109a88589898581811061099657634e487b7160e01b600052603260045260246000fd5b90506020028101906101ac919061159e565b9050826001600160a01b0316816001600160a01b0316116109db5760405162ef70e160e51b815260040160405180910390fd5b6001600160a01b038116600090815260016020526040902054909250829060ff1615610a0f5783610a0b8161164d565b9450505b50600101610968565b50600354821015610a3c57604051635245fc1160e01b815260040160405180910390fd5b6000808b6001600160a01b03168b8b8b604051610a5a9291906114a8565b60006040518083038185875af1925050503d8060008114610a97576040519150601f19603f3d011682016040523d82523d6000602084013e610a9c565b606091505b509150915081610abf57604051637a5f4f5f60e01b815260040160405180910390fd5b336001600160a01b03167f9053e9ec105157fac8c9308d63e6b22be5f50fe915a3e567419b624311a02d748d8d8d8d6001600454610afd91906115fb565b8b88604051610b1297969594939291906114b8565b60405180910390a29b9a5050505050505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000610b8b8585610e07565b91509150610b9881610e77565b509392505050565b6001600160a01b0381166000908152600160205260408120805460ff19169055600254908167ffffffffffffffff811115610beb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b5090506000610c246001846115fb565b90505b836001600160a01b031660028281548110610c5257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614610d315760028181548110610c8d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316828281518110610ccb57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250506002805480610d0a57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055610dfe565b6002805480610d5057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055805b610d7f6001856115fb565b811015610df757600283610d948360016115e3565b81518110610db257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001808201855560009485529290932090920180546001600160a01b0319166001600160a01b039093169290921790915501610d74565b5050505050565b60001901610c27565b600080825160411415610e3e5760208301516040840151606085015160001a610e328782858561107d565b94509450505050610e70565b825160401415610e685760208301516040840151610e5d86838361116a565b935093505050610e70565b506000905060025b9250929050565b6000816004811115610e9957634e487b7160e01b600052602160045260246000fd5b1415610ea25750565b6001816004811115610ec457634e487b7160e01b600052602160045260246000fd5b1415610f175760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115610f3957634e487b7160e01b600052602160045260246000fd5b1415610f875760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f0e565b6003816004811115610fa957634e487b7160e01b600052602160045260246000fd5b14156110025760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f0e565b600481600481111561102457634e487b7160e01b600052602160045260246000fd5b14156104955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f0e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156110b45750600090506003611161565b8460ff16601b141580156110cc57508460ff16601c14155b156110dd5750600090506004611161565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611131573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661115a57600060019250925050611161565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161118b8782888561107d565b935093505050935093915050565b60008083601f8401126111aa578182fd5b50813567ffffffffffffffff8111156111c1578182fd5b6020830191508360208260051b8501011115610e7057600080fd5b60008083601f8401126111ed578182fd5b50813567ffffffffffffffff811115611204578182fd5b602083019150836020828501011115610e7057600080fd5b60006020828403121561122d578081fd5b81356112388161167e565b9392505050565b60008060008060008060808789031215611257578182fd5b86356112628161167e565b955060208701359450604087013567ffffffffffffffff80821115611285578384fd5b6112918a838b016111dc565b909650945060608901359150808211156112a9578384fd5b506112b689828a01611199565b979a9699509497509295939492505050565b600080604083850312156112da578182fd5b82356112e58161167e565b946020939093013593505050565b600080600060408486031215611307578283fd5b83359250602084013567ffffffffffffffff811115611324578283fd5b611330868287016111dc565b9497909650939450505050565b60006020828403121561134e578081fd5b5035919050565b60008060008060006080868803121561136c578081fd5b85359450602086013561137e8161167e565b935060408601359250606086013567ffffffffffffffff8111156113a0578182fd5b6113ac888289016111dc565b969995985093965092949392505050565b600080600080606085870312156113d2578384fd5b84359350602085013567ffffffffffffffff8111156113ef578384fd5b6113fb87828801611199565b9598909750949560400135949350505050565b60008151808452815b8181101561143357602081850181015186830182015201611417565b818111156114445782602083870101525b50601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808a60601b168352886014840152876034840152808760601b166054840152508460688301528284608884013791016088019081529695505050505050565b8183823760009101908152919050565b6001600160a01b03881681526020810187905260c0604082018190528101859052848660e083013760008060e08784010152601f19601f870116820185606084015284608084015260e08382030160a084015261151860e082018561140e565b9a9950505050505050505050565b60006060820160018060a01b03808716845260206060818601528287548085526080870191508886528286209450855b81811015611574578554851683526001958601959284019201611556565b505080945050505050826040830152949350505050565b602081526000611238602083018461140e565b6000808335601e198436030181126115b4578283fd5b83018035915067ffffffffffffffff8211156115ce578283fd5b602001915036819003821315610e7057600080fd5b600082198211156115f6576115f6611668565b500190565b60008282101561160d5761160d611668565b500390565b600181811c9082168061162657607f821691505b6020821081141561164757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561166157611661611668565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461049557600080fdfea264697066735822122088762e618c2b1a277cd197d3827a2353100a308db1952ff8e7ae69bbe4309a1c64736f6c63430008040033a264697066735822122069fe65533a87e03d5c8e3ba795d7a7c827a413e1c741ede4e3a5361a37b2cb5064736f6c63430008040033

Deployed Bytecode

0x6080604052600436106200005c5760003560e01c80632f1d8a2314620000615780639567e7ed1462000085578063b1a01a5414620000d0578063bedf4294146200010e578063c67fdb941462000135578063cebed300146200015a575b600080fd5b3480156200006e57600080fd5b506000546040519081526020015b60405180910390f35b3480156200009257600080fd5b50620000aa620000a4366004620008fe565b62000171565b604080516001600160a01b0390941684526020840192909252908201526060016200007c565b348015620000dd57600080fd5b50620000f5620000ef366004620008ba565b62000247565b6040516001600160a01b0390911681526020016200007c565b3480156200011b57600080fd5b50620001336200012d3660046200085c565b62000325565b005b3480156200014257600080fd5b50620000f562000154366004620008fe565b620003a2565b620001336200016b36600462000930565b620003cd565b600080600080600085815481106200019957634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316905080816001600160a01b031663ce757d296040518163ffffffff1660e01b815260040160206040518083038186803b158015620001f457600080fd5b505afa15801562000209573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200022f919062000917565b90945092506001600160a01b03163190509193909250565b600080604051806020016200025c90620007a1565b601f1982820381018352601f909101166040819052620002859086908690309060200162000aa3565b60408051601f1981840301815290829052620002a5929160200162000a74565b6040516020818303038152906040528051906020012090506000848433604051602001620002d69392919062000aa3565b60408051601f1981840301815290829052620002f59160200162000a66565b60405160208183030381529060405280519060200120905060006200031b82846200062e565b9695505050505050565b3360009081526001602052604090205460ff16620003565760405163059ac83f60e51b815260040160405180910390fd5b80846001600160a01b03167f767d0acba39e4cf96349b168ed9d32211fb4940be0f3549d31154941785c9b6a85856040516200039492919062000a8d565b60405180910390a350505050565b60008181548110620003b357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000805490506000838333604051602001620003ec9392919062000aa3565b60408051601f19818403018152908290526200040b9160200162000a66565b60405160208183030381529060405280519060200120905060006200049b3483604051806020016200043d90620007a1565b601f1982820381018352601f90910116604081905262000466908a908a90309060200162000aa3565b60408051601f198184030181529082905262000486929160200162000a74565b6040516020818303038152906040526200068d565b60405163b280a3c760e01b815290915081906001600160a01b0382169063b280a3c790620004d4908d908d908d908d9060040162000b1f565b600060405180830381600087803b158015620004ef57600080fd5b505af115801562000504573d6000803e3d6000fd5b505050506000819080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506001806000846001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b0316847f771dbe09d95eb613ad8d8801b72a555733cd50b33bc510c15a9b51b2cd3fad958888338e8e8e604051620005d49695949392919062000ad1565b60405180910390a386816001600160a01b03167f767d0acba39e4cf96349b168ed9d32211fb4940be0f3549d31154941785c9b6a8b8b6040516200061a92919062000a8d565b60405180910390a350505050505050505050565b604080516001600160f81b03196020808301919091526bffffffffffffffffffffffff193060601b16602183015260358201859052605580830185905283518084039091018152607590920190925280519101206000905b9392505050565b60008084471015620006e65760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b8251620007365760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f6044820152606401620006dd565b8383516020850187f590506001600160a01b038116620007995760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f79000000000000006044820152606401620006dd565b949350505050565b61193d8062000b4d83390190565b80356001600160a01b0381168114620007c757600080fd5b919050565b60008083601f840112620007de578182fd5b50813567ffffffffffffffff811115620007f6578182fd5b6020830191508360208260051b85010111156200081257600080fd5b9250929050565b60008083601f8401126200082b578182fd5b50813567ffffffffffffffff81111562000843578182fd5b6020830191508360208285010111156200081257600080fd5b6000806000806060858703121562000872578384fd5b6200087d85620007af565b9350602085013567ffffffffffffffff81111562000899578384fd5b620008a787828801620007cc565b9598909750949560400135949350505050565b60008060208385031215620008cd578182fd5b823567ffffffffffffffff811115620008e4578283fd5b620008f28582860162000819565b90969095509350505050565b60006020828403121562000910578081fd5b5035919050565b60006020828403121562000929578081fd5b5051919050565b6000806000806000806080878903121562000949578182fd5b86359550602087013567ffffffffffffffff8082111562000968578384fd5b620009768a838b01620007cc565b909750955060408901359450606089013591508082111562000996578384fd5b50620009a589828a0162000819565b979a9699509497509295939492505050565b81835260006020808501945082825b85811015620009f6576001600160a01b03620009e283620007af565b1687529582019590820190600101620009c6565b509495945050505050565b60008151815b8181101562000a23576020818501810151868301520162000a07565b8181111562000a325782828601525b509290920192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600062000686828462000a01565b60006200079962000a86838662000a01565b8462000a01565b60208152600062000799602083018486620009b7565b60408152600062000ab960408301858762000a3d565b905060018060a01b0383166020830152949350505050565b60808152600062000ae760808301888a62000a3d565b6001600160a01b0387166020840152828103604084015262000b0b818688620009b7565b915050826060830152979650505050505050565b84815260606020820152600062000b3b606083018587620009b7565b90508260408301529594505050505056fe60806040526040516200193d3803806200193d833981016040819052620000269162000126565b81516200003b90600690602085019062000063565b50600080546001600160a01b0319166001600160a01b03929092169190911790555062000264565b828054620000719062000211565b90600052602060002090601f016020900481019282620000955760008555620000e0565b82601f10620000b057805160ff1916838001178555620000e0565b82800160010185558215620000e0579182015b82811115620000e0578251825591602001919060010190620000c3565b50620000ee929150620000f2565b5090565b5b80821115620000ee5760008155600101620000f3565b80516001600160a01b03811681146200012157600080fd5b919050565b6000806040838503121562000139578182fd5b82516001600160401b038082111562000150578384fd5b818501915085601f83011262000164578384fd5b8151818111156200017957620001796200024e565b604051601f8201601f19908116603f01168101908382118183101715620001a457620001a46200024e565b81604052828152602093508884848701011115620001c0578687fd5b8691505b82821015620001e35784820184015181830185015290830190620001c4565b82821115620001f457868484830101525b95506200020691505085820162000109565b925050509250929050565b600181811c908216806200022657607f821691505b602082108114156200024857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6116c980620002746000396000f3fe6080604052600436106100ec5760003560e01c806365af1bed1161008a578063b280a3c711610059578063b280a3c7146102c2578063ce757d29146102d5578063d1fbffa0146102eb578063d41304861461030b57600080fd5b806365af1bed1461026157806393fd1844146102815780639a8a059214610296578063affed0e0146102ac57600080fd5b80632f54bf6e116100c65780632f54bf6e146101b15780633034a742146101f15780633bad542614610213578063545a4a3c1461023357600080fd5b8063025e7c271461013257806306fdde031461016f57806319045a251461019157600080fd5b3661012d576040805134815247602082015233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a2005b600080fd5b34801561013e57600080fd5b5061015261014d36600461133d565b610320565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017b57600080fd5b5061018461034a565b604051610166919061158b565b34801561019d57600080fd5b506101526101ac3660046112f3565b6103d8565b3480156101bd57600080fd5b506101e16101cc36600461121c565b60016020526000908152604090205460ff1681565b6040519015158152602001610166565b3480156101fd57600080fd5b5061021161020c36600461133d565b61042d565b005b34801561021f57600080fd5b5061021161022e3660046112c8565b610498565b34801561023f57600080fd5b5061025361024e366004611355565b610607565b604051908152602001610166565b34801561026d57600080fd5b5061021161027c3660046112c8565b610649565b34801561028d57600080fd5b50600254610253565b3480156102a257600080fd5b5061025360055481565b3480156102b857600080fd5b5061025360045481565b6102116102d03660046113bd565b610752565b3480156102e157600080fd5b5061025360035481565b3480156102f757600080fd5b5061018461030636600461123f565b610907565b34801561031757600080fd5b50610253600181565b6002818154811061033057600080fd5b6000918252602090912001546001600160a01b0316905081565b6006805461035790611612565b80601f016020809104026020016040519081016040528092919081815260200182805461038390611612565b80156103d05780601f106103a5576101008083540402835291602001916103d0565b820191906000526020600020905b8154815290600101906020018083116103b357829003601f168201915b505050505081565b600061042583838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061041f9250889150610b299050565b90610b7c565b949350505050565b33301461044d57604051637d06bfa960e01b815260040160405180910390fd5b600381905580610470576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561049557604051630bceea4f60e21b815260040160405180910390fd5b50565b3330146104b857604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205460ff166104f1576040516338ebc58960e11b815260040160405180910390fd5b6104fa82610ba0565b60038190556001600160a01b03821660008181526001602090815260409182902054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e91015b60405180910390a2600054604051632fb7d0a560e21b81526001600160a01b039091169063bedf4294906105889030906002908690600401611526565b600060405180830381600087803b1580156105a257600080fd5b505af11580156105b6573d6000803e3d6000fd5b50505050600354600014156105de576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561060357604051630bceea4f60e21b815260040160405180910390fd5b5050565b60003060055487878787876040516020016106289796959493929190611459565b60405160208183030381529060405280519060200120905095945050505050565b33301461066957604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b038216158061069757506001600160a01b03821660009081526001602052604090205460ff165b156106b557604051631b2ff60b60e21b815260040160405180910390fd5b6001600160a01b038216600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b0319168517905560038590559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910161054b565b6000546001600160a01b0316331461077d5760405163d00b204760e01b815260040160405180910390fd5b600381905560005b828110156108b65760008484838181106107af57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107c4919061121c565b90506001600160a01b03811615806107f457506001600160a01b03811660009081526001602052604090205460ff165b1561081257604051639d2d273160e01b815260040160405180910390fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b031916851790559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910160405180910390a250600101610785565b5060058490556003546108dc576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561090157604051630bceea4f60e21b815260040160405180910390fd5b50505050565b3360009081526001602052604090205460609060ff1661093a576040516338ebc58960e11b815260040160405180910390fd5b600061094b60045489898989610607565b60048054919250600061095d8361164d565b919050555060008060005b85811015610a185760006109a88589898581811061099657634e487b7160e01b600052603260045260246000fd5b90506020028101906101ac919061159e565b9050826001600160a01b0316816001600160a01b0316116109db5760405162ef70e160e51b815260040160405180910390fd5b6001600160a01b038116600090815260016020526040902054909250829060ff1615610a0f5783610a0b8161164d565b9450505b50600101610968565b50600354821015610a3c57604051635245fc1160e01b815260040160405180910390fd5b6000808b6001600160a01b03168b8b8b604051610a5a9291906114a8565b60006040518083038185875af1925050503d8060008114610a97576040519150601f19603f3d011682016040523d82523d6000602084013e610a9c565b606091505b509150915081610abf57604051637a5f4f5f60e01b815260040160405180910390fd5b336001600160a01b03167f9053e9ec105157fac8c9308d63e6b22be5f50fe915a3e567419b624311a02d748d8d8d8d6001600454610afd91906115fb565b8b88604051610b1297969594939291906114b8565b60405180910390a29b9a5050505050505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000610b8b8585610e07565b91509150610b9881610e77565b509392505050565b6001600160a01b0381166000908152600160205260408120805460ff19169055600254908167ffffffffffffffff811115610beb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b5090506000610c246001846115fb565b90505b836001600160a01b031660028281548110610c5257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614610d315760028181548110610c8d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316828281518110610ccb57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250506002805480610d0a57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055610dfe565b6002805480610d5057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055805b610d7f6001856115fb565b811015610df757600283610d948360016115e3565b81518110610db257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001808201855560009485529290932090920180546001600160a01b0319166001600160a01b039093169290921790915501610d74565b5050505050565b60001901610c27565b600080825160411415610e3e5760208301516040840151606085015160001a610e328782858561107d565b94509450505050610e70565b825160401415610e685760208301516040840151610e5d86838361116a565b935093505050610e70565b506000905060025b9250929050565b6000816004811115610e9957634e487b7160e01b600052602160045260246000fd5b1415610ea25750565b6001816004811115610ec457634e487b7160e01b600052602160045260246000fd5b1415610f175760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115610f3957634e487b7160e01b600052602160045260246000fd5b1415610f875760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f0e565b6003816004811115610fa957634e487b7160e01b600052602160045260246000fd5b14156110025760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f0e565b600481600481111561102457634e487b7160e01b600052602160045260246000fd5b14156104955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f0e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156110b45750600090506003611161565b8460ff16601b141580156110cc57508460ff16601c14155b156110dd5750600090506004611161565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611131573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661115a57600060019250925050611161565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161118b8782888561107d565b935093505050935093915050565b60008083601f8401126111aa578182fd5b50813567ffffffffffffffff8111156111c1578182fd5b6020830191508360208260051b8501011115610e7057600080fd5b60008083601f8401126111ed578182fd5b50813567ffffffffffffffff811115611204578182fd5b602083019150836020828501011115610e7057600080fd5b60006020828403121561122d578081fd5b81356112388161167e565b9392505050565b60008060008060008060808789031215611257578182fd5b86356112628161167e565b955060208701359450604087013567ffffffffffffffff80821115611285578384fd5b6112918a838b016111dc565b909650945060608901359150808211156112a9578384fd5b506112b689828a01611199565b979a9699509497509295939492505050565b600080604083850312156112da578182fd5b82356112e58161167e565b946020939093013593505050565b600080600060408486031215611307578283fd5b83359250602084013567ffffffffffffffff811115611324578283fd5b611330868287016111dc565b9497909650939450505050565b60006020828403121561134e578081fd5b5035919050565b60008060008060006080868803121561136c578081fd5b85359450602086013561137e8161167e565b935060408601359250606086013567ffffffffffffffff8111156113a0578182fd5b6113ac888289016111dc565b969995985093965092949392505050565b600080600080606085870312156113d2578384fd5b84359350602085013567ffffffffffffffff8111156113ef578384fd5b6113fb87828801611199565b9598909750949560400135949350505050565b60008151808452815b8181101561143357602081850181015186830182015201611417565b818111156114445782602083870101525b50601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808a60601b168352886014840152876034840152808760601b166054840152508460688301528284608884013791016088019081529695505050505050565b8183823760009101908152919050565b6001600160a01b03881681526020810187905260c0604082018190528101859052848660e083013760008060e08784010152601f19601f870116820185606084015284608084015260e08382030160a084015261151860e082018561140e565b9a9950505050505050505050565b60006060820160018060a01b03808716845260206060818601528287548085526080870191508886528286209450855b81811015611574578554851683526001958601959284019201611556565b505080945050505050826040830152949350505050565b602081526000611238602083018461140e565b6000808335601e198436030181126115b4578283fd5b83018035915067ffffffffffffffff8211156115ce578283fd5b602001915036819003821315610e7057600080fd5b600082198211156115f6576115f6611668565b500190565b60008282101561160d5761160d611668565b500390565b600181811c9082168061162657607f821691505b6020821081141561164757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561166157611661611668565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461049557600080fdfea264697066735822122088762e618c2b1a277cd197d3827a2353100a308db1952ff8e7ae69bbe4309a1c64736f6c63430008040033a264697066735822122069fe65533a87e03d5c8e3ba795d7a7c827a413e1c741ede4e3a5361a37b2cb5064736f6c63430008040033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.