ETH Price: $3,499.72 (+0.01%)
Gas: 5 Gwei

Contract

0x2394EdCC5aB1393A47f4FD87E0cF561fB5718C97
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...198349282024-05-09 20:39:3574 days ago1715287175IN
0x2394EdCC...fB5718C97
0 ETH0.00018764.06565258
Set Approval For...197991542024-05-04 20:33:5979 days ago1714854839IN
0x2394EdCC...fB5718C97
0 ETH0.000143245.44111792
Set Approval For...197991512024-05-04 20:33:2379 days ago1714854803IN
0x2394EdCC...fB5718C97
0 ETH0.000252355.45906319
Set Approval For...190878362024-01-26 2:34:59179 days ago1706236499IN
0x2394EdCC...fB5718C97
0 ETH0.0006239125.65966093
Safe Transfer Fr...186100352023-11-20 2:31:23246 days ago1700447483IN
0x2394EdCC...fB5718C97
0 ETH0.0014557421.07125289
Transfer From182179602023-09-26 5:45:59301 days ago1695707159IN
0x2394EdCC...fB5718C97
0 ETH0.00041788.48416598
Transfer From182179592023-09-26 5:45:47301 days ago1695707147IN
0x2394EdCC...fB5718C97
0 ETH0.000422728.58409765
Transfer From182179582023-09-26 5:45:35301 days ago1695707135IN
0x2394EdCC...fB5718C97
0 ETH0.000412648.37938168
Transfer From182179562023-09-26 5:45:11301 days ago1695707111IN
0x2394EdCC...fB5718C97
0 ETH0.00056868.5703644
Transfer From179811232023-08-24 0:55:35334 days ago1692838535IN
0x2394EdCC...fB5718C97
0 ETH0.0008780914.26746584
Set Approval For...178714382023-08-08 16:37:23349 days ago1691512643IN
0x2394EdCC...fB5718C97
0 ETH0.0016831436.47663413
Set Approval For...178122422023-07-31 9:57:47358 days ago1690797467IN
0x2394EdCC...fB5718C97
0 ETH0.0006646914.40514146
Set Approval For...177886782023-07-28 2:49:23361 days ago1690512563IN
0x2394EdCC...fB5718C97
0 ETH0.0009152319.83473102
Transfer From176663412023-07-10 22:51:47378 days ago1689029507IN
0x2394EdCC...fB5718C97
0 ETH0.0008215816.68368502
Set Approval For...175601892023-06-26 0:57:35393 days ago1687741055IN
0x2394EdCC...fB5718C97
0 ETH0.000568512.32056971
Set Approval For...175519072023-06-24 21:00:23394 days ago1687640423IN
0x2394EdCC...fB5718C97
0 ETH0.0007084515.35345353
Set Approval For...173925622023-06-02 10:47:59417 days ago1685702879IN
0x2394EdCC...fB5718C97
0 ETH0.0011075424.00235905
Set Approval For...173881752023-06-01 19:57:47417 days ago1685649467IN
0x2394EdCC...fB5718C97
0 ETH0.001942942.10624634
Transfer From173140232023-05-22 9:43:47428 days ago1684748627IN
0x2394EdCC...fB5718C97
0 ETH0.0016606426.98787656
Set Approval For...171366262023-04-27 9:27:59453 days ago1682587679IN
0x2394EdCC...fB5718C97
0 ETH0.0016395835.53267446
Transfer From171346102023-04-27 2:40:35453 days ago1682563235IN
0x2394EdCC...fB5718C97
0 ETH0.0016579937.304434
Set Approval For...170663092023-04-17 11:50:23463 days ago1681732223IN
0x2394EdCC...fB5718C97
0 ETH0.0013225328.60963657
Set Approval For...170352512023-04-12 23:58:35467 days ago1681343915IN
0x2394EdCC...fB5718C97
0 ETH0.0005044920.74848347
Set Approval For...169946112023-04-07 5:38:35473 days ago1680845915IN
0x2394EdCC...fB5718C97
0 ETH0.0009164519.86114804
Set Approval For...167796172023-03-07 23:14:11503 days ago1678230851IN
0x2394EdCC...fB5718C97
0 ETH0.000745130.75002102
View all transactions

Latest 15 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
158653252022-10-31 3:22:35631 days ago1667186555
0x2394EdCC...fB5718C97
1.69 ETH
156693882022-10-03 18:23:35658 days ago1664821415
0x2394EdCC...fB5718C97
0.43 ETH
155002802022-09-09 2:40:07683 days ago1662691207
0x2394EdCC...fB5718C97
0.66 ETH
154086382022-08-25 10:40:51698 days ago1661424051
0x2394EdCC...fB5718C97
1.4 ETH
153457642022-08-15 11:33:39708 days ago1660563219
0x2394EdCC...fB5718C97
0.51 ETH
152992212022-08-08 3:28:29715 days ago1659929309
0x2394EdCC...fB5718C97
0.55 ETH
151640782022-07-18 3:01:43736 days ago1658113303
0x2394EdCC...fB5718C97
0.78 ETH
151101302022-07-09 18:55:39744 days ago1657392939
0x2394EdCC...fB5718C97
0.51 ETH
151030852022-07-08 16:45:25745 days ago1657298725
0x2394EdCC...fB5718C97
0.94 ETH
150034362022-06-21 17:38:45762 days ago1655833125
0x2394EdCC...fB5718C97
0.92 ETH
148067902022-05-19 19:37:51795 days ago1652989071
0x2394EdCC...fB5718C97
1.38 ETH
146115822022-04-18 21:28:36826 days ago1650317316
0x2394EdCC...fB5718C97
2.72 ETH
145917192022-04-15 18:55:32829 days ago1650048932
0x2394EdCC...fB5718C97
1.1 ETH
145331172022-04-06 15:27:51838 days ago1649258871
0x2394EdCC...fB5718C97
5.6 ETH
144321612022-03-21 21:37:36854 days ago1647898656
0x2394EdCC...fB5718C97
10.01 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RxnegadeApes

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : RxnegadeApes.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "erc721a/contracts/ERC721A.sol";

import "../RxnegadeCollection/RxnegadeCollection.sol";

/**
 * @title RxnegadeApes
 */
