MATIC Price: $0.646693 (+4.80%)
Gas: 43 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Produce270888782022-04-13 13:30:06791 days ago1649856606IN
0x22222e08...22e4D7147
0 MATIC0.0207488655.68983678
Produce270865292022-04-13 11:59:14791 days ago1649851154IN
0x22222e08...22e4D7147
0 MATIC0.0112099430.07
Produce270105952022-04-11 13:57:50793 days ago1649685470IN
0x22222e08...22e4D7147
0 MATIC0.0111821530.0099474
Produce267092302022-04-03 20:59:34800 days ago1649019574IN
0x22222e08...22e4D7147
0 MATIC0.0117443530.13203285
0x60806040230094652021-12-27 3:55:22898 days ago1640577322IN
 Create: Factory
0 MATIC0.0286409730

Latest 4 internal transactions

Parent Transaction Hash Block From To Value
270888782022-04-13 13:30:06791 days ago1649856606
0x22222e08...22e4D7147
 Contract Creation0 MATIC
270865292022-04-13 11:59:14791 days ago1649851154
0x22222e08...22e4D7147
 Contract Creation0 MATIC
270105952022-04-11 13:57:50793 days ago1649685470
0x22222e08...22e4D7147
 Contract Creation0 MATIC
267092302022-04-03 20:59:34800 days ago1649019574
0x22222e08...22e4D7147
 Contract Creation0 MATIC
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Factory

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-12-31
*/

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

/**
********************
NFT FACTORY CONTRACT
********************

Although this code is available for viewing on GitHub and Etherscan, the general public is NOT given a license to freely deploy smart contracts based on this code, on any blockchains.

To prevent confusion and increase trust in the audited code bases of smart contracts we produce, we intend for there to be only ONE official Factory address on the blockchain producing these NFT smart contracts, and we are going to point a blockchain domain name at it.

Copyright (c) Intercoin Inc. (the "Developer") All rights reserved.

ALLOWED USAGE.

Provided they agree to all the conditions of this Agreement listed below, anyone is welcome to interact with the official Factory Contract at the address 0x22222e0849704b754be0A372fFcDb9B22e4D7147 to produce smart contract instances, or to interact with instances produced in this manner by others.

Any user (the "Customer") of software powered by this code MUST agree to the following, in order to use it. If you do not agree, refrain from using the software:

DISCLAIMERS AND DISCLOSURES.

Customer expressly recognizes that nearly any software may contain unforeseen bugs or other defects, due to the nature of software development. Moreover, because of the immutable nature of smart contracts, any such defects will persist in the software once it is deployed onto the blockchain. Customer therefore expressly acknowledges that any responsibility to obtain outside audits and analysis of any software produced by Developer rests solely with Customer.

Customer understands and acknowledges that the Software is being delivered as-is, and may contain potential defects. While Developer and its staff and partners have exercised care and best efforts in an attempt to produce solid, working software products, Developer EXPRESSLY DISCLAIMS MAKING ANY GUARANTEES, REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, ABOUT THE FITNESS OF THE SOFTWARE, INCLUDING LACK OF DEFECTS, MERCHANTABILITY OR SUITABILITY FOR A PARTICULAR PURPOSE.

Customer agrees that neither Developer nor any other party has made any representations or warranties, nor has the Customer relied on any representations or warranties, express or implied, including any implied warranty of merchantability or fitness for any particular purpose with respect to the Software. Customer acknowledges that no affirmation of fact or statement (whether written or oral) made by Developer, its representatives, or any other party outside of this Agreement with respect to the Software shall be deemed to create any express or implied warranty on the part of Developer or its representatives.

INDEMNIFICATION.

Customer agrees to indemnify, defend and hold Developer and its officers, directors, employees, agents and contractors harmless from any loss, cost, expense (including attorney’s fees and expenses), associated with or related to any demand, claim, liability, damages or cause of action of any kind or character (collectively referred to as “claim”), in any manner arising out of or relating to any third party demand, dispute, mediation, arbitration, litigation, or any violation or breach of any provision of this Agreement by Customer.

NO WARRANTY.

THE SOFTWARE IS PROVIDED “AS IS” WITHOUT WARRANTY. DEVELOPER SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR EXEMPLARY DAMAGES FOR BREACH OF THE LIMITED WARRANTY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, DEVELOPER EXPRESSLY DISCLAIMS, AND CUSTOMER EXPRESSLY WAIVES, ALL OTHER WARRANTIES, WHETHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR USE, OR ANY WARRANTY ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE, AS WELL AS ANY WARRANTIES THAT THE SOFTWARE (OR ANY ELEMENTS THEREOF) WILL ACHIEVE A PARTICULAR RESULT, OR WILL BE UNINTERRUPTED OR ERROR-FREE. THE TERM OF ANY IMPLIED WARRANTIES THAT CANNOT BE DISCLAIMED UNDER APPLICABLE LAW SHALL BE LIMITED TO THE DURATION OF THE FOREGOING EXPRESS WARRANTY PERIOD. SOME STATES DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES AND/OR DO NOT ALLOW LIMITATIONS ON THE AMOUNT OF TIME AN IMPLIED WARRANTY LASTS, SO THE ABOVE LIMITATIONS MAY NOT APPLY TO CUSTOMER. THIS LIMITED WARRANTY GIVES CUSTOMER SPECIFIC LEGAL RIGHTS. CUSTOMER MAY HAVE OTHER RIGHTS WHICH VARY FROM STATE TO STATE. 

LIMITATION OF LIABILITY. 

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL DEVELOPER BE LIABLE UNDER ANY THEORY OF LIABILITY FOR ANY CONSEQUENTIAL, INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR EXEMPLARY DAMAGES OF ANY KIND, INCLUDING, WITHOUT LIMITATION, DAMAGES ARISING FROM LOSS OF PROFITS, REVENUE, DATA OR USE, OR FROM INTERRUPTED COMMUNICATIONS OR DAMAGED DATA, OR FROM ANY DEFECT OR ERROR OR IN CONNECTION WITH CUSTOMER'S ACQUISITION OF SUBSTITUTE GOODS OR SERVICES OR MALFUNCTION OF THE SOFTWARE, OR ANY SUCH DAMAGES ARISING FROM BREACH OF CONTRACT OR WARRANTY OR FROM NEGLIGENCE OR STRICT LIABILITY, EVEN IF DEVELOPER OR ANY OTHER PERSON HAS BEEN ADVISED OR SHOULD KNOW OF THE POSSIBILITY OF SUCH DAMAGES, AND NOTWITHSTANDING THE FAILURE OF ANY REMEDY TO ACHIEVE ITS INTENDED PURPOSE. WITHOUT LIMITING THE FOREGOING OR ANY OTHER LIMITATION OF LIABILITY HEREIN, REGARDLESS OF THE FORM OF ACTION, WHETHER FOR BREACH OF CONTRACT, WARRANTY, NEGLIGENCE, STRICT LIABILITY IN TORT OR OTHERWISE, CUSTOMER'S EXCLUSIVE REMEDY AND THE TOTAL LIABILITY OF DEVELOPER OR ANY SUPPLIER OF SERVICES TO DEVELOPER FOR ANY CLAIMS ARISING IN ANY WAY IN CONNECTION WITH OR RELATED TO THIS AGREEMENT, THE SOFTWARE, FOR ANY CAUSE WHATSOEVER, SHALL NOT EXCEED 1,000 USD.

TRADEMARKS.

This Agreement does not grant you any right in any trademark or logo of Developer or its affiliates.

LINK REQUIREMENTS.

Operators of any Websites and Apps which make use of smart contracts based on this code must conspicuously include the following phrase in their website, featuring a clickable link that takes users to nftremix.com:
"Visit https://nftremix.com to release your own NFT collection."

STAKING REQUIREMENTS.

In the future, Developer may begin requiring staking of ITR tokens in order to take further actions (such as producing series and minting tokens). Any staking requirements will first be announced on Developer's website (intercoin.org) four weeks in advance. Staking requirements will not apply to any actions already taken before they are put in place.

CUSTOM ARRANGEMENTS.

Reach out to us at intercoin.org if you are looking to obtain ITR tokens in bulk, remove link requirements forever, remove staking requirements forever, or get custom work done with your NFT projects.

ENTIRE AGREEMENT

This Agreement contains the entire agreement and understanding among the parties hereto with respect to the subject matter hereof, and supersedes all prior and contemporaneous agreements, understandings, inducements and conditions, express or implied, oral or written, of any nature whatsoever with respect to the subject matter hereof. The express terms hereof control and supersede any course of performance and/or usage of the trade inconsistent with any of the terms hereof. Provisions from previous Agreements executed between Customer and Developer., which are not expressly dealt with in this Agreement, will remain in effect.

SUCCESSORS AND ASSIGNS

This Agreement shall continue to apply to any successors or assigns of either party, or any corporation or other entity acquiring all or substantially all the assets and business of either party whether by operation of law or otherwise.

ARBITRATION

All disputes related to this agreement shall be governed by and interpreted in accordance with the laws of New York, without regard to principles of conflict of laws. The parties to this agreement will submit all disputes arising under this agreement to arbitration in New York City, New York before a single arbitrator of the American Arbitration Association (“AAA”). The arbitrator shall be selected by application of the rules of the AAA, or by mutual agreement of the parties, except that such arbitrator shall be an attorney admitted to practice law New York. No party to this agreement will challenge the jurisdiction or venue provisions as provided in this section.
**/

