CRO Price: $0.08 (+2.87%)

Contract

0x65c6aa6CACC04B15100A5B41F5124ae1321c9085

Overview

CRO Balance

Cronos Chain LogoCronos Chain LogoCronos Chain Logo40,341.75 CRO

CRO Value

$3,137.69 (@ $0.08/CRO)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...162153322024-10-11 4:57:4610 hrs ago1728622666IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...162079432024-10-10 17:25:4722 hrs ago1728581147IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...162064532024-10-10 15:06:1624 hrs ago1728572776IN
0x65c6aa6C...1321c9085
0 CRO0.24216925,200
Set Approval For...162060992024-10-10 14:33:0625 hrs ago1728570786IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...162060222024-10-10 14:25:5425 hrs ago1728570354IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...162053092024-10-10 13:19:0026 hrs ago1728566340IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...161957682024-10-09 22:23:3441 hrs ago1728512614IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...161830922024-10-09 2:30:172 days ago1728441017IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...161778652024-10-08 18:18:362 days ago1728411516IN
0x65c6aa6C...1321c9085
0 CRO0.232924855,001.5
Set Approval For...161709092024-10-08 7:23:063 days ago1728372186IN
0x65c6aa6C...1321c9085
0 CRO0.235113695,048.5
Set Approval For...161537982024-10-07 4:29:114 days ago1728275351IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...161489292024-10-06 20:50:174 days ago1728247817IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...161441982024-10-06 13:24:135 days ago1728221053IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...161371032024-10-06 2:16:465 days ago1728181006IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...161210922024-10-05 1:11:156 days ago1728090675IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...160984552024-10-03 13:44:558 days ago1727963095IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Safe Transfer Fr...160973392024-10-03 11:59:348 days ago1727956774IN
0x65c6aa6C...1321c9085
0 CRO0.350317875,025
Set Approval For...160816642024-10-02 11:21:459 days ago1727868105IN
0x65c6aa6C...1321c9085
0 CRO0.24216925,200
Set Approval For...160435382024-09-29 23:34:4511 days ago1727652885IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...160075442024-09-27 15:18:2314 days ago1727450303IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...159961172024-09-26 21:25:4714 days ago1727385947IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...159659622024-09-24 22:04:3616 days ago1727215476IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...159373822024-09-23 1:16:1418 days ago1727054174IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...159015192024-09-20 17:07:0720 days ago1726852027IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
Set Approval For...158675512024-09-18 12:01:1523 days ago1726660875IN
0x65c6aa6C...1321c9085
0 CRO0.235183555,050
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
157954442024-09-13 19:12:1227 days ago1726254732
0x65c6aa6C...1321c9085
7.45 CRO
157905002024-09-13 11:25:0328 days ago1726226703
0x65c6aa6C...1321c9085
7.45 CRO
146994332024-07-03 21:49:4099 days ago1720043380
0x65c6aa6C...1321c9085
186.25 CRO
144425072024-06-17 2:41:26116 days ago1718592086
0x65c6aa6C...1321c9085
14.9 CRO
142449552024-06-04 2:15:39129 days ago1717467339
0x65c6aa6C...1321c9085
7.45 CRO
141091322024-05-26 3:34:17138 days ago1716694457
0x65c6aa6C...1321c9085
7.45 CRO
140688472024-05-23 12:00:42141 days ago1716465642
0x65c6aa6C...1321c9085
37.25 CRO
140670762024-05-23 9:12:39141 days ago1716455559
0x65c6aa6C...1321c9085
7.45 CRO
139560202024-05-16 1:18:57148 days ago1715822337
0x65c6aa6C...1321c9085
14.9 CRO
139013772024-05-12 10:52:46152 days ago1715511166
0x65c6aa6C...1321c9085
7.45 CRO
138754122024-05-10 17:43:14153 days ago1715362994
0x65c6aa6C...1321c9085
14.9 CRO
138748282024-05-10 16:47:33153 days ago1715359653
0x65c6aa6C...1321c9085
7.45 CRO
138740372024-05-10 15:32:05154 days ago1715355125
0x65c6aa6C...1321c9085
7.45 CRO
138677212024-05-10 5:31:34154 days ago1715319094
0x65c6aa6C...1321c9085
7.45 CRO
138671022024-05-10 4:32:49154 days ago1715315569
0x65c6aa6C...1321c9085
37.25 CRO
138565272024-05-09 11:47:51155 days ago1715255271
0x65c6aa6C...1321c9085
29.8 CRO
138461262024-05-08 19:20:30155 days ago1715196030
0x65c6aa6C...1321c9085
7.45 CRO
138397412024-05-08 9:13:58156 days ago1715159638
0x65c6aa6C...1321c9085
7.45 CRO
138312362024-05-07 19:47:10156 days ago1715111230
0x65c6aa6C...1321c9085
7.45 CRO
138159912024-05-06 19:41:07157 days ago1715024467
0x65c6aa6C...1321c9085
14.9 CRO
138149652024-05-06 18:02:44157 days ago1715018564
0x65c6aa6C...1321c9085
7.45 CRO
138128662024-05-06 14:42:11158 days ago1715006531
0x65c6aa6C...1321c9085
37.25 CRO
138110742024-05-06 11:51:21158 days ago1714996281
0x65c6aa6C...1321c9085
37.25 CRO
138080082024-05-06 7:00:16158 days ago1714978816
0x65c6aa6C...1321c9085
7.45 CRO
138036262024-05-06 0:04:48158 days ago1714953888
0x65c6aa6C...1321c9085
7.45 CRO
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Gears

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 6 : Gears.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import { IDrop } from "./interfaces/IDrop.sol";
import { ERC721A } from "./common/ERC721A.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Burn `amount` tokens from the caller.
     */
    function burn(uint256 amount) external;
    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);
    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
/**
 * @author Kratos
 * @title Gears contract
 * @notice Use gears to enhance rewards from quests
 */
