ETH Price: $3,280.82 (-1.51%)

Contract

0x7046DcB2d907b4d4641f29f64EbC1D2B95785B76
 

Overview

ETH Balance

0.16810593698555011 ETH

Eth Value

$551.53 (@ $3,280.82/ETH)
Transaction Hash
Method
Block
From
To
Execute Transact...158702102022-10-31 19:44:35783 days ago1667245475IN
0x7046DcB2...B95785B76
0 ETH0.0008884117.73921329
Execute Transact...154095642022-08-25 14:19:00851 days ago1661437140IN
0x7046DcB2...B95785B76
0 ETH0.003143834.61467764
Execute Transact...154095292022-08-25 14:07:57851 days ago1661436477IN
0x7046DcB2...B95785B76
0 ETH0.0023773619.64215679
Execute Transact...154005242022-08-24 3:23:35852 days ago1661311415IN
0x7046DcB2...B95785B76
0 ETH0.0021713813.19347366
Execute Transact...154004562022-08-24 3:04:18852 days ago1661310258IN
0x7046DcB2...B95785B76
0 ETH0.001453589.27915841
Execute Transact...154004552022-08-24 3:03:41852 days ago1661310221IN
0x7046DcB2...B95785B76
0 ETH0.000576998.41572773
Execute Transact...154004492022-08-24 3:01:51852 days ago1661310111IN
0x7046DcB2...B95785B76
0 ETH0.002329737.41309632
Execute Transact...154004462022-08-24 3:01:12852 days ago1661310072IN
0x7046DcB2...B95785B76
0 ETH0.002395657.44285699
Execute Transact...154004272022-08-24 2:57:14852 days ago1661309834IN
0x7046DcB2...B95785B76
0 ETH0.0005385.88866549
Transfer154004172022-08-24 2:56:02852 days ago1661309762IN
0x7046DcB2...B95785B76
0.61873147 ETH0.0012395354.4444444

Latest 7 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
154005242022-08-24 3:23:35852 days ago1661311415
0x7046DcB2...B95785B76
0.2 ETH
154004552022-08-24 3:03:41852 days ago1661310221
0x7046DcB2...B95785B76
0.3 ETH
154004492022-08-24 3:01:51852 days ago1661310111
0x7046DcB2...B95785B76
0.00124168 ETH
154004492022-08-24 3:01:51852 days ago1661310111
0x7046DcB2...B95785B76
0.01365855 ETH
154004462022-08-24 3:01:12852 days ago1661310072
0x7046DcB2...B95785B76
0.00124168 ETH
154004462022-08-24 3:01:12852 days ago1661310072
0x7046DcB2...B95785B76
0.01365855 ETH
154003792022-08-24 2:47:18852 days ago1661309238  Contract Creation0.06179133 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiSigWallet

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : MultiSigWallet.sol
// 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;
    }
}

File 2 of 5 : ECDSA.sol
// 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));
    }
}

File 3 of 5 : MultiSigFactory.sol
// 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;
    }
}

File 4 of 5 : Strings.sol
// 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);
    }
}