// File: contracts/interfaces/IFactory.sol


pragma solidity ^0.8.0;

interface IFactory {
    function canOverrideCostManager(address operator, address instance) external view returns (bool);
}

// File: @openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: contracts/Factory.sol


pragma solidity ^0.8.0;




interface IInstanceContract {
    function initialize(string memory name_, string memory symbol_, string memory contractURI_, address costManager_, address msgCaller_) external;
    function name() view external returns(string memory);
    function symbol() view external returns(string memory);
    function owner() view external returns(address);
}

contract Factory is Ownable, IFactory {
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;
    
    address public costManager;
    address public implementation;
    mapping(bytes32 => address) public getInstance; // keccak256("name", "symbol") => instance address
    mapping(address => InstanceInfo) private _instanceInfos;
    address[] public instances;
    EnumerableSetUpgradeable.AddressSet private _renouncedOverrideCostManager;
       
    struct InstanceInfo {
        string name;
        string symbol;
        address creator;
    }
    
    event InstanceCreated(string name, string symbol, address instance, uint256 length);
    event RenouncedOverrideCostManagerForInstance(address instance);

    constructor (
        address instance, 
        address costManager_
    ) {
        implementation = instance;
        costManager = costManager_;
    }

    /**
    * @dev returns the count of instances
    */
    function instancesCount() external view returns (uint256) {
        return instances.length;
    }
    
    /**
    * @dev set the costManager for all future calls to produce()
    */
    function setCostManager(address costManager_) public onlyOwner {
        costManager = costManager_;
    }
    
    /**
    * @dev renounces ability to override cost manager on instances
    */
    function renounceOverrideCostManager(address instance) public onlyOwner {
        _renouncedOverrideCostManager.add(instance);
        emit RenouncedOverrideCostManagerForInstance(instance);
    }
    
    /** 
    * @dev instance can call this to find out whether a given address can set the cost manager contract
    * @param account the address to test
    * @param instance the instance to test
    */
    function canOverrideCostManager(
        address account, 
        address instance
    ) 
        external 
        override 
        view
        returns (bool) 
    {
        return (account == owner() && !_renouncedOverrideCostManager.contains(instance));
    }

    /**
    * @dev produces new instance with defined name and symbol
    * @param name name of new token
    * @param symbol symbol of new token
    * @return instance address of new contract
    */
    function produce(
        string memory name,
        string memory symbol,
        string memory contractURI
    ) 
        public 
        returns (address instance) 
    {
        _createInstanceValidate(name, symbol);
        address instanceCreated = _createInstance(name, symbol);
        require(instanceCreated != address(0), "StakingFactory: INSTANCE_CREATION_FAILED");
        address ms = _msgSender();
        IInstanceContract(instanceCreated).initialize(
            name, 
            symbol, 
            contractURI, 
            costManager, 
            ms
        );
        Ownable(instanceCreated).transferOwnership(ms);
        instance = instanceCreated;
    }
    
     /**
    * @dev returns instance info
    * @param instanceId instance ID
    */
    function getInstanceInfo(
        uint256 instanceId
    ) public view returns(InstanceInfo memory) {
        
        address instance = instances[instanceId];
        return _instanceInfos[instance];
    }
    
    
    function _createInstanceValidate(
        string memory name,
        string memory symbol
    ) internal view {
        require((bytes(name)).length != 0, "Factory: EMPTY NAME");
        require((bytes(symbol)).length != 0, "Factory: EMPTY SYMBOL");
        address instance = getInstance[keccak256(abi.encodePacked(name, symbol))];
        require(instance == address(0), "Factory: ALREADY_EXISTS");
    }

    function _createInstance(
        string memory name,
        string memory symbol
    ) internal returns (address instance) {
        
        instance = _createClone(implementation);
        
        getInstance[keccak256(abi.encodePacked(name, symbol))] = instance;
        instances.push(instance);
        _instanceInfos[instance] = InstanceInfo(
            name,
            symbol,
            _msgSender()
        );
        emit InstanceCreated(name, symbol, instance, instances.length);
    }

    function _createClone(address target) internal returns (address result) {
        bytes20 targetBytes = bytes20(target);
        assembly {
        let clone := mload(0x40)
        mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
        mstore(add(clone, 0x14), targetBytes)
        mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
        result := create(0, clone, 0x37)
        }
    }
        
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"instance","type":"address"},{"internalType":"address","name":"costManager_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"address","name":"instance","type":"address"},{"indexed":false,"internalType":"uint256","name":"length","type":"uint256"}],"name":"InstanceCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"instance","type":"address"}],"name":"RenouncedOverrideCostManagerForInstance","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"instance","type":"address"}],"name":"canOverrideCostManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"getInstance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"instanceId","type":"uint256"}],"name":"getInstanceInfo","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"creator","type":"address"}],"internalType":"struct Factory.InstanceInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"instances","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"instancesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"contractURI","type":"string"}],"name":"produce","outputs":[{"internalType":"address","name":"instance","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"instance","type":"address"}],"name":"renounceOverrideCostManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"costManager_","type":"address"}],"name":"setCostManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161107138038061107183398101604081905261002f916100d5565b61003833610069565b600280546001600160a01b039384166001600160a01b03199182161790915560018054929093169116179055610108565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100d057600080fd5b919050565b600080604083850312156100e857600080fd5b6100f1836100b9565b91506100ff602084016100b9565b90509250929050565b610f5a806101176000396000f3fe608060405234801561001057600080fd5b50600436106100bf5760003560e01c80638da5cb5b1161007c5780638da5cb5b146101645780639e67ae071461016c578063a2f7b3a51461017f578063bae2136414610192578063cecd949a146101a5578063e4b1225e146101b8578063f2fde38b146101db57600080fd5b80630d0cd812146100c457806346eff2b1146100ed578063552f75a0146101025780635c60da1b14610113578063624a23e014610133578063715018a61461015c575b600080fd5b6100d76100d2366004610c4c565b6101ee565b6040516100e49190610e32565b60405180910390f35b6101006100fb366004610bfe565b610390565b005b6005546040519081526020016100e4565b600254610126906001600160a01b031681565b6040516100e49190610d48565b610126610141366004610c4c565b6003602052600090815260409020546001600160a01b031681565b6101006103ea565b610126610425565b61010061017a366004610bfe565b610434565b61012661018d366004610c4c565b6104a9565b6101266101a0366004610c65565b6104d3565b600154610126906001600160a01b031681565b6101cb6101c6366004610c19565b610628565b60405190151581526020016100e4565b6101006101e9366004610bfe565b610663565b6040805160608082018352808252602082015260009181019190915260006005838154811061021f5761021f610ef8565b60009182526020808320909101546001600160a01b031680835260049091526040918290208251606081019093528054919350908290829061026090610ebd565b80601f016020809104026020016040519081016040528092919081815260200182805461028c90610ebd565b80156102d95780601f106102ae576101008083540402835291602001916102d9565b820191906000526020600020905b8154815290600101906020018083116102bc57829003601f168201915b505050505081526020016001820180546102f290610ebd565b80601f016020809104026020016040519081016040528092919081815260200182805461031e90610ebd565b801561036b5780601f106103405761010080835404028352916020019161036b565b820191906000526020600020905b81548152906001019060200180831161034e57829003601f168201915b5050509183525050600291909101546001600160a01b03166020909101529392505050565b33610399610425565b6001600160a01b0316146103c85760405162461bcd60e51b81526004016103bf90610dfd565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b336103f3610425565b6001600160a01b0316146104195760405162461bcd60e51b81526004016103bf90610dfd565b6104236000610703565b565b6000546001600160a01b031690565b3361043d610425565b6001600160a01b0316146104635760405162461bcd60e51b81526004016103bf90610dfd565b61046e600682610753565b507feb1eabd0928b11d9738cf6fa3119a3219551e0a94426574fa8067df9dd1bec928160405161049e9190610d48565b60405180910390a150565b600581815481106104b957600080fd5b6000918252602090912001546001600160a01b0316905081565b60006104df8484610768565b60006104eb8585610889565b90506001600160a01b0381166105545760405162461bcd60e51b815260206004820152602860248201527f5374616b696e67466163746f72793a20494e5354414e43455f4352454154494f6044820152671397d1905253115160c21b60648201526084016103bf565b600154604051636b687d7760e11b815233916001600160a01b038481169263d6d0faee9261058e928b928b928b9216908890600401610d9e565b600060405180830381600087803b1580156105a857600080fd5b505af11580156105bc573d6000803e3d6000fd5b505060405163f2fde38b60e01b81526001600160a01b038516925063f2fde38b91506105ec908490600401610d48565b600060405180830381600087803b15801561060657600080fd5b505af115801561061a573d6000803e3d6000fd5b509398975050505050505050565b6000610632610425565b6001600160a01b0316836001600160a01b031614801561065a57506106586006836109f9565b155b90505b92915050565b3361066c610425565b6001600160a01b0316146106925760405162461bcd60e51b81526004016103bf90610dfd565b6001600160a01b0381166106f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bf565b61070081610703565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061065a836001600160a01b038416610a1b565b81516107ac5760405162461bcd60e51b8152602060048201526013602482015272466163746f72793a20454d505459204e414d4560681b60448201526064016103bf565b80516107f25760405162461bcd60e51b8152602060048201526015602482015274119858dd1bdc9e4e8811535415164814d6535093d3605a1b60448201526064016103bf565b600060036000848460405160200161080b929190610d19565b60408051601f19818403018152918152815160209283012083529082019290925201600020546001600160a01b0316905080156108845760405162461bcd60e51b8152602060048201526017602482015276466163746f72793a20414c52454144595f45584953545360481b60448201526064016103bf565b505050565b6002546000906108a1906001600160a01b0316610a6a565b9050806003600085856040516020016108bb929190610d19565b60408051601f198184030181529181528151602092830120835282820193909352908201600090812080546001600160a01b039586166001600160a01b03199182161790915560058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018054958716959091168517905582516060810184528781528083018790523381850152938152600482529190912082518051919261097192849290910190610abc565b50602082810151805161098a9260018501920190610abc565b5060409182015160029190910180546001600160a01b0319166001600160a01b0390921691909117905560055490517fd72ed290f33fdcda2caebbec226872d6e876f58141ddbf9c58624a34605da16c916109eb9186918691869190610d5c565b60405180910390a192915050565b6001600160a01b0381166000908152600183016020526040812054151561065a565b6000818152600183016020526040812054610a625750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561065d565b50600061065d565b6000808260601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f0949350505050565b828054610ac890610ebd565b90600052602060002090601f016020900481019282610aea5760008555610b30565b82601f10610b0357805160ff1916838001178555610b30565b82800160010185558215610b30579182015b82811115610b30578251825591602001919060010190610b15565b50610b3c929150610b40565b5090565b5b80821115610b3c5760008155600101610b41565b80356001600160a01b0381168114610b6c57600080fd5b919050565b600082601f830112610b8257600080fd5b813567ffffffffffffffff80821115610b9d57610b9d610f0e565b604051601f8301601f19908116603f01168101908282118183101715610bc557610bc5610f0e565b81604052838152866020858801011115610bde57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215610c1057600080fd5b61065a82610b55565b60008060408385031215610c2c57600080fd5b610c3583610b55565b9150610c4360208401610b55565b90509250929050565b600060208284031215610c5e57600080fd5b5035919050565b600080600060608486031215610c7a57600080fd5b833567ffffffffffffffff80821115610c9257600080fd5b610c9e87838801610b71565b94506020860135915080821115610cb457600080fd5b610cc087838801610b71565b93506040860135915080821115610cd657600080fd5b50610ce386828701610b71565b9150509250925092565b60008151808452610d05816020860160208601610e8d565b601f01601f19169290920160200192915050565b60008351610d2b818460208801610e8d565b835190830190610d3f818360208801610e8d565b01949350505050565b6001600160a01b0391909116815260200190565b608081526000610d6f6080830187610ced565b8281036020840152610d818187610ced565b6001600160a01b0395909516604084015250506060015292915050565b60a081526000610db160a0830188610ced565b8281036020840152610dc38188610ced565b90508281036040840152610dd78187610ced565b6001600160a01b0395861660608501529390941660809092019190915250949350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602081526000825160606020840152610e4e6080840182610ced565b90506020840151601f19848303016040850152610e6b8282610ced565b604095909501516001600160a01b031660609490940193909352509192915050565b60005b83811015610ea8578181015183820152602001610e90565b83811115610eb7576000848401525b50505050565b600181811c90821680610ed157607f821691505b60208210811415610ef257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122001f42d0e58350c27b28481fc71e9804184e5f13fbd247ceaaeebc3e8a84cce2664736f6c6343000807003300000000000000000000000019333e597c8b2dfffa10be3fcad05939bdfbb6be0000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100bf5760003560e01c80638da5cb5b1161007c5780638da5cb5b146101645780639e67ae071461016c578063a2f7b3a51461017f578063bae2136414610192578063cecd949a146101a5578063e4b1225e146101b8578063f2fde38b146101db57600080fd5b80630d0cd812146100c457806346eff2b1146100ed578063552f75a0146101025780635c60da1b14610113578063624a23e014610133578063715018a61461015c575b600080fd5b6100d76100d2366004610c4c565b6101ee565b6040516100e49190610e32565b60405180910390f35b6101006100fb366004610bfe565b610390565b005b6005546040519081526020016100e4565b600254610126906001600160a01b031681565b6040516100e49190610d48565b610126610141366004610c4c565b6003602052600090815260409020546001600160a01b031681565b6101006103ea565b610126610425565b61010061017a366004610bfe565b610434565b61012661018d366004610c4c565b6104a9565b6101266101a0366004610c65565b6104d3565b600154610126906001600160a01b031681565b6101cb6101c6366004610c19565b610628565b60405190151581526020016100e4565b6101006101e9366004610bfe565b610663565b6040805160608082018352808252602082015260009181019190915260006005838154811061021f5761021f610ef8565b60009182526020808320909101546001600160a01b031680835260049091526040918290208251606081019093528054919350908290829061026090610ebd565b80601f016020809104026020016040519081016040528092919081815260200182805461028c90610ebd565b80156102d95780601f106102ae576101008083540402835291602001916102d9565b820191906000526020600020905b8154815290600101906020018083116102bc57829003601f168201915b505050505081526020016001820180546102f290610ebd565b80601f016020809104026020016040519081016040528092919081815260200182805461031e90610ebd565b801561036b5780601f106103405761010080835404028352916020019161036b565b820191906000526020600020905b81548152906001019060200180831161034e57829003601f168201915b5050509183525050600291909101546001600160a01b03166020909101529392505050565b33610399610425565b6001600160a01b0316146103c85760405162461bcd60e51b81526004016103bf90610dfd565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b336103f3610425565b6001600160a01b0316146104195760405162461bcd60e51b81526004016103bf90610dfd565b6104236000610703565b565b6000546001600160a01b031690565b3361043d610425565b6001600160a01b0316146104635760405162461bcd60e51b81526004016103bf90610dfd565b61046e600682610753565b507feb1eabd0928b11d9738cf6fa3119a3219551e0a94426574fa8067df9dd1bec928160405161049e9190610d48565b60405180910390a150565b600581815481106104b957600080fd5b6000918252602090912001546001600160a01b0316905081565b60006104df8484610768565b60006104eb8585610889565b90506001600160a01b0381166105545760405162461bcd60e51b815260206004820152602860248201527f5374616b696e67466163746f72793a20494e5354414e43455f4352454154494f6044820152671397d1905253115160c21b60648201526084016103bf565b600154604051636b687d7760e11b815233916001600160a01b038481169263d6d0faee9261058e928b928b928b9216908890600401610d9e565b600060405180830381600087803b1580156105a857600080fd5b505af11580156105bc573d6000803e3d6000fd5b505060405163f2fde38b60e01b81526001600160a01b038516925063f2fde38b91506105ec908490600401610d48565b600060405180830381600087803b15801561060657600080fd5b505af115801561061a573d6000803e3d6000fd5b509398975050505050505050565b6000610632610425565b6001600160a01b0316836001600160a01b031614801561065a57506106586006836109f9565b155b90505b92915050565b3361066c610425565b6001600160a01b0316146106925760405162461bcd60e51b81526004016103bf90610dfd565b6001600160a01b0381166106f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bf565b61070081610703565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061065a836001600160a01b038416610a1b565b81516107ac5760405162461bcd60e51b8152602060048201526013602482015272466163746f72793a20454d505459204e414d4560681b60448201526064016103bf565b80516107f25760405162461bcd60e51b8152602060048201526015602482015274119858dd1bdc9e4e8811535415164814d6535093d3605a1b60448201526064016103bf565b600060036000848460405160200161080b929190610d19565b60408051601f19818403018152918152815160209283012083529082019290925201600020546001600160a01b0316905080156108845760405162461bcd60e51b8152602060048201526017602482015276466163746f72793a20414c52454144595f45584953545360481b60448201526064016103bf565b505050565b6002546000906108a1906001600160a01b0316610a6a565b9050806003600085856040516020016108bb929190610d19565b60408051601f198184030181529181528151602092830120835282820193909352908201600090812080546001600160a01b039586166001600160a01b03199182161790915560058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018054958716959091168517905582516060810184528781528083018790523381850152938152600482529190912082518051919261097192849290910190610abc565b50602082810151805161098a9260018501920190610abc565b5060409182015160029190910180546001600160a01b0319166001600160a01b0390921691909117905560055490517fd72ed290f33fdcda2caebbec226872d6e876f58141ddbf9c58624a34605da16c916109eb9186918691869190610d5c565b60405180910390a192915050565b6001600160a01b0381166000908152600183016020526040812054151561065a565b6000818152600183016020526040812054610a625750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561065d565b50600061065d565b6000808260601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f0949350505050565b828054610ac890610ebd565b90600052602060002090601f016020900481019282610aea5760008555610b30565b82601f10610b0357805160ff1916838001178555610b30565b82800160010185558215610b30579182015b82811115610b30578251825591602001919060010190610b15565b50610b3c929150610b40565b5090565b5b80821115610b3c5760008155600101610b41565b80356001600160a01b0381168114610b6c57600080fd5b919050565b600082601f830112610b8257600080fd5b813567ffffffffffffffff80821115610b9d57610b9d610f0e565b604051601f8301601f19908116603f01168101908282118183101715610bc557610bc5610f0e565b81604052838152866020858801011115610bde57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215610c1057600080fd5b61065a82610b55565b60008060408385031215610c2c57600080fd5b610c3583610b55565b9150610c4360208401610b55565b90509250929050565b600060208284031215610c5e57600080fd5b5035919050565b600080600060608486031215610c7a57600080fd5b833567ffffffffffffffff80821115610c9257600080fd5b610c9e87838801610b71565b94506020860135915080821115610cb457600080fd5b610cc087838801610b71565b93506040860135915080821115610cd657600080fd5b50610ce386828701610b71565b9150509250925092565b60008151808452610d05816020860160208601610e8d565b601f01601f19169290920160200192915050565b60008351610d2b818460208801610e8d565b835190830190610d3f818360208801610e8d565b01949350505050565b6001600160a01b0391909116815260200190565b608081526000610d6f6080830187610ced565b8281036020840152610d818187610ced565b6001600160a01b0395909516604084015250506060015292915050565b60a081526000610db160a0830188610ced565b8281036020840152610dc38188610ced565b90508281036040840152610dd78187610ced565b6001600160a01b0395861660608501529390941660809092019190915250949350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602081526000825160606020840152610e4e6080840182610ced565b90506020840151601f19848303016040850152610e6b8282610ced565b604095909501516001600160a01b031660609490940193909352509192915050565b60005b83811015610ea8578181015183820152602001610e90565b83811115610eb7576000848401525b50505050565b600181811c90821680610ed157607f821691505b60208210811415610ef257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122001f42d0e58350c27b28481fc71e9804184e5f13fbd247ceaaeebc3e8a84cce2664736f6c63430008070033

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

