Contract 0xDc317E731d3865BAa012cc12612fF5bba17d38BB

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash
Block
From
To
Value [Txn Fee]
0xfdb80029debd10b4589e8be07649b4a5e1e2e835836b2c934adc340e1c6cdb3e94072792021-07-23 11:36:031 day 22 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00035552
0xd4d8d71b8e2a96bb99bd6abd7a8f2b01af6120f09881d5b0bd80583d80b2139c94072202021-07-23 11:33:061 day 22 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00012291
0x52cbbb13aec472d4bf2ae312c66b0d3c7ae321266543e61ebcc9713d62da7e6794071952021-07-23 11:31:511 day 22 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00021891
0xdff0dd1f751ce25bb4070013a1cec838b578b6d3a9170a1aa39fc3b2c3cb413e93773172021-07-22 10:36:502 days 23 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00021891
0xe0b6f11e1848041a083bbe167c11984185c1d32ec817c88f3bf18c5881cae01993772082021-07-22 10:31:232 days 23 hrs ago0xd35a9eee229cbd491306f69237eb4a290f4b6321 IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00021891
0xdaf404931c2cea5e79e6af7f5e9fdd1e06b6bfcfaa853af608e1360fbfbd2ca493771932021-07-22 10:30:382 days 23 hrs ago0xd35a9eee229cbd491306f69237eb4a290f4b6321 IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002180871
0x0530ef1cb2b3d88bda6d8da70061f896682d61de6c2e4b7b481cbaeaa48f3da389270882021-07-06 19:15:4918 days 15 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.001177218
0x64c126f925935fb2abad1c587ea47ed942916af0a6d57530f7d1b0e8406a60f288884712021-07-05 10:46:5619 days 23 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.001493184
0xb770455716bebfbccc2e73bf482eab61c2cd5a828edce876700b855d3d80412b88877532021-07-05 10:11:0220 days 5 mins ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002181399
0x8b5fc268d4bf8e84a7e6097f5a09a75ec8c42ba29d1976006edb240c6ff91e0d86016302021-06-25 10:03:2630 days 13 mins ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00091795
0x883486a033d2f4608cca64f3698f31194e453e2969d455e6f44ad3c55475432584880162021-06-21 10:57:4133 days 23 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002405986
0x7cbac6268976e5ec52d807014338f5b174a873479f9dd4b1d0096dc80850a49f84068172021-06-18 14:58:0736 days 19 hrs ago0xb253356af23302232985f4f38490d0a7ecc63e8b IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.008790621
0xd3839393bde95505b9043e28147f9e5948b75f4f129b6b3796e9dc6594d6a6aa84066822021-06-18 14:51:2236 days 19 hrs ago0xb253356af23302232985f4f38490d0a7ecc63e8b IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.004593498
0x134498c1b0d626403f0f8fe55067618987577511dc92e638d50a95eb51c7dace84065912021-06-18 14:46:4936 days 19 hrs ago0xb253356af23302232985f4f38490d0a7ecc63e8b IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00175245
0x8c2ca21e7df3d09848e1d0af47493b047a72cf36c642ba471e3ea487c9951e1584065802021-06-18 14:46:1636 days 19 hrs ago0xb253356af23302232985f4f38490d0a7ecc63e8b IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.004593498
0xb4b7ff64695d05a48a2623ef04638aefe382b3f55229a58ae98bb6e5eb762a7984064842021-06-18 14:41:0436 days 19 hrs ago0xb253356af23302232985f4f38490d0a7ecc63e8b IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00175245
0x607f37c61d617f4dbf0cfa65c3626ccd20776929defc9086bd0a6c0d4955d14484064702021-06-18 14:40:1636 days 19 hrs ago0xb253356af23302232985f4f38490d0a7ecc63e8b IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.004593498
0x206c7da9661c81c40db067e5aee9e9d8bbc93b9005ea9ca20ee84bd44816563b83787392021-06-17 15:22:0637 days 18 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002406118
0xcd97b6ab1ef35f5454bc346fa68010409489517ecffdb8d25cf4fba5876fb10683775452021-06-17 14:22:0637 days 19 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002406118
0x9763a4f0e5b55073242bf33912f88179bed33572c75783931daabba11b8c16f883773242021-06-17 14:11:0337 days 20 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002406118
0xb576948d77842b1736a1526488d8b95cbccda8b97156eccb4936ce8e199f5f0c83768972021-06-17 13:49:4237 days 20 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.004604611
0x53de623f1cc83fb53c20062026dbc175307fd2ff26b7f7a61654bebac453a38a83766932021-06-17 13:39:1437 days 20 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.003138817
0xf80587da37ecb0018cc577977441209d92c0bf45f92bd17786f258a29633e04b83741092021-06-17 11:28:0637 days 22 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002405986
0xb38ea7658303e5cf558577b0f31d1b55594b2510757aaa46373d064f8d1e4ea583740582021-06-17 11:25:3337 days 22 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.002405986
0xe2b21f763afbd4a04d125562f4d3ec690d4540192e7ab0073f1e334c9553976383703272021-06-17 8:15:2238 days 2 hrs ago0x17d3d1da06688bc61592913921414bff09bc570c IN  0xdc317e731d3865baa012cc12612ff5bba17d38bb0 BNB0.00273592
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BarterStorage

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-04-02
*/

// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.3;



// Part: OpenZeppelin/[email protected]/Address

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// Part: OpenZeppelin/[email protected]/Context

/*
 * @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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// Part: OpenZeppelin/[email protected]/ECDSA

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

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

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

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

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

// Part: OpenZeppelin/[email protected]/IERC165

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

// Part: OpenZeppelin/[email protected]/IERC20

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// Part: OpenZeppelin/[email protected]/IERC721Receiver

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

// Part: OpenZeppelin/[email protected]/ERC165

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

// Part: OpenZeppelin/[email protected]/IERC1155

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

// Part: OpenZeppelin/[email protected]/IERC1155Receiver

/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

// Part: OpenZeppelin/[email protected]/IERC721

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

// Part: OpenZeppelin/[email protected]/Ownable

/**
 * @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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// Part: OpenZeppelin/[email protected]/SafeERC20

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// Part: OpenZeppelin/[email protected]/ERC1155Receiver

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId
            || super.supportsInterface(interfaceId);
    }
}

// File: BarterStorage.sol

contract BarterStorage is IERC721Receiver, ERC1155Receiver, Ownable {
    using ECDSA for bytes32;
    using SafeERC20 for IERC20;
    
    struct TokenValues {
        IERC20[] token20;
        uint256[] token20Value;
        IERC721[] token721;
        uint256[] token721Id;
        IERC1155[] token1155;
        uint256[] token1155Id;
        uint256[] token1155Value;
    }

    struct Deposit {
        address owner;
        TokenValues tokens;
        mapping (address => bool) allowed;
        bool claimed;
    }

    Deposit[1000] public deposits;
    uint256 public depositsPtr;
    uint256 public depositFee = 200;  // in 1/1000000
    uint256 public collectedFees;

    event DepositCreated(uint256 ptr);
    event DepositClaimed(uint256 ptr, address by);
    event FeeWithdraw(uint256 amount);

    IERC20 feeToken;

    constructor(IERC20 feeToken_) {
        feeToken = feeToken_;
    }

    function depositTokens(TokenValues calldata tokens, uint256 value, address[] calldata allowed) public {
        require(tokens.token20.length + tokens.token721.length + tokens.token1155.length > 0, "No tokens were provided");
        require(tokens.token20.length == tokens.token20Value.length &&
                tokens.token721.length == tokens.token721Id.length &&
                tokens.token1155.length == tokens.token1155Id.length && tokens.token1155Id.length == tokens.token1155Value.length, "Invalid token array lengths");
        require(value > 1 * 10**6, "Value should be more than 1 BRTR");

        uint256 fee = value * depositFee / 10**6;
        feeToken.safeTransferFrom(msg.sender, address(this), fee);
        collectedFees += fee;

        for (uint256 i = 0; i < tokens.token20.length; i++) {
            tokens.token20[i].transferFrom(msg.sender, address(this), tokens.token20Value[i]);
        }

        for (uint256 i = 0; i < tokens.token721.length; i++) {
            tokens.token721[i].transferFrom(msg.sender, address(this), tokens.token721Id[i]);
        }

        for (uint256 i = 0; i < tokens.token1155.length; i++) {
            tokens.token1155[i].safeTransferFrom(msg.sender, address(this), tokens.token1155Id[i], tokens.token1155Value[i], "");
        }

        deposits[depositsPtr].owner = msg.sender;
        deposits[depositsPtr].tokens = tokens;
        for (uint256 i = 0; i < allowed.length; i++) {
            deposits[depositsPtr].allowed[allowed[i]] = true;
        }
        emit DepositCreated(depositsPtr);
        depositsPtr++;
    }

    function allowWithdraw(uint256 depositIdx, address to) public {
        Deposit storage deposit = deposits[depositIdx];
        require(deposit.owner == msg.sender, "You do not own this deposit");
        deposit.allowed[to] = true;
    }

    function claimDeposit(uint256 depositIdx, bytes memory signature) public {
        Deposit storage deposit = deposits[depositIdx];
        require(deposit.owner == msg.sender || deposit.allowed[msg.sender], "You do not have permission to claim this deposit");
        require(!deposit.claimed, "This deposit is already claimed");

        if (deposit.owner != msg.sender) {
            require(keccak256(abi.encodePacked(msg.sender, depositIdx, address(this))).toEthSignedMessageHash().recover(signature) == owner(), "Invalid signature");
        }

        deposit.claimed = true;
        for (uint256 i = 0; i < deposit.tokens.token20.length; i++) {
            deposit.tokens.token20[i].safeTransfer(msg.sender, deposit.tokens.token20Value[i]);
        }
        for (uint256 i = 0; i < deposit.tokens.token721.length; i++) {
            deposit.tokens.token721[i].transferFrom(address(this), msg.sender, deposit.tokens.token721Id[i]);
        }
        for (uint256 i = 0; i < deposit.tokens.token1155.length; i++) {
            deposit.tokens.token1155[i].safeTransferFrom(address(this), msg.sender, deposit.tokens.token1155Id[i], deposit.tokens.token1155Value[i], "");
        }
        emit DepositClaimed(depositIdx, msg.sender);
    }

    function withdrawFees() public onlyOwner {
        feeToken.safeTransfer(owner(), collectedFees);
        emit FeeWithdraw(collectedFees);
        collectedFees = 0;
    }

    function onERC721Received(address /* operator */, address /* from */, uint256 /* tokenId */, bytes calldata /* data */) override public pure returns (bytes4) {
        return this.onERC721Received.selector;
    }

    function onERC1155Received(address /* operator */, address /* from */, uint256 /* id */, uint256 /* value */, bytes calldata /* data */) override public pure returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(address /* operator */, address /* from */, uint256[] calldata /* ids */, uint256[] calldata /* values */, bytes calldata /* data */) override public pure returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"feeToken_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ptr","type":"uint256"},{"indexed":false,"internalType":"address","name":"by","type":"address"}],"name":"DepositClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ptr","type":"uint256"}],"name":"DepositCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeWithdraw","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"},{"inputs":[{"internalType":"uint256","name":"depositIdx","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"allowWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositIdx","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectedFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20[]","name":"token20","type":"address[]"},{"internalType":"uint256[]","name":"token20Value","type":"uint256[]"},{"internalType":"contract IERC721[]","name":"token721","type":"address[]"},{"internalType":"uint256[]","name":"token721Id","type":"uint256[]"},{"internalType":"contract IERC1155[]","name":"token1155","type":"address[]"},{"internalType":"uint256[]","name":"token1155Id","type":"uint256[]"},{"internalType":"uint256[]","name":"token1155Value","type":"uint256[]"}],"internalType":"struct BarterStorage.TokenValues","name":"tokens","type":"tuple"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address[]","name":"allowed","type":"address[]"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"address","name":"owner","type":"address"},{"components":[{"internalType":"contract IERC20[]","name":"token20","type":"address[]"},{"internalType":"uint256[]","name":"token20Value","type":"uint256[]"},{"internalType":"contract IERC721[]","name":"token721","type":"address[]"},{"internalType":"uint256[]","name":"token721Id","type":"uint256[]"},{"internalType":"contract IERC1155[]","name":"token1155","type":"address[]"},{"internalType":"uint256[]","name":"token1155Id","type":"uint256[]"},{"internalType":"uint256[]","name":"token1155Value","type":"uint256[]"}],"internalType":"struct BarterStorage.TokenValues","name":"tokens","type":"tuple"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositsPtr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260c86127125534801561001657600080fd5b50604051620023c0380380620023c08339810160408190526100379161009e565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061271480546001600160a01b0319166001600160a01b03929092169190911790556100cc565b6000602082840312156100af578081fd5b81516001600160a01b03811681146100c5578182fd5b9392505050565b6122e480620000dc6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a611610097578063bc197c8111610066578063bc197c8114610204578063f23a6e6114610226578063f2fde38b14610246578063f5b80fbc14610259576100f5565b8063715018a6146101b55780638da5cb5b146101bd5780639003adfe146101d8578063b02c43d0146101e2576100f5565b8063271fc091116100d3578063271fc0911461016f578063476343ee1461018257806363976d8f1461018a57806367a527931461019d576100f5565b806301ffc9a7146100fa578063150b7a02146101225780632716357b1461015a575b600080fd5b61010d610108366004611b56565b610263565b60405190151581526020015b60405180910390f35b610141610130366004611a4b565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610119565b61016d610168366004611b7e565b61029a565b005b61016d61017d366004611c39565b610984565b61016d610e80565b61016d610198366004611c0a565b610f1b565b6101a76127125481565b604051908152602001610119565b61016d610fc9565b6000546040516001600160a01b039091168152602001610119565b6101a76127135481565b6101f56101f0366004611bf2565b61103d565b60405161011993929190611dd9565b610141610212366004611990565b63bc197c8160e01b98975050505050505050565b610141610234366004611abc565b63f23a6e6160e01b9695505050505050565b61016d610254366004611974565b6112fb565b6101a76127115481565b60006001600160e01b03198216630271189760e51b148061029457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006102a96080860186611f30565b90506102b86040870187611f30565b90506102c48780611f30565b6102cf929150611f78565b6102d99190611f78565b1161032b5760405162461bcd60e51b815260206004820152601760248201527f4e6f20746f6b656e7320776572652070726f766964656400000000000000000060448201526064015b60405180910390fd5b6103386020850185611f30565b90506103448580611f30565b905014801561036e575061035b6060850185611f30565b905061036a6040860186611f30565b9050145b8015610395575061038260a0850185611f30565b90506103916080860186611f30565b9050145b80156103bc57506103a960c0850185611f30565b90506103b860a0860186611f30565b9050145b6104085760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420746f6b656e206172726179206c656e6774687300000000006044820152606401610322565b620f4240831161045a5760405162461bcd60e51b815260206004820181905260248201527f56616c75652073686f756c64206265206d6f7265207468616e203120425254526044820152606401610322565b6000620f4240612712548561046f9190611fb0565b6104799190611f90565b61271454909150610495906001600160a01b03163330846113e5565b8061271360008282546104a89190611f78565b90915550600090505b6104bb8680611f30565b90508110156105c6576104ce8680611f30565b828181106104ec57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906105019190611974565b6001600160a01b03166323b872dd333061051e60208b018b611f30565b8681811061053c57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161056193929190611d7d565b602060405180830381600087803b15801561057b57600080fd5b505af115801561058f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b39190611b36565b50806105be816120e4565b9150506104b1565b5060005b6105d76040870187611f30565b90508110156106c5576105ed6040870187611f30565b8281811061060b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906106209190611974565b6001600160a01b03166323b872dd333061063d60608b018b611f30565b8681811061065b57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161068093929190611d7d565b600060405180830381600087803b15801561069a57600080fd5b505af11580156106ae573d6000803e3d6000fd5b5050505080806106bd906120e4565b9150506105ca565b5060005b6106d66080870187611f30565b90508110156107fa576106ec6080870187611f30565b8281811061070a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061071f9190611974565b6001600160a01b031663f242432a333061073c60a08b018b611f30565b8681811061075a57634e487b7160e01b600052603260045260246000fd5b905060200201358a8060c001906107719190611f30565b8781811061078f57634e487b7160e01b600052603260045260246000fd5b905060200201356040518563ffffffff1660e01b81526004016107b59493929190611da1565b600060405180830381600087803b1580156107cf57600080fd5b505af11580156107e3573d6000803e3d6000fd5b5050505080806107f2906120e4565b9150506106c9565b50336001612711546103e8811061082157634e487b7160e01b600052603260045260246000fd5b600a020180546001600160a01b0319166001600160a01b03929092169190911790556127115485906001906103e8811061086b57634e487b7160e01b600052603260045260246000fd5b600a0201600101818161087e919061217f565b90505060005b8281101561092a57600180612711546103e881106108b257634e487b7160e01b600052603260045260246000fd5b600a020160080160008686858181106108db57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108f09190611974565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610922816120e4565b915050610884565b507f11b20b6b987e8b2ec643131b94ba45e1d2c306eff1789483cda70141c7e4b2c76127115460405161095f91815260200190565b60405180910390a16127118054906000610978836120e4565b91905055505050505050565b60006001836103e881106109a857634e487b7160e01b600052603260045260246000fd5b600a020180549091506001600160a01b03163314806109d8575033600090815260088201602052604090205460ff165b610a3d5760405162461bcd60e51b815260206004820152603060248201527f596f7520646f206e6f742068617665207065726d697373696f6e20746f20636c60448201526f185a5b481d1a1a5cc819195c1bdcda5d60821b6064820152608401610322565b600981015460ff1615610a925760405162461bcd60e51b815260206004820152601f60248201527f54686973206465706f73697420697320616c726561647920636c61696d6564006044820152606401610322565b80546001600160a01b03163314610b97576000546040805133606090811b6bffffffffffffffffffffffff19908116602080850191909152603484018990523090921b166054830152825160488184030181526068830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000608884015260a4808401919091528351808403909101815260c490920190925280519101206001600160a01b0390911690610b4d9084611443565b6001600160a01b031614610b975760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610322565b60098101805460ff1916600117905560005b6001820154811015610c3e57610c2c33836001016001018381548110610bdf57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154846001016000018481548110610c1057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031691906114be565b80610c36816120e4565b915050610ba9565b5060005b6003820154811015610d275760038201805482908110610c7257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546004830180546001600160a01b03909216916323b872dd91309133919086908110610cb957634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b8152600401610ce293929190611d7d565b600060405180830381600087803b158015610cfc57600080fd5b505af1158015610d10573d6000803e3d6000fd5b505050508080610d1f906120e4565b915050610c42565b5060005b6005820154811015610e425760058201805482908110610d5b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546006830180546001600160a01b039092169163f242432a91309133919086908110610da257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154866001016006018681548110610dd357634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518563ffffffff1660e01b8152600401610dfd9493929190611da1565b600060405180830381600087803b158015610e1757600080fd5b505af1158015610e2b573d6000803e3d6000fd5b505050508080610e3a906120e4565b915050610d2b565b50604080518481523360208201527f31b721f6c7579bbe6d30e6ffbfcba6fe1dda35eb9b4b82156454a7faa49d35e7910160405180910390a1505050565b6000546001600160a01b03163314610eaa5760405162461bcd60e51b815260040161032290611efb565b610ed7610ebf6000546001600160a01b031690565b61271354612714546001600160a01b031691906114be565b7fd10fd4f8474747158a3a9626976a3873a88f3e100f151fb298d038a8c3a4067861271354604051610f0b91815260200190565b60405180910390a1600061271355565b60006001836103e88110610f3f57634e487b7160e01b600052603260045260246000fd5b600a020180549091506001600160a01b03163314610f9f5760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f206e6f74206f776e2074686973206465706f73697400000000006044820152606401610322565b6001600160a01b039091166000908152600890910160205260409020805460ff1916600117905550565b6000546001600160a01b03163314610ff35760405162461bcd60e51b815260040161032290611efb565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001816103e8811061104e57600080fd5b600a0201805460408051600184018054610100602082028401810190945260e083018181526001600160a01b03909516965091939092849284918401828280156110c157602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116110a3575b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561111957602002820191906000526020600020905b815481526020019060010190808311611105575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561117b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161115d575b50505050508152602001600382018054806020026020016040519081016040528092919081815260200182805480156111d357602002820191906000526020600020905b8154815260200190600101908083116111bf575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561123557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611217575b505050505081526020016005820180548060200260200160405190810160405280929190818152602001828054801561128d57602002820191906000526020600020905b815481526020019060010190808311611279575b50505050508152602001600682018054806020026020016040519081016040528092919081815260200182805480156112e557602002820191906000526020600020905b8154815260200190600101908083116112d1575b5050509190925250505060099091015460ff1683565b6000546001600160a01b031633146113255760405162461bcd60e51b815260040161032290611efb565b6001600160a01b03811661138a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610322565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61143d846323b872dd60e01b85858560405160240161140693929190611d7d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526114f3565b50505050565b600081516041146114965760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610322565b60208201516040830151606084015160001a6114b4868285856115c5565b9695505050505050565b6040516001600160a01b0383166024820152604481018290526114ee90849063a9059cbb60e01b90606401611406565b505050565b6000611548826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117709092919063ffffffff16565b8051909150156114ee57808060200190518101906115669190611b36565b6114ee5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610322565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156116425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610322565b8360ff16601b148061165757508360ff16601c145b6116ae5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610322565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611702573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117655760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610322565b90505b949350505050565b606061177f8484600085611789565b90505b9392505050565b6060824710156117ea5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610322565b843b6118385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610322565b600080866001600160a01b031685876040516118549190611d61565b60006040518083038185875af1925050503d8060008114611891576040519150601f19603f3d011682016040523d82523d6000602084013e611896565b606091505b50915091506118a68282866118b1565b979650505050505050565b606083156118c0575081611782565b8251156118d05782518084602001fd5b8160405162461bcd60e51b81526004016103229190611ec8565b60008083601f8401126118fb578081fd5b50813567ffffffffffffffff811115611912578182fd5b6020830191508360208260051b850101111561192d57600080fd5b9250929050565b60008083601f840112611945578182fd5b50813567ffffffffffffffff81111561195c578182fd5b60208301915083602082850101111561192d57600080fd5b600060208284031215611985578081fd5b813561178281612296565b60008060008060008060008060a0898b0312156119ab578384fd5b88356119b681612296565b975060208901356119c681612296565b9650604089013567ffffffffffffffff808211156119e2578586fd5b6119ee8c838d016118ea565b909850965060608b0135915080821115611a06578586fd5b611a128c838d016118ea565b909650945060808b0135915080821115611a2a578384fd5b50611a378b828c01611934565b999c989b5096995094979396929594505050565b600080600080600060808688031215611a62578081fd5b8535611a6d81612296565b94506020860135611a7d81612296565b935060408601359250606086013567ffffffffffffffff811115611a9f578182fd5b611aab88828901611934565b969995985093965092949392505050565b60008060008060008060a08789031215611ad4578182fd5b8635611adf81612296565b95506020870135611aef81612296565b94506040870135935060608701359250608087013567ffffffffffffffff811115611b18578283fd5b611b2489828a01611934565b979a9699509497509295939492505050565b600060208284031215611b47578081fd5b81518015158114611782578182fd5b600060208284031215611b67578081fd5b81356001600160e01b031981168114611782578182fd5b60008060008060608587031215611b93578384fd5b843567ffffffffffffffff80821115611baa578586fd5b9086019060e08289031215611bbd578586fd5b9094506020860135935060408601359080821115611bd9578384fd5b50611be6878288016118ea565b95989497509550505050565b600060208284031215611c03578081fd5b5035919050565b60008060408385031215611c1c578182fd5b823591506020830135611c2e81612296565b809150509250929050565b60008060408385031215611c4b578182fd5b82359150602083013567ffffffffffffffff80821115611c69578283fd5b818501915085601f830112611c7c578283fd5b813581811115611c8e57611c8e612115565b604051601f8201601f19908116603f01168101908382118183101715611cb657611cb6612115565b81604052828152886020848701011115611cce578586fd5b82602086016020830137856020848301015280955050505050509250929050565b6000815180845260208085019450808401835b83811015611d275781516001600160a01b031687529582019590820190600101611d02565b509495945050505050565b6000815180845260208085019450808401835b83811015611d2757815187529582019590820190600101611d45565b60008251611d738184602087016120b8565b9190910192915050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b600060018060a01b038516825260606020830152835160e06060840152611e04610140840182611cef565b90506020850151605f1980858403016080860152611e228383611d32565b925060408701519150808584030160a0860152611e3f8383611cef565b925060608701519150808584030160c0860152611e5c8383611d32565b925060808701519150808584030160e0860152611e798383611cef565b925060a087015191508085840301610100860152611e978383611d32565b925060c08701519150808584030161012086015250611eb68282611d32565b92505050611768604083018415159052565b6000602082528251806020840152611ee78160408501602087016120b8565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000808335601e19843603018112611f46578283fd5b83018035915067ffffffffffffffff821115611f60578283fd5b6020019150600581901b360382131561192d57600080fd5b60008219821115611f8b57611f8b6120ff565b500190565b600082611fab57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611fca57611fca6120ff565b500290565b611fd9838261212b565b818160005260208060002060005b86811015612025578335611ffa81612296565b82546001600160a01b0319166001600160a01b03919091161782559282019260019182019101611fe7565b50505050505050565b612038838261212b565b818160005260208060002060005b8681101561202557833561205981612296565b82546001600160a01b0319166001600160a01b03919091161782559282019260019182019101612046565b61208e838261212b565b818160005260208060002060005b868110156120255783358255928201926001918201910161209c565b60005b838110156120d35781810151838201526020016120bb565b8381111561143d5750506000910152565b60006000198214156120f8576120f86120ff565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6801000000000000000082111561214457612144612115565b8054828255808310156114ee576000828152602081208481019083015b8082101561217757828255600182019150612161565b505050505050565b6121898283611f30565b612193818461212b565b60008381526020808220825b848110156121e35785356121b281612296565b82546001600160a01b03600387901b81811b801990931693909116901b16178255948201946001918201910161219f565b50506121f181870187611f30565b945092505050612205828260018601612084565b50506122146040830183611f30565b61222281836002860161202e565b50506122316060830183611f30565b61223f818360038601612084565b505061224e6080830183611f30565b61225c818360048601611fcf565b505061226b60a0830183611f30565b612279818360058601612084565b505061228860c0830183611f30565b61143d818360068601612084565b6001600160a01b03811681146122ab57600080fd5b5056fea26469706673582212203ab33090fc065787058183ba55f14e3f58e434f87ca5f16453c271944907383f64736f6c634300080300330000000000000000000000005e57f24415f37c7d304e85df9b4c36bc08789794

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

0000000000000000000000005e57f24415f37c7d304e85df9b4c36bc08789794

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005e57f24415f37c7d304e85df9b4c36bc08789794


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.