File 5 of 5 : Create2.sol
// 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)));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_factory","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"DUPLICATE_OR_UNORDERED_SIGNATURES","type":"error"},{"inputs":[],"name":"INSUFFICIENT_VALID_SIGNATURES","type":"error"},{"inputs":[],"name":"INVALID_OWNER","type":"error"},{"inputs":[],"name":"INVALID_SIGNATURES_REQUIRED","type":"error"},{"inputs":[],"name":"INVALID_SIGNER","type":"error"},{"inputs":[],"name":"NOT_ENOUGH_SIGNERS","type":"error"},{"inputs":[],"name":"NOT_FACTORY","type":"error"},{"inputs":[],"name":"NOT_OWNER","type":"error"},{"inputs":[],"name":"NOT_SELF","type":"error"},{"inputs":[],"name":"TX_FAILED","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address payable","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"hash","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"result","type":"bytes"}],"name":"ExecuteTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"bool","name":"added","type":"bool"}],"name":"Owner","type":"event"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"},{"internalType":"uint256","name":"newSignaturesRequired","type":"uint256"}],"name":"addSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"executeTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factoryVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"getTransactionHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256","name":"_signaturesRequired","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfOwners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"oldSigner","type":"address"},{"internalType":"uint256","name":"newSignaturesRequired","type":"uint256"}],"name":"removeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signaturesRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSignaturesRequired","type":"uint256"}],"name":"updateSignaturesRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526040516200193d3803806200193d833981016040819052620000269162000126565b81516200003b90600690602085019062000063565b50600080546001600160a01b0319166001600160a01b03929092169190911790555062000264565b828054620000719062000211565b90600052602060002090601f016020900481019282620000955760008555620000e0565b82601f10620000b057805160ff1916838001178555620000e0565b82800160010185558215620000e0579182015b82811115620000e0578251825591602001919060010190620000c3565b50620000ee929150620000f2565b5090565b5b80821115620000ee5760008155600101620000f3565b80516001600160a01b03811681146200012157600080fd5b919050565b6000806040838503121562000139578182fd5b82516001600160401b038082111562000150578384fd5b818501915085601f83011262000164578384fd5b8151818111156200017957620001796200024e565b604051601f8201601f19908116603f01168101908382118183101715620001a457620001a46200024e565b81604052828152602093508884848701011115620001c0578687fd5b8691505b82821015620001e35784820184015181830185015290830190620001c4565b82821115620001f457868484830101525b95506200020691505085820162000109565b925050509250929050565b600181811c908216806200022657607f821691505b602082108114156200024857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6116c980620002746000396000f3fe6080604052600436106100ec5760003560e01c806365af1bed1161008a578063b280a3c711610059578063b280a3c7146102c2578063ce757d29146102d5578063d1fbffa0146102eb578063d41304861461030b57600080fd5b806365af1bed1461026157806393fd1844146102815780639a8a059214610296578063affed0e0146102ac57600080fd5b80632f54bf6e116100c65780632f54bf6e146101b15780633034a742146101f15780633bad542614610213578063545a4a3c1461023357600080fd5b8063025e7c271461013257806306fdde031461016f57806319045a251461019157600080fd5b3661012d576040805134815247602082015233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a2005b600080fd5b34801561013e57600080fd5b5061015261014d36600461133d565b610320565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017b57600080fd5b5061018461034a565b604051610166919061158b565b34801561019d57600080fd5b506101526101ac3660046112f3565b6103d8565b3480156101bd57600080fd5b506101e16101cc36600461121c565b60016020526000908152604090205460ff1681565b6040519015158152602001610166565b3480156101fd57600080fd5b5061021161020c36600461133d565b61042d565b005b34801561021f57600080fd5b5061021161022e3660046112c8565b610498565b34801561023f57600080fd5b5061025361024e366004611355565b610607565b604051908152602001610166565b34801561026d57600080fd5b5061021161027c3660046112c8565b610649565b34801561028d57600080fd5b50600254610253565b3480156102a257600080fd5b5061025360055481565b3480156102b857600080fd5b5061025360045481565b6102116102d03660046113bd565b610752565b3480156102e157600080fd5b5061025360035481565b3480156102f757600080fd5b5061018461030636600461123f565b610907565b34801561031757600080fd5b50610253600181565b6002818154811061033057600080fd5b6000918252602090912001546001600160a01b0316905081565b6006805461035790611612565b80601f016020809104026020016040519081016040528092919081815260200182805461038390611612565b80156103d05780601f106103a5576101008083540402835291602001916103d0565b820191906000526020600020905b8154815290600101906020018083116103b357829003601f168201915b505050505081565b600061042583838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061041f9250889150610b299050565b90610b7c565b949350505050565b33301461044d57604051637d06bfa960e01b815260040160405180910390fd5b600381905580610470576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561049557604051630bceea4f60e21b815260040160405180910390fd5b50565b3330146104b857604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205460ff166104f1576040516338ebc58960e11b815260040160405180910390fd5b6104fa82610ba0565b60038190556001600160a01b03821660008181526001602090815260409182902054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e91015b60405180910390a2600054604051632fb7d0a560e21b81526001600160a01b039091169063bedf4294906105889030906002908690600401611526565b600060405180830381600087803b1580156105a257600080fd5b505af11580156105b6573d6000803e3d6000fd5b50505050600354600014156105de576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561060357604051630bceea4f60e21b815260040160405180910390fd5b5050565b60003060055487878787876040516020016106289796959493929190611459565b60405160208183030381529060405280519060200120905095945050505050565b33301461066957604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b038216158061069757506001600160a01b03821660009081526001602052604090205460ff165b156106b557604051631b2ff60b60e21b815260040160405180910390fd5b6001600160a01b038216600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b0319168517905560038590559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910161054b565b6000546001600160a01b0316331461077d5760405163d00b204760e01b815260040160405180910390fd5b600381905560005b828110156108b65760008484838181106107af57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107c4919061121c565b90506001600160a01b03811615806107f457506001600160a01b03811660009081526001602052604090205460ff165b1561081257604051639d2d273160e01b815260040160405180910390fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b031916851790559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910160405180910390a250600101610785565b5060058490556003546108dc576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561090157604051630bceea4f60e21b815260040160405180910390fd5b50505050565b3360009081526001602052604090205460609060ff1661093a576040516338ebc58960e11b815260040160405180910390fd5b600061094b60045489898989610607565b60048054919250600061095d8361164d565b919050555060008060005b85811015610a185760006109a88589898581811061099657634e487b7160e01b600052603260045260246000fd5b90506020028101906101ac919061159e565b9050826001600160a01b0316816001600160a01b0316116109db5760405162ef70e160e51b815260040160405180910390fd5b6001600160a01b038116600090815260016020526040902054909250829060ff1615610a0f5783610a0b8161164d565b9450505b50600101610968565b50600354821015610a3c57604051635245fc1160e01b815260040160405180910390fd5b6000808b6001600160a01b03168b8b8b604051610a5a9291906114a8565b60006040518083038185875af1925050503d8060008114610a97576040519150601f19603f3d011682016040523d82523d6000602084013e610a9c565b606091505b509150915081610abf57604051637a5f4f5f60e01b815260040160405180910390fd5b336001600160a01b03167f9053e9ec105157fac8c9308d63e6b22be5f50fe915a3e567419b624311a02d748d8d8d8d6001600454610afd91906115fb565b8b88604051610b1297969594939291906114b8565b60405180910390a29b9a5050505050505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000610b8b8585610e07565b91509150610b9881610e77565b509392505050565b6001600160a01b0381166000908152600160205260408120805460ff19169055600254908167ffffffffffffffff811115610beb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b5090506000610c246001846115fb565b90505b836001600160a01b031660028281548110610c5257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614610d315760028181548110610c8d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316828281518110610ccb57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250506002805480610d0a57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055610dfe565b6002805480610d5057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055805b610d7f6001856115fb565b811015610df757600283610d948360016115e3565b81518110610db257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001808201855560009485529290932090920180546001600160a01b0319166001600160a01b039093169290921790915501610d74565b5050505050565b60001901610c27565b600080825160411415610e3e5760208301516040840151606085015160001a610e328782858561107d565b94509450505050610e70565b825160401415610e685760208301516040840151610e5d86838361116a565b935093505050610e70565b506000905060025b9250929050565b6000816004811115610e9957634e487b7160e01b600052602160045260246000fd5b1415610ea25750565b6001816004811115610ec457634e487b7160e01b600052602160045260246000fd5b1415610f175760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115610f3957634e487b7160e01b600052602160045260246000fd5b1415610f875760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f0e565b6003816004811115610fa957634e487b7160e01b600052602160045260246000fd5b14156110025760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f0e565b600481600481111561102457634e487b7160e01b600052602160045260246000fd5b14156104955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f0e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156110b45750600090506003611161565b8460ff16601b141580156110cc57508460ff16601c14155b156110dd5750600090506004611161565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611131573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661115a57600060019250925050611161565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161118b8782888561107d565b935093505050935093915050565b60008083601f8401126111aa578182fd5b50813567ffffffffffffffff8111156111c1578182fd5b6020830191508360208260051b8501011115610e7057600080fd5b60008083601f8401126111ed578182fd5b50813567ffffffffffffffff811115611204578182fd5b602083019150836020828501011115610e7057600080fd5b60006020828403121561122d578081fd5b81356112388161167e565b9392505050565b60008060008060008060808789031215611257578182fd5b86356112628161167e565b955060208701359450604087013567ffffffffffffffff80821115611285578384fd5b6112918a838b016111dc565b909650945060608901359150808211156112a9578384fd5b506112b689828a01611199565b979a9699509497509295939492505050565b600080604083850312156112da578182fd5b82356112e58161167e565b946020939093013593505050565b600080600060408486031215611307578283fd5b83359250602084013567ffffffffffffffff811115611324578283fd5b611330868287016111dc565b9497909650939450505050565b60006020828403121561134e578081fd5b5035919050565b60008060008060006080868803121561136c578081fd5b85359450602086013561137e8161167e565b935060408601359250606086013567ffffffffffffffff8111156113a0578182fd5b6113ac888289016111dc565b969995985093965092949392505050565b600080600080606085870312156113d2578384fd5b84359350602085013567ffffffffffffffff8111156113ef578384fd5b6113fb87828801611199565b9598909750949560400135949350505050565b60008151808452815b8181101561143357602081850181015186830182015201611417565b818111156114445782602083870101525b50601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808a60601b168352886014840152876034840152808760601b166054840152508460688301528284608884013791016088019081529695505050505050565b8183823760009101908152919050565b6001600160a01b03881681526020810187905260c0604082018190528101859052848660e083013760008060e08784010152601f19601f870116820185606084015284608084015260e08382030160a084015261151860e082018561140e565b9a9950505050505050505050565b60006060820160018060a01b03808716845260206060818601528287548085526080870191508886528286209450855b81811015611574578554851683526001958601959284019201611556565b505080945050505050826040830152949350505050565b602081526000611238602083018461140e565b6000808335601e198436030181126115b4578283fd5b83018035915067ffffffffffffffff8211156115ce578283fd5b602001915036819003821315610e7057600080fd5b600082198211156115f6576115f6611668565b500190565b60008282101561160d5761160d611668565b500390565b600181811c9082168061162657607f821691505b6020821081141561164757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561166157611661611668565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461049557600080fdfea264697066735822122088762e618c2b1a277cd197d3827a2353100a308db1952ff8e7ae69bbe4309a1c64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000003e14373efbcbd5be16f6f1634175192ddb127d75000000000000000000000000000000000000000000000000000000000000000c70756e6b20686f6c737465720000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100ec5760003560e01c806365af1bed1161008a578063b280a3c711610059578063b280a3c7146102c2578063ce757d29146102d5578063d1fbffa0146102eb578063d41304861461030b57600080fd5b806365af1bed1461026157806393fd1844146102815780639a8a059214610296578063affed0e0146102ac57600080fd5b80632f54bf6e116100c65780632f54bf6e146101b15780633034a742146101f15780633bad542614610213578063545a4a3c1461023357600080fd5b8063025e7c271461013257806306fdde031461016f57806319045a251461019157600080fd5b3661012d576040805134815247602082015233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a2005b600080fd5b34801561013e57600080fd5b5061015261014d36600461133d565b610320565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017b57600080fd5b5061018461034a565b604051610166919061158b565b34801561019d57600080fd5b506101526101ac3660046112f3565b6103d8565b3480156101bd57600080fd5b506101e16101cc36600461121c565b60016020526000908152604090205460ff1681565b6040519015158152602001610166565b3480156101fd57600080fd5b5061021161020c36600461133d565b61042d565b005b34801561021f57600080fd5b5061021161022e3660046112c8565b610498565b34801561023f57600080fd5b5061025361024e366004611355565b610607565b604051908152602001610166565b34801561026d57600080fd5b5061021161027c3660046112c8565b610649565b34801561028d57600080fd5b50600254610253565b3480156102a257600080fd5b5061025360055481565b3480156102b857600080fd5b5061025360045481565b6102116102d03660046113bd565b610752565b3480156102e157600080fd5b5061025360035481565b3480156102f757600080fd5b5061018461030636600461123f565b610907565b34801561031757600080fd5b50610253600181565b6002818154811061033057600080fd5b6000918252602090912001546001600160a01b0316905081565b6006805461035790611612565b80601f016020809104026020016040519081016040528092919081815260200182805461038390611612565b80156103d05780601f106103a5576101008083540402835291602001916103d0565b820191906000526020600020905b8154815290600101906020018083116103b357829003601f168201915b505050505081565b600061042583838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061041f9250889150610b299050565b90610b7c565b949350505050565b33301461044d57604051637d06bfa960e01b815260040160405180910390fd5b600381905580610470576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561049557604051630bceea4f60e21b815260040160405180910390fd5b50565b3330146104b857604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205460ff166104f1576040516338ebc58960e11b815260040160405180910390fd5b6104fa82610ba0565b60038190556001600160a01b03821660008181526001602090815260409182902054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e91015b60405180910390a2600054604051632fb7d0a560e21b81526001600160a01b039091169063bedf4294906105889030906002908690600401611526565b600060405180830381600087803b1580156105a257600080fd5b505af11580156105b6573d6000803e3d6000fd5b50505050600354600014156105de576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561060357604051630bceea4f60e21b815260040160405180910390fd5b5050565b60003060055487878787876040516020016106289796959493929190611459565b60405160208183030381529060405280519060200120905095945050505050565b33301461066957604051637d06bfa960e01b815260040160405180910390fd5b6001600160a01b038216158061069757506001600160a01b03821660009081526001602052604090205460ff165b156106b557604051631b2ff60b60e21b815260040160405180910390fd5b6001600160a01b038216600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b0319168517905560038590559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910161054b565b6000546001600160a01b0316331461077d5760405163d00b204760e01b815260040160405180910390fd5b600381905560005b828110156108b65760008484838181106107af57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906107c4919061121c565b90506001600160a01b03811615806107f457506001600160a01b03811660009081526001602052604090205460ff165b1561081257604051639d2d273160e01b815260040160405180910390fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916831781556002805493840190557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920180546001600160a01b031916851790559054915160ff909216151582527ffe545f48304051c4029eb2da9927daa59da0414b4b084fdceaf2955b609b899e910160405180910390a250600101610785565b5060058490556003546108dc576040516328d1ab3f60e11b815260040160405180910390fd5b600354600254101561090157604051630bceea4f60e21b815260040160405180910390fd5b50505050565b3360009081526001602052604090205460609060ff1661093a576040516338ebc58960e11b815260040160405180910390fd5b600061094b60045489898989610607565b60048054919250600061095d8361164d565b919050555060008060005b85811015610a185760006109a88589898581811061099657634e487b7160e01b600052603260045260246000fd5b90506020028101906101ac919061159e565b9050826001600160a01b0316816001600160a01b0316116109db5760405162ef70e160e51b815260040160405180910390fd5b6001600160a01b038116600090815260016020526040902054909250829060ff1615610a0f5783610a0b8161164d565b9450505b50600101610968565b50600354821015610a3c57604051635245fc1160e01b815260040160405180910390fd5b6000808b6001600160a01b03168b8b8b604051610a5a9291906114a8565b60006040518083038185875af1925050503d8060008114610a97576040519150601f19603f3d011682016040523d82523d6000602084013e610a9c565b606091505b509150915081610abf57604051637a5f4f5f60e01b815260040160405180910390fd5b336001600160a01b03167f9053e9ec105157fac8c9308d63e6b22be5f50fe915a3e567419b624311a02d748d8d8d8d6001600454610afd91906115fb565b8b88604051610b1297969594939291906114b8565b60405180910390a29b9a5050505050505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000610b8b8585610e07565b91509150610b9881610e77565b509392505050565b6001600160a01b0381166000908152600160205260408120805460ff19169055600254908167ffffffffffffffff811115610beb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b5090506000610c246001846115fb565b90505b836001600160a01b031660028281548110610c5257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614610d315760028181548110610c8d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316828281518110610ccb57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250506002805480610d0a57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055610dfe565b6002805480610d5057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055805b610d7f6001856115fb565b811015610df757600283610d948360016115e3565b81518110610db257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001808201855560009485529290932090920180546001600160a01b0319166001600160a01b039093169290921790915501610d74565b5050505050565b60001901610c27565b600080825160411415610e3e5760208301516040840151606085015160001a610e328782858561107d565b94509450505050610e70565b825160401415610e685760208301516040840151610e5d86838361116a565b935093505050610e70565b506000905060025b9250929050565b6000816004811115610e9957634e487b7160e01b600052602160045260246000fd5b1415610ea25750565b6001816004811115610ec457634e487b7160e01b600052602160045260246000fd5b1415610f175760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115610f3957634e487b7160e01b600052602160045260246000fd5b1415610f875760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f0e565b6003816004811115610fa957634e487b7160e01b600052602160045260246000fd5b14156110025760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f0e565b600481600481111561102457634e487b7160e01b600052602160045260246000fd5b14156104955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f0e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156110b45750600090506003611161565b8460ff16601b141580156110cc57508460ff16601c14155b156110dd5750600090506004611161565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611131573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661115a57600060019250925050611161565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161118b8782888561107d565b935093505050935093915050565b60008083601f8401126111aa578182fd5b50813567ffffffffffffffff8111156111c1578182fd5b6020830191508360208260051b8501011115610e7057600080fd5b60008083601f8401126111ed578182fd5b50813567ffffffffffffffff811115611204578182fd5b602083019150836020828501011115610e7057600080fd5b60006020828403121561122d578081fd5b81356112388161167e565b9392505050565b60008060008060008060808789031215611257578182fd5b86356112628161167e565b955060208701359450604087013567ffffffffffffffff80821115611285578384fd5b6112918a838b016111dc565b909650945060608901359150808211156112a9578384fd5b506112b689828a01611199565b979a9699509497509295939492505050565b600080604083850312156112da578182fd5b82356112e58161167e565b946020939093013593505050565b600080600060408486031215611307578283fd5b83359250602084013567ffffffffffffffff811115611324578283fd5b611330868287016111dc565b9497909650939450505050565b60006020828403121561134e578081fd5b5035919050565b60008060008060006080868803121561136c578081fd5b85359450602086013561137e8161167e565b935060408601359250606086013567ffffffffffffffff8111156113a0578182fd5b6113ac888289016111dc565b969995985093965092949392505050565b600080600080606085870312156113d2578384fd5b84359350602085013567ffffffffffffffff8111156113ef578384fd5b6113fb87828801611199565b9598909750949560400135949350505050565b60008151808452815b8181101561143357602081850181015186830182015201611417565b818111156114445782602083870101525b50601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808a60601b168352886014840152876034840152808760601b166054840152508460688301528284608884013791016088019081529695505050505050565b8183823760009101908152919050565b6001600160a01b03881681526020810187905260c0604082018190528101859052848660e083013760008060e08784010152601f19601f870116820185606084015284608084015260e08382030160a084015261151860e082018561140e565b9a9950505050505050505050565b60006060820160018060a01b03808716845260206060818601528287548085526080870191508886528286209450855b81811015611574578554851683526001958601959284019201611556565b505080945050505050826040830152949350505050565b602081526000611238602083018461140e565b6000808335601e198436030181126115b4578283fd5b83018035915067ffffffffffffffff8211156115ce578283fd5b602001915036819003821315610e7057600080fd5b600082198211156115f6576115f6611668565b500190565b60008282101561160d5761160d611668565b500390565b600181811c9082168061162657607f821691505b6020821081141561164757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561166157611661611668565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461049557600080fdfea264697066735822122088762e618c2b1a277cd197d3827a2353100a308db1952ff8e7ae69bbe4309a1c64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000003e14373efbcbd5be16f6f1634175192ddb127d75000000000000000000000000000000000000000000000000000000000000000c70756e6b20686f6c737465720000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): punk holster
Arg [1] : _factory (address): 0x3E14373EFBcbd5bE16F6f1634175192dDb127D75

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000003e14373efbcbd5be16f6f1634175192ddb127d75
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [3] : 70756e6b20686f6c737465720000000000000000000000000000000000000000


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  ]
[ 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.