00000000000000000000000019333e597c8b2dfffa10be3fcad05939bdfbb6be0000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : instance (address): 0x19333e597C8B2dfffa10be3FCad05939BdFBb6be
Arg [1] : costManager_ (address): 0x0000000000000000000000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000019333e597c8b2dfffa10be3fcad05939bdfbb6be
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

25116:4770:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28218:213;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26298:108;;;;;;:::i;:::-;;:::i;:::-;;26103:100;26179:9;:16;26103:100;;7970:25:1;;;7958:2;7943:18;26103:100:0;7824:177:1;25277:29:0;;;;;-1:-1:-1;;;;;25277:29:0;;;;;;;;;;:::i;25313:46::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;25313:46:0;;;23871:103;;;:::i;23220:87::-;;;:::i;26503:199::-;;;;;;:::i;:::-;;:::i;25479:26::-;;;;;;:::i;:::-;;:::i;27412:705::-;;;;;;:::i;:::-;;:::i;25244:26::-;;;;;-1:-1:-1;;;;;25244:26:0;;;26923:275;;;;;;:::i;:::-;;:::i;:::-;;;3601:14:1;;3594:22;3576:41;;3564:2;3549:18;26923:275:0;3436:187:1;24129:201:0;;;;;;:::i;:::-;;:::i;28218:213::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;28341:16:0;28360:9;28370:10;28360:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;28360:21:0;28399:24;;;:14;:24;;;;;;;;28392:31;;;;;;;;;;28360:21;;-1:-1:-1;28399:24:0;28392:31;;28399:24;;28392:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28392:31:0;;;-1:-1:-1;;28392:31:0;;;;;;-1:-1:-1;;;;;28392:31:0;;;;;;;28218:213;-1:-1:-1;;;28218:213:0:o;26298:108::-;22024:10;23440:7;:5;:7::i;:::-;-1:-1:-1;;;;;23440:23:0;;23432:68;;;;-1:-1:-1;;;23432:68:0;;;;;;;:::i;:::-;;;;;;;;;26372:11:::1;:26:::0;;-1:-1:-1;;;;;;26372:26:0::1;-1:-1:-1::0;;;;;26372:26:0;;;::::1;::::0;;;::::1;::::0;;26298:108::o;23871:103::-;22024:10;23440:7;:5;:7::i;:::-;-1:-1:-1;;;;;23440:23:0;;23432:68;;;;-1:-1:-1;;;23432:68:0;;;;;;;:::i;:::-;23936:30:::1;23963:1;23936:18;:30::i;:::-;23871:103::o:0;23220:87::-;23266:7;23293:6;-1:-1:-1;;;;;23293:6:0;;23220:87::o;26503:199::-;22024:10;23440:7;:5;:7::i;:::-;-1:-1:-1;;;;;23440:23:0;;23432:68;;;;-1:-1:-1;;;23432:68:0;;;;;;;:::i;:::-;26586:43:::1;:29;26620:8:::0;26586:33:::1;:43::i;:::-;;26645:49;26685:8;26645:49;;;;;;:::i;:::-;;;;;;;;26503:199:::0;:::o;25479:26::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25479:26:0;;-1:-1:-1;25479:26:0;:::o;27412:705::-;27568:16;27603:37;27627:4;27633:6;27603:23;:37::i;:::-;27651:23;27677:29;27693:4;27699:6;27677:15;:29::i;:::-;27651:55;-1:-1:-1;;;;;;27725:29:0;;27717:82;;;;-1:-1:-1;;;27717:82:0;;5488:2:1;27717:82:0;;;5470:21:1;5527:2;5507:18;;;5500:30;5566:34;5546:18;;;5539:62;-1:-1:-1;;;5617:18:1;;;5610:38;5665:19;;27717:82:0;5286:404:1;27717:82:0;27975:11;;27846:169;;-1:-1:-1;;;27846:169:0;;22024:10;;-1:-1:-1;;;;;27846:45:0;;;;;;:169;;27906:4;;27926:6;;27948:11;;27975;;22024:10;;27846:169;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;28026:46:0;;-1:-1:-1;;;28026:46:0;;-1:-1:-1;;;;;28026:42:0;;;-1:-1:-1;28026:42:0;;-1:-1:-1;28026:46:0;;28069:2;;28026:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28094:15:0;;27412:705;-1:-1:-1;;;;;;;;27412:705:0:o;26923:275::-;27087:4;27129:7;:5;:7::i;:::-;-1:-1:-1;;;;;27118:18:0;:7;-1:-1:-1;;;;;27118:18:0;;:71;;;;-1:-1:-1;27141:48:0;:29;27180:8;27141:38;:48::i;:::-;27140:49;27118:71;27110:80;;26923:275;;;;;:::o;24129:201::-;22024:10;23440:7;:5;:7::i;:::-;-1:-1:-1;;;;;23440:23:0;;23432:68;;;;-1:-1:-1;;;23432:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;24218:22:0;::::1;24210:73;;;::::0;-1:-1:-1;;;24210:73:0;;5897:2:1;24210:73:0::1;::::0;::::1;5879:21:1::0;5936:2;5916:18;;;5909:30;5975:34;5955:18;;;5948:62;-1:-1:-1;;;6026:18:1;;;6019:36;6072:19;;24210:73:0::1;5695:402:1::0;24210:73:0::1;24294:28;24313:8;24294:18;:28::i;:::-;24129:201:::0;:::o;24490:191::-;24564:16;24583:6;;-1:-1:-1;;;;;24600:17:0;;;-1:-1:-1;;;;;;24600:17:0;;;;;;24633:40;;24583:6;;;;;;;24633:40;;24564:16;24633:40;24553:128;24490:191;:::o;16560:152::-;16630:4;16654:50;16659:3;-1:-1:-1;;;;;16679:23:0;;16654:4;:50::i;28449:415::-;28582:20;;28574:57;;;;-1:-1:-1;;;28574:57:0;;5140:2:1;28574:57:0;;;5122:21:1;5179:2;5159:18;;;5152:30;-1:-1:-1;;;5198:18:1;;;5191:49;5257:18;;28574:57:0;4938:343:1;28574:57:0;28650:22;;28642:61;;;;-1:-1:-1;;;28642:61:0;;6304:2:1;28642:61:0;;;6286:21:1;6343:2;6323:18;;;6316:30;-1:-1:-1;;;6362:18:1;;;6355:51;6423:18;;28642:61:0;6102:345:1;28642:61:0;28714:16;28733:11;:54;28772:4;28778:6;28755:30;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;28755:30:0;;;;;;;;;28745:41;;28755:30;28745:41;;;;28733:54;;;;;;;;;;-1:-1:-1;28733:54:0;;-1:-1:-1;;;;;28733:54:0;;-1:-1:-1;28806:22:0;;28798:58;;;;-1:-1:-1;;;28798:58:0;;7015:2:1;28798:58:0;;;6997:21:1;7054:2;7034:18;;;7027:30;-1:-1:-1;;;7073:18:1;;;7066:53;7136:18;;28798:58:0;6813:347:1;28798:58:0;28563:301;28449:415;;:::o;28872:518::-;29045:14;;28982:16;;29032:28;;-1:-1:-1;;;;;29045:14:0;29032:12;:28::i;:::-;29021:39;;29138:8;29081:11;:54;29120:4;29126:6;29103:30;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;29103:30:0;;;;;;;;;29093:41;;29103:30;29093:41;;;;29081:54;;;;;;;;;;;;-1:-1:-1;29081:54:0;;;:65;;-1:-1:-1;;;;;29081:65:0;;;-1:-1:-1;;;;;;29081:65:0;;;;;;;29157:9;:24;;-1:-1:-1;29157:24:0;;;;;;;;;;;;;;;;;;;;29219:90;;;;;;;;;;;;;;;;22024:10;29219:90;;;;29192:24;;;:14;:24;;;;;;:117;;;;:24;;:117;;:24;;:117;;;;;:::i;:::-;-1:-1:-1;29192:117:0;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;29192:117:0;;;;;;;;;;;;-1:-1:-1;;;;;;29192:117:0;-1:-1:-1;;;;;29192:117:0;;;;;;;;;29365:9;:16;29325:57;;;;;;29341:4;;29347:6;;29355:8;;29365:16;29325:57;:::i;:::-;;;;;;;;28872:518;;;;:::o;17132:167::-;-1:-1:-1;;;;;17266:23:0;;17212:4;12668:19;;;:12;;;:19;;;;;;:24;;17236:55;12571:129;10475:414;10538:4;12668:19;;;:12;;;:19;;;;;;10555:327;;-1:-1:-1;10598:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;10781:18;;10759:19;;;:12;;;:19;;;;;;:40;;;;10814:11;;10555:327;-1:-1:-1;10865:5:0;10858:12;;29398:475;29454:14;29481:19;29511:6;29503:15;;29481:37;;29568:4;29562:11;-1:-1:-1;;;29590:5:0;29583:81;29699:11;29692:4;29685:5;29681:16;29674:37;-1:-1:-1;;;29739:4:0;29732:5;29728:16;29721:92;29850:4;29843:5;29840:1;29833:22;29823:32;29398:475;-1:-1:-1;;;;29398:475:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:719::-;235:5;288:3;281:4;273:6;269:17;265:27;255:55;;306:1;303;296:12;255:55;342:6;329:20;368:18;405:2;401;398:10;395:36;;;411:18;;:::i;:::-;486:2;480:9;454:2;540:13;;-1:-1:-1;;536:22:1;;;560:2;532:31;528:40;516:53;;;584:18;;;604:22;;;581:46;578:72;;;630:18;;:::i;:::-;670:10;666:2;659:22;705:2;697:6;690:18;751:3;744:4;739:2;731:6;727:15;723:26;720:35;717:55;;;768:1;765;758:12;717:55;832:2;825:4;817:6;813:17;806:4;798:6;794:17;781:54;879:1;872:4;867:2;859:6;855:15;851:26;844:37;899:6;890:15;;;;;;192:719;;;;:::o;916:186::-;975:6;1028:2;1016:9;1007:7;1003:23;999:32;996:52;;;1044:1;1041;1034:12;996:52;1067:29;1086:9;1067:29;:::i;1107:260::-;1175:6;1183;1236:2;1224:9;1215:7;1211:23;1207:32;1204:52;;;1252:1;1249;1242:12;1204:52;1275:29;1294:9;1275:29;:::i;:::-;1265:39;;1323:38;1357:2;1346:9;1342:18;1323:38;:::i;:::-;1313:48;;1107:260;;;;;:::o;1372:180::-;1431:6;1484:2;1472:9;1463:7;1459:23;1455:32;1452:52;;;1500:1;1497;1490:12;1452:52;-1:-1:-1;1523:23:1;;1372:180;-1:-1:-1;1372:180:1:o;1557:743::-;1664:6;1672;1680;1733:2;1721:9;1712:7;1708:23;1704:32;1701:52;;;1749:1;1746;1739:12;1701:52;1789:9;1776:23;1818:18;1859:2;1851:6;1848:14;1845:34;;;1875:1;1872;1865:12;1845:34;1898:50;1940:7;1931:6;1920:9;1916:22;1898:50;:::i;:::-;1888:60;;2001:2;1990:9;1986:18;1973:32;1957:48;;2030:2;2020:8;2017:16;2014:36;;;2046:1;2043;2036:12;2014:36;2069:52;2113:7;2102:8;2091:9;2087:24;2069:52;:::i;:::-;2059:62;;2174:2;2163:9;2159:18;2146:32;2130:48;;2203:2;2193:8;2190:16;2187:36;;;2219:1;2216;2209:12;2187:36;;2242:52;2286:7;2275:8;2264:9;2260:24;2242:52;:::i;:::-;2232:62;;;1557:743;;;;;:::o;2490:258::-;2532:3;2570:5;2564:12;2597:6;2592:3;2585:19;2613:63;2669:6;2662:4;2657:3;2653:14;2646:4;2639:5;2635:16;2613:63;:::i;:::-;2730:2;2709:15;-1:-1:-1;;2705:29:1;2696:39;;;;2737:4;2692:50;;2490:258;-1:-1:-1;;2490:258:1:o;2753:470::-;2932:3;2970:6;2964:13;2986:53;3032:6;3027:3;3020:4;3012:6;3008:17;2986:53;:::i;:::-;3102:13;;3061:16;;;;3124:57;3102:13;3061:16;3158:4;3146:17;;3124:57;:::i;:::-;3197:20;;2753:470;-1:-1:-1;;;;2753:470:1:o;3228:203::-;-1:-1:-1;;;;;3392:32:1;;;;3374:51;;3362:2;3347:18;;3228:203::o;3628:553::-;3881:3;3870:9;3863:22;3844:4;3908:46;3949:3;3938:9;3934:19;3926:6;3908:46;:::i;:::-;4002:9;3994:6;3990:22;3985:2;3974:9;3970:18;3963:50;4030:33;4056:6;4048;4030:33;:::i;:::-;-1:-1:-1;;;;;4099:32:1;;;;4094:2;4079:18;;4072:60;-1:-1:-1;;4163:2:1;4148:18;4141:34;4022:41;3628:553;-1:-1:-1;;3628:553:1:o;4186:747::-;4487:3;4476:9;4469:22;4450:4;4514:46;4555:3;4544:9;4540:19;4532:6;4514:46;:::i;:::-;4608:9;4600:6;4596:22;4591:2;4580:9;4576:18;4569:50;4642:33;4668:6;4660;4642:33;:::i;:::-;4628:47;;4723:9;4715:6;4711:22;4706:2;4695:9;4691:18;4684:50;4751:33;4777:6;4769;4751:33;:::i;:::-;-1:-1:-1;;;;;4858:15:1;;;4853:2;4838:18;;4831:43;4911:15;;;;4905:3;4890:19;;;4883:44;;;;-1:-1:-1;4743:41:1;4186:747;-1:-1:-1;;;;4186:747:1:o;6452:356::-;6654:2;6636:21;;;6673:18;;;6666:30;6732:34;6727:2;6712:18;;6705:62;6799:2;6784:18;;6452:356::o;7165:654::-;7352:2;7341:9;7334:21;7315:4;7390:6;7384:13;7433:4;7428:2;7417:9;7413:18;7406:32;7461:52;7508:3;7497:9;7493:19;7479:12;7461:52;:::i;:::-;7447:66;;7562:2;7554:6;7550:15;7544:22;7634:2;7630:7;7618:9;7610:6;7606:22;7602:36;7597:2;7586:9;7582:18;7575:64;7662:41;7696:6;7680:14;7662:41;:::i;:::-;7763:2;7751:15;;;;7745:22;-1:-1:-1;;;;;7741:48:1;7734:4;7719:20;;;;7712:78;;;;-1:-1:-1;7648:55:1;;7165:654;-1:-1:-1;;7165:654:1:o;8006:258::-;8078:1;8088:113;8102:6;8099:1;8096:13;8088:113;;;8178:11;;;8172:18;8159:11;;;8152:39;8124:2;8117:10;8088:113;;;8219:6;8216:1;8213:13;8210:48;;;8254:1;8245:6;8240:3;8236:16;8229:27;8210:48;;8006:258;;;:::o;8269:380::-;8348:1;8344:12;;;;8391;;;8412:61;;8466:4;8458:6;8454:17;8444:27;;8412:61;8519:2;8511:6;8508:14;8488:18;8485:38;8482:161;;;8565:10;8560:3;8556:20;8553:1;8546:31;8600:4;8597:1;8590:15;8628:4;8625:1;8618:15;8482:161;;8269:380;;;:::o;8654:127::-;8715:10;8710:3;8706:20;8703:1;8696:31;8746:4;8743:1;8736:15;8770:4;8767:1;8760:15;8786:127;8847:10;8842:3;8838:20;8835:1;8828:31;8878:4;8875:1;8868:15;8902:4;8899:1;8892:15

Swarm Source

ipfs://01f42d0e58350c27b28481fc71e9804184e5f13fbd247ceaaeebc3e8a84cce26

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.