ERC-721
Overview
Max Total Supply
0 XBeyond
Holders
83
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 XBeyondLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
XBeyond
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract XBeyond is ERC721, Ownable, ReentrancyGuard { string public baseURI; struct Config { uint mintPrice; uint redeemPrice; bool isMintOpen; bool isRedeemOpen; } Config[2] public configs; bytes32 public merkleRoot; address public paymentToken; mapping(uint => mapping(address => bool)) public whitelistUsed; struct CollectionConfig { address asset; address derivAsset; } mapping(uint256 => CollectionConfig) collections; mapping(uint256 => bool) public redeemed; constructor(string memory name, string memory symbol, string memory _uri) ERC721(name, symbol) { baseURI = _uri; collections[1000000] = CollectionConfig(0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D, 0xDBfD76AF2157Dc15eE4e57F3f942bB45Ba84aF24); collections[2000000] = CollectionConfig(0x60E4d786628Fea6478F785A6d7e704777c86a7c6, 0x69f37e419bD1457d2a25ed3f5d418169caAe8D1F); } function mint(uint256 collectionId, uint256 tokenId, bool isBend, bytes32[] calldata proof) payable public nonReentrant{ Config memory _config = checkWl(collectionId, tokenId, proof) ? configs[1] : configs[0]; require(_config.isMintOpen, "Mint not open"); require(msg.value >= _config.mintPrice, "Invalid payment"); CollectionConfig memory collection = collections[collectionId]; IERC721 nft; if (isBend) { nft = IERC721(collection.derivAsset); } else { nft = IERC721(collection.asset); } require(msg.sender == nft.ownerOf(tokenId), 'not owner'); _safeMint(msg.sender, collectionId + tokenId); } function mintAndRedeem(uint256 collectionId, uint256 tokenId, bool isBend, bytes32[] calldata proof) payable external{ mint(collectionId, tokenId, isBend, proof); redeem(collectionId, tokenId, proof); } function checkWl(uint256 collectionId, uint256 tokenId, bytes32[] calldata proof) public view returns (bool) { if (proof.length == 0) { return false; } bytes32 node = keccak256(abi.encodePacked(collectionId, tokenId)); return MerkleProof.verify(proof, merkleRoot, node); } function redeem(uint256 collectionId, uint256 tokenId, bytes32[] calldata proof) public { Config memory _config = checkWl(collectionId, tokenId, proof) ? configs[1] : configs[0]; require(_config.isRedeemOpen, "not open for this collection"); require(!redeemed[collectionId + tokenId], "already redeemd"); require(ownerOf(collectionId+tokenId) == msg.sender, "not owner of nft"); if (_config.redeemPrice > 0) { IERC20(paymentToken).transferFrom(msg.sender, owner(), _config.redeemPrice); } redeemed[collectionId + tokenId] = true; } function setCollection(uint collectionId, address asset, address bendAsset) external onlyOwner { collections[collectionId] = CollectionConfig(asset, bendAsset); } // 0 public, 1 whitelist function setMintStatus(uint index, bool _isOpen) external onlyOwner { configs[index].isMintOpen = _isOpen; } function setRedeemStatus(uint index, bool _isOpen) external onlyOwner { configs[index].isRedeemOpen = _isOpen; } function setStatus(uint index, bool _isOpen) external onlyOwner { configs[index].isRedeemOpen = _isOpen; configs[index].isMintOpen = _isOpen; } function setMintConfig(address _paymentToken, uint _mintPrice, uint _redeemPrice, uint _wlMintPrice, uint _wlRedeemPrice) external onlyOwner { paymentToken = _paymentToken; configs[0].mintPrice = _mintPrice; configs[0].redeemPrice = _redeemPrice; configs[1].mintPrice = _wlMintPrice; configs[1].redeemPrice = _wlRedeemPrice; } function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function setBaseURI(string memory base) external onlyOwner { baseURI = base; } function _baseURI() internal view override returns (string memory) { return baseURI; } function withdraw(address token) external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); IERC20(token).transfer(owner(), IERC20(token).balanceOf(address(this))); require(success, "Transfer failed."); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // 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; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @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) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @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 { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a 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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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`. * * 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; /** * @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 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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); }
// 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; } }
// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkWl","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"configs","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"redeemPrice","type":"uint256"},{"internalType":"bool","name":"isMintOpen","type":"bool"},{"internalType":"bool","name":"isRedeemOpen","type":"bool"}],"stateMutability":"view","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":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"isBend","type":"bool"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"isBend","type":"bool"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintAndRedeem","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"base","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"bendAsset","type":"address"}],"name":"setCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_paymentToken","type":"address"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_redeemPrice","type":"uint256"},{"internalType":"uint256","name":"_wlMintPrice","type":"uint256"},{"internalType":"uint256","name":"_wlRedeemPrice","type":"uint256"}],"name":"setMintConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"_isOpen","type":"bool"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"_isOpen","type":"bool"}],"name":"setRedeemStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"_isOpen","type":"bool"}],"name":"setStatus","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"whitelistUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002a7538038062002a758339810160408190526200003491620003b1565b8251839083906200004d90600090602085019062000258565b5080516200006390600190602084019062000258565b505050620000806200007a6200020260201b60201c565b62000206565b600160075580516200009a90600890602084019062000258565b505060408051808201825273bc4ca0eda7647a8ab7c2061c2e118a18a936f13d815273dbfd76af2157dc15ee4e57f3f942bb45ba84af246020808301918252620f42406000908152601280835293517fbb39cbbc73cac44c1729ebd7fda74d0be4619a5544cacab3d14ba7e60bfc8b2080546001600160a01b03199081166001600160a01b039384161790915593517fbb39cbbc73cac44c1729ebd7fda74d0be4619a5544cacab3d14ba7e60bfc8b218054861691831691909117905585518087019096527360e4d786628fea6478f785a6d7e704777c86a7c686527369f37e419bd1457d2a25ed3f5d418169caae8d1f868401908152621e84809092529390915292517f61d9f2997552239dce96de24d27006ec5daf55e00c2fd09cba02155387b1c2b28054831691841691909117905591517f61d9f2997552239dce96de24d27006ec5daf55e00c2fd09cba02155387b1c2b38054909316911617905550620004919050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000266906200043e565b90600052602060002090601f0160209004810192826200028a5760008555620002d5565b82601f10620002a557805160ff1916838001178555620002d5565b82800160010185558215620002d5579182015b82811115620002d5578251825591602001919060010190620002b8565b50620002e3929150620002e7565b5090565b5b80821115620002e35760008155600101620002e8565b600082601f8301126200030f578081fd5b81516001600160401b03808211156200032c576200032c6200047b565b604051601f8301601f19908116603f011681019082821181831017156200035757620003576200047b565b8160405283815260209250868385880101111562000373578485fd5b8491505b8382101562000396578582018301518183018401529082019062000377565b83821115620003a757848385830101525b9695505050505050565b600080600060608486031215620003c6578283fd5b83516001600160401b0380821115620003dd578485fd5b620003eb87838801620002fe565b9450602086015191508082111562000401578384fd5b6200040f87838801620002fe565b9350604086015191508082111562000425578283fd5b506200043486828701620002fe565b9150509250925092565b600181811c908216806200045357607f821691505b602082108114156200047557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6125d480620004a16000396000f3fe6080604052600436106101f85760003560e01c8063715018a61161010d578063a22cb465116100a0578063c3885fff1161006f578063c3885fff146105e8578063c4dcb8d714610608578063c87b56dd14610628578063e985e9c514610648578063f2fde38b1461069157600080fd5b8063a22cb46514610568578063b88d4fde14610588578063b97bff1a146105a8578063bd938bff146105c857600080fd5b80638da5cb5b116100dc5780638da5cb5b1461050257806395d89b41146105205780639ac0af62146105355780639c23fec51461055557600080fd5b8063715018a61461047d5780637cb64759146104925780637ed0f1c1146104b25780638719e8ac146104e257600080fd5b80633013ce291161019057806355f804b31161015f57806355f804b3146103cd5780635af2993f146103ed5780636352211e146104285780636c0360eb1461044857806370a082311461045d57600080fd5b80633013ce291461034d57806331f019181461036d57806342842e0e1461038d57806351cff8d9146103ad57600080fd5b8063081812fc116101cc578063081812fc146102b1578063095ea7b3146102e957806323b872dd146103095780632eb4a7ab1461032957600080fd5b806298fa22146101fd57806301ffc9a71461024a5780630311c02e1461027a57806306fdde031461028f575b600080fd5b34801561020957600080fd5b5061021d61021836600461210f565b6106b1565b60408051948552602085019390935290151591830191909152151560608201526080015b60405180910390f35b34801561025657600080fd5b5061026a610265366004612127565b6106e4565b6040519015158152602001610241565b61028d610288366004612297565b610736565b005b34801561029b57600080fd5b506102a461099c565b6040516102419190612397565b3480156102bd57600080fd5b506102d16102cc36600461210f565b610a2e565b6040516001600160a01b039091168152602001610241565b3480156102f557600080fd5b5061028d610304366004612085565b610a55565b34801561031557600080fd5b5061028d610324366004611f9b565b610b6b565b34801561033557600080fd5b5061033f600f5481565b604051908152602001610241565b34801561035957600080fd5b506010546102d1906001600160a01b031681565b34801561037957600080fd5b5061028d6103883660046121e1565b610b9c565b34801561039957600080fd5b5061028d6103a8366004611f9b565b610bfc565b3480156103b957600080fd5b5061028d6103c8366004611f2b565b610c17565b3480156103d957600080fd5b5061028d6103e836600461215f565b610dc5565b3480156103f957600080fd5b5061026a6104083660046121bd565b601160209081526000928352604080842090915290825290205460ff1681565b34801561043457600080fd5b506102d161044336600461210f565b610de0565b34801561045457600080fd5b506102a4610e40565b34801561046957600080fd5b5061033f610478366004611f2b565b610ece565b34801561048957600080fd5b5061028d610f54565b34801561049e57600080fd5b5061028d6104ad36600461210f565b610f68565b3480156104be57600080fd5b5061026a6104cd36600461210f565b60136020526000908152604090205460ff1681565b3480156104ee57600080fd5b5061028d6104fd366004612222565b610f75565b34801561050e57600080fd5b506006546001600160a01b03166102d1565b34801561052c57600080fd5b506102a4611001565b34801561054157600080fd5b5061028d610550366004612222565b611010565b61028d610563366004612297565b61105c565b34801561057457600080fd5b5061028d610583366004612058565b61107c565b34801561059457600080fd5b5061028d6105a3366004611fdb565b611087565b3480156105b457600080fd5b5061028d6105c3366004612246565b6110bf565b3480156105d457600080fd5b5061026a6105e3366004612246565b61130f565b3480156105f457600080fd5b5061028d6106033660046120b0565b61139a565b34801561061457600080fd5b5061028d610623366004612222565b6113d4565b34801561063457600080fd5b506102a461064336600461210f565b6113fe565b34801561065457600080fd5b5061026a610663366004611f63565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561069d57600080fd5b5061028d6106ac366004611f2b565b611465565b600981600281106106c157600080fd5b600302018054600182015460029092015490925060ff8082169161010090041684565b60006001600160e01b031982166380ac58cd60e01b148061071557506001600160e01b03198216635b5e139f60e01b145b8061073057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6002600754141561078e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260075560006107a18686858561130f565b6107ac5760096107af565b600c5b60408051608081018252825481526001830154602082015260029092015460ff808216151592840183905261010090910416151560608301529091506108275760405162461bcd60e51b815260206004820152600d60248201526c26b4b73a103737ba1037b832b760991b6044820152606401610785565b805134101561086a5760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081c185e5b595b9d608a1b6044820152606401610785565b6000868152601260209081526040808320815180830190925280546001600160a01b03908116835260019091015416918101919091529085156108b2575060208101516108b6565b5080515b6040516331a9108f60e11b8152600481018890526001600160a01b03821690636352211e9060240160206040518083038186803b1580156108f657600080fd5b505afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e9190611f47565b6001600160a01b0316336001600160a01b03161461097a5760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606401610785565b61098d33610988898b61244a565b6114de565b50506001600755505050505050565b6060600080546109ab906124b9565b80601f01602080910402602001604051908101604052809291908181526020018280546109d7906124b9565b8015610a245780601f106109f957610100808354040283529160200191610a24565b820191906000526020600020905b815481529060010190602001808311610a0757829003601f168201915b5050505050905090565b6000610a39826114f8565b506000908152600460205260409020546001600160a01b031690565b6000610a6082610de0565b9050806001600160a01b0316836001600160a01b03161415610ace5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610785565b336001600160a01b0382161480610aea5750610aea8133610663565b610b5c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610785565b610b668383611557565b505050565b610b7533826115c5565b610b915760405162461bcd60e51b8152600401610785906123fc565b610b66838383611643565b610ba46117df565b6040805180820182526001600160a01b03938416815291831660208084019182526000958652601290529320905181546001600160a01b03199081169184169190911782559251600190910180549093169116179055565b610b6683838360405180602001604052806000815250611087565b610c1f6117df565b604051600090339047908381818185875af1925050503d8060008114610c61576040519150601f19603f3d011682016040523d82523d6000602084013e610c66565b606091505b50509050816001600160a01b031663a9059cbb610c8b6006546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a082319060240160206040518083038186803b158015610cca57600080fd5b505afa158015610cde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0291906121a5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610d4857600080fd5b505af1158015610d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8091906120f3565b5080610dc15760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610785565b5050565b610dcd6117df565b8051610dc1906008906020840190611dd2565b6000818152600260205260408120546001600160a01b0316806107305760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610785565b60088054610e4d906124b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610e79906124b9565b8015610ec65780601f10610e9b57610100808354040283529160200191610ec6565b820191906000526020600020905b815481529060010190602001808311610ea957829003601f168201915b505050505081565b60006001600160a01b038216610f385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610785565b506001600160a01b031660009081526003602052604090205490565b610f5c6117df565b610f666000611839565b565b610f706117df565b600f55565b610f7d6117df565b8060098360028110610f9f57634e487b7160e01b600052603260045260246000fd5b6003020160020160016101000a81548160ff0219169083151502179055508060098360028110610fdf57634e487b7160e01b600052603260045260246000fd5b6003020160020160006101000a81548160ff0219169083151502179055505050565b6060600180546109ab906124b9565b6110186117df565b806009836002811061103a57634e487b7160e01b600052603260045260246000fd5b6003020160020160016101000a81548160ff0219169083151502179055505050565b6110698585858585610736565b611075858584846110bf565b5050505050565b610dc133838361188b565b61109133836115c5565b6110ad5760405162461bcd60e51b8152600401610785906123fc565b6110b98484848461195a565b50505050565b60006110cd8585858561130f565b6110d85760096110db565b600c5b60408051608081018252825481526001830154602082015260029092015460ff8082161515928401929092526101009004161515606082018190529091506111655760405162461bcd60e51b815260206004820152601c60248201527f6e6f74206f70656e20666f72207468697320636f6c6c656374696f6e000000006044820152606401610785565b60136000611173868861244a565b815260208101919091526040016000205460ff16156111c65760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481c995919595b59608a1b6044820152606401610785565b336111d4610443868861244a565b6001600160a01b03161461121d5760405162461bcd60e51b815260206004820152601060248201526f1b9bdd081bdddb995c881bd9881b999d60821b6044820152606401610785565b6020810151156112d9576010546001600160a01b03166323b872dd3361124b6006546001600160a01b031690565b60208501516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561129f57600080fd5b505af11580156112b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d791906120f3565b505b6001601360006112e9878961244a565b81526020810191909152604001600020805460ff19169115159190911790555050505050565b60008161131e57506000611392565b604080516020810187905290810185905260009060600160405160208183030381529060405280519060200120905061138e84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061198d565b9150505b949350505050565b6113a26117df565b601080546001600160a01b0319166001600160a01b039690961695909517909455600992909255600a55600c55600d55565b6113dc6117df565b8060098360028110610fdf57634e487b7160e01b600052603260045260246000fd5b6060611409826114f8565b60006114136119a3565b90506000815111611433576040518060200160405280600081525061145e565b8061143d846119b2565b60405160200161144e92919061232b565b6040516020818303038152906040525b9392505050565b61146d6117df565b6001600160a01b0381166114d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610785565b6114db81611839565b50565b610dc1828260405180602001604052806000815250611acc565b6000818152600260205260409020546001600160a01b03166114db5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610785565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061158c82610de0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806115d183610de0565b9050806001600160a01b0316846001600160a01b0316148061161857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806113925750836001600160a01b031661163184610a2e565b6001600160a01b031614949350505050565b826001600160a01b031661165682610de0565b6001600160a01b0316146116ba5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610785565b6001600160a01b03821661171c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610785565b611727600082611557565b6001600160a01b0383166000908152600360205260408120805460019290611750908490612476565b90915550506001600160a01b038216600090815260036020526040812080546001929061177e90849061244a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610f665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610785565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118ed5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610785565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611965848484611643565b61197184848484611aff565b6110b95760405162461bcd60e51b8152600401610785906123aa565b60008261199a8584611c09565b14949350505050565b6060600880546109ab906124b9565b6060816119d65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a0057806119ea816124f4565b91506119f99050600a83612462565b91506119da565b60008167ffffffffffffffff811115611a2957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a53576020820181803683370190505b5090505b841561139257611a68600183612476565b9150611a75600a8661250f565b611a8090603061244a565b60f81b818381518110611aa357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ac5600a86612462565b9450611a57565b611ad68383611c64565b611ae36000848484611aff565b610b665760405162461bcd60e51b8152600401610785906123aa565b60006001600160a01b0384163b15611c0157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b4390339089908890889060040161235a565b602060405180830381600087803b158015611b5d57600080fd5b505af1925050508015611b8d575060408051601f3d908101601f19168201909252611b8a91810190612143565b60015b611be7573d808015611bbb576040519150601f19603f3d011682016040523d82523d6000602084013e611bc0565b606091505b508051611bdf5760405162461bcd60e51b8152600401610785906123aa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611392565b506001611392565b600081815b8451811015611c5c57611c4882868381518110611c3b57634e487b7160e01b600052603260045260246000fd5b6020026020010151611da6565b915080611c54816124f4565b915050611c0e565b509392505050565b6001600160a01b038216611cba5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610785565b6000818152600260205260409020546001600160a01b031615611d1f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610785565b6001600160a01b0382166000908152600360205260408120805460019290611d4890849061244a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611dc257600082815260208490526040902061145e565b5060009182526020526040902090565b828054611dde906124b9565b90600052602060002090601f016020900481019282611e005760008555611e46565b82601f10611e1957805160ff1916838001178555611e46565b82800160010185558215611e46579182015b82811115611e46578251825591602001919060010190611e2b565b50611e52929150611e56565b5090565b5b80821115611e525760008155600101611e57565b600067ffffffffffffffff80841115611e8657611e8661254f565b604051601f8501601f19908116603f01168101908282118183101715611eae57611eae61254f565b81604052809350858152868686011115611ec757600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112611ef2578182fd5b50813567ffffffffffffffff811115611f09578182fd5b6020830191508360208260051b8501011115611f2457600080fd5b9250929050565b600060208284031215611f3c578081fd5b813561145e81612565565b600060208284031215611f58578081fd5b815161145e81612565565b60008060408385031215611f75578081fd5b8235611f8081612565565b91506020830135611f9081612565565b809150509250929050565b600080600060608486031215611faf578081fd5b8335611fba81612565565b92506020840135611fca81612565565b929592945050506040919091013590565b60008060008060808587031215611ff0578081fd5b8435611ffb81612565565b9350602085013561200b81612565565b925060408501359150606085013567ffffffffffffffff81111561202d578182fd5b8501601f8101871361203d578182fd5b61204c87823560208401611e6b565b91505092959194509250565b6000806040838503121561206a578182fd5b823561207581612565565b91506020830135611f908161257a565b60008060408385031215612097578182fd5b82356120a281612565565b946020939093013593505050565b600080600080600060a086880312156120c7578081fd5b85356120d281612565565b97602087013597506040870135966060810135965060800135945092505050565b600060208284031215612104578081fd5b815161145e8161257a565b600060208284031215612120578081fd5b5035919050565b600060208284031215612138578081fd5b813561145e81612588565b600060208284031215612154578081fd5b815161145e81612588565b600060208284031215612170578081fd5b813567ffffffffffffffff811115612186578182fd5b8201601f81018413612196578182fd5b61139284823560208401611e6b565b6000602082840312156121b6578081fd5b5051919050565b600080604083850312156121cf578182fd5b823591506020830135611f9081612565565b6000806000606084860312156121f5578081fd5b83359250602084013561220781612565565b9150604084013561221781612565565b809150509250925092565b60008060408385031215612234578182fd5b823591506020830135611f908161257a565b6000806000806060858703121561225b578182fd5b8435935060208501359250604085013567ffffffffffffffff81111561227f578283fd5b61228b87828801611ee1565b95989497509550505050565b6000806000806000608086880312156122ae578283fd5b853594506020860135935060408601356122c78161257a565b9250606086013567ffffffffffffffff8111156122e2578182fd5b6122ee88828901611ee1565b969995985093965092949392505050565b6000815180845261231781602086016020860161248d565b601f01601f19169290920160200192915050565b6000835161233d81846020880161248d565b83519083019061235181836020880161248d565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061238d908301846122ff565b9695505050505050565b60208152600061145e60208301846122ff565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6000821982111561245d5761245d612523565b500190565b60008261247157612471612539565b500490565b60008282101561248857612488612523565b500390565b60005b838110156124a8578181015183820152602001612490565b838111156110b95750506000910152565b600181811c908216806124cd57607f821691505b602082108114156124ee57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561250857612508612523565b5060010190565b60008261251e5761251e612539565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114db57600080fd5b80151581146114db57600080fd5b6001600160e01b0319811681146114db57600080fdfea26469706673582212206c6abdd52ed3eceb12bf5ca3a9d7f2feb22af69a4db448abbc54e109510b809064736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000007584265796f6e64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007584265796f6e64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000023687474703a2f2f7777772e786265796f6e642e696f2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101f85760003560e01c8063715018a61161010d578063a22cb465116100a0578063c3885fff1161006f578063c3885fff146105e8578063c4dcb8d714610608578063c87b56dd14610628578063e985e9c514610648578063f2fde38b1461069157600080fd5b8063a22cb46514610568578063b88d4fde14610588578063b97bff1a146105a8578063bd938bff146105c857600080fd5b80638da5cb5b116100dc5780638da5cb5b1461050257806395d89b41146105205780639ac0af62146105355780639c23fec51461055557600080fd5b8063715018a61461047d5780637cb64759146104925780637ed0f1c1146104b25780638719e8ac146104e257600080fd5b80633013ce291161019057806355f804b31161015f57806355f804b3146103cd5780635af2993f146103ed5780636352211e146104285780636c0360eb1461044857806370a082311461045d57600080fd5b80633013ce291461034d57806331f019181461036d57806342842e0e1461038d57806351cff8d9146103ad57600080fd5b8063081812fc116101cc578063081812fc146102b1578063095ea7b3146102e957806323b872dd146103095780632eb4a7ab1461032957600080fd5b806298fa22146101fd57806301ffc9a71461024a5780630311c02e1461027a57806306fdde031461028f575b600080fd5b34801561020957600080fd5b5061021d61021836600461210f565b6106b1565b60408051948552602085019390935290151591830191909152151560608201526080015b60405180910390f35b34801561025657600080fd5b5061026a610265366004612127565b6106e4565b6040519015158152602001610241565b61028d610288366004612297565b610736565b005b34801561029b57600080fd5b506102a461099c565b6040516102419190612397565b3480156102bd57600080fd5b506102d16102cc36600461210f565b610a2e565b6040516001600160a01b039091168152602001610241565b3480156102f557600080fd5b5061028d610304366004612085565b610a55565b34801561031557600080fd5b5061028d610324366004611f9b565b610b6b565b34801561033557600080fd5b5061033f600f5481565b604051908152602001610241565b34801561035957600080fd5b506010546102d1906001600160a01b031681565b34801561037957600080fd5b5061028d6103883660046121e1565b610b9c565b34801561039957600080fd5b5061028d6103a8366004611f9b565b610bfc565b3480156103b957600080fd5b5061028d6103c8366004611f2b565b610c17565b3480156103d957600080fd5b5061028d6103e836600461215f565b610dc5565b3480156103f957600080fd5b5061026a6104083660046121bd565b601160209081526000928352604080842090915290825290205460ff1681565b34801561043457600080fd5b506102d161044336600461210f565b610de0565b34801561045457600080fd5b506102a4610e40565b34801561046957600080fd5b5061033f610478366004611f2b565b610ece565b34801561048957600080fd5b5061028d610f54565b34801561049e57600080fd5b5061028d6104ad36600461210f565b610f68565b3480156104be57600080fd5b5061026a6104cd36600461210f565b60136020526000908152604090205460ff1681565b3480156104ee57600080fd5b5061028d6104fd366004612222565b610f75565b34801561050e57600080fd5b506006546001600160a01b03166102d1565b34801561052c57600080fd5b506102a4611001565b34801561054157600080fd5b5061028d610550366004612222565b611010565b61028d610563366004612297565b61105c565b34801561057457600080fd5b5061028d610583366004612058565b61107c565b34801561059457600080fd5b5061028d6105a3366004611fdb565b611087565b3480156105b457600080fd5b5061028d6105c3366004612246565b6110bf565b3480156105d457600080fd5b5061026a6105e3366004612246565b61130f565b3480156105f457600080fd5b5061028d6106033660046120b0565b61139a565b34801561061457600080fd5b5061028d610623366004612222565b6113d4565b34801561063457600080fd5b506102a461064336600461210f565b6113fe565b34801561065457600080fd5b5061026a610663366004611f63565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561069d57600080fd5b5061028d6106ac366004611f2b565b611465565b600981600281106106c157600080fd5b600302018054600182015460029092015490925060ff8082169161010090041684565b60006001600160e01b031982166380ac58cd60e01b148061071557506001600160e01b03198216635b5e139f60e01b145b8061073057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6002600754141561078e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260075560006107a18686858561130f565b6107ac5760096107af565b600c5b60408051608081018252825481526001830154602082015260029092015460ff808216151592840183905261010090910416151560608301529091506108275760405162461bcd60e51b815260206004820152600d60248201526c26b4b73a103737ba1037b832b760991b6044820152606401610785565b805134101561086a5760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081c185e5b595b9d608a1b6044820152606401610785565b6000868152601260209081526040808320815180830190925280546001600160a01b03908116835260019091015416918101919091529085156108b2575060208101516108b6565b5080515b6040516331a9108f60e11b8152600481018890526001600160a01b03821690636352211e9060240160206040518083038186803b1580156108f657600080fd5b505afa15801561090a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e9190611f47565b6001600160a01b0316336001600160a01b03161461097a5760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606401610785565b61098d33610988898b61244a565b6114de565b50506001600755505050505050565b6060600080546109ab906124b9565b80601f01602080910402602001604051908101604052809291908181526020018280546109d7906124b9565b8015610a245780601f106109f957610100808354040283529160200191610a24565b820191906000526020600020905b815481529060010190602001808311610a0757829003601f168201915b5050505050905090565b6000610a39826114f8565b506000908152600460205260409020546001600160a01b031690565b6000610a6082610de0565b9050806001600160a01b0316836001600160a01b03161415610ace5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610785565b336001600160a01b0382161480610aea5750610aea8133610663565b610b5c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610785565b610b668383611557565b505050565b610b7533826115c5565b610b915760405162461bcd60e51b8152600401610785906123fc565b610b66838383611643565b610ba46117df565b6040805180820182526001600160a01b03938416815291831660208084019182526000958652601290529320905181546001600160a01b03199081169184169190911782559251600190910180549093169116179055565b610b6683838360405180602001604052806000815250611087565b610c1f6117df565b604051600090339047908381818185875af1925050503d8060008114610c61576040519150601f19603f3d011682016040523d82523d6000602084013e610c66565b606091505b50509050816001600160a01b031663a9059cbb610c8b6006546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a082319060240160206040518083038186803b158015610cca57600080fd5b505afa158015610cde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0291906121a5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610d4857600080fd5b505af1158015610d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8091906120f3565b5080610dc15760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610785565b5050565b610dcd6117df565b8051610dc1906008906020840190611dd2565b6000818152600260205260408120546001600160a01b0316806107305760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610785565b60088054610e4d906124b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610e79906124b9565b8015610ec65780601f10610e9b57610100808354040283529160200191610ec6565b820191906000526020600020905b815481529060010190602001808311610ea957829003601f168201915b505050505081565b60006001600160a01b038216610f385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610785565b506001600160a01b031660009081526003602052604090205490565b610f5c6117df565b610f666000611839565b565b610f706117df565b600f55565b610f7d6117df565b8060098360028110610f9f57634e487b7160e01b600052603260045260246000fd5b6003020160020160016101000a81548160ff0219169083151502179055508060098360028110610fdf57634e487b7160e01b600052603260045260246000fd5b6003020160020160006101000a81548160ff0219169083151502179055505050565b6060600180546109ab906124b9565b6110186117df565b806009836002811061103a57634e487b7160e01b600052603260045260246000fd5b6003020160020160016101000a81548160ff0219169083151502179055505050565b6110698585858585610736565b611075858584846110bf565b5050505050565b610dc133838361188b565b61109133836115c5565b6110ad5760405162461bcd60e51b8152600401610785906123fc565b6110b98484848461195a565b50505050565b60006110cd8585858561130f565b6110d85760096110db565b600c5b60408051608081018252825481526001830154602082015260029092015460ff8082161515928401929092526101009004161515606082018190529091506111655760405162461bcd60e51b815260206004820152601c60248201527f6e6f74206f70656e20666f72207468697320636f6c6c656374696f6e000000006044820152606401610785565b60136000611173868861244a565b815260208101919091526040016000205460ff16156111c65760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481c995919595b59608a1b6044820152606401610785565b336111d4610443868861244a565b6001600160a01b03161461121d5760405162461bcd60e51b815260206004820152601060248201526f1b9bdd081bdddb995c881bd9881b999d60821b6044820152606401610785565b6020810151156112d9576010546001600160a01b03166323b872dd3361124b6006546001600160a01b031690565b60208501516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561129f57600080fd5b505af11580156112b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d791906120f3565b505b6001601360006112e9878961244a565b81526020810191909152604001600020805460ff19169115159190911790555050505050565b60008161131e57506000611392565b604080516020810187905290810185905260009060600160405160208183030381529060405280519060200120905061138e84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061198d565b9150505b949350505050565b6113a26117df565b601080546001600160a01b0319166001600160a01b039690961695909517909455600992909255600a55600c55600d55565b6113dc6117df565b8060098360028110610fdf57634e487b7160e01b600052603260045260246000fd5b6060611409826114f8565b60006114136119a3565b90506000815111611433576040518060200160405280600081525061145e565b8061143d846119b2565b60405160200161144e92919061232b565b6040516020818303038152906040525b9392505050565b61146d6117df565b6001600160a01b0381166114d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610785565b6114db81611839565b50565b610dc1828260405180602001604052806000815250611acc565b6000818152600260205260409020546001600160a01b03166114db5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610785565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061158c82610de0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806115d183610de0565b9050806001600160a01b0316846001600160a01b0316148061161857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806113925750836001600160a01b031661163184610a2e565b6001600160a01b031614949350505050565b826001600160a01b031661165682610de0565b6001600160a01b0316146116ba5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610785565b6001600160a01b03821661171c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610785565b611727600082611557565b6001600160a01b0383166000908152600360205260408120805460019290611750908490612476565b90915550506001600160a01b038216600090815260036020526040812080546001929061177e90849061244a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610f665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610785565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118ed5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610785565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611965848484611643565b61197184848484611aff565b6110b95760405162461bcd60e51b8152600401610785906123aa565b60008261199a8584611c09565b14949350505050565b6060600880546109ab906124b9565b6060816119d65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a0057806119ea816124f4565b91506119f99050600a83612462565b91506119da565b60008167ffffffffffffffff811115611a2957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a53576020820181803683370190505b5090505b841561139257611a68600183612476565b9150611a75600a8661250f565b611a8090603061244a565b60f81b818381518110611aa357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ac5600a86612462565b9450611a57565b611ad68383611c64565b611ae36000848484611aff565b610b665760405162461bcd60e51b8152600401610785906123aa565b60006001600160a01b0384163b15611c0157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b4390339089908890889060040161235a565b602060405180830381600087803b158015611b5d57600080fd5b505af1925050508015611b8d575060408051601f3d908101601f19168201909252611b8a91810190612143565b60015b611be7573d808015611bbb576040519150601f19603f3d011682016040523d82523d6000602084013e611bc0565b606091505b508051611bdf5760405162461bcd60e51b8152600401610785906123aa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611392565b506001611392565b600081815b8451811015611c5c57611c4882868381518110611c3b57634e487b7160e01b600052603260045260246000fd5b6020026020010151611da6565b915080611c54816124f4565b915050611c0e565b509392505050565b6001600160a01b038216611cba5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610785565b6000818152600260205260409020546001600160a01b031615611d1f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610785565b6001600160a01b0382166000908152600360205260408120805460019290611d4890849061244a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611dc257600082815260208490526040902061145e565b5060009182526020526040902090565b828054611dde906124b9565b90600052602060002090601f016020900481019282611e005760008555611e46565b82601f10611e1957805160ff1916838001178555611e46565b82800160010185558215611e46579182015b82811115611e46578251825591602001919060010190611e2b565b50611e52929150611e56565b5090565b5b80821115611e525760008155600101611e57565b600067ffffffffffffffff80841115611e8657611e8661254f565b604051601f8501601f19908116603f01168101908282118183101715611eae57611eae61254f565b81604052809350858152868686011115611ec757600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112611ef2578182fd5b50813567ffffffffffffffff811115611f09578182fd5b6020830191508360208260051b8501011115611f2457600080fd5b9250929050565b600060208284031215611f3c578081fd5b813561145e81612565565b600060208284031215611f58578081fd5b815161145e81612565565b60008060408385031215611f75578081fd5b8235611f8081612565565b91506020830135611f9081612565565b809150509250929050565b600080600060608486031215611faf578081fd5b8335611fba81612565565b92506020840135611fca81612565565b929592945050506040919091013590565b60008060008060808587031215611ff0578081fd5b8435611ffb81612565565b9350602085013561200b81612565565b925060408501359150606085013567ffffffffffffffff81111561202d578182fd5b8501601f8101871361203d578182fd5b61204c87823560208401611e6b565b91505092959194509250565b6000806040838503121561206a578182fd5b823561207581612565565b91506020830135611f908161257a565b60008060408385031215612097578182fd5b82356120a281612565565b946020939093013593505050565b600080600080600060a086880312156120c7578081fd5b85356120d281612565565b97602087013597506040870135966060810135965060800135945092505050565b600060208284031215612104578081fd5b815161145e8161257a565b600060208284031215612120578081fd5b5035919050565b600060208284031215612138578081fd5b813561145e81612588565b600060208284031215612154578081fd5b815161145e81612588565b600060208284031215612170578081fd5b813567ffffffffffffffff811115612186578182fd5b8201601f81018413612196578182fd5b61139284823560208401611e6b565b6000602082840312156121b6578081fd5b5051919050565b600080604083850312156121cf578182fd5b823591506020830135611f9081612565565b6000806000606084860312156121f5578081fd5b83359250602084013561220781612565565b9150604084013561221781612565565b809150509250925092565b60008060408385031215612234578182fd5b823591506020830135611f908161257a565b6000806000806060858703121561225b578182fd5b8435935060208501359250604085013567ffffffffffffffff81111561227f578283fd5b61228b87828801611ee1565b95989497509550505050565b6000806000806000608086880312156122ae578283fd5b853594506020860135935060408601356122c78161257a565b9250606086013567ffffffffffffffff8111156122e2578182fd5b6122ee88828901611ee1565b969995985093965092949392505050565b6000815180845261231781602086016020860161248d565b601f01601f19169290920160200192915050565b6000835161233d81846020880161248d565b83519083019061235181836020880161248d565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061238d908301846122ff565b9695505050505050565b60208152600061145e60208301846122ff565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6000821982111561245d5761245d612523565b500190565b60008261247157612471612539565b500490565b60008282101561248857612488612523565b500390565b60005b838110156124a8578181015183820152602001612490565b838111156110b95750506000910152565b600181811c908216806124cd57607f821691505b602082108114156124ee57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561250857612508612523565b5060010190565b60008261251e5761251e612539565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114db57600080fd5b80151581146114db57600080fd5b6001600160e01b0319811681146114db57600080fdfea26469706673582212206c6abdd52ed3eceb12bf5ca3a9d7f2feb22af69a4db448abbc54e109510b809064736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000007584265796f6e64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007584265796f6e64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000023687474703a2f2f7777772e786265796f6e642e696f2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): XBeyond
Arg [1] : symbol (string): XBeyond
Arg [2] : _uri (string): http://www.xbeyond.io/api/metadata/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 584265796f6e6400000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 584265796f6e6400000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [8] : 687474703a2f2f7777772e786265796f6e642e696f2f6170692f6d6574616461
Arg [9] : 74612f0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.