contract RxnegadeApes is IERC2981, ERC721A, Ownable, RxnegadeCollection {
    address private SIGNER_ADDRESS;

    bool public PUBLIC_MINTING_ACTIVE = false;
    bool public FROZEN = false;

    mapping(uint256 => bool) public freeTokenMinted;
    mapping(bytes32 => bool) private nonceUsed;

    string private BASE_URI;
    string public contractURI;

    uint256 public ownerMinted = 0;
    uint256 private constant MAX_OWNER_MINTS = 200;

    uint256 private constant MAX_TOKENS_PER_MEMBER = 100;
    uint256 private constant MAX_TOKENS_PER_MINT = 100;
    uint256 private constant MAX_TOTAL_SUPPLY = 19946;

    uint256 public constant TOKEN_PRICE = 0.01 ether;

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _initBaseURI,
        string memory _contractURI,
        address rxngd_,
        address signer_
    ) ERC721A(_name, _symbol) {
        _init(rxngd_, _startTokenId(), MAX_TOTAL_SUPPLY);
        
        BASE_URI = _initBaseURI;
        contractURI = _contractURI;

        SIGNER_ADDRESS = signer_;
    }

    modifier onlyEOA() {
        require(msg.sender == tx.origin, "Only EOA");
        _;
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    // EXTERNAL

    receive() external payable {}

    // PUBLIC

    /**
     * Mint Tokens
     * @dev mints the quantity of tokens to the sender, requires a signature from a message signed by the RXAPE Signer
     * @param quantity the number of tokens to mint
     * @param nonce the nonce used to form the signature
     */
    function mint(
        uint256 quantity,
        uint256 rxId,
        string memory nonce,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public payable onlyEOA onlyRx {
        _checkPublicMinting();
        _checkRx(rxId);
        _checkQuantity(quantity, rxId);
        _checkValue(quantity);
        _verifySignature(nonce, v, r, s);

        _setMintedByRx(_currentIndex, quantity, rxId);
        _safeMint(msg.sender, quantity);
    }

    /**
     * Mint Complimentary Token
     * @dev mints a token to the sender without paying, requires a signature from a message signed by the RXAPE Signer
     * @param nonce the nonce used to form the signature
     */
    function mintComplimentary(
        uint256 rxId,
        string memory nonce,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public onlyEOA onlyRx {
        _checkPublicMinting();
        _checkRx(rxId);
        _checkQuantity(1, rxId);
        require(
            !freeTokenMinted[rxId],
            "RXAPE: complimentary token already minted"
        );
        _verifySignature(nonce, v, r, s);

        freeTokenMinted[rxId] = true;
        _setMintedByRx(_currentIndex, 1, rxId);
        _safeMint(msg.sender, 1);
    }

    /**
     * Gift Tokens
     * @dev mints tokens to the provided address, requires a signature from a message signed by the RXAPE Signer
     * @param to address to mint the tokens to
     * @param nonce the nonce used to form the signature
     */
    function mintGift(
        address to,
        uint256 quantity,
        uint256 rxId,
        string memory nonce,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public payable onlyEOA onlyRx {
        _checkPublicMinting();
        _checkRx(rxId);
        _checkQuantity(quantity, rxId);
        _checkValue(quantity);
        _verifySignature(nonce, v, r, s);

        _setMintedByRx(_currentIndex, quantity, rxId);
        _safeMint(to, quantity);
    }

    /**
     * Royalty Info
     * @dev provides the amount and address to send royalties to for a token sale
     * @param tokenId the ID of the token sold
     * @param salePrice the full price paid in the sale of the token
     * @return address the address to send royalties to
     * @return uint256 the royalty value in the same denomination provided for salePrice
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address, uint256)
    {
        address recipient = tokenRxOwner(tokenId);
        uint256 royaltyPts = tokenRoyaltyPts(tokenId);

        uint256 safePrice = salePrice - (salePrice % 10000);
        uint256 royaltyAmount = (safePrice / 10000) * royaltyPts;

        return (recipient, royaltyAmount);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    // ONLY OWNER

    /**
     * Freeze Contract
     * @dev prevents further changes to the metadata URI
     */
    function freeze() public onlyOwner {
        _checkFrozen();
        require(
            !PUBLIC_MINTING_ACTIVE || _currentIndex > MAX_TOTAL_SUPPLY,
            "RXAPE: Public minting still active"
        );
        FROZEN = true;
    }

    /**
     * Owner Mint
     * @dev mints quantity of tokens to the owner of the specified RXNGD token
     * @param rxId the id of the Rxnegades member token
     * @param quantity the quantity of tokens to mint to the Rxngades member
     */
    function ownerMint(uint256 rxId, uint256 quantity) public onlyOwner {
        require(
            ownerMinted + quantity <= MAX_OWNER_MINTS,
            "RXAPE: too many minted as owner"
        );
        _checkQuantity(quantity, rxId);

        ownerMinted += quantity;
        _setMintedByRx(_currentIndex, quantity, rxId);
        _safeMint(_rxOwner(rxId), quantity);
    }

    /**
     * Set Base URI
     * @dev updates the base URI used for providing token metadata
     */
    function setBaseURI(string memory uri) public onlyOwner {
        _checkFrozen();
        BASE_URI = uri;
    }

    /**
     * Set Signer Address
     * @dev updates the address of the wallet used to sign server messages
     */
    function setSignerAddress(address address_) public onlyOwner {
        SIGNER_ADDRESS = address_;
    }

    /**
     * Toogle Public Minting
     * @dev ollows the owner to turn public minting on and off
     */
    function togglePublicMinting() public onlyOwner {
        PUBLIC_MINTING_ACTIVE = !PUBLIC_MINTING_ACTIVE;
    }

    /**
     * Withdraw
     * @dev allows the owner to withdraw contract balance to the given address
     */
    function withdraw(address address_) public onlyOwner {
        payable(address_).transfer(address(this).balance);
    }

    // PUBLIC VIEWS

    /**
     * Token URI
     * @param tokenId the ID of the token to retrieve the metadata location for
     * @return string the metadata location of the specified token ID
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(tokenId < _currentIndex, "RXAPE: nonexistent token");
        return string(abi.encodePacked(BASE_URI, Strings.toString(tokenId)));
    }

    // INTERNAL

    function _baseURI() internal view override returns (string memory) {
        return BASE_URI;
    }

    // PRIVATE

    function _checkFrozen() internal view {
        require(!FROZEN, "RXAPE: contract frozen");
    }

    function _checkPublicMinting() internal view {
        require(PUBLIC_MINTING_ACTIVE, "RXAPE: Public minting not active");
    }

    function _checkQuantity(uint256 quantity, uint256 rxId) internal view {
        require(quantity <= MAX_TOKENS_PER_MINT, "RXAPE: quantity too high");
        require(
            _currentIndex - _startTokenId() + quantity <= MAX_TOTAL_SUPPLY,
            "RXAPE: not enough supply left"
        );
        _checkRxCollectionSize(rxId, quantity);
    }

    function _checkRx(uint256 rxId) internal view {
        require(
            _rxOwner(rxId) == msg.sender,
            "RXAPE: caller is not the RXNGD token owner"
        );
    }

    function _checkRxCollectionSize(uint256 rxId, uint256 quantity)
        internal
        view
    {
        require(
            rxCollectionSize[rxId] + quantity <= MAX_TOKENS_PER_MEMBER,
            "RxnegadeCollection: more than total allowed per Rxnegade"
        );
    }

    function _checkValue(uint256 quantity) internal view {
        uint256 requiredValue = TOKEN_PRICE * quantity;
        require(msg.value >= requiredValue, "RXAPE: not enough ETH sent");
    }

    function _verifySignature(
        string memory nonce,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) private {
        bytes32 message = keccak256(abi.encodePacked(nonce, msg.sender));

        require(!nonceUsed[message], "RXAPE: nonce already used");

        bytes32 hash = keccak256(
            abi.encodePacked("\x19Ethereum Signed Message:\n32", message)
        );
        require(
            ecrecover(hash, v, r, s) == SIGNER_ADDRESS,
            "RXAPE: invalid signature"
        );

        nonceUsed[message] = true;
    }
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 3 of 15 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _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 ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary 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 {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    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, tokenId.toString())) : '';
    }

    /**
     * @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, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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 (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @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.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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 {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

    /**
     * @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 {}
}

File 5 of 15 : RxnegadeCollection.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IRxnegades is IERC721 {}

abstract contract RxnegadeCollection {
    IRxnegades Rxnegades;

    mapping(uint256 => uint256) _rxRoyaltyPts;
    mapping(uint256 => bool) _rxRoyaltyPtsSet;
    mapping(uint256 => uint256) _tokenRxId;

    // mapping from an RXNGD token id to the number of related tokens in the current collection
    mapping(uint256 => uint256) public rxCollectionSize;

    uint256 _nextTokenId;
    uint256 _maxTokenId;
    uint256 _minTokenId;

    uint256 defaultRoyaltyPts = 500;

    modifier onlyRx() {
        require(
            Rxnegades.balanceOf(msg.sender) > 0,
            "RxnegadeCollection: caller is not a RXNGD holder"
        );
        _;
    }

    /**
     * RXNGD Token Transfer
     * @dev allows a Rxnegade with multiple RXNGD tokens to change which RXNGD id a token is linked to
     * @param from the existing RXNGD token ID
     * @param to the new RXNGD token ID
     * @param tokenId the token that they want to change
     */
    function rxTransfer(
        uint256 from,
        uint256 to,
        uint256 tokenId
    ) public {
        require(from != to, "RxnegadeCollection: RXNGD Ids must be unique");
        require(
            Rxnegades.ownerOf(from) == msg.sender &&
                Rxnegades.ownerOf(to) == msg.sender,
            "RxnegadeCollection: caller must be the owner of both RXNGD tokens"
        );
        require(
            tokenRxId(tokenId) == from,
            "RxnegadeCollection: tokenId not in from's collection"
        );

        rxCollectionSize[from]--;
        rxCollectionSize[to]++;
        _tokenRxId[tokenId] = to;

        uint256 nextTokenId = tokenId + 1;
        if (nextTokenId < _nextTokenId && _tokenRxId[nextTokenId] == 0) {
            _tokenRxId[nextTokenId] = from;
        }
    }

    /**
     * @dev allows a Rxnegade to set the royalty percentage for tokens associated with their id
     * @param rxId Rxnegades tokenId
     * @param pts Percentage points to be used to calculate royalty amounts
     */
    function setRoyaltyPts(uint256 rxId, uint256 pts) public {
        require(
            msg.sender == Rxnegades.ownerOf(rxId),
            "RxnegadeCollection: caller is not the RXNGD token owner"
        );
        require(
            pts <= 1000,
            "RxnegadeCollection: royalty percentage can't be greater than 10%"
        );
        _rxRoyaltyPts[rxId] = pts;
        _rxRoyaltyPtsSet[rxId] = true;
    }

    /**
     * Token Royalty Percentage Points
     * @dev get the royalty points for a token by looking up the value set for the rx id associated with it
     * @param tokenId the tokenId from the collection
     * @return uint256 royalty percentage points
     */
    function tokenRoyaltyPts(uint256 tokenId) public view returns (uint256) {
        uint256 rxId = tokenRxId(tokenId);
        if (_rxRoyaltyPtsSet[rxId]) {
            return _rxRoyaltyPts[rxId];
        }
        return defaultRoyaltyPts;
    }

    /**
     * Token Related RXNGD ID
     * @dev get the Rxnegades RXNGD token related to the cpecified collection tokenId
     * @param tokenId the id of the token to find the id of the Rxnegade that minted it
     * @return uint256 the id of the RXNGD member that minted the specified token
     */
    function tokenRxId(uint256 tokenId) public view returns (uint256) {
        uint256 curr = tokenId;

        if (_minTokenId <= tokenId && tokenId < _nextTokenId) {
            uint256 rxId = _tokenRxId[tokenId];
            if (rxId != 0) {
                return rxId;
            }
            while (true) {
                curr--;
                rxId = _tokenRxId[curr];
                if (rxId != 0) {
                    return rxId;
                }
            }
        }
        revert("Owner query for nonexistent token");
    }

    /**
     * Token Rxnegade Owner
     * @dev fetches the address of the owner of the rx token associated with the given tokenId
     * @param tokenId the id of the token to find the id of the Rxnegade that minted it
     * @return address the address of the RXNGD member that minted the specified token
     */
    function tokenRxOwner(uint256 tokenId) public view returns (address) {
        return Rxnegades.ownerOf(tokenRxId(tokenId));
    }

    // INTERNAL

    /**
     * @dev adds to the quantity of tokens associated with a particular Rxnegade
     */
    function _addToRxCollection(uint256 quantity, uint256 rxId) internal {
        rxCollectionSize[rxId] += quantity;
    }

    /**
     * @dev initialises the contract counters and Rxnegades contract address
     */
    function _init(
        address rxngdAddress,
        uint256 firstTokenId,
        uint256 maxSupply
    ) internal {
        Rxnegades = IRxnegades(rxngdAddress);
        _minTokenId = firstTokenId;
        _nextTokenId = firstTokenId;
        _maxTokenId = maxSupply + firstTokenId - 1;
    }

    /**
     * @dev fetches the address of the owner of the rx token id
     */
    function _rxOwner(uint256 rxId) internal view returns (address) {
        return Rxnegades.ownerOf(rxId);
    }

    /**
     * @dev records the rx id used to mint tokens
     */
    function _setMintedByRx(
        uint256 tokenId,
        uint256 quantity,
        uint256 rxId
    ) internal {
        require(
            _rxOwner(rxId) != address(0),
            "RxnegadeCollection: RX token owner is zero address"
        );
        _addToRxCollection(quantity, rxId);
        _tokenRxId[tokenId] = rxId;
        _nextTokenId += quantity;
    }
}

File 6 of 15 : 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 7 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

File 8 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 9 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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
    ) external;

    /**
     * @dev Transfers `tokenId` token 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;

    /**
     * @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;

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

    /**
     * @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 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);

    /**
     * @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 calldata data
    ) external;
}

File 10 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

File 12 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"address","name":"rxngd_","type":"address"},{"internalType":"address","name":"signer_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[],"name":"FROZEN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINTING_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"freeTokenMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"quantity","type":"uint256"},{"internalType":"uint256","name":"rxId","type":"uint256"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rxId","type":"uint256"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintComplimentary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"rxId","type":"uint256"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintGift","outputs":[],"stateMutability":"payable","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":"rxId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rxCollectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rxTransfer","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":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rxId","type":"uint256"},{"internalType":"uint256","name":"pts","type":"uint256"}],"name":"setRoyaltyPts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"setSignerAddress","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenRoyaltyPts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenRxId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenRxOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526101f46011556012805461ffff60a01b1916905560006017553480156200002a57600080fd5b50604051620034bd380380620034bd8339810160408190526200004d9162000306565b8551869086906200006690600290602085019062000190565b5080516200007c90600390602084019062000190565b50506001600055506200008f33620000f7565b6200009f826001614dea62000149565b8351620000b490601590602087019062000190565b508251620000ca90601690602086019062000190565b50601280546001600160a01b0319166001600160a01b0392909216919091179055506200047c9350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600980546001600160a01b0319166001600160a01b0385161790556010829055600e82905560016200017c8383620003de565b620001889190620003f9565b600f55505050565b8280546200019e9062000413565b90600052602060002090601f016020900481019282620001c257600085556200020d565b82601f10620001dd57805160ff19168380011785556200020d565b828001600101855582156200020d579182015b828111156200020d578251825591602001919060010190620001f0565b506200021b9291506200021f565b5090565b5b808211156200021b576000815560010162000220565b80516001600160a01b03811681146200024e57600080fd5b919050565b600082601f83011262000264578081fd5b81516001600160401b038082111562000281576200028162000466565b604051601f8301601f19908116603f01168101908282118183101715620002ac57620002ac62000466565b81604052838152602092508683858801011115620002c8578485fd5b8491505b83821015620002eb5785820183015181830184015290820190620002cc565b83821115620002fc57848385830101525b9695505050505050565b60008060008060008060c087890312156200031f578182fd5b86516001600160401b038082111562000336578384fd5b620003448a838b0162000253565b975060208901519150808211156200035a578384fd5b620003688a838b0162000253565b965060408901519150808211156200037e578384fd5b6200038c8a838b0162000253565b95506060890151915080821115620003a2578384fd5b50620003b189828a0162000253565b935050620003c26080880162000236565b9150620003d260a0880162000236565b90509295509295509295565b60008219821115620003f457620003f462000450565b500190565b6000828210156200040e576200040e62000450565b500390565b600181811c908216806200042857607f821691505b602082108114156200044a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613031806200048c6000396000f3fe6080604052600436106102345760003560e01c806362a5af3b1161012e578063ad3cbf4a116100ab578063d47573d41161006f578063d47573d4146106b0578063e8a3d485146106d0578063e985e9c5146106e5578063f2fde38b1461072e578063f93c6db01461074e57600080fd5b8063ad3cbf4a14610615578063b88d4fde14610635578063c87b56dd14610655578063d2d8cb6714610675578063d310c5ee1461069057600080fd5b80638da5cb5b116100f25780638da5cb5b1461058257806395d89b41146105a05780639f535821146105b5578063a1c5f883146105c8578063a22cb465146105f557600080fd5b806362a5af3b146105035780636352211e146105185780636b8a21fc1461053857806370a082311461054d578063715018a61461056d57600080fd5b806323b872dd116101bc57806342842e0e1161018057806342842e0e1461046257806351cff8d914610482578063529f4f40146104a257806355f804b3146104c35780635809eacb146104e357600080fd5b806323b872dd1461039257806327f60121146103b25780632a55205a146103d2578063397560da146104115780633b5764eb1461044157600080fd5b8063095ea7b311610203578063095ea7b3146102f15780630bf7a6271461031157806318160ddd146103355780631c6ea6a2146103525780631ec1d6341461037257600080fd5b806301ffc9a714610240578063046dc1661461027557806306fdde0314610297578063081812fc146102b957600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b5061026061025b366004612aa7565b610761565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061029561029036600461289b565b61078c565b005b3480156102a357600080fd5b506102ac6107e1565b60405161026c9190612dc5565b3480156102c557600080fd5b506102d96102d4366004612b11565b610873565b6040516001600160a01b03909116815260200161026c565b3480156102fd57600080fd5b5061029561030c3660046129f8565b6108b7565b34801561031d57600080fd5b5061032760175481565b60405190815260200161026c565b34801561034157600080fd5b506001546000540360001901610327565b34801561035e57600080fd5b5061029561036d366004612c38565b610945565b34801561037e57600080fd5b5061032761038d366004612b11565b610c44565b34801561039e57600080fd5b506102956103ad36600461290b565b610d01565b3480156103be57600080fd5b506102956103cd366004612b41565b610d0c565b3480156103de57600080fd5b506103f26103ed366004612ba7565b610e97565b604080516001600160a01b03909316835260208301919091520161026c565b34801561041d57600080fd5b5061026061042c366004612b11565b60136020526000908152604090205460ff1681565b34801561044d57600080fd5b5060125461026090600160a81b900460ff1681565b34801561046e57600080fd5b5061029561047d36600461290b565b610ef6565b34801561048e57600080fd5b5061029561049d36600461289b565b610f11565b3480156104ae57600080fd5b5060125461026090600160a01b900460ff1681565b3480156104cf57600080fd5b506102956104de366004612adf565b610f74565b3480156104ef57600080fd5b506102d96104fe366004612b11565b610fb9565b34801561050f57600080fd5b50610295611044565b34801561052457600080fd5b506102d9610533366004612b11565b6110fe565b34801561054457600080fd5b50610295611110565b34801561055957600080fd5b5061032761056836600461289b565b61115b565b34801561057957600080fd5b506102956111a9565b34801561058e57600080fd5b506008546001600160a01b03166102d9565b3480156105ac57600080fd5b506102ac6111df565b6102956105c3366004612bc8565b6111ee565b3480156105d457600080fd5b506103276105e3366004612b11565b600d6020526000908152604090205481565b34801561060157600080fd5b506102956106103660046129c7565b6112f5565b34801561062157600080fd5b50610295610630366004612ba7565b61138b565b34801561064157600080fd5b5061029561065036600461294b565b61152f565b34801561066157600080fd5b506102ac610670366004612b11565b61157a565b34801561068157600080fd5b50610327662386f26fc1000081565b34801561069c57600080fd5b506103276106ab366004612b11565b6115ff565b3480156106bc57600080fd5b506102956106cb366004612ba7565b611644565b3480156106dc57600080fd5b506102ac61170d565b3480156106f157600080fd5b506102606107003660046128d3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561073a57600080fd5b5061029561074936600461289b565b61179b565b61029561075c366004612a23565b611836565b60006001600160e01b0319821663152a902d60e11b148061078657506107868261193e565b92915050565b6008546001600160a01b031633146107bf5760405162461bcd60e51b81526004016107b690612e4a565b60405180910390fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600280546107f090612f24565b80601f016020809104026020016040519081016040528092919081815260200182805461081c90612f24565b80156108695780601f1061083e57610100808354040283529160200191610869565b820191906000526020600020905b81548152906001019060200180831161084c57829003601f168201915b5050505050905090565b600061087e8261198e565b61089b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108c2826110fe565b9050806001600160a01b0316836001600160a01b031614156108f75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061091757506109158133610700565b155b15610935576040516367d9dca160e11b815260040160405180910390fd5b6109408383836119c7565b505050565b818314156109aa5760405162461bcd60e51b815260206004820152602c60248201527f52786e6567616465436f6c6c656374696f6e3a2052584e474420496473206d7560448201526b737420626520756e6971756560a01b60648201526084016107b6565b6009546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156109ee57600080fd5b505afa158015610a02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2691906128b7565b6001600160a01b0316148015610abe57506009546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610a7b57600080fd5b505afa158015610a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab391906128b7565b6001600160a01b0316145b610b3a5760405162461bcd60e51b815260206004820152604160248201527f52786e6567616465436f6c6c656374696f6e3a2063616c6c6572206d7573742060448201527f626520746865206f776e6572206f6620626f74682052584e474420746f6b656e6064820152607360f81b608482015260a4016107b6565b82610b4482610c44565b14610bae5760405162461bcd60e51b815260206004820152603460248201527f52786e6567616465436f6c6c656374696f6e3a20746f6b656e4964206e6f742060448201527334b710333937b693b99031b7b63632b1ba34b7b760611b60648201526084016107b6565b6000838152600d60205260408120805491610bc883612f0d565b90915550506000828152600d60205260408120805491610be783612f5f565b90915550506000818152600c60205260408120839055610c08826001612e7f565b9050600e5481108015610c2757506000818152600c6020526040902054155b15610c3e576000818152600c602052604090208490555b50505050565b6000808290508260105411158015610c5d5750600e5483105b15610caf576000838152600c60205260409020548015610c7e579392505050565b81610c8881612f0d565b6000818152600c60205260409020549093509150508015610caa579392505050565b610c7e565b60405162461bcd60e51b815260206004820152602160248201527f4f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656044820152603760f91b60648201526084016107b6565b610940838383611a23565b333214610d2b5760405162461bcd60e51b81526004016107b690612dd8565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610d6f57600080fd5b505afa158015610d83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da79190612b29565b11610dc45760405162461bcd60e51b81526004016107b690612dfa565b610dcc611c34565b610dd585611c8d565b610de0600186611d00565b60008581526013602052604090205460ff1615610e515760405162461bcd60e51b815260206004820152602960248201527f52584150453a20636f6d706c696d656e7461727920746f6b656e20616c726561604482015268191e481b5a5b9d195960ba1b60648201526084016107b6565b610e5d84848484611dc6565b6000858152601360205260408120805460ff191660019081179091559054610e859187611f7f565b610e90336001612033565b5050505050565b6000806000610ea585610fb9565b90506000610eb2866115ff565b90506000610ec261271087612f7a565b610ecc9087612eca565b9050600082610edd61271084612e97565b610ee79190612eab565b93989397509295505050505050565b6109408383836040518060200160405280600081525061152f565b6008546001600160a01b03163314610f3b5760405162461bcd60e51b81526004016107b690612e4a565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610f70573d6000803e3d6000fd5b5050565b6008546001600160a01b03163314610f9e5760405162461bcd60e51b81526004016107b690612e4a565b610fa661204d565b8051610f70906015906020840190612751565b6009546000906001600160a01b0316636352211e610fd684610c44565b6040518263ffffffff1660e01b8152600401610ff491815260200190565b60206040518083038186803b15801561100c57600080fd5b505afa158015611020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078691906128b7565b6008546001600160a01b0316331461106e5760405162461bcd60e51b81526004016107b690612e4a565b61107661204d565b601254600160a01b900460ff1615806110925750614dea600054115b6110e95760405162461bcd60e51b815260206004820152602260248201527f52584150453a205075626c6963206d696e74696e67207374696c6c2061637469604482015261766560f01b60648201526084016107b6565b6012805460ff60a81b1916600160a81b179055565b6000611109826120a0565b5192915050565b6008546001600160a01b0316331461113a5760405162461bcd60e51b81526004016107b690612e4a565b6012805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60006001600160a01b038216611184576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146111d35760405162461bcd60e51b81526004016107b690612e4a565b6111dd60006121c7565b565b6060600380546107f090612f24565b33321461120d5760405162461bcd60e51b81526004016107b690612dd8565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561125157600080fd5b505afa158015611265573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112899190612b29565b116112a65760405162461bcd60e51b81526004016107b690612dfa565b6112ae611c34565b6112b785611c8d565b6112c18686611d00565b6112ca86612219565b6112d684848484611dc6565b6112e36000548787611f7f565b6112ed3387612033565b505050505050565b6001600160a01b03821633141561131f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b1580156113cf57600080fd5b505afa1580156113e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140791906128b7565b6001600160a01b0316336001600160a01b03161461148d5760405162461bcd60e51b815260206004820152603760248201527f52786e6567616465436f6c6c656374696f6e3a2063616c6c6572206973206e6f60448201527f74207468652052584e474420746f6b656e206f776e657200000000000000000060648201526084016107b6565b6103e8811115611507576040805162461bcd60e51b81526020600482015260248101919091527f52786e6567616465436f6c6c656374696f6e3a20726f79616c7479207065726360448201527f656e746167652063616e27742062652067726561746572207468616e2031302560648201526084016107b6565b6000918252600a6020908152604080842092909255600b90529020805460ff19166001179055565b61153a848484611a23565b6001600160a01b0383163b1515801561155c575061155a8484848461227e565b155b15610c3e576040516368d2bf6b60e11b815260040160405180910390fd5b606060005482106115cd5760405162461bcd60e51b815260206004820152601860248201527f52584150453a206e6f6e6578697374656e7420746f6b656e000000000000000060448201526064016107b6565b60156115d883612376565b6040516020016115e9929190612ce2565b6040516020818303038152906040529050919050565b60008061160b83610c44565b6000818152600b602052604090205490915060ff161561163a576000908152600a602052604090205492915050565b5050601154919050565b6008546001600160a01b0316331461166e5760405162461bcd60e51b81526004016107b690612e4a565b60c88160175461167e9190612e7f565b11156116cc5760405162461bcd60e51b815260206004820152601f60248201527f52584150453a20746f6f206d616e79206d696e746564206173206f776e65720060448201526064016107b6565b6116d68183611d00565b80601760008282546116e89190612e7f565b90915550506000546116fb908284611f7f565b610f706117078361248f565b82612033565b6016805461171a90612f24565b80601f016020809104026020016040519081016040528092919081815260200182805461174690612f24565b80156117935780601f1061176857610100808354040283529160200191611793565b820191906000526020600020905b81548152906001019060200180831161177657829003601f168201915b505050505081565b6008546001600160a01b031633146117c55760405162461bcd60e51b81526004016107b690612e4a565b6001600160a01b03811661182a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b6565b611833816121c7565b50565b3332146118555760405162461bcd60e51b81526004016107b690612dd8565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561189957600080fd5b505afa1580156118ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d19190612b29565b116118ee5760405162461bcd60e51b81526004016107b690612dfa565b6118f6611c34565b6118ff85611c8d565b6119098686611d00565b61191286612219565b61191e84848484611dc6565b61192b6000548787611f7f565b6119358787612033565b50505050505050565b60006001600160e01b031982166380ac58cd60e01b148061196f57506001600160e01b03198216635b5e139f60e01b145b8061078657506301ffc9a760e01b6001600160e01b0319831614610786565b6000816001111580156119a2575060005482105b8015610786575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611a2e826120a0565b80519091506000906001600160a01b0316336001600160a01b03161480611a5c57508151611a5c9033610700565b80611a77575033611a6c84610873565b6001600160a01b0316145b905080611a9757604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611acc5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611af357604051633a954ecd60e21b815260040160405180910390fd5b611b0360008484600001516119c7565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611bed57600054811015611bed57825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e90565b601254600160a01b900460ff166111dd5760405162461bcd60e51b815260206004820181905260248201527f52584150453a205075626c6963206d696e74696e67206e6f742061637469766560448201526064016107b6565b33611c978261248f565b6001600160a01b0316146118335760405162461bcd60e51b815260206004820152602a60248201527f52584150453a2063616c6c6572206973206e6f74207468652052584e4744207460448201526937b5b2b71037bbb732b960b11b60648201526084016107b6565b6064821115611d515760405162461bcd60e51b815260206004820152601860248201527f52584150453a207175616e7469747920746f6f2068696768000000000000000060448201526064016107b6565b614dea826001600054611d649190612eca565b611d6e9190612e7f565b1115611dbc5760405162461bcd60e51b815260206004820152601d60248201527f52584150453a206e6f7420656e6f75676820737570706c79206c65667400000060448201526064016107b6565b610f7081836124c1565b60008433604051602001611ddb929190612cab565b60408051601f1981840301815291815281516020928301206000818152601490935291205490915060ff1615611e535760405162461bcd60e51b815260206004820152601960248201527f52584150453a206e6f6e636520616c726561647920757365640000000000000060448201526064016107b6565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0160408051808303601f1901815282825280516020918201206012546000855291840180845281905260ff89169284019290925260608301879052608083018690529092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015611eff573d6000803e3d6000fd5b505050602060405103516001600160a01b031614611f5f5760405162461bcd60e51b815260206004820152601860248201527f52584150453a20696e76616c6964207369676e6174757265000000000000000060448201526064016107b6565b506000908152601460205260409020805460ff1916600117905550505050565b6000611f8a8261248f565b6001600160a01b03161415611ffc5760405162461bcd60e51b815260206004820152603260248201527f52786e6567616465436f6c6c656374696f6e3a20525820746f6b656e206f776e6044820152716572206973207a65726f206164647265737360701b60648201526084016107b6565b6120068282612552565b6000838152600c60205260408120829055600e8054849290612029908490612e7f565b9091555050505050565b610f70828260405180602001604052806000815250612579565b601254600160a81b900460ff16156111dd5760405162461bcd60e51b8152602060048201526016602482015275292c20a8229d1031b7b73a3930b1ba10333937bd32b760511b60448201526064016107b6565b604080516060810182526000808252602082018190529181019190915281806001111580156120d0575060005481105b156121ae57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906121ac5780516001600160a01b031615612143579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156121a7579392505050565b612143565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061222c82662386f26fc10000612eab565b905080341015610f705760405162461bcd60e51b815260206004820152601a60248201527f52584150453a206e6f7420656e6f756768204554482073656e7400000000000060448201526064016107b6565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122b3903390899088908890600401612d88565b602060405180830381600087803b1580156122cd57600080fd5b505af19250505080156122fd575060408051601f3d908101601f191682019092526122fa91810190612ac3565b60015b612358573d80801561232b576040519150601f19603f3d011682016040523d82523d6000602084013e612330565b606091505b508051612350576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161239a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123c457806123ae81612f5f565b91506123bd9050600a83612e97565b915061239e565b6000816001600160401b038111156123ec57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612416576020820181803683370190505b5090505b841561236e5761242b600183612eca565b9150612438600a86612f7a565b612443906030612e7f565b60f81b81838151811061246657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612488600a86612e97565b945061241a565b6009546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401610ff4565b6000828152600d60205260409020546064906124de908390612e7f565b1115610f705760405162461bcd60e51b815260206004820152603860248201527f52786e6567616465436f6c6c656374696f6e3a206d6f7265207468616e20746f60448201527f74616c20616c6c6f776564207065722052786e6567616465000000000000000060648201526084016107b6565b6000818152600d602052604081208054849290612570908490612e7f565b90915550505050565b61094083838360016000546001600160a01b0385166125aa57604051622e076360e81b815260040160405180910390fd5b836125c85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561267957506001600160a01b0387163b15155b15612702575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126ca600088848060010195508861227e565b6126e7576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561267f5782600054146126fd57600080fd5b612748565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612703575b50600055610e90565b82805461275d90612f24565b90600052602060002090601f01602090048101928261277f57600085556127c5565b82601f1061279857805160ff19168380011785556127c5565b828001600101855582156127c5579182015b828111156127c55782518255916020019190600101906127aa565b506127d19291506127d5565b5090565b5b808211156127d157600081556001016127d6565b60006001600160401b038084111561280457612804612fba565b604051601f8501601f19908116603f0116810190828211818310171561282c5761282c612fba565b8160405280935085815286868601111561284557600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261286f578081fd5b61287e838335602085016127ea565b9392505050565b803560ff8116811461289657600080fd5b919050565b6000602082840312156128ac578081fd5b813561287e81612fd0565b6000602082840312156128c8578081fd5b815161287e81612fd0565b600080604083850312156128e5578081fd5b82356128f081612fd0565b9150602083013561290081612fd0565b809150509250929050565b60008060006060848603121561291f578081fd5b833561292a81612fd0565b9250602084013561293a81612fd0565b929592945050506040919091013590565b60008060008060808587031215612960578081fd5b843561296b81612fd0565b9350602085013561297b81612fd0565b92506040850135915060608501356001600160401b0381111561299c578182fd5b8501601f810187136129ac578182fd5b6129bb878235602084016127ea565b91505092959194509250565b600080604083850312156129d9578182fd5b82356129e481612fd0565b915060208301358015158114612900578182fd5b60008060408385031215612a0a578182fd5b8235612a1581612fd0565b946020939093013593505050565b600080600080600080600060e0888a031215612a3d578283fd5b8735612a4881612fd0565b9650602088013595506040880135945060608801356001600160401b03811115612a70578384fd5b612a7c8a828b0161285f565b945050612a8b60808901612885565b925060a0880135915060c0880135905092959891949750929550565b600060208284031215612ab8578081fd5b813561287e81612fe5565b600060208284031215612ad4578081fd5b815161287e81612fe5565b600060208284031215612af0578081fd5b81356001600160401b03811115612b05578182fd5b61236e8482850161285f565b600060208284031215612b22578081fd5b5035919050565b600060208284031215612b3a578081fd5b5051919050565b600080600080600060a08688031215612b58578283fd5b8535945060208601356001600160401b03811115612b74578384fd5b612b808882890161285f565b945050612b8f60408701612885565b94979396509394606081013594506080013592915050565b60008060408385031215612bb9578182fd5b50508035926020909101359150565b60008060008060008060c08789031215612be0578384fd5b863595506020870135945060408701356001600160401b03811115612c03578485fd5b612c0f89828a0161285f565b945050612c1e60608801612885565b92506080870135915060a087013590509295509295509295565b600080600060608486031215612c4c578081fd5b505081359360208301359350604090920135919050565b60008151808452612c7b816020860160208601612ee1565b601f01601f19169290920160200192915050565b60008151612ca1818560208601612ee1565b9290920192915050565b60008351612cbd818460208801612ee1565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845482600182811c915080831680612cfe57607f831692505b6020808410821415612d1e57634e487b7160e01b87526022600452602487fd5b818015612d325760018114612d4357612d6f565b60ff19861689528489019650612d6f565b60008b815260209020885b86811015612d675781548b820152908501908301612d4e565b505084890196505b505050505050612d7f8185612c8f565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612dbb90830184612c63565b9695505050505050565b60208152600061287e6020830184612c63565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b60208082526030908201527f52786e6567616465436f6c6c656374696f6e3a2063616c6c6572206973206e6f60408201526f3a103090292c2723a2103437b63232b960811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115612e9257612e92612f8e565b500190565b600082612ea657612ea6612fa4565b500490565b6000816000190483118215151615612ec557612ec5612f8e565b500290565b600082821015612edc57612edc612f8e565b500390565b60005b83811015612efc578181015183820152602001612ee4565b83811115610c3e5750506000910152565b600081612f1c57612f1c612f8e565b506000190190565b600181811c90821680612f3857607f821691505b60208210811415612f5957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612f7357612f73612f8e565b5060010190565b600082612f8957612f89612fa4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461183357600080fd5b6001600160e01b03198116811461183357600080fdfea26469706673582212204a6fc06dea7de6cae7b3e1215066071c6b4f3e38781ea83baa27e1746b902d8c64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000076e6276fa7040f31f329ebc38ce46bc6806882020000000000000000000000000acbb075c307130ff7d58393a2f7f1abad9cb074000000000000000000000000000000000000000000000000000000000000001052786e656761646520525820417065730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055258415045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f72786e65676164652e7765622e6170702f6d657461646174612f72786170652f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f70726f6a65637472786e65676164652e636f6d2f6170692f6d657461646174612f7278617065000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102345760003560e01c806362a5af3b1161012e578063ad3cbf4a116100ab578063d47573d41161006f578063d47573d4146106b0578063e8a3d485146106d0578063e985e9c5146106e5578063f2fde38b1461072e578063f93c6db01461074e57600080fd5b8063ad3cbf4a14610615578063b88d4fde14610635578063c87b56dd14610655578063d2d8cb6714610675578063d310c5ee1461069057600080fd5b80638da5cb5b116100f25780638da5cb5b1461058257806395d89b41146105a05780639f535821146105b5578063a1c5f883146105c8578063a22cb465146105f557600080fd5b806362a5af3b146105035780636352211e146105185780636b8a21fc1461053857806370a082311461054d578063715018a61461056d57600080fd5b806323b872dd116101bc57806342842e0e1161018057806342842e0e1461046257806351cff8d914610482578063529f4f40146104a257806355f804b3146104c35780635809eacb146104e357600080fd5b806323b872dd1461039257806327f60121146103b25780632a55205a146103d2578063397560da146104115780633b5764eb1461044157600080fd5b8063095ea7b311610203578063095ea7b3146102f15780630bf7a6271461031157806318160ddd146103355780631c6ea6a2146103525780631ec1d6341461037257600080fd5b806301ffc9a714610240578063046dc1661461027557806306fdde0314610297578063081812fc146102b957600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b5061026061025b366004612aa7565b610761565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061029561029036600461289b565b61078c565b005b3480156102a357600080fd5b506102ac6107e1565b60405161026c9190612dc5565b3480156102c557600080fd5b506102d96102d4366004612b11565b610873565b6040516001600160a01b03909116815260200161026c565b3480156102fd57600080fd5b5061029561030c3660046129f8565b6108b7565b34801561031d57600080fd5b5061032760175481565b60405190815260200161026c565b34801561034157600080fd5b506001546000540360001901610327565b34801561035e57600080fd5b5061029561036d366004612c38565b610945565b34801561037e57600080fd5b5061032761038d366004612b11565b610c44565b34801561039e57600080fd5b506102956103ad36600461290b565b610d01565b3480156103be57600080fd5b506102956103cd366004612b41565b610d0c565b3480156103de57600080fd5b506103f26103ed366004612ba7565b610e97565b604080516001600160a01b03909316835260208301919091520161026c565b34801561041d57600080fd5b5061026061042c366004612b11565b60136020526000908152604090205460ff1681565b34801561044d57600080fd5b5060125461026090600160a81b900460ff1681565b34801561046e57600080fd5b5061029561047d36600461290b565b610ef6565b34801561048e57600080fd5b5061029561049d36600461289b565b610f11565b3480156104ae57600080fd5b5060125461026090600160a01b900460ff1681565b3480156104cf57600080fd5b506102956104de366004612adf565b610f74565b3480156104ef57600080fd5b506102d96104fe366004612b11565b610fb9565b34801561050f57600080fd5b50610295611044565b34801561052457600080fd5b506102d9610533366004612b11565b6110fe565b34801561054457600080fd5b50610295611110565b34801561055957600080fd5b5061032761056836600461289b565b61115b565b34801561057957600080fd5b506102956111a9565b34801561058e57600080fd5b506008546001600160a01b03166102d9565b3480156105ac57600080fd5b506102ac6111df565b6102956105c3366004612bc8565b6111ee565b3480156105d457600080fd5b506103276105e3366004612b11565b600d6020526000908152604090205481565b34801561060157600080fd5b506102956106103660046129c7565b6112f5565b34801561062157600080fd5b50610295610630366004612ba7565b61138b565b34801561064157600080fd5b5061029561065036600461294b565b61152f565b34801561066157600080fd5b506102ac610670366004612b11565b61157a565b34801561068157600080fd5b50610327662386f26fc1000081565b34801561069c57600080fd5b506103276106ab366004612b11565b6115ff565b3480156106bc57600080fd5b506102956106cb366004612ba7565b611644565b3480156106dc57600080fd5b506102ac61170d565b3480156106f157600080fd5b506102606107003660046128d3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561073a57600080fd5b5061029561074936600461289b565b61179b565b61029561075c366004612a23565b611836565b60006001600160e01b0319821663152a902d60e11b148061078657506107868261193e565b92915050565b6008546001600160a01b031633146107bf5760405162461bcd60e51b81526004016107b690612e4a565b60405180910390fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600280546107f090612f24565b80601f016020809104026020016040519081016040528092919081815260200182805461081c90612f24565b80156108695780601f1061083e57610100808354040283529160200191610869565b820191906000526020600020905b81548152906001019060200180831161084c57829003601f168201915b5050505050905090565b600061087e8261198e565b61089b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108c2826110fe565b9050806001600160a01b0316836001600160a01b031614156108f75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061091757506109158133610700565b155b15610935576040516367d9dca160e11b815260040160405180910390fd5b6109408383836119c7565b505050565b818314156109aa5760405162461bcd60e51b815260206004820152602c60248201527f52786e6567616465436f6c6c656374696f6e3a2052584e474420496473206d7560448201526b737420626520756e6971756560a01b60648201526084016107b6565b6009546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156109ee57600080fd5b505afa158015610a02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2691906128b7565b6001600160a01b0316148015610abe57506009546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610a7b57600080fd5b505afa158015610a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab391906128b7565b6001600160a01b0316145b610b3a5760405162461bcd60e51b815260206004820152604160248201527f52786e6567616465436f6c6c656374696f6e3a2063616c6c6572206d7573742060448201527f626520746865206f776e6572206f6620626f74682052584e474420746f6b656e6064820152607360f81b608482015260a4016107b6565b82610b4482610c44565b14610bae5760405162461bcd60e51b815260206004820152603460248201527f52786e6567616465436f6c6c656374696f6e3a20746f6b656e4964206e6f742060448201527334b710333937b693b99031b7b63632b1ba34b7b760611b60648201526084016107b6565b6000838152600d60205260408120805491610bc883612f0d565b90915550506000828152600d60205260408120805491610be783612f5f565b90915550506000818152600c60205260408120839055610c08826001612e7f565b9050600e5481108015610c2757506000818152600c6020526040902054155b15610c3e576000818152600c602052604090208490555b50505050565b6000808290508260105411158015610c5d5750600e5483105b15610caf576000838152600c60205260409020548015610c7e579392505050565b81610c8881612f0d565b6000818152600c60205260409020549093509150508015610caa579392505050565b610c7e565b60405162461bcd60e51b815260206004820152602160248201527f4f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656044820152603760f91b60648201526084016107b6565b610940838383611a23565b333214610d2b5760405162461bcd60e51b81526004016107b690612dd8565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610d6f57600080fd5b505afa158015610d83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da79190612b29565b11610dc45760405162461bcd60e51b81526004016107b690612dfa565b610dcc611c34565b610dd585611c8d565b610de0600186611d00565b60008581526013602052604090205460ff1615610e515760405162461bcd60e51b815260206004820152602960248201527f52584150453a20636f6d706c696d656e7461727920746f6b656e20616c726561604482015268191e481b5a5b9d195960ba1b60648201526084016107b6565b610e5d84848484611dc6565b6000858152601360205260408120805460ff191660019081179091559054610e859187611f7f565b610e90336001612033565b5050505050565b6000806000610ea585610fb9565b90506000610eb2866115ff565b90506000610ec261271087612f7a565b610ecc9087612eca565b9050600082610edd61271084612e97565b610ee79190612eab565b93989397509295505050505050565b6109408383836040518060200160405280600081525061152f565b6008546001600160a01b03163314610f3b5760405162461bcd60e51b81526004016107b690612e4a565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610f70573d6000803e3d6000fd5b5050565b6008546001600160a01b03163314610f9e5760405162461bcd60e51b81526004016107b690612e4a565b610fa661204d565b8051610f70906015906020840190612751565b6009546000906001600160a01b0316636352211e610fd684610c44565b6040518263ffffffff1660e01b8152600401610ff491815260200190565b60206040518083038186803b15801561100c57600080fd5b505afa158015611020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078691906128b7565b6008546001600160a01b0316331461106e5760405162461bcd60e51b81526004016107b690612e4a565b61107661204d565b601254600160a01b900460ff1615806110925750614dea600054115b6110e95760405162461bcd60e51b815260206004820152602260248201527f52584150453a205075626c6963206d696e74696e67207374696c6c2061637469604482015261766560f01b60648201526084016107b6565b6012805460ff60a81b1916600160a81b179055565b6000611109826120a0565b5192915050565b6008546001600160a01b0316331461113a5760405162461bcd60e51b81526004016107b690612e4a565b6012805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60006001600160a01b038216611184576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146111d35760405162461bcd60e51b81526004016107b690612e4a565b6111dd60006121c7565b565b6060600380546107f090612f24565b33321461120d5760405162461bcd60e51b81526004016107b690612dd8565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561125157600080fd5b505afa158015611265573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112899190612b29565b116112a65760405162461bcd60e51b81526004016107b690612dfa565b6112ae611c34565b6112b785611c8d565b6112c18686611d00565b6112ca86612219565b6112d684848484611dc6565b6112e36000548787611f7f565b6112ed3387612033565b505050505050565b6001600160a01b03821633141561131f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b1580156113cf57600080fd5b505afa1580156113e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140791906128b7565b6001600160a01b0316336001600160a01b03161461148d5760405162461bcd60e51b815260206004820152603760248201527f52786e6567616465436f6c6c656374696f6e3a2063616c6c6572206973206e6f60448201527f74207468652052584e474420746f6b656e206f776e657200000000000000000060648201526084016107b6565b6103e8811115611507576040805162461bcd60e51b81526020600482015260248101919091527f52786e6567616465436f6c6c656374696f6e3a20726f79616c7479207065726360448201527f656e746167652063616e27742062652067726561746572207468616e2031302560648201526084016107b6565b6000918252600a6020908152604080842092909255600b90529020805460ff19166001179055565b61153a848484611a23565b6001600160a01b0383163b1515801561155c575061155a8484848461227e565b155b15610c3e576040516368d2bf6b60e11b815260040160405180910390fd5b606060005482106115cd5760405162461bcd60e51b815260206004820152601860248201527f52584150453a206e6f6e6578697374656e7420746f6b656e000000000000000060448201526064016107b6565b60156115d883612376565b6040516020016115e9929190612ce2565b6040516020818303038152906040529050919050565b60008061160b83610c44565b6000818152600b602052604090205490915060ff161561163a576000908152600a602052604090205492915050565b5050601154919050565b6008546001600160a01b0316331461166e5760405162461bcd60e51b81526004016107b690612e4a565b60c88160175461167e9190612e7f565b11156116cc5760405162461bcd60e51b815260206004820152601f60248201527f52584150453a20746f6f206d616e79206d696e746564206173206f776e65720060448201526064016107b6565b6116d68183611d00565b80601760008282546116e89190612e7f565b90915550506000546116fb908284611f7f565b610f706117078361248f565b82612033565b6016805461171a90612f24565b80601f016020809104026020016040519081016040528092919081815260200182805461174690612f24565b80156117935780601f1061176857610100808354040283529160200191611793565b820191906000526020600020905b81548152906001019060200180831161177657829003601f168201915b505050505081565b6008546001600160a01b031633146117c55760405162461bcd60e51b81526004016107b690612e4a565b6001600160a01b03811661182a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b6565b611833816121c7565b50565b3332146118555760405162461bcd60e51b81526004016107b690612dd8565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561189957600080fd5b505afa1580156118ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d19190612b29565b116118ee5760405162461bcd60e51b81526004016107b690612dfa565b6118f6611c34565b6118ff85611c8d565b6119098686611d00565b61191286612219565b61191e84848484611dc6565b61192b6000548787611f7f565b6119358787612033565b50505050505050565b60006001600160e01b031982166380ac58cd60e01b148061196f57506001600160e01b03198216635b5e139f60e01b145b8061078657506301ffc9a760e01b6001600160e01b0319831614610786565b6000816001111580156119a2575060005482105b8015610786575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611a2e826120a0565b80519091506000906001600160a01b0316336001600160a01b03161480611a5c57508151611a5c9033610700565b80611a77575033611a6c84610873565b6001600160a01b0316145b905080611a9757604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611acc5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611af357604051633a954ecd60e21b815260040160405180910390fd5b611b0360008484600001516119c7565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611bed57600054811015611bed57825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e90565b601254600160a01b900460ff166111dd5760405162461bcd60e51b815260206004820181905260248201527f52584150453a205075626c6963206d696e74696e67206e6f742061637469766560448201526064016107b6565b33611c978261248f565b6001600160a01b0316146118335760405162461bcd60e51b815260206004820152602a60248201527f52584150453a2063616c6c6572206973206e6f74207468652052584e4744207460448201526937b5b2b71037bbb732b960b11b60648201526084016107b6565b6064821115611d515760405162461bcd60e51b815260206004820152601860248201527f52584150453a207175616e7469747920746f6f2068696768000000000000000060448201526064016107b6565b614dea826001600054611d649190612eca565b611d6e9190612e7f565b1115611dbc5760405162461bcd60e51b815260206004820152601d60248201527f52584150453a206e6f7420656e6f75676820737570706c79206c65667400000060448201526064016107b6565b610f7081836124c1565b60008433604051602001611ddb929190612cab565b60408051601f1981840301815291815281516020928301206000818152601490935291205490915060ff1615611e535760405162461bcd60e51b815260206004820152601960248201527f52584150453a206e6f6e636520616c726561647920757365640000000000000060448201526064016107b6565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c0160408051808303601f1901815282825280516020918201206012546000855291840180845281905260ff89169284019290925260608301879052608083018690529092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015611eff573d6000803e3d6000fd5b505050602060405103516001600160a01b031614611f5f5760405162461bcd60e51b815260206004820152601860248201527f52584150453a20696e76616c6964207369676e6174757265000000000000000060448201526064016107b6565b506000908152601460205260409020805460ff1916600117905550505050565b6000611f8a8261248f565b6001600160a01b03161415611ffc5760405162461bcd60e51b815260206004820152603260248201527f52786e6567616465436f6c6c656374696f6e3a20525820746f6b656e206f776e6044820152716572206973207a65726f206164647265737360701b60648201526084016107b6565b6120068282612552565b6000838152600c60205260408120829055600e8054849290612029908490612e7f565b9091555050505050565b610f70828260405180602001604052806000815250612579565b601254600160a81b900460ff16156111dd5760405162461bcd60e51b8152602060048201526016602482015275292c20a8229d1031b7b73a3930b1ba10333937bd32b760511b60448201526064016107b6565b604080516060810182526000808252602082018190529181019190915281806001111580156120d0575060005481105b156121ae57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906121ac5780516001600160a01b031615612143579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156121a7579392505050565b612143565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061222c82662386f26fc10000612eab565b905080341015610f705760405162461bcd60e51b815260206004820152601a60248201527f52584150453a206e6f7420656e6f756768204554482073656e7400000000000060448201526064016107b6565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122b3903390899088908890600401612d88565b602060405180830381600087803b1580156122cd57600080fd5b505af19250505080156122fd575060408051601f3d908101601f191682019092526122fa91810190612ac3565b60015b612358573d80801561232b576040519150601f19603f3d011682016040523d82523d6000602084013e612330565b606091505b508051612350576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161239a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123c457806123ae81612f5f565b91506123bd9050600a83612e97565b915061239e565b6000816001600160401b038111156123ec57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612416576020820181803683370190505b5090505b841561236e5761242b600183612eca565b9150612438600a86612f7a565b612443906030612e7f565b60f81b81838151811061246657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612488600a86612e97565b945061241a565b6009546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401610ff4565b6000828152600d60205260409020546064906124de908390612e7f565b1115610f705760405162461bcd60e51b815260206004820152603860248201527f52786e6567616465436f6c6c656374696f6e3a206d6f7265207468616e20746f60448201527f74616c20616c6c6f776564207065722052786e6567616465000000000000000060648201526084016107b6565b6000818152600d602052604081208054849290612570908490612e7f565b90915550505050565b61094083838360016000546001600160a01b0385166125aa57604051622e076360e81b815260040160405180910390fd5b836125c85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561267957506001600160a01b0387163b15155b15612702575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126ca600088848060010195508861227e565b6126e7576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561267f5782600054146126fd57600080fd5b612748565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612703575b50600055610e90565b82805461275d90612f24565b90600052602060002090601f01602090048101928261277f57600085556127c5565b82601f1061279857805160ff19168380011785556127c5565b828001600101855582156127c5579182015b828111156127c55782518255916020019190600101906127aa565b506127d19291506127d5565b5090565b5b808211156127d157600081556001016127d6565b60006001600160401b038084111561280457612804612fba565b604051601f8501601f19908116603f0116810190828211818310171561282c5761282c612fba565b8160405280935085815286868601111561284557600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261286f578081fd5b61287e838335602085016127ea565b9392505050565b803560ff8116811461289657600080fd5b919050565b6000602082840312156128ac578081fd5b813561287e81612fd0565b6000602082840312156128c8578081fd5b815161287e81612fd0565b600080604083850312156128e5578081fd5b82356128f081612fd0565b9150602083013561290081612fd0565b809150509250929050565b60008060006060848603121561291f578081fd5b833561292a81612fd0565b9250602084013561293a81612fd0565b929592945050506040919091013590565b60008060008060808587031215612960578081fd5b843561296b81612fd0565b9350602085013561297b81612fd0565b92506040850135915060608501356001600160401b0381111561299c578182fd5b8501601f810187136129ac578182fd5b6129bb878235602084016127ea565b91505092959194509250565b600080604083850312156129d9578182fd5b82356129e481612fd0565b915060208301358015158114612900578182fd5b60008060408385031215612a0a578182fd5b8235612a1581612fd0565b946020939093013593505050565b600080600080600080600060e0888a031215612a3d578283fd5b8735612a4881612fd0565b9650602088013595506040880135945060608801356001600160401b03811115612a70578384fd5b612a7c8a828b0161285f565b945050612a8b60808901612885565b925060a0880135915060c0880135905092959891949750929550565b600060208284031215612ab8578081fd5b813561287e81612fe5565b600060208284031215612ad4578081fd5b815161287e81612fe5565b600060208284031215612af0578081fd5b81356001600160401b03811115612b05578182fd5b61236e8482850161285f565b600060208284031215612b22578081fd5b5035919050565b600060208284031215612b3a578081fd5b5051919050565b600080600080600060a08688031215612b58578283fd5b8535945060208601356001600160401b03811115612b74578384fd5b612b808882890161285f565b945050612b8f60408701612885565b94979396509394606081013594506080013592915050565b60008060408385031215612bb9578182fd5b50508035926020909101359150565b60008060008060008060c08789031215612be0578384fd5b863595506020870135945060408701356001600160401b03811115612c03578485fd5b612c0f89828a0161285f565b945050612c1e60608801612885565b92506080870135915060a087013590509295509295509295565b600080600060608486031215612c4c578081fd5b505081359360208301359350604090920135919050565b60008151808452612c7b816020860160208601612ee1565b601f01601f19169290920160200192915050565b60008151612ca1818560208601612ee1565b9290920192915050565b60008351612cbd818460208801612ee1565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845482600182811c915080831680612cfe57607f831692505b6020808410821415612d1e57634e487b7160e01b87526022600452602487fd5b818015612d325760018114612d4357612d6f565b60ff19861689528489019650612d6f565b60008b815260209020885b86811015612d675781548b820152908501908301612d4e565b505084890196505b505050505050612d7f8185612c8f565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612dbb90830184612c63565b9695505050505050565b60208152600061287e6020830184612c63565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b60208082526030908201527f52786e6567616465436f6c6c656374696f6e3a2063616c6c6572206973206e6f60408201526f3a103090292c2723a2103437b63232b960811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115612e9257612e92612f8e565b500190565b600082612ea657612ea6612fa4565b500490565b6000816000190483118215151615612ec557612ec5612f8e565b500290565b600082821015612edc57612edc612f8e565b500390565b60005b83811015612efc578181015183820152602001612ee4565b83811115610c3e5750506000910152565b600081612f1c57612f1c612f8e565b506000190190565b600181811c90821680612f3857607f821691505b60208210811415612f5957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612f7357612f73612f8e565b5060010190565b600082612f8957612f89612fa4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461183357600080fd5b6001600160e01b03198116811461183357600080fdfea26469706673582212204a6fc06dea7de6cae7b3e1215066071c6b4f3e38781ea83baa27e1746b902d8c64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000076e6276fa7040f31f329ebc38ce46bc6806882020000000000000000000000000acbb075c307130ff7d58393a2f7f1abad9cb074000000000000000000000000000000000000000000000000000000000000001052786e656761646520525820417065730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055258415045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f72786e65676164652e7765622e6170702f6d657461646174612f72786170652f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f70726f6a65637472786e65676164652e636f6d2f6170692f6d657461646174612f7278617065000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Rxnegade RX Apes
Arg [1] : _symbol (string): RXAPE
Arg [2] : _initBaseURI (string): https://rxnegade.web.app/metadata/rxape/
Arg [3] : _contractURI (string): https://projectrxnegade.com/api/metadata/rxape
Arg [4] : rxngd_ (address): 0x76E6276fa7040F31f329eBC38cE46bC680688202
Arg [5] : signer_ (address): 0x0acBb075c307130Ff7D58393a2F7F1ABAd9cB074

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 00000000000000000000000076e6276fa7040f31f329ebc38ce46bc680688202
Arg [5] : 0000000000000000000000000acbb075c307130ff7d58393a2f7f1abad9cb074
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [7] : 52786e6567616465205258204170657300000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 5258415045000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [11] : 68747470733a2f2f72786e65676164652e7765622e6170702f6d657461646174
Arg [12] : 612f72786170652f000000000000000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [14] : 68747470733a2f2f70726f6a65637472786e65676164652e636f6d2f6170692f
Arg [15] : 6d657461646174612f7278617065000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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