Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
1,058 DRP
Holders
552
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DRPToken
Compiler Version
v0.8.9+commit.e5eed63a
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.9; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { ERC1155Supply, ERC1155 } from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // // ,((*, // /%%*@((@(@*@@(&&/#/@&/@* // @*#%/&#(*(& #(%#,%%(//%@%#@&**% // #,##%@@%.#@..@#@%#*/ #@./%#@@@@.*,/#@ // /@&@#&#,,&(#..(@,##&.,. ,(@%@@@(@#(#(#((@ // #@@&@&%/,/%* ###*(,#,,###% (##@(&%#@/%/&*/ // @(%&@%/,/ %##. ,,@#((#*.@.& .@ ,,@@#, @@&*%/%@@ // %&@&(*/&*@//.@#/ /# &(%@&@,%&@ ,@%%# %#@*/@,,.@ // @@@%@##(/ %(#@,@@,*.@@@&/#/ #@ .&@@&*(@/(/(,,/*@ // @#@&@#@/(@(,*%* /%#%/.@%#&&@%# *@@@@*@&/##@/@(( // @#(@/@*/ /@@%%#@* @@@@ #*@///@#., // &%,*&*@. &/(//(((/#&@ // @/%#*@( @@@@ @@@@@@@ /#&@.(@&@@ // @&/,(%. &@ @&#@ @ ,@ @@* #@&&@(#/ // @#@,(#/ *@ *&%@ . @ (/@ .@&* @(/%**. // @*#*#%/.. %@ @#&@ @& (@(% ** // @%/&*#.%. /@@, & # *&&@*//@ // @@#@#.,@ , @( %@*%, @ @,,&@,%#/ // @%##@**@,. .@/ @ , @.@ , &%,,@/%% , // @@@#(,..%. @ % @,%@#@/#/ * // @(*@*(,%%,. ,.@@@@# @.*/&&@ ./.# // @%@(#/@,***. @/(,(,**@@ ,/ / * / &% (,&%@* *% , // @%&#@@(%.( . @(...,**,@ .( #. @/ @@ @@%%%..*% // (#@/&// *@( ,.. @/* /@ , (&.@&.,@@ % @*%*#&, // *,% #&@*,##(/,@, ..,. .#. #@( / , @@..#. @ // @ *&. #/(# *&*& # @ . @ .@, /@@.,@ * *%,..,# // @, . /@%,&* @,@,%(@ .%. @ @ @@ %, #, # , @ ,@@ // % / ,@ %@@@.& &*@,%&@% * ,@@@* /&. @@, ,,@ (@.@/*%,*(@& // %# ,& %&%(&,@ .*% *# /.* %% %@, @@, %@# %@@ . , # // @@ .# # @/*(,, ( @& .@,. (%@@. @( &*@ @ (. @ // &(@ %,%,#%# @& , @ @ @. & , ./%* (. // , @,@ ((%@,@@. @ #( @& &.@ @ * , , ,#@@ // @ * @@*@% *#@%&. @.@ .@ , @%@@. . * // @ % * ,#/@# @% @@. %%. ..@ , % @*@ (@ . // # /. @@# ,@,@@ . ..*@,, .@,,,@ @@@ * . .@ %/. // @* %(% ,@,@( @, ,/% ,.. . @#( @ * , @ // @@@. # @* & @ ,@%&% . , .*@ @. , *. ,*.#@,. // #, &,@ #@ & ( @@,.., @,/*@., ., / . @/ // ./ %%, @. @,% /*,#.,.@ @@ . ..@ . , // ,( (*@@ . ( , *& *. .@ . @.. . . @.. &, // @, @ &,. . @. . . @ *@../( // @,@ , ,@.. ,@ @. ,@ *,. , @., @ % @% .( // .. . (#,,, . @ @ ,. & @* @ @,*. , // , % (*%,*.,# @ %, , / / @,. / @ @.. // , %, #,, . #. *@@& &@@ @ *@ *, @@ @, .@. // // // DRP + Pellar 2022 // Drop 5 - Shintaro! contract DRPToken is ERC1155Supply, Ownable { struct Config { uint16 MAX_SUPPLY; uint16 TEAM_SUPPLY; uint256 PRICE; } struct TokenInfo { bool tradingPaused; bool saleActive; bool teamClaimed; string uri; Config config; mapping(address => uint16) claimed; } // constants // A = 0, B = 1, C = 2, D = 3, E = 4, F = 5, G = 6, H = 7 enum TOKEN {A, B, C, D, E, F, G, H} string public constant name = "DRPToken"; string public constant symbol = "DRP"; // variables TokenInfo[8] public tokens; string public hashKey = "shintaro-drp"; address public signer = 0x046c2c915d899D550471d0a7b4d0FaCF79Cde290; function(uint8, uint16, address, bytes memory, uint8) internal view returns (bool)[8] ELIGIBLES = [ eligibleByWhitelist, eligibleByWhitelist, eligibleByWhitelist, eligibleByWhitelist, eligibleByWhitelist, eligibleByWhitelist, eligibleByPrerequisite, eligibleByWhitelist ]; constructor() ERC1155("") { tokens[uint8(TOKEN.A)].config = Config({ MAX_SUPPLY: 10, TEAM_SUPPLY: 0, PRICE: 0.5 ether }); tokens[uint8(TOKEN.B)].config = Config({ MAX_SUPPLY: 10, TEAM_SUPPLY: 0, PRICE: 0.5 ether }); tokens[uint8(TOKEN.C)].config = Config({ MAX_SUPPLY: 25, TEAM_SUPPLY: 0, PRICE: 0.3 ether }); tokens[uint8(TOKEN.D)].config = Config({ MAX_SUPPLY: 25, TEAM_SUPPLY: 0, PRICE: 0.3 ether }); tokens[uint8(TOKEN.E)].config = Config({ MAX_SUPPLY: 50, TEAM_SUPPLY: 0, PRICE: 0.15 ether }); tokens[uint8(TOKEN.F)].config = Config({ MAX_SUPPLY: 50, TEAM_SUPPLY: 0, PRICE: 0.15 ether }); tokens[uint8(TOKEN.G)].config = Config({ MAX_SUPPLY: 444, TEAM_SUPPLY: 20, PRICE: 0.1 ether }); tokens[uint8(TOKEN.H)].config = Config({ MAX_SUPPLY: 444, TEAM_SUPPLY: 0, PRICE: 0.1 ether }); tokens[uint8(TOKEN.A)].uri = 'ipfs://QmZy3pCNzJrEQimqV4DUjSmLNKzqtE3KF8fnxJ7fUwYmQG'; tokens[uint8(TOKEN.B)].uri = 'ipfs://QmRXVxWPhR5wtsuTsMHzPvg8LLcRufjibUzDrzzMth7Nzz'; tokens[uint8(TOKEN.C)].uri = 'ipfs://QmfZ7viDWW54zijzUda8N3JxEPCpiuqYGHxa4iq64CndFT'; tokens[uint8(TOKEN.D)].uri = 'ipfs://QmarT1nA3Rt3Ux2VgC253mGptnNDMUv7GhdrxNitorPQTZ'; tokens[uint8(TOKEN.E)].uri = 'ipfs://QmVf6dm1MoiWZLt29UGbSZaHy1gm7LCTihYdNxNFf6WNP2'; tokens[uint8(TOKEN.F)].uri = 'ipfs://QmVgWEEFucAEWBwvLdurVsrxcweWoETDhGGwruXEoR1TC3'; tokens[uint8(TOKEN.G)].uri = 'ipfs://QmVr4m15DCMgFY3nk4TarFjbZaba2Gkni4VGc9Ecbd2CPA'; tokens[uint8(TOKEN.H)].uri = 'ipfs://QmcD9qUCxyqETeV4d2NmcxRWeAoHLa2PBjKGDMF2W9p9oN'; } /* User */ function claim(TOKEN _tokenId, uint16 _maxAmount, bytes calldata _signature) external payable { uint8 tokenId = uint8(_tokenId); uint8 amount = 1; require(tokens[tokenId].saleActive, "Sale not active"); require(tx.origin == msg.sender, "Not allowed"); require(eligibleClaim(_tokenId, _maxAmount, msg.sender, _signature, amount), "Not eligible"); require(tokens[tokenId].config.MAX_SUPPLY > totalSupply(tokenId), "Exceed max"); require(msg.value >= tokens[tokenId].config.PRICE, "Ether value incorrect"); tokens[tokenId].claimed[msg.sender] += amount; _mint(msg.sender, tokenId, amount, ""); } /* View */ // verified function uri(uint256 _id) public view virtual override returns (string memory) { require(exists(_id), "Non exist token"); return tokens[uint8(_id)].uri; } // verified function eligibleClaim(TOKEN _tokenId, uint16 _maxAmount, address _account, bytes memory _signature, uint8 _amount) public view returns (bool) { uint8 tokenId = uint8(_tokenId); return ELIGIBLES[tokenId](tokenId, _maxAmount, _account, _signature, _amount); } function eligibleByWhitelist(uint8 _tokenId, uint16 _maxAmount, address _account, bytes memory _signature, uint8 _amount) internal view returns (bool) { bytes32 message = keccak256(abi.encodePacked(hashKey, _tokenId, _maxAmount, msg.sender)); return validSignature(message, _signature) && tokens[_tokenId].claimed[_account] + _amount <= _maxAmount; } function eligibleByPrerequisite(uint8 _tokenId, uint16, address _account, bytes memory, uint8) internal view returns (bool) { uint256 preTokenBalance = IDRPM(0xc46077AaE8f87b10bE3a1fe8E4E69eE135eC6759).balanceOf(_account, 0) + IDRPM(0xb09e99F8bFc11f6C311E7d63EFc42F26c51017A6).balanceOf(_account, 0); return balanceOf(_account, _tokenId) == 0 && preTokenBalance > 0; } /* Admin */ function setSignerInfo(address _signer, string calldata _hashKey) external onlyOwner { signer = _signer; hashKey = _hashKey; } // verified function toggleSaleActive(TOKEN[] calldata _tokenIds, bool _status) external onlyOwner { for (uint256 i = 0; i < _tokenIds.length; i++) { tokens[uint8(_tokenIds[i])].saleActive = _status; } } // verified function toggleTrading(TOKEN[] calldata _tokenIds, bool _status) external onlyOwner { for (uint256 i = 0; i < _tokenIds.length; i++) { tokens[uint8(_tokenIds[i])].tradingPaused = _status; } } // verified function setTokensUri(TOKEN[] calldata _tokenIds, string[] calldata _uri) external onlyOwner { require(_tokenIds.length == _uri.length, "Input mismatch"); for (uint256 i = 0; i < _tokenIds.length; i++) { tokens[uint8(_tokenIds[i])].uri = _uri[i]; } } // verified function teamClaim(TOKEN _tokenId) external onlyOwner { uint8 tokenId = uint8(_tokenId); require(!tokens[tokenId].teamClaimed, "Already claimed"); _mint(msg.sender, tokenId, tokens[tokenId].config.TEAM_SUPPLY, ""); tokens[tokenId].teamClaimed = true; } // verified function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { uint256 tokenId = ids[i]; require(from == address(0) || !tokens[tokenId].tradingPaused, "Token paused"); } } // verified function splitSignature(bytes memory _sig) internal pure returns (uint8, bytes32, bytes32) { require(_sig.length == 65, "Invalid signature length"); uint8 v; bytes32 r; bytes32 s; assembly { r := mload(add(_sig, 32)) s := mload(add(_sig, 64)) v := byte(0, mload(add(_sig, 96))) } return (v, r, s); } // verified function validSignature(bytes32 _message, bytes memory _signature) public view returns (bool) { bytes32 ethSignedMessageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _message)); (uint8 v, bytes32 r, bytes32 s) = splitSignature(_signature); return ecrecover(ethSignedMessageHash, v, r, s) == signer; } } interface IDRPM { function balanceOf(address, uint256) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates weither any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_mint}. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override { super._mint(account, id, amount, data); _totalSupply[id] += amount; } /** * @dev See {ERC1155-_mintBatch}. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._mintBatch(to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } /** * @dev See {ERC1155-_burn}. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual override { super._burn(account, id, amount); _totalSupply[id] -= amount; } /** * @dev See {ERC1155-_burnBatch}. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override { super._burnBatch(account, ids, amounts); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 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":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum DRPToken.TOKEN","name":"_tokenId","type":"uint8"},{"internalType":"uint16","name":"_maxAmount","type":"uint16"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"enum DRPToken.TOKEN","name":"_tokenId","type":"uint8"},{"internalType":"uint16","name":"_maxAmount","type":"uint16"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"eligibleClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hashKey","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"address","name":"_signer","type":"address"},{"internalType":"string","name":"_hashKey","type":"string"}],"name":"setSignerInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum DRPToken.TOKEN[]","name":"_tokenIds","type":"uint8[]"},{"internalType":"string[]","name":"_uri","type":"string[]"}],"name":"setTokensUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"enum DRPToken.TOKEN","name":"_tokenId","type":"uint8"}],"name":"teamClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum DRPToken.TOKEN[]","name":"_tokenIds","type":"uint8[]"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"toggleSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum DRPToken.TOKEN[]","name":"_tokenIds","type":"uint8[]"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"toggleTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"bool","name":"tradingPaused","type":"bool"},{"internalType":"bool","name":"saleActive","type":"bool"},{"internalType":"bool","name":"teamClaimed","type":"bool"},{"internalType":"string","name":"uri","type":"string"},{"components":[{"internalType":"uint16","name":"MAX_SUPPLY","type":"uint16"},{"internalType":"uint16","name":"TEAM_SUPPLY","type":"uint16"},{"internalType":"uint256","name":"PRICE","type":"uint256"}],"internalType":"struct DRPToken.Config","name":"config","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_message","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"validSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052600c60808190526b07368696e7461726f2d6472760a41b60a09081526200002f91602d919062000869565b50602e80546001600160a01b03191673046c2c915d899d550471d0a7b4d0facf79cde29017905560408051610100810182526001600160401b036200151e620003ed602090811b919091178216808452818401819052938301849052606083018490526080830184905260a08301849052620015c4620004a490911b171660c082015260e0810191909152620000ca90602f906008620008f8565b50348015620000d857600080fd5b50604080516020810190915260008152620000f38162000603565b50620000ff336200061c565b6040805160608082018352600a808352600060208085018290526706f05b59d3b200009486018590526007805463ffffffff1990811685179091556008869055865180860188528481528083018490528701869052600c80548216909417909355600d94909455845180840186526019808252818601839052670429d069189e00009187018290526011805485168217905560128290558651808601885281815280870184905287018290526016805485169091179055601755845180840186526032808252818601839052670214e8348c4f0000918701829052601b8054851682179055601c82905586518086018852818152808701849052870182905285548416178555602155845180840186526101bc80825260148287015267016345785d8a0000918701829052602580548516621401bc17905560268290558651808601885281815280870193909352918601819052602a8054909316909117909155602b5582519081019092526035808352906200395f9083013980516200028f9160069160209091019062000869565b5060405180606001604052806035815260200162003994603591398051620002c091600b9160209091019062000869565b506040518060600160405280603581526020016200392a603591398051620002f19160109160209091019062000869565b50604051806060016040528060358152602001620038f5603591398051620003229160159160209091019062000869565b5060405180606001604052806035815260200162003a336035913980516200035391601a9160209091019062000869565b50604051806060016040528060358152602001620038c06035913980516200038491601f9160209091019062000869565b50604051806060016040528060358152602001620039c9603591398051620003b59160249160209091019062000869565b50604051806060016040528060358152602001620039fe603591398051620003e69160299160209091019062000869565b5062000b83565b600080602d8787336040516020016200040a949392919062000a04565b6040516020818303038152906040528051906020012090506200043481856200066e60201b60201c565b80156200049957508561ffff168360ff1660058960ff16600881106200045e576200045e620009b1565b6001600160a01b038916600090815260046005929092029290920101602052604090205462000492919061ffff1662000b25565b61ffff1611155b979650505050505050565b604051627eeac760e11b81526001600160a01b038416600482015260006024820181905290819073b09e99f8bfc11f6c311e7d63efc42f26c51017a69062fdd58e9060440160206040518083038186803b1580156200050257600080fd5b505afa15801562000517573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200053d919062000b4e565b604051627eeac760e11b81526001600160a01b03871660048201526000602482015273c46077aae8f87b10be3a1fe8e4e69ee135ec67599062fdd58e9060440160206040518083038186803b1580156200059657600080fd5b505afa158015620005ab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005d1919062000b4e565b620005dd919062000b68565b9050620005ee8560ff89166200075d565b15801562000499575015159695505050505050565b80516200061890600290602084019062000869565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c016040516020818303038152906040528051906020012090506000806000620006d486620007f560201b60201c565b602e546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa1580156200073d573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b60006001600160a01b038316620007cf5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600080600083516041146200084d5760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401620007c6565b5050506020810151604082015160609092015160001a92909190565b8280546200087790620009c7565b90600052602060002090601f0160209004810192826200089b5760008555620008e6565b82601f10620008b657805160ff1916838001178555620008e6565b82800160010185558215620008e6579182015b82811115620008e6578251825591602001919060010190620008c9565b50620008f49291506200099a565b5090565b600283019183908215620008e65791602002820160005b838211156200095b57835183826101000a8154816001600160401b0302191690836001600160401b0316021790555092602001926008016020816007010492830192600103026200090f565b8015620009905782816101000a8154906001600160401b0302191690556008016020816007010492830192600103026200095b565b5050620008f49291505b5b80821115620008f457600081556001016200099b565b634e487b7160e01b600052603260045260246000fd5b600181811c90821680620009dc57607f821691505b60208210811415620009fe57634e487b7160e01b600052602260045260246000fd5b50919050565b600080865481600182811c91508083168062000a2157607f831692505b602080841082141562000a4257634e487b7160e01b86526022600452602486fd5b81801562000a59576001811462000a6b5762000a9a565b60ff1986168952848901965062000a9a565b60008d81526020902060005b8681101562000a925781548b82015290850190830162000a77565b505084890196505b50505062000acc848a60f81b7fff00000000000000000000000000000000000000000000000000000000000000169052565b62000ae58185018960f01b6001600160f01b0319169052565b50505062000b02600382018560601b6001600160601b0319169052565b6017019695505050505050565b634e487b7160e01b600052601160045260246000fd5b600061ffff80831681851680830382111562000b455762000b4562000b0f565b01949350505050565b60006020828403121562000b6157600080fd5b5051919050565b6000821982111562000b7e5762000b7e62000b0f565b500190565b612d2d8062000b936000396000f3fe60806040526004361061019b5760003560e01c8063715018a6116100ec578063d8a9a0c11161008a578063e96c4a8d11610064578063e96c4a8d14610504578063e985e9c514610517578063f242432a14610560578063f2fde38b1461058057600080fd5b8063d8a9a0c1146104a4578063dd93f3d4146104c4578063e89d8887146104e457600080fd5b806395d89b41116100c657806395d89b4114610413578063a22cb46514610442578063bd85b03914610462578063d404ea231461048f57600080fd5b8063715018a6146103c0578063724c639e146103d55780638da5cb5b146103f557600080fd5b806336ae9143116101595780633ccfd60b116101335780633ccfd60b1461031e5780634e1273f4146103335780634f558e79146103605780634f64b2be1461038f57600080fd5b806336ae9143146102be5780633894f8d4146102de5780633c3d5792146102fe57600080fd5b8062fdd58e146101a057806301ffc9a7146101d357806306fdde03146102035780630e89341c14610244578063238ac933146102645780632eb2c2d61461029c575b600080fd5b3480156101ac57600080fd5b506101c06101bb36600461200d565b6105a0565b6040519081526020015b60405180910390f35b3480156101df57600080fd5b506101f36101ee36600461204d565b610637565b60405190151581526020016101ca565b34801561020f57600080fd5b50610237604051806040016040528060088152602001672229282a37b5b2b760c11b81525081565b6040516101ca91906120be565b34801561025057600080fd5b5061023761025f3660046120d1565b610689565b34801561027057600080fd5b50602e54610284906001600160a01b031681565b6040516001600160a01b0390911681526020016101ca565b3480156102a857600080fd5b506102bc6102b7366004612233565b610786565b005b3480156102ca57600080fd5b506102bc6102d9366004612324565b61081d565b3480156102ea57600080fd5b506102bc6102f93660046123ba565b610874565b34801561030a57600080fd5b506102bc610319366004612435565b610981565b34801561032a57600080fd5b506102bc610a29565b34801561033f57600080fd5b5061035361034e366004612488565b610a86565b6040516101ca919061258d565b34801561036c57600080fd5b506101f361037b3660046120d1565b600090815260036020526040902054151590565b34801561039b57600080fd5b506103af6103aa3660046120d1565b610baf565b6040516101ca9594939291906125a0565b3480156103cc57600080fd5b506102bc610ca1565b3480156103e157600080fd5b506101f36103f036600461261b565b610cd7565b34801561040157600080fd5b506004546001600160a01b0316610284565b34801561041f57600080fd5b506102376040518060400160405280600381526020016204452560ec1b81525081565b34801561044e57600080fd5b506102bc61045d3660046126a4565b610d45565b34801561046e57600080fd5b506101c061047d3660046120d1565b60009081526003602052604090205490565b34801561049b57600080fd5b50610237610e1c565b3480156104b057600080fd5b506102bc6104bf3660046126d7565b610eaa565b3480156104d057600080fd5b506101f36104df3660046126f2565b610fd2565b3480156104f057600080fd5b506102bc6104ff366004612435565b6110b8565b6102bc61051236600461272e565b611167565b34801561052357600080fd5b506101f3610532366004612782565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561056c57600080fd5b506102bc61057b3660046127ac565b6113fc565b34801561058c57600080fd5b506102bc61059b366004612810565b611483565b60006001600160a01b0383166106115760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061066857506001600160e01b031982166303a24d0760e21b145b8061068357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000818152600360205260409020546060906106d95760405162461bcd60e51b815260206004820152600f60248201526e2737b71032bc34b9ba103a37b5b2b760891b6044820152606401610608565b60058260ff16600881106106ef576106ef61282b565b60050201600101805461070190612841565b80601f016020809104026020016040519081016040528092919081815260200182805461072d90612841565b801561077a5780601f1061074f5761010080835404028352916020019161077a565b820191906000526020600020905b81548152906001019060200180831161075d57829003601f168201915b50505050509050919050565b6001600160a01b0385163314806107a257506107a28533610532565b6108095760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610608565b6108168585858585611716565b5050505050565b6004546001600160a01b031633146108475760405162461bcd60e51b81526004016106089061287c565b602e80546001600160a01b0319166001600160a01b03851617905561086e602d8383611f50565b50505050565b6004546001600160a01b0316331461089e5760405162461bcd60e51b81526004016106089061287c565b8281146108de5760405162461bcd60e51b815260206004820152600e60248201526d092dce0eae840dad2e6dac2e8c6d60931b6044820152606401610608565b60005b83811015610816578282828181106108fb576108fb61282b565b905060200281019061090d91906128b1565b60058787858181106109215761092161282b565b905060200201602081019061093691906126d7565b6007811115610947576109476128f7565b60ff166008811061095a5761095a61282b565b60050201600101919061096e929190611f50565b508061097981612923565b9150506108e1565b6004546001600160a01b031633146109ab5760405162461bcd60e51b81526004016106089061287c565b60005b8281101561086e578160058585848181106109cb576109cb61282b565b90506020020160208101906109e091906126d7565b60078111156109f1576109f16128f7565b60ff1660088110610a0457610a0461282b565b60050201805460ff191691151591909117905580610a2181612923565b9150506109ae565b6004546001600160a01b03163314610a535760405162461bcd60e51b81526004016106089061287c565b6040514790339082156108fc029083906000818181858888f19350505050158015610a82573d6000803e3d6000fd5b5050565b60608151835114610aeb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610608565b600083516001600160401b03811115610b0657610b066120ea565b604051908082528060200260200182016040528015610b2f578160200160208202803683370190505b50905060005b8451811015610ba757610b7a858281518110610b5357610b5361282b565b6020026020010151858381518110610b6d57610b6d61282b565b60200260200101516105a0565b828281518110610b8c57610b8c61282b565b6020908102919091010152610ba081612923565b9050610b35565b509392505050565b60058160088110610bbf57600080fd5b60050201805460018201805460ff808416955061010084048116946201000090940416929190610bee90612841565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1a90612841565b8015610c675780601f10610c3c57610100808354040283529160200191610c67565b820191906000526020600020905b815481529060010190602001808311610c4a57829003601f168201915b505060408051606081018252600287015461ffff808216835262010000909104166020820152600390960154908601525091929150869050565b6004546001600160a01b03163314610ccb5760405162461bcd60e51b81526004016106089061287c565b610cd560006118f9565b565b600080866007811115610cec57610cec6128f7565b9050610d3a8187878787602f8760ff1660088110610d0c57610d0c61282b565b600491828204019190066008029054906101000a90048015611fd402176001600160401b031663ffffffff16565b979650505050505050565b336001600160a01b0383161415610db05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610608565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b602d8054610e2990612841565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5590612841565b8015610ea25780601f10610e7757610100808354040283529160200191610ea2565b820191906000526020600020905b815481529060010190602001808311610e8557829003601f168201915b505050505081565b6004546001600160a01b03163314610ed45760405162461bcd60e51b81526004016106089061287c565b6000816007811115610ee857610ee86128f7565b905060058160ff1660088110610f0057610f0061282b565b600502015462010000900460ff1615610f4d5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610608565b610f9a3360ff831660058160088110610f6857610f6861282b565b6005020160020160000160029054906101000a900461ffff1661ffff166040518060200160405280600081525061194b565b600160058260ff1660088110610fb257610fb261282b565b600502018054911515620100000262ff0000199092169190911790555050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050600080600061103086611980565b602e546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015611098573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6004546001600160a01b031633146110e25760405162461bcd60e51b81526004016106089061287c565b60005b8281101561086e578160058585848181106111025761110261282b565b905060200201602081019061111791906126d7565b6007811115611128576111286128f7565b60ff166008811061113b5761113b61282b565b6005020180549115156101000261ff00199092169190911790558061115f81612923565b9150506110e5565b600084600781111561117b5761117b6128f7565b90506001600560ff8316600881106111955761119561282b565b6005020154610100900460ff166111e05760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610608565b32331461121d5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610608565b61126186863387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250610cd7915050565b61129c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610608565b60ff821660008181526003602052604090205490600590600881106112c3576112c361282b565b600502016002015461ffff16116113095760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610608565b60058260ff166008811061131f5761131f61282b565b60050201600201600101543410156113715760405162461bcd60e51b8152602060048201526015602482015274115d1a195c881d985b1d59481a5b98dbdc9c9958dd605a1b6044820152606401610608565b8060ff1660058360ff166008811061138b5761138b61282b565b336000908152600460059290920292909201016020526040812080549091906113b990849061ffff1661293e565b92506101000a81548161ffff021916908361ffff1602179055506113f4338360ff168360ff166040518060200160405280600081525061194b565b505050505050565b6001600160a01b03851633148061141857506114188533610532565b6114765760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610608565b61081685858585856119f2565b6004546001600160a01b031633146114ad5760405162461bcd60e51b81526004016106089061287c565b6001600160a01b0381166115125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610608565b61151b816118f9565b50565b600080602d8787336040516020016115399493929190612964565b60405160208183030381529060405280519060200120905061155b8185610fd2565b8015610d3a57508561ffff168360ff1660058960ff16600881106115815761158161282b565b6001600160a01b03891660009081526004600592909202929092010160205260409020546115b3919061ffff1661293e565b61ffff161115979650505050505050565b604051627eeac760e11b81526001600160a01b038416600482015260006024820181905290819073b09e99f8bfc11f6c311e7d63efc42f26c51017a69062fdd58e9060440160206040518083038186803b15801561162157600080fd5b505afa158015611635573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116599190612a51565b604051627eeac760e11b81526001600160a01b03871660048201526000602482015273c46077aae8f87b10be3a1fe8e4e69ee135ec67599062fdd58e9060440160206040518083038186803b1580156116b157600080fd5b505afa1580156116c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e99190612a51565b6116f39190612a6a565b9050611702858860ff166105a0565b158015610d3a575015159695505050505050565b81518351146117785760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610608565b6001600160a01b03841661179e5760405162461bcd60e51b815260040161060890612a82565b336117ad818787878787611b1e565b60005b84518110156118935760008582815181106117cd576117cd61282b565b6020026020010151905060008583815181106117eb576117eb61282b565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561183b5760405162461bcd60e51b815260040161060890612ac7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611878908490612a6a565b925050819055505050508061188c90612923565b90506117b0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516118e3929190612b11565b60405180910390a46113f4818787878787611bcf565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61195784848484611d3a565b60008381526003602052604081208054849290611975908490612a6a565b909155505050505050565b600080600083516041146119d65760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610608565b5050506020810151604082015160609092015160001a92909190565b6001600160a01b038416611a185760405162461bcd60e51b815260040161060890612a82565b33611a37818787611a2888611e3b565b611a3188611e3b565b87611b1e565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611a785760405162461bcd60e51b815260040161060890612ac7565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611ab5908490612a6a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611b15828888888888611e86565b50505050505050565b60005b8351811015611b15576000848281518110611b3e57611b3e61282b565b6020026020010151905060006001600160a01b0316876001600160a01b03161480611b81575060058160088110611b7757611b7761282b565b600502015460ff16155b611bbc5760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881c185d5cd95960a21b6044820152606401610608565b5080611bc781612923565b915050611b21565b6001600160a01b0384163b156113f45760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611c139089908990889088908890600401612b3f565b602060405180830381600087803b158015611c2d57600080fd5b505af1925050508015611c5d575060408051601f3d908101601f19168201909252611c5a91810190612b9d565b60015b611d0a57611c69612bba565b806308c379a01415611ca35750611c7e612bd6565b80611c895750611ca5565b8060405162461bcd60e51b815260040161060891906120be565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610608565b6001600160e01b0319811663bc197c8160e01b14611b155760405162461bcd60e51b815260040161060890612c5f565b6001600160a01b038416611d9a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610608565b33611dab81600087611a2888611e3b565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611ddb908490612a6a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461081681600087878787611e86565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e7557611e7561282b565b602090810291909101015292915050565b6001600160a01b0384163b156113f45760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611eca9089908990889088908890600401612ca7565b602060405180830381600087803b158015611ee457600080fd5b505af1925050508015611f14575060408051601f3d908101601f19168201909252611f1191810190612b9d565b60015b611f2057611c69612bba565b6001600160e01b0319811663f23a6e6160e01b14611b155760405162461bcd60e51b815260040161060890612c5f565b828054611f5c90612841565b90600052602060002090601f016020900481019282611f7e5760008555611fc4565b82601f10611f975782800160ff19823516178555611fc4565b82800160010185558215611fc4579182015b82811115611fc4578235825591602001919060010190611fa9565b50611fd0929150611fdc565b5090565b610cd5612ce1565b5b80821115611fd05760008155600101611fdd565b80356001600160a01b038116811461200857600080fd5b919050565b6000806040838503121561202057600080fd5b61202983611ff1565b946020939093013593505050565b6001600160e01b03198116811461151b57600080fd5b60006020828403121561205f57600080fd5b813561206a81612037565b9392505050565b6000815180845260005b818110156120975760208185018101518683018201520161207b565b818111156120a9576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061206a6020830184612071565b6000602082840312156120e357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612125576121256120ea565b6040525050565b60006001600160401b03821115612145576121456120ea565b5060051b60200190565b600082601f83011261216057600080fd5b8135602061216d8261212c565b60405161217a8282612100565b83815260059390931b850182019282810191508684111561219a57600080fd5b8286015b848110156121b5578035835291830191830161219e565b509695505050505050565b600082601f8301126121d157600080fd5b81356001600160401b038111156121ea576121ea6120ea565b604051612201601f8301601f191660200182612100565b81815284602083860101111561221657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561224b57600080fd5b61225486611ff1565b945061226260208701611ff1565b935060408601356001600160401b038082111561227e57600080fd5b61228a89838a0161214f565b945060608801359150808211156122a057600080fd5b6122ac89838a0161214f565b935060808801359150808211156122c257600080fd5b506122cf888289016121c0565b9150509295509295909350565b60008083601f8401126122ee57600080fd5b5081356001600160401b0381111561230557600080fd5b60208301915083602082850101111561231d57600080fd5b9250929050565b60008060006040848603121561233957600080fd5b61234284611ff1565b925060208401356001600160401b0381111561235d57600080fd5b612369868287016122dc565b9497909650939450505050565b60008083601f84011261238857600080fd5b5081356001600160401b0381111561239f57600080fd5b6020830191508360208260051b850101111561231d57600080fd5b600080600080604085870312156123d057600080fd5b84356001600160401b03808211156123e757600080fd5b6123f388838901612376565b9096509450602087013591508082111561240c57600080fd5b5061241987828801612376565b95989497509550505050565b8035801515811461200857600080fd5b60008060006040848603121561244a57600080fd5b83356001600160401b0381111561246057600080fd5b61246c86828701612376565b909450925061247f905060208501612425565b90509250925092565b6000806040838503121561249b57600080fd5b82356001600160401b03808211156124b257600080fd5b818501915085601f8301126124c657600080fd5b813560206124d38261212c565b6040516124e08282612100565b83815260059390931b850182019282810191508984111561250057600080fd5b948201945b838610156125255761251686611ff1565b82529482019490820190612505565b9650508601359250508082111561253b57600080fd5b506125488582860161214f565b9150509250929050565b600081518084526020808501945080840160005b8381101561258257815187529582019590820190600101612566565b509495945050505050565b60208152600061206a6020830184612552565b85151581528415156020820152831515604082015260e0606082015260006125cb60e0830185612071565b905061ffff8084511660808401528060208501511660a084015250604083015160c08301529695505050505050565b80356008811061200857600080fd5b803561ffff8116811461200857600080fd5b600080600080600060a0868803121561263357600080fd5b61263c866125fa565b945061264a60208701612609565b935061265860408701611ff1565b925060608601356001600160401b0381111561267357600080fd5b61267f888289016121c0565b925050608086013560ff8116811461269657600080fd5b809150509295509295909350565b600080604083850312156126b757600080fd5b6126c083611ff1565b91506126ce60208401612425565b90509250929050565b6000602082840312156126e957600080fd5b61206a826125fa565b6000806040838503121561270557600080fd5b8235915060208301356001600160401b0381111561272257600080fd5b612548858286016121c0565b6000806000806060858703121561274457600080fd5b61274d856125fa565b935061275b60208601612609565b925060408501356001600160401b0381111561277657600080fd5b612419878288016122dc565b6000806040838503121561279557600080fd5b61279e83611ff1565b91506126ce60208401611ff1565b600080600080600060a086880312156127c457600080fd5b6127cd86611ff1565b94506127db60208701611ff1565b9350604086013592506060860135915060808601356001600160401b0381111561280457600080fd5b6122cf888289016121c0565b60006020828403121561282257600080fd5b61206a82611ff1565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061285557607f821691505b6020821081141561287657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000808335601e198436030181126128c857600080fd5b8301803591506001600160401b038211156128e257600080fd5b60200191503681900382131561231d57600080fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156129375761293761290d565b5060010190565b600061ffff80831681851680830382111561295b5761295b61290d565b01949350505050565b600080865481600182811c91508083168061298057607f831692505b60208084108214156129a057634e487b7160e01b86526022600452602486fd5b8180156129b457600181146129c5576129f2565b60ff198616895284890196506129f2565b60008d81526020902060005b868110156129ea5781548b8201529085019083016129d1565b505084890196505b505050612a0b848a60f81b6001600160f81b0319169052565b612a238185018960f01b6001600160f01b0319169052565b505050612a44600382018560601b6bffffffffffffffffffffffff19169052565b6017019695505050505050565b600060208284031215612a6357600080fd5b5051919050565b60008219821115612a7d57612a7d61290d565b500190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612b246040830185612552565b8281036020840152612b368185612552565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612b6b90830186612552565b8281036060840152612b7d8186612552565b90508281036080840152612b918185612071565b98975050505050505050565b600060208284031215612baf57600080fd5b815161206a81612037565b600060033d1115612bd35760046000803e5060005160e01c5b90565b600060443d1015612be45790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612c1357505050505090565b8285019150815181811115612c2b5750505050505090565b843d8701016020828501011115612c455750505050505090565b612c5460208286010187612100565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610d3a90830184612071565b634e487b7160e01b600052605160045260246000fdfea2646970667358221220ad74488f9f528d50ad6fa267111bc876e916113422ed211ae3eb42df64c98ed464736f6c63430008090033697066733a2f2f516d56675745454675634145574277764c64757256737278637765576f45544468474777727558456f5231544333697066733a2f2f516d617254316e41335274335578325667433235336d4770746e4e444d55763747686472784e69746f725051545a697066733a2f2f516d665a37766944575735347a696a7a556461384e334a784550437069757159474878613469713634436e644654697066733a2f2f516d5a793370434e7a4a724551696d71563444556a536d4c4e4b7a717445334b4638666e784a37665577596d5147697066733a2f2f516d5258567857506852357774737554734d487a507667384c4c635275666a6962557a44727a7a4d7468374e7a7a697066733a2f2f516d5672346d313544434d674659336e6b34546172466a625a61626132476b6e6934564763394563626432435041697066733a2f2f516d634439715543787971455465563464324e6d6378525765416f484c613250426a4b47444d4632573970396f4e697066733a2f2f516d566636646d314d6f69575a4c743239554762535a61487931676d374c4354696859644e784e466636574e5032
Deployed Bytecode
0x60806040526004361061019b5760003560e01c8063715018a6116100ec578063d8a9a0c11161008a578063e96c4a8d11610064578063e96c4a8d14610504578063e985e9c514610517578063f242432a14610560578063f2fde38b1461058057600080fd5b8063d8a9a0c1146104a4578063dd93f3d4146104c4578063e89d8887146104e457600080fd5b806395d89b41116100c657806395d89b4114610413578063a22cb46514610442578063bd85b03914610462578063d404ea231461048f57600080fd5b8063715018a6146103c0578063724c639e146103d55780638da5cb5b146103f557600080fd5b806336ae9143116101595780633ccfd60b116101335780633ccfd60b1461031e5780634e1273f4146103335780634f558e79146103605780634f64b2be1461038f57600080fd5b806336ae9143146102be5780633894f8d4146102de5780633c3d5792146102fe57600080fd5b8062fdd58e146101a057806301ffc9a7146101d357806306fdde03146102035780630e89341c14610244578063238ac933146102645780632eb2c2d61461029c575b600080fd5b3480156101ac57600080fd5b506101c06101bb36600461200d565b6105a0565b6040519081526020015b60405180910390f35b3480156101df57600080fd5b506101f36101ee36600461204d565b610637565b60405190151581526020016101ca565b34801561020f57600080fd5b50610237604051806040016040528060088152602001672229282a37b5b2b760c11b81525081565b6040516101ca91906120be565b34801561025057600080fd5b5061023761025f3660046120d1565b610689565b34801561027057600080fd5b50602e54610284906001600160a01b031681565b6040516001600160a01b0390911681526020016101ca565b3480156102a857600080fd5b506102bc6102b7366004612233565b610786565b005b3480156102ca57600080fd5b506102bc6102d9366004612324565b61081d565b3480156102ea57600080fd5b506102bc6102f93660046123ba565b610874565b34801561030a57600080fd5b506102bc610319366004612435565b610981565b34801561032a57600080fd5b506102bc610a29565b34801561033f57600080fd5b5061035361034e366004612488565b610a86565b6040516101ca919061258d565b34801561036c57600080fd5b506101f361037b3660046120d1565b600090815260036020526040902054151590565b34801561039b57600080fd5b506103af6103aa3660046120d1565b610baf565b6040516101ca9594939291906125a0565b3480156103cc57600080fd5b506102bc610ca1565b3480156103e157600080fd5b506101f36103f036600461261b565b610cd7565b34801561040157600080fd5b506004546001600160a01b0316610284565b34801561041f57600080fd5b506102376040518060400160405280600381526020016204452560ec1b81525081565b34801561044e57600080fd5b506102bc61045d3660046126a4565b610d45565b34801561046e57600080fd5b506101c061047d3660046120d1565b60009081526003602052604090205490565b34801561049b57600080fd5b50610237610e1c565b3480156104b057600080fd5b506102bc6104bf3660046126d7565b610eaa565b3480156104d057600080fd5b506101f36104df3660046126f2565b610fd2565b3480156104f057600080fd5b506102bc6104ff366004612435565b6110b8565b6102bc61051236600461272e565b611167565b34801561052357600080fd5b506101f3610532366004612782565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561056c57600080fd5b506102bc61057b3660046127ac565b6113fc565b34801561058c57600080fd5b506102bc61059b366004612810565b611483565b60006001600160a01b0383166106115760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061066857506001600160e01b031982166303a24d0760e21b145b8061068357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000818152600360205260409020546060906106d95760405162461bcd60e51b815260206004820152600f60248201526e2737b71032bc34b9ba103a37b5b2b760891b6044820152606401610608565b60058260ff16600881106106ef576106ef61282b565b60050201600101805461070190612841565b80601f016020809104026020016040519081016040528092919081815260200182805461072d90612841565b801561077a5780601f1061074f5761010080835404028352916020019161077a565b820191906000526020600020905b81548152906001019060200180831161075d57829003601f168201915b50505050509050919050565b6001600160a01b0385163314806107a257506107a28533610532565b6108095760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610608565b6108168585858585611716565b5050505050565b6004546001600160a01b031633146108475760405162461bcd60e51b81526004016106089061287c565b602e80546001600160a01b0319166001600160a01b03851617905561086e602d8383611f50565b50505050565b6004546001600160a01b0316331461089e5760405162461bcd60e51b81526004016106089061287c565b8281146108de5760405162461bcd60e51b815260206004820152600e60248201526d092dce0eae840dad2e6dac2e8c6d60931b6044820152606401610608565b60005b83811015610816578282828181106108fb576108fb61282b565b905060200281019061090d91906128b1565b60058787858181106109215761092161282b565b905060200201602081019061093691906126d7565b6007811115610947576109476128f7565b60ff166008811061095a5761095a61282b565b60050201600101919061096e929190611f50565b508061097981612923565b9150506108e1565b6004546001600160a01b031633146109ab5760405162461bcd60e51b81526004016106089061287c565b60005b8281101561086e578160058585848181106109cb576109cb61282b565b90506020020160208101906109e091906126d7565b60078111156109f1576109f16128f7565b60ff1660088110610a0457610a0461282b565b60050201805460ff191691151591909117905580610a2181612923565b9150506109ae565b6004546001600160a01b03163314610a535760405162461bcd60e51b81526004016106089061287c565b6040514790339082156108fc029083906000818181858888f19350505050158015610a82573d6000803e3d6000fd5b5050565b60608151835114610aeb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610608565b600083516001600160401b03811115610b0657610b066120ea565b604051908082528060200260200182016040528015610b2f578160200160208202803683370190505b50905060005b8451811015610ba757610b7a858281518110610b5357610b5361282b565b6020026020010151858381518110610b6d57610b6d61282b565b60200260200101516105a0565b828281518110610b8c57610b8c61282b565b6020908102919091010152610ba081612923565b9050610b35565b509392505050565b60058160088110610bbf57600080fd5b60050201805460018201805460ff808416955061010084048116946201000090940416929190610bee90612841565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1a90612841565b8015610c675780601f10610c3c57610100808354040283529160200191610c67565b820191906000526020600020905b815481529060010190602001808311610c4a57829003601f168201915b505060408051606081018252600287015461ffff808216835262010000909104166020820152600390960154908601525091929150869050565b6004546001600160a01b03163314610ccb5760405162461bcd60e51b81526004016106089061287c565b610cd560006118f9565b565b600080866007811115610cec57610cec6128f7565b9050610d3a8187878787602f8760ff1660088110610d0c57610d0c61282b565b600491828204019190066008029054906101000a90048015611fd402176001600160401b031663ffffffff16565b979650505050505050565b336001600160a01b0383161415610db05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610608565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b602d8054610e2990612841565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5590612841565b8015610ea25780601f10610e7757610100808354040283529160200191610ea2565b820191906000526020600020905b815481529060010190602001808311610e8557829003601f168201915b505050505081565b6004546001600160a01b03163314610ed45760405162461bcd60e51b81526004016106089061287c565b6000816007811115610ee857610ee86128f7565b905060058160ff1660088110610f0057610f0061282b565b600502015462010000900460ff1615610f4d5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610608565b610f9a3360ff831660058160088110610f6857610f6861282b565b6005020160020160000160029054906101000a900461ffff1661ffff166040518060200160405280600081525061194b565b600160058260ff1660088110610fb257610fb261282b565b600502018054911515620100000262ff0000199092169190911790555050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050600080600061103086611980565b602e546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015611098573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6004546001600160a01b031633146110e25760405162461bcd60e51b81526004016106089061287c565b60005b8281101561086e578160058585848181106111025761110261282b565b905060200201602081019061111791906126d7565b6007811115611128576111286128f7565b60ff166008811061113b5761113b61282b565b6005020180549115156101000261ff00199092169190911790558061115f81612923565b9150506110e5565b600084600781111561117b5761117b6128f7565b90506001600560ff8316600881106111955761119561282b565b6005020154610100900460ff166111e05760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610608565b32331461121d5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610608565b61126186863387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250610cd7915050565b61129c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610608565b60ff821660008181526003602052604090205490600590600881106112c3576112c361282b565b600502016002015461ffff16116113095760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610608565b60058260ff166008811061131f5761131f61282b565b60050201600201600101543410156113715760405162461bcd60e51b8152602060048201526015602482015274115d1a195c881d985b1d59481a5b98dbdc9c9958dd605a1b6044820152606401610608565b8060ff1660058360ff166008811061138b5761138b61282b565b336000908152600460059290920292909201016020526040812080549091906113b990849061ffff1661293e565b92506101000a81548161ffff021916908361ffff1602179055506113f4338360ff168360ff166040518060200160405280600081525061194b565b505050505050565b6001600160a01b03851633148061141857506114188533610532565b6114765760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610608565b61081685858585856119f2565b6004546001600160a01b031633146114ad5760405162461bcd60e51b81526004016106089061287c565b6001600160a01b0381166115125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610608565b61151b816118f9565b50565b600080602d8787336040516020016115399493929190612964565b60405160208183030381529060405280519060200120905061155b8185610fd2565b8015610d3a57508561ffff168360ff1660058960ff16600881106115815761158161282b565b6001600160a01b03891660009081526004600592909202929092010160205260409020546115b3919061ffff1661293e565b61ffff161115979650505050505050565b604051627eeac760e11b81526001600160a01b038416600482015260006024820181905290819073b09e99f8bfc11f6c311e7d63efc42f26c51017a69062fdd58e9060440160206040518083038186803b15801561162157600080fd5b505afa158015611635573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116599190612a51565b604051627eeac760e11b81526001600160a01b03871660048201526000602482015273c46077aae8f87b10be3a1fe8e4e69ee135ec67599062fdd58e9060440160206040518083038186803b1580156116b157600080fd5b505afa1580156116c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e99190612a51565b6116f39190612a6a565b9050611702858860ff166105a0565b158015610d3a575015159695505050505050565b81518351146117785760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610608565b6001600160a01b03841661179e5760405162461bcd60e51b815260040161060890612a82565b336117ad818787878787611b1e565b60005b84518110156118935760008582815181106117cd576117cd61282b565b6020026020010151905060008583815181106117eb576117eb61282b565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561183b5760405162461bcd60e51b815260040161060890612ac7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611878908490612a6a565b925050819055505050508061188c90612923565b90506117b0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516118e3929190612b11565b60405180910390a46113f4818787878787611bcf565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61195784848484611d3a565b60008381526003602052604081208054849290611975908490612a6a565b909155505050505050565b600080600083516041146119d65760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610608565b5050506020810151604082015160609092015160001a92909190565b6001600160a01b038416611a185760405162461bcd60e51b815260040161060890612a82565b33611a37818787611a2888611e3b565b611a3188611e3b565b87611b1e565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611a785760405162461bcd60e51b815260040161060890612ac7565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611ab5908490612a6a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611b15828888888888611e86565b50505050505050565b60005b8351811015611b15576000848281518110611b3e57611b3e61282b565b6020026020010151905060006001600160a01b0316876001600160a01b03161480611b81575060058160088110611b7757611b7761282b565b600502015460ff16155b611bbc5760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881c185d5cd95960a21b6044820152606401610608565b5080611bc781612923565b915050611b21565b6001600160a01b0384163b156113f45760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611c139089908990889088908890600401612b3f565b602060405180830381600087803b158015611c2d57600080fd5b505af1925050508015611c5d575060408051601f3d908101601f19168201909252611c5a91810190612b9d565b60015b611d0a57611c69612bba565b806308c379a01415611ca35750611c7e612bd6565b80611c895750611ca5565b8060405162461bcd60e51b815260040161060891906120be565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610608565b6001600160e01b0319811663bc197c8160e01b14611b155760405162461bcd60e51b815260040161060890612c5f565b6001600160a01b038416611d9a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610608565b33611dab81600087611a2888611e3b565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611ddb908490612a6a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461081681600087878787611e86565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e7557611e7561282b565b602090810291909101015292915050565b6001600160a01b0384163b156113f45760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611eca9089908990889088908890600401612ca7565b602060405180830381600087803b158015611ee457600080fd5b505af1925050508015611f14575060408051601f3d908101601f19168201909252611f1191810190612b9d565b60015b611f2057611c69612bba565b6001600160e01b0319811663f23a6e6160e01b14611b155760405162461bcd60e51b815260040161060890612c5f565b828054611f5c90612841565b90600052602060002090601f016020900481019282611f7e5760008555611fc4565b82601f10611f975782800160ff19823516178555611fc4565b82800160010185558215611fc4579182015b82811115611fc4578235825591602001919060010190611fa9565b50611fd0929150611fdc565b5090565b610cd5612ce1565b5b80821115611fd05760008155600101611fdd565b80356001600160a01b038116811461200857600080fd5b919050565b6000806040838503121561202057600080fd5b61202983611ff1565b946020939093013593505050565b6001600160e01b03198116811461151b57600080fd5b60006020828403121561205f57600080fd5b813561206a81612037565b9392505050565b6000815180845260005b818110156120975760208185018101518683018201520161207b565b818111156120a9576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061206a6020830184612071565b6000602082840312156120e357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612125576121256120ea565b6040525050565b60006001600160401b03821115612145576121456120ea565b5060051b60200190565b600082601f83011261216057600080fd5b8135602061216d8261212c565b60405161217a8282612100565b83815260059390931b850182019282810191508684111561219a57600080fd5b8286015b848110156121b5578035835291830191830161219e565b509695505050505050565b600082601f8301126121d157600080fd5b81356001600160401b038111156121ea576121ea6120ea565b604051612201601f8301601f191660200182612100565b81815284602083860101111561221657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561224b57600080fd5b61225486611ff1565b945061226260208701611ff1565b935060408601356001600160401b038082111561227e57600080fd5b61228a89838a0161214f565b945060608801359150808211156122a057600080fd5b6122ac89838a0161214f565b935060808801359150808211156122c257600080fd5b506122cf888289016121c0565b9150509295509295909350565b60008083601f8401126122ee57600080fd5b5081356001600160401b0381111561230557600080fd5b60208301915083602082850101111561231d57600080fd5b9250929050565b60008060006040848603121561233957600080fd5b61234284611ff1565b925060208401356001600160401b0381111561235d57600080fd5b612369868287016122dc565b9497909650939450505050565b60008083601f84011261238857600080fd5b5081356001600160401b0381111561239f57600080fd5b6020830191508360208260051b850101111561231d57600080fd5b600080600080604085870312156123d057600080fd5b84356001600160401b03808211156123e757600080fd5b6123f388838901612376565b9096509450602087013591508082111561240c57600080fd5b5061241987828801612376565b95989497509550505050565b8035801515811461200857600080fd5b60008060006040848603121561244a57600080fd5b83356001600160401b0381111561246057600080fd5b61246c86828701612376565b909450925061247f905060208501612425565b90509250925092565b6000806040838503121561249b57600080fd5b82356001600160401b03808211156124b257600080fd5b818501915085601f8301126124c657600080fd5b813560206124d38261212c565b6040516124e08282612100565b83815260059390931b850182019282810191508984111561250057600080fd5b948201945b838610156125255761251686611ff1565b82529482019490820190612505565b9650508601359250508082111561253b57600080fd5b506125488582860161214f565b9150509250929050565b600081518084526020808501945080840160005b8381101561258257815187529582019590820190600101612566565b509495945050505050565b60208152600061206a6020830184612552565b85151581528415156020820152831515604082015260e0606082015260006125cb60e0830185612071565b905061ffff8084511660808401528060208501511660a084015250604083015160c08301529695505050505050565b80356008811061200857600080fd5b803561ffff8116811461200857600080fd5b600080600080600060a0868803121561263357600080fd5b61263c866125fa565b945061264a60208701612609565b935061265860408701611ff1565b925060608601356001600160401b0381111561267357600080fd5b61267f888289016121c0565b925050608086013560ff8116811461269657600080fd5b809150509295509295909350565b600080604083850312156126b757600080fd5b6126c083611ff1565b91506126ce60208401612425565b90509250929050565b6000602082840312156126e957600080fd5b61206a826125fa565b6000806040838503121561270557600080fd5b8235915060208301356001600160401b0381111561272257600080fd5b612548858286016121c0565b6000806000806060858703121561274457600080fd5b61274d856125fa565b935061275b60208601612609565b925060408501356001600160401b0381111561277657600080fd5b612419878288016122dc565b6000806040838503121561279557600080fd5b61279e83611ff1565b91506126ce60208401611ff1565b600080600080600060a086880312156127c457600080fd5b6127cd86611ff1565b94506127db60208701611ff1565b9350604086013592506060860135915060808601356001600160401b0381111561280457600080fd5b6122cf888289016121c0565b60006020828403121561282257600080fd5b61206a82611ff1565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061285557607f821691505b6020821081141561287657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000808335601e198436030181126128c857600080fd5b8301803591506001600160401b038211156128e257600080fd5b60200191503681900382131561231d57600080fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156129375761293761290d565b5060010190565b600061ffff80831681851680830382111561295b5761295b61290d565b01949350505050565b600080865481600182811c91508083168061298057607f831692505b60208084108214156129a057634e487b7160e01b86526022600452602486fd5b8180156129b457600181146129c5576129f2565b60ff198616895284890196506129f2565b60008d81526020902060005b868110156129ea5781548b8201529085019083016129d1565b505084890196505b505050612a0b848a60f81b6001600160f81b0319169052565b612a238185018960f01b6001600160f01b0319169052565b505050612a44600382018560601b6bffffffffffffffffffffffff19169052565b6017019695505050505050565b600060208284031215612a6357600080fd5b5051919050565b60008219821115612a7d57612a7d61290d565b500190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612b246040830185612552565b8281036020840152612b368185612552565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612b6b90830186612552565b8281036060840152612b7d8186612552565b90508281036080840152612b918185612071565b98975050505050505050565b600060208284031215612baf57600080fd5b815161206a81612037565b600060033d1115612bd35760046000803e5060005160e01c5b90565b600060443d1015612be45790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612c1357505050505090565b8285019150815181811115612c2b5750505050505090565b843d8701016020828501011115612c455750505050505090565b612c5460208286010187612100565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610d3a90830184612071565b634e487b7160e01b600052605160045260246000fdfea2646970667358221220ad74488f9f528d50ad6fa267111bc876e916113422ed211ae3eb42df64c98ed464736f6c63430008090033
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.