ERC-1155
Overview
Max Total Supply
727
Holders
70
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 Source Code Verified (Exact Match)
Contract Name:
Cards
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./Packages.sol"; contract Cards is IERC1155MetadataURI, Ownable, ERC1155Burnable { using Strings for uint256; address private _recipient; /// @dev Addess of the package contract Packages packages; /// @dev Token pack IDs uint256 public constant ONE_CARD_PACK_ID = 0; uint256 public constant FIVE_CARD_PACK_ID = 1; uint256 public constant TWENTY_CARD_PACK_ID = 2; /// @dev supplyLimit. mapping(uint256 => uint256) public supplyLimit; /// @dev Total supply for each token. mapping(uint256 => uint256) public totalSupply; /// @dev Number of unique cards in existence. uint256 public numberOfUniqueCards; /// @dev Total number of minted cards. uint256 public totalNumberOfMintedCards; /// @dev Total supply of cards uint256 public totalSupplyOfCards; /// @dev Union worker token ID uint256 UNION_WORKER_CARD_ID = 26; uint256 UNION_CARD_SUPPLY_LIMIT = 25; // @dev Wallet to receive funds from contract address payable public payoutWallet; string private baseUri; bool public openPackageActive; constructor( address _packages, uint256[] memory _supplyLimit, address payable payoutWallet_, string memory baseUri_ ) ERC1155("") { packages = Packages(_packages); payoutWallet = payoutWallet_; baseUri = baseUri_; uint256 _totalSupplyOfCards = 0; for (uint256 i = 0; i < _supplyLimit.length; i++) { supplyLimit[i] = _supplyLimit[i]; _totalSupplyOfCards += _supplyLimit[i]; } totalSupplyOfCards = _totalSupplyOfCards; numberOfUniqueCards = uint256(_supplyLimit.length); } function setBaseURI(string memory _baseURI) public onlyOwner { baseUri = _baseURI; emit SetBaseUri(baseUri); } function setOpenPackageActive(bool _openPackageActive) public onlyOwner { openPackageActive = _openPackageActive; emit SetOpenPackageActive(openPackageActive); } function tokenURI(uint256 _tokenId) public view returns (string memory) { require(totalSupply[_tokenId] > 0, "Token does not exist"); return string(abi.encodePacked(baseUri, _tokenId.toString())); } function openCardPackages(uint256[3] memory numberOfCardpacks) external { require(openPackageActive, "Open package is not active"); require(msg.sender == tx.origin, "Contracts cannot call this function"); // Burn msg.sender's packages require( packages.burnCardPackages(numberOfCardpacks), "Failed to burn packs" ); // Get number of cards to mint from package type uint256 numberOfCardsToOpen = numberOfCardpacks[ONE_CARD_PACK_ID] + numberOfCardpacks[FIVE_CARD_PACK_ID] * 5 + numberOfCardpacks[TWENTY_CARD_PACK_ID] * 20; // Get random card IDs to mint uint256[] memory cardIds = _getRandomCardIds(numberOfCardsToOpen); // Array of number of cards to mint for each card ID (all 1) uint256[] memory cardAmounts = new uint256[](numberOfCardsToOpen); for (uint256 i = 0; i < numberOfCardsToOpen; i++) { cardAmounts[i] = 1; } _mintBatch(msg.sender, cardIds, cardAmounts, ""); } // Function to get n random values from one random value function expand(uint256 randomValue, uint256 n) public pure returns (uint256[] memory expandedValues) { expandedValues = new uint256[](n); for (uint256 i = 0; i < n; i++) { expandedValues[i] = uint256(keccak256(abi.encode(randomValue, i))); } return expandedValues; } /// @dev Function for getting random valid card IDs function _getRandomCardIds(uint256 nRandomNumbers) internal returns (uint256[] memory) { uint256 randomValue = uint256( keccak256(abi.encodePacked(block.difficulty, block.timestamp)) ); uint256[] memory randomValues = expand(randomValue, nRandomNumbers); uint256[] memory tokenIdsToMint = new uint256[](nRandomNumbers); for ( uint256 tokenIdsToMintIndex = 0; tokenIdsToMintIndex < nRandomNumbers; tokenIdsToMintIndex++ ) { // numberOfCardsLeft is the total number of cards left in the collection not minted yet uint256 numberOfCardsLeft = totalSupplyOfCards - totalNumberOfMintedCards; // Get random number between 0 and numberOfCardsLeft uint256 randomCardNumber = uint256( randomValues[tokenIdsToMintIndex] % numberOfCardsLeft ); // To get a valid card ID, we loop through the remaining supply of each card aggregate it. // When we reach a aggregated supply that is greater than the random number that is between 0 and numberOfCardsLeft. // We add the card ID to the array of card IDs to mint and increase the supply of that card by 1. uint256 aggregatedSupply = 0; for ( uint256 tokenID = 0; tokenID < numberOfUniqueCards; tokenID++ ) { aggregatedSupply += supplyLimit[tokenID] - totalSupply[tokenID]; if (randomCardNumber < aggregatedSupply) { tokenIdsToMint[tokenIdsToMintIndex] = tokenID; totalNumberOfMintedCards += 1; totalSupply[tokenID] += 1; break; } } } return tokenIdsToMint; } function mintUnionCard(address[] memory receivers) public onlyOwner { require( totalSupply[UNION_WORKER_CARD_ID] + receivers.length <= UNION_CARD_SUPPLY_LIMIT, "The union does not accept new members" ); // Increase supply of union woprkers length of receivers totalSupply[UNION_WORKER_CARD_ID] += receivers.length; for (uint256 i = 0; i < receivers.length; i++) { _mint(receivers[i], UNION_WORKER_CARD_ID, 1, ""); } emit MintUnionCard(msg.sender); } function setPayoutWallet(address payable payoutWallet_) public onlyOwner { payoutWallet = payoutWallet_; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payoutWallet.transfer(balance); } event SetBaseUri(string baseUri_); event MintUnionCard(address indexed receiver); event SetOpenPackageActive(bool openPackageActive_); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; //only set to abstract for set up of project contract Packages is ERC1155, Ownable, ERC1155Burnable { using Strings for uint256; address private _recipient; bool public saleActive = false; bool public whitelistSaleActive = false; uint256 public constant ONE_CARD_PACK_ID = 0; uint256 public constant FIVE_CARD_PACK_ID = 1; uint256 public constant TWENTY_CARD_PACK_ID = 2; /// @dev Package price mapping(uint256 => uint256) public packagePrice; /// @dev Total supply for each token. mapping(uint256 => uint256) public totalSupply; /// @dev Supply limit for each token. mapping(uint256 => uint256) public supplyLimit; mapping(address => bool) private whitelist; //mapping of address to card pack string private baseUri; // @dev Wallet to receive funds from contract address payable public payoutWallet; constructor( string memory baseUri_, uint256[3] memory supplyLimit_, uint256[3] memory packagePrice_, address payable payoutWallet_ ) payable ERC1155("") { baseUri = baseUri_; payoutWallet = payoutWallet_; supplyLimit[ONE_CARD_PACK_ID] = supplyLimit_[ONE_CARD_PACK_ID]; supplyLimit[FIVE_CARD_PACK_ID] = supplyLimit_[FIVE_CARD_PACK_ID]; supplyLimit[TWENTY_CARD_PACK_ID] = supplyLimit_[TWENTY_CARD_PACK_ID]; packagePrice[ONE_CARD_PACK_ID] = packagePrice_[ONE_CARD_PACK_ID]; packagePrice[FIVE_CARD_PACK_ID] = packagePrice_[FIVE_CARD_PACK_ID]; packagePrice[TWENTY_CARD_PACK_ID] = packagePrice_[TWENTY_CARD_PACK_ID]; } function setBaseURI(string memory _baseURI) public onlyOwner { baseUri = _baseURI; emit BaseUriSet(baseUri); } function setPackagePrices(uint256[3] memory packagePrices) public onlyOwner { require(packagePrices.length == 3, "Invalid array length"); packagePrice[ONE_CARD_PACK_ID] = packagePrices[0]; packagePrice[FIVE_CARD_PACK_ID] = packagePrices[1]; packagePrice[TWENTY_CARD_PACK_ID] = packagePrices[2]; emit PackagePricesSet(packagePrices); } function tokenURI(uint256 _tokenId) public view returns (string memory) { require(totalSupply[_tokenId] > 0, "Token does not exist"); return string(abi.encodePacked(baseUri, _tokenId.toString())); } function getNumberOfPackagesAvailable(uint256 cardPackType) public view returns (uint256) { return supplyLimit[cardPackType] - totalSupply[cardPackType]; } function getTotalSupply() public view returns (uint256[3] memory) { return [ totalSupply[ONE_CARD_PACK_ID], totalSupply[FIVE_CARD_PACK_ID], totalSupply[TWENTY_CARD_PACK_ID] ]; } function getPackagePrices() public view returns (uint256[3] memory) { return [ packagePrice[ONE_CARD_PACK_ID], packagePrice[FIVE_CARD_PACK_ID], packagePrice[TWENTY_CARD_PACK_ID] ]; } function buyCardPacks(uint256[3] memory numberOfCardpacks) public payable { require(saleActive, "Sale is not active"); mintCardPacks(numberOfCardpacks); } /// @dev Input an array of number of cards to mint for each pack type /// [Number of one card packs, Number of five card packs, Number of twenty card packs] function whiteListBuy(uint256[3] memory numberOfCardpacks) public payable { require( whitelistSaleActive || saleActive, "Whitelist sale is not active" ); require(whitelist[msg.sender], "Not whitelisted"); mintCardPacks(numberOfCardpacks); } function mintCardPacks(uint256[3] memory numberOfCardpacks) internal { require( (numberOfCardpacks[ONE_CARD_PACK_ID] > 0 || numberOfCardpacks[FIVE_CARD_PACK_ID] > 0 || numberOfCardpacks[TWENTY_CARD_PACK_ID] > 0), "You need to buy atleast one card pack" ); require( msg.value >= ((packagePrice[ONE_CARD_PACK_ID] * numberOfCardpacks[ONE_CARD_PACK_ID]) + (packagePrice[FIVE_CARD_PACK_ID] * numberOfCardpacks[FIVE_CARD_PACK_ID]) + (packagePrice[TWENTY_CARD_PACK_ID] * numberOfCardpacks[TWENTY_CARD_PACK_ID])), "Insufficient funds" ); require( getNumberOfPackagesAvailable(ONE_CARD_PACK_ID) >= numberOfCardpacks[ONE_CARD_PACK_ID] && getNumberOfPackagesAvailable(FIVE_CARD_PACK_ID) >= numberOfCardpacks[FIVE_CARD_PACK_ID] && getNumberOfPackagesAvailable(TWENTY_CARD_PACK_ID) >= numberOfCardpacks[TWENTY_CARD_PACK_ID], "Not enough packages available" ); for (uint256 i = 0; i < 3; i++) { if (numberOfCardpacks[i] > 0) { _mint(msg.sender, i, numberOfCardpacks[i], ""); totalSupply[i] += numberOfCardpacks[i]; emit CardPackMinted(msg.sender, i, numberOfCardpacks[i]); } } } function setSaleActive(bool saleActive_) public onlyOwner { saleActive = saleActive_; emit SaleActive(saleActive_); } function getSaleActive() public view returns (bool) { return saleActive; } function setWhitelistSaleActive(bool whitelistSaleActive_) external onlyOwner { whitelistSaleActive = whitelistSaleActive_; emit WhiteListSaleActive(whitelistSaleActive_); } function getWhitelistSaleActive() public view returns (bool) { return whitelistSaleActive; } function setPayoutWallet(address payable payoutWallet_) public onlyOwner { payoutWallet = payoutWallet_; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payoutWallet.transfer(balance); } function addtoWhiteList(address[] memory _addresses) public onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { whitelist[_addresses[i]] = true; } emit AddedToWhiteList(_addresses); } function removeFromWhiteList(address _address) public onlyOwner { whitelist[_address] = false; } function isWhitelisted(address _address) public view returns (bool) { return whitelist[_address]; } function burnCardPackages(uint256[3] memory numberOfCardpacks) public returns (bool) { // Are there any way of burning someone elses card pack? uint256[3] memory cardPackBalances = [ balanceOf(tx.origin, ONE_CARD_PACK_ID), balanceOf(tx.origin, FIVE_CARD_PACK_ID), balanceOf(tx.origin, TWENTY_CARD_PACK_ID) ]; for (uint256 cardPackTypeId = 0; cardPackTypeId < 3; cardPackTypeId++) { require( cardPackBalances[cardPackTypeId] >= numberOfCardpacks[cardPackTypeId], "Not enough card packs" ); _burn(tx.origin, cardPackTypeId, numberOfCardpacks[cardPackTypeId]); emit CardPackBurned( tx.origin, numberOfCardpacks[cardPackTypeId], cardPackTypeId ); } return true; } function giftCardPackages( address[] calldata walletAddressList, uint256[] calldata packageTypeId, uint256[] calldata numberOfCardpacks ) public onlyOwner { require( walletAddressList.length == packageTypeId.length && walletAddressList.length == numberOfCardpacks.length, "Input arrays must be of same length" ); uint256 nOnePacks = 0; uint256 nFivePacks = 0; uint256 nTwentyPacks = 0; for (uint256 i = 0; i < walletAddressList.length; i++) { if (packageTypeId[i] == ONE_CARD_PACK_ID) { nOnePacks += numberOfCardpacks[i]; } else if (packageTypeId[i] == FIVE_CARD_PACK_ID) { nFivePacks += numberOfCardpacks[i]; } else if (packageTypeId[i] == TWENTY_CARD_PACK_ID) { nTwentyPacks += numberOfCardpacks[i]; } else { revert("Package type ID is not valid"); } } require( nOnePacks <= getNumberOfPackagesAvailable(ONE_CARD_PACK_ID), "Not enough one card packs available" ); require( nFivePacks <= getNumberOfPackagesAvailable(FIVE_CARD_PACK_ID), "Not enough five card packs available" ); require( nTwentyPacks <= getNumberOfPackagesAvailable(TWENTY_CARD_PACK_ID), "Not enough twenty card packs available" ); for (uint256 i = 0; i < walletAddressList.length; i++) { _mint( walletAddressList[i], packageTypeId[i], numberOfCardpacks[i], "" ); totalSupply[packageTypeId[i]] += numberOfCardpacks[i]; emit CardPackMintedWhitelist( walletAddressList[i], packageTypeId[i], numberOfCardpacks[i] ); } emit GiftCardPackages( walletAddressList, packageTypeId, numberOfCardpacks ); } event CardPackMinted( address indexed _address, uint256 cardPackType, uint256 amount ); event CardPackMintedWhitelist( address indexed _address, uint256 cardPackType, uint256 amount ); event GiftCardPackages( address[] indexed _address, uint256[] cardPackType, uint256[] numberOfPacks ); event BaseUriSet(string baseUri); event SaleActive(bool saleActive_); event WhiteListSaleActive(bool whiteListSaleActive); event Withdraw(address address_); event AddedToWhiteList(address[] indexed _address); event CardPackBurned( address indexed _address, uint256 numberOfCardPacks, uint256 cardPackType ); event PackagePricesSet(uint256[3] packagePrices_); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token 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: caller is not token 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, 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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _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); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` 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 {} /** * @dev Hook that is called after 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 _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: 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. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_packages","type":"address"},{"internalType":"uint256[]","name":"_supplyLimit","type":"uint256[]"},{"internalType":"address payable","name":"payoutWallet_","type":"address"},{"internalType":"string","name":"baseUri_","type":"string"}],"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":"receiver","type":"address"}],"name":"MintUnionCard","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":false,"internalType":"string","name":"baseUri_","type":"string"}],"name":"SetBaseUri","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"openPackageActive_","type":"bool"}],"name":"SetOpenPackageActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"FIVE_CARD_PACK_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ONE_CARD_PACK_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TWENTY_CARD_PACK_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"randomValue","type":"uint256"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"expand","outputs":[{"internalType":"uint256[]","name":"expandedValues","type":"uint256[]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"mintUnionCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"numberOfUniqueCards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[3]","name":"numberOfCardpacks","type":"uint256[3]"}],"name":"openCardPackages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openPackageActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_openPackageActive","type":"bool"}],"name":"setOpenPackageActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payoutWallet_","type":"address"}],"name":"setPayoutWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalNumberOfMintedCards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyOfCards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052601a600b556019600c553480156200001b57600080fd5b5060405162005707380380620057078339818101604052810190620000419190620006b4565b604051806020016040528060008152506200007162000065620001bf60201b60201c565b620001c760201b60201c565b62000082816200028b60201b60201c565b5083600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e90805190602001906200011d929190620002a7565b506000805b8451811015620001a45784818151811062000142576200014162000764565b5b6020026020010151600660008381526020019081526020016000208190555084818151811062000177576200017662000764565b5b6020026020010151826200018c9190620007c2565b915080806200019b906200081f565b91505062000122565b5080600a8190555083516008819055505050505050620008d2565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060039080519060200190620002a3929190620002a7565b5050565b828054620002b5906200089c565b90600052602060002090601f016020900481019282620002d9576000855562000325565b82601f10620002f457805160ff191683800117855562000325565b8280016001018555821562000325579182015b828111156200032457825182559160200191906001019062000307565b5b50905062000334919062000338565b5090565b5b808211156200035357600081600090555060010162000339565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000398826200036b565b9050919050565b620003aa816200038b565b8114620003b657600080fd5b50565b600081519050620003ca816200039f565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200042082620003d5565b810181811067ffffffffffffffff82111715620004425762000441620003e6565b5b80604052505050565b60006200045762000357565b905062000465828262000415565b919050565b600067ffffffffffffffff821115620004885762000487620003e6565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b620004b3816200049e565b8114620004bf57600080fd5b50565b600081519050620004d381620004a8565b92915050565b6000620004f0620004ea846200046a565b6200044b565b9050808382526020820190506020840283018581111562000516576200051562000499565b5b835b818110156200054357806200052e8882620004c2565b84526020840193505060208101905062000518565b5050509392505050565b600082601f830112620005655762000564620003d0565b5b815162000577848260208601620004d9565b91505092915050565b60006200058d826200036b565b9050919050565b6200059f8162000580565b8114620005ab57600080fd5b50565b600081519050620005bf8162000594565b92915050565b600080fd5b600067ffffffffffffffff821115620005e857620005e7620003e6565b5b620005f382620003d5565b9050602081019050919050565b60005b838110156200062057808201518184015260208101905062000603565b8381111562000630576000848401525b50505050565b60006200064d6200064784620005ca565b6200044b565b9050828152602081018484840111156200066c576200066b620005c5565b5b6200067984828562000600565b509392505050565b600082601f830112620006995762000698620003d0565b5b8151620006ab84826020860162000636565b91505092915050565b60008060008060808587031215620006d157620006d062000361565b5b6000620006e187828801620003b9565b945050602085015167ffffffffffffffff81111562000705576200070462000366565b5b62000713878288016200054d565b93505060406200072687828801620005ae565b925050606085015167ffffffffffffffff8111156200074a576200074962000366565b5b620007588782880162000681565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620007cf826200049e565b9150620007dc836200049e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000814576200081362000793565b5b828201905092915050565b60006200082c826200049e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000862576200086162000793565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008b557607f821691505b60208210811415620008cc57620008cb6200086d565b5b50919050565b614e2580620008e26000396000f3fe608060405234801561001057600080fd5b50600436106101e45760003560e01c80638488bb4e1161010f578063c87b56dd116100a2578063f2fde38b11610071578063f2fde38b1461057d578063f5298aca14610599578063f5873344146105b5578063fa6d4906146105d3576101e4565b8063c87b56dd146104e3578063e3659ded14610513578063e985e9c514610531578063f242432a14610561576101e4565b8063a22cb465116100de578063a22cb4651461045b578063b807c2cb14610477578063bd85b03914610495578063c2dced3c146104c5576101e4565b80638488bb4e146103d1578063874b3afc146103ef5780638da5cb5b1461041f5780639b5569571461043d576101e4565b806355f804b311610187578063715018a611610156578063715018a61461035b57806378416adb146103655780637caae780146103955780637f6acb3b146103b3576101e4565b806355f804b3146102eb57806369114f34146103075780636b20c454146103235780636b8f9c431461033f576101e4565b806327701156116101c357806327701156146102795780632eb2c2d6146102955780633ccfd60b146102b15780634e1273f4146102bb576101e4565b8062fdd58e146101e957806301ffc9a7146102195780630e89341c14610249575b600080fd5b61020360048036038101906101fe9190612f73565b6105ef565b6040516102109190612fc2565b60405180910390f35b610233600480360381019061022e9190613035565b6106b9565b604051610240919061307d565b60405180910390f35b610263600480360381019061025e9190613098565b61079b565b604051610270919061315e565b60405180910390f35b610293600480360381019061028e91906131ac565b61082f565b005b6102af60048036038101906102aa91906133d6565b61089a565b005b6102b961093b565b005b6102d560048036038101906102d09190613568565b6109b4565b6040516102e2919061369e565b60405180910390f35b61030560048036038101906103009190613761565b610acd565b005b610321600480360381019061031c91906137aa565b610b27565b005b61033d600480360381019061033891906137f3565b610c60565b005b610359600480360381019061035491906138bc565b610cfd565b005b610363610d49565b005b61037f600480360381019061037a9190613098565b610d5d565b60405161038c9190612fc2565b60405180910390f35b61039d610d75565b6040516103aa9190612fc2565b60405180910390f35b6103bb610d7b565b6040516103c89190612fc2565b60405180910390f35b6103d9610d81565b6040516103e691906138f8565b60405180910390f35b61040960048036038101906104049190613913565b610da7565b604051610416919061369e565b60405180910390f35b610427610e64565b6040516104349190613962565b60405180910390f35b610445610e8d565b6040516104529190612fc2565b60405180910390f35b6104756004803603810190610470919061397d565b610e92565b005b61047f610ea8565b60405161048c9190612fc2565b60405180910390f35b6104af60048036038101906104aa9190613098565b610eae565b6040516104bc9190612fc2565b60405180910390f35b6104cd610ec6565b6040516104da9190612fc2565b60405180910390f35b6104fd60048036038101906104f89190613098565b610ecb565b60405161050a919061315e565b60405180910390f35b61051b610f55565b604051610528919061307d565b60405180910390f35b61054b600480360381019061054691906139bd565b610f68565b604051610558919061307d565b60405180910390f35b61057b600480360381019061057691906139fd565b610ffc565b005b61059760048036038101906105929190613a94565b61109d565b005b6105b360048036038101906105ae9190613ac1565b611121565b005b6105bd6111be565b6040516105ca9190612fc2565b60405180910390f35b6105ed60048036038101906105e89190613bc5565b6111c3565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065790613c64565b60405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061078457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107945750610793826114a2565b5b9050919050565b6060600380546107aa90613cb3565b80601f01602080910402602001604051908101604052809291908181526020018280546107d690613cb3565b80156108235780601f106107f857610100808354040283529160200191610823565b820191906000526020600020905b81548152906001019060200180831161080657829003601f168201915b50505050509050919050565b61083761150c565b80600f60006101000a81548160ff0219169083151502179055507f97313d148701f61c548456a3201642bcd3f26edd4ce29919a1812d69c968d015600f60009054906101000a900460ff1660405161088f919061307d565b60405180910390a150565b6108a261158a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806108e857506108e7856108e261158a565b610f68565b5b610927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091e90613d57565b60405180910390fd5b6109348585858585611592565b5050505050565b61094361150c565b6000479050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109b0573d6000803e3d6000fd5b5050565b606081518351146109fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f190613de9565b60405180910390fd5b6000835167ffffffffffffffff811115610a1757610a166131de565b5b604051908082528060200260200182016040528015610a455781602001602082028036833780820191505090505b50905060005b8451811015610ac257610a92858281518110610a6a57610a69613e09565b5b6020026020010151858381518110610a8557610a84613e09565b5b60200260200101516105ef565b828281518110610aa557610aa4613e09565b5b60200260200101818152505080610abb90613e67565b9050610a4b565b508091505092915050565b610ad561150c565b80600e9080519060200190610aeb929190612e28565b507fafa35f42f46f5052816d7c6a2e9406eca98294b20726677862d83b4a7418d8d5600e604051610b1c9190613f45565b60405180910390a150565b610b2f61150c565b600c54815160076000600b54815260200190815260200160002054610b549190613f67565b1115610b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8c9061402f565b60405180910390fd5b805160076000600b5481526020019081526020016000206000828254610bbb9190613f67565b9250508190555060005b8151811015610c1957610c06828281518110610be457610be3613e09565b5b6020026020010151600b546001604051806020016040528060008152506118b7565b8080610c1190613e67565b915050610bc5565b503373ffffffffffffffffffffffffffffffffffffffff167f93e52d8e1d6b78e572aa4fb4f113d35e6fd2e56828fd191955270d4a6359f6b160405160405180910390a250565b610c6861158a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610cae5750610cad83610ca861158a565b610f68565b5b610ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce490613d57565b60405180910390fd5b610cf8838383611a69565b505050565b610d0561150c565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d5161150c565b610d5b6000611d3a565b565b60066020528060005260406000206000915090505481565b600a5481565b60085481565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60608167ffffffffffffffff811115610dc357610dc26131de565b5b604051908082528060200260200182016040528015610df15781602001602082028036833780820191505090505b50905060005b82811015610e5d578381604051602001610e1292919061404f565b6040516020818303038152906040528051906020012060001c828281518110610e3e57610e3d613e09565b5b6020026020010181815250508080610e5590613e67565b915050610df7565b5092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600281565b610ea4610e9d61158a565b8383611dfe565b5050565b60095481565b60076020528060005260406000206000915090505481565b600081565b60606000600760008481526020019081526020016000205411610f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1a906140c4565b60405180910390fd5b600e610f2e83611f6b565b604051602001610f3f92919061419f565b6040516020818303038152906040529050919050565b600f60009054906101000a900460ff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61100461158a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061104a57506110498561104461158a565b610f68565b5b611089576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108090613d57565b60405180910390fd5b61109685858585856120cc565b5050505050565b6110a561150c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c90614235565b60405180910390fd5b61111e81611d3a565b50565b61112961158a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061116f575061116e8361116961158a565b610f68565b5b6111ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a590613d57565b60405180910390fd5b6111b983838361236b565b505050565b600181565b600f60009054906101000a900460ff16611212576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611209906142a1565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127790614333565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f5d66e0826040518263ffffffff1660e01b81526004016112db91906143d7565b602060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132d9190614407565b61136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136390614480565b60405180910390fd5b600060148260026003811061138457611383613e09565b5b602002015161139391906144a0565b6005836001600381106113a9576113a8613e09565b5b60200201516113b891906144a0565b836000600381106113cc576113cb613e09565b5b60200201516113db9190613f67565b6113e59190613f67565b905060006113f2826125b4565b905060008267ffffffffffffffff8111156114105761140f6131de565b5b60405190808252806020026020018201604052801561143e5781602001602082028036833780820191505090505b50905060005b8381101561148057600182828151811061146157611460613e09565b5b602002602001018181525050808061147890613e67565b915050611444565b5061149c3383836040518060200160405280600081525061277f565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61151461158a565b73ffffffffffffffffffffffffffffffffffffffff16611532610e64565b73ffffffffffffffffffffffffffffffffffffffff1614611588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157f90614546565b60405180910390fd5b565b600033905090565b81518351146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd906145d8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163d9061466a565b60405180910390fd5b600061165061158a565b90506116608187878787876129ad565b60005b845181101561181457600085828151811061168157611680613e09565b5b6020026020010151905060008583815181106116a05761169f613e09565b5b6020026020010151905060006001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611742576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611739906146fc565b60405180910390fd5b8181036001600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117f99190613f67565b925050819055505050508061180d90613e67565b9050611663565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161188b92919061471c565b60405180910390a46118a18187878787876129b5565b6118af8187878787876129bd565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191e906147c5565b60405180910390fd5b600061193161158a565b9050600061193e85612ba4565b9050600061194b85612ba4565b905061195c836000898585896129ad565b846001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119bc9190613f67565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611a3a92919061404f565b60405180910390a4611a51836000898585896129b5565b611a6083600089898989612c1e565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad090614857565b60405180910390fd5b8051825114611b1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b14906145d8565b60405180910390fd5b6000611b2761158a565b9050611b47818560008686604051806020016040528060008152506129ad565b60005b8351811015611c96576000848281518110611b6857611b67613e09565b5b602002602001015190506000848381518110611b8757611b86613e09565b5b6020026020010151905060006001600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c20906148e9565b60405180910390fd5b8181036001600085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080611c8e90613e67565b915050611b4a565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611d0e92919061471c565b60405180910390a4611d34818560008686604051806020016040528060008152506129b5565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e649061497b565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f5e919061307d565b60405180910390a3505050565b60606000821415611fb3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506120c7565b600082905060005b60008214611fe5578080611fce90613e67565b915050600a82611fde91906149ca565b9150611fbb565b60008167ffffffffffffffff811115612001576120006131de565b5b6040519080825280601f01601f1916602001820160405280156120335781602001600182028036833780820191505090505b5090505b600085146120c05760018261204c91906149fb565b9150600a8561205b9190614a2f565b60306120679190613f67565b60f81b81838151811061207d5761207c613e09565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856120b991906149ca565b9450612037565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561213c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121339061466a565b60405180910390fd5b600061214661158a565b9050600061215385612ba4565b9050600061216085612ba4565b90506121708389898585896129ad565b60006001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ff906146fc565b60405180910390fd5b8581036001600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856001600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122bf9190613f67565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161233c92919061404f565b60405180910390a4612352848a8a86868a6129b5565b612360848a8a8a8a8a612c1e565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290614857565b60405180910390fd5b60006123e561158a565b905060006123f284612ba4565b905060006123ff84612ba4565b905061241f838760008585604051806020016040528060008152506129ad565b60006001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156124b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ae906148e9565b60405180910390fd5b8481036001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161258592919061404f565b60405180910390a46125ab848860008686604051806020016040528060008152506129b5565b50505050505050565b6060600044426040516020016125cb929190614a81565b6040516020818303038152906040528051906020012060001c905060006125f28285610da7565b905060008467ffffffffffffffff8111156126105761260f6131de565b5b60405190808252806020026020018201604052801561263e5781602001602082028036833780820191505090505b50905060005b85811015612773576000600954600a5461265e91906149fb565b905060008185848151811061267657612675613e09565b5b60200260200101516126889190614a2f565b90506000805b60085481101561275c57600760008281526020019081526020016000205460066000838152602001908152602001600020546126ca91906149fb565b826126d59190613f67565b91508183101561274957808686815181106126f3576126f2613e09565b5b6020026020010181815250506001600960008282546127129190613f67565b92505081905550600160076000838152602001908152602001600020600082825461273d9190613f67565b9250508190555061275c565b808061275490613e67565b91505061268e565b50505050808061276b90613e67565b915050612644565b50809350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156127ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e6906147c5565b60405180910390fd5b8151835114612833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282a906145d8565b60405180910390fd5b600061283d61158a565b905061284e816000878787876129ad565b60005b84518110156129085783818151811061286d5761286c613e09565b5b60200260200101516001600087848151811061288c5761288b613e09565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128ee9190613f67565b92505081905550808061290090613e67565b915050612851565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161298092919061471c565b60405180910390a4612997816000878787876129b5565b6129a6816000878787876129bd565b5050505050565b505050505050565b505050505050565b6129dc8473ffffffffffffffffffffffffffffffffffffffff16612e05565b15612b9c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612a22959493929190614b02565b602060405180830381600087803b158015612a3c57600080fd5b505af1925050508015612a6d57506040513d601f19601f82011682018060405250810190612a6a9190614b7f565b60015b612b1357612a79614bb9565b806308c379a01415612ad65750612a8e614bdb565b80612a995750612ad8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acd919061315e565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0a90614ce3565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9190614d75565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612bc357612bc26131de565b5b604051908082528060200260200182016040528015612bf15781602001602082028036833780820191505090505b5090508281600081518110612c0957612c08613e09565b5b60200260200101818152505080915050919050565b612c3d8473ffffffffffffffffffffffffffffffffffffffff16612e05565b15612dfd578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612c83959493929190614d95565b602060405180830381600087803b158015612c9d57600080fd5b505af1925050508015612cce57506040513d601f19601f82011682018060405250810190612ccb9190614b7f565b60015b612d7457612cda614bb9565b806308c379a01415612d375750612cef614bdb565b80612cfa5750612d39565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2e919061315e565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6b90614ce3565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df290614d75565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612e3490613cb3565b90600052602060002090601f016020900481019282612e565760008555612e9d565b82601f10612e6f57805160ff1916838001178555612e9d565b82800160010185558215612e9d579182015b82811115612e9c578251825591602001919060010190612e81565b5b509050612eaa9190612eae565b5090565b5b80821115612ec7576000816000905550600101612eaf565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f0a82612edf565b9050919050565b612f1a81612eff565b8114612f2557600080fd5b50565b600081359050612f3781612f11565b92915050565b6000819050919050565b612f5081612f3d565b8114612f5b57600080fd5b50565b600081359050612f6d81612f47565b92915050565b60008060408385031215612f8a57612f89612ed5565b5b6000612f9885828601612f28565b9250506020612fa985828601612f5e565b9150509250929050565b612fbc81612f3d565b82525050565b6000602082019050612fd76000830184612fb3565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301281612fdd565b811461301d57600080fd5b50565b60008135905061302f81613009565b92915050565b60006020828403121561304b5761304a612ed5565b5b600061305984828501613020565b91505092915050565b60008115159050919050565b61307781613062565b82525050565b6000602082019050613092600083018461306e565b92915050565b6000602082840312156130ae576130ad612ed5565b5b60006130bc84828501612f5e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130ff5780820151818401526020810190506130e4565b8381111561310e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613130826130c5565b61313a81856130d0565b935061314a8185602086016130e1565b61315381613114565b840191505092915050565b600060208201905081810360008301526131788184613125565b905092915050565b61318981613062565b811461319457600080fd5b50565b6000813590506131a681613180565b92915050565b6000602082840312156131c2576131c1612ed5565b5b60006131d084828501613197565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61321682613114565b810181811067ffffffffffffffff82111715613235576132346131de565b5b80604052505050565b6000613248612ecb565b9050613254828261320d565b919050565b600067ffffffffffffffff821115613274576132736131de565b5b602082029050602081019050919050565b600080fd5b600061329d61329884613259565b61323e565b905080838252602082019050602084028301858111156132c0576132bf613285565b5b835b818110156132e957806132d58882612f5e565b8452602084019350506020810190506132c2565b5050509392505050565b600082601f830112613308576133076131d9565b5b813561331884826020860161328a565b91505092915050565b600080fd5b600067ffffffffffffffff821115613341576133406131de565b5b61334a82613114565b9050602081019050919050565b82818337600083830152505050565b600061337961337484613326565b61323e565b90508281526020810184848401111561339557613394613321565b5b6133a0848285613357565b509392505050565b600082601f8301126133bd576133bc6131d9565b5b81356133cd848260208601613366565b91505092915050565b600080600080600060a086880312156133f2576133f1612ed5565b5b600061340088828901612f28565b955050602061341188828901612f28565b945050604086013567ffffffffffffffff81111561343257613431612eda565b5b61343e888289016132f3565b935050606086013567ffffffffffffffff81111561345f5761345e612eda565b5b61346b888289016132f3565b925050608086013567ffffffffffffffff81111561348c5761348b612eda565b5b613498888289016133a8565b9150509295509295909350565b600067ffffffffffffffff8211156134c0576134bf6131de565b5b602082029050602081019050919050565b60006134e46134df846134a5565b61323e565b9050808382526020820190506020840283018581111561350757613506613285565b5b835b81811015613530578061351c8882612f28565b845260208401935050602081019050613509565b5050509392505050565b600082601f83011261354f5761354e6131d9565b5b813561355f8482602086016134d1565b91505092915050565b6000806040838503121561357f5761357e612ed5565b5b600083013567ffffffffffffffff81111561359d5761359c612eda565b5b6135a98582860161353a565b925050602083013567ffffffffffffffff8111156135ca576135c9612eda565b5b6135d6858286016132f3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61361581612f3d565b82525050565b6000613627838361360c565b60208301905092915050565b6000602082019050919050565b600061364b826135e0565b61365581856135eb565b9350613660836135fc565b8060005b83811015613691578151613678888261361b565b975061368383613633565b925050600181019050613664565b5085935050505092915050565b600060208201905081810360008301526136b88184613640565b905092915050565b600067ffffffffffffffff8211156136db576136da6131de565b5b6136e482613114565b9050602081019050919050565b60006137046136ff846136c0565b61323e565b9050828152602081018484840111156137205761371f613321565b5b61372b848285613357565b509392505050565b600082601f830112613748576137476131d9565b5b81356137588482602086016136f1565b91505092915050565b60006020828403121561377757613776612ed5565b5b600082013567ffffffffffffffff81111561379557613794612eda565b5b6137a184828501613733565b91505092915050565b6000602082840312156137c0576137bf612ed5565b5b600082013567ffffffffffffffff8111156137de576137dd612eda565b5b6137ea8482850161353a565b91505092915050565b60008060006060848603121561380c5761380b612ed5565b5b600061381a86828701612f28565b935050602084013567ffffffffffffffff81111561383b5761383a612eda565b5b613847868287016132f3565b925050604084013567ffffffffffffffff81111561386857613867612eda565b5b613874868287016132f3565b9150509250925092565b600061388982612edf565b9050919050565b6138998161387e565b81146138a457600080fd5b50565b6000813590506138b681613890565b92915050565b6000602082840312156138d2576138d1612ed5565b5b60006138e0848285016138a7565b91505092915050565b6138f28161387e565b82525050565b600060208201905061390d60008301846138e9565b92915050565b6000806040838503121561392a57613929612ed5565b5b600061393885828601612f5e565b925050602061394985828601612f5e565b9150509250929050565b61395c81612eff565b82525050565b60006020820190506139776000830184613953565b92915050565b6000806040838503121561399457613993612ed5565b5b60006139a285828601612f28565b92505060206139b385828601613197565b9150509250929050565b600080604083850312156139d4576139d3612ed5565b5b60006139e285828601612f28565b92505060206139f385828601612f28565b9150509250929050565b600080600080600060a08688031215613a1957613a18612ed5565b5b6000613a2788828901612f28565b9550506020613a3888828901612f28565b9450506040613a4988828901612f5e565b9350506060613a5a88828901612f5e565b925050608086013567ffffffffffffffff811115613a7b57613a7a612eda565b5b613a87888289016133a8565b9150509295509295909350565b600060208284031215613aaa57613aa9612ed5565b5b6000613ab884828501612f28565b91505092915050565b600080600060608486031215613ada57613ad9612ed5565b5b6000613ae886828701612f28565b9350506020613af986828701612f5e565b9250506040613b0a86828701612f5e565b9150509250925092565b600067ffffffffffffffff821115613b2f57613b2e6131de565b5b602082029050919050565b6000613b4d613b4884613b14565b61323e565b90508060208402830185811115613b6757613b66613285565b5b835b81811015613b905780613b7c8882612f5e565b845260208401935050602081019050613b69565b5050509392505050565b600082601f830112613baf57613bae6131d9565b5b6003613bbc848285613b3a565b91505092915050565b600060608284031215613bdb57613bda612ed5565b5b6000613be984828501613b9a565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613c4e602a836130d0565b9150613c5982613bf2565b604082019050919050565b60006020820190508181036000830152613c7d81613c41565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ccb57607f821691505b60208210811415613cdf57613cde613c84565b5b50919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000613d41602f836130d0565b9150613d4c82613ce5565b604082019050919050565b60006020820190508181036000830152613d7081613d34565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613dd36029836130d0565b9150613dde82613d77565b604082019050919050565b60006020820190508181036000830152613e0281613dc6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e7282612f3d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ea557613ea4613e38565b5b600182019050919050565b60008190508160005260206000209050919050565b60008154613ed281613cb3565b613edc81866130d0565b94506001821660008114613ef75760018114613f0957613f3c565b60ff1983168652602086019350613f3c565b613f1285613eb0565b60005b83811015613f3457815481890152600182019150602081019050613f15565b808801955050505b50505092915050565b60006020820190508181036000830152613f5f8184613ec5565b905092915050565b6000613f7282612f3d565b9150613f7d83612f3d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fb257613fb1613e38565b5b828201905092915050565b7f54686520756e696f6e20646f6573206e6f7420616363657074206e6577206d6560008201527f6d62657273000000000000000000000000000000000000000000000000000000602082015250565b60006140196025836130d0565b915061402482613fbd565b604082019050919050565b600060208201905081810360008301526140488161400c565b9050919050565b60006040820190506140646000830185612fb3565b6140716020830184612fb3565b9392505050565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b60006140ae6014836130d0565b91506140b982614078565b602082019050919050565b600060208201905081810360008301526140dd816140a1565b9050919050565b600081905092915050565b600081546140fc81613cb3565b61410681866140e4565b94506001821660008114614121576001811461413257614165565b60ff19831686528186019350614165565b61413b85613eb0565b60005b8381101561415d5781548189015260018201915060208101905061413e565b838801955050505b50505092915050565b6000614179826130c5565b61418381856140e4565b93506141938185602086016130e1565b80840191505092915050565b60006141ab82856140ef565b91506141b7828461416e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061421f6026836130d0565b915061422a826141c3565b604082019050919050565b6000602082019050818103600083015261424e81614212565b9050919050565b7f4f70656e207061636b616765206973206e6f7420616374697665000000000000600082015250565b600061428b601a836130d0565b915061429682614255565b602082019050919050565b600060208201905081810360008301526142ba8161427e565b9050919050565b7f436f6e7472616374732063616e6e6f742063616c6c20746869732066756e637460008201527f696f6e0000000000000000000000000000000000000000000000000000000000602082015250565b600061431d6023836130d0565b9150614328826142c1565b604082019050919050565b6000602082019050818103600083015261434c81614310565b9050919050565b600060039050919050565b600081905092915050565b6000819050919050565b6000602082019050919050565b61438981614353565b614393818461435e565b925061439e82614369565b8060005b838110156143cf5781516143b6878261361b565b96506143c183614373565b9250506001810190506143a2565b505050505050565b60006060820190506143ec6000830184614380565b92915050565b60008151905061440181613180565b92915050565b60006020828403121561441d5761441c612ed5565b5b600061442b848285016143f2565b91505092915050565b7f4661696c656420746f206275726e207061636b73000000000000000000000000600082015250565b600061446a6014836130d0565b915061447582614434565b602082019050919050565b600060208201905081810360008301526144998161445d565b9050919050565b60006144ab82612f3d565b91506144b683612f3d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144ef576144ee613e38565b5b828202905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145306020836130d0565b915061453b826144fa565b602082019050919050565b6000602082019050818103600083015261455f81614523565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006145c26028836130d0565b91506145cd82614566565b604082019050919050565b600060208201905081810360008301526145f1816145b5565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006146546025836130d0565b915061465f826145f8565b604082019050919050565b6000602082019050818103600083015261468381614647565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006146e6602a836130d0565b91506146f18261468a565b604082019050919050565b60006020820190508181036000830152614715816146d9565b9050919050565b600060408201905081810360008301526147368185613640565b9050818103602083015261474a8184613640565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006147af6021836130d0565b91506147ba82614753565b604082019050919050565b600060208201905081810360008301526147de816147a2565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006148416023836130d0565b915061484c826147e5565b604082019050919050565b6000602082019050818103600083015261487081614834565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006148d36024836130d0565b91506148de82614877565b604082019050919050565b60006020820190508181036000830152614902816148c6565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006149656029836130d0565b915061497082614909565b604082019050919050565b6000602082019050818103600083015261499481614958565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149d582612f3d565b91506149e083612f3d565b9250826149f0576149ef61499b565b5b828204905092915050565b6000614a0682612f3d565b9150614a1183612f3d565b925082821015614a2457614a23613e38565b5b828203905092915050565b6000614a3a82612f3d565b9150614a4583612f3d565b925082614a5557614a5461499b565b5b828206905092915050565b6000819050919050565b614a7b614a7682612f3d565b614a60565b82525050565b6000614a8d8285614a6a565b602082019150614a9d8284614a6a565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614ad482614aad565b614ade8185614ab8565b9350614aee8185602086016130e1565b614af781613114565b840191505092915050565b600060a082019050614b176000830188613953565b614b246020830187613953565b8181036040830152614b368186613640565b90508181036060830152614b4a8185613640565b90508181036080830152614b5e8184614ac9565b90509695505050505050565b600081519050614b7981613009565b92915050565b600060208284031215614b9557614b94612ed5565b5b6000614ba384828501614b6a565b91505092915050565b60008160e01c9050919050565b600060033d1115614bd85760046000803e614bd5600051614bac565b90505b90565b600060443d1015614beb57614c6e565b614bf3612ecb565b60043d036004823e80513d602482011167ffffffffffffffff82111715614c1b575050614c6e565b808201805167ffffffffffffffff811115614c395750505050614c6e565b80602083010160043d038501811115614c56575050505050614c6e565b614c658260200185018661320d565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614ccd6034836130d0565b9150614cd882614c71565b604082019050919050565b60006020820190508181036000830152614cfc81614cc0565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614d5f6028836130d0565b9150614d6a82614d03565b604082019050919050565b60006020820190508181036000830152614d8e81614d52565b9050919050565b600060a082019050614daa6000830188613953565b614db76020830187613953565b614dc46040830186612fb3565b614dd16060830185612fb3565b8181036080830152614de38184614ac9565b9050969550505050505056fea26469706673582212203d11b523df1198db68c9269c9e822c8fb6ce9baf6dfa48375c2d19a10ef3687364736f6c6343000809003300000000000000000000000081936c874008f8f419076a7f8700ebfd3ff96b6200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000a63fe6a745447952d964ca4f02b917da60bcbc700000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000002300000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d633564445a6148367372323542367458346578794d5a6f347659367662316a4b52523151516f6b714a6e46502f00000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e45760003560e01c80638488bb4e1161010f578063c87b56dd116100a2578063f2fde38b11610071578063f2fde38b1461057d578063f5298aca14610599578063f5873344146105b5578063fa6d4906146105d3576101e4565b8063c87b56dd146104e3578063e3659ded14610513578063e985e9c514610531578063f242432a14610561576101e4565b8063a22cb465116100de578063a22cb4651461045b578063b807c2cb14610477578063bd85b03914610495578063c2dced3c146104c5576101e4565b80638488bb4e146103d1578063874b3afc146103ef5780638da5cb5b1461041f5780639b5569571461043d576101e4565b806355f804b311610187578063715018a611610156578063715018a61461035b57806378416adb146103655780637caae780146103955780637f6acb3b146103b3576101e4565b806355f804b3146102eb57806369114f34146103075780636b20c454146103235780636b8f9c431461033f576101e4565b806327701156116101c357806327701156146102795780632eb2c2d6146102955780633ccfd60b146102b15780634e1273f4146102bb576101e4565b8062fdd58e146101e957806301ffc9a7146102195780630e89341c14610249575b600080fd5b61020360048036038101906101fe9190612f73565b6105ef565b6040516102109190612fc2565b60405180910390f35b610233600480360381019061022e9190613035565b6106b9565b604051610240919061307d565b60405180910390f35b610263600480360381019061025e9190613098565b61079b565b604051610270919061315e565b60405180910390f35b610293600480360381019061028e91906131ac565b61082f565b005b6102af60048036038101906102aa91906133d6565b61089a565b005b6102b961093b565b005b6102d560048036038101906102d09190613568565b6109b4565b6040516102e2919061369e565b60405180910390f35b61030560048036038101906103009190613761565b610acd565b005b610321600480360381019061031c91906137aa565b610b27565b005b61033d600480360381019061033891906137f3565b610c60565b005b610359600480360381019061035491906138bc565b610cfd565b005b610363610d49565b005b61037f600480360381019061037a9190613098565b610d5d565b60405161038c9190612fc2565b60405180910390f35b61039d610d75565b6040516103aa9190612fc2565b60405180910390f35b6103bb610d7b565b6040516103c89190612fc2565b60405180910390f35b6103d9610d81565b6040516103e691906138f8565b60405180910390f35b61040960048036038101906104049190613913565b610da7565b604051610416919061369e565b60405180910390f35b610427610e64565b6040516104349190613962565b60405180910390f35b610445610e8d565b6040516104529190612fc2565b60405180910390f35b6104756004803603810190610470919061397d565b610e92565b005b61047f610ea8565b60405161048c9190612fc2565b60405180910390f35b6104af60048036038101906104aa9190613098565b610eae565b6040516104bc9190612fc2565b60405180910390f35b6104cd610ec6565b6040516104da9190612fc2565b60405180910390f35b6104fd60048036038101906104f89190613098565b610ecb565b60405161050a919061315e565b60405180910390f35b61051b610f55565b604051610528919061307d565b60405180910390f35b61054b600480360381019061054691906139bd565b610f68565b604051610558919061307d565b60405180910390f35b61057b600480360381019061057691906139fd565b610ffc565b005b61059760048036038101906105929190613a94565b61109d565b005b6105b360048036038101906105ae9190613ac1565b611121565b005b6105bd6111be565b6040516105ca9190612fc2565b60405180910390f35b6105ed60048036038101906105e89190613bc5565b6111c3565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065790613c64565b60405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061078457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107945750610793826114a2565b5b9050919050565b6060600380546107aa90613cb3565b80601f01602080910402602001604051908101604052809291908181526020018280546107d690613cb3565b80156108235780601f106107f857610100808354040283529160200191610823565b820191906000526020600020905b81548152906001019060200180831161080657829003601f168201915b50505050509050919050565b61083761150c565b80600f60006101000a81548160ff0219169083151502179055507f97313d148701f61c548456a3201642bcd3f26edd4ce29919a1812d69c968d015600f60009054906101000a900460ff1660405161088f919061307d565b60405180910390a150565b6108a261158a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806108e857506108e7856108e261158a565b610f68565b5b610927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091e90613d57565b60405180910390fd5b6109348585858585611592565b5050505050565b61094361150c565b6000479050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109b0573d6000803e3d6000fd5b5050565b606081518351146109fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f190613de9565b60405180910390fd5b6000835167ffffffffffffffff811115610a1757610a166131de565b5b604051908082528060200260200182016040528015610a455781602001602082028036833780820191505090505b50905060005b8451811015610ac257610a92858281518110610a6a57610a69613e09565b5b6020026020010151858381518110610a8557610a84613e09565b5b60200260200101516105ef565b828281518110610aa557610aa4613e09565b5b60200260200101818152505080610abb90613e67565b9050610a4b565b508091505092915050565b610ad561150c565b80600e9080519060200190610aeb929190612e28565b507fafa35f42f46f5052816d7c6a2e9406eca98294b20726677862d83b4a7418d8d5600e604051610b1c9190613f45565b60405180910390a150565b610b2f61150c565b600c54815160076000600b54815260200190815260200160002054610b549190613f67565b1115610b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8c9061402f565b60405180910390fd5b805160076000600b5481526020019081526020016000206000828254610bbb9190613f67565b9250508190555060005b8151811015610c1957610c06828281518110610be457610be3613e09565b5b6020026020010151600b546001604051806020016040528060008152506118b7565b8080610c1190613e67565b915050610bc5565b503373ffffffffffffffffffffffffffffffffffffffff167f93e52d8e1d6b78e572aa4fb4f113d35e6fd2e56828fd191955270d4a6359f6b160405160405180910390a250565b610c6861158a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610cae5750610cad83610ca861158a565b610f68565b5b610ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce490613d57565b60405180910390fd5b610cf8838383611a69565b505050565b610d0561150c565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d5161150c565b610d5b6000611d3a565b565b60066020528060005260406000206000915090505481565b600a5481565b60085481565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60608167ffffffffffffffff811115610dc357610dc26131de565b5b604051908082528060200260200182016040528015610df15781602001602082028036833780820191505090505b50905060005b82811015610e5d578381604051602001610e1292919061404f565b6040516020818303038152906040528051906020012060001c828281518110610e3e57610e3d613e09565b5b6020026020010181815250508080610e5590613e67565b915050610df7565b5092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600281565b610ea4610e9d61158a565b8383611dfe565b5050565b60095481565b60076020528060005260406000206000915090505481565b600081565b60606000600760008481526020019081526020016000205411610f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1a906140c4565b60405180910390fd5b600e610f2e83611f6b565b604051602001610f3f92919061419f565b6040516020818303038152906040529050919050565b600f60009054906101000a900460ff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61100461158a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061104a57506110498561104461158a565b610f68565b5b611089576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108090613d57565b60405180910390fd5b61109685858585856120cc565b5050505050565b6110a561150c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c90614235565b60405180910390fd5b61111e81611d3a565b50565b61112961158a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061116f575061116e8361116961158a565b610f68565b5b6111ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a590613d57565b60405180910390fd5b6111b983838361236b565b505050565b600181565b600f60009054906101000a900460ff16611212576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611209906142a1565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127790614333565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f5d66e0826040518263ffffffff1660e01b81526004016112db91906143d7565b602060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132d9190614407565b61136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136390614480565b60405180910390fd5b600060148260026003811061138457611383613e09565b5b602002015161139391906144a0565b6005836001600381106113a9576113a8613e09565b5b60200201516113b891906144a0565b836000600381106113cc576113cb613e09565b5b60200201516113db9190613f67565b6113e59190613f67565b905060006113f2826125b4565b905060008267ffffffffffffffff8111156114105761140f6131de565b5b60405190808252806020026020018201604052801561143e5781602001602082028036833780820191505090505b50905060005b8381101561148057600182828151811061146157611460613e09565b5b602002602001018181525050808061147890613e67565b915050611444565b5061149c3383836040518060200160405280600081525061277f565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61151461158a565b73ffffffffffffffffffffffffffffffffffffffff16611532610e64565b73ffffffffffffffffffffffffffffffffffffffff1614611588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157f90614546565b60405180910390fd5b565b600033905090565b81518351146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd906145d8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163d9061466a565b60405180910390fd5b600061165061158a565b90506116608187878787876129ad565b60005b845181101561181457600085828151811061168157611680613e09565b5b6020026020010151905060008583815181106116a05761169f613e09565b5b6020026020010151905060006001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611742576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611739906146fc565b60405180910390fd5b8181036001600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117f99190613f67565b925050819055505050508061180d90613e67565b9050611663565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161188b92919061471c565b60405180910390a46118a18187878787876129b5565b6118af8187878787876129bd565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191e906147c5565b60405180910390fd5b600061193161158a565b9050600061193e85612ba4565b9050600061194b85612ba4565b905061195c836000898585896129ad565b846001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119bc9190613f67565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611a3a92919061404f565b60405180910390a4611a51836000898585896129b5565b611a6083600089898989612c1e565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad090614857565b60405180910390fd5b8051825114611b1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b14906145d8565b60405180910390fd5b6000611b2761158a565b9050611b47818560008686604051806020016040528060008152506129ad565b60005b8351811015611c96576000848281518110611b6857611b67613e09565b5b602002602001015190506000848381518110611b8757611b86613e09565b5b6020026020010151905060006001600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c20906148e9565b60405180910390fd5b8181036001600085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080611c8e90613e67565b915050611b4a565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611d0e92919061471c565b60405180910390a4611d34818560008686604051806020016040528060008152506129b5565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e649061497b565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f5e919061307d565b60405180910390a3505050565b60606000821415611fb3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506120c7565b600082905060005b60008214611fe5578080611fce90613e67565b915050600a82611fde91906149ca565b9150611fbb565b60008167ffffffffffffffff811115612001576120006131de565b5b6040519080825280601f01601f1916602001820160405280156120335781602001600182028036833780820191505090505b5090505b600085146120c05760018261204c91906149fb565b9150600a8561205b9190614a2f565b60306120679190613f67565b60f81b81838151811061207d5761207c613e09565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856120b991906149ca565b9450612037565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561213c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121339061466a565b60405180910390fd5b600061214661158a565b9050600061215385612ba4565b9050600061216085612ba4565b90506121708389898585896129ad565b60006001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ff906146fc565b60405180910390fd5b8581036001600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856001600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122bf9190613f67565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161233c92919061404f565b60405180910390a4612352848a8a86868a6129b5565b612360848a8a8a8a8a612c1e565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290614857565b60405180910390fd5b60006123e561158a565b905060006123f284612ba4565b905060006123ff84612ba4565b905061241f838760008585604051806020016040528060008152506129ad565b60006001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156124b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ae906148e9565b60405180910390fd5b8481036001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161258592919061404f565b60405180910390a46125ab848860008686604051806020016040528060008152506129b5565b50505050505050565b6060600044426040516020016125cb929190614a81565b6040516020818303038152906040528051906020012060001c905060006125f28285610da7565b905060008467ffffffffffffffff8111156126105761260f6131de565b5b60405190808252806020026020018201604052801561263e5781602001602082028036833780820191505090505b50905060005b85811015612773576000600954600a5461265e91906149fb565b905060008185848151811061267657612675613e09565b5b60200260200101516126889190614a2f565b90506000805b60085481101561275c57600760008281526020019081526020016000205460066000838152602001908152602001600020546126ca91906149fb565b826126d59190613f67565b91508183101561274957808686815181106126f3576126f2613e09565b5b6020026020010181815250506001600960008282546127129190613f67565b92505081905550600160076000838152602001908152602001600020600082825461273d9190613f67565b9250508190555061275c565b808061275490613e67565b91505061268e565b50505050808061276b90613e67565b915050612644565b50809350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156127ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e6906147c5565b60405180910390fd5b8151835114612833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282a906145d8565b60405180910390fd5b600061283d61158a565b905061284e816000878787876129ad565b60005b84518110156129085783818151811061286d5761286c613e09565b5b60200260200101516001600087848151811061288c5761288b613e09565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128ee9190613f67565b92505081905550808061290090613e67565b915050612851565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161298092919061471c565b60405180910390a4612997816000878787876129b5565b6129a6816000878787876129bd565b5050505050565b505050505050565b505050505050565b6129dc8473ffffffffffffffffffffffffffffffffffffffff16612e05565b15612b9c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612a22959493929190614b02565b602060405180830381600087803b158015612a3c57600080fd5b505af1925050508015612a6d57506040513d601f19601f82011682018060405250810190612a6a9190614b7f565b60015b612b1357612a79614bb9565b806308c379a01415612ad65750612a8e614bdb565b80612a995750612ad8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acd919061315e565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0a90614ce3565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9190614d75565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612bc357612bc26131de565b5b604051908082528060200260200182016040528015612bf15781602001602082028036833780820191505090505b5090508281600081518110612c0957612c08613e09565b5b60200260200101818152505080915050919050565b612c3d8473ffffffffffffffffffffffffffffffffffffffff16612e05565b15612dfd578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612c83959493929190614d95565b602060405180830381600087803b158015612c9d57600080fd5b505af1925050508015612cce57506040513d601f19601f82011682018060405250810190612ccb9190614b7f565b60015b612d7457612cda614bb9565b806308c379a01415612d375750612cef614bdb565b80612cfa5750612d39565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2e919061315e565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6b90614ce3565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df290614d75565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612e3490613cb3565b90600052602060002090601f016020900481019282612e565760008555612e9d565b82601f10612e6f57805160ff1916838001178555612e9d565b82800160010185558215612e9d579182015b82811115612e9c578251825591602001919060010190612e81565b5b509050612eaa9190612eae565b5090565b5b80821115612ec7576000816000905550600101612eaf565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f0a82612edf565b9050919050565b612f1a81612eff565b8114612f2557600080fd5b50565b600081359050612f3781612f11565b92915050565b6000819050919050565b612f5081612f3d565b8114612f5b57600080fd5b50565b600081359050612f6d81612f47565b92915050565b60008060408385031215612f8a57612f89612ed5565b5b6000612f9885828601612f28565b9250506020612fa985828601612f5e565b9150509250929050565b612fbc81612f3d565b82525050565b6000602082019050612fd76000830184612fb3565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301281612fdd565b811461301d57600080fd5b50565b60008135905061302f81613009565b92915050565b60006020828403121561304b5761304a612ed5565b5b600061305984828501613020565b91505092915050565b60008115159050919050565b61307781613062565b82525050565b6000602082019050613092600083018461306e565b92915050565b6000602082840312156130ae576130ad612ed5565b5b60006130bc84828501612f5e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130ff5780820151818401526020810190506130e4565b8381111561310e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613130826130c5565b61313a81856130d0565b935061314a8185602086016130e1565b61315381613114565b840191505092915050565b600060208201905081810360008301526131788184613125565b905092915050565b61318981613062565b811461319457600080fd5b50565b6000813590506131a681613180565b92915050565b6000602082840312156131c2576131c1612ed5565b5b60006131d084828501613197565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61321682613114565b810181811067ffffffffffffffff82111715613235576132346131de565b5b80604052505050565b6000613248612ecb565b9050613254828261320d565b919050565b600067ffffffffffffffff821115613274576132736131de565b5b602082029050602081019050919050565b600080fd5b600061329d61329884613259565b61323e565b905080838252602082019050602084028301858111156132c0576132bf613285565b5b835b818110156132e957806132d58882612f5e565b8452602084019350506020810190506132c2565b5050509392505050565b600082601f830112613308576133076131d9565b5b813561331884826020860161328a565b91505092915050565b600080fd5b600067ffffffffffffffff821115613341576133406131de565b5b61334a82613114565b9050602081019050919050565b82818337600083830152505050565b600061337961337484613326565b61323e565b90508281526020810184848401111561339557613394613321565b5b6133a0848285613357565b509392505050565b600082601f8301126133bd576133bc6131d9565b5b81356133cd848260208601613366565b91505092915050565b600080600080600060a086880312156133f2576133f1612ed5565b5b600061340088828901612f28565b955050602061341188828901612f28565b945050604086013567ffffffffffffffff81111561343257613431612eda565b5b61343e888289016132f3565b935050606086013567ffffffffffffffff81111561345f5761345e612eda565b5b61346b888289016132f3565b925050608086013567ffffffffffffffff81111561348c5761348b612eda565b5b613498888289016133a8565b9150509295509295909350565b600067ffffffffffffffff8211156134c0576134bf6131de565b5b602082029050602081019050919050565b60006134e46134df846134a5565b61323e565b9050808382526020820190506020840283018581111561350757613506613285565b5b835b81811015613530578061351c8882612f28565b845260208401935050602081019050613509565b5050509392505050565b600082601f83011261354f5761354e6131d9565b5b813561355f8482602086016134d1565b91505092915050565b6000806040838503121561357f5761357e612ed5565b5b600083013567ffffffffffffffff81111561359d5761359c612eda565b5b6135a98582860161353a565b925050602083013567ffffffffffffffff8111156135ca576135c9612eda565b5b6135d6858286016132f3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61361581612f3d565b82525050565b6000613627838361360c565b60208301905092915050565b6000602082019050919050565b600061364b826135e0565b61365581856135eb565b9350613660836135fc565b8060005b83811015613691578151613678888261361b565b975061368383613633565b925050600181019050613664565b5085935050505092915050565b600060208201905081810360008301526136b88184613640565b905092915050565b600067ffffffffffffffff8211156136db576136da6131de565b5b6136e482613114565b9050602081019050919050565b60006137046136ff846136c0565b61323e565b9050828152602081018484840111156137205761371f613321565b5b61372b848285613357565b509392505050565b600082601f830112613748576137476131d9565b5b81356137588482602086016136f1565b91505092915050565b60006020828403121561377757613776612ed5565b5b600082013567ffffffffffffffff81111561379557613794612eda565b5b6137a184828501613733565b91505092915050565b6000602082840312156137c0576137bf612ed5565b5b600082013567ffffffffffffffff8111156137de576137dd612eda565b5b6137ea8482850161353a565b91505092915050565b60008060006060848603121561380c5761380b612ed5565b5b600061381a86828701612f28565b935050602084013567ffffffffffffffff81111561383b5761383a612eda565b5b613847868287016132f3565b925050604084013567ffffffffffffffff81111561386857613867612eda565b5b613874868287016132f3565b9150509250925092565b600061388982612edf565b9050919050565b6138998161387e565b81146138a457600080fd5b50565b6000813590506138b681613890565b92915050565b6000602082840312156138d2576138d1612ed5565b5b60006138e0848285016138a7565b91505092915050565b6138f28161387e565b82525050565b600060208201905061390d60008301846138e9565b92915050565b6000806040838503121561392a57613929612ed5565b5b600061393885828601612f5e565b925050602061394985828601612f5e565b9150509250929050565b61395c81612eff565b82525050565b60006020820190506139776000830184613953565b92915050565b6000806040838503121561399457613993612ed5565b5b60006139a285828601612f28565b92505060206139b385828601613197565b9150509250929050565b600080604083850312156139d4576139d3612ed5565b5b60006139e285828601612f28565b92505060206139f385828601612f28565b9150509250929050565b600080600080600060a08688031215613a1957613a18612ed5565b5b6000613a2788828901612f28565b9550506020613a3888828901612f28565b9450506040613a4988828901612f5e565b9350506060613a5a88828901612f5e565b925050608086013567ffffffffffffffff811115613a7b57613a7a612eda565b5b613a87888289016133a8565b9150509295509295909350565b600060208284031215613aaa57613aa9612ed5565b5b6000613ab884828501612f28565b91505092915050565b600080600060608486031215613ada57613ad9612ed5565b5b6000613ae886828701612f28565b9350506020613af986828701612f5e565b9250506040613b0a86828701612f5e565b9150509250925092565b600067ffffffffffffffff821115613b2f57613b2e6131de565b5b602082029050919050565b6000613b4d613b4884613b14565b61323e565b90508060208402830185811115613b6757613b66613285565b5b835b81811015613b905780613b7c8882612f5e565b845260208401935050602081019050613b69565b5050509392505050565b600082601f830112613baf57613bae6131d9565b5b6003613bbc848285613b3a565b91505092915050565b600060608284031215613bdb57613bda612ed5565b5b6000613be984828501613b9a565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613c4e602a836130d0565b9150613c5982613bf2565b604082019050919050565b60006020820190508181036000830152613c7d81613c41565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ccb57607f821691505b60208210811415613cdf57613cde613c84565b5b50919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000613d41602f836130d0565b9150613d4c82613ce5565b604082019050919050565b60006020820190508181036000830152613d7081613d34565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613dd36029836130d0565b9150613dde82613d77565b604082019050919050565b60006020820190508181036000830152613e0281613dc6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e7282612f3d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ea557613ea4613e38565b5b600182019050919050565b60008190508160005260206000209050919050565b60008154613ed281613cb3565b613edc81866130d0565b94506001821660008114613ef75760018114613f0957613f3c565b60ff1983168652602086019350613f3c565b613f1285613eb0565b60005b83811015613f3457815481890152600182019150602081019050613f15565b808801955050505b50505092915050565b60006020820190508181036000830152613f5f8184613ec5565b905092915050565b6000613f7282612f3d565b9150613f7d83612f3d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fb257613fb1613e38565b5b828201905092915050565b7f54686520756e696f6e20646f6573206e6f7420616363657074206e6577206d6560008201527f6d62657273000000000000000000000000000000000000000000000000000000602082015250565b60006140196025836130d0565b915061402482613fbd565b604082019050919050565b600060208201905081810360008301526140488161400c565b9050919050565b60006040820190506140646000830185612fb3565b6140716020830184612fb3565b9392505050565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b60006140ae6014836130d0565b91506140b982614078565b602082019050919050565b600060208201905081810360008301526140dd816140a1565b9050919050565b600081905092915050565b600081546140fc81613cb3565b61410681866140e4565b94506001821660008114614121576001811461413257614165565b60ff19831686528186019350614165565b61413b85613eb0565b60005b8381101561415d5781548189015260018201915060208101905061413e565b838801955050505b50505092915050565b6000614179826130c5565b61418381856140e4565b93506141938185602086016130e1565b80840191505092915050565b60006141ab82856140ef565b91506141b7828461416e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061421f6026836130d0565b915061422a826141c3565b604082019050919050565b6000602082019050818103600083015261424e81614212565b9050919050565b7f4f70656e207061636b616765206973206e6f7420616374697665000000000000600082015250565b600061428b601a836130d0565b915061429682614255565b602082019050919050565b600060208201905081810360008301526142ba8161427e565b9050919050565b7f436f6e7472616374732063616e6e6f742063616c6c20746869732066756e637460008201527f696f6e0000000000000000000000000000000000000000000000000000000000602082015250565b600061431d6023836130d0565b9150614328826142c1565b604082019050919050565b6000602082019050818103600083015261434c81614310565b9050919050565b600060039050919050565b600081905092915050565b6000819050919050565b6000602082019050919050565b61438981614353565b614393818461435e565b925061439e82614369565b8060005b838110156143cf5781516143b6878261361b565b96506143c183614373565b9250506001810190506143a2565b505050505050565b60006060820190506143ec6000830184614380565b92915050565b60008151905061440181613180565b92915050565b60006020828403121561441d5761441c612ed5565b5b600061442b848285016143f2565b91505092915050565b7f4661696c656420746f206275726e207061636b73000000000000000000000000600082015250565b600061446a6014836130d0565b915061447582614434565b602082019050919050565b600060208201905081810360008301526144998161445d565b9050919050565b60006144ab82612f3d565b91506144b683612f3d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144ef576144ee613e38565b5b828202905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145306020836130d0565b915061453b826144fa565b602082019050919050565b6000602082019050818103600083015261455f81614523565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006145c26028836130d0565b91506145cd82614566565b604082019050919050565b600060208201905081810360008301526145f1816145b5565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006146546025836130d0565b915061465f826145f8565b604082019050919050565b6000602082019050818103600083015261468381614647565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006146e6602a836130d0565b91506146f18261468a565b604082019050919050565b60006020820190508181036000830152614715816146d9565b9050919050565b600060408201905081810360008301526147368185613640565b9050818103602083015261474a8184613640565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006147af6021836130d0565b91506147ba82614753565b604082019050919050565b600060208201905081810360008301526147de816147a2565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006148416023836130d0565b915061484c826147e5565b604082019050919050565b6000602082019050818103600083015261487081614834565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006148d36024836130d0565b91506148de82614877565b604082019050919050565b60006020820190508181036000830152614902816148c6565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006149656029836130d0565b915061497082614909565b604082019050919050565b6000602082019050818103600083015261499481614958565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149d582612f3d565b91506149e083612f3d565b9250826149f0576149ef61499b565b5b828204905092915050565b6000614a0682612f3d565b9150614a1183612f3d565b925082821015614a2457614a23613e38565b5b828203905092915050565b6000614a3a82612f3d565b9150614a4583612f3d565b925082614a5557614a5461499b565b5b828206905092915050565b6000819050919050565b614a7b614a7682612f3d565b614a60565b82525050565b6000614a8d8285614a6a565b602082019150614a9d8284614a6a565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614ad482614aad565b614ade8185614ab8565b9350614aee8185602086016130e1565b614af781613114565b840191505092915050565b600060a082019050614b176000830188613953565b614b246020830187613953565b8181036040830152614b368186613640565b90508181036060830152614b4a8185613640565b90508181036080830152614b5e8184614ac9565b90509695505050505050565b600081519050614b7981613009565b92915050565b600060208284031215614b9557614b94612ed5565b5b6000614ba384828501614b6a565b91505092915050565b60008160e01c9050919050565b600060033d1115614bd85760046000803e614bd5600051614bac565b90505b90565b600060443d1015614beb57614c6e565b614bf3612ecb565b60043d036004823e80513d602482011167ffffffffffffffff82111715614c1b575050614c6e565b808201805167ffffffffffffffff811115614c395750505050614c6e565b80602083010160043d038501811115614c56575050505050614c6e565b614c658260200185018661320d565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614ccd6034836130d0565b9150614cd882614c71565b604082019050919050565b60006020820190508181036000830152614cfc81614cc0565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614d5f6028836130d0565b9150614d6a82614d03565b604082019050919050565b60006020820190508181036000830152614d8e81614d52565b9050919050565b600060a082019050614daa6000830188613953565b614db76020830187613953565b614dc46040830186612fb3565b614dd16060830185612fb3565b8181036080830152614de38184614ac9565b9050969550505050505056fea26469706673582212203d11b523df1198db68c9269c9e822c8fb6ce9baf6dfa48375c2d19a10ef3687364736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000081936c874008f8f419076a7f8700ebfd3ff96b6200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000a63fe6a745447952d964ca4f02b917da60bcbc700000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000002300000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d633564445a6148367372323542367458346578794d5a6f347659367662316a4b52523151516f6b714a6e46502f00000000000000000000
-----Decoded View---------------
Arg [0] : _packages (address): 0x81936c874008f8F419076a7F8700ebfD3Ff96b62
Arg [1] : _supplyLimit (uint256[]): 6,12,12,12,25,25,25,25,35,35,35,35,45,45,45,45,45,45,64,64,64,64,64,64,64
Arg [2] : payoutWallet_ (address): 0x0A63FE6A745447952D964ca4f02B917Da60BCBc7
Arg [3] : baseUri_ (string): ipfs://Qmc5dDZaH6sr25B6tX4exyMZo4vY6vb1jKRR1QQokqJnFP/
-----Encoded View---------------
33 Constructor Arguments found :
Arg [0] : 00000000000000000000000081936c874008f8f419076a7f8700ebfd3ff96b62
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000a63fe6a745447952d964ca4f02b917da60bcbc7
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [17] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [18] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [19] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [20] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [21] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [22] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [31] : 697066733a2f2f516d633564445a6148367372323542367458346578794d5a6f
Arg [32] : 347659367662316a4b52523151516f6b714a6e46502f00000000000000000000
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.