Overview
Max Total Supply
0 ZPR NFT
Holders
87,255
Market
Volume (24H)
0.049 ETH
Min Price (24H)
$179.82 @ 0.049000 ETH
Max Price (24H)
$179.82 @ 0.049000 ETH
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Zapper_NFT_V2_0_1
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗ // ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║ // ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║ // ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║ // ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║ // ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝ // Copyright (C) 2021 zapper // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // ///@author Zapper ///@notice This contract manages Zapper V2 NFTs and Volts. /// Volts can be claimed through quests in order to mint various NFTs. /// Crafting combines NFTs of the same type into higher tier NFTs. NFTs /// can also be redemeed for Volts. // SPDX-License-Identifier: GPL-2.0 pragma solidity ^0.8.0; import "./ERC1155/ERC1155.sol"; import "./access/Ownable.sol"; import "./SignatureVerifier/SignatureVerifier_V2.sol"; import "./ERC1155/IERC1155.sol"; import "./utils/Strings.sol"; contract Zapper_NFT_V2_0_1 is ERC1155, Ownable, SignatureVerifier_V2 { // Used in pausable modifier bool public paused; // NFT name string public name; // NFT symbol string public symbol; // Season deadline uint256 public deadline; // Modifier to apply to cost of NFT when redeeming in bps uint256 public redeemModifier = 7500; // Quantity of NFTs consumed per crafting event uint256 public craftingRequirement = 3; // Mapping from token ID to token supply mapping(uint256 => uint256) private tokenSupply; // Mapping of accessory contracts that have permission to mint mapping(address => bool) public accessoryContract; // Total Volt supply uint256 public voltSupply; // Mapping from account to Volt balance mapping(address => uint256) public voltBalance; // Mapping from token ID to token existence mapping(uint256 => bool) private exists; // Mapping for the rarity classes for use in crafting mapping(uint256 => uint256) public nextRarity; // Mapping from token ID to token cost in volts mapping(uint256 => uint256) public cost; // Mapping from account to nonce mapping(address => uint256) public nonces; // Emitted when `account` claims Volts event ClaimVolts( address indexed account, uint256 voltsRecieved, uint256 nonce ); // Emitted when `account` burns Volts event BurnVolts(address indexed account, uint256 voltsBurned); // Emitted when `account` mints one or more NFTs by spending Volts event Mint(address indexed account, uint256 voltsSpent); // Emitted when `account` redeems Volts by burning one or more NFTs event Redeem(address indexed account, uint256 voltsRecieved); // Emitted when `account` crafts one or more of the same NFT event Craft(address indexed account, uint256 craftID); // Emitted when `account` crafts multiple different NFTs event CraftBatch(address indexed account, uint256[] craftIDs); // Emitted when a new NFT type is added event Add(uint256 id, uint256 cost, uint256 nextRarity); // Emitted when the baseURI is updated event updateBaseURI(string uri); modifier pausable { require(!paused, "Paused"); _; } modifier beforeDeadline { require(block.timestamp <= deadline, "Deadline elapsed"); _; } constructor( string memory _name, string memory _symbol, string memory _uri, address signer, address manager, uint256 _deadline ) ERC1155(_uri) SignatureVerifier_V2(signer) { name = _name; symbol = _symbol; deadline = _deadline; transferOwnership(manager); } /** * @dev Adds a new NFT and initializes crafting params * @param costs An array of the cost of each ID. 0 if it cannot * be crafted * @param nextRarities An array of higher rarity IDs which can be * crafted from the ID. 0 if max rarity. */ function add( uint256[] calldata ids, uint256[] calldata costs, uint256[] calldata nextRarities ) external onlyOwner { require( ids.length == costs.length && ids.length == nextRarities.length, "Mismatched array lengths" ); for (uint256 i = 0; i < ids.length; i++) { uint256 newId = ids[i]; require(!exists[newId], "ID already exists"); require(newId != 0, "Invalid ID"); exists[newId] = true; cost[newId] = costs[i]; nextRarity[newId] = nextRarities[i]; emit Add(newId, costs[i], nextRarities[i]); } } /** * @notice Claims Volts earned through quests * @param voltsEarned The quantity of Volts being awarded * @param signature The signature granting msg.sender the volts */ function claimVolts(uint256 voltsEarned, bytes calldata signature) external pausable beforeDeadline { bytes32 messageHash = getMessageHash(msg.sender, voltsEarned, nonces[msg.sender]++); require(verify(messageHash, signature), "Invalid Signature"); _createVolts(voltsEarned); emit ClaimVolts(msg.sender, voltsEarned, nonces[msg.sender]); } /** * @notice Burns Volts * @param voltsBurned The quantity of Volts being burned */ function burnVolts(uint256 voltsBurned) external pausable { _burnVolts(voltsBurned); emit BurnVolts(msg.sender, voltsBurned); } /** * @notice Mints a desired quantity of a single NFT ID * in exchange for Volts * @param id The ID of the NFT to mint * @param quantity The quantity of the NFT to mint */ function mint(uint256 id, uint256 quantity) external pausable { require(exists[id], "Invalid ID"); uint256 voltsSpent; if (!accessoryContract[msg.sender]) { require(cost[id] > 0, "Price not set"); voltsSpent = cost[id] * quantity; _burnVolts(voltsSpent); } _mint(msg.sender, id, quantity, new bytes(0)); emit Mint(msg.sender, voltsSpent); } /** * @notice Batch Mints desired quantities of different NFT IDs * in exchange for Volts * @param ids An array consisting of the IDs of the NFTs to mint * @param quantities An array consisting of the quantities of the NFTs to mint */ function mintBatch(uint256[] calldata ids, uint256[] calldata quantities) external pausable { require(ids.length == quantities.length, "Mismatched array lengths"); uint256 voltsSpent; if (!accessoryContract[msg.sender]) { for (uint256 i = 0; i < ids.length; i++) { require(exists[ids[i]], "Invalid ID"); require(cost[ids[i]] > 0, "Price not set"); voltsSpent += cost[ids[i]] * quantities[i]; } _burnVolts(voltsSpent); } else { for (uint256 i = 0; i < ids.length; i++) { require(exists[ids[i]], "Invalid ID"); } } _mintBatch(msg.sender, ids, quantities, new bytes(0)); emit Mint(msg.sender, voltsSpent); } /** * @notice Burns an NFT * @dev Does not award Volts! * @param id The ID of the NFT to burn * @param quantity The quantity of the NFT to burn */ function burn(uint256 id, uint256 quantity) external pausable { _burn(msg.sender, id, quantity); } /** * @notice Batch burns NFTs * @dev Does not award Volts! * @param ids An array consisting of the IDs of the NFTs to burn * @param quantities An array consisting of the quantities * of each NFT to burn */ function burnBatch(uint256[] calldata ids, uint256[] calldata quantities) external pausable { _burnBatch(msg.sender, ids, quantities); } /** * @notice Redeems an NFT for Volts. Redeeming NFTs is * subject to a modifier which returns some percentage of * the full cost of the NFT * @param id ID of the NFT to redeem * @param quantity The quantity of the NFT being redeemed */ function redeem(uint256 id, uint256 quantity) external pausable { require(cost[id] > 0, "Cannot redeem this type"); _burn(msg.sender, id, quantity); uint256 voltsRecieved = (cost[id] * quantity * redeemModifier) / 10000; _createVolts(voltsRecieved); emit Redeem(msg.sender, voltsRecieved); } /** * @notice Redeems multiple NFTs for Volts. Redeeming NFTs is * subject to a modifier which returns some percentage of * the full cost of the NFT * @param ids An array consisting of the IDs of the NFTs to redeem * @param quantities An array consisting of the quantities of * each NFT to redeem */ function redeemBatch(uint256[] calldata ids, uint256[] calldata quantities) external pausable { _burnBatch(msg.sender, ids, quantities); uint256 voltsRecieved; for (uint256 i = 0; i < ids.length; i++) { require(cost[ids[i]] > 0, "Cannot redeem this type"); voltsRecieved += (cost[ids[i]] * quantities[i] * redeemModifier) / 10000; } _createVolts(voltsRecieved); emit Redeem(msg.sender, voltsRecieved); } /** * @notice Crafts higher tier NFTs with lower tier NFTs * @param id ID of the NFT used for crafting * @param quantity The quantity of id to consume in crafting */ function craft(uint256 id, uint256 quantity) external pausable { uint256 craftID = nextRarity[id]; require(craftID != 0, "Already maximum rarity"); require( quantity % craftingRequirement == 0, "Incorrect quantity for crafting" ); _burn(msg.sender, id, quantity); uint256 craftQuantity = quantity / craftingRequirement; _mint(msg.sender, craftID, craftQuantity, new bytes(0)); emit Craft(msg.sender, craftID); } /** * @notice Crafts multiple different higher tier NFTs with * lower tier NFTs * @param ids An array consisting of the IDs of the NFT used for crafting * @param quantities An array consisting of the quantities of the NFT * to consume in crafting */ function craftBatch(uint256[] calldata ids, uint256[] calldata quantities) external pausable { _burnBatch(msg.sender, ids, quantities); uint256[] memory craftQuantities = new uint256[](quantities.length); uint256[] memory craftIds = new uint256[](ids.length); for (uint256 i = 0; i < ids.length; i++) { uint256 craftID = nextRarity[ids[i]]; require(craftID != 0, "Already maximum rarity"); require( quantities[i] % craftingRequirement == 0, "Incorrect quantity for crafting" ); craftIds[i] = craftID; craftQuantities[i] = quantities[i] / craftingRequirement; } _mintBatch(msg.sender, craftIds, craftQuantities, new bytes(0)); emit CraftBatch(msg.sender, craftIds); } /** * @dev Function to set the URI for all NFT IDs */ function setBaseURI(string calldata _uri) external onlyOwner { _setURI(_uri); emit updateBaseURI(_uri); } /** * @dev Returns the URI of a token given its ID * @param id ID of the token to query * @return uri of the token or an empty string if it does not exist */ function uri(uint256 id) public view override returns (string memory) { require(exists[id], "URI query for nonexistent token"); string memory baseUri = super.uri(0); return string(abi.encodePacked(baseUri, Strings.toString(id))); } /** * @notice Maps the rarity classes and Volt costs * for use in crafting * @param ids An array of the IDs being updated * @param costs An array of the cost of each ID * @param nextRarities An array of higher rarity IDs which * can be crafted from the ID */ function updateCraftingParameters( uint256[] calldata ids, uint256[] calldata costs, uint256[] calldata nextRarities ) external onlyOwner { require( ids.length == costs.length && ids.length == nextRarities.length, "Mismatched array lengths" ); for (uint256 i = 0; i < ids.length; i++) { require(exists[ids[i]], "ID does not exist"); cost[ids[i]] = costs[i]; nextRarity[ids[i]] = nextRarities[i]; } } /** * @dev Updates the modifier which is used when redeeming * NFTs for Volts */ function updateRedeemModifier(uint256 _redeemModifier) external onlyOwner { redeemModifier = _redeemModifier; } /** * @dev Updates the crafting requirement modifier which determines * the quantity of NFTs that are burned in order to craft * higher rarity NFTs */ function updateCraftingRequirement(uint256 _craftingRequirement) external onlyOwner { craftingRequirement = _craftingRequirement; } /** * @dev Updates the mapping of accessory contracts which have * special permssions to mint NFTs (lootbox, bridge, etc.) */ function updateAccessoryContracts(address _accessoryContract, bool allowed) external onlyOwner { accessoryContract[_accessoryContract] = allowed; } /** * @dev Updates the deadline after which Volts can no longer be claimed */ function updateDeadline(uint256 _deadline) external onlyOwner { deadline = _deadline; } /** * @dev Returns the total quantity for a token ID * @param id ID of the token to query * @return amount of token in existence */ function totalSupply(uint256 id) external view returns (uint256) { return tokenSupply[id]; } /** * @dev Pause or unpause the contract */ function pause() external onlyOwner { paused = !paused; } /** * @dev Function to return the message hash that will be * signed by the signer */ function getMessageHash( address account, uint256 volts, uint256 nonce ) public pure returns (bytes32) { return keccak256(abi.encodePacked(account, volts, nonce)); } /** * @dev Internal override function for minting an NFT */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal override { super._mint(account, id, amount, data); tokenSupply[id] += amount; } /** * @dev Internal override function for batch minting NFTs */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal override { super._mintBatch(to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { tokenSupply[ids[i]] += amounts[i]; } } /** * @dev Internal override function for burning an NFT */ function _burn( address account, uint256 id, uint256 amount ) internal override { super._burn(account, id, amount); tokenSupply[id] -= amount; } /** * @dev Internal override function for batch burning NFTs */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal override { super._burnBatch(account, ids, amounts); for (uint256 i; i < ids.length; i++) { tokenSupply[ids[i]] -= amounts[i]; } } /** * @dev Internal function to create volts */ function _createVolts(uint256 quantity) internal { voltBalance[msg.sender] += quantity; voltSupply += quantity; } /** * @dev Internal function to burn volts */ function _burnVolts(uint256 quantity) internal { require( voltBalance[msg.sender] >= quantity, "Insufficient Volt balance" ); voltBalance[msg.sender] -= quantity; voltSupply -= quantity; } }
// 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(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); 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" ); _balances[id][from] = fromBalance - amount; _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, 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( ids.length == amounts.length, "ERC1155: ids and amounts length mismatch" ); require(to != address(0), "ERC1155: transfer to the zero address"); require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); 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" ); _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" ); _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" ); _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(to).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(to).onERC1155BatchReceived.selector ) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle( address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value ); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll( address indexed account, address indexed operator, bool approved ); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗ // ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║ // ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║ // ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║ // ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║ // ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝ // Copyright (C) 2021 zapper // Copyright (c) 2018 Tasuku Nakamura // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // ///@author Zapper ///@notice This contract checks if a message has been signed by a verified signer via personal_sign. // SPDX-License-Identifier: GPL-2.0 pragma solidity ^0.8.0; contract SignatureVerifier_V2 { address public signer; constructor(address _signer) { signer = _signer; } function verify(bytes32 messageHash, bytes memory signature) internal view returns (bool) { bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash); return recoverSigner(ethSignedMessageHash, signature) == signer; } function getEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32) { return keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", messageHash ) ); } function recoverSigner( bytes32 _ethSignedMessageHash, bytes memory _signature ) internal pure returns (address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function splitSignature(bytes memory signature) internal pure returns ( bytes32 r, bytes32 s, uint8 v ) { require(signature.length == 65, "invalid signature length"); assembly { r := mload(add(signature, 32)) s := mload(add(signature, 64)) v := byte(0, mload(add(signature, 96))) } } }
// 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() { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// 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; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require( success, "Address: unable to send value, recipient may have reverted" ); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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); }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"manager","type":"address"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nextRarity","type":"uint256"}],"name":"Add","type":"event"},{"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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"voltsBurned","type":"uint256"}],"name":"BurnVolts","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"voltsRecieved","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"ClaimVolts","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"craftID","type":"uint256"}],"name":"Craft","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"craftIDs","type":"uint256[]"}],"name":"CraftBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"voltsSpent","type":"uint256"}],"name":"Mint","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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"voltsRecieved","type":"uint256"}],"name":"Redeem","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"updateBaseURI","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accessoryContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"costs","type":"uint256[]"},{"internalType":"uint256[]","name":"nextRarities","type":"uint256[]"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"voltsBurned","type":"uint256"}],"name":"burnVolts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"voltsEarned","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimVolts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"craft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"craftBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"craftingRequirement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"volts","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nextRarity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"redeemBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemModifier","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":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_accessoryContract","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"updateAccessoryContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"costs","type":"uint256[]"},{"internalType":"uint256[]","name":"nextRarities","type":"uint256[]"}],"name":"updateCraftingParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_craftingRequirement","type":"uint256"}],"name":"updateCraftingRequirement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"updateDeadline","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_redeemModifier","type":"uint256"}],"name":"updateRedeemModifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"voltBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voltSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052611d4c60085560036009553480156200001c57600080fd5b506040516200448d3803806200448d8339810160408190526200003f9162000388565b82846200004c81620000e7565b50600380546001600160a01b0319163390811790915560405181906000906000805160206200446d833981519152908290a350600480546001600160a01b0319166001600160a01b03929092169190911790558551620000b490600590602089019062000212565b508451620000ca90600690602088019062000212565b506007819055620000db8262000100565b50505050505062000496565b8051620000fc90600290602084019062000212565b5050565b6003546001600160a01b03163314620001605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620001c75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000157565b6003546040516001600160a01b038084169216906000805160206200446d83398151915290600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b828054620002209062000443565b90600052602060002090601f0160209004810192826200024457600085556200028f565b82601f106200025f57805160ff19168380011785556200028f565b828001600101855582156200028f579182015b828111156200028f57825182559160200191906001019062000272565b506200029d929150620002a1565b5090565b5b808211156200029d5760008155600101620002a2565b80516001600160a01b0381168114620002d057600080fd5b919050565b600082601f830112620002e6578081fd5b81516001600160401b038082111562000303576200030362000480565b604051601f8301601f19908116603f011681019082821181831017156200032e576200032e62000480565b816040528381526020925086838588010111156200034a578485fd5b8491505b838210156200036d57858201830151818301840152908201906200034e565b838211156200037e57848385830101525b9695505050505050565b60008060008060008060c08789031215620003a1578182fd5b86516001600160401b0380821115620003b8578384fd5b620003c68a838b01620002d5565b97506020890151915080821115620003dc578384fd5b620003ea8a838b01620002d5565b9650604089015191508082111562000400578384fd5b506200040f89828a01620002d5565b9450506200042060608801620002b8565b92506200043060808801620002b8565b915060a087015190509295509295509295565b600181811c908216806200045857607f821691505b602082108114156200047a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613fc780620004a66000396000f3fe608060405234801561001057600080fd5b50600436106102735760003560e01c806382f8711711610151578063afad42f6116100c3578063d351cfdc11610087578063d351cfdc14610580578063dab3798e14610593578063e985e9c5146105b6578063f0522590146105f2578063f242432a14610612578063f2fde38b1461062557600080fd5b8063afad42f614610514578063b008a4d014610527578063b390c0ab1461053a578063bd85b0391461054d578063d2b0737b1461056d57600080fd5b80638da5cb5b116101155780638da5cb5b146104a25780639097548d146104b357806395d89b41146104d35780639e57af97146104db5780639fe99370146104ee578063a22cb4651461050157600080fd5b806382f871171461045857806383ca4b6f1461046b5780638456cb591461047e5780638baf7b4d146104865780638c4c407c1461049957600080fd5b80632eb2c2d6116101ea5780635c975abb116101ae5780635c975abb146103ed5780635f56e5c714610401578063649117d31461040a578063715018a61461041d5780637cbc2373146104255780637ecebe001461043857600080fd5b80632eb2c2d61461038b57806342af18841461039e5780634e1273f4146103b1578063503d5f6c146103d157806355f804b3146103da57600080fd5b80631b908dd91161023c5780631b908dd9146102fe578063238ac9331461031157806324d22e871461033c578063263203c51461034f578063289137a11461036f57806329dcb0cf1461038257600080fd5b8062fdd58e1461027857806301ffc9a71461029e57806306fdde03146102c15780630e89341c146102d65780631b2ef1ca146102e9575b600080fd5b61028b6102863660046135e1565b610638565b6040519081526020015b60405180910390f35b6102b16102ac366004613803565b6106cf565b6040519015158152602001610295565b6102c9610721565b6040516102959190613aa4565b6102c96102e436600461387a565b6107af565b6102fc6102f73660046138db565b610850565b005b6102fc61030c36600461376e565b6109a3565b600454610324906001600160a01b031681565b6040516001600160a01b039091168152602001610295565b6102fc61034a36600461387a565b610b67565b61028b61035d36600461344d565b600d6020526000908152604090205481565b6102fc61037d3660046138db565b610b96565b61028b60075481565b6102fc6103993660046134a0565b610cd5565b6102fc6103ac36600461387a565b610f5b565b6103c46103bf36600461363c565b610f8a565b6040516102959190613a34565b61028b60095481565b6102fc6103e836600461383b565b6110eb565b6004546102b190600160a01b900460ff1681565b61028b60085481565b6102fc610418366004613706565b611191565b6102fc6113a2565b6102fc6104333660046138db565b611416565b61028b61044636600461344d565b60116020526000908152604090205481565b6102fc610466366004613892565b611514565b6102fc610479366004613706565b611682565b6102fc611720565b6102fc61049436600461387a565b61176b565b61028b600c5481565b6003546001600160a01b0316610324565b61028b6104c136600461387a565b60106020526000908152604090205481565b6102c96117d6565b6102fc6104e936600461387a565b6117e3565b6102fc6104fc3660046135a7565b611812565b6102fc61050f3660046135a7565b611867565b6102fc610522366004613706565b61193e565b6102fc61053536600461376e565b611cb4565b6102fc6105483660046138db565b611ef4565b61028b61055b36600461387a565b6000908152600a602052604090205490565b61028b61057b36600461360a565b611f2d565b6102fc61058e366004613706565b611f7c565b6102b16105a136600461344d565b600b6020526000908152604090205460ff1681565b6102b16105c436600461346e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61028b61060036600461387a565b600f6020526000908152604090205481565b6102fc610620366004613545565b612271565b6102fc61063336600461344d565b612418565b60006001600160a01b0383166106a95760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061070057506001600160e01b031982166303a24d0760e21b145b8061071b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005805461072e90613dff565b80601f016020809104026020016040519081016040528092919081815260200182805461075a90613dff565b80156107a75780601f1061077c576101008083540402835291602001916107a7565b820191906000526020600020905b81548152906001019060200180831161078a57829003601f168201915b505050505081565b6000818152600e602052604090205460609060ff166108105760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016106a0565b600061081c6000612503565b90508061082884612597565b604051602001610839929190613962565b604051602081830303815290604052915050919050565b600454600160a01b900460ff161561087a5760405162461bcd60e51b81526004016106a090613aff565b6000828152600e602052604090205460ff166108a85760405162461bcd60e51b81526004016106a090613ba8565b336000908152600b602052604081205460ff1661092f5760008381526010602052604090205461090a5760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081cd95d609a1b60448201526064016106a0565b600083815260106020526040902054610924908390613d9d565b905061092f816126b8565b61096833848460005b6040519080825280601f01601f191660200182016040528015610962576020820181803683370190505b50612757565b60405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885906020015b60405180910390a2505050565b6003546001600160a01b031633146109cd5760405162461bcd60e51b81526004016106a090613c59565b84831480156109db57508481145b6109f75760405162461bcd60e51b81526004016106a090613c8e565b60005b85811015610b5e57600e6000888884818110610a2657634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff16610a835760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016106a0565b848482818110610aa357634e487b7160e01b600052603260045260246000fd5b9050602002013560106000898985818110610ace57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002081905550828282818110610b0757634e487b7160e01b600052603260045260246000fd5b90506020020135600f6000898985818110610b3257634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080610b5690613e66565b9150506109fa565b50505050505050565b6003546001600160a01b03163314610b915760405162461bcd60e51b81526004016106a090613c59565b600955565b600454600160a01b900460ff1615610bc05760405162461bcd60e51b81526004016106a090613aff565b6000828152600f602052604090205480610c155760405162461bcd60e51b8152602060048201526016602482015275416c7265616479206d6178696d756d2072617269747960501b60448201526064016106a0565b600954610c229083613e81565b15610c6f5760405162461bcd60e51b815260206004820152601f60248201527f496e636f7272656374207175616e7469747920666f72206372616674696e670060448201526064016106a0565b610c7a33848461278c565b600060095483610c8a9190613d89565b9050610c993383836000610938565b60405182815233907f82bf558222c4c37aae80230f0a656373f327bcc6f1ac1ef73c385d4dec21b223906020015b60405180910390a250505050565b8151835114610cf65760405162461bcd60e51b81526004016106a090613cc5565b6001600160a01b038416610d1c5760405162461bcd60e51b81526004016106a090613b63565b6001600160a01b038516331480610d385750610d3885336105c4565b610d9f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016106a0565b3360005b8451811015610eed576000858281518110610dce57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110610dfa57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610e4a5760405162461bcd60e51b81526004016106a090613c0f565b610e548282613dbc565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610ed29190613d71565b9250508190555050505080610ee690613e66565b9050610da3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610f3d929190613a47565b60405180910390a4610f538187878787876127bf565b505050505050565b6003546001600160a01b03163314610f855760405162461bcd60e51b81526004016106a090613c59565b600755565b60608151835114610fef5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106a0565b600083516001600160401b0381111561101857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611041578160200160208202803683370190505b50905060005b84518110156110e3576110a885828151811061107357634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061109b57634e487b7160e01b600052603260045260246000fd5b6020026020010151610638565b8282815181106110c857634e487b7160e01b600052603260045260246000fd5b60209081029190910101526110dc81613e66565b9050611047565b509392505050565b6003546001600160a01b031633146111155760405162461bcd60e51b81526004016106a090613c59565b61115482828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292a92505050565b7f931688cb31e59bc860b2a6ca0126cc5ab5fc51b1ec8749cfd79a057c24b33c588282604051611185929190613a75565b60405180910390a15050565b600454600160a01b900460ff16156111bb5760405162461bcd60e51b81526004016106a090613aff565b611229338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061293d92505050565b6000805b8481101561135b5760006010600088888581811061125b57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002054116112b85760405162461bcd60e51b815260206004820152601760248201527643616e6e6f742072656465656d2074686973207479706560481b60448201526064016106a0565b6127106008548585848181106112de57634e487b7160e01b600052603260045260246000fd5b90506020020135601060008a8a8781811061130957634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020546113299190613d9d565b6113339190613d9d565b61133d9190613d89565b6113479083613d71565b91508061135381613e66565b91505061122d565b50611365816129dd565b60405181815233907f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6906020015b60405180910390a25050505050565b6003546001600160a01b031633146113cc5760405162461bcd60e51b81526004016106a090613c59565b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b600454600160a01b900460ff16156114405760405162461bcd60e51b81526004016106a090613aff565b6000828152601060205260409020546114955760405162461bcd60e51b815260206004820152601760248201527643616e6e6f742072656465656d2074686973207479706560481b60448201526064016106a0565b6114a033838361278c565b6008546000838152601060205260408120549091612710916114c3908590613d9d565b6114cd9190613d9d565b6114d79190613d89565b90506114e2816129dd565b60405181815233907f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a690602001610996565b600454600160a01b900460ff161561153e5760405162461bcd60e51b81526004016106a090613aff565b6007544211156115835760405162461bcd60e51b815260206004820152601060248201526f111958591b1a5b9948195b185c1cd95960821b60448201526064016106a0565b336000818152601160205260408120805491926115b2929091879190856115a983613e66565b91905055611f2d565b90506115f48184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a1592505050565b6116345760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b60448201526064016106a0565b61163d846129dd565b33600081815260116020908152604091829020548251888152918201527f84dfc8ca06308fffaa4f1db726d14912516138f571803591e31f6e861115fabe9101610cc7565b600454600160a01b900460ff16156116ac5760405162461bcd60e51b81526004016106a090613aff565b61171a338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061293d92505050565b50505050565b6003546001600160a01b0316331461174a5760405162461bcd60e51b81526004016106a090613c59565b6004805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600454600160a01b900460ff16156117955760405162461bcd60e51b81526004016106a090613aff565b61179e816126b8565b60405181815233907f5e0d769d3ed505e55795061ac4b2c163d0d5e0e0b735f967ac3b17208788641d9060200160405180910390a250565b6006805461072e90613dff565b6003546001600160a01b0316331461180d5760405162461bcd60e51b81526004016106a090613c59565b600855565b6003546001600160a01b0316331461183c5760405162461bcd60e51b81526004016106a090613c59565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b336001600160a01b03831614156118d25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106a0565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600454600160a01b900460ff16156119685760405162461bcd60e51b81526004016106a090613aff565b6119d6338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061293d92505050565b6000816001600160401b038111156119fe57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611a27578160200160208202803683370190505b5090506000846001600160401b03811115611a5257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611a7b578160200160208202803683370190505b50905060005b85811015611c31576000600f6000898985818110611aaf57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000205490508060001415611b115760405162461bcd60e51b8152602060048201526016602482015275416c7265616479206d6178696d756d2072617269747960501b60448201526064016106a0565b600954868684818110611b3457634e487b7160e01b600052603260045260246000fd5b90506020020135611b459190613e81565b15611b925760405162461bcd60e51b815260206004820152601f60248201527f496e636f7272656374207175616e7469747920666f72206372616674696e670060448201526064016106a0565b80838381518110611bb357634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600954868684818110611be257634e487b7160e01b600052603260045260246000fd5b90506020020135611bf39190613d89565b848381518110611c1357634e487b7160e01b600052603260045260246000fd5b60209081029190910101525080611c2981613e66565b915050611a81565b50611c6b33828460005b6040519080825280601f01601f191660200182016040528015611c65576020820181803683370190505b50612a9a565b336001600160a01b03167f05028d6a08b9899850722b5e39c783597a065af9a175d3f1b3c8d1c48365c63082604051611ca49190613a34565b60405180910390a2505050505050565b6003546001600160a01b03163314611cde5760405162461bcd60e51b81526004016106a090613c59565b8483148015611cec57508481145b611d085760405162461bcd60e51b81526004016106a090613c8e565b60005b85811015610b5e576000878783818110611d3557634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600e9093526040909220549192505060ff1615611d975760405162461bcd60e51b8152602060048201526011602482015270494420616c72656164792065786973747360781b60448201526064016106a0565b80611db45760405162461bcd60e51b81526004016106a090613ba8565b6000818152600e60205260409020805460ff19166001179055858583818110611ded57634e487b7160e01b600052603260045260246000fd5b905060200201356010600083815260200190815260200160002081905550838383818110611e2b57634e487b7160e01b600052603260045260246000fd5b90506020020135600f6000838152602001908152602001600020819055507f2a31efc7e9b3f67e8cd108d5980ce3d6ac332ef092f12c5f1d748a7dfdf48f0681878785818110611e8b57634e487b7160e01b600052603260045260246000fd5b90506020020135868686818110611eb257634e487b7160e01b600052603260045260246000fd5b90506020020135604051611ed9939291909283526020830191909152604082015260600190565b60405180910390a15080611eec81613e66565b915050611d0b565b600454600160a01b900460ff1615611f1e5760405162461bcd60e51b81526004016106a090613aff565b611f2933838361278c565b5050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b600454600160a01b900460ff1615611fa65760405162461bcd60e51b81526004016106a090613aff565b828114611fc55760405162461bcd60e51b81526004016106a090613c8e565b336000908152600b602052604081205460ff166121555760005b8481101561214657600e600087878481811061200b57634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff166120445760405162461bcd60e51b81526004016106a090613ba8565b60006010600088888581811061206a57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002054116120bd5760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081cd95d609a1b60448201526064016106a0565b8383828181106120dd57634e487b7160e01b600052603260045260246000fd5b905060200201356010600088888581811061210857634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020546121289190613d9d565b6121329083613d71565b91508061213e81613e66565b915050611fdf565b50612150816126b8565b6121d1565b60005b848110156121cf57600e600087878481811061218457634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff166121bd5760405162461bcd60e51b81526004016106a090613ba8565b806121c781613e66565b915050612158565b505b61223f3386868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808a0282810182019093528982529093508992508891829185019084908082843760009201829052509250611c3b915050565b60405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590602001611393565b6001600160a01b0384166122975760405162461bcd60e51b81526004016106a090613b63565b6001600160a01b0385163314806122b357506122b385336105c4565b6123115760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106a0565b3361233181878761232188612b3b565b61232a88612b3b565b5050505050565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156123725760405162461bcd60e51b81526004016106a090613c0f565b61237c8482613dbc565b6000868152602081815260408083206001600160a01b038c811685529252808320939093558816815290812080548692906123b8908490613d71565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b5e828888888888612b94565b6003546001600160a01b031633146124425760405162461bcd60e51b81526004016106a090613c59565b6001600160a01b0381166124a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a0565b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b60606002805461251290613dff565b80601f016020809104026020016040519081016040528092919081815260200182805461253e90613dff565b801561258b5780601f106125605761010080835404028352916020019161258b565b820191906000526020600020905b81548152906001019060200180831161256e57829003601f168201915b50505050509050919050565b6060816125bb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125e557806125cf81613e66565b91506125de9050600a83613d89565b91506125bf565b6000816001600160401b0381111561260d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612637576020820181803683370190505b5090505b84156126b05761264c600183613dbc565b9150612659600a86613e81565b612664906030613d71565b60f81b81838151811061268757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506126a9600a86613d89565b945061263b565b949350505050565b336000908152600d60205260409020548111156127175760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420566f6c742062616c616e63650000000000000060448201526064016106a0565b336000908152600d602052604081208054839290612736908490613dbc565b9250508190555080600c600082825461274f9190613dbc565b909155505050565b61276384848484612c5e565b6000838152600a602052604081208054849290612781908490613d71565b909155505050505050565b612797838383612d25565b6000828152600a6020526040812080548392906127b5908490613dbc565b9091555050505050565b6001600160a01b0384163b15610f535760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906128039089908990889088908890600401613991565b602060405180830381600087803b15801561281d57600080fd5b505af192505050801561284d575060408051601f3d908101601f1916820190925261284a9181019061381f565b60015b6128fa57612859613ed7565b806308c379a01415612893575061286e613eef565b806128795750612895565b8060405162461bcd60e51b81526004016106a09190613aa4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016106a0565b6001600160e01b0319811663bc197c8160e01b14610b5e5760405162461bcd60e51b81526004016106a090613ab7565b8051611f2990600290602084019061322e565b612948838383612e2f565b60005b825181101561171a5781818151811061297457634e487b7160e01b600052603260045260246000fd5b6020026020010151600a60008584815181106129a057634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546129c59190613dbc565b909155508190506129d581613e66565b91505061294b565b336000908152600d6020526040812080548392906129fc908490613d71565b9250508190555080600c600082825461274f9190613d71565b600080612a6f846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6004549091506001600160a01b0316612a888285612fd4565b6001600160a01b031614949350505050565b612aa684848484613053565b60005b835181101561232a57828181518110612ad257634e487b7160e01b600052603260045260246000fd5b6020026020010151600a6000868481518110612afe57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612b239190613d71565b90915550819050612b3381613e66565b915050612aa9565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b8357634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15610f535760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612bd890899089908890889088906004016139ef565b602060405180830381600087803b158015612bf257600080fd5b505af1925050508015612c22575060408051601f3d908101601f19168201909252612c1f9181019061381f565b60015b612c2e57612859613ed7565b6001600160e01b0319811663f23a6e6160e01b14610b5e5760405162461bcd60e51b81526004016106a090613ab7565b6001600160a01b038416612c845760405162461bcd60e51b81526004016106a090613d0d565b33612c958160008761232188612b3b565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612cc5908490613d71565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461232a81600087878787612b94565b6001600160a01b038316612d4b5760405162461bcd60e51b81526004016106a090613bcc565b33612d7b81856000612d5c87612b3b565b612d6587612b3b565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612dbc5760405162461bcd60e51b81526004016106a090613b1f565b612dc68382613dbc565b6000858152602081815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038316612e555760405162461bcd60e51b81526004016106a090613bcc565b8051825114612e765760405162461bcd60e51b81526004016106a090613cc5565b604080516020810190915260009081905233905b8351811015612f75576000848281518110612eb557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612ee157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015612f315760405162461bcd60e51b81526004016106a090613b1f565b612f3b8282613dbc565b6000938452602084815260408086206001600160a01b038c1687529091529093209290925550819050612f6d81613e66565b915050612e8a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612fc6929190613a47565b60405180910390a450505050565b600080600080612fe3856131ba565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa15801561303e573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6001600160a01b0384166130795760405162461bcd60e51b81526004016106a090613d0d565b815183511461309a5760405162461bcd60e51b81526004016106a090613cc5565b3360005b8451811015613152578381815181106130c757634e487b7160e01b600052603260045260246000fd5b60200260200101516000808784815181106130f257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461313a9190613d71565b9091555081905061314a81613e66565b91505061309e565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131a3929190613a47565b60405180910390a461232a816000878787876127bf565b600080600083516041146132105760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e677468000000000000000060448201526064016106a0565b50505060208101516040820151606090920151909260009190911a90565b82805461323a90613dff565b90600052602060002090601f01602090048101928261325c57600085556132a2565b82601f1061327557805160ff19168380011785556132a2565b828001600101855582156132a2579182015b828111156132a2578251825591602001919060010190613287565b506132ae9291506132b2565b5090565b5b808211156132ae57600081556001016132b3565b80356001600160a01b03811681146132de57600080fd5b919050565b60008083601f8401126132f4578182fd5b5081356001600160401b0381111561330a578182fd5b6020830191508360208260051b850101111561332557600080fd5b9250929050565b600082601f83011261333c578081fd5b8135602061334982613d4e565b6040516133568282613e3a565b8381528281019150858301600585901b87018401881015613375578586fd5b855b8581101561339357813584529284019290840190600101613377565b5090979650505050505050565b60008083601f8401126133b1578182fd5b5081356001600160401b038111156133c7578182fd5b60208301915083602082850101111561332557600080fd5b600082601f8301126133ef578081fd5b81356001600160401b0381111561340857613408613ec1565b60405161341f601f8301601f191660200182613e3a565b818152846020838601011115613433578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561345e578081fd5b613467826132c7565b9392505050565b60008060408385031215613480578081fd5b613489836132c7565b9150613497602084016132c7565b90509250929050565b600080600080600060a086880312156134b7578081fd5b6134c0866132c7565b94506134ce602087016132c7565b935060408601356001600160401b03808211156134e9578283fd5b6134f589838a0161332c565b9450606088013591508082111561350a578283fd5b61351689838a0161332c565b9350608088013591508082111561352b578283fd5b50613538888289016133df565b9150509295509295909350565b600080600080600060a0868803121561355c578081fd5b613565866132c7565b9450613573602087016132c7565b9350604086013592506060860135915060808601356001600160401b0381111561359b578182fd5b613538888289016133df565b600080604083850312156135b9578182fd5b6135c2836132c7565b9150602083013580151581146135d6578182fd5b809150509250929050565b600080604083850312156135f3578182fd5b6135fc836132c7565b946020939093013593505050565b60008060006060848603121561361e578283fd5b613627846132c7565b95602085013595506040909401359392505050565b6000806040838503121561364e578182fd5b82356001600160401b0380821115613664578384fd5b818501915085601f830112613677578384fd5b8135602061368482613d4e565b6040516136918282613e3a565b8381528281019150858301600585901b870184018b10156136b0578889fd5b8896505b848710156136d9576136c5816132c7565b8352600196909601959183019183016136b4565b50965050860135925050808211156136ef578283fd5b506136fc8582860161332c565b9150509250929050565b6000806000806040858703121561371b578182fd5b84356001600160401b0380821115613731578384fd5b61373d888389016132e3565b90965094506020870135915080821115613755578384fd5b50613762878288016132e3565b95989497509550505050565b60008060008060008060608789031215613786578384fd5b86356001600160401b038082111561379c578586fd5b6137a88a838b016132e3565b909850965060208901359150808211156137c0578586fd5b6137cc8a838b016132e3565b909650945060408901359150808211156137e4578283fd5b506137f189828a016132e3565b979a9699509497509295939492505050565b600060208284031215613814578081fd5b813561346781613f78565b600060208284031215613830578081fd5b815161346781613f78565b6000806020838503121561384d578182fd5b82356001600160401b03811115613862578283fd5b61386e858286016133a0565b90969095509350505050565b60006020828403121561388b578081fd5b5035919050565b6000806000604084860312156138a6578081fd5b8335925060208401356001600160401b038111156138c2578182fd5b6138ce868287016133a0565b9497909650939450505050565b600080604083850312156138ed578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561392b5781518752958201959082019060010161390f565b509495945050505050565b6000815180845261394e816020860160208601613dd3565b601f01601f19169290920160200192915050565b60008351613974818460208801613dd3565b835190830190613988818360208801613dd3565b01949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906139bd908301866138fc565b82810360608401526139cf81866138fc565b905082810360808401526139e38185613936565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613a2990830184613936565b979650505050505050565b60208152600061346760208301846138fc565b604081526000613a5a60408301856138fc565b8281036020840152613a6c81856138fc565b95945050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006134676020830184613936565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252600a9082015269125b9d985b1a5908125160b21b604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f4d69736d617463686564206172726179206c656e677468730000000000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115613d6757613d67613ec1565b5060051b60200190565b60008219821115613d8457613d84613e95565b500190565b600082613d9857613d98613eab565b500490565b6000816000190483118215151615613db757613db7613e95565b500290565b600082821015613dce57613dce613e95565b500390565b60005b83811015613dee578181015183820152602001613dd6565b8381111561171a5750506000910152565b600181811c90821680613e1357607f821691505b60208210811415613e3457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715613e5f57613e5f613ec1565b6040525050565b6000600019821415613e7a57613e7a613e95565b5060010190565b600082613e9057613e90613eab565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613eec57600481823e5160e01c5b90565b600060443d1015613efd5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613f2c57505050505090565b8285019150815181811115613f445750505050505090565b843d8701016020828501011115613f5e5750505050505090565b613f6d60208286010187613e3a565b509095945050505050565b6001600160e01b031981168114613f8e57600080fd5b5056fea2646970667358221220d93844d9ccc114f4db3574d14826241294f713e8c67c587a69b92011a20f9c2164736f6c634300080400338be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000031d65d5d908b0c3ec294bc4a0df6260129eb609c00000000000000000000000019327c8fc14585b075b98583613f5e46488e4c7f0000000000000000000000000000000000000000000000000000000061d1f630000000000000000000000000000000000000000000000000000000000000000d5a6170706572204e46542056320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075a5052204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017697066733a2f2f697066732f6e6f745965744c6976652f000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102735760003560e01c806382f8711711610151578063afad42f6116100c3578063d351cfdc11610087578063d351cfdc14610580578063dab3798e14610593578063e985e9c5146105b6578063f0522590146105f2578063f242432a14610612578063f2fde38b1461062557600080fd5b8063afad42f614610514578063b008a4d014610527578063b390c0ab1461053a578063bd85b0391461054d578063d2b0737b1461056d57600080fd5b80638da5cb5b116101155780638da5cb5b146104a25780639097548d146104b357806395d89b41146104d35780639e57af97146104db5780639fe99370146104ee578063a22cb4651461050157600080fd5b806382f871171461045857806383ca4b6f1461046b5780638456cb591461047e5780638baf7b4d146104865780638c4c407c1461049957600080fd5b80632eb2c2d6116101ea5780635c975abb116101ae5780635c975abb146103ed5780635f56e5c714610401578063649117d31461040a578063715018a61461041d5780637cbc2373146104255780637ecebe001461043857600080fd5b80632eb2c2d61461038b57806342af18841461039e5780634e1273f4146103b1578063503d5f6c146103d157806355f804b3146103da57600080fd5b80631b908dd91161023c5780631b908dd9146102fe578063238ac9331461031157806324d22e871461033c578063263203c51461034f578063289137a11461036f57806329dcb0cf1461038257600080fd5b8062fdd58e1461027857806301ffc9a71461029e57806306fdde03146102c15780630e89341c146102d65780631b2ef1ca146102e9575b600080fd5b61028b6102863660046135e1565b610638565b6040519081526020015b60405180910390f35b6102b16102ac366004613803565b6106cf565b6040519015158152602001610295565b6102c9610721565b6040516102959190613aa4565b6102c96102e436600461387a565b6107af565b6102fc6102f73660046138db565b610850565b005b6102fc61030c36600461376e565b6109a3565b600454610324906001600160a01b031681565b6040516001600160a01b039091168152602001610295565b6102fc61034a36600461387a565b610b67565b61028b61035d36600461344d565b600d6020526000908152604090205481565b6102fc61037d3660046138db565b610b96565b61028b60075481565b6102fc6103993660046134a0565b610cd5565b6102fc6103ac36600461387a565b610f5b565b6103c46103bf36600461363c565b610f8a565b6040516102959190613a34565b61028b60095481565b6102fc6103e836600461383b565b6110eb565b6004546102b190600160a01b900460ff1681565b61028b60085481565b6102fc610418366004613706565b611191565b6102fc6113a2565b6102fc6104333660046138db565b611416565b61028b61044636600461344d565b60116020526000908152604090205481565b6102fc610466366004613892565b611514565b6102fc610479366004613706565b611682565b6102fc611720565b6102fc61049436600461387a565b61176b565b61028b600c5481565b6003546001600160a01b0316610324565b61028b6104c136600461387a565b60106020526000908152604090205481565b6102c96117d6565b6102fc6104e936600461387a565b6117e3565b6102fc6104fc3660046135a7565b611812565b6102fc61050f3660046135a7565b611867565b6102fc610522366004613706565b61193e565b6102fc61053536600461376e565b611cb4565b6102fc6105483660046138db565b611ef4565b61028b61055b36600461387a565b6000908152600a602052604090205490565b61028b61057b36600461360a565b611f2d565b6102fc61058e366004613706565b611f7c565b6102b16105a136600461344d565b600b6020526000908152604090205460ff1681565b6102b16105c436600461346e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61028b61060036600461387a565b600f6020526000908152604090205481565b6102fc610620366004613545565b612271565b6102fc61063336600461344d565b612418565b60006001600160a01b0383166106a95760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061070057506001600160e01b031982166303a24d0760e21b145b8061071b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005805461072e90613dff565b80601f016020809104026020016040519081016040528092919081815260200182805461075a90613dff565b80156107a75780601f1061077c576101008083540402835291602001916107a7565b820191906000526020600020905b81548152906001019060200180831161078a57829003601f168201915b505050505081565b6000818152600e602052604090205460609060ff166108105760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016106a0565b600061081c6000612503565b90508061082884612597565b604051602001610839929190613962565b604051602081830303815290604052915050919050565b600454600160a01b900460ff161561087a5760405162461bcd60e51b81526004016106a090613aff565b6000828152600e602052604090205460ff166108a85760405162461bcd60e51b81526004016106a090613ba8565b336000908152600b602052604081205460ff1661092f5760008381526010602052604090205461090a5760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081cd95d609a1b60448201526064016106a0565b600083815260106020526040902054610924908390613d9d565b905061092f816126b8565b61096833848460005b6040519080825280601f01601f191660200182016040528015610962576020820181803683370190505b50612757565b60405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885906020015b60405180910390a2505050565b6003546001600160a01b031633146109cd5760405162461bcd60e51b81526004016106a090613c59565b84831480156109db57508481145b6109f75760405162461bcd60e51b81526004016106a090613c8e565b60005b85811015610b5e57600e6000888884818110610a2657634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff16610a835760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016106a0565b848482818110610aa357634e487b7160e01b600052603260045260246000fd5b9050602002013560106000898985818110610ace57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002081905550828282818110610b0757634e487b7160e01b600052603260045260246000fd5b90506020020135600f6000898985818110610b3257634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080610b5690613e66565b9150506109fa565b50505050505050565b6003546001600160a01b03163314610b915760405162461bcd60e51b81526004016106a090613c59565b600955565b600454600160a01b900460ff1615610bc05760405162461bcd60e51b81526004016106a090613aff565b6000828152600f602052604090205480610c155760405162461bcd60e51b8152602060048201526016602482015275416c7265616479206d6178696d756d2072617269747960501b60448201526064016106a0565b600954610c229083613e81565b15610c6f5760405162461bcd60e51b815260206004820152601f60248201527f496e636f7272656374207175616e7469747920666f72206372616674696e670060448201526064016106a0565b610c7a33848461278c565b600060095483610c8a9190613d89565b9050610c993383836000610938565b60405182815233907f82bf558222c4c37aae80230f0a656373f327bcc6f1ac1ef73c385d4dec21b223906020015b60405180910390a250505050565b8151835114610cf65760405162461bcd60e51b81526004016106a090613cc5565b6001600160a01b038416610d1c5760405162461bcd60e51b81526004016106a090613b63565b6001600160a01b038516331480610d385750610d3885336105c4565b610d9f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016106a0565b3360005b8451811015610eed576000858281518110610dce57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110610dfa57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610e4a5760405162461bcd60e51b81526004016106a090613c0f565b610e548282613dbc565b60008085815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055508160008085815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610ed29190613d71565b9250508190555050505080610ee690613e66565b9050610da3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610f3d929190613a47565b60405180910390a4610f538187878787876127bf565b505050505050565b6003546001600160a01b03163314610f855760405162461bcd60e51b81526004016106a090613c59565b600755565b60608151835114610fef5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106a0565b600083516001600160401b0381111561101857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611041578160200160208202803683370190505b50905060005b84518110156110e3576110a885828151811061107357634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061109b57634e487b7160e01b600052603260045260246000fd5b6020026020010151610638565b8282815181106110c857634e487b7160e01b600052603260045260246000fd5b60209081029190910101526110dc81613e66565b9050611047565b509392505050565b6003546001600160a01b031633146111155760405162461bcd60e51b81526004016106a090613c59565b61115482828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292a92505050565b7f931688cb31e59bc860b2a6ca0126cc5ab5fc51b1ec8749cfd79a057c24b33c588282604051611185929190613a75565b60405180910390a15050565b600454600160a01b900460ff16156111bb5760405162461bcd60e51b81526004016106a090613aff565b611229338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061293d92505050565b6000805b8481101561135b5760006010600088888581811061125b57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002054116112b85760405162461bcd60e51b815260206004820152601760248201527643616e6e6f742072656465656d2074686973207479706560481b60448201526064016106a0565b6127106008548585848181106112de57634e487b7160e01b600052603260045260246000fd5b90506020020135601060008a8a8781811061130957634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020546113299190613d9d565b6113339190613d9d565b61133d9190613d89565b6113479083613d71565b91508061135381613e66565b91505061122d565b50611365816129dd565b60405181815233907f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6906020015b60405180910390a25050505050565b6003546001600160a01b031633146113cc5760405162461bcd60e51b81526004016106a090613c59565b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b600454600160a01b900460ff16156114405760405162461bcd60e51b81526004016106a090613aff565b6000828152601060205260409020546114955760405162461bcd60e51b815260206004820152601760248201527643616e6e6f742072656465656d2074686973207479706560481b60448201526064016106a0565b6114a033838361278c565b6008546000838152601060205260408120549091612710916114c3908590613d9d565b6114cd9190613d9d565b6114d79190613d89565b90506114e2816129dd565b60405181815233907f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a690602001610996565b600454600160a01b900460ff161561153e5760405162461bcd60e51b81526004016106a090613aff565b6007544211156115835760405162461bcd60e51b815260206004820152601060248201526f111958591b1a5b9948195b185c1cd95960821b60448201526064016106a0565b336000818152601160205260408120805491926115b2929091879190856115a983613e66565b91905055611f2d565b90506115f48184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a1592505050565b6116345760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b60448201526064016106a0565b61163d846129dd565b33600081815260116020908152604091829020548251888152918201527f84dfc8ca06308fffaa4f1db726d14912516138f571803591e31f6e861115fabe9101610cc7565b600454600160a01b900460ff16156116ac5760405162461bcd60e51b81526004016106a090613aff565b61171a338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061293d92505050565b50505050565b6003546001600160a01b0316331461174a5760405162461bcd60e51b81526004016106a090613c59565b6004805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600454600160a01b900460ff16156117955760405162461bcd60e51b81526004016106a090613aff565b61179e816126b8565b60405181815233907f5e0d769d3ed505e55795061ac4b2c163d0d5e0e0b735f967ac3b17208788641d9060200160405180910390a250565b6006805461072e90613dff565b6003546001600160a01b0316331461180d5760405162461bcd60e51b81526004016106a090613c59565b600855565b6003546001600160a01b0316331461183c5760405162461bcd60e51b81526004016106a090613c59565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b336001600160a01b03831614156118d25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106a0565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600454600160a01b900460ff16156119685760405162461bcd60e51b81526004016106a090613aff565b6119d6338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061293d92505050565b6000816001600160401b038111156119fe57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611a27578160200160208202803683370190505b5090506000846001600160401b03811115611a5257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611a7b578160200160208202803683370190505b50905060005b85811015611c31576000600f6000898985818110611aaf57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000205490508060001415611b115760405162461bcd60e51b8152602060048201526016602482015275416c7265616479206d6178696d756d2072617269747960501b60448201526064016106a0565b600954868684818110611b3457634e487b7160e01b600052603260045260246000fd5b90506020020135611b459190613e81565b15611b925760405162461bcd60e51b815260206004820152601f60248201527f496e636f7272656374207175616e7469747920666f72206372616674696e670060448201526064016106a0565b80838381518110611bb357634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600954868684818110611be257634e487b7160e01b600052603260045260246000fd5b90506020020135611bf39190613d89565b848381518110611c1357634e487b7160e01b600052603260045260246000fd5b60209081029190910101525080611c2981613e66565b915050611a81565b50611c6b33828460005b6040519080825280601f01601f191660200182016040528015611c65576020820181803683370190505b50612a9a565b336001600160a01b03167f05028d6a08b9899850722b5e39c783597a065af9a175d3f1b3c8d1c48365c63082604051611ca49190613a34565b60405180910390a2505050505050565b6003546001600160a01b03163314611cde5760405162461bcd60e51b81526004016106a090613c59565b8483148015611cec57508481145b611d085760405162461bcd60e51b81526004016106a090613c8e565b60005b85811015610b5e576000878783818110611d3557634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600e9093526040909220549192505060ff1615611d975760405162461bcd60e51b8152602060048201526011602482015270494420616c72656164792065786973747360781b60448201526064016106a0565b80611db45760405162461bcd60e51b81526004016106a090613ba8565b6000818152600e60205260409020805460ff19166001179055858583818110611ded57634e487b7160e01b600052603260045260246000fd5b905060200201356010600083815260200190815260200160002081905550838383818110611e2b57634e487b7160e01b600052603260045260246000fd5b90506020020135600f6000838152602001908152602001600020819055507f2a31efc7e9b3f67e8cd108d5980ce3d6ac332ef092f12c5f1d748a7dfdf48f0681878785818110611e8b57634e487b7160e01b600052603260045260246000fd5b90506020020135868686818110611eb257634e487b7160e01b600052603260045260246000fd5b90506020020135604051611ed9939291909283526020830191909152604082015260600190565b60405180910390a15080611eec81613e66565b915050611d0b565b600454600160a01b900460ff1615611f1e5760405162461bcd60e51b81526004016106a090613aff565b611f2933838361278c565b5050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b600454600160a01b900460ff1615611fa65760405162461bcd60e51b81526004016106a090613aff565b828114611fc55760405162461bcd60e51b81526004016106a090613c8e565b336000908152600b602052604081205460ff166121555760005b8481101561214657600e600087878481811061200b57634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff166120445760405162461bcd60e51b81526004016106a090613ba8565b60006010600088888581811061206a57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002054116120bd5760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081cd95d609a1b60448201526064016106a0565b8383828181106120dd57634e487b7160e01b600052603260045260246000fd5b905060200201356010600088888581811061210857634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020546121289190613d9d565b6121329083613d71565b91508061213e81613e66565b915050611fdf565b50612150816126b8565b6121d1565b60005b848110156121cf57600e600087878481811061218457634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff166121bd5760405162461bcd60e51b81526004016106a090613ba8565b806121c781613e66565b915050612158565b505b61223f3386868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808a0282810182019093528982529093508992508891829185019084908082843760009201829052509250611c3b915050565b60405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590602001611393565b6001600160a01b0384166122975760405162461bcd60e51b81526004016106a090613b63565b6001600160a01b0385163314806122b357506122b385336105c4565b6123115760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106a0565b3361233181878761232188612b3b565b61232a88612b3b565b5050505050565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156123725760405162461bcd60e51b81526004016106a090613c0f565b61237c8482613dbc565b6000868152602081815260408083206001600160a01b038c811685529252808320939093558816815290812080548692906123b8908490613d71565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b5e828888888888612b94565b6003546001600160a01b031633146124425760405162461bcd60e51b81526004016106a090613c59565b6001600160a01b0381166124a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a0565b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b60606002805461251290613dff565b80601f016020809104026020016040519081016040528092919081815260200182805461253e90613dff565b801561258b5780601f106125605761010080835404028352916020019161258b565b820191906000526020600020905b81548152906001019060200180831161256e57829003601f168201915b50505050509050919050565b6060816125bb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125e557806125cf81613e66565b91506125de9050600a83613d89565b91506125bf565b6000816001600160401b0381111561260d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612637576020820181803683370190505b5090505b84156126b05761264c600183613dbc565b9150612659600a86613e81565b612664906030613d71565b60f81b81838151811061268757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506126a9600a86613d89565b945061263b565b949350505050565b336000908152600d60205260409020548111156127175760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420566f6c742062616c616e63650000000000000060448201526064016106a0565b336000908152600d602052604081208054839290612736908490613dbc565b9250508190555080600c600082825461274f9190613dbc565b909155505050565b61276384848484612c5e565b6000838152600a602052604081208054849290612781908490613d71565b909155505050505050565b612797838383612d25565b6000828152600a6020526040812080548392906127b5908490613dbc565b9091555050505050565b6001600160a01b0384163b15610f535760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906128039089908990889088908890600401613991565b602060405180830381600087803b15801561281d57600080fd5b505af192505050801561284d575060408051601f3d908101601f1916820190925261284a9181019061381f565b60015b6128fa57612859613ed7565b806308c379a01415612893575061286e613eef565b806128795750612895565b8060405162461bcd60e51b81526004016106a09190613aa4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016106a0565b6001600160e01b0319811663bc197c8160e01b14610b5e5760405162461bcd60e51b81526004016106a090613ab7565b8051611f2990600290602084019061322e565b612948838383612e2f565b60005b825181101561171a5781818151811061297457634e487b7160e01b600052603260045260246000fd5b6020026020010151600a60008584815181106129a057634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546129c59190613dbc565b909155508190506129d581613e66565b91505061294b565b336000908152600d6020526040812080548392906129fc908490613d71565b9250508190555080600c600082825461274f9190613d71565b600080612a6f846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6004549091506001600160a01b0316612a888285612fd4565b6001600160a01b031614949350505050565b612aa684848484613053565b60005b835181101561232a57828181518110612ad257634e487b7160e01b600052603260045260246000fd5b6020026020010151600a6000868481518110612afe57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612b239190613d71565b90915550819050612b3381613e66565b915050612aa9565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b8357634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15610f535760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612bd890899089908890889088906004016139ef565b602060405180830381600087803b158015612bf257600080fd5b505af1925050508015612c22575060408051601f3d908101601f19168201909252612c1f9181019061381f565b60015b612c2e57612859613ed7565b6001600160e01b0319811663f23a6e6160e01b14610b5e5760405162461bcd60e51b81526004016106a090613ab7565b6001600160a01b038416612c845760405162461bcd60e51b81526004016106a090613d0d565b33612c958160008761232188612b3b565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612cc5908490613d71565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461232a81600087878787612b94565b6001600160a01b038316612d4b5760405162461bcd60e51b81526004016106a090613bcc565b33612d7b81856000612d5c87612b3b565b612d6587612b3b565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612dbc5760405162461bcd60e51b81526004016106a090613b1f565b612dc68382613dbc565b6000858152602081815260408083206001600160a01b038a811680865291845282852095909555815189815292830188905292938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038316612e555760405162461bcd60e51b81526004016106a090613bcc565b8051825114612e765760405162461bcd60e51b81526004016106a090613cc5565b604080516020810190915260009081905233905b8351811015612f75576000848281518110612eb557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612ee157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015612f315760405162461bcd60e51b81526004016106a090613b1f565b612f3b8282613dbc565b6000938452602084815260408086206001600160a01b038c1687529091529093209290925550819050612f6d81613e66565b915050612e8a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612fc6929190613a47565b60405180910390a450505050565b600080600080612fe3856131ba565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa15801561303e573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6001600160a01b0384166130795760405162461bcd60e51b81526004016106a090613d0d565b815183511461309a5760405162461bcd60e51b81526004016106a090613cc5565b3360005b8451811015613152578381815181106130c757634e487b7160e01b600052603260045260246000fd5b60200260200101516000808784815181106130f257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461313a9190613d71565b9091555081905061314a81613e66565b91505061309e565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131a3929190613a47565b60405180910390a461232a816000878787876127bf565b600080600083516041146132105760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e677468000000000000000060448201526064016106a0565b50505060208101516040820151606090920151909260009190911a90565b82805461323a90613dff565b90600052602060002090601f01602090048101928261325c57600085556132a2565b82601f1061327557805160ff19168380011785556132a2565b828001600101855582156132a2579182015b828111156132a2578251825591602001919060010190613287565b506132ae9291506132b2565b5090565b5b808211156132ae57600081556001016132b3565b80356001600160a01b03811681146132de57600080fd5b919050565b60008083601f8401126132f4578182fd5b5081356001600160401b0381111561330a578182fd5b6020830191508360208260051b850101111561332557600080fd5b9250929050565b600082601f83011261333c578081fd5b8135602061334982613d4e565b6040516133568282613e3a565b8381528281019150858301600585901b87018401881015613375578586fd5b855b8581101561339357813584529284019290840190600101613377565b5090979650505050505050565b60008083601f8401126133b1578182fd5b5081356001600160401b038111156133c7578182fd5b60208301915083602082850101111561332557600080fd5b600082601f8301126133ef578081fd5b81356001600160401b0381111561340857613408613ec1565b60405161341f601f8301601f191660200182613e3a565b818152846020838601011115613433578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561345e578081fd5b613467826132c7565b9392505050565b60008060408385031215613480578081fd5b613489836132c7565b9150613497602084016132c7565b90509250929050565b600080600080600060a086880312156134b7578081fd5b6134c0866132c7565b94506134ce602087016132c7565b935060408601356001600160401b03808211156134e9578283fd5b6134f589838a0161332c565b9450606088013591508082111561350a578283fd5b61351689838a0161332c565b9350608088013591508082111561352b578283fd5b50613538888289016133df565b9150509295509295909350565b600080600080600060a0868803121561355c578081fd5b613565866132c7565b9450613573602087016132c7565b9350604086013592506060860135915060808601356001600160401b0381111561359b578182fd5b613538888289016133df565b600080604083850312156135b9578182fd5b6135c2836132c7565b9150602083013580151581146135d6578182fd5b809150509250929050565b600080604083850312156135f3578182fd5b6135fc836132c7565b946020939093013593505050565b60008060006060848603121561361e578283fd5b613627846132c7565b95602085013595506040909401359392505050565b6000806040838503121561364e578182fd5b82356001600160401b0380821115613664578384fd5b818501915085601f830112613677578384fd5b8135602061368482613d4e565b6040516136918282613e3a565b8381528281019150858301600585901b870184018b10156136b0578889fd5b8896505b848710156136d9576136c5816132c7565b8352600196909601959183019183016136b4565b50965050860135925050808211156136ef578283fd5b506136fc8582860161332c565b9150509250929050565b6000806000806040858703121561371b578182fd5b84356001600160401b0380821115613731578384fd5b61373d888389016132e3565b90965094506020870135915080821115613755578384fd5b50613762878288016132e3565b95989497509550505050565b60008060008060008060608789031215613786578384fd5b86356001600160401b038082111561379c578586fd5b6137a88a838b016132e3565b909850965060208901359150808211156137c0578586fd5b6137cc8a838b016132e3565b909650945060408901359150808211156137e4578283fd5b506137f189828a016132e3565b979a9699509497509295939492505050565b600060208284031215613814578081fd5b813561346781613f78565b600060208284031215613830578081fd5b815161346781613f78565b6000806020838503121561384d578182fd5b82356001600160401b03811115613862578283fd5b61386e858286016133a0565b90969095509350505050565b60006020828403121561388b578081fd5b5035919050565b6000806000604084860312156138a6578081fd5b8335925060208401356001600160401b038111156138c2578182fd5b6138ce868287016133a0565b9497909650939450505050565b600080604083850312156138ed578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561392b5781518752958201959082019060010161390f565b509495945050505050565b6000815180845261394e816020860160208601613dd3565b601f01601f19169290920160200192915050565b60008351613974818460208801613dd3565b835190830190613988818360208801613dd3565b01949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906139bd908301866138fc565b82810360608401526139cf81866138fc565b905082810360808401526139e38185613936565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613a2990830184613936565b979650505050505050565b60208152600061346760208301846138fc565b604081526000613a5a60408301856138fc565b8281036020840152613a6c81856138fc565b95945050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006134676020830184613936565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252600a9082015269125b9d985b1a5908125160b21b604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f4d69736d617463686564206172726179206c656e677468730000000000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115613d6757613d67613ec1565b5060051b60200190565b60008219821115613d8457613d84613e95565b500190565b600082613d9857613d98613eab565b500490565b6000816000190483118215151615613db757613db7613e95565b500290565b600082821015613dce57613dce613e95565b500390565b60005b83811015613dee578181015183820152602001613dd6565b8381111561171a5750506000910152565b600181811c90821680613e1357607f821691505b60208210811415613e3457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715613e5f57613e5f613ec1565b6040525050565b6000600019821415613e7a57613e7a613e95565b5060010190565b600082613e9057613e90613eab565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613eec57600481823e5160e01c5b90565b600060443d1015613efd5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613f2c57505050505090565b8285019150815181811115613f445750505050505090565b843d8701016020828501011115613f5e5750505050505090565b613f6d60208286010187613e3a565b509095945050505050565b6001600160e01b031981168114613f8e57600080fd5b5056fea2646970667358221220d93844d9ccc114f4db3574d14826241294f713e8c67c587a69b92011a20f9c2164736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000031d65d5d908b0c3ec294bc4a0df6260129eb609c00000000000000000000000019327c8fc14585b075b98583613f5e46488e4c7f0000000000000000000000000000000000000000000000000000000061d1f630000000000000000000000000000000000000000000000000000000000000000d5a6170706572204e46542056320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075a5052204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017697066733a2f2f697066732f6e6f745965744c6976652f000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Zapper NFT V2
Arg [1] : _symbol (string): ZPR NFT
Arg [2] : _uri (string): ipfs://ipfs/notYetLive/
Arg [3] : signer (address): 0x31D65D5d908B0c3ec294bc4A0Df6260129Eb609c
Arg [4] : manager (address): 0x19327c8fC14585b075b98583613F5E46488e4c7f
Arg [5] : _deadline (uint256): 1641150000
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000031d65d5d908b0c3ec294bc4a0df6260129eb609c
Arg [4] : 00000000000000000000000019327c8fc14585b075b98583613f5e46488e4c7f
Arg [5] : 0000000000000000000000000000000000000000000000000000000061d1f630
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [7] : 5a6170706572204e465420563200000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [9] : 5a5052204e465400000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [11] : 697066733a2f2f697066732f6e6f745965744c6976652f000000000000000000
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.