ERC-1155
Overview
Max Total Supply
2,000
Holders
968
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:
PowerUpMembershipPass1155Merkle
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Random.sol"; contract PowerUpMembershipPass1155Merkle is ERC1155, Random, Ownable { uint public constant BLACK = 0; uint public constant PLATINUM = 1; uint public constant GOLD = 2; uint public tokensClaimed = 0; string public name = "PowerUp Membership Passes"; bytes32 public merkleRoot; bool public isPresale = true; bool public isSaleActive = true; mapping(uint256 => uint256) private claimedBitMap; constructor( uint blackAmount, uint platinumAmount, uint goldAmount, string memory metadataUri, bytes32 merkleRoot_ ) ERC1155(metadataUri) Random(321262) { _mint(address(this), BLACK, blackAmount, ""); _mint(address(this), PLATINUM, platinumAmount, ""); _mint(address(this), GOLD, goldAmount, ""); merkleRoot = merkleRoot_; } function claim() external { require(!isPresale, "Public sale not open."); _claim(); } function claimPresale(uint index, bytes32[] calldata merkleProof) external { require(!isClaimed(index), "Index already claimed."); uint num = 1; bytes32 node = keccak256(abi.encodePacked(index, msg.sender, num)); require(MerkleProof.verify(merkleProof, merkleRoot, node), "Not in allow list."); _claim(); _setClaimed(index); } function _claim() internal { require(isSaleActive, "Sale not active."); uint blackAmount = balanceOf(address(this), BLACK); uint platinumAmount = balanceOf(address(this), PLATINUM); uint goldAmount = balanceOf(address(this), GOLD); require( blackAmount > 0 || platinumAmount > 0 || goldAmount > 0, "No more supply left." ); require(!hasPass(msg.sender), "Already owns pass."); // Find a random index uint idx = randMod(blackAmount + platinumAmount + goldAmount); // Pick pass from available supply uint claimedToken; if (idx < goldAmount) { claimedToken = GOLD; } else if (idx >= goldAmount && idx < goldAmount + platinumAmount) { claimedToken = PLATINUM; } else { claimedToken = BLACK; } // Transfer token _safeTransferFrom(address(this), msg.sender, claimedToken, 1, ""); tokensClaimed++; } function hasPass(address addr) public view returns(bool) { return balanceOf(addr, BLACK) > 0 || balanceOf(addr, PLATINUM) > 0 || balanceOf(addr, GOLD) > 0; } function passType(address addr) public view returns(uint) { if (balanceOf(addr, GOLD) > 0) { return GOLD; } else if (balanceOf(addr, PLATINUM) > 0) { return PLATINUM; } else if (balanceOf(addr, BLACK) > 0) { return BLACK; } else { return 10; } } function setMerkleRoot(bytes32 merkleRoot_) public onlyOwner { merkleRoot = merkleRoot_; } function setSaleActive(bool isSaleActive_) public onlyOwner { isSaleActive = isSaleActive_; } function setPresale(bool isPresale_) public onlyOwner { isPresale = isPresale_; } function setMedataDataUri(string memory metadataUri) public onlyOwner { _setURI(metadataUri); } function isClaimed(uint256 index) public view returns (bool) { uint256 claimedWordIndex = index / 256; uint256 claimedBitIndex = index % 256; uint256 claimedWord = claimedBitMap[claimedWordIndex]; uint256 mask = (1 << claimedBitIndex); return claimedWord & mask == mask; } function _setClaimed(uint256 index) private { uint256 claimedWordIndex = index / 256; uint256 claimedBitIndex = index % 256; claimedBitMap[claimedWordIndex] = claimedBitMap[claimedWordIndex] | (1 << claimedBitIndex); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Random { uint private randNonce; constructor(uint randomSeed) { randNonce = randomSeed; } function randMod(uint _modulus) internal returns(uint) { randNonce++; return uint(keccak256(abi.encodePacked( block.timestamp, block.difficulty, msg.sender, randNonce))) % _modulus; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"blackAmount","type":"uint256"},{"internalType":"uint256","name":"platinumAmount","type":"uint256"},{"internalType":"uint256","name":"goldAmount","type":"uint256"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"BLACK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PLATINUM","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":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claimPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"hasPass","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"index","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"passType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"metadataUri","type":"string"}],"name":"setMedataDataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPresale_","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isSaleActive_","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260006005556040518060400160405280601981526020017f506f7765725570204d656d62657273686970205061737365730000000000000081525060069080519060200190620000569291906200071a565b506001600860006101000a81548160ff0219169083151502179055506001600860016101000a81548160ff0219169083151502179055503480156200009a57600080fd5b5060405162004de338038062004de38339818101604052810190620000c09190620008ad565b6204e6ee82620000d6816200017d60201b60201c565b508060038190555050620000ff620000f36200019960201b60201c565b620001a160201b60201c565b6200012330600087604051806020016040528060008152506200026760201b60201c565b6200014730600186604051806020016040528060008152506200026760201b60201c565b6200016b30600285604051806020016040528060008152506200026760201b60201c565b80600781905550505050505062001033565b8060029080519060200190620001959291906200071a565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620002da576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002d19062000b2d565b60405180910390fd5b6000620002ec6200019960201b60201c565b9050620003258160008762000307886200042c60201b60201c565b62000318886200042c60201b60201c565b87620004f560201b60201c565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462000386919062000c13565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516200040692919062000b4f565b60405180910390a46200042581600087878787620004fd60201b60201c565b5050505050565b60606000600167ffffffffffffffff81111562000472577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015620004a15781602001602082028036833780820191505090505b5090508281600081518110620004e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b505050505050565b620005298473ffffffffffffffffffffffffffffffffffffffff166200070760201b620013d81760201c565b15620006ff578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016200057295949392919062000a61565b602060405180830381600087803b1580156200058d57600080fd5b505af1925050508015620005c157506040513d601f19601f82011682018060405250810190620005be919062000881565b60015b6200067357620005d062000e13565b806308c379a01415620006345750620005e862000f43565b80620005f5575062000636565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200062b919062000ac5565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200066a9062000ae9565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614620006fd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006f49062000b0b565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054620007289062000d1a565b90600052602060002090601f0160209004810192826200074c576000855562000798565b82601f106200076757805160ff191683800117855562000798565b8280016001018555821562000798579182015b82811115620007975782518255916020019190600101906200077a565b5b509050620007a79190620007ab565b5090565b5b80821115620007c6576000816000905550600101620007ac565b5090565b6000620007e1620007db8462000ba5565b62000b7c565b905082815260208101848484011115620007fa57600080fd5b6200080784828562000ce4565b509392505050565b600081519050620008208162000fe5565b92915050565b600081519050620008378162000fff565b92915050565b600082601f8301126200084f57600080fd5b815162000861848260208601620007ca565b91505092915050565b6000815190506200087b8162001019565b92915050565b6000602082840312156200089457600080fd5b6000620008a48482850162000826565b91505092915050565b600080600080600060a08688031215620008c657600080fd5b6000620008d6888289016200086a565b9550506020620008e9888289016200086a565b9450506040620008fc888289016200086a565b935050606086015167ffffffffffffffff8111156200091a57600080fd5b62000928888289016200083d565b92505060806200093b888289016200080f565b9150509295509295909350565b620009538162000c70565b82525050565b6000620009668262000bdb565b62000972818562000bf1565b93506200098481856020860162000ce4565b6200098f8162000e38565b840191505092915050565b6000620009a78262000be6565b620009b3818562000c02565b9350620009c581856020860162000ce4565b620009d08162000e38565b840191505092915050565b6000620009ea60348362000c02565b9150620009f78262000e56565b604082019050919050565b600062000a1160288362000c02565b915062000a1e8262000ea5565b604082019050919050565b600062000a3860218362000c02565b915062000a458262000ef4565b604082019050919050565b62000a5b8162000cda565b82525050565b600060a08201905062000a78600083018862000948565b62000a87602083018762000948565b62000a96604083018662000a50565b62000aa5606083018562000a50565b818103608083015262000ab9818462000959565b90509695505050505050565b6000602082019050818103600083015262000ae181846200099a565b905092915050565b6000602082019050818103600083015262000b0481620009db565b9050919050565b6000602082019050818103600083015262000b268162000a02565b9050919050565b6000602082019050818103600083015262000b488162000a29565b9050919050565b600060408201905062000b66600083018562000a50565b62000b75602083018462000a50565b9392505050565b600062000b8862000b9b565b905062000b96828262000d50565b919050565b6000604051905090565b600067ffffffffffffffff82111562000bc35762000bc262000de4565b5b62000bce8262000e38565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600062000c208262000cda565b915062000c2d8362000cda565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000c655762000c6462000d86565b5b828201905092915050565b600062000c7d8262000cba565b9050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000d0457808201518184015260208101905062000ce7565b8381111562000d14576000848401525b50505050565b6000600282049050600182168062000d3357607f821691505b6020821081141562000d4a5762000d4962000db5565b5b50919050565b62000d5b8262000e38565b810181811067ffffffffffffffff8211171562000d7d5762000d7c62000de4565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111562000e355760046000803e62000e3260005162000e49565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600060443d101562000f555762000fe2565b62000f5f62000b9b565b60043d036004823e80513d602482011167ffffffffffffffff8211171562000f8957505062000fe2565b808201805167ffffffffffffffff81111562000fa9575050505062000fe2565b80602083010160043d03850181111562000fc857505050505062000fe2565b62000fd98260200185018662000d50565b82955050505050505b90565b62000ff08162000c84565b811462000ffc57600080fd5b50565b6200100a8162000c8e565b81146200101657600080fd5b50565b620010248162000cda565b81146200103057600080fd5b50565b613da080620010436000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c8063718f838c116100f95780639e34070f11610097578063c54e73e311610071578063c54e73e3146104e2578063e985e9c5146104fe578063f242432a1461052e578063f2fde38b1461054a576101c3565b80639e34070f14610478578063a22cb465146104a8578063b44df72d146104c4576101c3565b806389fac867116100d357806389fac867146103f05780638da5cb5b1461040c578063937cde201461042a57806395364a841461045a576101c3565b8063718f838c146103885780637cb64759146103b8578063841718a6146103d4576101c3565b80633e4bee3811610166578063564566a811610140578063564566a81461032657806356f0593a14610344578063634fa00414610362578063715018a61461037e576101c3565b80633e4bee38146102ce5780634e1273f4146102ec5780634e71d92d1461031c576101c3565b80630e89341c116101a25780630e89341c14610246578063225b031d146102765780632eb2c2d6146102945780632eb4a7ab146102b0576101c3565b8062fdd58e146101c857806301ffc9a7146101f857806306fdde0314610228575b600080fd5b6101e260048036038101906101dd9190612863565b610566565b6040516101ef91906132e4565b60405180910390f35b610212600480360381019061020d919061295d565b61062f565b60405161021f919061304c565b60405180910390f35b610230610711565b60405161023d9190613082565b60405180910390f35b610260600480360381019061025b91906129f0565b61079f565b60405161026d9190613082565b60405180910390f35b61027e610833565b60405161028b91906132e4565b60405180910390f35b6102ae60048036038101906102a991906126d9565b610838565b005b6102b86108d9565b6040516102c59190613067565b60405180910390f35b6102d66108df565b6040516102e391906132e4565b60405180910390f35b6103066004803603810190610301919061289f565b6108e4565b6040516103139190612ff3565b60405180910390f35b610324610a95565b005b61032e610aef565b60405161033b919061304c565b60405180910390f35b61034c610b02565b60405161035991906132e4565b60405180910390f35b61037c60048036038101906103779190612a19565b610b07565b005b610386610c2a565b005b6103a2600480360381019061039d9190612674565b610cb2565b6040516103af91906132e4565b60405180910390f35b6103d260048036038101906103cd9190612934565b610d11565b005b6103ee60048036038101906103e9919061290b565b610d97565b005b61040a600480360381019061040591906129af565b610e30565b005b610414610eb8565b6040516104219190612f16565b60405180910390f35b610444600480360381019061043f9190612674565b610ee2565b604051610451919061304c565b60405180910390f35b610462610f22565b60405161046f919061304c565b60405180910390f35b610492600480360381019061048d91906129f0565b610f35565b60405161049f919061304c565b60405180910390f35b6104c260048036038101906104bd9190612827565b610f8b565b005b6104cc61110c565b6040516104d991906132e4565b60405180910390f35b6104fc60048036038101906104f7919061290b565b611112565b005b6105186004803603810190610513919061269d565b6111ab565b604051610525919061304c565b60405180910390f35b61054860048036038101906105439190612798565b61123f565b005b610564600480360381019061055f9190612674565b6112e0565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ce906130e4565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106fa57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061070a5750610709826113eb565b5b9050919050565b6006805461071e906135bf565b80601f016020809104026020016040519081016040528092919081815260200182805461074a906135bf565b80156107975780601f1061076c57610100808354040283529160200191610797565b820191906000526020600020905b81548152906001019060200180831161077a57829003601f168201915b505050505081565b6060600280546107ae906135bf565b80601f01602080910402602001604051908101604052809291908181526020018280546107da906135bf565b80156108275780601f106107fc57610100808354040283529160200191610827565b820191906000526020600020905b81548152906001019060200180831161080a57829003601f168201915b50505050509050919050565b600081565b610840611455565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610886575061088585610880611455565b6111ab565b5b6108c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bc906131a4565b60405180910390fd5b6108d2858585858561145d565b5050505050565b60075481565b600281565b6060815183511461092a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610921906132a4565b60405180910390fd5b6000835167ffffffffffffffff81111561096d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561099b5781602001602082028036833780820191505090505b50905060005b8451811015610a8a57610a348582815181106109e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610a27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610566565b828281518110610a6d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080610a8390613622565b90506109a1565b508091505092915050565b600860009054906101000a900460ff1615610ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adc906131e4565b60405180910390fd5b610aed6117bd565b565b600860019054906101000a900460ff1681565b600181565b610b1083610f35565b15610b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b47906131c4565b60405180910390fd5b6000600190506000843383604051602001610b6d93929190612e8b565b604051602081830303815290604052805190602001209050610bd3848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506007548361197b565b610c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0990613204565b60405180910390fd5b610c1a6117bd565b610c2385611a57565b5050505050565b610c32611455565b73ffffffffffffffffffffffffffffffffffffffff16610c50610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90613244565b60405180910390fd5b610cb06000611ab1565b565b600080610cc0836002610566565b1115610ccf5760029050610d0c565b6000610cdc836001610566565b1115610ceb5760019050610d0c565b6000610cf8836000610566565b1115610d075760009050610d0c565b600a90505b919050565b610d19611455565b73ffffffffffffffffffffffffffffffffffffffff16610d37610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490613244565b60405180910390fd5b8060078190555050565b610d9f611455565b73ffffffffffffffffffffffffffffffffffffffff16610dbd610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0a90613244565b60405180910390fd5b80600860016101000a81548160ff02191690831515021790555050565b610e38611455565b73ffffffffffffffffffffffffffffffffffffffff16610e56610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610eac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea390613244565b60405180910390fd5b610eb581611b77565b50565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080610ef0836000610566565b1180610f0657506000610f04836001610566565b115b80610f1b57506000610f19836002610566565b115b9050919050565b600860009054906101000a900460ff1681565b60008061010083610f4691906134ce565b9050600061010084610f5891906136a3565b90506000600960008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b8173ffffffffffffffffffffffffffffffffffffffff16610faa611455565b73ffffffffffffffffffffffffffffffffffffffff161415611001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff890613284565b60405180910390fd5b806001600061100e611455565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166110bb611455565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611100919061304c565b60405180910390a35050565b60055481565b61111a611455565b73ffffffffffffffffffffffffffffffffffffffff16611138610eb8565b73ffffffffffffffffffffffffffffffffffffffff161461118e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118590613244565b60405180910390fd5b80600860006101000a81548160ff02191690831515021790555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611247611455565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061128d575061128c85611287611455565b6111ab565b5b6112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390613164565b60405180910390fd5b6112d98585858585611b91565b5050505050565b6112e8611455565b73ffffffffffffffffffffffffffffffffffffffff16611306610eb8565b73ffffffffffffffffffffffffffffffffffffffff161461135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135390613244565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c390613124565b60405180910390fd5b6113d581611ab1565b50565b600080823b905060008111915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b81518351146114a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611498906132c4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150890613184565b60405180910390fd5b600061151b611455565b905061152b818787878787611e13565b60005b8451811015611728576000858281518110611572577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008583815181106115b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f90613224565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461170d9190613478565b925050819055505050508061172190613622565b905061152e565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161179f929190613015565b60405180910390a46117b5818787878787611e1b565b505050505050565b600860019054906101000a900460ff1661180c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180390613144565b60405180910390fd5b6000611819306000610566565b90506000611828306001610566565b90506000611837306002610566565b905060008311806118485750600082115b806118535750600081115b611892576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188990613264565b60405180910390fd5b61189b33610ee2565b156118db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d290613104565b60405180910390fd5b60006118fc8284866118ed9190613478565b6118f79190613478565b612002565b9050600082821015611911576002905061193f565b82821015801561192b575083836119289190613478565b82105b15611939576001905061193e565b600090505b5b61195c303383600160405180602001604052806000815250611b91565b6005600081548092919061196f90613622565b91905055505050505050565b60008082905060005b8551811015611a495760008682815181106119c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311611a095782816040516020016119ec929190612e5f565b604051602081830303815290604052805190602001209250611a35565b8083604051602001611a1c929190612e5f565b6040516020818303038152906040528051906020012092505b508080611a4190613622565b915050611984565b508381149150509392505050565b600061010082611a6791906134ce565b9050600061010083611a7991906136a3565b9050806001901b6009600084815260200190815260200160002054176009600084815260200190815260200160002081905550505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060029080519060200190611b8d92919061230d565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf890613184565b60405180910390fd5b6000611c0b611455565b9050611c2b818787611c1c88612060565b611c2588612060565b87611e13565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb990613224565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d779190613478565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611df49291906132ff565b60405180910390a4611e0a828888888888612126565b50505050505050565b505050505050565b611e3a8473ffffffffffffffffffffffffffffffffffffffff166113d8565b15611ffa578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611e80959493929190612f31565b602060405180830381600087803b158015611e9a57600080fd5b505af1925050508015611ecb57506040513d601f19601f82011682018060405250810190611ec89190612986565b60015b611f7157611ed7613790565b806308c379a01415611f345750611eec613c61565b80611ef75750611f36565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2b9190613082565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f68906130a4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fef906130c4565b60405180910390fd5b505b505050505050565b60006003600081548092919061201790613622565b9190505550814244336003546040516020016120369493929190612ec8565b6040516020818303038152906040528051906020012060001c61205991906136a3565b9050919050565b60606000600167ffffffffffffffff8111156120a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156120d35781602001602082028036833780820191505090505b5090508281600081518110612111577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6121458473ffffffffffffffffffffffffffffffffffffffff166113d8565b15612305578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161218b959493929190612f99565b602060405180830381600087803b1580156121a557600080fd5b505af19250505080156121d657506040513d601f19601f820116820180604052508101906121d39190612986565b60015b61227c576121e2613790565b806308c379a0141561223f57506121f7613c61565b806122025750612241565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122369190613082565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612273906130a4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fa906130c4565b60405180910390fd5b505b505050505050565b828054612319906135bf565b90600052602060002090601f01602090048101928261233b5760008555612382565b82601f1061235457805160ff1916838001178555612382565b82800160010185558215612382579182015b82811115612381578251825591602001919060010190612366565b5b50905061238f9190612393565b5090565b5b808211156123ac576000816000905550600101612394565b5090565b60006123c36123be8461334d565b613328565b905080838252602082019050828560208602820111156123e257600080fd5b60005b8581101561241257816123f88882612504565b8452602084019350602083019250506001810190506123e5565b5050509392505050565b600061242f61242a84613379565b613328565b9050808382526020820190508285602086028201111561244e57600080fd5b60005b8581101561247e5781612464888261265f565b845260208401935060208301925050600181019050612451565b5050509392505050565b600061249b612496846133a5565b613328565b9050828152602081018484840111156124b357600080fd5b6124be84828561357d565b509392505050565b60006124d96124d4846133d6565b613328565b9050828152602081018484840111156124f157600080fd5b6124fc84828561357d565b509392505050565b60008135905061251381613cf7565b92915050565b600082601f83011261252a57600080fd5b813561253a8482602086016123b0565b91505092915050565b60008083601f84011261255557600080fd5b8235905067ffffffffffffffff81111561256e57600080fd5b60208301915083602082028301111561258657600080fd5b9250929050565b600082601f83011261259e57600080fd5b81356125ae84826020860161241c565b91505092915050565b6000813590506125c681613d0e565b92915050565b6000813590506125db81613d25565b92915050565b6000813590506125f081613d3c565b92915050565b60008151905061260581613d3c565b92915050565b600082601f83011261261c57600080fd5b813561262c848260208601612488565b91505092915050565b600082601f83011261264657600080fd5b81356126568482602086016124c6565b91505092915050565b60008135905061266e81613d53565b92915050565b60006020828403121561268657600080fd5b600061269484828501612504565b91505092915050565b600080604083850312156126b057600080fd5b60006126be85828601612504565b92505060206126cf85828601612504565b9150509250929050565b600080600080600060a086880312156126f157600080fd5b60006126ff88828901612504565b955050602061271088828901612504565b945050604086013567ffffffffffffffff81111561272d57600080fd5b6127398882890161258d565b935050606086013567ffffffffffffffff81111561275657600080fd5b6127628882890161258d565b925050608086013567ffffffffffffffff81111561277f57600080fd5b61278b8882890161260b565b9150509295509295909350565b600080600080600060a086880312156127b057600080fd5b60006127be88828901612504565b95505060206127cf88828901612504565b94505060406127e08882890161265f565b93505060606127f18882890161265f565b925050608086013567ffffffffffffffff81111561280e57600080fd5b61281a8882890161260b565b9150509295509295909350565b6000806040838503121561283a57600080fd5b600061284885828601612504565b9250506020612859858286016125b7565b9150509250929050565b6000806040838503121561287657600080fd5b600061288485828601612504565b92505060206128958582860161265f565b9150509250929050565b600080604083850312156128b257600080fd5b600083013567ffffffffffffffff8111156128cc57600080fd5b6128d885828601612519565b925050602083013567ffffffffffffffff8111156128f557600080fd5b6129018582860161258d565b9150509250929050565b60006020828403121561291d57600080fd5b600061292b848285016125b7565b91505092915050565b60006020828403121561294657600080fd5b6000612954848285016125cc565b91505092915050565b60006020828403121561296f57600080fd5b600061297d848285016125e1565b91505092915050565b60006020828403121561299857600080fd5b60006129a6848285016125f6565b91505092915050565b6000602082840312156129c157600080fd5b600082013567ffffffffffffffff8111156129db57600080fd5b6129e784828501612635565b91505092915050565b600060208284031215612a0257600080fd5b6000612a108482850161265f565b91505092915050565b600080600060408486031215612a2e57600080fd5b6000612a3c8682870161265f565b935050602084013567ffffffffffffffff811115612a5957600080fd5b612a6586828701612543565b92509250509250925092565b6000612a7d8383612e2a565b60208301905092915050565b612a92816134ff565b82525050565b612aa9612aa4826134ff565b61366b565b82525050565b6000612aba82613417565b612ac48185613445565b9350612acf83613407565b8060005b83811015612b00578151612ae78882612a71565b9750612af283613438565b925050600181019050612ad3565b5085935050505092915050565b612b1681613511565b82525050565b612b258161351d565b82525050565b612b3c612b378261351d565b61367d565b82525050565b6000612b4d82613422565b612b578185613456565b9350612b6781856020860161358c565b612b70816137b2565b840191505092915050565b6000612b868261342d565b612b908185613467565b9350612ba081856020860161358c565b612ba9816137b2565b840191505092915050565b6000612bc1603483613467565b9150612bcc826137dd565b604082019050919050565b6000612be4602883613467565b9150612bef8261382c565b604082019050919050565b6000612c07602b83613467565b9150612c128261387b565b604082019050919050565b6000612c2a601283613467565b9150612c35826138ca565b602082019050919050565b6000612c4d602683613467565b9150612c58826138f3565b604082019050919050565b6000612c70601083613467565b9150612c7b82613942565b602082019050919050565b6000612c93602983613467565b9150612c9e8261396b565b604082019050919050565b6000612cb6602583613467565b9150612cc1826139ba565b604082019050919050565b6000612cd9603283613467565b9150612ce482613a09565b604082019050919050565b6000612cfc601683613467565b9150612d0782613a58565b602082019050919050565b6000612d1f601583613467565b9150612d2a82613a81565b602082019050919050565b6000612d42601283613467565b9150612d4d82613aaa565b602082019050919050565b6000612d65602a83613467565b9150612d7082613ad3565b604082019050919050565b6000612d88602083613467565b9150612d9382613b22565b602082019050919050565b6000612dab601483613467565b9150612db682613b4b565b602082019050919050565b6000612dce602983613467565b9150612dd982613b74565b604082019050919050565b6000612df1602983613467565b9150612dfc82613bc3565b604082019050919050565b6000612e14602883613467565b9150612e1f82613c12565b604082019050919050565b612e3381613573565b82525050565b612e4281613573565b82525050565b612e59612e5482613573565b613699565b82525050565b6000612e6b8285612b2b565b602082019150612e7b8284612b2b565b6020820191508190509392505050565b6000612e978286612e48565b602082019150612ea78285612a98565b601482019150612eb78284612e48565b602082019150819050949350505050565b6000612ed48287612e48565b602082019150612ee48286612e48565b602082019150612ef48285612a98565b601482019150612f048284612e48565b60208201915081905095945050505050565b6000602082019050612f2b6000830184612a89565b92915050565b600060a082019050612f466000830188612a89565b612f536020830187612a89565b8181036040830152612f658186612aaf565b90508181036060830152612f798185612aaf565b90508181036080830152612f8d8184612b42565b90509695505050505050565b600060a082019050612fae6000830188612a89565b612fbb6020830187612a89565b612fc86040830186612e39565b612fd56060830185612e39565b8181036080830152612fe78184612b42565b90509695505050505050565b6000602082019050818103600083015261300d8184612aaf565b905092915050565b6000604082019050818103600083015261302f8185612aaf565b905081810360208301526130438184612aaf565b90509392505050565b60006020820190506130616000830184612b0d565b92915050565b600060208201905061307c6000830184612b1c565b92915050565b6000602082019050818103600083015261309c8184612b7b565b905092915050565b600060208201905081810360008301526130bd81612bb4565b9050919050565b600060208201905081810360008301526130dd81612bd7565b9050919050565b600060208201905081810360008301526130fd81612bfa565b9050919050565b6000602082019050818103600083015261311d81612c1d565b9050919050565b6000602082019050818103600083015261313d81612c40565b9050919050565b6000602082019050818103600083015261315d81612c63565b9050919050565b6000602082019050818103600083015261317d81612c86565b9050919050565b6000602082019050818103600083015261319d81612ca9565b9050919050565b600060208201905081810360008301526131bd81612ccc565b9050919050565b600060208201905081810360008301526131dd81612cef565b9050919050565b600060208201905081810360008301526131fd81612d12565b9050919050565b6000602082019050818103600083015261321d81612d35565b9050919050565b6000602082019050818103600083015261323d81612d58565b9050919050565b6000602082019050818103600083015261325d81612d7b565b9050919050565b6000602082019050818103600083015261327d81612d9e565b9050919050565b6000602082019050818103600083015261329d81612dc1565b9050919050565b600060208201905081810360008301526132bd81612de4565b9050919050565b600060208201905081810360008301526132dd81612e07565b9050919050565b60006020820190506132f96000830184612e39565b92915050565b60006040820190506133146000830185612e39565b6133216020830184612e39565b9392505050565b6000613332613343565b905061333e82826135f1565b919050565b6000604051905090565b600067ffffffffffffffff82111561336857613367613761565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561339457613393613761565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156133c0576133bf613761565b5b6133c9826137b2565b9050602081019050919050565b600067ffffffffffffffff8211156133f1576133f0613761565b5b6133fa826137b2565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061348382613573565b915061348e83613573565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134c3576134c26136d4565b5b828201905092915050565b60006134d982613573565b91506134e483613573565b9250826134f4576134f3613703565b5b828204905092915050565b600061350a82613553565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156135aa57808201518184015260208101905061358f565b838111156135b9576000848401525b50505050565b600060028204905060018216806135d757607f821691505b602082108114156135eb576135ea613732565b5b50919050565b6135fa826137b2565b810181811067ffffffffffffffff8211171561361957613618613761565b5b80604052505050565b600061362d82613573565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156136605761365f6136d4565b5b600182019050919050565b600061367682613687565b9050919050565b6000819050919050565b6000613692826137c3565b9050919050565b6000819050919050565b60006136ae82613573565b91506136b983613573565b9250826136c9576136c8613703565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156137af5760046000803e6137ac6000516137d0565b90505b90565b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f416c7265616479206f776e7320706173732e0000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74206163746976652e00000000000000000000000000000000600082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f496e64657820616c726561647920636c61696d65642e00000000000000000000600082015250565b7f5075626c69632073616c65206e6f74206f70656e2e0000000000000000000000600082015250565b7f4e6f7420696e20616c6c6f77206c6973742e0000000000000000000000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4e6f206d6f726520737570706c79206c6566742e000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600060443d1015613c7157613cf4565b613c79613343565b60043d036004823e80513d602482011167ffffffffffffffff82111715613ca1575050613cf4565b808201805167ffffffffffffffff811115613cbf5750505050613cf4565b80602083010160043d038501811115613cdc575050505050613cf4565b613ceb826020018501866135f1565b82955050505050505b90565b613d00816134ff565b8114613d0b57600080fd5b50565b613d1781613511565b8114613d2257600080fd5b50565b613d2e8161351d565b8114613d3957600080fd5b50565b613d4581613527565b8114613d5057600080fd5b50565b613d5c81613573565b8114613d6757600080fd5b5056fea2646970667358221220756e40a1b5eb74936097283f1d0a93e1dd5531f59db1078937723de2b0b4b59364736f6c6343000804003300000000000000000000000000000000000000000000000000000000000007b20000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a0e7de33b1a20538b6bbcf63851cbd447909ca881cdb1c6c7fd9c4b32e4e1f4e640000000000000000000000000000000000000000000000000000000000000044697066733a2f2f697066732f516d5634554d6d744b7a52356f7a656767353352674334706b436967726f56315143534c43476537426f6d6e4e342f7b69647d2e6a736f6e00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c35760003560e01c8063718f838c116100f95780639e34070f11610097578063c54e73e311610071578063c54e73e3146104e2578063e985e9c5146104fe578063f242432a1461052e578063f2fde38b1461054a576101c3565b80639e34070f14610478578063a22cb465146104a8578063b44df72d146104c4576101c3565b806389fac867116100d357806389fac867146103f05780638da5cb5b1461040c578063937cde201461042a57806395364a841461045a576101c3565b8063718f838c146103885780637cb64759146103b8578063841718a6146103d4576101c3565b80633e4bee3811610166578063564566a811610140578063564566a81461032657806356f0593a14610344578063634fa00414610362578063715018a61461037e576101c3565b80633e4bee38146102ce5780634e1273f4146102ec5780634e71d92d1461031c576101c3565b80630e89341c116101a25780630e89341c14610246578063225b031d146102765780632eb2c2d6146102945780632eb4a7ab146102b0576101c3565b8062fdd58e146101c857806301ffc9a7146101f857806306fdde0314610228575b600080fd5b6101e260048036038101906101dd9190612863565b610566565b6040516101ef91906132e4565b60405180910390f35b610212600480360381019061020d919061295d565b61062f565b60405161021f919061304c565b60405180910390f35b610230610711565b60405161023d9190613082565b60405180910390f35b610260600480360381019061025b91906129f0565b61079f565b60405161026d9190613082565b60405180910390f35b61027e610833565b60405161028b91906132e4565b60405180910390f35b6102ae60048036038101906102a991906126d9565b610838565b005b6102b86108d9565b6040516102c59190613067565b60405180910390f35b6102d66108df565b6040516102e391906132e4565b60405180910390f35b6103066004803603810190610301919061289f565b6108e4565b6040516103139190612ff3565b60405180910390f35b610324610a95565b005b61032e610aef565b60405161033b919061304c565b60405180910390f35b61034c610b02565b60405161035991906132e4565b60405180910390f35b61037c60048036038101906103779190612a19565b610b07565b005b610386610c2a565b005b6103a2600480360381019061039d9190612674565b610cb2565b6040516103af91906132e4565b60405180910390f35b6103d260048036038101906103cd9190612934565b610d11565b005b6103ee60048036038101906103e9919061290b565b610d97565b005b61040a600480360381019061040591906129af565b610e30565b005b610414610eb8565b6040516104219190612f16565b60405180910390f35b610444600480360381019061043f9190612674565b610ee2565b604051610451919061304c565b60405180910390f35b610462610f22565b60405161046f919061304c565b60405180910390f35b610492600480360381019061048d91906129f0565b610f35565b60405161049f919061304c565b60405180910390f35b6104c260048036038101906104bd9190612827565b610f8b565b005b6104cc61110c565b6040516104d991906132e4565b60405180910390f35b6104fc60048036038101906104f7919061290b565b611112565b005b6105186004803603810190610513919061269d565b6111ab565b604051610525919061304c565b60405180910390f35b61054860048036038101906105439190612798565b61123f565b005b610564600480360381019061055f9190612674565b6112e0565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ce906130e4565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106fa57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061070a5750610709826113eb565b5b9050919050565b6006805461071e906135bf565b80601f016020809104026020016040519081016040528092919081815260200182805461074a906135bf565b80156107975780601f1061076c57610100808354040283529160200191610797565b820191906000526020600020905b81548152906001019060200180831161077a57829003601f168201915b505050505081565b6060600280546107ae906135bf565b80601f01602080910402602001604051908101604052809291908181526020018280546107da906135bf565b80156108275780601f106107fc57610100808354040283529160200191610827565b820191906000526020600020905b81548152906001019060200180831161080a57829003601f168201915b50505050509050919050565b600081565b610840611455565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610886575061088585610880611455565b6111ab565b5b6108c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bc906131a4565b60405180910390fd5b6108d2858585858561145d565b5050505050565b60075481565b600281565b6060815183511461092a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610921906132a4565b60405180910390fd5b6000835167ffffffffffffffff81111561096d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561099b5781602001602082028036833780820191505090505b50905060005b8451811015610a8a57610a348582815181106109e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610a27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610566565b828281518110610a6d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080610a8390613622565b90506109a1565b508091505092915050565b600860009054906101000a900460ff1615610ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adc906131e4565b60405180910390fd5b610aed6117bd565b565b600860019054906101000a900460ff1681565b600181565b610b1083610f35565b15610b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b47906131c4565b60405180910390fd5b6000600190506000843383604051602001610b6d93929190612e8b565b604051602081830303815290604052805190602001209050610bd3848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506007548361197b565b610c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0990613204565b60405180910390fd5b610c1a6117bd565b610c2385611a57565b5050505050565b610c32611455565b73ffffffffffffffffffffffffffffffffffffffff16610c50610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90613244565b60405180910390fd5b610cb06000611ab1565b565b600080610cc0836002610566565b1115610ccf5760029050610d0c565b6000610cdc836001610566565b1115610ceb5760019050610d0c565b6000610cf8836000610566565b1115610d075760009050610d0c565b600a90505b919050565b610d19611455565b73ffffffffffffffffffffffffffffffffffffffff16610d37610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490613244565b60405180910390fd5b8060078190555050565b610d9f611455565b73ffffffffffffffffffffffffffffffffffffffff16610dbd610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0a90613244565b60405180910390fd5b80600860016101000a81548160ff02191690831515021790555050565b610e38611455565b73ffffffffffffffffffffffffffffffffffffffff16610e56610eb8565b73ffffffffffffffffffffffffffffffffffffffff1614610eac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea390613244565b60405180910390fd5b610eb581611b77565b50565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080610ef0836000610566565b1180610f0657506000610f04836001610566565b115b80610f1b57506000610f19836002610566565b115b9050919050565b600860009054906101000a900460ff1681565b60008061010083610f4691906134ce565b9050600061010084610f5891906136a3565b90506000600960008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b8173ffffffffffffffffffffffffffffffffffffffff16610faa611455565b73ffffffffffffffffffffffffffffffffffffffff161415611001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff890613284565b60405180910390fd5b806001600061100e611455565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166110bb611455565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611100919061304c565b60405180910390a35050565b60055481565b61111a611455565b73ffffffffffffffffffffffffffffffffffffffff16611138610eb8565b73ffffffffffffffffffffffffffffffffffffffff161461118e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118590613244565b60405180910390fd5b80600860006101000a81548160ff02191690831515021790555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611247611455565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061128d575061128c85611287611455565b6111ab565b5b6112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390613164565b60405180910390fd5b6112d98585858585611b91565b5050505050565b6112e8611455565b73ffffffffffffffffffffffffffffffffffffffff16611306610eb8565b73ffffffffffffffffffffffffffffffffffffffff161461135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135390613244565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c390613124565b60405180910390fd5b6113d581611ab1565b50565b600080823b905060008111915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b81518351146114a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611498906132c4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150890613184565b60405180910390fd5b600061151b611455565b905061152b818787878787611e13565b60005b8451811015611728576000858281518110611572577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008583815181106115b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f90613224565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461170d9190613478565b925050819055505050508061172190613622565b905061152e565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161179f929190613015565b60405180910390a46117b5818787878787611e1b565b505050505050565b600860019054906101000a900460ff1661180c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180390613144565b60405180910390fd5b6000611819306000610566565b90506000611828306001610566565b90506000611837306002610566565b905060008311806118485750600082115b806118535750600081115b611892576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188990613264565b60405180910390fd5b61189b33610ee2565b156118db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d290613104565b60405180910390fd5b60006118fc8284866118ed9190613478565b6118f79190613478565b612002565b9050600082821015611911576002905061193f565b82821015801561192b575083836119289190613478565b82105b15611939576001905061193e565b600090505b5b61195c303383600160405180602001604052806000815250611b91565b6005600081548092919061196f90613622565b91905055505050505050565b60008082905060005b8551811015611a495760008682815181106119c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311611a095782816040516020016119ec929190612e5f565b604051602081830303815290604052805190602001209250611a35565b8083604051602001611a1c929190612e5f565b6040516020818303038152906040528051906020012092505b508080611a4190613622565b915050611984565b508381149150509392505050565b600061010082611a6791906134ce565b9050600061010083611a7991906136a3565b9050806001901b6009600084815260200190815260200160002054176009600084815260200190815260200160002081905550505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060029080519060200190611b8d92919061230d565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf890613184565b60405180910390fd5b6000611c0b611455565b9050611c2b818787611c1c88612060565b611c2588612060565b87611e13565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb990613224565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d779190613478565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611df49291906132ff565b60405180910390a4611e0a828888888888612126565b50505050505050565b505050505050565b611e3a8473ffffffffffffffffffffffffffffffffffffffff166113d8565b15611ffa578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401611e80959493929190612f31565b602060405180830381600087803b158015611e9a57600080fd5b505af1925050508015611ecb57506040513d601f19601f82011682018060405250810190611ec89190612986565b60015b611f7157611ed7613790565b806308c379a01415611f345750611eec613c61565b80611ef75750611f36565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2b9190613082565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f68906130a4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fef906130c4565b60405180910390fd5b505b505050505050565b60006003600081548092919061201790613622565b9190505550814244336003546040516020016120369493929190612ec8565b6040516020818303038152906040528051906020012060001c61205991906136a3565b9050919050565b60606000600167ffffffffffffffff8111156120a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156120d35781602001602082028036833780820191505090505b5090508281600081518110612111577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6121458473ffffffffffffffffffffffffffffffffffffffff166113d8565b15612305578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161218b959493929190612f99565b602060405180830381600087803b1580156121a557600080fd5b505af19250505080156121d657506040513d601f19601f820116820180604052508101906121d39190612986565b60015b61227c576121e2613790565b806308c379a0141561223f57506121f7613c61565b806122025750612241565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122369190613082565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612273906130a4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fa906130c4565b60405180910390fd5b505b505050505050565b828054612319906135bf565b90600052602060002090601f01602090048101928261233b5760008555612382565b82601f1061235457805160ff1916838001178555612382565b82800160010185558215612382579182015b82811115612381578251825591602001919060010190612366565b5b50905061238f9190612393565b5090565b5b808211156123ac576000816000905550600101612394565b5090565b60006123c36123be8461334d565b613328565b905080838252602082019050828560208602820111156123e257600080fd5b60005b8581101561241257816123f88882612504565b8452602084019350602083019250506001810190506123e5565b5050509392505050565b600061242f61242a84613379565b613328565b9050808382526020820190508285602086028201111561244e57600080fd5b60005b8581101561247e5781612464888261265f565b845260208401935060208301925050600181019050612451565b5050509392505050565b600061249b612496846133a5565b613328565b9050828152602081018484840111156124b357600080fd5b6124be84828561357d565b509392505050565b60006124d96124d4846133d6565b613328565b9050828152602081018484840111156124f157600080fd5b6124fc84828561357d565b509392505050565b60008135905061251381613cf7565b92915050565b600082601f83011261252a57600080fd5b813561253a8482602086016123b0565b91505092915050565b60008083601f84011261255557600080fd5b8235905067ffffffffffffffff81111561256e57600080fd5b60208301915083602082028301111561258657600080fd5b9250929050565b600082601f83011261259e57600080fd5b81356125ae84826020860161241c565b91505092915050565b6000813590506125c681613d0e565b92915050565b6000813590506125db81613d25565b92915050565b6000813590506125f081613d3c565b92915050565b60008151905061260581613d3c565b92915050565b600082601f83011261261c57600080fd5b813561262c848260208601612488565b91505092915050565b600082601f83011261264657600080fd5b81356126568482602086016124c6565b91505092915050565b60008135905061266e81613d53565b92915050565b60006020828403121561268657600080fd5b600061269484828501612504565b91505092915050565b600080604083850312156126b057600080fd5b60006126be85828601612504565b92505060206126cf85828601612504565b9150509250929050565b600080600080600060a086880312156126f157600080fd5b60006126ff88828901612504565b955050602061271088828901612504565b945050604086013567ffffffffffffffff81111561272d57600080fd5b6127398882890161258d565b935050606086013567ffffffffffffffff81111561275657600080fd5b6127628882890161258d565b925050608086013567ffffffffffffffff81111561277f57600080fd5b61278b8882890161260b565b9150509295509295909350565b600080600080600060a086880312156127b057600080fd5b60006127be88828901612504565b95505060206127cf88828901612504565b94505060406127e08882890161265f565b93505060606127f18882890161265f565b925050608086013567ffffffffffffffff81111561280e57600080fd5b61281a8882890161260b565b9150509295509295909350565b6000806040838503121561283a57600080fd5b600061284885828601612504565b9250506020612859858286016125b7565b9150509250929050565b6000806040838503121561287657600080fd5b600061288485828601612504565b92505060206128958582860161265f565b9150509250929050565b600080604083850312156128b257600080fd5b600083013567ffffffffffffffff8111156128cc57600080fd5b6128d885828601612519565b925050602083013567ffffffffffffffff8111156128f557600080fd5b6129018582860161258d565b9150509250929050565b60006020828403121561291d57600080fd5b600061292b848285016125b7565b91505092915050565b60006020828403121561294657600080fd5b6000612954848285016125cc565b91505092915050565b60006020828403121561296f57600080fd5b600061297d848285016125e1565b91505092915050565b60006020828403121561299857600080fd5b60006129a6848285016125f6565b91505092915050565b6000602082840312156129c157600080fd5b600082013567ffffffffffffffff8111156129db57600080fd5b6129e784828501612635565b91505092915050565b600060208284031215612a0257600080fd5b6000612a108482850161265f565b91505092915050565b600080600060408486031215612a2e57600080fd5b6000612a3c8682870161265f565b935050602084013567ffffffffffffffff811115612a5957600080fd5b612a6586828701612543565b92509250509250925092565b6000612a7d8383612e2a565b60208301905092915050565b612a92816134ff565b82525050565b612aa9612aa4826134ff565b61366b565b82525050565b6000612aba82613417565b612ac48185613445565b9350612acf83613407565b8060005b83811015612b00578151612ae78882612a71565b9750612af283613438565b925050600181019050612ad3565b5085935050505092915050565b612b1681613511565b82525050565b612b258161351d565b82525050565b612b3c612b378261351d565b61367d565b82525050565b6000612b4d82613422565b612b578185613456565b9350612b6781856020860161358c565b612b70816137b2565b840191505092915050565b6000612b868261342d565b612b908185613467565b9350612ba081856020860161358c565b612ba9816137b2565b840191505092915050565b6000612bc1603483613467565b9150612bcc826137dd565b604082019050919050565b6000612be4602883613467565b9150612bef8261382c565b604082019050919050565b6000612c07602b83613467565b9150612c128261387b565b604082019050919050565b6000612c2a601283613467565b9150612c35826138ca565b602082019050919050565b6000612c4d602683613467565b9150612c58826138f3565b604082019050919050565b6000612c70601083613467565b9150612c7b82613942565b602082019050919050565b6000612c93602983613467565b9150612c9e8261396b565b604082019050919050565b6000612cb6602583613467565b9150612cc1826139ba565b604082019050919050565b6000612cd9603283613467565b9150612ce482613a09565b604082019050919050565b6000612cfc601683613467565b9150612d0782613a58565b602082019050919050565b6000612d1f601583613467565b9150612d2a82613a81565b602082019050919050565b6000612d42601283613467565b9150612d4d82613aaa565b602082019050919050565b6000612d65602a83613467565b9150612d7082613ad3565b604082019050919050565b6000612d88602083613467565b9150612d9382613b22565b602082019050919050565b6000612dab601483613467565b9150612db682613b4b565b602082019050919050565b6000612dce602983613467565b9150612dd982613b74565b604082019050919050565b6000612df1602983613467565b9150612dfc82613bc3565b604082019050919050565b6000612e14602883613467565b9150612e1f82613c12565b604082019050919050565b612e3381613573565b82525050565b612e4281613573565b82525050565b612e59612e5482613573565b613699565b82525050565b6000612e6b8285612b2b565b602082019150612e7b8284612b2b565b6020820191508190509392505050565b6000612e978286612e48565b602082019150612ea78285612a98565b601482019150612eb78284612e48565b602082019150819050949350505050565b6000612ed48287612e48565b602082019150612ee48286612e48565b602082019150612ef48285612a98565b601482019150612f048284612e48565b60208201915081905095945050505050565b6000602082019050612f2b6000830184612a89565b92915050565b600060a082019050612f466000830188612a89565b612f536020830187612a89565b8181036040830152612f658186612aaf565b90508181036060830152612f798185612aaf565b90508181036080830152612f8d8184612b42565b90509695505050505050565b600060a082019050612fae6000830188612a89565b612fbb6020830187612a89565b612fc86040830186612e39565b612fd56060830185612e39565b8181036080830152612fe78184612b42565b90509695505050505050565b6000602082019050818103600083015261300d8184612aaf565b905092915050565b6000604082019050818103600083015261302f8185612aaf565b905081810360208301526130438184612aaf565b90509392505050565b60006020820190506130616000830184612b0d565b92915050565b600060208201905061307c6000830184612b1c565b92915050565b6000602082019050818103600083015261309c8184612b7b565b905092915050565b600060208201905081810360008301526130bd81612bb4565b9050919050565b600060208201905081810360008301526130dd81612bd7565b9050919050565b600060208201905081810360008301526130fd81612bfa565b9050919050565b6000602082019050818103600083015261311d81612c1d565b9050919050565b6000602082019050818103600083015261313d81612c40565b9050919050565b6000602082019050818103600083015261315d81612c63565b9050919050565b6000602082019050818103600083015261317d81612c86565b9050919050565b6000602082019050818103600083015261319d81612ca9565b9050919050565b600060208201905081810360008301526131bd81612ccc565b9050919050565b600060208201905081810360008301526131dd81612cef565b9050919050565b600060208201905081810360008301526131fd81612d12565b9050919050565b6000602082019050818103600083015261321d81612d35565b9050919050565b6000602082019050818103600083015261323d81612d58565b9050919050565b6000602082019050818103600083015261325d81612d7b565b9050919050565b6000602082019050818103600083015261327d81612d9e565b9050919050565b6000602082019050818103600083015261329d81612dc1565b9050919050565b600060208201905081810360008301526132bd81612de4565b9050919050565b600060208201905081810360008301526132dd81612e07565b9050919050565b60006020820190506132f96000830184612e39565b92915050565b60006040820190506133146000830185612e39565b6133216020830184612e39565b9392505050565b6000613332613343565b905061333e82826135f1565b919050565b6000604051905090565b600067ffffffffffffffff82111561336857613367613761565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561339457613393613761565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156133c0576133bf613761565b5b6133c9826137b2565b9050602081019050919050565b600067ffffffffffffffff8211156133f1576133f0613761565b5b6133fa826137b2565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061348382613573565b915061348e83613573565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134c3576134c26136d4565b5b828201905092915050565b60006134d982613573565b91506134e483613573565b9250826134f4576134f3613703565b5b828204905092915050565b600061350a82613553565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156135aa57808201518184015260208101905061358f565b838111156135b9576000848401525b50505050565b600060028204905060018216806135d757607f821691505b602082108114156135eb576135ea613732565b5b50919050565b6135fa826137b2565b810181811067ffffffffffffffff8211171561361957613618613761565b5b80604052505050565b600061362d82613573565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156136605761365f6136d4565b5b600182019050919050565b600061367682613687565b9050919050565b6000819050919050565b6000613692826137c3565b9050919050565b6000819050919050565b60006136ae82613573565b91506136b983613573565b9250826136c9576136c8613703565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156137af5760046000803e6137ac6000516137d0565b90505b90565b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f416c7265616479206f776e7320706173732e0000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74206163746976652e00000000000000000000000000000000600082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f496e64657820616c726561647920636c61696d65642e00000000000000000000600082015250565b7f5075626c69632073616c65206e6f74206f70656e2e0000000000000000000000600082015250565b7f4e6f7420696e20616c6c6f77206c6973742e0000000000000000000000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4e6f206d6f726520737570706c79206c6566742e000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600060443d1015613c7157613cf4565b613c79613343565b60043d036004823e80513d602482011167ffffffffffffffff82111715613ca1575050613cf4565b808201805167ffffffffffffffff811115613cbf5750505050613cf4565b80602083010160043d038501811115613cdc575050505050613cf4565b613ceb826020018501866135f1565b82955050505050505b90565b613d00816134ff565b8114613d0b57600080fd5b50565b613d1781613511565b8114613d2257600080fd5b50565b613d2e8161351d565b8114613d3957600080fd5b50565b613d4581613527565b8114613d5057600080fd5b50565b613d5c81613573565b8114613d6757600080fd5b5056fea2646970667358221220756e40a1b5eb74936097283f1d0a93e1dd5531f59db1078937723de2b0b4b59364736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000007b20000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a0e7de33b1a20538b6bbcf63851cbd447909ca881cdb1c6c7fd9c4b32e4e1f4e640000000000000000000000000000000000000000000000000000000000000044697066733a2f2f697066732f516d5634554d6d744b7a52356f7a656767353352674334706b436967726f56315143534c43476537426f6d6e4e342f7b69647d2e6a736f6e00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : blackAmount (uint256): 1970
Arg [1] : platinumAmount (uint256): 20
Arg [2] : goldAmount (uint256): 10
Arg [3] : metadataUri (string): ipfs://ipfs/QmV4UMmtKzR5ozegg53RgC4pkCigroV1QCSLCGe7BomnN4/{id}.json
Arg [4] : merkleRoot_ (bytes32): 0xe7de33b1a20538b6bbcf63851cbd447909ca881cdb1c6c7fd9c4b32e4e1f4e64
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000007b2
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : e7de33b1a20538b6bbcf63851cbd447909ca881cdb1c6c7fd9c4b32e4e1f4e64
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [6] : 697066733a2f2f697066732f516d5634554d6d744b7a52356f7a656767353352
Arg [7] : 674334706b436967726f56315143534c43476537426f6d6e4e342f7b69647d2e
Arg [8] : 6a736f6e00000000000000000000000000000000000000000000000000000000
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.