ERC-1155
Overview
Max Total Supply
10,829 NCAT
Holders
1,668
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NANOCATS
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import '@openzeppelin/contracts/interfaces/IERC2981.sol'; import '@openzeppelin/contracts/interfaces/IERC20.sol'; import '@openzeppelin/contracts/interfaces/IERC721.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; contract NANOCATS is ERC1155Supply, Ownable, ReentrancyGuard, IERC2981 { using Strings for uint256; bool public transferActive = false; bool public mintActive = false; uint8 public seasonNumber = 0; // Seasons start at # 1 uint8 private constant NV1_id = 1; // first of two types uint8 private constant NV2_id = 2; // second of two types uint8 private constant mintBatchLimit = 5; // limit of how many NV2s can be minted in a single transaction uint16 public constant NV1_SALE_SUPPLY = 12095; // Max number of NV1s that can be minted uint16 public constant NV1_RESERVE = 405; // Reserved NV1s for the team // Total NV1 will be 12500 bool private nv1ReserveMinted = false; bool private nv2ReserveMinted = false; uint16 public NV2_SEASON_SUPPLY; // Max number of NV2s that can be minted in a season uint16 public NV2_SEASON_RESERVE; // Max number of NV2s that can be minted in a season uint16 public NV2_SEASON_MINTED; // Total number of NV2s minted so far in the season uint16 internal royalty = 1000; // base 10000, 10% uint16 public constant SPLIT_BASE = 10000; uint16 public constant BASE = 10000; uint32 public redeemStart; // May 27, 2022 1pm EST uint32 public redeemEnd; // May 27, 2022 11pm EST string public symbol; // NCAT string public name; // NANOCATS string public uriPrefix; string public uriSuffix; string private contractMetadata = 'contract.json'; struct SeasonDate { uint32 seasonPrivateSaleStart; uint32 seasonPrivateSaleEnd; uint32 seasonPublicSaleStart; uint32 seasonPublicSaleEnd; } SeasonDate public seasonDates; // [12,30,245,270,526,607,778,780,917,966,1262,1849,2138,2457,2491,2506,2546,2599,2700,2706,2744,2877,2968,3195,3249,3316,3382,3410,3440,3538,3639,3682,3776,3790,3823,4020,4363,4745,4747,4748,4787,4911,5766,5770,6203,6263,6386,6389,6446,6534,6560,7005,7376,7395,8110,8439,8720,8772,8787,8807,8817,8862,8865,8869,8886,8940,8976,9145,9207,9255,9421,9431,9450,9472,9511,9642,9654,9849,9963,10023,10110,10138,10380,10432,10546,10723,10809,10845,11042,11231,11353,11754,11823,11940,11979]; bool[12000] private mintedCBOT; // To keep track of Catbots used to mint NV2 bool[12000] private redeemedCBOT; // To keep track of Catbots used to redeem NV1 uint256 public constant NV2_PRIVATE_PRICE = 60000000000000000; // 0.06 ETH uint256 public constant NV2_PUBLIC_PRICE = 80000000000000000; // 0.08 ETH address[] private recipients; uint16[] private splits; mapping(address => bool) public proxyRegistryAddress; mapping(uint16 => bool) public bonusCBOT; mapping(address => bool) public approvedBurnAddress; IERC721 cbotContract; event NV1Redeem(address indexed owner, uint256[] ids); event NV2PrivateMint(address indexed owner, uint256[] ids); event NV2PublicMint(address indexed owner, uint256 amount); event ContractWithdraw(address indexed initiator, uint256 amount); event ContractWithdrawToken(address indexed initiator, address indexed token, uint256 amount); event WithdrawAddressChanged(address indexed previousAddress, address indexed newAddress); event SeasonDataUpdate(uint8 indexed season, uint32 seasonPrivateSaleStart, uint32 seasonPrivateSaleEnd, uint32 seasonPublicSaleStart, uint32 seasonPublicSaleEnd, uint16 nv2SeasonSupply, uint16 nv2SeasonReserve); constructor( string memory name_, string memory symbol_, string memory uriPrefix_, string memory uriSuffix_, address _cbotContract, address[] memory _recipients, uint16[] memory _splits, address _proxyAddress ) ERC1155(uriPrefix_) { name = name_; symbol = symbol_; uriPrefix = uriPrefix_; uriSuffix = uriSuffix_; cbotContract = IERC721(_cbotContract); recipients = _recipients; splits = _splits; proxyRegistryAddress[_proxyAddress] = true; } function setRedeemDates(uint32 _redeemStart, uint32 _redeemEnd) public onlyOwner { require(_redeemEnd > _redeemStart && uint256(_redeemStart) > block.timestamp ,'Invalid dates'); redeemStart = _redeemStart; redeemEnd = _redeemEnd; } /// @dev start a new season and set the season supply /// @param _supply the season NV2 supply /// @param _seasonPrivateSaleStart season start date /// @param _seasonPrivateSaleEnd season end date /// @param _seasonPublicSaleStart season start date /// @param _seasonPublicSaleEnd season end date function newSeason(uint16 _supply, uint16 _reserve, uint32 _seasonPrivateSaleStart, uint32 _seasonPrivateSaleEnd, uint32 _seasonPublicSaleStart, uint32 _seasonPublicSaleEnd) public onlyOwner { require(uint256(_seasonPrivateSaleStart) > block.timestamp && block.timestamp > uint256(seasonDates.seasonPublicSaleEnd),'Season ongoing'); seasonDates.seasonPrivateSaleStart = _seasonPrivateSaleStart; seasonDates.seasonPrivateSaleEnd = _seasonPrivateSaleEnd; seasonDates.seasonPublicSaleStart = _seasonPublicSaleStart; seasonDates.seasonPublicSaleEnd = _seasonPublicSaleEnd; seasonNumber++; delete mintedCBOT; nv2ReserveMinted = false; NV2_SEASON_SUPPLY = _supply; NV2_SEASON_RESERVE = _reserve; NV2_SEASON_MINTED = 0; emit SeasonDataUpdate(seasonNumber, _seasonPrivateSaleStart, _seasonPrivateSaleEnd, _seasonPublicSaleStart, _seasonPublicSaleEnd, NV2_SEASON_SUPPLY, NV2_SEASON_RESERVE); } function sendRedeem(address _account, uint256[] memory _ids) external onlyOwner { require(mintActive,'mint disabled'); require(totalSupply(NV1_id) + _ids.length <= uint256(NV1_SALE_SUPPLY),'No more tokens'); uint256 time = (block.timestamp); require(time > uint256(redeemStart) && time < uint256(redeemEnd), 'redeem not started'); emit NV1Redeem(_account, _ids); for (uint16 i = 0; i < _ids.length; i++) { require(cbotContract.ownerOf(_ids[i]) == _account,'unauthorized'); require(!redeemedCBOT[_ids[i] - 1],'Already redeemed'); redeemedCBOT[_ids[i] - 1] = true; uint256 amount = 1; if(bonusCBOT[uint16(_ids[i])]) { amount = 2; } _mint(_account,NV1_id,amount,""); } } function setBounsIds(uint16[] memory _ids) public onlyOwner { for (uint16 i = 0; i < _ids.length; i++) { bonusCBOT[_ids[i]] = true; } } function mintNV1Reserve(address _account) external onlyOwner { require(!nv1ReserveMinted, 'already minted'); uint256 time = (block.timestamp); require(time > uint256(redeemStart), 'Redeem not live'); nv1ReserveMinted = true; _mint(_account,NV1_id,uint256(NV1_RESERVE),""); } function mintNV2Reserve(address _account) external onlyOwner { require(!nv2ReserveMinted, 'already minted'); uint256 time = (block.timestamp); require(time > uint256(seasonDates.seasonPrivateSaleStart) && time < uint256(seasonDates.seasonPublicSaleStart), 'Sale not live'); nv2ReserveMinted = true; NV2_SEASON_MINTED = NV2_SEASON_MINTED + NV2_SEASON_RESERVE; emit NV2PublicMint(_account, uint256(NV2_SEASON_RESERVE)); _mint(_account,NV2_id,uint256(NV2_SEASON_RESERVE),""); } function mintPrivateSale(uint256[] memory _ids) external payable { require(mintActive,'mint disabled'); require(NV2_SEASON_MINTED + _ids.length <= uint256(NV2_SEASON_SUPPLY - NV2_SEASON_RESERVE),'No more tokens'); require(msg.value >= NV2_PRIVATE_PRICE * _ids.length, 'Insufficient ETH'); uint256 time = (block.timestamp); require(time > uint256(seasonDates.seasonPrivateSaleStart) && time < uint256(seasonDates.seasonPrivateSaleEnd), 'Sale not live'); emit NV2PrivateMint(msg.sender, _ids); for (uint16 i = 0; i < _ids.length; i++) { require(cbotContract.ownerOf(_ids[i]) == msg.sender,'unauthorized'); require(!mintedCBOT[_ids[i] - 1],'token already used'); mintedCBOT[_ids[i] - 1] = true; NV2_SEASON_MINTED++; _mint(msg.sender,NV2_id,1,""); } } function mintPublicSale(uint256 _amount) external payable { require(mintActive,'mint disabled'); require(_amount > 0 && _amount <= uint256(mintBatchLimit), 'Batch limit is 5'); require(NV2_SEASON_MINTED + _amount <= uint256(NV2_SEASON_SUPPLY),'No more tokens'); require(msg.value >= NV2_PUBLIC_PRICE * _amount, 'Insufficient ETH'); uint256 time = (block.timestamp); require(time > uint256(seasonDates.seasonPublicSaleStart) && time < uint256(seasonDates.seasonPublicSaleEnd), 'Sale not live'); NV2_SEASON_MINTED = NV2_SEASON_MINTED + uint16(_amount); emit NV2PublicMint(msg.sender, _amount); _mint(msg.sender,NV2_id,_amount,""); } function flipMintActive() external onlyOwner { mintActive = !mintActive; } function flipTransferActive() external onlyOwner { transferActive = !transferActive; } /** * @dev See {IERC1155MetadataURI-uri}. * */ function uri(uint256 tokenId) public view override returns (string memory) { require(exists(tokenId),'ERC1155Metadata: URI query for nonexistent token'); return bytes(uriPrefix).length > 0 ? string(abi.encodePacked(uriPrefix, tokenId.toString(), uriSuffix)) : ''; } function contractURI() public view returns (string memory) { return string(abi.encodePacked(uriPrefix, contractMetadata)); } function isMintedCBOT(uint256 _id) public view returns (bool) { return mintedCBOT[_id - 1]; } function setBaseURI(string memory baseContractURI) external onlyOwner { uriPrefix = baseContractURI; } /** * @dev withdraws the contract balance and send it to the withdraw Addresses based on split ratio. * * Emits a {ContractWithdraw} event. */ function withdraw() external nonReentrant onlyOwner { uint256 balance = address(this).balance; for (uint256 i = 0; i < recipients.length; i++) { (bool sent, ) = payable(recipients[i]).call{value: (balance * splits[i]) / SPLIT_BASE}(''); require(sent, 'Withdraw Failed.'); } emit ContractWithdraw(msg.sender, balance); } /// @dev withdraw ERC20 tokens divided by splits function withdrawTokens(address _tokenContract) external nonReentrant onlyOwner { IERC20 tokenContract = IERC20(_tokenContract); // transfer the token from address of Catbotica address uint256 balance = tokenContract.balanceOf(address(this)); for (uint256 i = 0; i < recipients.length; i++) { tokenContract.transfer(recipients[i], (balance * splits[i]) / SPLIT_BASE); } emit ContractWithdrawToken(msg.sender, _tokenContract, balance); } function supportsInterface(bytes4 interfaceId) public view override(ERC1155, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function changeWithdrawAddress(address _recipient) external { require(_recipient != address(0), 'Cannot use zero address.'); require(_recipient != address(this), 'Cannot use this contract address'); require(!Address.isContract(_recipient), 'Cannot set recipient to a contract address'); // loop over all the recipients and update the address bool _found = false; for (uint256 i = 0; i < recipients.length; i++) { // if the sender matches one of the recipients, update the address if (recipients[i] == msg.sender) { recipients[i] = _recipient; _found = true; break; } } require(_found, 'The sender is not a recipient.'); emit WithdrawAddressChanged(msg.sender, _recipient); } /// @notice Calculate the royalty payment /// @param _salePrice the sale price of the token function royaltyInfo(uint256, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (address(this), (_salePrice * royalty) / BASE); } /// @dev set the royalty /// @param _royalty the royalty in base 10000, 500 = 5% function setRoyalty(uint16 _royalty) external virtual onlyOwner { require(_royalty >= 0 && _royalty <= 1000, 'Royalty must be between 0% and 10%.'); royalty = _royalty; } /** * Function to allow receiving ETH sent to contract * */ receive() external payable {} /** * Override isApprovedForAll to whitelisted marketplaces to enable gas-free listings. * */ function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) { // check if this is an approved marketplace if (proxyRegistryAddress[_operator]) { return true; } // otherwise, use the default ERC721 isApprovedForAll() return super.isApprovedForAll(_owner, _operator); } /** * Function to set status of proxy contracts addresses * */ function setProxy(address _proxyAddress, bool _value) external onlyOwner { proxyRegistryAddress[_proxyAddress] = _value; } function setApprovedBurningAddress(address _address, bool _status) external onlyOwner { approvedBurnAddress[_address] = _status; } function burn( address account, uint256 id, uint256 value ) external { require( account == _msgSender() || approvedBurnAddress[_msgSender()] || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) external { require( account == _msgSender() || approvedBurnAddress[_msgSender()] || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); require(transferActive || from == address(0),'ERC1155Pausable: token transfer while paused'); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates weither any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_mint}. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual override { super._mint(account, id, amount, data); _totalSupply[id] += amount; } /** * @dev See {ERC1155-_mintBatch}. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._mintBatch(to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } /** * @dev See {ERC1155-_burn}. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual override { super._burn(account, id, amount); _totalSupply[id] -= amount; } /** * @dev See {ERC1155-_burnBatch}. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual override { super._burnBatch(account, ids, amounts); for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// 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 "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"uriPrefix_","type":"string"},{"internalType":"string","name":"uriSuffix_","type":"string"},{"internalType":"address","name":"_cbotContract","type":"address"},{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint16[]","name":"_splits","type":"uint16[]"},{"internalType":"address","name":"_proxyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ContractWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ContractWithdrawToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"NV1Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"NV2PrivateMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NV2PublicMint","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":"uint8","name":"season","type":"uint8"},{"indexed":false,"internalType":"uint32","name":"seasonPrivateSaleStart","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"seasonPrivateSaleEnd","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"seasonPublicSaleStart","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"seasonPublicSaleEnd","type":"uint32"},{"indexed":false,"internalType":"uint16","name":"nv2SeasonSupply","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"nv2SeasonReserve","type":"uint16"}],"name":"SeasonDataUpdate","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":true,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"WithdrawAddressChanged","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV1_RESERVE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV1_SALE_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_PRIVATE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_SEASON_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_SEASON_RESERVE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_SEASON_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPLIT_BASE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedBurnAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"bonusCBOT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"changeWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipTransferActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isMintedCBOT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"mintNV1Reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"mintNV2Reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"mintPrivateSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_supply","type":"uint16"},{"internalType":"uint16","name":"_reserve","type":"uint16"},{"internalType":"uint32","name":"_seasonPrivateSaleStart","type":"uint32"},{"internalType":"uint32","name":"_seasonPrivateSaleEnd","type":"uint32"},{"internalType":"uint32","name":"_seasonPublicSaleStart","type":"uint32"},{"internalType":"uint32","name":"_seasonPublicSaleEnd","type":"uint32"}],"name":"newSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxyRegistryAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemEnd","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemStart","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","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":[],"name":"seasonDates","outputs":[{"internalType":"uint32","name":"seasonPrivateSaleStart","type":"uint32"},{"internalType":"uint32","name":"seasonPrivateSaleEnd","type":"uint32"},{"internalType":"uint32","name":"seasonPublicSaleStart","type":"uint32"},{"internalType":"uint32","name":"seasonPublicSaleEnd","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seasonNumber","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"sendRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setApprovedBurningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_ids","type":"uint16[]"}],"name":"setBounsIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyAddress","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_redeemStart","type":"uint32"},{"internalType":"uint32","name":"_redeemEnd","type":"uint32"}],"name":"setRedeemDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_royalty","type":"uint16"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6006805464ffffffffff61ffff60581b011916607d605b1b17905560c0604052600d60808190526c31b7b73a3930b1ba173539b7b760991b60a09081526200004b91600b9190620001d7565b503480156200005957600080fd5b50604051620054cc380380620054cc8339810160408190526200007c916200058c565b8562000088816200016c565b50620000943362000185565b60016005558751620000ae9060089060208b0190620001d7565b508651620000c49060079060208a0190620001d7565b508551620000da906009906020890190620001d7565b508451620000f090600a906020880190620001d7565b5061030080546001600160a01b0319166001600160a01b038616179055825162000123906102fb90602086019062000266565b5081516200013a906102fc906020850190620002be565b506001600160a01b031660009081526102fd60205260409020805460ff1916600117905550620006f795505050505050565b805162000181906002906020840190620001d7565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001e590620006ba565b90600052602060002090601f01602090048101928262000209576000855562000254565b82601f106200022457805160ff191683800117855562000254565b8280016001018555821562000254579182015b828111156200025457825182559160200191906001019062000237565b506200026292915062000364565b5090565b82805482825590600052602060002090810192821562000254579160200282015b828111156200025457825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000287565b82805482825590600052602060002090600f01601090048101928215620002545791602002820160005b838211156200032a57835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620002e8565b80156200035a5782816101000a81549061ffff02191690556002016020816001010492830192600103026200032a565b5050620002629291505b5b8082111562000262576000815560010162000365565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620003bc57620003bc6200037b565b604052919050565b600082601f830112620003d657600080fd5b81516001600160401b03811115620003f257620003f26200037b565b602062000408601f8301601f1916820162000391565b82815285828487010111156200041d57600080fd5b60005b838110156200043d57858101830151828201840152820162000420565b838111156200044f5760008385840101525b5095945050505050565b80516001600160a01b03811681146200047157600080fd5b919050565b60006001600160401b038211156200049257620004926200037b565b5060051b60200190565b600082601f830112620004ae57600080fd5b81516020620004c7620004c18362000476565b62000391565b82815260059290921b84018101918181019086841115620004e757600080fd5b8286015b848110156200050d57620004ff8162000459565b8352918301918301620004eb565b509695505050505050565b600082601f8301126200052a57600080fd5b815160206200053d620004c18362000476565b82815260059290921b840181019181810190868411156200055d57600080fd5b8286015b848110156200050d57805161ffff811681146200057e5760008081fd5b835291830191830162000561565b600080600080600080600080610100898b031215620005aa57600080fd5b88516001600160401b0380821115620005c257600080fd5b620005d08c838d01620003c4565b995060208b0151915080821115620005e757600080fd5b620005f58c838d01620003c4565b985060408b01519150808211156200060c57600080fd5b6200061a8c838d01620003c4565b975060608b01519150808211156200063157600080fd5b6200063f8c838d01620003c4565b96506200064f60808c0162000459565b955060a08b01519150808211156200066657600080fd5b620006748c838d016200049c565b945060c08b01519150808211156200068b57600080fd5b506200069a8b828c0162000518565b925050620006ab60e08a0162000459565b90509295985092959890939650565b600181811c90821680620006cf57607f821691505b60208210811415620006f157634e487b7160e01b600052602260045260246000fd5b50919050565b614dc580620007076000396000f3fe6080604052600436106103795760003560e01c806361d6fa2b116101d1578063a22cb46511610102578063d1994d71116100a0578063f242432a1161006f578063f242432a14610aad578063f2fde38b14610acd578063f5298aca14610aed578063fe7c345114610b0d57600080fd5b8063d1994d7114610a54578063e8a3d48514610a78578063e985e9c514610a8d578063ec342ad014610a3e57600080fd5b8063b5bfcfa8116100dc578063b5bfcfa8146109cb578063b5fb12b5146109e0578063bd85b03914610a11578063c197b0f714610a3e57600080fd5b8063a22cb46514610978578063aa5dcab914610998578063ab1184b3146109b857600080fd5b806387761df91161016f5780638da5cb5b116101495780638da5cb5b146108d857806392f99e611461090057806395d89b411461093157806397cbf9cf1461094657600080fd5b806387761df9146108885780638b6c4674146108ac5780638c4bc143146108c257600080fd5b80636b20c454116101ab5780636b20c454146107c1578063715018a6146107e157806378acb035146107f6578063828b57c91461086857600080fd5b806361d6fa2b1461075357806362b99ad4146107735780636629b5081461078857600080fd5b80633698bc8c116102ab5780634f558e791161024957806355f804b31161022357806355f804b3146106c75780635a5e5d58146106e75780635abb3127146106fa578063606647c81461071a57600080fd5b80634f558e791461066357806351a39a58146106925780635503a0e8146106b257600080fd5b80633fb22622116102855780633fb22622146105db57806346b77748146105f657806349df728c146106165780634e1273f41461063657600080fd5b80633698bc8c1461058657806336e79a5a146105a65780633ccfd60b146105c657600080fd5b80631f3e1be91161031857806325fd90f3116102f257806325fd90f3146104ec5780632a55205a1461050b5780632eb2c2d61461054a57806335ab565a1461056a57600080fd5b80631f3e1be91461048c5780632331af61146104bd57806323fa462a146104d757600080fd5b806307a038c61161035457806307a038c61461040a5780630e89341c1461042a5780631453671d1461044a578063147589a71461046c57600080fd5b8062fdd58e1461038557806301ffc9a7146103b857806306fdde03146103e857600080fd5b3661038057005b600080fd5b34801561039157600080fd5b506103a56103a0366004614107565b610b2f565b6040519081526020015b60405180910390f35b3480156103c457600080fd5b506103d86103d3366004614149565b610bdb565b60405190151581526020016103af565b3480156103f457600080fd5b506103fd610c19565b6040516103af91906141be565b34801561041657600080fd5b506103d86104253660046141d1565b610ca7565b34801561043657600080fd5b506103fd6104453660046141d1565b610ce3565b34801561045657600080fd5b5061046a6104653660046141ea565b610dc6565b005b34801561047857600080fd5b5061046a6104873660046142df565b611018565b34801561049857600080fd5b506103d86104a73660046141ea565b6102fd6020526000908152604090205460ff1681565b3480156104c957600080fd5b506006546103d89060ff1681565b3480156104e357600080fd5b5061046a61145b565b3480156104f857600080fd5b506006546103d890610100900460ff1681565b34801561051757600080fd5b5061052b61052636600461432f565b6114b7565b604080516001600160a01b0390931683526020830191909152016103af565b34801561055657600080fd5b5061046a6105653660046143cf565b6114f7565b34801561057657600080fd5b506103a567011c37937e08000081565b34801561059257600080fd5b5061046a6105a1366004614494565b611599565b3480156105b257600080fd5b5061046a6105c1366004614537565b611651565b3480156105d257600080fd5b5061046a611747565b3480156105e757600080fd5b506103a566d529ae9e86000081565b34801561060257600080fd5b5061046a610611366004614560565b611955565b34801561062257600080fd5b5061046a6106313660046141ea565b6119c9565b34801561064257600080fd5b50610656610651366004614599565b611c73565b6040516103af9190614697565b34801561066f57600080fd5b506103d861067e3660046141d1565b600090815260036020526040902054151590565b34801561069e57600080fd5b5061046a6106ad366004614560565b611db1565b3480156106be57600080fd5b506103fd611e25565b3480156106d357600080fd5b5061046a6106e23660046146aa565b611e32565b61046a6106f53660046141d1565b611e8d565b34801561070657600080fd5b5061046a6107153660046141ea565b6120f9565b34801561072657600080fd5b5060065461073e90600160881b900463ffffffff1681565b60405163ffffffff90911681526020016103af565b34801561075f57600080fd5b5061046a61076e366004614707565b61222f565b34801561077f57600080fd5b506103fd61247f565b34801561079457600080fd5b506006546107ae90670100000000000000900461ffff1681565b60405161ffff90911681526020016103af565b3480156107cd57600080fd5b5061046a6107dc36600461477b565b61248c565b3480156107ed57600080fd5b5061046a612531565b34801561080257600080fd5b50600c546108389063ffffffff808216916401000000008104821691680100000000000000008204811691600160601b90041684565b6040805163ffffffff958616815293851660208501529184169183019190915290911660608201526080016103af565b34801561087457600080fd5b5061046a6108833660046141ea565b612585565b34801561089457600080fd5b506006546107ae9065010000000000900461ffff1681565b3480156108b857600080fd5b506107ae61019581565b3480156108ce57600080fd5b506107ae612f3f81565b3480156108e457600080fd5b506004546040516001600160a01b0390911681526020016103af565b34801561090c57600080fd5b506103d861091b3660046141ea565b6102ff6020526000908152604090205460ff1681565b34801561093d57600080fd5b506103fd612768565b34801561095257600080fd5b506006546109669062010000900460ff1681565b60405160ff90911681526020016103af565b34801561098457600080fd5b5061046a610993366004614560565b612775565b3480156109a457600080fd5b5061046a6109b33660046147f1565b612860565b61046a6109c6366004614824565b612980565b3480156109d757600080fd5b5061046a612db7565b3480156109ec57600080fd5b506103d86109fb366004614537565b6102fe6020526000908152604090205460ff1681565b348015610a1d57600080fd5b506103a5610a2c3660046141d1565b60009081526003602052604090205490565b348015610a4a57600080fd5b506107ae61271081565b348015610a6057600080fd5b5060065461073e90600160681b900463ffffffff1681565b348015610a8457600080fd5b506103fd612e1c565b348015610a9957600080fd5b506103d8610aa8366004614859565b612e47565b348015610ab957600080fd5b5061046a610ac8366004614887565b612ea2565b348015610ad957600080fd5b5061046a610ae83660046141ea565b612f29565b348015610af957600080fd5b5061046a610b083660046148f0565b612ff9565b348015610b1957600080fd5b506006546107ae90600160481b900461ffff1681565b60006001600160a01b038316610bb25760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613099565b60088054610c2690614925565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5290614925565b8015610c9f5780601f10610c7457610100808354040283529160200191610c9f565b820191906000526020600020905b815481529060010190602001808311610c8257829003601f168201915b505050505081565b6000600d610cb6600184614976565b612ee08110610cc757610cc761498d565b602081049091015460ff601f9092166101000a90041692915050565b600081815260036020526040902054606090610d675760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610ba9565b600060098054610d7690614925565b905011610d925760405180602001604052806000815250610bd5565b6009610d9d83613134565b600a604051602001610db193929190614a3d565b60405160208183030381529060405292915050565b6001600160a01b038116610e1c5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420757365207a65726f20616464726573732e00000000000000006044820152606401610ba9565b6001600160a01b038116301415610e755760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757365207468697320636f6e747261637420616464726573736044820152606401610ba9565b803b15610eea5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f742073657420726563697069656e7420746f206120636f6e74726160448201527f63742061646472657373000000000000000000000000000000000000000000006064820152608401610ba9565b6000805b6102fb54811015610f9057336001600160a01b03166102fb8281548110610f1757610f1761498d565b6000918252602090912001546001600160a01b03161415610f7e57826102fb8281548110610f4757610f4761498d565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610f90565b80610f8881614a65565b915050610eee565b5080610fde5760405162461bcd60e51b815260206004820152601e60248201527f5468652073656e646572206973206e6f74206120726563697069656e742e00006044820152606401610ba9565b6040516001600160a01b0383169033907f49309b5d08d7bbaebcda96dda577818eee99f98cd01bb4a546ffb81653b4004190600090a35050565b6004546001600160a01b031633146110605760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b600654610100900460ff166110a75760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610ba9565b8051600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612f3f916110e291614a80565b11156111215760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610ba9565b6006544290600160681b900463ffffffff168111801561114f5750600654600160881b900463ffffffff1681105b61119b5760405162461bcd60e51b815260206004820152601260248201527f72656465656d206e6f74207374617274656400000000000000000000000000006044820152606401610ba9565b826001600160a01b03167f97cc16e6c137f44d6456df14a2df4aaf9c87b168053c85e6dd253d88e10e7396836040516111d49190614697565b60405180910390a260005b82518161ffff161015611455576103005483516001600160a01b03808716921690636352211e90869061ffff861690811061121c5761121c61498d565b60200260200101516040518263ffffffff1660e01b815260040161124291815260200190565b60206040518083038186803b15801561125a57600080fd5b505afa15801561126e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112929190614a98565b6001600160a01b0316146112d75760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610ba9565b6101846001848361ffff16815181106112f2576112f261498d565b60200260200101516113049190614976565b612ee081106113155761131561498d565b602081049091015460ff601f9092166101000a900416156113785760405162461bcd60e51b815260206004820152601060248201527f416c72656164792072656465656d6564000000000000000000000000000000006044820152606401610ba9565b60016101846001858461ffff16815181106113955761139561498d565b60200260200101516113a79190614976565b612ee081106113b8576113b861498d565b602091828204019190066101000a81548160ff0219169083151502179055506000600190506102fe6000858461ffff16815181106113f8576113f861498d565b60209081029190910181015161ffff1682528101919091526040016000205460ff1615611423575060025b61144285600160ff16836040518060200160405280600081525061326e565b508061144d81614ab5565b9150506111df565b50505050565b6004546001600160a01b031633146114a35760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6006805460ff19811660ff90911615179055565b60065460009081903090612710906114e2906b010000000000000000000000900461ffff1686614ad7565b6114ec9190614b0c565b915091509250929050565b6001600160a01b03851633148061151357506115138533612e47565b6115855760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610ba9565b61159285858585856132a3565b5050505050565b6004546001600160a01b031633146115e15760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b60005b81518161ffff16101561164d5760016102fe6000848461ffff168151811061160e5761160e61498d565b60209081029190910181015161ffff168252810191909152604001600020805460ff19169115159190911790558061164581614ab5565b9150506115e4565b5050565b6004546001600160a01b031633146116995760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6103e88161ffff1611156117155760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201527f30252e00000000000000000000000000000000000000000000000000000000006064820152608401610ba9565b6006805461ffff9092166b010000000000000000000000026cffff000000000000000000000019909216919091179055565b6002600554141561179a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ba9565b60026005556004546001600160a01b031633146117e75760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b4760005b6102fb548110156119175760006102fb828154811061180c5761180c61498d565b6000918252602090912001546102fc80546001600160a01b039092169161271091908590811061183e5761183e61498d565b6000918252602090912060108204015461186891600f166002026101000a900461ffff1686614ad7565b6118729190614b0c565b604051600081818185875af1925050503d80600081146118ae576040519150601f19603f3d011682016040523d82523d6000602084013e6118b3565b606091505b50509050806119045760405162461bcd60e51b815260206004820152601060248201527f5769746864726177204661696c65642e000000000000000000000000000000006044820152606401610ba9565b508061190f81614a65565b9150506117eb565b5060405181815233907f434a43765b3cd21fa5b240a88fef750a558ba196a12784bdd49335beabc1a39d9060200160405180910390a2506001600555565b6004546001600160a01b0316331461199d5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6001600160a01b039190911660009081526102ff60205260409020805460ff1916911515919091179055565b60026005541415611a1c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ba9565b60026005556004546001600160a01b03163314611a695760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b158015611ac657600080fd5b505afa158015611ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afe9190614b20565b905060005b6102fb54811015611c2857826001600160a01b031663a9059cbb6102fb8381548110611b3157611b3161498d565b6000918252602090912001546102fc80546001600160a01b0390921691612710919086908110611b6357611b6361498d565b60009182526020909120601082040154611b8d91600f166002026101000a900461ffff1687614ad7565b611b979190614b0c565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611bdd57600080fd5b505af1158015611bf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c159190614b39565b5080611c2081614a65565b915050611b03565b506040518181526001600160a01b0384169033907f73298854beb73cf7c63db725c9e244a4c6c2bde8fa5b477fc56d5a8b5c6150d39060200160405180910390a35050600160055550565b60608151835114611cec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610ba9565b6000835167ffffffffffffffff811115611d0857611d08614207565b604051908082528060200260200182016040528015611d31578160200160208202803683370190505b50905060005b8451811015611da957611d7c858281518110611d5557611d5561498d565b6020026020010151858381518110611d6f57611d6f61498d565b6020026020010151610b2f565b828281518110611d8e57611d8e61498d565b6020908102919091010152611da281614a65565b9050611d37565b509392505050565b6004546001600160a01b03163314611df95760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6001600160a01b039190911660009081526102fd60205260409020805460ff1916911515919091179055565b600a8054610c2690614925565b6004546001600160a01b03163314611e7a5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b805161164d90600990602084019061404d565b600654610100900460ff16611ed45760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610ba9565b600081118015611ee5575060058111155b611f315760405162461bcd60e51b815260206004820152601060248201527f4261746368206c696d69742069732035000000000000000000000000000000006044820152606401610ba9565b60065461ffff650100000000008204811691611f56918491600160481b900416614a80565b1115611f955760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610ba9565b611fa78167011c37937e080000614ad7565b341015611ff65760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610ba9565b600c54429068010000000000000000900463ffffffff16811180156120295750600c54600160601b900463ffffffff1681105b6120655760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610ba9565b60065461207e908390600160481b900461ffff16614b56565b6006805461ffff92909216600160481b026affff0000000000000000001990921691909117905560405182815233907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a261164d33600260ff16846040518060200160405280600081525061326e565b6004546001600160a01b031633146121415760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6006546301000000900460ff161561219b5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610ba9565b6006544290600160681b900463ffffffff1681116121fb5760405162461bcd60e51b815260206004820152600f60248201527f52656465656d206e6f74206c69766500000000000000000000000000000000006044820152606401610ba9565b6006805463ff0000001916630100000017905560408051602081019091526000815261164d9083906001906101959061326e565b6004546001600160a01b031633146122775760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b428463ffffffff1611801561229a5750600c54600160601b900463ffffffff1642115b6122e65760405162461bcd60e51b815260206004820152600e60248201527f536561736f6e206f6e676f696e670000000000000000000000000000000000006044820152606401610ba9565b600c805463ffffffff86811667ffffffffffffffff199092169190911764010000000086831602177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff1668010000000000000000858316027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff1617600160601b918416919091021790556006805462010000900460ff1690600261238983614b7c565b91906101000a81548160ff021916908360ff16021790555050600d60006123b091906140d1565b600680546affff0000000000000000001961ffff88811667010000000000000090810268ffff00000000000000198c8416650100000000009081029190911668ffffffffff0000000019909616959095171792909216938490556040805163ffffffff8a8116825289811660208301528881168284015287166060820152938504821660808501529184041660a0830152516201000090920460ff16917f8b57e925cbbf6dec3f6c68a501423af24334900f8f5214b670402eea7d2928969181900360c00190a2505050505050565b60098054610c2690614925565b6001600160a01b0383163314806124b357503360009081526102ff602052604090205460ff165b806124c357506124c38333612e47565b6125215760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610ba9565b61252c83838361350f565b505050565b6004546001600160a01b031633146125795760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6125836000613591565b565b6004546001600160a01b031633146125cd5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b600654640100000000900460ff16156126285760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610ba9565b600c54429063ffffffff16811180156126545750600c5468010000000000000000900463ffffffff1681105b6126905760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610ba9565b6006805464ff00000000191664010000000017908190556126c99061ffff6701000000000000008204811691600160481b900416614b56565b600680546affff0000000000000000001916600160481b61ffff93841602179081905560405167010000000000000090910490911681526001600160a01b038316907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a260065460408051602081019091526000815261164d918491600291670100000000000000900461ffff169061326e565b60078054610c2690614925565b336001600160a01b03831614156127f45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610ba9565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146128a85760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b8163ffffffff168163ffffffff161180156128c85750428263ffffffff16115b6129145760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964206461746573000000000000000000000000000000000000006044820152606401610ba9565b600680547fffffffffffffffffffffff0000000000000000ffffffffffffffffffffffffff16600160681b63ffffffff948516027fffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffffff1617600160881b9290931691909102919091179055565b600654610100900460ff166129c75760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610ba9565b6006546129ee9061ffff670100000000000000820481169165010000000000900416614b9c565b815160065461ffff92831692612a0c9291600160481b900416614a80565b1115612a4b5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610ba9565b8051612a5e9066d529ae9e860000614ad7565b341015612aad5760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610ba9565b600c54429063ffffffff1681118015612ad55750600c54640100000000900463ffffffff1681105b612b115760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610ba9565b336001600160a01b03167fe3a5f55aca44c01d3b0217df332b3a5629a86f76408d0e4c4ff5abfc37ad426183604051612b4a9190614697565b60405180910390a260005b82518161ffff16101561252c5761030054835133916001600160a01b031690636352211e90869061ffff8616908110612b9057612b9061498d565b60200260200101516040518263ffffffff1660e01b8152600401612bb691815260200190565b60206040518083038186803b158015612bce57600080fd5b505afa158015612be2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c069190614a98565b6001600160a01b031614612c4b5760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610ba9565b600d6001848361ffff1681518110612c6557612c6561498d565b6020026020010151612c779190614976565b612ee08110612c8857612c8861498d565b602081049091015460ff601f9092166101000a90041615612ceb5760405162461bcd60e51b815260206004820152601260248201527f746f6b656e20616c7265616479207573656400000000000000000000000000006044820152606401610ba9565b6001600d6001858461ffff1681518110612d0757612d0761498d565b6020026020010151612d199190614976565b612ee08110612d2a57612d2a61498d565b602081049091018054921515601f9092166101000a91820260ff909202199092161790556006805461ffff600160481b90910416906009612d6a83614ab5565b91906101000a81548161ffff021916908361ffff16021790555050612da533600260ff1660016040518060200160405280600081525061326e565b80612daf81614ab5565b915050612b55565b6004546001600160a01b03163314612dff5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6006805461ff001981166101009182900460ff1615909102179055565b60606009600b604051602001612e33929190614bbf565b604051602081830303815290604052905090565b6001600160a01b03811660009081526102fd602052604081205460ff1615612e7157506001610bd5565b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6001600160a01b038516331480612ebe5750612ebe8533612e47565b612f1c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610ba9565b61159285858585856135fb565b6004546001600160a01b03163314612f715760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6001600160a01b038116612fed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ba9565b612ff681613591565b50565b6001600160a01b03831633148061302057503360009081526102ff602052604090205460ff165b8061303057506130308333612e47565b61308e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610ba9565b61252c8383836137a8565b60006001600160e01b031982167fd9b67a260000000000000000000000000000000000000000000000000000000014806130fc57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610bd557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bd5565b60608161317457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561319e578061318881614a65565b91506131979050600a83614b0c565b9150613178565b60008167ffffffffffffffff8111156131b9576131b9614207565b6040519080825280601f01601f1916602001820160405280156131e3576020820181803683370190505b5090505b8415613266576131f8600183614976565b9150613205600a86614bd4565b613210906030614a80565b60f81b8183815181106132255761322561498d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061325f600a86614b0c565b94506131e7565b949350505050565b61327a848484846137db565b60008381526003602052604081208054849290613298908490614a80565b909155505050505050565b81518351146133055760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610ba9565b6001600160a01b0384166133695760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610ba9565b336133788187878787876138f8565b60005b84518110156134a15760008582815181106133985761339861498d565b6020026020010151905060008583815181106133b6576133b661498d565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156134495760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610ba9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613486908490614a80565b925050819055505050508061349a90614a65565b905061337b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516134f1929190614be8565b60405180910390a4613507818787878787613982565b505050505050565b61351a838383613b37565b60005b8251811015611455578181815181106135385761353861498d565b6020026020010151600360008584815181106135565761355661498d565b60200260200101518152602001908152602001600020600082825461357b9190614976565b9091555061358a905081614a65565b905061351d565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661365f5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610ba9565b3361367e81878761366f88613d7e565b61367888613d7e565b876138f8565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156137025760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610ba9565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061373f908490614a80565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461379f828888888888613dc9565b50505050505050565b6137b3838383613ed4565b600082815260036020526040812080548392906137d1908490614976565b9091555050505050565b6001600160a01b0384166138575760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610ba9565b336138688160008761366f88613d7e565b6000848152602081815260408083206001600160a01b038916845290915281208054859290613898908490614a80565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461159281600087878787613dc9565b60065460ff168061391057506001600160a01b038516155b6135075760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201527f7768696c652070617573656400000000000000000000000000000000000000006064820152608401610ba9565b6001600160a01b0384163b156135075760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906139c69089908990889088908890600401614c16565b602060405180830381600087803b1580156139e057600080fd5b505af1925050508015613a10575060408051601f3d908101601f19168201909252613a0d91810190614c74565b60015b613ac657613a1c614c91565b806308c379a01415613a565750613a31614cad565b80613a3c5750613a58565b8060405162461bcd60e51b8152600401610ba991906141be565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610ba9565b6001600160e01b0319811663bc197c8160e01b1461379f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610ba9565b6001600160a01b038316613b995760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610ba9565b8051825114613bfb5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610ba9565b6000339050613c1e818560008686604051806020016040528060008152506138f8565b60005b8351811015613d1f576000848281518110613c3e57613c3e61498d565b602002602001015190506000848381518110613c5c57613c5c61498d565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015613ce85760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610ba9565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580613d1781614a65565b915050613c21565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613d70929190614be8565b60405180910390a450505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613db857613db861498d565b602090810291909101015292915050565b6001600160a01b0384163b156135075760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613e0d9089908990889088908890600401614d37565b602060405180830381600087803b158015613e2757600080fd5b505af1925050508015613e57575060408051601f3d908101601f19168201909252613e5491810190614c74565b60015b613e6357613a1c614c91565b6001600160e01b0319811663f23a6e6160e01b1461379f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610ba9565b6001600160a01b038316613f365760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610ba9565b33613f6581856000613f4787613d7e565b613f5087613d7e565b604051806020016040528060008152506138f8565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613fe25760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610ba9565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b82805461405990614925565b90600052602060002090601f01602090048101928261407b57600085556140c1565b82601f1061409457805160ff19168380011785556140c1565b828001600101855582156140c1579182015b828111156140c15782518255916020019190600101906140a6565b506140cd9291506140dd565b5090565b50612ff6906101778101905b5b808211156140cd57600081556001016140de565b6001600160a01b0381168114612ff657600080fd5b6000806040838503121561411a57600080fd5b8235614125816140f2565b946020939093013593505050565b6001600160e01b031981168114612ff657600080fd5b60006020828403121561415b57600080fd5b8135612e9b81614133565b60005b83811015614181578181015183820152602001614169565b838111156114555750506000910152565b600081518084526141aa816020860160208601614166565b601f01601f19169290920160200192915050565b602081526000612e9b6020830184614192565b6000602082840312156141e357600080fd5b5035919050565b6000602082840312156141fc57600080fd5b8135612e9b816140f2565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561424357614243614207565b6040525050565b600067ffffffffffffffff82111561426457614264614207565b5060051b60200190565b600082601f83011261427f57600080fd5b8135602061428c8261424a565b604051614299828261421d565b83815260059390931b85018201928281019150868411156142b957600080fd5b8286015b848110156142d457803583529183019183016142bd565b509695505050505050565b600080604083850312156142f257600080fd5b82356142fd816140f2565b9150602083013567ffffffffffffffff81111561431957600080fd5b6143258582860161426e565b9150509250929050565b6000806040838503121561434257600080fd5b50508035926020909101359150565b600067ffffffffffffffff83111561436b5761436b614207565b604051614382601f8501601f19166020018261421d565b80915083815284848401111561439757600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126143c057600080fd5b612e9b83833560208501614351565b600080600080600060a086880312156143e757600080fd5b85356143f2816140f2565b94506020860135614402816140f2565b9350604086013567ffffffffffffffff8082111561441f57600080fd5b61442b89838a0161426e565b9450606088013591508082111561444157600080fd5b61444d89838a0161426e565b9350608088013591508082111561446357600080fd5b50614470888289016143af565b9150509295509295909350565b803561ffff8116811461448f57600080fd5b919050565b600060208083850312156144a757600080fd5b823567ffffffffffffffff8111156144be57600080fd5b8301601f810185136144cf57600080fd5b80356144da8161424a565b6040516144e7828261421d565b82815260059290921b830184019184810191508783111561450757600080fd5b928401925b8284101561452c5761451d8461447d565b8252928401929084019061450c565b979650505050505050565b60006020828403121561454957600080fd5b612e9b8261447d565b8015158114612ff657600080fd5b6000806040838503121561457357600080fd5b823561457e816140f2565b9150602083013561458e81614552565b809150509250929050565b600080604083850312156145ac57600080fd5b823567ffffffffffffffff808211156145c457600080fd5b818501915085601f8301126145d857600080fd5b813560206145e58261424a565b6040516145f2828261421d565b83815260059390931b850182019282810191508984111561461257600080fd5b948201945b8386101561463957853561462a816140f2565b82529482019490820190614617565b9650508601359250508082111561464f57600080fd5b506143258582860161426e565b600081518084526020808501945080840160005b8381101561468c57815187529582019590820190600101614670565b509495945050505050565b602081526000612e9b602083018461465c565b6000602082840312156146bc57600080fd5b813567ffffffffffffffff8111156146d357600080fd5b8201601f810184136146e457600080fd5b61326684823560208401614351565b803563ffffffff8116811461448f57600080fd5b60008060008060008060c0878903121561472057600080fd5b6147298761447d565b95506147376020880161447d565b9450614745604088016146f3565b9350614753606088016146f3565b9250614761608088016146f3565b915061476f60a088016146f3565b90509295509295509295565b60008060006060848603121561479057600080fd5b833561479b816140f2565b9250602084013567ffffffffffffffff808211156147b857600080fd5b6147c48783880161426e565b935060408601359150808211156147da57600080fd5b506147e78682870161426e565b9150509250925092565b6000806040838503121561480457600080fd5b61480d836146f3565b915061481b602084016146f3565b90509250929050565b60006020828403121561483657600080fd5b813567ffffffffffffffff81111561484d57600080fd5b6132668482850161426e565b6000806040838503121561486c57600080fd5b8235614877816140f2565b9150602083013561458e816140f2565b600080600080600060a0868803121561489f57600080fd5b85356148aa816140f2565b945060208601356148ba816140f2565b93506040860135925060608601359150608086013567ffffffffffffffff8111156148e457600080fd5b614470888289016143af565b60008060006060848603121561490557600080fd5b8335614910816140f2565b95602085013595506040909401359392505050565b600181811c9082168061493957607f821691505b6020821081141561495a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561498857614988614960565b500390565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c90808316806149bd57607f831692505b60208084108214156149df57634e487b7160e01b600052602260045260246000fd5b8180156149f35760018114614a0457614a31565b60ff19861689528489019650614a31565b60008881526020902060005b86811015614a295781548b820152908501908301614a10565b505084890196505b50505050505092915050565b6000614a4982866149a3565b8451614a59818360208901614166565b61452c818301866149a3565b6000600019821415614a7957614a79614960565b5060010190565b60008219821115614a9357614a93614960565b500190565b600060208284031215614aaa57600080fd5b8151612e9b816140f2565b600061ffff80831681811415614acd57614acd614960565b6001019392505050565b6000816000190483118215151615614af157614af1614960565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614b1b57614b1b614af6565b500490565b600060208284031215614b3257600080fd5b5051919050565b600060208284031215614b4b57600080fd5b8151612e9b81614552565b600061ffff808316818516808303821115614b7357614b73614960565b01949350505050565b600060ff821660ff811415614b9357614b93614960565b60010192915050565b600061ffff83811690831681811015614bb757614bb7614960565b039392505050565b6000613266614bce83866149a3565b846149a3565b600082614be357614be3614af6565b500690565b604081526000614bfb604083018561465c565b8281036020840152614c0d818561465c565b95945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152614c4260a083018661465c565b8281036060840152614c54818661465c565b90508281036080840152614c688185614192565b98975050505050505050565b600060208284031215614c8657600080fd5b8151612e9b81614133565b600060033d1115614caa5760046000803e5060005160e01c5b90565b600060443d1015614cbb5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715614ceb57505050505090565b8285019150815181811115614d035750505050505090565b843d8701016020828501011115614d1d5750505050505090565b614d2c6020828601018761421d565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261452c60a083018461419256fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122029cac9e1c59d95dd5f733dadfba1a8d3b890c6a487a1f4bb53fa0306484b977264736f6c63430008090033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000020000000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f7000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000084e414e4f4341545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e43415400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f636174626f746963612e6d7970696e6174612e636c6f75642f697066732f516d51373154413333594a4572564d39786536327436716e3278535a73664b7438716b47445739386635555635642f000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000008d97009c21a17197f9e256d51923bdb858a7e3550000000000000000000000006f9c72972b4603eaf8fe29c60f428a1c2f474f6d000000000000000000000000179dbb893c4a8e09605cc0a6c8a2dc8ce0adcee1000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000001f40
Deployed Bytecode
0x6080604052600436106103795760003560e01c806361d6fa2b116101d1578063a22cb46511610102578063d1994d71116100a0578063f242432a1161006f578063f242432a14610aad578063f2fde38b14610acd578063f5298aca14610aed578063fe7c345114610b0d57600080fd5b8063d1994d7114610a54578063e8a3d48514610a78578063e985e9c514610a8d578063ec342ad014610a3e57600080fd5b8063b5bfcfa8116100dc578063b5bfcfa8146109cb578063b5fb12b5146109e0578063bd85b03914610a11578063c197b0f714610a3e57600080fd5b8063a22cb46514610978578063aa5dcab914610998578063ab1184b3146109b857600080fd5b806387761df91161016f5780638da5cb5b116101495780638da5cb5b146108d857806392f99e611461090057806395d89b411461093157806397cbf9cf1461094657600080fd5b806387761df9146108885780638b6c4674146108ac5780638c4bc143146108c257600080fd5b80636b20c454116101ab5780636b20c454146107c1578063715018a6146107e157806378acb035146107f6578063828b57c91461086857600080fd5b806361d6fa2b1461075357806362b99ad4146107735780636629b5081461078857600080fd5b80633698bc8c116102ab5780634f558e791161024957806355f804b31161022357806355f804b3146106c75780635a5e5d58146106e75780635abb3127146106fa578063606647c81461071a57600080fd5b80634f558e791461066357806351a39a58146106925780635503a0e8146106b257600080fd5b80633fb22622116102855780633fb22622146105db57806346b77748146105f657806349df728c146106165780634e1273f41461063657600080fd5b80633698bc8c1461058657806336e79a5a146105a65780633ccfd60b146105c657600080fd5b80631f3e1be91161031857806325fd90f3116102f257806325fd90f3146104ec5780632a55205a1461050b5780632eb2c2d61461054a57806335ab565a1461056a57600080fd5b80631f3e1be91461048c5780632331af61146104bd57806323fa462a146104d757600080fd5b806307a038c61161035457806307a038c61461040a5780630e89341c1461042a5780631453671d1461044a578063147589a71461046c57600080fd5b8062fdd58e1461038557806301ffc9a7146103b857806306fdde03146103e857600080fd5b3661038057005b600080fd5b34801561039157600080fd5b506103a56103a0366004614107565b610b2f565b6040519081526020015b60405180910390f35b3480156103c457600080fd5b506103d86103d3366004614149565b610bdb565b60405190151581526020016103af565b3480156103f457600080fd5b506103fd610c19565b6040516103af91906141be565b34801561041657600080fd5b506103d86104253660046141d1565b610ca7565b34801561043657600080fd5b506103fd6104453660046141d1565b610ce3565b34801561045657600080fd5b5061046a6104653660046141ea565b610dc6565b005b34801561047857600080fd5b5061046a6104873660046142df565b611018565b34801561049857600080fd5b506103d86104a73660046141ea565b6102fd6020526000908152604090205460ff1681565b3480156104c957600080fd5b506006546103d89060ff1681565b3480156104e357600080fd5b5061046a61145b565b3480156104f857600080fd5b506006546103d890610100900460ff1681565b34801561051757600080fd5b5061052b61052636600461432f565b6114b7565b604080516001600160a01b0390931683526020830191909152016103af565b34801561055657600080fd5b5061046a6105653660046143cf565b6114f7565b34801561057657600080fd5b506103a567011c37937e08000081565b34801561059257600080fd5b5061046a6105a1366004614494565b611599565b3480156105b257600080fd5b5061046a6105c1366004614537565b611651565b3480156105d257600080fd5b5061046a611747565b3480156105e757600080fd5b506103a566d529ae9e86000081565b34801561060257600080fd5b5061046a610611366004614560565b611955565b34801561062257600080fd5b5061046a6106313660046141ea565b6119c9565b34801561064257600080fd5b50610656610651366004614599565b611c73565b6040516103af9190614697565b34801561066f57600080fd5b506103d861067e3660046141d1565b600090815260036020526040902054151590565b34801561069e57600080fd5b5061046a6106ad366004614560565b611db1565b3480156106be57600080fd5b506103fd611e25565b3480156106d357600080fd5b5061046a6106e23660046146aa565b611e32565b61046a6106f53660046141d1565b611e8d565b34801561070657600080fd5b5061046a6107153660046141ea565b6120f9565b34801561072657600080fd5b5060065461073e90600160881b900463ffffffff1681565b60405163ffffffff90911681526020016103af565b34801561075f57600080fd5b5061046a61076e366004614707565b61222f565b34801561077f57600080fd5b506103fd61247f565b34801561079457600080fd5b506006546107ae90670100000000000000900461ffff1681565b60405161ffff90911681526020016103af565b3480156107cd57600080fd5b5061046a6107dc36600461477b565b61248c565b3480156107ed57600080fd5b5061046a612531565b34801561080257600080fd5b50600c546108389063ffffffff808216916401000000008104821691680100000000000000008204811691600160601b90041684565b6040805163ffffffff958616815293851660208501529184169183019190915290911660608201526080016103af565b34801561087457600080fd5b5061046a6108833660046141ea565b612585565b34801561089457600080fd5b506006546107ae9065010000000000900461ffff1681565b3480156108b857600080fd5b506107ae61019581565b3480156108ce57600080fd5b506107ae612f3f81565b3480156108e457600080fd5b506004546040516001600160a01b0390911681526020016103af565b34801561090c57600080fd5b506103d861091b3660046141ea565b6102ff6020526000908152604090205460ff1681565b34801561093d57600080fd5b506103fd612768565b34801561095257600080fd5b506006546109669062010000900460ff1681565b60405160ff90911681526020016103af565b34801561098457600080fd5b5061046a610993366004614560565b612775565b3480156109a457600080fd5b5061046a6109b33660046147f1565b612860565b61046a6109c6366004614824565b612980565b3480156109d757600080fd5b5061046a612db7565b3480156109ec57600080fd5b506103d86109fb366004614537565b6102fe6020526000908152604090205460ff1681565b348015610a1d57600080fd5b506103a5610a2c3660046141d1565b60009081526003602052604090205490565b348015610a4a57600080fd5b506107ae61271081565b348015610a6057600080fd5b5060065461073e90600160681b900463ffffffff1681565b348015610a8457600080fd5b506103fd612e1c565b348015610a9957600080fd5b506103d8610aa8366004614859565b612e47565b348015610ab957600080fd5b5061046a610ac8366004614887565b612ea2565b348015610ad957600080fd5b5061046a610ae83660046141ea565b612f29565b348015610af957600080fd5b5061046a610b083660046148f0565b612ff9565b348015610b1957600080fd5b506006546107ae90600160481b900461ffff1681565b60006001600160a01b038316610bb25760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613099565b60088054610c2690614925565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5290614925565b8015610c9f5780601f10610c7457610100808354040283529160200191610c9f565b820191906000526020600020905b815481529060010190602001808311610c8257829003601f168201915b505050505081565b6000600d610cb6600184614976565b612ee08110610cc757610cc761498d565b602081049091015460ff601f9092166101000a90041692915050565b600081815260036020526040902054606090610d675760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610ba9565b600060098054610d7690614925565b905011610d925760405180602001604052806000815250610bd5565b6009610d9d83613134565b600a604051602001610db193929190614a3d565b60405160208183030381529060405292915050565b6001600160a01b038116610e1c5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420757365207a65726f20616464726573732e00000000000000006044820152606401610ba9565b6001600160a01b038116301415610e755760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757365207468697320636f6e747261637420616464726573736044820152606401610ba9565b803b15610eea5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f742073657420726563697069656e7420746f206120636f6e74726160448201527f63742061646472657373000000000000000000000000000000000000000000006064820152608401610ba9565b6000805b6102fb54811015610f9057336001600160a01b03166102fb8281548110610f1757610f1761498d565b6000918252602090912001546001600160a01b03161415610f7e57826102fb8281548110610f4757610f4761498d565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610f90565b80610f8881614a65565b915050610eee565b5080610fde5760405162461bcd60e51b815260206004820152601e60248201527f5468652073656e646572206973206e6f74206120726563697069656e742e00006044820152606401610ba9565b6040516001600160a01b0383169033907f49309b5d08d7bbaebcda96dda577818eee99f98cd01bb4a546ffb81653b4004190600090a35050565b6004546001600160a01b031633146110605760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b600654610100900460ff166110a75760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610ba9565b8051600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612f3f916110e291614a80565b11156111215760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610ba9565b6006544290600160681b900463ffffffff168111801561114f5750600654600160881b900463ffffffff1681105b61119b5760405162461bcd60e51b815260206004820152601260248201527f72656465656d206e6f74207374617274656400000000000000000000000000006044820152606401610ba9565b826001600160a01b03167f97cc16e6c137f44d6456df14a2df4aaf9c87b168053c85e6dd253d88e10e7396836040516111d49190614697565b60405180910390a260005b82518161ffff161015611455576103005483516001600160a01b03808716921690636352211e90869061ffff861690811061121c5761121c61498d565b60200260200101516040518263ffffffff1660e01b815260040161124291815260200190565b60206040518083038186803b15801561125a57600080fd5b505afa15801561126e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112929190614a98565b6001600160a01b0316146112d75760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610ba9565b6101846001848361ffff16815181106112f2576112f261498d565b60200260200101516113049190614976565b612ee081106113155761131561498d565b602081049091015460ff601f9092166101000a900416156113785760405162461bcd60e51b815260206004820152601060248201527f416c72656164792072656465656d6564000000000000000000000000000000006044820152606401610ba9565b60016101846001858461ffff16815181106113955761139561498d565b60200260200101516113a79190614976565b612ee081106113b8576113b861498d565b602091828204019190066101000a81548160ff0219169083151502179055506000600190506102fe6000858461ffff16815181106113f8576113f861498d565b60209081029190910181015161ffff1682528101919091526040016000205460ff1615611423575060025b61144285600160ff16836040518060200160405280600081525061326e565b508061144d81614ab5565b9150506111df565b50505050565b6004546001600160a01b031633146114a35760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6006805460ff19811660ff90911615179055565b60065460009081903090612710906114e2906b010000000000000000000000900461ffff1686614ad7565b6114ec9190614b0c565b915091509250929050565b6001600160a01b03851633148061151357506115138533612e47565b6115855760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610ba9565b61159285858585856132a3565b5050505050565b6004546001600160a01b031633146115e15760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b60005b81518161ffff16101561164d5760016102fe6000848461ffff168151811061160e5761160e61498d565b60209081029190910181015161ffff168252810191909152604001600020805460ff19169115159190911790558061164581614ab5565b9150506115e4565b5050565b6004546001600160a01b031633146116995760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6103e88161ffff1611156117155760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201527f30252e00000000000000000000000000000000000000000000000000000000006064820152608401610ba9565b6006805461ffff9092166b010000000000000000000000026cffff000000000000000000000019909216919091179055565b6002600554141561179a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ba9565b60026005556004546001600160a01b031633146117e75760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b4760005b6102fb548110156119175760006102fb828154811061180c5761180c61498d565b6000918252602090912001546102fc80546001600160a01b039092169161271091908590811061183e5761183e61498d565b6000918252602090912060108204015461186891600f166002026101000a900461ffff1686614ad7565b6118729190614b0c565b604051600081818185875af1925050503d80600081146118ae576040519150601f19603f3d011682016040523d82523d6000602084013e6118b3565b606091505b50509050806119045760405162461bcd60e51b815260206004820152601060248201527f5769746864726177204661696c65642e000000000000000000000000000000006044820152606401610ba9565b508061190f81614a65565b9150506117eb565b5060405181815233907f434a43765b3cd21fa5b240a88fef750a558ba196a12784bdd49335beabc1a39d9060200160405180910390a2506001600555565b6004546001600160a01b0316331461199d5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6001600160a01b039190911660009081526102ff60205260409020805460ff1916911515919091179055565b60026005541415611a1c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ba9565b60026005556004546001600160a01b03163314611a695760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b158015611ac657600080fd5b505afa158015611ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afe9190614b20565b905060005b6102fb54811015611c2857826001600160a01b031663a9059cbb6102fb8381548110611b3157611b3161498d565b6000918252602090912001546102fc80546001600160a01b0390921691612710919086908110611b6357611b6361498d565b60009182526020909120601082040154611b8d91600f166002026101000a900461ffff1687614ad7565b611b979190614b0c565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611bdd57600080fd5b505af1158015611bf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c159190614b39565b5080611c2081614a65565b915050611b03565b506040518181526001600160a01b0384169033907f73298854beb73cf7c63db725c9e244a4c6c2bde8fa5b477fc56d5a8b5c6150d39060200160405180910390a35050600160055550565b60608151835114611cec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610ba9565b6000835167ffffffffffffffff811115611d0857611d08614207565b604051908082528060200260200182016040528015611d31578160200160208202803683370190505b50905060005b8451811015611da957611d7c858281518110611d5557611d5561498d565b6020026020010151858381518110611d6f57611d6f61498d565b6020026020010151610b2f565b828281518110611d8e57611d8e61498d565b6020908102919091010152611da281614a65565b9050611d37565b509392505050565b6004546001600160a01b03163314611df95760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6001600160a01b039190911660009081526102fd60205260409020805460ff1916911515919091179055565b600a8054610c2690614925565b6004546001600160a01b03163314611e7a5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b805161164d90600990602084019061404d565b600654610100900460ff16611ed45760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610ba9565b600081118015611ee5575060058111155b611f315760405162461bcd60e51b815260206004820152601060248201527f4261746368206c696d69742069732035000000000000000000000000000000006044820152606401610ba9565b60065461ffff650100000000008204811691611f56918491600160481b900416614a80565b1115611f955760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610ba9565b611fa78167011c37937e080000614ad7565b341015611ff65760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610ba9565b600c54429068010000000000000000900463ffffffff16811180156120295750600c54600160601b900463ffffffff1681105b6120655760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610ba9565b60065461207e908390600160481b900461ffff16614b56565b6006805461ffff92909216600160481b026affff0000000000000000001990921691909117905560405182815233907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a261164d33600260ff16846040518060200160405280600081525061326e565b6004546001600160a01b031633146121415760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6006546301000000900460ff161561219b5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610ba9565b6006544290600160681b900463ffffffff1681116121fb5760405162461bcd60e51b815260206004820152600f60248201527f52656465656d206e6f74206c69766500000000000000000000000000000000006044820152606401610ba9565b6006805463ff0000001916630100000017905560408051602081019091526000815261164d9083906001906101959061326e565b6004546001600160a01b031633146122775760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b428463ffffffff1611801561229a5750600c54600160601b900463ffffffff1642115b6122e65760405162461bcd60e51b815260206004820152600e60248201527f536561736f6e206f6e676f696e670000000000000000000000000000000000006044820152606401610ba9565b600c805463ffffffff86811667ffffffffffffffff199092169190911764010000000086831602177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff1668010000000000000000858316027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff1617600160601b918416919091021790556006805462010000900460ff1690600261238983614b7c565b91906101000a81548160ff021916908360ff16021790555050600d60006123b091906140d1565b600680546affff0000000000000000001961ffff88811667010000000000000090810268ffff00000000000000198c8416650100000000009081029190911668ffffffffff0000000019909616959095171792909216938490556040805163ffffffff8a8116825289811660208301528881168284015287166060820152938504821660808501529184041660a0830152516201000090920460ff16917f8b57e925cbbf6dec3f6c68a501423af24334900f8f5214b670402eea7d2928969181900360c00190a2505050505050565b60098054610c2690614925565b6001600160a01b0383163314806124b357503360009081526102ff602052604090205460ff165b806124c357506124c38333612e47565b6125215760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610ba9565b61252c83838361350f565b505050565b6004546001600160a01b031633146125795760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6125836000613591565b565b6004546001600160a01b031633146125cd5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b600654640100000000900460ff16156126285760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610ba9565b600c54429063ffffffff16811180156126545750600c5468010000000000000000900463ffffffff1681105b6126905760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610ba9565b6006805464ff00000000191664010000000017908190556126c99061ffff6701000000000000008204811691600160481b900416614b56565b600680546affff0000000000000000001916600160481b61ffff93841602179081905560405167010000000000000090910490911681526001600160a01b038316907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a260065460408051602081019091526000815261164d918491600291670100000000000000900461ffff169061326e565b60078054610c2690614925565b336001600160a01b03831614156127f45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610ba9565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146128a85760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b8163ffffffff168163ffffffff161180156128c85750428263ffffffff16115b6129145760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964206461746573000000000000000000000000000000000000006044820152606401610ba9565b600680547fffffffffffffffffffffff0000000000000000ffffffffffffffffffffffffff16600160681b63ffffffff948516027fffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffffff1617600160881b9290931691909102919091179055565b600654610100900460ff166129c75760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b6044820152606401610ba9565b6006546129ee9061ffff670100000000000000820481169165010000000000900416614b9c565b815160065461ffff92831692612a0c9291600160481b900416614a80565b1115612a4b5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610ba9565b8051612a5e9066d529ae9e860000614ad7565b341015612aad5760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610ba9565b600c54429063ffffffff1681118015612ad55750600c54640100000000900463ffffffff1681105b612b115760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610ba9565b336001600160a01b03167fe3a5f55aca44c01d3b0217df332b3a5629a86f76408d0e4c4ff5abfc37ad426183604051612b4a9190614697565b60405180910390a260005b82518161ffff16101561252c5761030054835133916001600160a01b031690636352211e90869061ffff8616908110612b9057612b9061498d565b60200260200101516040518263ffffffff1660e01b8152600401612bb691815260200190565b60206040518083038186803b158015612bce57600080fd5b505afa158015612be2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c069190614a98565b6001600160a01b031614612c4b5760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610ba9565b600d6001848361ffff1681518110612c6557612c6561498d565b6020026020010151612c779190614976565b612ee08110612c8857612c8861498d565b602081049091015460ff601f9092166101000a90041615612ceb5760405162461bcd60e51b815260206004820152601260248201527f746f6b656e20616c7265616479207573656400000000000000000000000000006044820152606401610ba9565b6001600d6001858461ffff1681518110612d0757612d0761498d565b6020026020010151612d199190614976565b612ee08110612d2a57612d2a61498d565b602081049091018054921515601f9092166101000a91820260ff909202199092161790556006805461ffff600160481b90910416906009612d6a83614ab5565b91906101000a81548161ffff021916908361ffff16021790555050612da533600260ff1660016040518060200160405280600081525061326e565b80612daf81614ab5565b915050612b55565b6004546001600160a01b03163314612dff5760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6006805461ff001981166101009182900460ff1615909102179055565b60606009600b604051602001612e33929190614bbf565b604051602081830303815290604052905090565b6001600160a01b03811660009081526102fd602052604081205460ff1615612e7157506001610bd5565b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6001600160a01b038516331480612ebe5750612ebe8533612e47565b612f1c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610ba9565b61159285858585856135fb565b6004546001600160a01b03163314612f715760405162461bcd60e51b81526020600482018190526024820152600080516020614d708339815191526044820152606401610ba9565b6001600160a01b038116612fed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ba9565b612ff681613591565b50565b6001600160a01b03831633148061302057503360009081526102ff602052604090205460ff165b8061303057506130308333612e47565b61308e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610ba9565b61252c8383836137a8565b60006001600160e01b031982167fd9b67a260000000000000000000000000000000000000000000000000000000014806130fc57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610bd557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bd5565b60608161317457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561319e578061318881614a65565b91506131979050600a83614b0c565b9150613178565b60008167ffffffffffffffff8111156131b9576131b9614207565b6040519080825280601f01601f1916602001820160405280156131e3576020820181803683370190505b5090505b8415613266576131f8600183614976565b9150613205600a86614bd4565b613210906030614a80565b60f81b8183815181106132255761322561498d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061325f600a86614b0c565b94506131e7565b949350505050565b61327a848484846137db565b60008381526003602052604081208054849290613298908490614a80565b909155505050505050565b81518351146133055760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610ba9565b6001600160a01b0384166133695760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610ba9565b336133788187878787876138f8565b60005b84518110156134a15760008582815181106133985761339861498d565b6020026020010151905060008583815181106133b6576133b661498d565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156134495760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610ba9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613486908490614a80565b925050819055505050508061349a90614a65565b905061337b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516134f1929190614be8565b60405180910390a4613507818787878787613982565b505050505050565b61351a838383613b37565b60005b8251811015611455578181815181106135385761353861498d565b6020026020010151600360008584815181106135565761355661498d565b60200260200101518152602001908152602001600020600082825461357b9190614976565b9091555061358a905081614a65565b905061351d565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661365f5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610ba9565b3361367e81878761366f88613d7e565b61367888613d7e565b876138f8565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156137025760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610ba9565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061373f908490614a80565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461379f828888888888613dc9565b50505050505050565b6137b3838383613ed4565b600082815260036020526040812080548392906137d1908490614976565b9091555050505050565b6001600160a01b0384166138575760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610ba9565b336138688160008761366f88613d7e565b6000848152602081815260408083206001600160a01b038916845290915281208054859290613898908490614a80565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461159281600087878787613dc9565b60065460ff168061391057506001600160a01b038516155b6135075760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201527f7768696c652070617573656400000000000000000000000000000000000000006064820152608401610ba9565b6001600160a01b0384163b156135075760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906139c69089908990889088908890600401614c16565b602060405180830381600087803b1580156139e057600080fd5b505af1925050508015613a10575060408051601f3d908101601f19168201909252613a0d91810190614c74565b60015b613ac657613a1c614c91565b806308c379a01415613a565750613a31614cad565b80613a3c5750613a58565b8060405162461bcd60e51b8152600401610ba991906141be565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610ba9565b6001600160e01b0319811663bc197c8160e01b1461379f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610ba9565b6001600160a01b038316613b995760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610ba9565b8051825114613bfb5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610ba9565b6000339050613c1e818560008686604051806020016040528060008152506138f8565b60005b8351811015613d1f576000848281518110613c3e57613c3e61498d565b602002602001015190506000848381518110613c5c57613c5c61498d565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015613ce85760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610ba9565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580613d1781614a65565b915050613c21565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613d70929190614be8565b60405180910390a450505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613db857613db861498d565b602090810291909101015292915050565b6001600160a01b0384163b156135075760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613e0d9089908990889088908890600401614d37565b602060405180830381600087803b158015613e2757600080fd5b505af1925050508015613e57575060408051601f3d908101601f19168201909252613e5491810190614c74565b60015b613e6357613a1c614c91565b6001600160e01b0319811663f23a6e6160e01b1461379f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610ba9565b6001600160a01b038316613f365760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610ba9565b33613f6581856000613f4787613d7e565b613f5087613d7e565b604051806020016040528060008152506138f8565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613fe25760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610ba9565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b82805461405990614925565b90600052602060002090601f01602090048101928261407b57600085556140c1565b82601f1061409457805160ff19168380011785556140c1565b828001600101855582156140c1579182015b828111156140c15782518255916020019190600101906140a6565b506140cd9291506140dd565b5090565b50612ff6906101778101905b5b808211156140cd57600081556001016140de565b6001600160a01b0381168114612ff657600080fd5b6000806040838503121561411a57600080fd5b8235614125816140f2565b946020939093013593505050565b6001600160e01b031981168114612ff657600080fd5b60006020828403121561415b57600080fd5b8135612e9b81614133565b60005b83811015614181578181015183820152602001614169565b838111156114555750506000910152565b600081518084526141aa816020860160208601614166565b601f01601f19169290920160200192915050565b602081526000612e9b6020830184614192565b6000602082840312156141e357600080fd5b5035919050565b6000602082840312156141fc57600080fd5b8135612e9b816140f2565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561424357614243614207565b6040525050565b600067ffffffffffffffff82111561426457614264614207565b5060051b60200190565b600082601f83011261427f57600080fd5b8135602061428c8261424a565b604051614299828261421d565b83815260059390931b85018201928281019150868411156142b957600080fd5b8286015b848110156142d457803583529183019183016142bd565b509695505050505050565b600080604083850312156142f257600080fd5b82356142fd816140f2565b9150602083013567ffffffffffffffff81111561431957600080fd5b6143258582860161426e565b9150509250929050565b6000806040838503121561434257600080fd5b50508035926020909101359150565b600067ffffffffffffffff83111561436b5761436b614207565b604051614382601f8501601f19166020018261421d565b80915083815284848401111561439757600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126143c057600080fd5b612e9b83833560208501614351565b600080600080600060a086880312156143e757600080fd5b85356143f2816140f2565b94506020860135614402816140f2565b9350604086013567ffffffffffffffff8082111561441f57600080fd5b61442b89838a0161426e565b9450606088013591508082111561444157600080fd5b61444d89838a0161426e565b9350608088013591508082111561446357600080fd5b50614470888289016143af565b9150509295509295909350565b803561ffff8116811461448f57600080fd5b919050565b600060208083850312156144a757600080fd5b823567ffffffffffffffff8111156144be57600080fd5b8301601f810185136144cf57600080fd5b80356144da8161424a565b6040516144e7828261421d565b82815260059290921b830184019184810191508783111561450757600080fd5b928401925b8284101561452c5761451d8461447d565b8252928401929084019061450c565b979650505050505050565b60006020828403121561454957600080fd5b612e9b8261447d565b8015158114612ff657600080fd5b6000806040838503121561457357600080fd5b823561457e816140f2565b9150602083013561458e81614552565b809150509250929050565b600080604083850312156145ac57600080fd5b823567ffffffffffffffff808211156145c457600080fd5b818501915085601f8301126145d857600080fd5b813560206145e58261424a565b6040516145f2828261421d565b83815260059390931b850182019282810191508984111561461257600080fd5b948201945b8386101561463957853561462a816140f2565b82529482019490820190614617565b9650508601359250508082111561464f57600080fd5b506143258582860161426e565b600081518084526020808501945080840160005b8381101561468c57815187529582019590820190600101614670565b509495945050505050565b602081526000612e9b602083018461465c565b6000602082840312156146bc57600080fd5b813567ffffffffffffffff8111156146d357600080fd5b8201601f810184136146e457600080fd5b61326684823560208401614351565b803563ffffffff8116811461448f57600080fd5b60008060008060008060c0878903121561472057600080fd5b6147298761447d565b95506147376020880161447d565b9450614745604088016146f3565b9350614753606088016146f3565b9250614761608088016146f3565b915061476f60a088016146f3565b90509295509295509295565b60008060006060848603121561479057600080fd5b833561479b816140f2565b9250602084013567ffffffffffffffff808211156147b857600080fd5b6147c48783880161426e565b935060408601359150808211156147da57600080fd5b506147e78682870161426e565b9150509250925092565b6000806040838503121561480457600080fd5b61480d836146f3565b915061481b602084016146f3565b90509250929050565b60006020828403121561483657600080fd5b813567ffffffffffffffff81111561484d57600080fd5b6132668482850161426e565b6000806040838503121561486c57600080fd5b8235614877816140f2565b9150602083013561458e816140f2565b600080600080600060a0868803121561489f57600080fd5b85356148aa816140f2565b945060208601356148ba816140f2565b93506040860135925060608601359150608086013567ffffffffffffffff8111156148e457600080fd5b614470888289016143af565b60008060006060848603121561490557600080fd5b8335614910816140f2565b95602085013595506040909401359392505050565b600181811c9082168061493957607f821691505b6020821081141561495a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561498857614988614960565b500390565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c90808316806149bd57607f831692505b60208084108214156149df57634e487b7160e01b600052602260045260246000fd5b8180156149f35760018114614a0457614a31565b60ff19861689528489019650614a31565b60008881526020902060005b86811015614a295781548b820152908501908301614a10565b505084890196505b50505050505092915050565b6000614a4982866149a3565b8451614a59818360208901614166565b61452c818301866149a3565b6000600019821415614a7957614a79614960565b5060010190565b60008219821115614a9357614a93614960565b500190565b600060208284031215614aaa57600080fd5b8151612e9b816140f2565b600061ffff80831681811415614acd57614acd614960565b6001019392505050565b6000816000190483118215151615614af157614af1614960565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614b1b57614b1b614af6565b500490565b600060208284031215614b3257600080fd5b5051919050565b600060208284031215614b4b57600080fd5b8151612e9b81614552565b600061ffff808316818516808303821115614b7357614b73614960565b01949350505050565b600060ff821660ff811415614b9357614b93614960565b60010192915050565b600061ffff83811690831681811015614bb757614bb7614960565b039392505050565b6000613266614bce83866149a3565b846149a3565b600082614be357614be3614af6565b500690565b604081526000614bfb604083018561465c565b8281036020840152614c0d818561465c565b95945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152614c4260a083018661465c565b8281036060840152614c54818661465c565b90508281036080840152614c688185614192565b98975050505050505050565b600060208284031215614c8657600080fd5b8151612e9b81614133565b600060033d1115614caa5760046000803e5060005160e01c5b90565b600060443d1015614cbb5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715614ceb57505050505090565b8285019150815181811115614d035750505050505090565b843d8701016020828501011115614d1d5750505050505090565b614d2c6020828601018761421d565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261452c60a083018461419256fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122029cac9e1c59d95dd5f733dadfba1a8d3b890c6a487a1f4bb53fa0306484b977264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000020000000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f7000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000084e414e4f4341545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e43415400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f636174626f746963612e6d7970696e6174612e636c6f75642f697066732f516d51373154413333594a4572564d39786536327436716e3278535a73664b7438716b47445739386635555635642f000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000008d97009c21a17197f9e256d51923bdb858a7e3550000000000000000000000006f9c72972b4603eaf8fe29c60f428a1c2f474f6d000000000000000000000000179dbb893c4a8e09605cc0a6c8a2dc8ce0adcee1000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000001f40
-----Decoded View---------------
Arg [0] : name_ (string): NANOCATS
Arg [1] : symbol_ (string): NCAT
Arg [2] : uriPrefix_ (string): https://catbotica.mypinata.cloud/ipfs/QmQ71TA33YJErVM9xe62t6qn2xSZsfKt8qkGDW98f5UV5d/
Arg [3] : uriSuffix_ (string): .json
Arg [4] : _cbotContract (address): 0x25E5e2b4b8F11c32CDd48c2FB394fbda9a2861F7
Arg [5] : _recipients (address[]): 0x8d97009c21A17197f9e256D51923bDB858A7e355,0x6f9C72972B4603eAf8FE29C60f428A1C2F474F6D,0x179dBb893c4a8E09605CC0a6C8a2dC8Ce0AdCEe1
Arg [6] : _splits (uint16[]): 500,1500,8000
Arg [7] : _proxyAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
26 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 00000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f7
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [6] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [7] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [9] : 4e414e4f43415453000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 4e43415400000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [13] : 68747470733a2f2f636174626f746963612e6d7970696e6174612e636c6f7564
Arg [14] : 2f697066732f516d51373154413333594a4572564d39786536327436716e3278
Arg [15] : 535a73664b7438716b47445739386635555635642f0000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [19] : 0000000000000000000000008d97009c21a17197f9e256d51923bdb858a7e355
Arg [20] : 0000000000000000000000006f9c72972b4603eaf8fe29c60f428a1c2f474f6d
Arg [21] : 000000000000000000000000179dbb893c4a8e09605cc0a6c8a2dc8ce0adcee1
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [23] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [24] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [25] : 0000000000000000000000000000000000000000000000000000000000001f40
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.