contract Gears is IDrop, ERC721A, Ownable {
    /// @notice Information about Marketplaces
    struct MarketplaceInfo {
        address escrowAddress; // Address of the escrow contract, unused for native mint
        uint256 percentage; // Percentage of the mint price to send to the escrow contract, unused for native mint
        uint256 maxSupply; // Maximum supply of gears for the marketplace
        uint256 currentSupply; // Current supply of gears for the marketplace
    }
    /// @notice Mint price of gears
    uint256 public mintPrice;
    /// @notice ERC20 mint price of gears
    uint256 public erc20MintPrice;
    /// @notice Maximum supply of gears
    uint256 public constant MAX_SUPPLY = 30000;
    /// @notice Address to withdraw tokens/eth to
    address public withdrawAddress;
    /// @notice Address of questing contract
    address public questContract;
    /// @notice Mapping of enum to information about the contract
    mapping(Marketplace => MarketplaceInfo) public marketplaceInfo;
    /// @notice Address of the Argo token
    IERC20 public constant ARGO_TOKEN = IERC20(0x47A9D630dc5b28F75d3AF3be3AAa982512Cd89Aa);
    /// @notice Address of the Stardust token
    IERC20 public constant STARDUST_TOKEN = IERC20(0x1eBFD0d52Aa04350f512aBcFd45ffb0bb86F0cc2);
    /// @notice Address of the Gold token
    IERC20 public constant GOLD_TOKEN = IERC20(0x62437579887178BEa81A182DB627427BB8E71766);
    /// @notice Mapping from token ID to locking status
    mapping(uint256 => bool) private _lockedTokens;
    /// @notice Current payment mode
    PaymentMode public paymentMode;
    /// @notice Payment mode enum
    enum PaymentMode {
        NATIVE, // Native currency (ETH)
        ARGO, // $ARGO Token
        STARDUST, // $STARDUST Token
        GOLD // $GOLD Token
    }
    /// @notice Enum for different marketplaces
    enum Marketplace {
        MINTED_NETWORK,
        EBISU_BAY,
        ATLANTIS
    }
    /**
     * @notice Event to notify the update of the withdraw address
     * @param _withdrawAddress The new withdraw address
     */
    event WithdrawAddressUpdated(address _withdrawAddress);
    /**
     * @notice Event to notify the update of the payment mode
     * @param _paymentMode The new payment mode
     * @param _mintPrice The new mint price
     */
    event PaymentModeUpdated(PaymentMode _paymentMode, uint256 _mintPrice);
    /**
     * @notice Event to notify the update of the mint price
     * @param _mintPrice The new mint price
     */
    event MintPriceUpdated(uint256 _mintPrice);
    /**
     * @notice Event to notify the update of the ERC20 mint price
     * @param _mintPrice The new mint price
     */
    event ERC20MintPriceUpdated(uint256 _mintPrice);
    /**
     * @notice Event to notify the update of the quest contract address
     * @param _questContract The new quest contract address
     */
    event QuestContractUpdated(address _questContract);
    /**
     * @notice Event to notify the withdrawal of Ether
     * @param amount The amount of Ether withdrawn
     */
    event EtherWithdrawn(uint256 amount);
    /**
     * @notice Event to notify the withdrawal of tokens
     * @param token The address of the token withdrawn
     * @param amount The amount of tokens withdrawn
     */
    event TokensWithdrawn(address token, uint256 amount);
    /**
     * @notice Emitted when the locking status is changed to locked.
     * @dev If a token is minted and the status is locked, this event should be emitted.
     * @param tokenId The identifier for a token.
     */
    event Locked(uint256 tokenId);
    /**
     * @notice Emitted when the locking status is changed to unlocked.
     * @dev If a token is minted and the status is unlocked, this event should be emitted.
     * @param tokenId The identifier for a token.
     */
    event Unlocked(uint256 tokenId);

    error Token_Locked();

    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _mintPrice,
        uint256 _erc20MintPrice,
        address _withdrawAddress,
        PaymentMode _paymentMode,
        address _mintedNetworkContract,
        uint256 _mintedNetworkPercentage,
        uint256 _mintedNetworkMaxSupply,
        address _ebisuBayContract,
        uint256 _ebisuBayPercentage,
        uint256 _ebisuBayMaxSupply,
        uint256 _atlantisMaxSupply
    ) ERC721A(_name, _symbol) {
        mintPrice = _mintPrice;
        erc20MintPrice = _erc20MintPrice;
        withdrawAddress = _withdrawAddress;
        paymentMode = _paymentMode;
        marketplaceInfo[Marketplace.MINTED_NETWORK] = MarketplaceInfo({
            escrowAddress: _mintedNetworkContract,
            percentage: _mintedNetworkPercentage,
            maxSupply: _mintedNetworkMaxSupply,
            currentSupply: 0
        });
        marketplaceInfo[Marketplace.EBISU_BAY] = MarketplaceInfo({
            escrowAddress: _ebisuBayContract,
            percentage: _ebisuBayPercentage,
            maxSupply: _ebisuBayMaxSupply,
            currentSupply: 0
        });
        marketplaceInfo[Marketplace.ATLANTIS] = MarketplaceInfo({
            escrowAddress: msg.sender,
            percentage: 0,
            maxSupply: _atlantisMaxSupply,
            currentSupply: 0
        });
    }

    /**
     * @notice transferFrom function for ERC721A, which lock tokens when transferring to the quest contract
     * @dev If the recipient is the quest contract, the token should be locked
     * @param from The address to transfer from
     * @param to The address to transfer to
     * @param tokenId The ID of the Gear NFT
     */
    function transferFrom(address from, address to, uint256 tokenId) public payable virtual override {
        if (from == questContract) {
            _lockedTokens[tokenId] = false;
            emit Unlocked(tokenId);
        } else {
            uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

            if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

            (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

            if (to == address(0)) revert TransferToZeroAddress();

            // Clear approvals from the previous owner.
            assembly {
                if approvedAddress {
                    // This is equivalent to `delete _tokenApprovals[tokenId]`.
                    sstore(approvedAddressSlot, 0)
                }
            }
            if (_lockedTokens[tokenId]) {
                revert Token_Locked();
            }
            if (to == questContract) {
                _lockedTokens[tokenId] = true;
                emit Locked(tokenId);
            } else {
                super.transferFrom(from, to, tokenId);
            }
        }
    }

    /**
     * @notice Function to mint a gear, with payment being in ETH or tokens on Argo's platform (native mint)
     * @param _quantity The quantity of gears to mint
     */
    function mintNative(uint256 _quantity) external payable {
        MarketplaceInfo storage info = marketplaceInfo[Marketplace.ATLANTIS];
        require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply reached");
        // Check if current quantity is less than max supply of the marketplace
        require(info.currentSupply + _quantity <= info.maxSupply, "Max supply of the marketplace reached");
        info.currentSupply += _quantity;
        if (paymentMode == PaymentMode.NATIVE) {
            require(msg.value == _quantity * mintPrice, "Insufficient ETH");
        } else if (paymentMode == PaymentMode.ARGO) {
            require(ARGO_TOKEN.transferFrom(msg.sender, address(this), erc20MintPrice * _quantity), "Transfer failed");
            // Burn ARGO
            ARGO_TOKEN.burn(erc20MintPrice * _quantity);
        } else if (paymentMode == PaymentMode.GOLD) {
            require(GOLD_TOKEN.transferFrom(msg.sender, address(this), erc20MintPrice * _quantity), "Transfer failed");
            // Burn GOLD
            GOLD_TOKEN.burn(erc20MintPrice * _quantity);
        } else {
            // Transfer the required tokens from the user
            require(
                STARDUST_TOKEN.transferFrom(msg.sender, address(this), erc20MintPrice * _quantity),
                "Transfer failed"
            );
        }

        _mint(msg.sender, _quantity);
    }

    /**
     * @notice Function to mint a gear, with payment being in ETH on Ebisu's Bay marketplace.
     * @param _quantity The quantity of gears to mint
     */
    function mint(uint256 _quantity) external payable {
        MarketplaceInfo storage info = marketplaceInfo[Marketplace.EBISU_BAY];
        // Check if current quantity is less than max supply
        require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply reached");
        // Check if current quantity is less than max supply of the marketplace
        require(info.currentSupply + _quantity <= info.maxSupply, "Max supply of the marketplace reached");
        require(msg.value == _quantity * mintPrice, "Insufficient ETH");
        info.currentSupply += _quantity;
        _mint(msg.sender, _quantity);
        // Transfer to ebisu bay with its percentage
        uint256 ebisuBayAmount = (msg.value * info.percentage) / 100;
        (bool sent, ) = info.escrowAddress.call{ value: ebisuBayAmount }("");
        require(sent, "Failed to send Ether");
    }

    /**
     * @notice Function to mint a gear, with payment being in ETH on Minted Network marketplace.
     * @param _quantity The quantity of gears to mint
     */
    function mintMTD(uint256 _quantity) external payable {
        MarketplaceInfo storage info = marketplaceInfo[Marketplace.MINTED_NETWORK];
        // Check if current quantity is less than max supply
        require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply reached");
        // Check if current quantity is less than max supply of the marketplace
        require(info.currentSupply + _quantity <= info.maxSupply, "Max supply of the marketplace reached");
        require(msg.value == _quantity * mintPrice, "Insufficient ETH");
        info.currentSupply += _quantity;

        _mint(msg.sender, _quantity);
        // Transfer to minted
        uint256 mintedNetworkAmount = (msg.value * info.percentage) / 100;
        (bool sent, ) = info.escrowAddress.call{ value: mintedNetworkAmount }("");
        require(sent, "Failed to send Ether");
    }

    /**
     * @notice Function to airdrop gears to multiple addresses for prizes, etc.
     * @param _recipients The addresses of the recipients
     * @param _quantities The quantities of gears to mint for each recipient
     */
    function airdrop(address[] calldata _recipients, uint256[] calldata _quantities) external onlyOwner {
        require(_recipients.length == _quantities.length, "Array length mismatch");
        for (uint256 i = 0; i < _recipients.length; i++) {
            _mint(_recipients[i], _quantities[i]);
        }
    }

    /**
     * Function to get information about the drop, for EBISU bay
     * @return Info The information about the drop
     */
    function getInfo() external view override returns (Info memory) {
        MarketplaceInfo memory info = marketplaceInfo[Marketplace.EBISU_BAY];
        return
            Info({
                regularCost: mintPrice,
                memberCost: mintPrice,
                whitelistCost: mintPrice,
                maxSupply: info.maxSupply,
                totalSupply: info.currentSupply,
                maxMintPerAddress: info.maxSupply - info.currentSupply,
                maxMintPerTx: 50
            });
    }

    /**
     * How many tokens can be minted by a given address, for EBISU bay
     * @param _minter The address of the minter
     * @return The number of tokens that can be minted by the minter
     */
    function canMint(address _minter) external view override returns (uint256) {
        MarketplaceInfo memory info = marketplaceInfo[Marketplace.EBISU_BAY];
        return info.maxSupply - info.currentSupply;
    }

    /**
     * How much it costs to mint a token, for EBISU BAY
     * @param _minter The address of the minter
     * @return The cost to mint a token
     */
    function mintCost(address _minter) external view override returns (uint256) {
        return mintPrice;
    }

    /**
     * Function to get the maximum supply of the drop, for EBISU BAY
     * @return uint256 The maximum supply of the drop
     */
    function maxSupply() external view override returns (uint256) {
        return MAX_SUPPLY;
    }
    /**
     * @notice Function to withdraw ETH accumulated in the contract
     */
    function withdraw() external {
        (bool sent, ) = withdrawAddress.call{ value: address(this).balance }("");
        require(sent, "Failed to send Ether");
        emit EtherWithdrawn(address(this).balance);
    }

    /**
     * @notice Function to withdraw Argo or Stardust tokens accumulated in the contract
     * @param _token The address of the token to withdraw
     * @param _amount The amount to withdraw
     */
    function withdrawTokens(address _token, uint256 _amount) external onlyOwner {
        IERC20 token = IERC20(_token);
        token.transfer(withdrawAddress, _amount);
        emit TokensWithdrawn(_token, _amount);
    }

    /**
     * @notice Function to set mint price
     * @param _mintPrice The new mint price
     */
    function setMintPrice(uint256 _mintPrice) external onlyOwner {
        mintPrice = _mintPrice;
        emit MintPriceUpdated(_mintPrice);
    }

    /**
     * @notice Function to set ERC20 mint price
     * @param _mintPrice The new mint price
     */
    function setERC20MintPrice(uint256 _mintPrice) external onlyOwner {
        erc20MintPrice = _mintPrice;
        emit ERC20MintPriceUpdated(_mintPrice);
    }

    /**
     * @notice Function to set the withdraw address
     * @param _withdrawAddress The new withdraw address
     */
    function setWithdrawAddress(address _withdrawAddress) external onlyOwner {
        withdrawAddress = _withdrawAddress;
        emit WithdrawAddressUpdated(_withdrawAddress);
    }

    /**
     * @notice Function to set the quest contract address
     * @param _questContract The new quest contract address
     */
    function setQuestContract(address _questContract) external onlyOwner {
        questContract = _questContract;
        emit QuestContractUpdated(_questContract);
    }

    /**
     * @notice Switch the payment mode of minting
     * @param _paymentMode The new payment mode
     * @param _newMintPrice The new mint price
     */
    function switchPaymentMode(PaymentMode _paymentMode, uint256 _newMintPrice) external onlyOwner {
        paymentMode = _paymentMode;
        if (_paymentMode == PaymentMode.NATIVE) {
            mintPrice = _newMintPrice;
        } else if (
            _paymentMode == PaymentMode.ARGO || _paymentMode == PaymentMode.STARDUST || _paymentMode == PaymentMode.GOLD
        ) {
            erc20MintPrice = _newMintPrice;
        }
        emit PaymentModeUpdated(_paymentMode, _newMintPrice);
    }

    /**
     * @notice Locking status of a gear
     * @param _tokenId The ID of the Gear NFT
     */
    function locked(uint256 _tokenId) external view returns (bool) {
        require(_exists(_tokenId), "Query for non-existent token");
        return _lockedTokens[_tokenId];
    }

    /**
     * @notice Set the information for a marketplace
     * @param _marketplace The marketplace to set information for
     * @param _escrowAddress The address of the escrow contract
     * @param _percentage The percentage of the mint price to send to the escrow contract
     * @param _maxSupply The maximum supply of gears for the marketplace
     */
    function setMarketplaceInfo(
        Marketplace _marketplace,
        address _escrowAddress,
        uint256 _percentage,
        uint256 _maxSupply
    ) external onlyOwner {
        MarketplaceInfo storage info = marketplaceInfo[_marketplace];
        info.escrowAddress = _escrowAddress;
        info.percentage = _percentage;
        info.maxSupply = _maxSupply;
    }
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 3 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 4 of 6 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "./IERC721A.sol";

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // Mapping from token ID to approved address.
    mapping(uint256 => TokenApprovalRef) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 1;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "https://backend.argofinance.money/gear/";
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) internal view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) internal pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) internal view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the
     * zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) internal pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(
        uint256 tokenId
    ) internal view returns (uint256 approvedAddressSlot, address approvedAddress) {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public payable virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(address from, address to, uint256 startTokenId, uint256 quantity) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(address from, address to, uint256 startTokenId, uint256 quantity) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(address to, uint256 quantity, bytes memory _data) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, "");
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(address from, address to, uint24 previousExtraData) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(address from, address to, uint256 prevOwnershipPacked) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 5 of 6 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables
     * (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`,
     * checking first that contract recipients are aware of the ERC721 protocol
     * to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move
     * this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom}
     * whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the
     * zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external payable;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 6 of 6 : IDrop.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;


interface IDrop {
    struct Info {
        uint256 regularCost;
        uint256 memberCost;
        uint256 whitelistCost;
        uint256 maxSupply;
        uint256 totalSupply;
        uint256 maxMintPerAddress;
        uint256 maxMintPerTx;
    }
    
    function mintCost(address _minter) external view returns(uint256);
    function canMint(address _minter) external view returns (uint256);
    function mint(uint256 _amount) external payable;
    function maxSupply() external view returns (uint256);
    function getInfo() external view returns (Info memory);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_erc20MintPrice","type":"uint256"},{"internalType":"address","name":"_withdrawAddress","type":"address"},{"internalType":"enum Gears.PaymentMode","name":"_paymentMode","type":"uint8"},{"internalType":"address","name":"_mintedNetworkContract","type":"address"},{"internalType":"uint256","name":"_mintedNetworkPercentage","type":"uint256"},{"internalType":"uint256","name":"_mintedNetworkMaxSupply","type":"uint256"},{"internalType":"address","name":"_ebisuBayContract","type":"address"},{"internalType":"uint256","name":"_ebisuBayPercentage","type":"uint256"},{"internalType":"uint256","name":"_ebisuBayMaxSupply","type":"uint256"},{"internalType":"uint256","name":"_atlantisMaxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"Token_Locked","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"ERC20MintPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EtherWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"MintPriceUpdated","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":"enum Gears.PaymentMode","name":"_paymentMode","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"PaymentModeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_questContract","type":"address"}],"name":"QuestContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_withdrawAddress","type":"address"}],"name":"WithdrawAddressUpdated","type":"event"},{"inputs":[],"name":"ARGO_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GOLD_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STARDUST_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"canMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20MintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInfo","outputs":[{"components":[{"internalType":"uint256","name":"regularCost","type":"uint256"},{"internalType":"uint256","name":"memberCost","type":"uint256"},{"internalType":"uint256","name":"whitelistCost","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"maxMintPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxMintPerTx","type":"uint256"}],"internalType":"struct IDrop.Info","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Gears.Marketplace","name":"","type":"uint8"}],"name":"marketplaceInfo","outputs":[{"internalType":"address","name":"escrowAddress","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"currentSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintMTD","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentMode","outputs":[{"internalType":"enum Gears.PaymentMode","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"questContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setERC20MintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Gears.Marketplace","name":"_marketplace","type":"uint8"},{"internalType":"address","name":"_escrowAddress","type":"address"},{"internalType":"uint256","name":"_percentage","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMarketplaceInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_questContract","type":"address"}],"name":"setQuestContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawAddress","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Gears.PaymentMode","name":"_paymentMode","type":"uint8"},{"internalType":"uint256","name":"_newMintPrice","type":"uint256"}],"name":"switchPaymentMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052346200068157620032f2803803806200001d81620006a6565b92833981016101a082820312620006815781516001600160401b0381116200068157816200004d918401620006cc565b602083015190916001600160401b038211620006815762000070918401620006cc565b6040830151906060840151936200008a608082016200073e565b60a08201519060048210156200068157620000a860c084016200073e565b9160e08401519161010085015198620000c561012087016200073e565b97610140870151976101806101608901519801519a80519060018060401b038211620005755760025490600182811c9216801562000676575b6020831014620005545781601f84931162000615575b50602090601f831160011462000597576000926200058b575b50508160011b916000199060031b1c1916176002555b8051906001600160401b0382116200057557600354600181811c911680156200056a575b60208210146200055457601f8111620004ee575b50602090601f83116001146200047457918060039c9d9e9694928d9998969460009262000468575b50508160011b91600019908a1b1c19161787555b60016000556008543360018060a01b0319821617600855339060018060a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3600955600a5560018060a01b031660018060a01b0319600b541617600b5560ff8019600f5416911617600f556200023362000686565b6001600160a01b039485168152602080820193845260408201928352600060608301818152908052600d90915290517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee80546001600160a01b0319169190961617855591517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ef55517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29f05551910155620002eb62000686565b6001600160a01b0394851681526020808201938452604082019283526000606083018181526001909152600d90915290517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c580546001600160a01b0319169190961617855591517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c655517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c755519101556003620003a762000686565b338152600060208083018281526040808501968752606085018481526002909452600d90925292517f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc24980546001600160a01b0319166001600160a01b039290921691909117815592517f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc24a5593517f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc24b555191015551612b7e9081620007548239f35b015190503880620001a3565b90600360005260206000209160005b601f1985168110620004d557509260039c9d9e9694926001928e9a99979583601f19811610620004bc575b505050811b018755620001b7565b0151600019838c1b60f8161c19169055388080620004ae565b9192602060018192868501518155019401920162000483565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c8101602085106200054c575b601f830160051c820181106200053f5750506200017b565b6000815560010162000527565b508062000527565b634e487b7160e01b600052602260045260246000fd5b90607f169062000167565b634e487b7160e01b600052604160045260246000fd5b0151905038806200012d565b600260009081529350600080516020620032d283398151915291905b601f1984168510620005f9576001945083601f19811610620005df575b505050811b0160025562000143565b015160001960f88460031b161c19169055388080620005d0565b81810151835560209485019460019093019290910190620005b3565b6002600052909150600080516020620032d2833981519152601f840160051c8101602085106200066e575b90849392915b601f830160051c820181106200065e57505062000114565b6000815585945060010162000646565b508062000640565b91607f1691620000fe565b600080fd5b60405190608082016001600160401b038111838210176200057557604052565b6040519190601f01601f191682016001600160401b038111838210176200057557604052565b919080601f84011215620006815782516001600160401b038111620005755760209062000702601f8201601f19168301620006a6565b92818452828287010111620006815760005b8181106200072a57508260009394955001015290565b858101830151848201840152820162000714565b51906001600160a01b0382168203620006815756fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146102d257806306b091f9146102cd57806306fdde03146102c8578063081812fc146102c3578063095ea7b3146102be5780631581b600146102b957806318160ddd146102b45780631bcc001c146102af57806323b872dd146102aa5780632acc659e146102a55780632c2f209b146102a057806332cb6b0c1461021e5780633ab1a4941461029b5780633ccfd60b146102965780633f6c9bba1461029157806342842e0e1461028c5780635a9b0b89146102875780636352211e14610282578063672434821461027d5780636817c76c146102785780636a6940cc1461027357806370a082311461026e578063715018a6146102695780637fae588d146102645780638195c9c01461025f5780638da5cb5b1461025a57806391e7cec21461025557806395d89b41146102505780639c3d78e31461024b578063a0712d6814610246578063a22cb46514610241578063a8607a5e1461023c578063b45a3c0e14610237578063b88d4fde14610232578063c0afce0a1461022d578063c2ba474414610228578063c87b56dd14610223578063d5abeb011461021e578063dc4d214214610219578063e985e9c514610214578063ed79e3451461020f578063f2fde38b1461020a578063f4a0a528146102055763fc4c01b71461020057600080fd5b611b28565b611adc565b6119c1565b611925565b6118a1565b611872565b6109c0565b611772565b6116e5565b6116b6565b61162a565b611460565b6113ee565b61130a565b6112ba565b611292565b611184565b611092565b61105e565b610f89565b610ef8565b610e77565b610df2565b610dbe565b610da0565b610c9d565b610c30565b610b38565b610afe565b610ae0565b610a6e565b6109dd565b610974565b61094b565b610937565b6108dc565b6108b5565b610881565b61075e565b6106e4565b6105a1565b6103f6565b610306565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361030157565b600080fd5b346103015760206003193601126103015760207fffffffff00000000000000000000000000000000000000000000000000000000600435610346816102d7565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156103ae575b8115610384575b506040519015158152f35b7f5b5e139f0000000000000000000000000000000000000000000000000000000091501438610379565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610372565b73ffffffffffffffffffffffffffffffffffffffff81160361030157565b3461030157604060031936011261030157610483600435610416816103d8565b60243590610422611e0a565b600b546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052936020918591829060009082906044820190565b039286165af1928315610517577f6352c5382c4a4578e712449ca65e83cdb392d045dfcf1cad9615189db2da244b936104e9575b506040805173ffffffffffffffffffffffffffffffffffffffff9092168252602082019290925290819081015b0390a1005b6105099060203d8111610510575b61050181836115a0565b8101906122c5565b50386104b7565b503d6104f7565b6122da565b600091031261030157565b60005b83811061053a5750506000910152565b818101518382015260200161052a565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209361058681518092818752878088019101610527565b0116010190565b90602061059e92818152019061054a565b90565b34610301576000806003193601126106e15760405190806002549060019180831c928082169283156106d7575b60209283861085146106aa57858852602088019490811561066b5750600114610612575b61060e87610602818903826115a0565b6040519182918261058d565b0390f35b600260005294509192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b83861061065a57505050910190506106028261060e38806105f2565b80548587015294820194810161063e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685525050505090151560051b0190506106028261060e38806105f2565b6024827f4e487b710000000000000000000000000000000000000000000000000000000081526022600452fd5b93607f16936105ce565b80fd5b3461030157602060031936011261030157600435610701816125bc565b15610734576000526006602052602073ffffffffffffffffffffffffffffffffffffffff60406000205416604051908152f35b60046040517fcf4700e4000000000000000000000000000000000000000000000000000000008152fd5b604060031936011261030157600435610776816103d8565b60243573ffffffffffffffffffffffffffffffffffffffff8061079883612513565b1690813303610818575b600083815260066020526040812080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052600760205260ff6108513360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54166107a25760046040517fcfb3b942000000000000000000000000000000000000000000000000000000008152fd5b3461030157600060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff600b5416604051908152f35b34610301576000600319360112610301576020600019600054600154900301604051908152f35b346103015760006003193601126103015760206040517362437579887178bea81a182db627427bb8e717668152f35b600319606091011261030157600435610923816103d8565b90602435610930816103d8565b9060443590565b6109496109433661090b565b91611e89565b005b34610301576020600319360112610301576109676004356103d8565b6020600954604051908152f35b34610301576020600319360112610301577f100c227b4055dce3cde2f8135b4b2916466c4dc8d379b9f1a1bab3539fceb28260206004356109b3611e0a565b80600a55604051908152a1005b346103015760006003193601126103015760206040516175308152f35b34610301576020600319360112610301577f7560c42213a1d729912e2864a115883b3e527ba2f5813ecc26188d5ea8bcf403602073ffffffffffffffffffffffffffffffffffffffff600435610a32816103d8565b610a3a611e0a565b16807fffffffffffffffffffffffff0000000000000000000000000000000000000000600b541617600b55604051908152a1005b34610301576000806003193601126106e157610ab28180808073ffffffffffffffffffffffffffffffffffffffff600b541647905af1610aac6123b0565b506123e0565b7f04590a28d5a843588aa29cd0037e47b18e8e1223898c124a04ab7165d68d826f602047604051908152a180f35b34610301576000600319360112610301576020600a54604051908152f35b610b073661090b565b60405191602083019383851067ffffffffffffffff861117610b3357610949946040526000845261280d565b611509565b34610301576000806003193601126106e15760c0604051610b5881611538565b8281528260208201528260408201528260608201528260808201528260a0820152015261060e610b9b610b966001600052600d602052604060002090565b61248e565b6009549060606040820151910151610bb381836124d6565b91610bbc6115e1565b9380855280602086015260408501526060840152608083015260a0820152603260c08201526040519182918291909160c08060e0830194805184526020810151602085015260408101516040850152606081015160608501526080810151608085015260a081015160a08501520151910152565b3461030157602060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff610c63600435612513565b16604051908152f35b9181601f840112156103015782359167ffffffffffffffff8311610301576020808501948460051b01011161030157565b346103015760406003193601126103015767ffffffffffffffff60043581811161030157610ccf903690600401610c6c565b9160243590811161030157610ce8903690600401610c6c565b91610cf1611e0a565b828403610d425760005b848110610d0457005b610d2c610d1a610d15838886612445565b612484565b610d25838787612445565b35906129b9565b6000198114610d3d57600101610cfb565b612186565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4172726179206c656e677468206d69736d6174636800000000000000000000006044820152fd5b34610301576000600319360112610301576020600954604051908152f35b3461030157600060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff600c5416604051908152f35b346103015760206003193601126103015773ffffffffffffffffffffffffffffffffffffffff600435610e24816103d8565b168015610e4d576000526005602052602067ffffffffffffffff60406000205416604051908152f35b60046040517f8f4eb604000000000000000000000000000000000000000000000000000000008152fd5b34610301576000806003193601126106e157610e91611e0a565b8073ffffffffffffffffffffffffffffffffffffffff6008547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b34610301576020600319360112610301577f96291762e6aef9be190e60205ae58fb7ad361fd0cfd409523912f629f7808442602073ffffffffffffffffffffffffffffffffffffffff600435610f4d816103d8565b610f55611e0a565b16807fffffffffffffffffffffffff0000000000000000000000000000000000000000600c541617600c55604051908152a1005b60206003193601126103015760043561105b60008080808095818052600d60205261101b6040832091610fda617530610fd383610fce60001960005460015490030190565b6121b5565b11156121c2565b60038301611013828254610ffd610ff183836121b5565b60028901541015612227565b610fce61100c600954846122b2565b341461234b565b9055336129b9565b61105161103661102f6001840154346122b2565b6064900490565b915473ffffffffffffffffffffffffffffffffffffffff1690565b5af1610aac6123b0565b80f35b3461030157600060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff60085416604051908152f35b34610301576040600319360112610301576004356004811015610301577ff75a3b124e4a6501f0b40c58286fdcacb4dd7efbe528bd0c21cc733c7f7aa9da90602435906110dd611e0a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00600f541660ff821617600f5561111381611276565b806111305761112182600955565b6104e4604051928392836124e3565b61113981611276565b600181148015611171575b801561115e575b156111215761115982600a55565b611121565b5061116881611276565b6003811461114b565b5061117b81611276565b60028114611144565b34610301576000806003193601126106e15760405190806003549060019180831c9280821692831561123d575b60209283861085146106aa57858852602088019490811561066b57506001146111e45761060e87610602818903826115a0565b600360005294509192917fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b83861061122c57505050910190506106028261060e38806105f2565b805485870152948201948101611210565b93607f16936111b1565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6004111561128057565b611247565b9060048210156112805752565b3461030157600060031936011261030157602060ff600f54166112b86040518092611285565bf35b60206003193601126103015760043561105b6000808080809560018252600d60205261101b6040832091610fda617530610fd383610fce60001960005460015490030190565b8015150361030157565b3461030157604060031936011261030157600435611327816103d8565b73ffffffffffffffffffffffffffffffffffffffff6024359161134983611300565b3360005260076020526113808160406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b921515927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60043590600382101561030157565b34610301576020600319360112610301576114076113df565b600381101561128057600052600d6020526080604060002073ffffffffffffffffffffffffffffffffffffffff815416906001810154906003600282015491015491604051938452602084015260408301526060820152f35b346103015760206003193601126103015760043561147d816125bc565b156114ab57600052600e60205261060e60ff6040600020541660405191829182919091602081019215159052565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f517565727920666f72206e6f6e2d6578697374656e7420746f6b656e000000006044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60e0810190811067ffffffffffffffff821117610b3357604052565b6080810190811067ffffffffffffffff821117610b3357604052565b67ffffffffffffffff8111610b3357604052565b6060810190811067ffffffffffffffff821117610b3357604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610b3357604052565b604051906115ee82611538565b565b67ffffffffffffffff8111610b3357601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b608060031936011261030157600435611642816103d8565b60243561164e816103d8565b6064359167ffffffffffffffff831161030157366023840112156103015782600401359161167b836115f0565b9261168960405194856115a0565b8084523660248287010111610301576020816000926024610949980183880137850101526044359161280d565b34610301576000600319360112610301576020604051731ebfd0d52aa04350f512abcfd45ffb0bb86f0cc28152f35b34610301576020600319360112610301576117016004356103d8565b6001600052600d60205261060e6117626060604060002060405161172481611554565b73ffffffffffffffffffffffffffffffffffffffff8254168152600182015460208201526003600283015492836040840152015492839101526124d6565b6040519081529081906020820190565b346103015760206003193601126103015760043561178f816125bc565b156118485761181661060261060e9261181c611806604051926117b184611584565b602784527f68747470733a2f2f6261636b656e642e6172676f66696e616e63652e6d6f6e6560208501527f792f676561722f000000000000000000000000000000000000000000000000006040850152612ae1565b60405194859360208501906124fc565b906124fc565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081018352826115a0565b60046040517fa14c4b50000000000000000000000000000000000000000000000000000000008152fd5b346103015760006003193601126103015760206040517347a9d630dc5b28f75d3af3be3aaa982512cd89aa8152f35b3461030157604060031936011261030157602060ff6119196004356118c5816103d8565b73ffffffffffffffffffffffffffffffffffffffff602435916118e7836103d8565b166000526007845260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54166040519015158152f35b346103015760806003193601126103015761193e6113df565b6024359061194b826103d8565b611953611e0a565b600381101561128057600052600d6020526119ae604060002091829073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b6044356001820155606435600290910155005b34610301576020600319360112610301576004356119de816103d8565b6119e6611e0a565b73ffffffffffffffffffffffffffffffffffffffff809116908115611a5857600854827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b34610301576020600319360112610301577f525b762709cc2a983aec5ccdfd807a061f993c91090b5bcd7da92ca254976aaa6020600435611b1b611e0a565b80600955604051908152a1005b602080600319360112610301576002600052600d6020526004908135907f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249611b82617530610fd385610fce60001960005460015490030190565b611ba7836003830192610fce8454916002611b9d85856121b5565b9101541015612227565b9055600f5460ff16611bb881611276565b80611bd95750506109499150611bd361100c600954836122b2565b336129b9565b611be281611276565b60018103611d1a5750611c4090611bfb83600a546122b2565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233878201908152306020820152918201929092529092839160600190565b039060009281817347a9d630dc5b28f75d3af3be3aaa982512cd89aa948187875af190811561051757611c7b928592611cfd575b50506122e6565b611c8783600a546122b2565b90803b15611cf9576040517f42966c68000000000000000000000000000000000000000000000000000000008152948501918252849182908490829060200103925af19182156105175761094992611ce0575b50611bd3565b80611ced611cf392611570565b8061051c565b38611cda565b8280fd5b611d139250803d106105105761050181836115a0565b3880611c74565b80611d26600392611276565b03611d7557611d3b90611bfb83600a546122b2565b039060009281817362437579887178bea81a182db627427bb8e71766948187875af190811561051757611c7b928592611cfd5750506122e6565b80611dce93611d8684600a546122b2565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233938101938452306020850152908301919091529485918291606090910190565b03816000731ebfd0d52aa04350f512abcfd45ffb0bb86f0cc25af180156105175761094993611e0592600092611cfd5750506122e6565b611bd3565b73ffffffffffffffffffffffffffffffffffffffff600854163303611e2b57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b9190611ec6611ead600c5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff90848216908103611f54575050507ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f1842915080611762611f27611f4f93600052600e602052604060002090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008154169055565b0390a1565b611f66611ead611ead611ead87612513565b0361215c576000838152600660205260409020805491611fa673ffffffffffffffffffffffffffffffffffffffff871633908114908514171590565b1590565b6120d4575b83169182156120aa576120a0575b50611fd8611fd184600052600e602052604060002090565b5460ff1690565b61207657611ffe611ead600c5473ffffffffffffffffffffffffffffffffffffffff1690565b0361206d57507f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a1611915080611762612042611f4f93600052600e602052604060002090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b6115ee92612610565b60046040517f5e581621000000000000000000000000000000000000000000000000000000008152fd5b6000905538611fb9565b60046040517fea553b34000000000000000000000000000000000000000000000000000000008152fd5b61212d611fa2611fd1336121088a73ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b9073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b15611fab5760046040517f59c896be000000000000000000000000000000000000000000000000000000008152fd5b60046040517fa1148100000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908201809211610d3d57565b156121c957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152fd5b1561222e57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4d617820737570706c79206f6620746865206d61726b6574706c61636520726560448201527f61636865640000000000000000000000000000000000000000000000000000006064820152fd5b81810292918115918404141715610d3d57565b90816020910312610301575161059e81611300565b6040513d6000823e3d90fd5b156122ed57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152fd5b1561235257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152fd5b3d156123db573d906123c1826115f0565b916123cf60405193846115a0565b82523d6000602084013e565b606090565b156123e757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152fd5b91908110156124555760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b3561059e816103d8565b9060405161249b81611554565b60606003829473ffffffffffffffffffffffffffffffffffffffff815416845260018101546020850152600281015460408501520154910152565b91908203918211610d3d57565b602090939291936124f8816040810196611285565b0152565b9061250f60209282815194859201610527565b0190565b600081806001111561254a575b60046040517fdf2d9b42000000000000000000000000000000000000000000000000000000008152fd5b815481101561252057815260049060209180835260409283832054947c010000000000000000000000000000000000000000000000000000000086161561259357505050612520565b93929190935b85156125a757505050505090565b60001901808352818552838320549550612599565b80600111159081612604575b816125d1575090565b905060005260046020527c0100000000000000000000000000000000000000000000000000000000604060002054161590565b600054811091506125c8565b9061261a83612513565b73ffffffffffffffffffffffffffffffffffffffff80841692838284160361215c5760008681526006602052604090208054909261267473ffffffffffffffffffffffffffffffffffffffff881633908114908414171590565b6127aa575b82169586156120aa576126e4936126b6926127a0575b5073ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b805460001901905573ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b805460010190557c0200000000000000000000000000000000000000000000000000000000804260a01b851717612725866000526004602052604060002090565b55811615612756575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b6001840161276e816000526004602052604060002090565b541561277b575b5061272e565b600054811461277557612798906000526004602052604060002090565b553880612775565b600090553861268f565b6127de611fa2611fd1336121088b73ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b156126795760046040517f59c896be000000000000000000000000000000000000000000000000000000008152fd5b92919061281b828286611e89565b803b612828575b50505050565b612831936128ba565b1561283f5738808080612822565b60046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b90816020910312610301575161059e816102d7565b909261059e949360809373ffffffffffffffffffffffffffffffffffffffff80921684521660208301526040820152816060820152019061054a565b9260209161291193600073ffffffffffffffffffffffffffffffffffffffff6040518097819682957f150b7a02000000000000000000000000000000000000000000000000000000009b8c8552336004860161287e565b0393165af160009181612989575b506129635761292c6123b0565b8051908161295e5760046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6129ab91925060203d81116129b2575b6129a381836115a0565b810190612869565b903861291f565b503d612999565b906000908154928115612ab7576129f08173ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b680100000000000000018302815401905573ffffffffffffffffffffffffffffffffffffffff600191169181811460e11b4260a01b178317612a3c866000526004602052604060002090565b55840193817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91808587858180a4015b858103612aa85750505015612a7e5755565b60046040517f2e076300000000000000000000000000000000000000000000000000000000008152fd5b8083918587858180a401612a6c565b60046040517fb562e8dd000000000000000000000000000000000000000000000000000000008152fd5b9060405160a08101604052600019608082019360008552935b0192600a90818106603001855304928315612b185760001990612afa565b92506080837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0920301920191825256fea26469706673582212206c3b30cc875844e3929acb789b866c12d4c04b0c09c359b896d5118ecc358c0764736f6c63430008130033405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000813ca56906d340000000000000000000000000000000000000000000000000394269d2bf6659000000000000000000000000000007aeca63e4b51b0ff8a8a82b3231033ca4ca6301b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ba68f42eb91ed5ba22af3e62148975e1dd9d231800000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000898000000000000000000000000454cfaa623a629cc0b4017aeb85d54c42e91479d000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000008980000000000000000000000000000000000000000000000000000000000000898000000000000000000000000000000000000000000000000000000000000000f4172676f6e61757473204765617273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054745415253000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146102d257806306b091f9146102cd57806306fdde03146102c8578063081812fc146102c3578063095ea7b3146102be5780631581b600146102b957806318160ddd146102b45780631bcc001c146102af57806323b872dd146102aa5780632acc659e146102a55780632c2f209b146102a057806332cb6b0c1461021e5780633ab1a4941461029b5780633ccfd60b146102965780633f6c9bba1461029157806342842e0e1461028c5780635a9b0b89146102875780636352211e14610282578063672434821461027d5780636817c76c146102785780636a6940cc1461027357806370a082311461026e578063715018a6146102695780637fae588d146102645780638195c9c01461025f5780638da5cb5b1461025a57806391e7cec21461025557806395d89b41146102505780639c3d78e31461024b578063a0712d6814610246578063a22cb46514610241578063a8607a5e1461023c578063b45a3c0e14610237578063b88d4fde14610232578063c0afce0a1461022d578063c2ba474414610228578063c87b56dd14610223578063d5abeb011461021e578063dc4d214214610219578063e985e9c514610214578063ed79e3451461020f578063f2fde38b1461020a578063f4a0a528146102055763fc4c01b71461020057600080fd5b611b28565b611adc565b6119c1565b611925565b6118a1565b611872565b6109c0565b611772565b6116e5565b6116b6565b61162a565b611460565b6113ee565b61130a565b6112ba565b611292565b611184565b611092565b61105e565b610f89565b610ef8565b610e77565b610df2565b610dbe565b610da0565b610c9d565b610c30565b610b38565b610afe565b610ae0565b610a6e565b6109dd565b610974565b61094b565b610937565b6108dc565b6108b5565b610881565b61075e565b6106e4565b6105a1565b6103f6565b610306565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361030157565b600080fd5b346103015760206003193601126103015760207fffffffff00000000000000000000000000000000000000000000000000000000600435610346816102d7565b167f01ffc9a70000000000000000000000000000000000000000000000000000000081149081156103ae575b8115610384575b506040519015158152f35b7f5b5e139f0000000000000000000000000000000000000000000000000000000091501438610379565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150610372565b73ffffffffffffffffffffffffffffffffffffffff81160361030157565b3461030157604060031936011261030157610483600435610416816103d8565b60243590610422611e0a565b600b546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052936020918591829060009082906044820190565b039286165af1928315610517577f6352c5382c4a4578e712449ca65e83cdb392d045dfcf1cad9615189db2da244b936104e9575b506040805173ffffffffffffffffffffffffffffffffffffffff9092168252602082019290925290819081015b0390a1005b6105099060203d8111610510575b61050181836115a0565b8101906122c5565b50386104b7565b503d6104f7565b6122da565b600091031261030157565b60005b83811061053a5750506000910152565b818101518382015260200161052a565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209361058681518092818752878088019101610527565b0116010190565b90602061059e92818152019061054a565b90565b34610301576000806003193601126106e15760405190806002549060019180831c928082169283156106d7575b60209283861085146106aa57858852602088019490811561066b5750600114610612575b61060e87610602818903826115a0565b6040519182918261058d565b0390f35b600260005294509192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b83861061065a57505050910190506106028261060e38806105f2565b80548587015294820194810161063e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685525050505090151560051b0190506106028261060e38806105f2565b6024827f4e487b710000000000000000000000000000000000000000000000000000000081526022600452fd5b93607f16936105ce565b80fd5b3461030157602060031936011261030157600435610701816125bc565b15610734576000526006602052602073ffffffffffffffffffffffffffffffffffffffff60406000205416604051908152f35b60046040517fcf4700e4000000000000000000000000000000000000000000000000000000008152fd5b604060031936011261030157600435610776816103d8565b60243573ffffffffffffffffffffffffffffffffffffffff8061079883612513565b1690813303610818575b600083815260066020526040812080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052600760205260ff6108513360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54166107a25760046040517fcfb3b942000000000000000000000000000000000000000000000000000000008152fd5b3461030157600060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff600b5416604051908152f35b34610301576000600319360112610301576020600019600054600154900301604051908152f35b346103015760006003193601126103015760206040517362437579887178bea81a182db627427bb8e717668152f35b600319606091011261030157600435610923816103d8565b90602435610930816103d8565b9060443590565b6109496109433661090b565b91611e89565b005b34610301576020600319360112610301576109676004356103d8565b6020600954604051908152f35b34610301576020600319360112610301577f100c227b4055dce3cde2f8135b4b2916466c4dc8d379b9f1a1bab3539fceb28260206004356109b3611e0a565b80600a55604051908152a1005b346103015760006003193601126103015760206040516175308152f35b34610301576020600319360112610301577f7560c42213a1d729912e2864a115883b3e527ba2f5813ecc26188d5ea8bcf403602073ffffffffffffffffffffffffffffffffffffffff600435610a32816103d8565b610a3a611e0a565b16807fffffffffffffffffffffffff0000000000000000000000000000000000000000600b541617600b55604051908152a1005b34610301576000806003193601126106e157610ab28180808073ffffffffffffffffffffffffffffffffffffffff600b541647905af1610aac6123b0565b506123e0565b7f04590a28d5a843588aa29cd0037e47b18e8e1223898c124a04ab7165d68d826f602047604051908152a180f35b34610301576000600319360112610301576020600a54604051908152f35b610b073661090b565b60405191602083019383851067ffffffffffffffff861117610b3357610949946040526000845261280d565b611509565b34610301576000806003193601126106e15760c0604051610b5881611538565b8281528260208201528260408201528260608201528260808201528260a0820152015261060e610b9b610b966001600052600d602052604060002090565b61248e565b6009549060606040820151910151610bb381836124d6565b91610bbc6115e1565b9380855280602086015260408501526060840152608083015260a0820152603260c08201526040519182918291909160c08060e0830194805184526020810151602085015260408101516040850152606081015160608501526080810151608085015260a081015160a08501520151910152565b3461030157602060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff610c63600435612513565b16604051908152f35b9181601f840112156103015782359167ffffffffffffffff8311610301576020808501948460051b01011161030157565b346103015760406003193601126103015767ffffffffffffffff60043581811161030157610ccf903690600401610c6c565b9160243590811161030157610ce8903690600401610c6c565b91610cf1611e0a565b828403610d425760005b848110610d0457005b610d2c610d1a610d15838886612445565b612484565b610d25838787612445565b35906129b9565b6000198114610d3d57600101610cfb565b612186565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4172726179206c656e677468206d69736d6174636800000000000000000000006044820152fd5b34610301576000600319360112610301576020600954604051908152f35b3461030157600060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff600c5416604051908152f35b346103015760206003193601126103015773ffffffffffffffffffffffffffffffffffffffff600435610e24816103d8565b168015610e4d576000526005602052602067ffffffffffffffff60406000205416604051908152f35b60046040517f8f4eb604000000000000000000000000000000000000000000000000000000008152fd5b34610301576000806003193601126106e157610e91611e0a565b8073ffffffffffffffffffffffffffffffffffffffff6008547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b34610301576020600319360112610301577f96291762e6aef9be190e60205ae58fb7ad361fd0cfd409523912f629f7808442602073ffffffffffffffffffffffffffffffffffffffff600435610f4d816103d8565b610f55611e0a565b16807fffffffffffffffffffffffff0000000000000000000000000000000000000000600c541617600c55604051908152a1005b60206003193601126103015760043561105b60008080808095818052600d60205261101b6040832091610fda617530610fd383610fce60001960005460015490030190565b6121b5565b11156121c2565b60038301611013828254610ffd610ff183836121b5565b60028901541015612227565b610fce61100c600954846122b2565b341461234b565b9055336129b9565b61105161103661102f6001840154346122b2565b6064900490565b915473ffffffffffffffffffffffffffffffffffffffff1690565b5af1610aac6123b0565b80f35b3461030157600060031936011261030157602073ffffffffffffffffffffffffffffffffffffffff60085416604051908152f35b34610301576040600319360112610301576004356004811015610301577ff75a3b124e4a6501f0b40c58286fdcacb4dd7efbe528bd0c21cc733c7f7aa9da90602435906110dd611e0a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00600f541660ff821617600f5561111381611276565b806111305761112182600955565b6104e4604051928392836124e3565b61113981611276565b600181148015611171575b801561115e575b156111215761115982600a55565b611121565b5061116881611276565b6003811461114b565b5061117b81611276565b60028114611144565b34610301576000806003193601126106e15760405190806003549060019180831c9280821692831561123d575b60209283861085146106aa57858852602088019490811561066b57506001146111e45761060e87610602818903826115a0565b600360005294509192917fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b83861061122c57505050910190506106028261060e38806105f2565b805485870152948201948101611210565b93607f16936111b1565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6004111561128057565b611247565b9060048210156112805752565b3461030157600060031936011261030157602060ff600f54166112b86040518092611285565bf35b60206003193601126103015760043561105b6000808080809560018252600d60205261101b6040832091610fda617530610fd383610fce60001960005460015490030190565b8015150361030157565b3461030157604060031936011261030157600435611327816103d8565b73ffffffffffffffffffffffffffffffffffffffff6024359161134983611300565b3360005260076020526113808160406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b921515927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60043590600382101561030157565b34610301576020600319360112610301576114076113df565b600381101561128057600052600d6020526080604060002073ffffffffffffffffffffffffffffffffffffffff815416906001810154906003600282015491015491604051938452602084015260408301526060820152f35b346103015760206003193601126103015760043561147d816125bc565b156114ab57600052600e60205261060e60ff6040600020541660405191829182919091602081019215159052565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f517565727920666f72206e6f6e2d6578697374656e7420746f6b656e000000006044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60e0810190811067ffffffffffffffff821117610b3357604052565b6080810190811067ffffffffffffffff821117610b3357604052565b67ffffffffffffffff8111610b3357604052565b6060810190811067ffffffffffffffff821117610b3357604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610b3357604052565b604051906115ee82611538565b565b67ffffffffffffffff8111610b3357601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b608060031936011261030157600435611642816103d8565b60243561164e816103d8565b6064359167ffffffffffffffff831161030157366023840112156103015782600401359161167b836115f0565b9261168960405194856115a0565b8084523660248287010111610301576020816000926024610949980183880137850101526044359161280d565b34610301576000600319360112610301576020604051731ebfd0d52aa04350f512abcfd45ffb0bb86f0cc28152f35b34610301576020600319360112610301576117016004356103d8565b6001600052600d60205261060e6117626060604060002060405161172481611554565b73ffffffffffffffffffffffffffffffffffffffff8254168152600182015460208201526003600283015492836040840152015492839101526124d6565b6040519081529081906020820190565b346103015760206003193601126103015760043561178f816125bc565b156118485761181661060261060e9261181c611806604051926117b184611584565b602784527f68747470733a2f2f6261636b656e642e6172676f66696e616e63652e6d6f6e6560208501527f792f676561722f000000000000000000000000000000000000000000000000006040850152612ae1565b60405194859360208501906124fc565b906124fc565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081018352826115a0565b60046040517fa14c4b50000000000000000000000000000000000000000000000000000000008152fd5b346103015760006003193601126103015760206040517347a9d630dc5b28f75d3af3be3aaa982512cd89aa8152f35b3461030157604060031936011261030157602060ff6119196004356118c5816103d8565b73ffffffffffffffffffffffffffffffffffffffff602435916118e7836103d8565b166000526007845260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54166040519015158152f35b346103015760806003193601126103015761193e6113df565b6024359061194b826103d8565b611953611e0a565b600381101561128057600052600d6020526119ae604060002091829073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b6044356001820155606435600290910155005b34610301576020600319360112610301576004356119de816103d8565b6119e6611e0a565b73ffffffffffffffffffffffffffffffffffffffff809116908115611a5857600854827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b34610301576020600319360112610301577f525b762709cc2a983aec5ccdfd807a061f993c91090b5bcd7da92ca254976aaa6020600435611b1b611e0a565b80600955604051908152a1005b602080600319360112610301576002600052600d6020526004908135907f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249611b82617530610fd385610fce60001960005460015490030190565b611ba7836003830192610fce8454916002611b9d85856121b5565b9101541015612227565b9055600f5460ff16611bb881611276565b80611bd95750506109499150611bd361100c600954836122b2565b336129b9565b611be281611276565b60018103611d1a5750611c4090611bfb83600a546122b2565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233878201908152306020820152918201929092529092839160600190565b039060009281817347a9d630dc5b28f75d3af3be3aaa982512cd89aa948187875af190811561051757611c7b928592611cfd575b50506122e6565b611c8783600a546122b2565b90803b15611cf9576040517f42966c68000000000000000000000000000000000000000000000000000000008152948501918252849182908490829060200103925af19182156105175761094992611ce0575b50611bd3565b80611ced611cf392611570565b8061051c565b38611cda565b8280fd5b611d139250803d106105105761050181836115a0565b3880611c74565b80611d26600392611276565b03611d7557611d3b90611bfb83600a546122b2565b039060009281817362437579887178bea81a182db627427bb8e71766948187875af190811561051757611c7b928592611cfd5750506122e6565b80611dce93611d8684600a546122b2565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233938101938452306020850152908301919091529485918291606090910190565b03816000731ebfd0d52aa04350f512abcfd45ffb0bb86f0cc25af180156105175761094993611e0592600092611cfd5750506122e6565b611bd3565b73ffffffffffffffffffffffffffffffffffffffff600854163303611e2b57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b9190611ec6611ead600c5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff90848216908103611f54575050507ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f1842915080611762611f27611f4f93600052600e602052604060002090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008154169055565b0390a1565b611f66611ead611ead611ead87612513565b0361215c576000838152600660205260409020805491611fa673ffffffffffffffffffffffffffffffffffffffff871633908114908514171590565b1590565b6120d4575b83169182156120aa576120a0575b50611fd8611fd184600052600e602052604060002090565b5460ff1690565b61207657611ffe611ead600c5473ffffffffffffffffffffffffffffffffffffffff1690565b0361206d57507f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a1611915080611762612042611f4f93600052600e602052604060002090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b6115ee92612610565b60046040517f5e581621000000000000000000000000000000000000000000000000000000008152fd5b6000905538611fb9565b60046040517fea553b34000000000000000000000000000000000000000000000000000000008152fd5b61212d611fa2611fd1336121088a73ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b9073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b15611fab5760046040517f59c896be000000000000000000000000000000000000000000000000000000008152fd5b60046040517fa1148100000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908201809211610d3d57565b156121c957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d617820737570706c79207265616368656400000000000000000000000000006044820152fd5b1561222e57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4d617820737570706c79206f6620746865206d61726b6574706c61636520726560448201527f61636865640000000000000000000000000000000000000000000000000000006064820152fd5b81810292918115918404141715610d3d57565b90816020910312610301575161059e81611300565b6040513d6000823e3d90fd5b156122ed57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152fd5b1561235257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152fd5b3d156123db573d906123c1826115f0565b916123cf60405193846115a0565b82523d6000602084013e565b606090565b156123e757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152fd5b91908110156124555760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b3561059e816103d8565b9060405161249b81611554565b60606003829473ffffffffffffffffffffffffffffffffffffffff815416845260018101546020850152600281015460408501520154910152565b91908203918211610d3d57565b602090939291936124f8816040810196611285565b0152565b9061250f60209282815194859201610527565b0190565b600081806001111561254a575b60046040517fdf2d9b42000000000000000000000000000000000000000000000000000000008152fd5b815481101561252057815260049060209180835260409283832054947c010000000000000000000000000000000000000000000000000000000086161561259357505050612520565b93929190935b85156125a757505050505090565b60001901808352818552838320549550612599565b80600111159081612604575b816125d1575090565b905060005260046020527c0100000000000000000000000000000000000000000000000000000000604060002054161590565b600054811091506125c8565b9061261a83612513565b73ffffffffffffffffffffffffffffffffffffffff80841692838284160361215c5760008681526006602052604090208054909261267473ffffffffffffffffffffffffffffffffffffffff881633908114908414171590565b6127aa575b82169586156120aa576126e4936126b6926127a0575b5073ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b805460001901905573ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b805460010190557c0200000000000000000000000000000000000000000000000000000000804260a01b851717612725866000526004602052604060002090565b55811615612756575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b6001840161276e816000526004602052604060002090565b541561277b575b5061272e565b600054811461277557612798906000526004602052604060002090565b553880612775565b600090553861268f565b6127de611fa2611fd1336121088b73ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b156126795760046040517f59c896be000000000000000000000000000000000000000000000000000000008152fd5b92919061281b828286611e89565b803b612828575b50505050565b612831936128ba565b1561283f5738808080612822565b60046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b90816020910312610301575161059e816102d7565b909261059e949360809373ffffffffffffffffffffffffffffffffffffffff80921684521660208301526040820152816060820152019061054a565b9260209161291193600073ffffffffffffffffffffffffffffffffffffffff6040518097819682957f150b7a02000000000000000000000000000000000000000000000000000000009b8c8552336004860161287e565b0393165af160009181612989575b506129635761292c6123b0565b8051908161295e5760046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6129ab91925060203d81116129b2575b6129a381836115a0565b810190612869565b903861291f565b503d612999565b906000908154928115612ab7576129f08173ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b680100000000000000018302815401905573ffffffffffffffffffffffffffffffffffffffff600191169181811460e11b4260a01b178317612a3c866000526004602052604060002090565b55840193817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91808587858180a4015b858103612aa85750505015612a7e5755565b60046040517f2e076300000000000000000000000000000000000000000000000000000000008152fd5b8083918587858180a401612a6c565b60046040517fb562e8dd000000000000000000000000000000000000000000000000000000008152fd5b9060405160a08101604052600019608082019360008552935b0192600a90818106603001855304928315612b185760001990612afa565b92506080837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0920301920191825256fea26469706673582212206c3b30cc875844e3929acb789b866c12d4c04b0c09c359b896d5118ecc358c0764736f6c63430008130033

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

00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000813ca56906d340000000000000000000000000000000000000000000000000394269d2bf6659000000000000000000000000000007aeca63e4b51b0ff8a8a82b3231033ca4ca6301b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ba68f42eb91ed5ba22af3e62148975e1dd9d231800000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000898000000000000000000000000454cfaa623a629cc0b4017aeb85d54c42e91479d000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000008980000000000000000000000000000000000000000000000000000000000000898000000000000000000000000000000000000000000000000000000000000000f4172676f6e61757473204765617273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054745415253000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Argonauts Gears
Arg [1] : _symbol (string): GEARS
Arg [2] : _mintPrice (uint256): 149000000000000000000
Arg [3] : _erc20MintPrice (uint256): 16900000000000000000000
Arg [4] : _withdrawAddress (address): 0x7AECa63e4B51b0Ff8A8a82b3231033ca4CA6301b
Arg [5] : _paymentMode (uint8): 1
Arg [6] : _mintedNetworkContract (address): 0xBA68f42eb91ED5bA22AF3E62148975e1dD9D2318
Arg [7] : _mintedNetworkPercentage (uint256): 5
Arg [8] : _mintedNetworkMaxSupply (uint256): 2200
Arg [9] : _ebisuBayContract (address): 0x454cfAa623A629CC0b4017aEb85d54C42e91479d
Arg [10] : _ebisuBayPercentage (uint256): 5
Arg [11] : _ebisuBayMaxSupply (uint256): 2200
Arg [12] : _atlantisMaxSupply (uint256): 2200

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [2] : 00000000000000000000000000000000000000000000000813ca56906d340000
Arg [3] : 000000000000000000000000000000000000000000000394269d2bf665900000
Arg [4] : 0000000000000000000000007aeca63e4b51b0ff8a8a82b3231033ca4ca6301b
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 000000000000000000000000ba68f42eb91ed5ba22af3e62148975e1dd9d2318
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000898
Arg [9] : 000000000000000000000000454cfaa623a629cc0b4017aeb85d54c42e91479d
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000898
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000898
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [14] : 4172676f6e617574732047656172730000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [16] : 4745415253000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
view all blocks validated

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.