Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
0
Holders
9
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:
CircleGame
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /// @custom:security-contact [email protected] contract CircleGame is ERC1155, Ownable, ERC1155Burnable, ERC1155Supply { using SafeMath for uint256; //Circle Tiers: 0 = Orange, 1 = Green, 2 = Red, 3 = Blue, 4 = Purple, 5 = Pink //Tier Multipliers: 1x = Orange, 1.1x = Green, 1.2x = Red, 1.3x = Blue, 1.4x = Purple, 1.5x = Pink uint256 public startingMintPrice = 1000000000000000; //Mint price starts at 0.001 and addds 0.00001 every mint uint256 public GAME_END_TIMESTAMP; //Game ends 28 days after deployment bool gameHasEnded = false; uint256 public endingPotBalance; //total ending pot balance uint256 public endingClaimablePotBalance; //total ending pot balance * 90%, used in claiming formula uint256 public adjustedTokenTotal; //total supply of all circles when game ends, adjusted for tier multipliers bool ownerWithdraw = false; //makes sure that the owner can only withdraw the 10% for developers and donations once constructor() ERC1155("https://circlegame.s3.us-east-2.amazonaws.com/{id}.json") { GAME_END_TIMESTAMP = block.timestamp + 28 days; //set deadline to 28 days after deployment } function setURI(string memory newuri) public onlyOwner { _setURI(newuri); } /* Mint price starts at 0.001 ETH and goes up by 0.00001 every time one is minted. Auto upgrades tiers if >= 5 are minted */ function mint(address account, uint256 coinId, uint256 amount) public payable { require(gameHasEnded == false, "Game has ended"); require(coinId == 0, "ID must be 0. It will auto upgrade for you."); require(amount > 0, "numTokens <=0"); //Calculate total fee for minting according to formula uint256 currMintPrice = (amount - 1).mul(10000000000000).div(2).add(startingMintPrice); require(currMintPrice <= msg.value, "ETH value sent is not enough."); //Update mint price startingMintPrice = startingMintPrice.add((amount).mul(10000000000000)); uint256[] memory amounts = new uint[](6); //Auto upgrade to highest tier possible for (uint tier = 6; tier >= 1; tier--) { uint i = tier - 1; if (amount >= 5**i) { amounts[i] = amount.div(5**i); amount = amount.sub(amounts[i] * 5**i); _mint(account, i, amounts[i], ""); } } } function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public onlyOwner { _mintBatch(to, ids, amounts, data); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal override(ERC1155, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } //withdraw function for developer and donation funds at end of game (10% of pot balance); locked until deadline; only able to withdraw once function withdraw() public onlyOwner { require(ownerWithdraw == false); require(gameHasEnded == true); payable(msg.sender).transfer(endingPotBalance.div(10)); ownerWithdraw = true; } //ends the game; can be called by anyone after deadline; locks pot balance and calculates token total according to tier multipliers function endGame() public { require(block.timestamp >= GAME_END_TIMESTAMP, "Locked"); require(gameHasEnded == false); endingPotBalance = address(this).balance; endingClaimablePotBalance = endingPotBalance.div(10).mul(9); //90% of the pot balance is eligible to be claimed by players //Tier Multipliers: 1x = Orange, 1.1x = Green, 1.2x = Red, 1.3x = Blue, 1.4x = Purple, 1.5x = Pink adjustedTokenTotal = totalSupply(0) + ( totalSupply(1).mul(5).mul(11) + totalSupply(2).mul(25).mul(12) + totalSupply(3).mul(125).mul(13) + totalSupply(4).mul(625).mul(14) + totalSupply(5).mul(3125).mul(15) ).div(10); gameHasEnded = true; } /* Fully upgrades a player's balance to highest tiers possible. 5 of one tier = 1 of next tier */ function upgrade() public payable { require(gameHasEnded == false, "Game has ended"); uint256[] memory balances = new uint[](6); for (uint i = 0; i < 6; i++) { uint origBalance = balanceOf(msg.sender, i); balances[i] = balances[i].add(origBalance); if (i < 5 && balances[i] >= 5) { uint numNextTier = balances[i].div(5); balances[i + 1] = numNextTier; balances[i] = balances[i].sub(numNextTier.mul(5)); } if (origBalance > balances[i]) { _burn(msg.sender, i, origBalance - balances[i]); } else if (origBalance < balances[i]) { _mint(msg.sender, i, balances[i] - origBalance, ""); } } } /* Claim one's portion of the pot by burning their tokens. Higher the tier, more claimable %. */ function claimStake(uint[] memory numberOfTokens) public { require(gameHasEnded == true, "Game hasn't ended yet"); require(numberOfTokens.length == 6, "numberOfTokens length must == 6"); //Adjust tokens by tier multipliers, burn tokens, and payout reward //Tier Multipliers: 1x = Orange, 1.1x = Green, 1.2x = Red, 1.3x = Blue, 1.4x = Purple, 1.5x = Pink uint playerAdjustedTokens = 0; for (uint i = 0; i < 6; i++) { playerAdjustedTokens = playerAdjustedTokens.add(numberOfTokens[i].mul(5**i).mul(10 + i).div(10)); _burn(msg.sender, i, numberOfTokens[i]); } uint reward = playerAdjustedTokens.mul(endingClaimablePotBalance).div(adjustedTokenTotal); /* Burn tokens and payout reward */ payable(msg.sender).transfer(reward); } function getDetails(address account) public view returns (uint256[14] memory) { return [ address(this).balance, startingMintPrice, account != address(0) ? balanceOf(account, 0) : 0, account != address(0) ? balanceOf(account, 1) : 0, account != address(0) ? balanceOf(account, 2) : 0, account != address(0) ? balanceOf(account, 3) : 0, account != address(0) ? balanceOf(account, 4) : 0, account != address(0) ? balanceOf(account, 5) : 0, totalSupply(0), totalSupply(1), totalSupply(2), totalSupply(3), totalSupply(4), totalSupply(5) ]; } fallback() external payable {} receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) 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 { _setApprovalForAll(_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 `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, 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 `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, 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 from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); 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: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol) 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 whether 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-_beforeTokenTransfer}. */ 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); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"GAME_END_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adjustedTokenTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"numberOfTokens","type":"uint256[]"}],"name":"claimStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endingClaimablePotBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endingPotBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getDetails","outputs":[{"internalType":"uint256[14]","name":"","type":"uint256[14]"}],"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"coinId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"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":"mintBatch","outputs":[],"stateMutability":"nonpayable","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":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"upgrade","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405266038d7ea4c680006005556007805460ff19908116909155600b805490911690553480156200003257600080fd5b50604051806060016040528060378152602001620033776037913962000058816200007c565b50620000643362000095565b62000073426224ea006200018d565b600655620001ef565b805162000091906002906020840190620000e7565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000f590620001b2565b90600052602060002090601f01602090048101928262000119576000855562000164565b82601f106200013457805160ff191683800117855562000164565b8280016001018555821562000164579182015b828111156200016457825182559160200191906001019062000147565b506200017292915062000176565b5090565b5b8082111562000172576000815560010162000177565b60008219821115620001ad57634e487b7160e01b81526011600452602481fd5b500190565b600181811c90821680620001c757607f821691505b60208210811415620001e957634e487b7160e01b600052602260045260246000fd5b50919050565b61317880620001ff6000396000f3fe6080604052600436106101a25760003560e01c80636b20c454116100e0578063c1d8c02f11610084578063e985e9c511610061578063e985e9c5146104a1578063f242432a146104ea578063f2fde38b1461050a578063f5298aca1461052a57005b8063c1d8c02f1461046d578063cef78d4014610483578063d55ec6971461049957005b806384ea16e5116100bd57806384ea16e5146103d85780638da5cb5b146103f8578063a22cb46514610420578063bd85b0391461044057005b80636b20c4541461038e5780636cbc2ded146103ae578063715018a6146103c357005b80632eb2c2d6116101475780633ccfd60b116101245780633ccfd60b146103075780634e1273f41461031c5780634f558e7914610349578063503de8f51461037857005b80632eb2c2d6146102a457806330289c61146102c457806336757fd8146102f157005b80630556874811610180578063055687481461022e5780630e89341c14610244578063156e29f6146102715780631f7fdffa1461028457005b8062fdd58e146101ab57806301ffc9a7146101de57806302fe53051461020e57005b366101a957005b005b3480156101b757600080fd5b506101cb6101c636600461283d565b61054a565b6040519081526020015b60405180910390f35b3480156101ea57600080fd5b506101fe6101f936600461299e565b6105e4565b60405190151581526020016101d5565b34801561021a57600080fd5b506101a96102293660046129d6565b610634565b34801561023a57600080fd5b506101cb60085481565b34801561025057600080fd5b5061026461025f366004612a1c565b61066a565b6040516101d59190612bcf565b6101a961027f366004612866565b6106fe565b34801561029057600080fd5b506101a961029f36600461276e565b6109bf565b3480156102b057600080fd5b506101a96102bf3660046125f4565b6109fb565b3480156102d057600080fd5b506102e46102df3660046125a8565b610a92565b6040516101d59190612b5c565b3480156102fd57600080fd5b506101cb60065481565b34801561031357600080fd5b506101a9610c8c565b34801561032857600080fd5b5061033c610337366004612898565b610d26565b6040516101d59190612b8e565b34801561035557600080fd5b506101fe610364366004612a1c565b600090815260046020526040902054151590565b34801561038457600080fd5b506101cb600a5481565b34801561039a57600080fd5b506101a96103a93660046126fd565b610e88565b3480156103ba57600080fd5b506101a9610ed0565b3480156103cf57600080fd5b506101a96110a3565b3480156103e457600080fd5b506101a96103f3366004612963565b6110d9565b34801561040457600080fd5b506003546040516001600160a01b0390911681526020016101d5565b34801561042c57600080fd5b506101a961043b366004612803565b61127a565b34801561044c57600080fd5b506101cb61045b366004612a1c565b60009081526004602052604090205490565b34801561047957600080fd5b506101cb60095481565b34801561048f57600080fd5b506101cb60055481565b6101a9611289565b3480156104ad57600080fd5b506101fe6104bc3660046125c2565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156104f657600080fd5b506101a961050536600461269a565b611594565b34801561051657600080fd5b506101a96105253660046125a8565b6115d9565b34801561053657600080fd5b506101a9610545366004612866565b611671565b60006001600160a01b0383166105bb5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061061557506001600160e01b031982166303a24d0760e21b145b806105de57506301ffc9a760e01b6001600160e01b03198316146105de565b6003546001600160a01b0316331461065e5760405162461bcd60e51b81526004016105b290612d89565b610667816116b4565b50565b60606002805461067990612fdb565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590612fdb565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b50505050509050919050565b60075460ff16156107425760405162461bcd60e51b815260206004820152600e60248201526d11d85b59481a185cc8195b99195960921b60448201526064016105b2565b81156107a45760405162461bcd60e51b815260206004820152602b60248201527f4944206d75737420626520302e2049742077696c6c206175746f20757067726160448201526a3232903337b9103cb7ba9760a91b60648201526084016105b2565b600081116107e45760405162461bcd60e51b815260206004820152600d60248201526c06e756d546f6b656e73203c3d3609c1b60448201526064016105b2565b600061081a600554610814600261080e6509184e72a0006001886108089190612fad565b906116c7565b906116da565b906116e6565b90503481111561086c5760405162461bcd60e51b815260206004820152601d60248201527f4554482076616c75652073656e74206973206e6f7420656e6f7567682e00000060448201526064016105b2565b61088861087f836509184e72a0006116c7565b600554906116e6565b60055560408051600680825260e082019092526000916020820160c08036833701905050905060065b600181106109b75760006108c6600183612fad565b90506108d3816005612ee6565b85106109a4576108ee6108e7826005612ee6565b86906116da565b83828151811061090e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610960610927826005612ee6565b84838151811061094757634e487b7160e01b600052603260045260246000fd5b60200260200101516109599190612f8e565b86906116f2565b94506109a4878285848151811061098757634e487b7160e01b600052603260045260246000fd5b6020026020010151604051806020016040528060008152506116fe565b50806109af81612fc4565b9150506108b1565b505050505050565b6003546001600160a01b031633146109e95760405162461bcd60e51b81526004016105b290612d89565b6109f5848484846117d4565b50505050565b6001600160a01b038516331480610a175750610a1785336104bc565b610a7e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105b2565b610a8b858585858561194a565b5050505050565b610a9a6123e3565b604080516101c08101825247815260055460208201529081016001600160a01b038416610ac8576000610ad3565b610ad384600061054a565b81526020016001600160a01b038416610aed576000610af8565b610af884600161054a565b81526020016001600160a01b038416610b12576000610b1d565b610b1d84600261054a565b81526020016001600160a01b038416610b37576000610b42565b610b4284600361054a565b81526020016001600160a01b038416610b5c576000610b67565b610b6784600461054a565b81526020016001600160a01b038416610b81576000610b8c565b610b8c84600561054a565b81527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546020808301919091527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe055460408301527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a75460608301527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa05460808301527f1a1e6821cde7d0159c0d293177871e09677b4e42307c7db3ba94f8648a5a050f5460a08301526005600052600490527f04cde762ef08b6b6c5ded8e8c4c0b3f4e5c9ad7342c88fcc93681b4588b73f055460c09091015292915050565b6003546001600160a01b03163314610cb65760405162461bcd60e51b81526004016105b290612d89565b600b5460ff1615610cc657600080fd5b60075460ff161515600114610cda57600080fd5b60085433906108fc90610cee90600a6116da565b6040518115909202916000818181858888f19350505050158015610d16573d6000803e3d6000fd5b50600b805460ff19166001179055565b60608151835114610d8b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105b2565b6000835167ffffffffffffffff811115610db557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610dde578160200160208202803683370190505b50905060005b8451811015610e8057610e45858281518110610e1057634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e3857634e487b7160e01b600052603260045260246000fd5b602002602001015161054a565b828281518110610e6557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e7981613043565b9050610de4565b509392505050565b6001600160a01b038316331480610ea45750610ea483336104bc565b610ec05760405162461bcd60e51b81526004016105b290612c6e565b610ecb838383611b08565b505050565b600654421015610f0b5760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b60448201526064016105b2565b60075460ff1615610f1b57600080fd5b476008819055610f339060099061080890600a6116da565b60095561105c600a610f5b600f610808610c3581600560009081526004602052604090205490565b610f7d600e610808610271610808600460009081526004602052604090205490565b600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054610fba90600d9061080890607d9082565b600260005260046020527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a754610ff790600c906108089060199082565b600160005260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe055461103490600b906108089060059082565b61103e9190612e6b565b6110489190612e6b565b6110529190612e6b565b61080e9190612e6b565b6000805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546110919190612e6b565b600a556007805460ff19166001179055565b6003546001600160a01b031633146110cd5760405162461bcd60e51b81526004016105b290612d89565b6110d76000611cb2565b565b60075460ff1615156001146111285760405162461bcd60e51b815260206004820152601560248201527411d85b59481a185cdb89dd08195b991959081e595d605a1b60448201526064016105b2565b80516006146111795760405162461bcd60e51b815260206004820152601f60248201527f6e756d6265724f66546f6b656e73206c656e677468206d757374203d3d20360060448201526064016105b2565b6000805b600681101561122c576111e66111df600a61080e61119b8583612e6b565b6108086111a9876005612ee6565b8988815181106111c957634e487b7160e01b600052603260045260246000fd5b60200260200101516116c790919063ffffffff16565b83906116e6565b915061121a338285848151811061120d57634e487b7160e01b600052603260045260246000fd5b6020026020010151611d04565b8061122481613043565b91505061117d565b50600061124a600a5461080e600954856116c790919063ffffffff16565b604051909150339082156108fc029083906000818181858888f193505050501580156109f5573d6000803e3d6000fd5b611285338383611e05565b5050565b60075460ff16156112cd5760405162461bcd60e51b815260206004820152600e60248201526d11d85b59481a185cc8195b99195960921b60448201526064016105b2565b60408051600680825260e082019092526000916020820160c08036833701905050905060005b6006811015611285576000611308338361054a565b90506113448184848151811061132e57634e487b7160e01b600052603260045260246000fd5b60200260200101516116e690919063ffffffff16565b83838151811061136457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506005821080156113a85750600583838151811061139d57634e487b7160e01b600052603260045260246000fd5b602002602001015110155b156114945760006113ea60058585815181106113d457634e487b7160e01b600052603260045260246000fd5b60200260200101516116da90919063ffffffff16565b905080846113f9856001612e6b565b8151811061141757634e487b7160e01b600052603260045260246000fd5b60209081029190910101526114666114308260056116c7565b85858151811061145057634e487b7160e01b600052603260045260246000fd5b60200260200101516116f290919063ffffffff16565b84848151811061148657634e487b7160e01b600052603260045260246000fd5b602002602001018181525050505b8282815181106114b457634e487b7160e01b600052603260045260246000fd5b60200260200101518111156115055761150033838585815181106114e857634e487b7160e01b600052603260045260246000fd5b6020026020010151846114fb9190612fad565b611d04565b611581565b82828151811061152557634e487b7160e01b600052603260045260246000fd5b60200260200101518110156115815761158133838386868151811061155a57634e487b7160e01b600052603260045260246000fd5b602002602001015161156c9190612fad565b604051806020016040528060008152506116fe565b508061158c81613043565b9150506112f3565b6001600160a01b0385163314806115b057506115b085336104bc565b6115cc5760405162461bcd60e51b81526004016105b290612c6e565b610a8b8585858585611ee6565b6003546001600160a01b031633146116035760405162461bcd60e51b81526004016105b290612d89565b6001600160a01b0381166116685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b2565b61066781611cb2565b6001600160a01b03831633148061168d575061168d83336104bc565b6116a95760405162461bcd60e51b81526004016105b290612c6e565b610ecb838383611d04565b8051611285906002906020840190612402565b60006116d38284612f8e565b9392505050565b60006116d38284612e83565b60006116d38284612e6b565b60006116d38284612fad565b6001600160a01b0384166117245760405162461bcd60e51b81526004016105b290612e06565b336117448160008761173588612003565b61173e88612003565b8761205c565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611774908490612e6b565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a8b8160008787878761206a565b6001600160a01b0384166117fa5760405162461bcd60e51b81526004016105b290612e06565b815183511461181b5760405162461bcd60e51b81526004016105b290612dbe565b3361182b8160008787878761205c565b60005b84518110156118e25783818151811061185757634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061188257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546118ca9190612e6b565b909155508190506118da81613043565b91505061182e565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611933929190612ba1565b60405180910390a4610a8b816000878787876121d5565b815183511461196b5760405162461bcd60e51b81526004016105b290612dbe565b6001600160a01b0384166119915760405162461bcd60e51b81526004016105b290612cb7565b336119a081878787878761205c565b60005b8451811015611aa25760008582815181106119ce57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106119fa57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a4a5760405162461bcd60e51b81526004016105b290612d3f565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a87908490612e6b565b9250508190555050505080611a9b90613043565b90506119a3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611af2929190612ba1565b60405180910390a46109b78187878787876121d5565b6001600160a01b038316611b2e5760405162461bcd60e51b81526004016105b290612cfc565b8051825114611b4f5760405162461bcd60e51b81526004016105b290612dbe565b6000339050611b728185600086866040518060200160405280600081525061205c565b60005b8351811015611c53576000848281518110611ba057634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110611bcc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611c1c5760405162461bcd60e51b81526004016105b290612c2a565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611c4b81613043565b915050611b75565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611ca4929190612ba1565b60405180910390a450505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316611d2a5760405162461bcd60e51b81526004016105b290612cfc565b33611d5981856000611d3b87612003565b611d4487612003565b6040518060200160405280600081525061205c565b6000838152602081815260408083206001600160a01b038816845290915290205482811015611d9a5760405162461bcd60e51b81526004016105b290612c2a565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b816001600160a01b0316836001600160a01b03161415611e795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105b2565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611f0c5760405162461bcd60e51b81526004016105b290612cb7565b33611f1c81878761173588612003565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f5d5760405162461bcd60e51b81526004016105b290612d3f565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611f9a908490612e6b565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611ffa82888888888861206a565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061204b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6109b786868686868661229f565b6001600160a01b0384163b156109b75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120ae9089908990889088908890600401612b17565b602060405180830381600087803b1580156120c857600080fd5b505af19250505080156120f8575060408051601f3d908101601f191682019092526120f5918101906129ba565b60015b6121a55761210461308a565b806308c379a0141561213e57506121196130a2565b806121245750612140565b8060405162461bcd60e51b81526004016105b29190612bcf565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105b2565b6001600160e01b0319811663f23a6e6160e01b14611ffa5760405162461bcd60e51b81526004016105b290612be2565b6001600160a01b0384163b156109b75760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122199089908990889088908890600401612ab9565b602060405180830381600087803b15801561223357600080fd5b505af1925050508015612263575060408051601f3d908101601f19168201909252612260918101906129ba565b60015b61226f5761210461308a565b6001600160e01b0319811663bc197c8160e01b14611ffa5760405162461bcd60e51b81526004016105b290612be2565b6001600160a01b0385166123425760005b8351811015612340578281815181106122d957634e487b7160e01b600052603260045260246000fd5b60200260200101516004600086848151811061230557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461232a9190612e6b565b90915550612339905081613043565b90506122b0565b505b6001600160a01b0384166109b75760005b8351811015611ffa5782818151811061237c57634e487b7160e01b600052603260045260246000fd5b6020026020010151600460008684815181106123a857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546123cd9190612fad565b909155506123dc905081613043565b9050612353565b604051806101c00160405280600e906020820280368337509192915050565b82805461240e90612fdb565b90600052602060002090601f0160209004810192826124305760008555612476565b82601f1061244957805160ff1916838001178555612476565b82800160010185558215612476579182015b8281111561247657825182559160200191906001019061245b565b50612482929150612486565b5090565b5b808211156124825760008155600101612487565b600067ffffffffffffffff8311156124b5576124b5613074565b6040516124cc601f8501601f191660200182613016565b8091508381528484840111156124e157600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461251057600080fd5b919050565b600082601f830112612525578081fd5b8135602061253282612e47565b60405161253f8282613016565b8381528281019150858301600585901b8701840188101561255e578586fd5b855b8581101561257c57813584529284019290840190600101612560565b5090979650505050505050565b600082601f830112612599578081fd5b6116d38383356020850161249b565b6000602082840312156125b9578081fd5b6116d3826124f9565b600080604083850312156125d4578081fd5b6125dd836124f9565b91506125eb602084016124f9565b90509250929050565b600080600080600060a0868803121561260b578081fd5b612614866124f9565b9450612622602087016124f9565b9350604086013567ffffffffffffffff8082111561263e578283fd5b61264a89838a01612515565b9450606088013591508082111561265f578283fd5b61266b89838a01612515565b93506080880135915080821115612680578283fd5b5061268d88828901612589565b9150509295509295909350565b600080600080600060a086880312156126b1578081fd5b6126ba866124f9565b94506126c8602087016124f9565b93506040860135925060608601359150608086013567ffffffffffffffff8111156126f1578182fd5b61268d88828901612589565b600080600060608486031215612711578283fd5b61271a846124f9565b9250602084013567ffffffffffffffff80821115612736578384fd5b61274287838801612515565b93506040860135915080821115612757578283fd5b5061276486828701612515565b9150509250925092565b60008060008060808587031215612783578384fd5b61278c856124f9565b9350602085013567ffffffffffffffff808211156127a8578485fd5b6127b488838901612515565b945060408701359150808211156127c9578384fd5b6127d588838901612515565b935060608701359150808211156127ea578283fd5b506127f787828801612589565b91505092959194509250565b60008060408385031215612815578182fd5b61281e836124f9565b915060208301358015158114612832578182fd5b809150509250929050565b6000806040838503121561284f578182fd5b612858836124f9565b946020939093013593505050565b60008060006060848603121561287a578081fd5b612883846124f9565b95602085013595506040909401359392505050565b600080604083850312156128aa578182fd5b823567ffffffffffffffff808211156128c1578384fd5b818501915085601f8301126128d4578384fd5b813560206128e182612e47565b6040516128ee8282613016565b8381528281019150858301600585901b870184018b101561290d578889fd5b8896505b8487101561293657612922816124f9565b835260019690960195918301918301612911565b509650508601359250508082111561294c578283fd5b5061295985828601612515565b9150509250929050565b600060208284031215612974578081fd5b813567ffffffffffffffff81111561298a578182fd5b61299684828501612515565b949350505050565b6000602082840312156129af578081fd5b81356116d38161312c565b6000602082840312156129cb578081fd5b81516116d38161312c565b6000602082840312156129e7578081fd5b813567ffffffffffffffff8111156129fd578182fd5b8201601f81018413612a0d578182fd5b6129968482356020840161249b565b600060208284031215612a2d578081fd5b5035919050565b6000815180845260208085019450808401835b83811015612a6357815187529582019590820190600101612a47565b509495945050505050565b60008151808452815b81811015612a9357602081850181015186830182015201612a77565b81811115612aa45782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ae590830186612a34565b8281036060840152612af78186612a34565b90508281036080840152612b0b8185612a6e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612b5190830184612a6e565b979650505050505050565b6101c08101818360005b600e811015612b85578151835260209283019290910190600101612b66565b50505092915050565b6020815260006116d36020830184612a34565b604081526000612bb46040830185612a34565b8281036020840152612bc68185612a34565b95945050505050565b6020815260006116d36020830184612a6e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b600067ffffffffffffffff821115612e6157612e61613074565b5060051b60200190565b60008219821115612e7e57612e7e61305e565b500190565b600082612e9e57634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115612ede578160001904821115612ec457612ec461305e565b80851615612ed157918102915b93841c9390800290612ea8565b509250929050565b60006116d38383600082612efc575060016105de565b81612f09575060006105de565b8160018114612f1f5760028114612f2957612f45565b60019150506105de565b60ff841115612f3a57612f3a61305e565b50506001821b6105de565b5060208310610133831016604e8410600b8410161715612f68575081810a6105de565b612f728383612ea3565b8060001904821115612f8657612f8661305e565b029392505050565b6000816000190483118215151615612fa857612fa861305e565b500290565b600082821015612fbf57612fbf61305e565b500390565b600081612fd357612fd361305e565b506000190190565b600181811c90821680612fef57607f821691505b6020821081141561301057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff8111828210171561303c5761303c613074565b6040525050565b60006000198214156130575761305761305e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561309f57600481823e5160e01c5b90565b600060443d10156130b05790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156130e057505050505090565b82850191508151818111156130f85750505050505090565b843d87010160208285010111156131125750505050505090565b61312160208286010187613016565b509095945050505050565b6001600160e01b03198116811461066757600080fdfea2646970667358221220d76e8f69df8ea8d5b3c62c6a531ecde03b07a6dddf7eadcb3e24f9f2457e653464736f6c6343000804003368747470733a2f2f636972636c6567616d652e73332e75732d656173742d322e616d617a6f6e6177732e636f6d2f7b69647d2e6a736f6e
Deployed Bytecode
0x6080604052600436106101a25760003560e01c80636b20c454116100e0578063c1d8c02f11610084578063e985e9c511610061578063e985e9c5146104a1578063f242432a146104ea578063f2fde38b1461050a578063f5298aca1461052a57005b8063c1d8c02f1461046d578063cef78d4014610483578063d55ec6971461049957005b806384ea16e5116100bd57806384ea16e5146103d85780638da5cb5b146103f8578063a22cb46514610420578063bd85b0391461044057005b80636b20c4541461038e5780636cbc2ded146103ae578063715018a6146103c357005b80632eb2c2d6116101475780633ccfd60b116101245780633ccfd60b146103075780634e1273f41461031c5780634f558e7914610349578063503de8f51461037857005b80632eb2c2d6146102a457806330289c61146102c457806336757fd8146102f157005b80630556874811610180578063055687481461022e5780630e89341c14610244578063156e29f6146102715780631f7fdffa1461028457005b8062fdd58e146101ab57806301ffc9a7146101de57806302fe53051461020e57005b366101a957005b005b3480156101b757600080fd5b506101cb6101c636600461283d565b61054a565b6040519081526020015b60405180910390f35b3480156101ea57600080fd5b506101fe6101f936600461299e565b6105e4565b60405190151581526020016101d5565b34801561021a57600080fd5b506101a96102293660046129d6565b610634565b34801561023a57600080fd5b506101cb60085481565b34801561025057600080fd5b5061026461025f366004612a1c565b61066a565b6040516101d59190612bcf565b6101a961027f366004612866565b6106fe565b34801561029057600080fd5b506101a961029f36600461276e565b6109bf565b3480156102b057600080fd5b506101a96102bf3660046125f4565b6109fb565b3480156102d057600080fd5b506102e46102df3660046125a8565b610a92565b6040516101d59190612b5c565b3480156102fd57600080fd5b506101cb60065481565b34801561031357600080fd5b506101a9610c8c565b34801561032857600080fd5b5061033c610337366004612898565b610d26565b6040516101d59190612b8e565b34801561035557600080fd5b506101fe610364366004612a1c565b600090815260046020526040902054151590565b34801561038457600080fd5b506101cb600a5481565b34801561039a57600080fd5b506101a96103a93660046126fd565b610e88565b3480156103ba57600080fd5b506101a9610ed0565b3480156103cf57600080fd5b506101a96110a3565b3480156103e457600080fd5b506101a96103f3366004612963565b6110d9565b34801561040457600080fd5b506003546040516001600160a01b0390911681526020016101d5565b34801561042c57600080fd5b506101a961043b366004612803565b61127a565b34801561044c57600080fd5b506101cb61045b366004612a1c565b60009081526004602052604090205490565b34801561047957600080fd5b506101cb60095481565b34801561048f57600080fd5b506101cb60055481565b6101a9611289565b3480156104ad57600080fd5b506101fe6104bc3660046125c2565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156104f657600080fd5b506101a961050536600461269a565b611594565b34801561051657600080fd5b506101a96105253660046125a8565b6115d9565b34801561053657600080fd5b506101a9610545366004612866565b611671565b60006001600160a01b0383166105bb5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061061557506001600160e01b031982166303a24d0760e21b145b806105de57506301ffc9a760e01b6001600160e01b03198316146105de565b6003546001600160a01b0316331461065e5760405162461bcd60e51b81526004016105b290612d89565b610667816116b4565b50565b60606002805461067990612fdb565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590612fdb565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b50505050509050919050565b60075460ff16156107425760405162461bcd60e51b815260206004820152600e60248201526d11d85b59481a185cc8195b99195960921b60448201526064016105b2565b81156107a45760405162461bcd60e51b815260206004820152602b60248201527f4944206d75737420626520302e2049742077696c6c206175746f20757067726160448201526a3232903337b9103cb7ba9760a91b60648201526084016105b2565b600081116107e45760405162461bcd60e51b815260206004820152600d60248201526c06e756d546f6b656e73203c3d3609c1b60448201526064016105b2565b600061081a600554610814600261080e6509184e72a0006001886108089190612fad565b906116c7565b906116da565b906116e6565b90503481111561086c5760405162461bcd60e51b815260206004820152601d60248201527f4554482076616c75652073656e74206973206e6f7420656e6f7567682e00000060448201526064016105b2565b61088861087f836509184e72a0006116c7565b600554906116e6565b60055560408051600680825260e082019092526000916020820160c08036833701905050905060065b600181106109b75760006108c6600183612fad565b90506108d3816005612ee6565b85106109a4576108ee6108e7826005612ee6565b86906116da565b83828151811061090e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610960610927826005612ee6565b84838151811061094757634e487b7160e01b600052603260045260246000fd5b60200260200101516109599190612f8e565b86906116f2565b94506109a4878285848151811061098757634e487b7160e01b600052603260045260246000fd5b6020026020010151604051806020016040528060008152506116fe565b50806109af81612fc4565b9150506108b1565b505050505050565b6003546001600160a01b031633146109e95760405162461bcd60e51b81526004016105b290612d89565b6109f5848484846117d4565b50505050565b6001600160a01b038516331480610a175750610a1785336104bc565b610a7e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105b2565b610a8b858585858561194a565b5050505050565b610a9a6123e3565b604080516101c08101825247815260055460208201529081016001600160a01b038416610ac8576000610ad3565b610ad384600061054a565b81526020016001600160a01b038416610aed576000610af8565b610af884600161054a565b81526020016001600160a01b038416610b12576000610b1d565b610b1d84600261054a565b81526020016001600160a01b038416610b37576000610b42565b610b4284600361054a565b81526020016001600160a01b038416610b5c576000610b67565b610b6784600461054a565b81526020016001600160a01b038416610b81576000610b8c565b610b8c84600561054a565b81527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546020808301919091527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe055460408301527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a75460608301527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa05460808301527f1a1e6821cde7d0159c0d293177871e09677b4e42307c7db3ba94f8648a5a050f5460a08301526005600052600490527f04cde762ef08b6b6c5ded8e8c4c0b3f4e5c9ad7342c88fcc93681b4588b73f055460c09091015292915050565b6003546001600160a01b03163314610cb65760405162461bcd60e51b81526004016105b290612d89565b600b5460ff1615610cc657600080fd5b60075460ff161515600114610cda57600080fd5b60085433906108fc90610cee90600a6116da565b6040518115909202916000818181858888f19350505050158015610d16573d6000803e3d6000fd5b50600b805460ff19166001179055565b60608151835114610d8b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105b2565b6000835167ffffffffffffffff811115610db557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610dde578160200160208202803683370190505b50905060005b8451811015610e8057610e45858281518110610e1057634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e3857634e487b7160e01b600052603260045260246000fd5b602002602001015161054a565b828281518110610e6557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e7981613043565b9050610de4565b509392505050565b6001600160a01b038316331480610ea45750610ea483336104bc565b610ec05760405162461bcd60e51b81526004016105b290612c6e565b610ecb838383611b08565b505050565b600654421015610f0b5760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b60448201526064016105b2565b60075460ff1615610f1b57600080fd5b476008819055610f339060099061080890600a6116da565b60095561105c600a610f5b600f610808610c3581600560009081526004602052604090205490565b610f7d600e610808610271610808600460009081526004602052604090205490565b600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054610fba90600d9061080890607d9082565b600260005260046020527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a754610ff790600c906108089060199082565b600160005260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe055461103490600b906108089060059082565b61103e9190612e6b565b6110489190612e6b565b6110529190612e6b565b61080e9190612e6b565b6000805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546110919190612e6b565b600a556007805460ff19166001179055565b6003546001600160a01b031633146110cd5760405162461bcd60e51b81526004016105b290612d89565b6110d76000611cb2565b565b60075460ff1615156001146111285760405162461bcd60e51b815260206004820152601560248201527411d85b59481a185cdb89dd08195b991959081e595d605a1b60448201526064016105b2565b80516006146111795760405162461bcd60e51b815260206004820152601f60248201527f6e756d6265724f66546f6b656e73206c656e677468206d757374203d3d20360060448201526064016105b2565b6000805b600681101561122c576111e66111df600a61080e61119b8583612e6b565b6108086111a9876005612ee6565b8988815181106111c957634e487b7160e01b600052603260045260246000fd5b60200260200101516116c790919063ffffffff16565b83906116e6565b915061121a338285848151811061120d57634e487b7160e01b600052603260045260246000fd5b6020026020010151611d04565b8061122481613043565b91505061117d565b50600061124a600a5461080e600954856116c790919063ffffffff16565b604051909150339082156108fc029083906000818181858888f193505050501580156109f5573d6000803e3d6000fd5b611285338383611e05565b5050565b60075460ff16156112cd5760405162461bcd60e51b815260206004820152600e60248201526d11d85b59481a185cc8195b99195960921b60448201526064016105b2565b60408051600680825260e082019092526000916020820160c08036833701905050905060005b6006811015611285576000611308338361054a565b90506113448184848151811061132e57634e487b7160e01b600052603260045260246000fd5b60200260200101516116e690919063ffffffff16565b83838151811061136457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506005821080156113a85750600583838151811061139d57634e487b7160e01b600052603260045260246000fd5b602002602001015110155b156114945760006113ea60058585815181106113d457634e487b7160e01b600052603260045260246000fd5b60200260200101516116da90919063ffffffff16565b905080846113f9856001612e6b565b8151811061141757634e487b7160e01b600052603260045260246000fd5b60209081029190910101526114666114308260056116c7565b85858151811061145057634e487b7160e01b600052603260045260246000fd5b60200260200101516116f290919063ffffffff16565b84848151811061148657634e487b7160e01b600052603260045260246000fd5b602002602001018181525050505b8282815181106114b457634e487b7160e01b600052603260045260246000fd5b60200260200101518111156115055761150033838585815181106114e857634e487b7160e01b600052603260045260246000fd5b6020026020010151846114fb9190612fad565b611d04565b611581565b82828151811061152557634e487b7160e01b600052603260045260246000fd5b60200260200101518110156115815761158133838386868151811061155a57634e487b7160e01b600052603260045260246000fd5b602002602001015161156c9190612fad565b604051806020016040528060008152506116fe565b508061158c81613043565b9150506112f3565b6001600160a01b0385163314806115b057506115b085336104bc565b6115cc5760405162461bcd60e51b81526004016105b290612c6e565b610a8b8585858585611ee6565b6003546001600160a01b031633146116035760405162461bcd60e51b81526004016105b290612d89565b6001600160a01b0381166116685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b2565b61066781611cb2565b6001600160a01b03831633148061168d575061168d83336104bc565b6116a95760405162461bcd60e51b81526004016105b290612c6e565b610ecb838383611d04565b8051611285906002906020840190612402565b60006116d38284612f8e565b9392505050565b60006116d38284612e83565b60006116d38284612e6b565b60006116d38284612fad565b6001600160a01b0384166117245760405162461bcd60e51b81526004016105b290612e06565b336117448160008761173588612003565b61173e88612003565b8761205c565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611774908490612e6b565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a8b8160008787878761206a565b6001600160a01b0384166117fa5760405162461bcd60e51b81526004016105b290612e06565b815183511461181b5760405162461bcd60e51b81526004016105b290612dbe565b3361182b8160008787878761205c565b60005b84518110156118e25783818151811061185757634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061188257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546118ca9190612e6b565b909155508190506118da81613043565b91505061182e565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611933929190612ba1565b60405180910390a4610a8b816000878787876121d5565b815183511461196b5760405162461bcd60e51b81526004016105b290612dbe565b6001600160a01b0384166119915760405162461bcd60e51b81526004016105b290612cb7565b336119a081878787878761205c565b60005b8451811015611aa25760008582815181106119ce57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106119fa57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a4a5760405162461bcd60e51b81526004016105b290612d3f565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a87908490612e6b565b9250508190555050505080611a9b90613043565b90506119a3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611af2929190612ba1565b60405180910390a46109b78187878787876121d5565b6001600160a01b038316611b2e5760405162461bcd60e51b81526004016105b290612cfc565b8051825114611b4f5760405162461bcd60e51b81526004016105b290612dbe565b6000339050611b728185600086866040518060200160405280600081525061205c565b60005b8351811015611c53576000848281518110611ba057634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110611bcc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611c1c5760405162461bcd60e51b81526004016105b290612c2a565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611c4b81613043565b915050611b75565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611ca4929190612ba1565b60405180910390a450505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316611d2a5760405162461bcd60e51b81526004016105b290612cfc565b33611d5981856000611d3b87612003565b611d4487612003565b6040518060200160405280600081525061205c565b6000838152602081815260408083206001600160a01b038816845290915290205482811015611d9a5760405162461bcd60e51b81526004016105b290612c2a565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b816001600160a01b0316836001600160a01b03161415611e795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105b2565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611f0c5760405162461bcd60e51b81526004016105b290612cb7565b33611f1c81878761173588612003565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f5d5760405162461bcd60e51b81526004016105b290612d3f565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611f9a908490612e6b565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611ffa82888888888861206a565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061204b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6109b786868686868661229f565b6001600160a01b0384163b156109b75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120ae9089908990889088908890600401612b17565b602060405180830381600087803b1580156120c857600080fd5b505af19250505080156120f8575060408051601f3d908101601f191682019092526120f5918101906129ba565b60015b6121a55761210461308a565b806308c379a0141561213e57506121196130a2565b806121245750612140565b8060405162461bcd60e51b81526004016105b29190612bcf565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105b2565b6001600160e01b0319811663f23a6e6160e01b14611ffa5760405162461bcd60e51b81526004016105b290612be2565b6001600160a01b0384163b156109b75760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122199089908990889088908890600401612ab9565b602060405180830381600087803b15801561223357600080fd5b505af1925050508015612263575060408051601f3d908101601f19168201909252612260918101906129ba565b60015b61226f5761210461308a565b6001600160e01b0319811663bc197c8160e01b14611ffa5760405162461bcd60e51b81526004016105b290612be2565b6001600160a01b0385166123425760005b8351811015612340578281815181106122d957634e487b7160e01b600052603260045260246000fd5b60200260200101516004600086848151811061230557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461232a9190612e6b565b90915550612339905081613043565b90506122b0565b505b6001600160a01b0384166109b75760005b8351811015611ffa5782818151811061237c57634e487b7160e01b600052603260045260246000fd5b6020026020010151600460008684815181106123a857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546123cd9190612fad565b909155506123dc905081613043565b9050612353565b604051806101c00160405280600e906020820280368337509192915050565b82805461240e90612fdb565b90600052602060002090601f0160209004810192826124305760008555612476565b82601f1061244957805160ff1916838001178555612476565b82800160010185558215612476579182015b8281111561247657825182559160200191906001019061245b565b50612482929150612486565b5090565b5b808211156124825760008155600101612487565b600067ffffffffffffffff8311156124b5576124b5613074565b6040516124cc601f8501601f191660200182613016565b8091508381528484840111156124e157600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461251057600080fd5b919050565b600082601f830112612525578081fd5b8135602061253282612e47565b60405161253f8282613016565b8381528281019150858301600585901b8701840188101561255e578586fd5b855b8581101561257c57813584529284019290840190600101612560565b5090979650505050505050565b600082601f830112612599578081fd5b6116d38383356020850161249b565b6000602082840312156125b9578081fd5b6116d3826124f9565b600080604083850312156125d4578081fd5b6125dd836124f9565b91506125eb602084016124f9565b90509250929050565b600080600080600060a0868803121561260b578081fd5b612614866124f9565b9450612622602087016124f9565b9350604086013567ffffffffffffffff8082111561263e578283fd5b61264a89838a01612515565b9450606088013591508082111561265f578283fd5b61266b89838a01612515565b93506080880135915080821115612680578283fd5b5061268d88828901612589565b9150509295509295909350565b600080600080600060a086880312156126b1578081fd5b6126ba866124f9565b94506126c8602087016124f9565b93506040860135925060608601359150608086013567ffffffffffffffff8111156126f1578182fd5b61268d88828901612589565b600080600060608486031215612711578283fd5b61271a846124f9565b9250602084013567ffffffffffffffff80821115612736578384fd5b61274287838801612515565b93506040860135915080821115612757578283fd5b5061276486828701612515565b9150509250925092565b60008060008060808587031215612783578384fd5b61278c856124f9565b9350602085013567ffffffffffffffff808211156127a8578485fd5b6127b488838901612515565b945060408701359150808211156127c9578384fd5b6127d588838901612515565b935060608701359150808211156127ea578283fd5b506127f787828801612589565b91505092959194509250565b60008060408385031215612815578182fd5b61281e836124f9565b915060208301358015158114612832578182fd5b809150509250929050565b6000806040838503121561284f578182fd5b612858836124f9565b946020939093013593505050565b60008060006060848603121561287a578081fd5b612883846124f9565b95602085013595506040909401359392505050565b600080604083850312156128aa578182fd5b823567ffffffffffffffff808211156128c1578384fd5b818501915085601f8301126128d4578384fd5b813560206128e182612e47565b6040516128ee8282613016565b8381528281019150858301600585901b870184018b101561290d578889fd5b8896505b8487101561293657612922816124f9565b835260019690960195918301918301612911565b509650508601359250508082111561294c578283fd5b5061295985828601612515565b9150509250929050565b600060208284031215612974578081fd5b813567ffffffffffffffff81111561298a578182fd5b61299684828501612515565b949350505050565b6000602082840312156129af578081fd5b81356116d38161312c565b6000602082840312156129cb578081fd5b81516116d38161312c565b6000602082840312156129e7578081fd5b813567ffffffffffffffff8111156129fd578182fd5b8201601f81018413612a0d578182fd5b6129968482356020840161249b565b600060208284031215612a2d578081fd5b5035919050565b6000815180845260208085019450808401835b83811015612a6357815187529582019590820190600101612a47565b509495945050505050565b60008151808452815b81811015612a9357602081850181015186830182015201612a77565b81811115612aa45782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ae590830186612a34565b8281036060840152612af78186612a34565b90508281036080840152612b0b8185612a6e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612b5190830184612a6e565b979650505050505050565b6101c08101818360005b600e811015612b85578151835260209283019290910190600101612b66565b50505092915050565b6020815260006116d36020830184612a34565b604081526000612bb46040830185612a34565b8281036020840152612bc68185612a34565b95945050505050565b6020815260006116d36020830184612a6e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b600067ffffffffffffffff821115612e6157612e61613074565b5060051b60200190565b60008219821115612e7e57612e7e61305e565b500190565b600082612e9e57634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115612ede578160001904821115612ec457612ec461305e565b80851615612ed157918102915b93841c9390800290612ea8565b509250929050565b60006116d38383600082612efc575060016105de565b81612f09575060006105de565b8160018114612f1f5760028114612f2957612f45565b60019150506105de565b60ff841115612f3a57612f3a61305e565b50506001821b6105de565b5060208310610133831016604e8410600b8410161715612f68575081810a6105de565b612f728383612ea3565b8060001904821115612f8657612f8661305e565b029392505050565b6000816000190483118215151615612fa857612fa861305e565b500290565b600082821015612fbf57612fbf61305e565b500390565b600081612fd357612fd361305e565b506000190190565b600181811c90821680612fef57607f821691505b6020821081141561301057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff8111828210171561303c5761303c613074565b6040525050565b60006000198214156130575761305761305e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561309f57600481823e5160e01c5b90565b600060443d10156130b05790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156130e057505050505090565b82850191508151818111156130f85750505050505090565b843d87010160208285010111156131125750505050505090565b61312160208286010187613016565b509095945050505050565b6001600160e01b03198116811461066757600080fdfea2646970667358221220d76e8f69df8ea8d5b3c62c6a531ecde03b07a6dddf7eadcb3e24f9f2457e653464736f6c63430008040033
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.