ERC-721
Overview
Max Total Supply
726 MBREWS
Holders
204
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
9 MBREWSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MasterBrewsNFT
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Enumerable.sol"; import "./Context.sol"; import "./SafeMath.sol"; import "./EnumerableSet.sol"; import "./EnumerableMap.sol"; abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721Enumerable { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; mapping(uint256 => bool) private _tokenURISet; string internal _defaultURIContent = ""; bool internal _metadataFixed = false; function _defaultURI() internal view virtual returns (string memory) { return _defaultURIContent; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); string memory defaultURI = _defaultURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } // If the default metadata URI is set, concatenate the baseURI and defaultURI (via abi.encodePacked). if (bytes(defaultURI).length > 0) { return string(abi.encodePacked(base, defaultURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); // Change: we enforce changing a token URI only once, after metadata is fixed if (_metadataFixed) { require(_tokenURISet[tokenId] == false, "ERC721URIStorage: URI already set for this token"); _tokenURISet[tokenId] = true; } _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } contract MasterBrewsNFT is ERC721URIStorage, Ownable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; event PackOpened(address indexed _owner, uint indexed _packNo, uint _cardNo, uint _giftNo, uint _count); // Consumer cards: 0-14999 (15000 items) // Distributor cards: 15000-15299 (300 items) // Master Brewer cards: 15300-15359 (60 items) // Free packs: 15360-16359 (1000 items) uint256 public constant MAX_NFT_SUPPLY = 16360; // 1000 packs set aside to be given as gifts => 8000 total 1-card packs uint256 public constant MAX_PACKS_1CARD = 7000; uint256 public constant MAX_PACKS_3CARD = 1500; uint256 public constant MAX_PACKS_5CARD = 500; uint256 public constant PACK_1CARD_PRICE = 0.08 ether; uint256 public constant PACK_3CARD_PRICE = 0.21 ether; uint256 public constant PACK_5CARD_PRICE = 0.33 ether; uint256 public _totalPacks1Card = 0; uint256 public _totalPacks3Card = 0; uint256 public _totalPacks5Card = 0; uint256 public constant FIRST_CONSUMERS = 0; uint256 public constant FIRST_DISTRIBUTORS = 15000; uint256 public constant FIRST_MASTER_BREWERS = 15300; uint256 public constant FIRST_FREE_PACKS = 15360; uint256 public constant MAX_CONSUMERS = 15000; uint256 public constant MAX_DISTRIBUTORS = 15300; uint256 public constant MAX_MASTER_BREWERS = 15360; uint256 public MAX_FREE_PACKS = 16360; uint256 public _mintIndexConsumers = 0; uint256 public _mintIndexDistributors = 15000; uint256 public _mintIndexMasterBrewers = 15300; uint256 public _mintIndexFreePacks = 15360; bool public isMetadataSet = false; bool public isDefaultUriSet = false; bool public isContractInitialized = false; string public baseURI = ""; address public initialDisbursementAddress = address(this); modifier onlyDisbursement() { if (msg.sender != initialDisbursementAddress) revert("Only disbursement address can trigger this"); _; } // Gift - PLS&TY NFT: 0-0 (1 item) // Gift - The Brewmaster: 1-16 (16 items) // Gift - Master Brewer: 17-76 (60 items) // Gift - Distributor: 77-376 (300 items) // Gift - FREE Pack: 377-776 (400 items) // Gift - Luchador NFT: 777-1776 (1000 items) uint256 public MAX_GIFT_PLSTY = 1; uint256 public MAX_GIFT_BREWMASTER = 17; uint256 public MAX_GIFT_MASTER_BREWER = 77; uint256 public MAX_GIFT_DISTRIBUTOR = 377; uint256 public MAX_GIFT_FREE_PACK = 777; uint256 public MAX_GIFT_LUCHADOR = 1777; uint256 public constant MAX_PACKS = 10000; uint256 public packsLeft = 10000; // 400 free packs set aside as pack bonuses // 124 free packs = 62 consumers x2 at time of snapshot // 40 free packs = 10 distributors x4 at time of snapshot // 10 free packs = 2 master brewers x5 at time of snapshot // rest of packs up to 1000 can be awarded manually by staff uint256 public constant MAX_PACKS_AWARDED_MANUALLY = 426; uint256 public packsAwardedManually = 0; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory __name, string memory __symbol) ERC721(__name, __symbol) {} // Disbursement contract function setDisbursementContract(address disbursementContract) external onlyOwner { require(isContractInitialized == false, "Contract must be uninitialized during migration"); initialDisbursementAddress = disbursementContract; } // Metadata handlers function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseUri(string memory _uri) external onlyOwner { if (_metadataFixed) { require(isMetadataSet == false, "Metadata is already set"); } baseURI = _uri; // Once contract is initialized, metadata can only be set once if (isContractInitialized) { isMetadataSet = true; } } function setDefaultUri(string memory _uri) external onlyOwner { if (_metadataFixed) { require(isDefaultUriSet == false, "Default URI is already set"); } _defaultURIContent = _uri; // Once contract is initialized, default URI can only be set once if (isContractInitialized) { isDefaultUriSet = true; } } function setTokenURI(uint256 tokenId, string memory _tokenURI) external onlyOwner { _setTokenURI(tokenId, _tokenURI); } function setMetadataFixed() external onlyOwner { _metadataFixed = true; } // Contract initialization and asset migration from previous versions function initializeContract() external onlyOwner { require(isContractInitialized == false, "Contract is already initialized"); isContractInitialized = true; } function initialMigrateConsumerCard(address minter, uint256 index) external onlyDisbursement { require(isContractInitialized == false, "Contract must be uninitialized during migration"); require(index > 0, "Index must be 1-based"); // Consumer receives 2x free pack tryMintFreePack(minter); tryMintFreePack(minter); } function initialMigrateDistributorCard(address minter, uint256 index) external onlyDisbursement { require(isContractInitialized == false, "Contract must be uninitialized during migration"); require(index > 0, "Index must be 1-based"); uint256 i = index.sub(1).add(FIRST_DISTRIBUTORS); require(i < MAX_DISTRIBUTORS, "Invalid card"); require(!_exists(i), "Token already minted"); _mint(minter, i); if (i+1 > _mintIndexDistributors) { _mintIndexDistributors = i.add(1); } // update gift bounds starting at Distributor MAX_GIFT_DISTRIBUTOR--; MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; // Distributor receives 4x free pack tryMintFreePack(minter); tryMintFreePack(minter); tryMintFreePack(minter); tryMintFreePack(minter); } function initialMigrateMasterBrewerCard(address minter, uint256 index) external onlyDisbursement { require(isContractInitialized == false, "Contract must be uninitialized during migration"); require(index > 0, "Index must be 1-based"); uint256 i = index.sub(1).add(FIRST_MASTER_BREWERS); require(i < MAX_MASTER_BREWERS, "Invalid card"); require(!_exists(i), "Token already minted"); _mint(minter, i); if (i+1 > _mintIndexMasterBrewers) { _mintIndexMasterBrewers = i.add(1); } // update gift bounds starting at Master Brewer MAX_GIFT_MASTER_BREWER--; MAX_GIFT_DISTRIBUTOR--; MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; // Master Brewer buyers also get a Brewmaster which must be subtracted from pack rewards MAX_GIFT_BREWMASTER--; MAX_GIFT_MASTER_BREWER--; MAX_GIFT_DISTRIBUTOR--; MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; // Master Brewer receives 5x free pack tryMintFreePack(minter); tryMintFreePack(minter); tryMintFreePack(minter); tryMintFreePack(minter); tryMintFreePack(minter); } // Consumer, Distributor, and Master Brewer minting function mintConsumerCards(address minter, uint256 count) private returns (uint256) { require(_mintIndexConsumers.add(count) <= MAX_CONSUMERS, "No more Consumer cards available"); require(count > 0, "Count can't be less than 1"); require(count <= 5, "Count can't be bigger than 5"); uint256 initialCard = _mintIndexConsumers; for (uint256 i = 0; i < count; i++) { require(!_exists(_mintIndexConsumers), "Token already minted"); _mint(minter, _mintIndexConsumers); _mintIndexConsumers++; } return initialCard; } function openFreePack(uint256 tokenId) external returns (uint256) { require(isContractInitialized, "Contract is not initialized"); require(_exists(tokenId), "Token doesn't exist"); require(ownerOf(tokenId) == msg.sender, "Sender must own token"); require(tokenId >= FIRST_FREE_PACKS && tokenId < MAX_FREE_PACKS, "Token must be a pack"); uint256 packIndex = MAX_PACKS - packsLeft; uint256 cardNo = mintConsumerCards(msg.sender, 1); uint256 giftNo = getPackBonus(msg.sender); emit PackOpened(msg.sender, packIndex, cardNo, giftNo, 1); _burn(tokenId); return giftNo; } function awardFreePack(address minter) external onlyOwner returns (bool) { require(packsAwardedManually.add(1) <= MAX_PACKS_AWARDED_MANUALLY, "Can't award any more packs"); packsAwardedManually++; return tryMintFreePack(minter); } function tryMintFreePack(address minter) private returns (bool) { // don't mint if index is out of bounds // this is not an error, since the mint may have been initiated by a random draw // and we still need to keep the pack rather than reverting the whole transaction if (_mintIndexFreePacks.add(1) > MAX_FREE_PACKS) { return false; } require(!_exists(_mintIndexFreePacks), "Token already minted"); _mint(minter, _mintIndexFreePacks); _mintIndexFreePacks = _mintIndexFreePacks.add(1); return true; } function tryMintDistributorCard(address minter) private returns (bool) { // don't mint if index is out of bounds // this is not an error, since the mint may have been initiated by a random draw // and we still need to keep the pack rather than reverting the whole transaction if (_mintIndexDistributors.add(1) > MAX_DISTRIBUTORS) { return false; } require(!_exists(_mintIndexDistributors), "Token already minted"); _mint(minter, _mintIndexDistributors); _mintIndexDistributors = _mintIndexDistributors.add(1); return true; } function tryMintMasterBrewerCard(address minter) private returns (bool) { // don't mint if index is out of bounds // this is not an error, since the mint may have been initiated by a random draw // and we still need to keep the pack rather than reverting the whole transaction if (_mintIndexMasterBrewers.add(1) > MAX_MASTER_BREWERS) { return false; } require(!_exists(_mintIndexMasterBrewers), "Token already minted"); _mint(minter, _mintIndexMasterBrewers); _mintIndexMasterBrewers = _mintIndexMasterBrewers.add(1); return true; } // Pack handling /** * @dev Generates a random number in range 0-[giftsLeft], and awards the gift to the caller */ function getPackBonus(address caller) private returns (uint256) { require(packsLeft > 0, "Something went wrong"); // 0-based random index between 1-[max number of packs] uint256 i = (uint256(keccak256(abi.encodePacked(caller, block.difficulty, block.timestamp, packsLeft))) % packsLeft); packsLeft--; if (i >= MAX_GIFT_LUCHADOR) { // no gift won; return 0; } // Assign gift according to algorithm if (i >= MAX_GIFT_FREE_PACK) { // Luchador NFT gift awarded manually MAX_GIFT_LUCHADOR--; return 1; } else if (i >= MAX_GIFT_DISTRIBUTOR) { // FREE 1-card Pack gift if (tryMintFreePack(caller)) { MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; return 2; } } else if (i >= MAX_GIFT_MASTER_BREWER) { // Distributor gift if (tryMintDistributorCard(caller)) { MAX_GIFT_DISTRIBUTOR--; MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; return 3; } } else if (i >= MAX_GIFT_BREWMASTER) { // Master Brewer gift if (tryMintMasterBrewerCard(caller)) { MAX_GIFT_MASTER_BREWER--; MAX_GIFT_DISTRIBUTOR--; MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; return 4; } } else if (i >= MAX_GIFT_PLSTY) { // Brewmaster gift awarded manually MAX_GIFT_BREWMASTER--; MAX_GIFT_MASTER_BREWER--; MAX_GIFT_DISTRIBUTOR--; MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; return 5; } else { // PLS&TY gift awarded manually MAX_GIFT_PLSTY--; MAX_GIFT_BREWMASTER--; MAX_GIFT_MASTER_BREWER--; MAX_GIFT_DISTRIBUTOR--; MAX_GIFT_FREE_PACK--; MAX_GIFT_LUCHADOR--; return 6; } // returns 0 if gift was assigned but all gifts were sold already return 0; } function buyPack1Card() external payable returns (uint256) { require(isContractInitialized, "Contract is not initialized"); require(_totalPacks1Card < MAX_PACKS_1CARD, "No more 1-card packs available"); require(msg.value == PACK_1CARD_PRICE, "Ether value sent is not correct"); uint256 packIndex = MAX_PACKS - packsLeft; uint256 cardNo = mintConsumerCards(msg.sender, 1); uint256 giftNo = getPackBonus(msg.sender); _totalPacks1Card++; emit PackOpened(msg.sender, packIndex, cardNo, giftNo, 1); return giftNo; } function buyPack3Card() external payable returns (uint256) { require(isContractInitialized, "Contract is not initialized"); require(_totalPacks3Card < MAX_PACKS_3CARD, "No more 3-card packs available"); require(msg.value == PACK_3CARD_PRICE, "Ether value sent is not correct"); uint256 packIndex = MAX_PACKS - packsLeft; uint256 cardNo = mintConsumerCards(msg.sender, 3); uint256 giftNo = getPackBonus(msg.sender); _totalPacks3Card++; emit PackOpened(msg.sender, packIndex, cardNo, giftNo, 3); return giftNo; } function buyPack5Card() external payable returns (uint256) { require(isContractInitialized, "Contract is not initialized"); require(_totalPacks5Card < MAX_PACKS_5CARD, "No more 5-card packs available"); require(msg.value == PACK_5CARD_PRICE, "Ether value sent is not correct"); uint256 packIndex = MAX_PACKS - packsLeft; uint256 cardNo = mintConsumerCards(msg.sender, 5); uint256 giftNo = getPackBonus(msg.sender); _totalPacks5Card++; emit PackOpened(msg.sender, packIndex, cardNo, giftNo, 5); return giftNo; } /** * @dev Withdraw ether from this contract (Callable by owner) */ function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./EnumerableSet.sol"; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { using EnumerableSet for EnumerableSet.Bytes32Set; // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct Map { // Storage of keys EnumerableSet.Bytes32Set _keys; mapping (bytes32 => bytes32) _values; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { map._values[key] = value; return map._keys.add(key); } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { delete map._values[key]; return map._keys.remove(key); } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._keys.contains(key); } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._keys.length(); } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { bytes32 key = map._keys.at(index); return (key, map._values[key]); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { bytes32 value = map._values[key]; if (value == bytes32(0)) { return (_contains(map, key), bytes32(0)); } else { return (true, value); } } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key"); return value; } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), errorMessage); return value; } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"_packNo","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_cardNo","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_giftNo","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_count","type":"uint256"}],"name":"PackOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FIRST_CONSUMERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_DISTRIBUTORS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_FREE_PACKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FIRST_MASTER_BREWERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CONSUMERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DISTRIBUTORS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE_PACKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFT_BREWMASTER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFT_DISTRIBUTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFT_FREE_PACK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFT_LUCHADOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFT_MASTER_BREWER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GIFT_PLSTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MASTER_BREWERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PACKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PACKS_1CARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PACKS_3CARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PACKS_5CARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PACKS_AWARDED_MANUALLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PACK_1CARD_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PACK_3CARD_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PACK_5CARD_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintIndexConsumers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintIndexDistributors","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintIndexFreePacks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintIndexMasterBrewers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalPacks1Card","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalPacks3Card","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalPacks5Card","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"awardFreePack","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyPack1Card","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"buyPack3Card","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"buyPack5Card","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialDisbursementAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"initialMigrateConsumerCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"initialMigrateDistributorCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"initialMigrateMasterBrewerCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isContractInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDefaultUriSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"openFreePack","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"packsAwardedManually","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"packsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setDefaultUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"disbursementContract","type":"address"}],"name":"setDisbursementContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setMetadataFixed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040819052600060808190526200001b91600c9162000193565b50600d805460ff191690556000600e819055600f8190556010819055613fe86011556012819055613a98601355613bc4601455613c006015556016805462ffffff191690556040805160208101918290528290526200007e916017919062000193565b50601880546001600160a01b0319163017905560016019556011601a55604d601b55610179601c55610309601d556106f1601e55612710601f556000602055348015620000ca57600080fd5b5060405162003fda38038062003fda833981016040819052620000ed91620002ec565b8151829082906200010690600090602085019062000193565b5080516200011c90600190602084019062000193565b5050506000620001316200018f60201b60201c565b600d8054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620003a6565b3390565b828054620001a19062000353565b90600052602060002090601f016020900481019282620001c5576000855562000210565b82601f10620001e057805160ff191683800117855562000210565b8280016001018555821562000210579182015b8281111562000210578251825591602001919060010190620001f3565b506200021e92915062000222565b5090565b5b808211156200021e576000815560010162000223565b600082601f8301126200024a578081fd5b81516001600160401b038082111562000267576200026762000390565b604051601f8301601f19908116603f0116810190828211818310171562000292576200029262000390565b81604052838152602092508683858801011115620002ae578485fd5b8491505b83821015620002d15785820183015181830184015290820190620002b2565b83821115620002e257848385830101525b9695505050505050565b60008060408385031215620002ff578182fd5b82516001600160401b038082111562000316578384fd5b620003248683870162000239565b935060208501519150808211156200033a578283fd5b50620003498582860162000239565b9150509250929050565b600181811c908216806200036857607f821691505b602082108114156200038a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613c2480620003b66000396000f3fe6080604052600436106104055760003560e01c806369565b5c11610213578063a22cb46511610123578063c87b56dd116100ab578063edc524761161007a578063edc5247614610acc578063f2fde38b14610ae2578063f31578ee14610b02578063f63bdea614610a03578063fbf7936b14610b1e57600080fd5b8063c87b56dd14610a45578063d0c00c0414610a65578063d5703fd014610a6d578063e985e9c514610a8357600080fd5b8063b5077f44116100f2578063b5077f44146109cd578063b88d4fde146109e3578063bd81425b14610a03578063be41cdcf14610a19578063bf7c957a14610a2f57600080fd5b8063a22cb46514610962578063a85d66be14610982578063b24d2251146109a2578063b419d879146109b857600080fd5b806380d3dd7d116101a657806390efc0231161017557806390efc023146108f057806395d89b41146109105780639d51db6f146109255780639eb32fdb1461092d578063a0bcfc7f1461094257600080fd5b806380d3dd7d146107a357806389584b38146104df5780638b387c5a146108b75780638da5cb5b146108cd57600080fd5b806375f9e08a116101e257806375f9e08a1461084c5780637a34b6d3146108625780637cef0219146108815780637e01bc121461089757600080fd5b806369565b5c146107e15780636c0360eb146107f757806370001e2e1461080c57806370a082311461082c57600080fd5b806323b872dd116103195780634f6ccce7116102a157806361526fc61161027057806361526fc6146107675780636352211e1461078357806364d51a2a146107a357806365a2ecbd146107b957806366599ffc146107d957600080fd5b80634f6ccce7146107055780635514734a146107255780635a8b178a1461073b5780635f6cbf661461075157600080fd5b806335e1198f116102e857806335e1198f146106805780633ccfd60b1461069a57806342842e0e146106af578063466a18de146106cf5780634704ca7e146106ef57600080fd5b806323b872dd1461060e5780632f745c591461062e5780632f7474101461064e57806333fb2a621461066a57600080fd5b80630a25d39d1161039c57806318160ddd1161036b57806318160ddd1461059757806318fb14da146105ac5780631d3ba977146105c25780631fc8353d146105e2578063201596dc146105f857600080fd5b80630a25d39d146105355780630b225bd11461054b578063162094c41461056157806317a3457b1461058157600080fd5b80630879a67d116103d85780630879a67d146104bb57806308f9da28146104df578063095ea7b3146104f557806309bffd841461051557600080fd5b806301ffc9a71461040a578063058b746e1461043f57806306fdde0314610461578063081812fc14610483575b600080fd5b34801561041657600080fd5b5061042a6104253660046136d7565b610b33565b60405190151581526020015b60405180910390f35b34801561044b57600080fd5b5061045f61045a3660046136ae565b610b5e565b005b34801561046d57600080fd5b50610476610cf4565b6040516104369190613837565b34801561048f57600080fd5b506104a361049e366004613742565b610d86565b6040516001600160a01b039091168152602001610436565b3480156104c757600080fd5b506104d160105481565b604051908152602001610436565b3480156104eb57600080fd5b506104d1613c0081565b34801561050157600080fd5b5061045f6105103660046136ae565b610e0e565b34801561052157600080fd5b506018546104a3906001600160a01b031681565b34801561054157600080fd5b506104d16101aa81565b34801561055757600080fd5b506104d1600f5481565b34801561056d57600080fd5b5061045f61057c36600461375a565b610f24565b34801561058d57600080fd5b506104d160145481565b3480156105a357600080fd5b506008546104d1565b3480156105b857600080fd5b506104d1601d5481565b3480156105ce57600080fd5b506104d16105dd366004613742565b610f62565b3480156105ee57600080fd5b506104d1611b5881565b34801561060457600080fd5b506104d160195481565b34801561061a57600080fd5b5061045f6106293660046135c0565b6110fb565b34801561063a57600080fd5b506104d16106493660046136ae565b61112c565b34801561065a57600080fd5b506104d16702ea11e32ad5000081565b34801561067657600080fd5b506104d1601f5481565b34801561068c57600080fd5b5060165461042a9060ff1681565b3480156106a657600080fd5b5061045f6111c2565b3480156106bb57600080fd5b5061045f6106ca3660046135c0565b611221565b3480156106db57600080fd5b5061045f6106ea36600461370f565b61123c565b3480156106fb57600080fd5b506104d160135481565b34801561071157600080fd5b506104d1610720366004613742565b611307565b34801561073157600080fd5b506104d161271081565b34801561074757600080fd5b506104d16105dc81565b34801561075d57600080fd5b506104d1601e5481565b34801561077357600080fd5b506104d1670494654067e1000081565b34801561078f57600080fd5b506104a361079e366004613742565b6113a8565b3480156107af57600080fd5b506104d1613a9881565b3480156107c557600080fd5b5061045f6107d43660046136ae565b61141f565b6104d16114a5565b3480156107ed57600080fd5b506104d160205481565b34801561080357600080fd5b506104766115cd565b34801561081857600080fd5b5061045f6108273660046136ae565b61165b565b34801561083857600080fd5b506104d1610847366004613574565b611846565b34801561085857600080fd5b506104d160115481565b34801561086e57600080fd5b5060165461042a90610100900460ff1681565b34801561088d57600080fd5b506104d1601b5481565b3480156108a357600080fd5b5061042a6108b2366004613574565b6118cd565b3480156108c357600080fd5b506104d160125481565b3480156108d957600080fd5b50600d5461010090046001600160a01b03166104a3565b3480156108fc57600080fd5b5061045f61090b366004613574565b611983565b34801561091c57600080fd5b506104766119fe565b6104d1611a0d565b34801561093957600080fd5b5061045f611b2a565b34801561094e57600080fd5b5061045f61095d36600461370f565b611bc6565b34801561096e57600080fd5b5061045f61097d366004613674565b611c89565b34801561098e57600080fd5b5060165461042a9062010000900460ff1681565b3480156109ae57600080fd5b506104d1601c5481565b3480156109c457600080fd5b506104d1600081565b3480156109d957600080fd5b506104d1613fe881565b3480156109ef57600080fd5b5061045f6109fe3660046135fb565b611d4e565b348015610a0f57600080fd5b506104d1613bc481565b348015610a2557600080fd5b506104d1600e5481565b348015610a3b57600080fd5b506104d160155481565b348015610a5157600080fd5b50610476610a60366004613742565b611d80565b6104d1611f14565b348015610a7957600080fd5b506104d1601a5481565b348015610a8f57600080fd5b5061042a610a9e36600461358e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610ad857600080fd5b506104d16101f481565b348015610aee57600080fd5b5061045f610afd366004613574565b612031565b348015610b0e57600080fd5b506104d167011c37937e08000081565b348015610b2a57600080fd5b5061045f61212d565b60006001600160e01b0319821663780e9d6360e01b1480610b585750610b588261216c565b92915050565b6018546001600160a01b03163314610b915760405162461bcd60e51b8152600401610b8890613919565b60405180910390fd5b60165462010000900460ff1615610bba5760405162461bcd60e51b8152600401610b889061384a565b60008111610bda5760405162461bcd60e51b8152600401610b8890613a06565b6000610bf3613a98610bed8460016121bc565b906121cf565b9050613bc48110610c355760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a590818d85c9960a21b6044820152606401610b88565b610c3e816121db565b15610c5b5760405162461bcd60e51b8152600401610b8890613899565b610c6583826121f8565b601354610c73826001613a86565b1115610c8857610c848160016121cf565b6013555b601c8054906000610c9883613af5565b9091555050601d8054906000610cad83613af5565b9091555050601e8054906000610cc283613af5565b9190505550610cd083612337565b50610cda83612337565b50610ce483612337565b50610cee83612337565b50505050565b606060008054610d0390613b0c565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2f90613b0c565b8015610d7c5780601f10610d5157610100808354040283529160200191610d7c565b820191906000526020600020905b815481529060010190602001808311610d5f57829003601f168201915b5050505050905090565b6000610d91826121db565b610df25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b88565b506000908152600460205260409020546001600160a01b031690565b6000610e19826113a8565b9050806001600160a01b0316836001600160a01b03161415610e875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b88565b336001600160a01b0382161480610ea35750610ea38133610a9e565b610f155760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b88565b610f1f83836123ad565b505050565b600d546001600160a01b03610100909104163314610f545760405162461bcd60e51b8152600401610b88906139d1565b610f5e828261241b565b5050565b60165460009062010000900460ff16610f8d5760405162461bcd60e51b8152600401610b889061399a565b610f96826121db565b610fd85760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88191bd95cdb89dd08195e1a5cdd606a1b6044820152606401610b88565b33610fe2836113a8565b6001600160a01b0316146110305760405162461bcd60e51b815260206004820152601560248201527429b2b73232b91036bab9ba1037bbb7103a37b5b2b760591b6044820152606401610b88565b613c008210158015611043575060115482105b6110865760405162461bcd60e51b8152602060048201526014602482015273546f6b656e206d7573742062652061207061636b60601b6044820152606401610b88565b6000601f546127106110989190613ab2565b905060006110a7336001612543565b905060006110b4336126be565b6040805184815260208101839052600181830152905191925084913391600080516020613bcf833981519152919081900360600190a36110f3856129e1565b949350505050565b6111053382612a21565b6111215760405162461bcd60e51b8152600401610b8890613a35565b610f1f838383612b07565b600061113783611846565b82106111995760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b88565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600d546001600160a01b036101009091041633146111f25760405162461bcd60e51b8152600401610b88906139d1565b6040514790339082156108fc029083906000818181858888f19350505050158015610f5e573d6000803e3d6000fd5b610f1f83838360405180602001604052806000815250611d4e565b600d546001600160a01b0361010090910416331461126c5760405162461bcd60e51b8152600401610b88906139d1565b600d5460ff16156112cf57601654610100900460ff16156112cf5760405162461bcd60e51b815260206004820152601a60248201527f44656661756c742055524920697320616c7265616479207365740000000000006044820152606401610b88565b80516112e290600c9060208401906133f9565b5060165462010000900460ff1615611304576016805461ff0019166101001790555b50565b600061131260085490565b82106113755760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b88565b6008828154811061139657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610b585760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b88565b6018546001600160a01b031633146114495760405162461bcd60e51b8152600401610b8890613919565b60165462010000900460ff16156114725760405162461bcd60e51b8152600401610b889061384a565b600081116114925760405162461bcd60e51b8152600401610b8890613a06565b61149b82612337565b50610f1f82612337565b60165460009062010000900460ff166114d05760405162461bcd60e51b8152600401610b889061399a565b611b58600e54106115235760405162461bcd60e51b815260206004820152601e60248201527f4e6f206d6f726520312d63617264207061636b7320617661696c61626c6500006044820152606401610b88565b67011c37937e080000341461154a5760405162461bcd60e51b8152600401610b8890613963565b6000601f5461271061155c9190613ab2565b9050600061156b336001612543565b90506000611578336126be565b600e8054919250600061158a83613b47565b9091555050604080518381526020810183905260019181019190915283903390600080516020613bcf833981519152906060015b60405180910390a39392505050565b601780546115da90613b0c565b80601f016020809104026020016040519081016040528092919081815260200182805461160690613b0c565b80156116535780601f1061162857610100808354040283529160200191611653565b820191906000526020600020905b81548152906001019060200180831161163657829003601f168201915b505050505081565b6018546001600160a01b031633146116855760405162461bcd60e51b8152600401610b8890613919565b60165462010000900460ff16156116ae5760405162461bcd60e51b8152600401610b889061384a565b600081116116ce5760405162461bcd60e51b8152600401610b8890613a06565b60006116e1613bc4610bed8460016121bc565b9050613c0081106117235760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a590818d85c9960a21b6044820152606401610b88565b61172c816121db565b156117495760405162461bcd60e51b8152600401610b8890613899565b61175383826121f8565b601454611761826001613a86565b1115611776576117728160016121cf565b6014555b601b805490600061178683613af5565b9091555050601c805490600061179b83613af5565b9091555050601d80549060006117b083613af5565b9091555050601e80549060006117c583613af5565b9091555050601a80549060006117da83613af5565b9091555050601b80549060006117ef83613af5565b9091555050601c805490600061180483613af5565b9091555050601d805490600061181983613af5565b9091555050601e805490600061182e83613af5565b919050555061183c83612337565b50610cd083612337565b60006001600160a01b0382166118b15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b88565b506001600160a01b031660009081526003602052604090205490565b600d546000906001600160a01b036101009091041633146119005760405162461bcd60e51b8152600401610b88906139d1565b6020546101aa906119129060016121cf565b11156119605760405162461bcd60e51b815260206004820152601a60248201527f43616e277420617761726420616e79206d6f7265207061636b730000000000006044820152606401610b88565b6020805490600061197083613b47565b9190505550610b5882612337565b919050565b600d546001600160a01b036101009091041633146119b35760405162461bcd60e51b8152600401610b88906139d1565b60165462010000900460ff16156119dc5760405162461bcd60e51b8152600401610b889061384a565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606060018054610d0390613b0c565b60165460009062010000900460ff16611a385760405162461bcd60e51b8152600401610b889061399a565b6101f460105410611a8b5760405162461bcd60e51b815260206004820152601e60248201527f4e6f206d6f726520352d63617264207061636b7320617661696c61626c6500006044820152606401610b88565b670494654067e100003414611ab25760405162461bcd60e51b8152600401610b8890613963565b6000601f54612710611ac49190613ab2565b90506000611ad3336005612543565b90506000611ae0336126be565b601080549192506000611af283613b47565b9091555050604080518381526020810183905260059181019190915283903390600080516020613bcf833981519152906060016115be565b600d546001600160a01b03610100909104163314611b5a5760405162461bcd60e51b8152600401610b88906139d1565b60165462010000900460ff1615611bb35760405162461bcd60e51b815260206004820152601f60248201527f436f6e747261637420697320616c726561647920696e697469616c697a6564006044820152606401610b88565b6016805462ff0000191662010000179055565b600d546001600160a01b03610100909104163314611bf65760405162461bcd60e51b8152600401610b88906139d1565b600d5460ff1615611c545760165460ff1615611c545760405162461bcd60e51b815260206004820152601760248201527f4d6574616461746120697320616c7265616479207365740000000000000000006044820152606401610b88565b8051611c679060179060208401906133f9565b5060165462010000900460ff1615611304576016805460ff1916600117905550565b6001600160a01b038216331415611ce25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b88565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611d583383612a21565b611d745760405162461bcd60e51b8152600401610b8890613a35565b610cee84848484612cb2565b6060611d8b826121db565b611df15760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610b88565b6000828152600a602052604081208054611e0a90613b0c565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3690613b0c565b8015611e835780601f10611e5857610100808354040283529160200191611e83565b820191906000526020600020905b815481529060010190602001808311611e6657829003601f168201915b505050505090506000611e94612ce5565b90506000611ea0612cf4565b9050815160001415611eb55750909392505050565b825115611ee8578183604051602001611ecf9291906137cb565b6040516020818303038152906040529350505050919050565b805115611f02578181604051602001611ecf9291906137cb565b611f0b85612d03565b95945050505050565b60165460009062010000900460ff16611f3f5760405162461bcd60e51b8152600401610b889061399a565b6105dc600f5410611f925760405162461bcd60e51b815260206004820152601e60248201527f4e6f206d6f726520332d63617264207061636b7320617661696c61626c6500006044820152606401610b88565b6702ea11e32ad500003414611fb95760405162461bcd60e51b8152600401610b8890613963565b6000601f54612710611fcb9190613ab2565b90506000611fda336003612543565b90506000611fe7336126be565b600f80549192506000611ff983613b47565b9091555050604080518381526020810183905260039181019190915283903390600080516020613bcf833981519152906060016115be565b600d546001600160a01b036101009091041633146120615760405162461bcd60e51b8152600401610b88906139d1565b6001600160a01b0381166120c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b88565b600d546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600d546001600160a01b0361010090910416331461215d5760405162461bcd60e51b8152600401610b88906139d1565b600d805460ff19166001179055565b60006001600160e01b031982166380ac58cd60e01b148061219d57506001600160e01b03198216635b5e139f60e01b145b80610b5857506301ffc9a760e01b6001600160e01b0319831614610b58565b60006121c88284613ab2565b9392505050565b60006121c88284613a86565b6000908152600260205260409020546001600160a01b0316151590565b6001600160a01b03821661224e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b88565b612257816121db565b156122a45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b88565b6122b060008383612dcd565b6001600160a01b03821660009081526003602052604081208054600192906122d9908490613a86565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060115461235260016015546121cf90919063ffffffff16565b111561236057506000919050565b61236b6015546121db565b156123885760405162461bcd60e51b8152600401610b8890613899565b612394826015546121f8565b6015546123a29060016121cf565b601555506001919050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123e2826113a8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612424826121db565b6124875760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610b88565b600d5460ff1615612524576000828152600b602052604090205460ff161561250a5760405162461bcd60e51b815260206004820152603060248201527f45524337323155524953746f726167653a2055524920616c726561647920736560448201526f3a103337b9103a3434b9903a37b5b2b760811b6064820152608401610b88565b6000828152600b60205260409020805460ff191660011790555b6000828152600a602090815260409091208251610f1f928401906133f9565b6000613a9861255d836012546121cf90919063ffffffff16565b11156125ab5760405162461bcd60e51b815260206004820181905260248201527f4e6f206d6f726520436f6e73756d657220636172647320617661696c61626c656044820152606401610b88565b600082116125fb5760405162461bcd60e51b815260206004820152601a60248201527f436f756e742063616e2774206265206c657373207468616e20310000000000006044820152606401610b88565b600582111561264c5760405162461bcd60e51b815260206004820152601c60248201527f436f756e742063616e277420626520626967676572207468616e2035000000006044820152606401610b88565b60125460005b838110156126b6576126656012546121db565b156126825760405162461bcd60e51b8152600401610b8890613899565b61268e856012546121f8565b6012805490600061269e83613b47565b919050555080806126ae90613b47565b915050612652565b509392505050565b600080601f54116127085760405162461bcd60e51b8152602060048201526014602482015273536f6d657468696e672077656e742077726f6e6760601b6044820152606401610b88565b601f546040516bffffffffffffffffffffffff19606085901b16602082015244603482015242605482015260748101829052600091906094016040516020818303038152906040528051906020012060001c6127649190613b62565b601f8054919250600061277683613af5565b9190505550601e54811061278d5750600092915050565b601d5481106127b457601e80549060006127a683613af5565b909155506001949350505050565b601c548110612803576127c683612337565b156127fe57601d80549060006127db83613af5565b9091555050601e80549060006127f083613af5565b909155506002949350505050565b6129d8565b601b5481106128625761281583612e85565b156127fe57601c805490600061282a83613af5565b9091555050601d805490600061283f83613af5565b9091555050601e805490600061285483613af5565b909155506003949350505050565b601a5481106128d65761287483612efb565b156127fe57601b805490600061288983613af5565b9091555050601c805490600061289e83613af5565b9091555050601d80549060006128b383613af5565b9091555050601e80549060006128c883613af5565b909155506004949350505050565b601954811061295157601a80549060006128ef83613af5565b9091555050601b805490600061290483613af5565b9091555050601c805490600061291983613af5565b9091555050601d805490600061292e83613af5565b9091555050601e805490600061294383613af5565b909155506005949350505050565b6019805490600061296183613af5565b9091555050601a805490600061297683613af5565b9091555050601b805490600061298b83613af5565b9091555050601c80549060006129a083613af5565b9091555050601d80549060006129b583613af5565b9091555050601e80549060006129ca83613af5565b909155506006949350505050565b50600092915050565b6129ea81612f71565b6000818152600a602052604090208054612a0390613b0c565b159050611304576000818152600a602052604081206113049161347d565b6000612a2c826121db565b612a8d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b88565b6000612a98836113a8565b9050806001600160a01b0316846001600160a01b03161480612ad35750836001600160a01b0316612ac884610d86565b6001600160a01b0316145b806110f357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166110f3565b826001600160a01b0316612b1a826113a8565b6001600160a01b031614612b825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b88565b6001600160a01b038216612be45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b88565b612bef838383612dcd565b612bfa6000826123ad565b6001600160a01b0383166000908152600360205260408120805460019290612c23908490613ab2565b90915550506001600160a01b0382166000908152600360205260408120805460019290612c51908490613a86565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612cbd848484612b07565b612cc984848484613018565b610cee5760405162461bcd60e51b8152600401610b88906138c7565b606060178054610d0390613b0c565b6060600c8054610d0390613b0c565b6060612d0e826121db565b612d725760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b88565b6000612d7c612ce5565b90506000815111612d9c57604051806020016040528060008152506121c8565b80612da684613125565b604051602001612db79291906137cb565b6040516020818303038152906040529392505050565b6001600160a01b038316612e2857612e2381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612e4b565b816001600160a01b0316836001600160a01b031614612e4b57612e4b838261323f565b6001600160a01b038216612e6257610f1f816132dc565b826001600160a01b0316826001600160a01b031614610f1f57610f1f82826133b5565b6000613bc4612ea060016013546121cf90919063ffffffff16565b1115612eae57506000919050565b612eb96013546121db565b15612ed65760405162461bcd60e51b8152600401610b8890613899565b612ee2826013546121f8565b601354612ef09060016121cf565b601355506001919050565b6000613c00612f1660016014546121cf90919063ffffffff16565b1115612f2457506000919050565b612f2f6014546121db565b15612f4c5760405162461bcd60e51b8152600401610b8890613899565b612f58826014546121f8565b601454612f669060016121cf565b601455506001919050565b6000612f7c826113a8565b9050612f8a81600084612dcd565b612f956000836123ad565b6001600160a01b0381166000908152600360205260408120805460019290612fbe908490613ab2565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561311a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061305c9033908990889088906004016137fa565b602060405180830381600087803b15801561307657600080fd5b505af19250505080156130a6575060408051601f3d908101601f191682019092526130a3918101906136f3565b60015b613100573d8080156130d4576040519150601f19603f3d011682016040523d82523d6000602084013e6130d9565b606091505b5080516130f85760405162461bcd60e51b8152600401610b88906138c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110f3565b506001949350505050565b6060816131495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613173578061315d81613b47565b915061316c9050600a83613a9e565b915061314d565b60008167ffffffffffffffff81111561319c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131c6576020820181803683370190505b5090505b84156110f3576131db600183613ab2565b91506131e8600a86613b62565b6131f3906030613a86565b60f81b81838151811061321657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613238600a86613a9e565b94506131ca565b6000600161324c84611846565b6132569190613ab2565b6000838152600760205260409020549091508082146132a9576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906132ee90600190613ab2565b6000838152600960205260408120546008805493945090928490811061332457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061335357634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061339957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006133c083611846565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461340590613b0c565b90600052602060002090601f016020900481019282613427576000855561346d565b82601f1061344057805160ff191683800117855561346d565b8280016001018555821561346d579182015b8281111561346d578251825591602001919060010190613452565b506134799291506134b3565b5090565b50805461348990613b0c565b6000825580601f10613499575050565b601f01602090049060005260206000209081019061130491905b5b8082111561347957600081556001016134b4565b600067ffffffffffffffff808411156134e3576134e3613ba2565b604051601f8501601f19908116603f0116810190828211818310171561350b5761350b613ba2565b8160405280935085815286868601111561352457600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461197e57600080fd5b600082601f830112613565578081fd5b6121c8838335602085016134c8565b600060208284031215613585578081fd5b6121c88261353e565b600080604083850312156135a0578081fd5b6135a98361353e565b91506135b76020840161353e565b90509250929050565b6000806000606084860312156135d4578081fd5b6135dd8461353e565b92506135eb6020850161353e565b9150604084013590509250925092565b60008060008060808587031215613610578081fd5b6136198561353e565b93506136276020860161353e565b925060408501359150606085013567ffffffffffffffff811115613649578182fd5b8501601f81018713613659578182fd5b613668878235602084016134c8565b91505092959194509250565b60008060408385031215613686578182fd5b61368f8361353e565b9150602083013580151581146136a3578182fd5b809150509250929050565b600080604083850312156136c0578182fd5b6136c98361353e565b946020939093013593505050565b6000602082840312156136e8578081fd5b81356121c881613bb8565b600060208284031215613704578081fd5b81516121c881613bb8565b600060208284031215613720578081fd5b813567ffffffffffffffff811115613736578182fd5b6110f384828501613555565b600060208284031215613753578081fd5b5035919050565b6000806040838503121561376c578182fd5b82359150602083013567ffffffffffffffff811115613789578182fd5b61379585828601613555565b9150509250929050565b600081518084526137b7816020860160208601613ac9565b601f01601f19169290920160200192915050565b600083516137dd818460208801613ac9565b8351908301906137f1818360208801613ac9565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061382d9083018461379f565b9695505050505050565b6020815260006121c8602083018461379f565b6020808252602f908201527f436f6e7472616374206d75737420626520756e696e697469616c697a6564206460408201526e3ab934b7339036b4b3b930ba34b7b760891b606082015260800190565b602080825260149082015273151bdad95b88185b1c9958591e481b5a5b9d195960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602a908201527f4f6e6c792064697362757273656d656e7420616464726573732063616e2074726040820152696967676572207468697360b01b606082015260800190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601b908201527f436f6e7472616374206973206e6f7420696e697469616c697a65640000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260159082015274125b99195e081b5d5cdd081899480c4b58985cd959605a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613a9957613a99613b76565b500190565b600082613aad57613aad613b8c565b500490565b600082821015613ac457613ac4613b76565b500390565b60005b83811015613ae4578181015183820152602001613acc565b83811115610cee5750506000910152565b600081613b0457613b04613b76565b506000190190565b600181811c90821680613b2057607f821691505b60208210811415613b4157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613b5b57613b5b613b76565b5060010190565b600082613b7157613b71613b8c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461130457600080fdfed56738f84f958900035b8ad1c480554bfbf92fd764d328bd1a137be8e9a946c5a2646970667358221220c6c6d349ac4470945d16368e629b9f7373b506be184591c132bbf7da2f4bc46564736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000b4d6173746572427265777300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d42524557530000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106104055760003560e01c806369565b5c11610213578063a22cb46511610123578063c87b56dd116100ab578063edc524761161007a578063edc5247614610acc578063f2fde38b14610ae2578063f31578ee14610b02578063f63bdea614610a03578063fbf7936b14610b1e57600080fd5b8063c87b56dd14610a45578063d0c00c0414610a65578063d5703fd014610a6d578063e985e9c514610a8357600080fd5b8063b5077f44116100f2578063b5077f44146109cd578063b88d4fde146109e3578063bd81425b14610a03578063be41cdcf14610a19578063bf7c957a14610a2f57600080fd5b8063a22cb46514610962578063a85d66be14610982578063b24d2251146109a2578063b419d879146109b857600080fd5b806380d3dd7d116101a657806390efc0231161017557806390efc023146108f057806395d89b41146109105780639d51db6f146109255780639eb32fdb1461092d578063a0bcfc7f1461094257600080fd5b806380d3dd7d146107a357806389584b38146104df5780638b387c5a146108b75780638da5cb5b146108cd57600080fd5b806375f9e08a116101e257806375f9e08a1461084c5780637a34b6d3146108625780637cef0219146108815780637e01bc121461089757600080fd5b806369565b5c146107e15780636c0360eb146107f757806370001e2e1461080c57806370a082311461082c57600080fd5b806323b872dd116103195780634f6ccce7116102a157806361526fc61161027057806361526fc6146107675780636352211e1461078357806364d51a2a146107a357806365a2ecbd146107b957806366599ffc146107d957600080fd5b80634f6ccce7146107055780635514734a146107255780635a8b178a1461073b5780635f6cbf661461075157600080fd5b806335e1198f116102e857806335e1198f146106805780633ccfd60b1461069a57806342842e0e146106af578063466a18de146106cf5780634704ca7e146106ef57600080fd5b806323b872dd1461060e5780632f745c591461062e5780632f7474101461064e57806333fb2a621461066a57600080fd5b80630a25d39d1161039c57806318160ddd1161036b57806318160ddd1461059757806318fb14da146105ac5780631d3ba977146105c25780631fc8353d146105e2578063201596dc146105f857600080fd5b80630a25d39d146105355780630b225bd11461054b578063162094c41461056157806317a3457b1461058157600080fd5b80630879a67d116103d85780630879a67d146104bb57806308f9da28146104df578063095ea7b3146104f557806309bffd841461051557600080fd5b806301ffc9a71461040a578063058b746e1461043f57806306fdde0314610461578063081812fc14610483575b600080fd5b34801561041657600080fd5b5061042a6104253660046136d7565b610b33565b60405190151581526020015b60405180910390f35b34801561044b57600080fd5b5061045f61045a3660046136ae565b610b5e565b005b34801561046d57600080fd5b50610476610cf4565b6040516104369190613837565b34801561048f57600080fd5b506104a361049e366004613742565b610d86565b6040516001600160a01b039091168152602001610436565b3480156104c757600080fd5b506104d160105481565b604051908152602001610436565b3480156104eb57600080fd5b506104d1613c0081565b34801561050157600080fd5b5061045f6105103660046136ae565b610e0e565b34801561052157600080fd5b506018546104a3906001600160a01b031681565b34801561054157600080fd5b506104d16101aa81565b34801561055757600080fd5b506104d1600f5481565b34801561056d57600080fd5b5061045f61057c36600461375a565b610f24565b34801561058d57600080fd5b506104d160145481565b3480156105a357600080fd5b506008546104d1565b3480156105b857600080fd5b506104d1601d5481565b3480156105ce57600080fd5b506104d16105dd366004613742565b610f62565b3480156105ee57600080fd5b506104d1611b5881565b34801561060457600080fd5b506104d160195481565b34801561061a57600080fd5b5061045f6106293660046135c0565b6110fb565b34801561063a57600080fd5b506104d16106493660046136ae565b61112c565b34801561065a57600080fd5b506104d16702ea11e32ad5000081565b34801561067657600080fd5b506104d1601f5481565b34801561068c57600080fd5b5060165461042a9060ff1681565b3480156106a657600080fd5b5061045f6111c2565b3480156106bb57600080fd5b5061045f6106ca3660046135c0565b611221565b3480156106db57600080fd5b5061045f6106ea36600461370f565b61123c565b3480156106fb57600080fd5b506104d160135481565b34801561071157600080fd5b506104d1610720366004613742565b611307565b34801561073157600080fd5b506104d161271081565b34801561074757600080fd5b506104d16105dc81565b34801561075d57600080fd5b506104d1601e5481565b34801561077357600080fd5b506104d1670494654067e1000081565b34801561078f57600080fd5b506104a361079e366004613742565b6113a8565b3480156107af57600080fd5b506104d1613a9881565b3480156107c557600080fd5b5061045f6107d43660046136ae565b61141f565b6104d16114a5565b3480156107ed57600080fd5b506104d160205481565b34801561080357600080fd5b506104766115cd565b34801561081857600080fd5b5061045f6108273660046136ae565b61165b565b34801561083857600080fd5b506104d1610847366004613574565b611846565b34801561085857600080fd5b506104d160115481565b34801561086e57600080fd5b5060165461042a90610100900460ff1681565b34801561088d57600080fd5b506104d1601b5481565b3480156108a357600080fd5b5061042a6108b2366004613574565b6118cd565b3480156108c357600080fd5b506104d160125481565b3480156108d957600080fd5b50600d5461010090046001600160a01b03166104a3565b3480156108fc57600080fd5b5061045f61090b366004613574565b611983565b34801561091c57600080fd5b506104766119fe565b6104d1611a0d565b34801561093957600080fd5b5061045f611b2a565b34801561094e57600080fd5b5061045f61095d36600461370f565b611bc6565b34801561096e57600080fd5b5061045f61097d366004613674565b611c89565b34801561098e57600080fd5b5060165461042a9062010000900460ff1681565b3480156109ae57600080fd5b506104d1601c5481565b3480156109c457600080fd5b506104d1600081565b3480156109d957600080fd5b506104d1613fe881565b3480156109ef57600080fd5b5061045f6109fe3660046135fb565b611d4e565b348015610a0f57600080fd5b506104d1613bc481565b348015610a2557600080fd5b506104d1600e5481565b348015610a3b57600080fd5b506104d160155481565b348015610a5157600080fd5b50610476610a60366004613742565b611d80565b6104d1611f14565b348015610a7957600080fd5b506104d1601a5481565b348015610a8f57600080fd5b5061042a610a9e36600461358e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610ad857600080fd5b506104d16101f481565b348015610aee57600080fd5b5061045f610afd366004613574565b612031565b348015610b0e57600080fd5b506104d167011c37937e08000081565b348015610b2a57600080fd5b5061045f61212d565b60006001600160e01b0319821663780e9d6360e01b1480610b585750610b588261216c565b92915050565b6018546001600160a01b03163314610b915760405162461bcd60e51b8152600401610b8890613919565b60405180910390fd5b60165462010000900460ff1615610bba5760405162461bcd60e51b8152600401610b889061384a565b60008111610bda5760405162461bcd60e51b8152600401610b8890613a06565b6000610bf3613a98610bed8460016121bc565b906121cf565b9050613bc48110610c355760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a590818d85c9960a21b6044820152606401610b88565b610c3e816121db565b15610c5b5760405162461bcd60e51b8152600401610b8890613899565b610c6583826121f8565b601354610c73826001613a86565b1115610c8857610c848160016121cf565b6013555b601c8054906000610c9883613af5565b9091555050601d8054906000610cad83613af5565b9091555050601e8054906000610cc283613af5565b9190505550610cd083612337565b50610cda83612337565b50610ce483612337565b50610cee83612337565b50505050565b606060008054610d0390613b0c565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2f90613b0c565b8015610d7c5780601f10610d5157610100808354040283529160200191610d7c565b820191906000526020600020905b815481529060010190602001808311610d5f57829003601f168201915b5050505050905090565b6000610d91826121db565b610df25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b88565b506000908152600460205260409020546001600160a01b031690565b6000610e19826113a8565b9050806001600160a01b0316836001600160a01b03161415610e875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b88565b336001600160a01b0382161480610ea35750610ea38133610a9e565b610f155760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b88565b610f1f83836123ad565b505050565b600d546001600160a01b03610100909104163314610f545760405162461bcd60e51b8152600401610b88906139d1565b610f5e828261241b565b5050565b60165460009062010000900460ff16610f8d5760405162461bcd60e51b8152600401610b889061399a565b610f96826121db565b610fd85760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88191bd95cdb89dd08195e1a5cdd606a1b6044820152606401610b88565b33610fe2836113a8565b6001600160a01b0316146110305760405162461bcd60e51b815260206004820152601560248201527429b2b73232b91036bab9ba1037bbb7103a37b5b2b760591b6044820152606401610b88565b613c008210158015611043575060115482105b6110865760405162461bcd60e51b8152602060048201526014602482015273546f6b656e206d7573742062652061207061636b60601b6044820152606401610b88565b6000601f546127106110989190613ab2565b905060006110a7336001612543565b905060006110b4336126be565b6040805184815260208101839052600181830152905191925084913391600080516020613bcf833981519152919081900360600190a36110f3856129e1565b949350505050565b6111053382612a21565b6111215760405162461bcd60e51b8152600401610b8890613a35565b610f1f838383612b07565b600061113783611846565b82106111995760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b88565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600d546001600160a01b036101009091041633146111f25760405162461bcd60e51b8152600401610b88906139d1565b6040514790339082156108fc029083906000818181858888f19350505050158015610f5e573d6000803e3d6000fd5b610f1f83838360405180602001604052806000815250611d4e565b600d546001600160a01b0361010090910416331461126c5760405162461bcd60e51b8152600401610b88906139d1565b600d5460ff16156112cf57601654610100900460ff16156112cf5760405162461bcd60e51b815260206004820152601a60248201527f44656661756c742055524920697320616c7265616479207365740000000000006044820152606401610b88565b80516112e290600c9060208401906133f9565b5060165462010000900460ff1615611304576016805461ff0019166101001790555b50565b600061131260085490565b82106113755760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b88565b6008828154811061139657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610b585760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b88565b6018546001600160a01b031633146114495760405162461bcd60e51b8152600401610b8890613919565b60165462010000900460ff16156114725760405162461bcd60e51b8152600401610b889061384a565b600081116114925760405162461bcd60e51b8152600401610b8890613a06565b61149b82612337565b50610f1f82612337565b60165460009062010000900460ff166114d05760405162461bcd60e51b8152600401610b889061399a565b611b58600e54106115235760405162461bcd60e51b815260206004820152601e60248201527f4e6f206d6f726520312d63617264207061636b7320617661696c61626c6500006044820152606401610b88565b67011c37937e080000341461154a5760405162461bcd60e51b8152600401610b8890613963565b6000601f5461271061155c9190613ab2565b9050600061156b336001612543565b90506000611578336126be565b600e8054919250600061158a83613b47565b9091555050604080518381526020810183905260019181019190915283903390600080516020613bcf833981519152906060015b60405180910390a39392505050565b601780546115da90613b0c565b80601f016020809104026020016040519081016040528092919081815260200182805461160690613b0c565b80156116535780601f1061162857610100808354040283529160200191611653565b820191906000526020600020905b81548152906001019060200180831161163657829003601f168201915b505050505081565b6018546001600160a01b031633146116855760405162461bcd60e51b8152600401610b8890613919565b60165462010000900460ff16156116ae5760405162461bcd60e51b8152600401610b889061384a565b600081116116ce5760405162461bcd60e51b8152600401610b8890613a06565b60006116e1613bc4610bed8460016121bc565b9050613c0081106117235760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a590818d85c9960a21b6044820152606401610b88565b61172c816121db565b156117495760405162461bcd60e51b8152600401610b8890613899565b61175383826121f8565b601454611761826001613a86565b1115611776576117728160016121cf565b6014555b601b805490600061178683613af5565b9091555050601c805490600061179b83613af5565b9091555050601d80549060006117b083613af5565b9091555050601e80549060006117c583613af5565b9091555050601a80549060006117da83613af5565b9091555050601b80549060006117ef83613af5565b9091555050601c805490600061180483613af5565b9091555050601d805490600061181983613af5565b9091555050601e805490600061182e83613af5565b919050555061183c83612337565b50610cd083612337565b60006001600160a01b0382166118b15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b88565b506001600160a01b031660009081526003602052604090205490565b600d546000906001600160a01b036101009091041633146119005760405162461bcd60e51b8152600401610b88906139d1565b6020546101aa906119129060016121cf565b11156119605760405162461bcd60e51b815260206004820152601a60248201527f43616e277420617761726420616e79206d6f7265207061636b730000000000006044820152606401610b88565b6020805490600061197083613b47565b9190505550610b5882612337565b919050565b600d546001600160a01b036101009091041633146119b35760405162461bcd60e51b8152600401610b88906139d1565b60165462010000900460ff16156119dc5760405162461bcd60e51b8152600401610b889061384a565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606060018054610d0390613b0c565b60165460009062010000900460ff16611a385760405162461bcd60e51b8152600401610b889061399a565b6101f460105410611a8b5760405162461bcd60e51b815260206004820152601e60248201527f4e6f206d6f726520352d63617264207061636b7320617661696c61626c6500006044820152606401610b88565b670494654067e100003414611ab25760405162461bcd60e51b8152600401610b8890613963565b6000601f54612710611ac49190613ab2565b90506000611ad3336005612543565b90506000611ae0336126be565b601080549192506000611af283613b47565b9091555050604080518381526020810183905260059181019190915283903390600080516020613bcf833981519152906060016115be565b600d546001600160a01b03610100909104163314611b5a5760405162461bcd60e51b8152600401610b88906139d1565b60165462010000900460ff1615611bb35760405162461bcd60e51b815260206004820152601f60248201527f436f6e747261637420697320616c726561647920696e697469616c697a6564006044820152606401610b88565b6016805462ff0000191662010000179055565b600d546001600160a01b03610100909104163314611bf65760405162461bcd60e51b8152600401610b88906139d1565b600d5460ff1615611c545760165460ff1615611c545760405162461bcd60e51b815260206004820152601760248201527f4d6574616461746120697320616c7265616479207365740000000000000000006044820152606401610b88565b8051611c679060179060208401906133f9565b5060165462010000900460ff1615611304576016805460ff1916600117905550565b6001600160a01b038216331415611ce25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b88565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611d583383612a21565b611d745760405162461bcd60e51b8152600401610b8890613a35565b610cee84848484612cb2565b6060611d8b826121db565b611df15760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610b88565b6000828152600a602052604081208054611e0a90613b0c565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3690613b0c565b8015611e835780601f10611e5857610100808354040283529160200191611e83565b820191906000526020600020905b815481529060010190602001808311611e6657829003601f168201915b505050505090506000611e94612ce5565b90506000611ea0612cf4565b9050815160001415611eb55750909392505050565b825115611ee8578183604051602001611ecf9291906137cb565b6040516020818303038152906040529350505050919050565b805115611f02578181604051602001611ecf9291906137cb565b611f0b85612d03565b95945050505050565b60165460009062010000900460ff16611f3f5760405162461bcd60e51b8152600401610b889061399a565b6105dc600f5410611f925760405162461bcd60e51b815260206004820152601e60248201527f4e6f206d6f726520332d63617264207061636b7320617661696c61626c6500006044820152606401610b88565b6702ea11e32ad500003414611fb95760405162461bcd60e51b8152600401610b8890613963565b6000601f54612710611fcb9190613ab2565b90506000611fda336003612543565b90506000611fe7336126be565b600f80549192506000611ff983613b47565b9091555050604080518381526020810183905260039181019190915283903390600080516020613bcf833981519152906060016115be565b600d546001600160a01b036101009091041633146120615760405162461bcd60e51b8152600401610b88906139d1565b6001600160a01b0381166120c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b88565b600d546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600d546001600160a01b0361010090910416331461215d5760405162461bcd60e51b8152600401610b88906139d1565b600d805460ff19166001179055565b60006001600160e01b031982166380ac58cd60e01b148061219d57506001600160e01b03198216635b5e139f60e01b145b80610b5857506301ffc9a760e01b6001600160e01b0319831614610b58565b60006121c88284613ab2565b9392505050565b60006121c88284613a86565b6000908152600260205260409020546001600160a01b0316151590565b6001600160a01b03821661224e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b88565b612257816121db565b156122a45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b88565b6122b060008383612dcd565b6001600160a01b03821660009081526003602052604081208054600192906122d9908490613a86565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060115461235260016015546121cf90919063ffffffff16565b111561236057506000919050565b61236b6015546121db565b156123885760405162461bcd60e51b8152600401610b8890613899565b612394826015546121f8565b6015546123a29060016121cf565b601555506001919050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123e2826113a8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612424826121db565b6124875760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610b88565b600d5460ff1615612524576000828152600b602052604090205460ff161561250a5760405162461bcd60e51b815260206004820152603060248201527f45524337323155524953746f726167653a2055524920616c726561647920736560448201526f3a103337b9103a3434b9903a37b5b2b760811b6064820152608401610b88565b6000828152600b60205260409020805460ff191660011790555b6000828152600a602090815260409091208251610f1f928401906133f9565b6000613a9861255d836012546121cf90919063ffffffff16565b11156125ab5760405162461bcd60e51b815260206004820181905260248201527f4e6f206d6f726520436f6e73756d657220636172647320617661696c61626c656044820152606401610b88565b600082116125fb5760405162461bcd60e51b815260206004820152601a60248201527f436f756e742063616e2774206265206c657373207468616e20310000000000006044820152606401610b88565b600582111561264c5760405162461bcd60e51b815260206004820152601c60248201527f436f756e742063616e277420626520626967676572207468616e2035000000006044820152606401610b88565b60125460005b838110156126b6576126656012546121db565b156126825760405162461bcd60e51b8152600401610b8890613899565b61268e856012546121f8565b6012805490600061269e83613b47565b919050555080806126ae90613b47565b915050612652565b509392505050565b600080601f54116127085760405162461bcd60e51b8152602060048201526014602482015273536f6d657468696e672077656e742077726f6e6760601b6044820152606401610b88565b601f546040516bffffffffffffffffffffffff19606085901b16602082015244603482015242605482015260748101829052600091906094016040516020818303038152906040528051906020012060001c6127649190613b62565b601f8054919250600061277683613af5565b9190505550601e54811061278d5750600092915050565b601d5481106127b457601e80549060006127a683613af5565b909155506001949350505050565b601c548110612803576127c683612337565b156127fe57601d80549060006127db83613af5565b9091555050601e80549060006127f083613af5565b909155506002949350505050565b6129d8565b601b5481106128625761281583612e85565b156127fe57601c805490600061282a83613af5565b9091555050601d805490600061283f83613af5565b9091555050601e805490600061285483613af5565b909155506003949350505050565b601a5481106128d65761287483612efb565b156127fe57601b805490600061288983613af5565b9091555050601c805490600061289e83613af5565b9091555050601d80549060006128b383613af5565b9091555050601e80549060006128c883613af5565b909155506004949350505050565b601954811061295157601a80549060006128ef83613af5565b9091555050601b805490600061290483613af5565b9091555050601c805490600061291983613af5565b9091555050601d805490600061292e83613af5565b9091555050601e805490600061294383613af5565b909155506005949350505050565b6019805490600061296183613af5565b9091555050601a805490600061297683613af5565b9091555050601b805490600061298b83613af5565b9091555050601c80549060006129a083613af5565b9091555050601d80549060006129b583613af5565b9091555050601e80549060006129ca83613af5565b909155506006949350505050565b50600092915050565b6129ea81612f71565b6000818152600a602052604090208054612a0390613b0c565b159050611304576000818152600a602052604081206113049161347d565b6000612a2c826121db565b612a8d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b88565b6000612a98836113a8565b9050806001600160a01b0316846001600160a01b03161480612ad35750836001600160a01b0316612ac884610d86565b6001600160a01b0316145b806110f357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166110f3565b826001600160a01b0316612b1a826113a8565b6001600160a01b031614612b825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b88565b6001600160a01b038216612be45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b88565b612bef838383612dcd565b612bfa6000826123ad565b6001600160a01b0383166000908152600360205260408120805460019290612c23908490613ab2565b90915550506001600160a01b0382166000908152600360205260408120805460019290612c51908490613a86565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612cbd848484612b07565b612cc984848484613018565b610cee5760405162461bcd60e51b8152600401610b88906138c7565b606060178054610d0390613b0c565b6060600c8054610d0390613b0c565b6060612d0e826121db565b612d725760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b88565b6000612d7c612ce5565b90506000815111612d9c57604051806020016040528060008152506121c8565b80612da684613125565b604051602001612db79291906137cb565b6040516020818303038152906040529392505050565b6001600160a01b038316612e2857612e2381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612e4b565b816001600160a01b0316836001600160a01b031614612e4b57612e4b838261323f565b6001600160a01b038216612e6257610f1f816132dc565b826001600160a01b0316826001600160a01b031614610f1f57610f1f82826133b5565b6000613bc4612ea060016013546121cf90919063ffffffff16565b1115612eae57506000919050565b612eb96013546121db565b15612ed65760405162461bcd60e51b8152600401610b8890613899565b612ee2826013546121f8565b601354612ef09060016121cf565b601355506001919050565b6000613c00612f1660016014546121cf90919063ffffffff16565b1115612f2457506000919050565b612f2f6014546121db565b15612f4c5760405162461bcd60e51b8152600401610b8890613899565b612f58826014546121f8565b601454612f669060016121cf565b601455506001919050565b6000612f7c826113a8565b9050612f8a81600084612dcd565b612f956000836123ad565b6001600160a01b0381166000908152600360205260408120805460019290612fbe908490613ab2565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561311a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061305c9033908990889088906004016137fa565b602060405180830381600087803b15801561307657600080fd5b505af19250505080156130a6575060408051601f3d908101601f191682019092526130a3918101906136f3565b60015b613100573d8080156130d4576040519150601f19603f3d011682016040523d82523d6000602084013e6130d9565b606091505b5080516130f85760405162461bcd60e51b8152600401610b88906138c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110f3565b506001949350505050565b6060816131495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613173578061315d81613b47565b915061316c9050600a83613a9e565b915061314d565b60008167ffffffffffffffff81111561319c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131c6576020820181803683370190505b5090505b84156110f3576131db600183613ab2565b91506131e8600a86613b62565b6131f3906030613a86565b60f81b81838151811061321657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613238600a86613a9e565b94506131ca565b6000600161324c84611846565b6132569190613ab2565b6000838152600760205260409020549091508082146132a9576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906132ee90600190613ab2565b6000838152600960205260408120546008805493945090928490811061332457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061335357634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061339957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006133c083611846565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461340590613b0c565b90600052602060002090601f016020900481019282613427576000855561346d565b82601f1061344057805160ff191683800117855561346d565b8280016001018555821561346d579182015b8281111561346d578251825591602001919060010190613452565b506134799291506134b3565b5090565b50805461348990613b0c565b6000825580601f10613499575050565b601f01602090049060005260206000209081019061130491905b5b8082111561347957600081556001016134b4565b600067ffffffffffffffff808411156134e3576134e3613ba2565b604051601f8501601f19908116603f0116810190828211818310171561350b5761350b613ba2565b8160405280935085815286868601111561352457600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461197e57600080fd5b600082601f830112613565578081fd5b6121c8838335602085016134c8565b600060208284031215613585578081fd5b6121c88261353e565b600080604083850312156135a0578081fd5b6135a98361353e565b91506135b76020840161353e565b90509250929050565b6000806000606084860312156135d4578081fd5b6135dd8461353e565b92506135eb6020850161353e565b9150604084013590509250925092565b60008060008060808587031215613610578081fd5b6136198561353e565b93506136276020860161353e565b925060408501359150606085013567ffffffffffffffff811115613649578182fd5b8501601f81018713613659578182fd5b613668878235602084016134c8565b91505092959194509250565b60008060408385031215613686578182fd5b61368f8361353e565b9150602083013580151581146136a3578182fd5b809150509250929050565b600080604083850312156136c0578182fd5b6136c98361353e565b946020939093013593505050565b6000602082840312156136e8578081fd5b81356121c881613bb8565b600060208284031215613704578081fd5b81516121c881613bb8565b600060208284031215613720578081fd5b813567ffffffffffffffff811115613736578182fd5b6110f384828501613555565b600060208284031215613753578081fd5b5035919050565b6000806040838503121561376c578182fd5b82359150602083013567ffffffffffffffff811115613789578182fd5b61379585828601613555565b9150509250929050565b600081518084526137b7816020860160208601613ac9565b601f01601f19169290920160200192915050565b600083516137dd818460208801613ac9565b8351908301906137f1818360208801613ac9565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061382d9083018461379f565b9695505050505050565b6020815260006121c8602083018461379f565b6020808252602f908201527f436f6e7472616374206d75737420626520756e696e697469616c697a6564206460408201526e3ab934b7339036b4b3b930ba34b7b760891b606082015260800190565b602080825260149082015273151bdad95b88185b1c9958591e481b5a5b9d195960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602a908201527f4f6e6c792064697362757273656d656e7420616464726573732063616e2074726040820152696967676572207468697360b01b606082015260800190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601b908201527f436f6e7472616374206973206e6f7420696e697469616c697a65640000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260159082015274125b99195e081b5d5cdd081899480c4b58985cd959605a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613a9957613a99613b76565b500190565b600082613aad57613aad613b8c565b500490565b600082821015613ac457613ac4613b76565b500390565b60005b83811015613ae4578181015183820152602001613acc565b83811115610cee5750506000910152565b600081613b0457613b04613b76565b506000190190565b600181811c90821680613b2057607f821691505b60208210811415613b4157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613b5b57613b5b613b76565b5060010190565b600082613b7157613b71613b8c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461130457600080fdfed56738f84f958900035b8ad1c480554bfbf92fd764d328bd1a137be8e9a946c5a2646970667358221220c6c6d349ac4470945d16368e629b9f7373b506be184591c132bbf7da2f4bc46564736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000b4d6173746572427265777300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d42524557530000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : __name (string): MasterBrews
Arg [1] : __symbol (string): MBREWS
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [3] : 4d61737465724272657773000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 4d42524557530000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
3933:15589:12:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;909:234:4;;;;;;;;;;-1:-1:-1;909:234:4;;;;;:::i;:::-;;:::i;:::-;;;6737:14:15;;6730:22;6712:41;;6700:2;6685:18;909:234:4;;;;;;;;9613:893:12;;;;;;;;;;-1:-1:-1;9613:893:12;;;;;:::i;:::-;;:::i;:::-;;2343:98:3;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3755:217::-;;;;;;;;;;-1:-1:-1;3755:217:3;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6035:32:15;;;6017:51;;6005:2;5990:18;3755:217:3;5972:102:15;5089:35:12;;;;;;;;;;;;;;;;;;;23142:25:15;;;23130:2;23115:18;5089:35:12;23097:76:15;5471:50:12;;;;;;;;;;;;5516:5;5471:50;;3306:388:3;;;;;;;;;;-1:-1:-1;3306:388:3;;;;;:::i;:::-;;:::i;5950:57:12:-;;;;;;;;;;-1:-1:-1;5950:57:12;;;;-1:-1:-1;;;;;5950:57:12;;;7151:56;;;;;;;;;;;;7204:3;7151:56;;5047:35;;;;;;;;;;;;;;;;8722:133;;;;;;;;;;-1:-1:-1;8722:133:12;;;;;:::i;:::-;;:::i;5675:46::-;;;;;;;;;;;;;;;;1546:111:4;;;;;;;;;;-1:-1:-1;1633:10:4;:17;1546:111;;6657:39:12;;;;;;;;;;;;;;;;12452:656;;;;;;;;;;-1:-1:-1;12452:656:12;;;;;:::i;:::-;;:::i;4655:46::-;;;;;;;;;;;;4697:4;4655:46;;6474:33;;;;;;;;;;;;;;;;4619:300:3;;;;;;;;;;-1:-1:-1;4619:300:3;;;;;:::i;:::-;;:::i;1222:253:4:-;;;;;;;;;;-1:-1:-1;1222:253:4;;;;;:::i;:::-;;:::i;4879:53:12:-;;;;;;;;;;;;4922:10;4879:53;;6803:32;;;;;;;;;;;;;;;;5779:33;;;;;;;;;;-1:-1:-1;5779:33:12;;;;;;;;19374:145;;;;;;;;;;;;;:::i;4985:149:3:-;;;;;;;;;;-1:-1:-1;4985:149:3;;;;;:::i;:::-;;:::i;8317:393:12:-;;;;;;;;;;-1:-1:-1;8317:393:12;;;;;:::i;:::-;;:::i;5623:45::-;;;;;;;;;;;;;;;;1729:230:4;;;;;;;;;;-1:-1:-1;1729:230:4;;;;;:::i;:::-;;:::i;6755:41:12:-;;;;;;;;;;;;6791:5;6755:41;;4708:46;;;;;;;;;;;;4750:4;4708:46;;6703:39;;;;;;;;;;;;;;;;4939:53;;;;;;;;;;;;4982:10;4939:53;;2046:235:3;;;;;;;;;;-1:-1:-1;2046:235:3;;;;;:::i;:::-;;:::i;5364:45:12:-;;;;;;;;;;;;5404:5;5364:45;;9236:365;;;;;;;;;;-1:-1:-1;9236:365:12;;;;;:::i;:::-;;:::i;17475:594::-;;;:::i;7214:39::-;;;;;;;;;;;;;;;;5911:26;;;;;;;;;;;;;:::i;10518:1224::-;;;;;;;;;;-1:-1:-1;10518:1224:12;;;;;:::i;:::-;;:::i;1784:205:3:-;;;;;;;;;;-1:-1:-1;1784:205:3;;;;;:::i;:::-;;:::i;5528:37:12:-;;;;;;;;;;;;;;;;5819:35;;;;;;;;;;-1:-1:-1;5819:35:12;;;;;;;;;;;6560:42;;;;;;;;;;;;;;;;13120:264;;;;;;;;;;-1:-1:-1;13120:264:12;;;;;:::i;:::-;;:::i;5578:38::-;;;;;;;;;;;;;;;;712:87;;;;;;;;;;-1:-1:-1;785:6:12;;;;;-1:-1:-1;;;;;785:6:12;712:87;;7529:255;;;;;;;;;;-1:-1:-1;7529:255:12;;;;;:::i;:::-;;:::i;2505:102:3:-;;;;;;;;;;;;;:::i;18687:594:12:-;;;:::i;9047:177::-;;;;;;;;;;;;;:::i;7936:369::-;;;;;;;;;;-1:-1:-1;7936:369:12;;;;;:::i;:::-;;:::i;4039:290:3:-;;;;;;;;;;-1:-1:-1;4039:290:3;;;;;:::i;:::-;;:::i;5861:41:12:-;;;;;;;;;;-1:-1:-1;5861:41:12;;;;;;;;;;;6609;;;;;;;;;;;;;;;;5137:43;;;;;;;;;;;;5179:1;5137:43;;4519:46;;;;;;;;;;;;4560:5;4519:46;;5200:282:3;;;;;;;;;;-1:-1:-1;5200:282:3;;;;;:::i;:::-;;:::i;5416:48:12:-;;;;;;;;;;;;5459:5;5416:48;;5005:35;;;;;;;;;;;;;;;;5728:42;;;;;;;;;;;;;;;;1863:971;;;;;;;;;;-1:-1:-1;1863:971:12;;;;;:::i;:::-;;:::i;18081:594::-;;;:::i;6514:39::-;;;;;;;;;;;;;;;;4395:162:3;;;;;;;;;;-1:-1:-1;4395:162:3;;;;;:::i;:::-;-1:-1:-1;;;;;4515:25:3;;;4492:4;4515:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4395:162;4761:45:12;;;;;;;;;;;;4803:3;4761:45;;1020:244;;;;;;;;;;-1:-1:-1;1020:244:12;;;;;:::i;:::-;;:::i;4819:53::-;;;;;;;;;;;;4862:10;4819:53;;8867:87;;;;;;;;;;;;;:::i;909:234:4:-;1011:4;-1:-1:-1;;;;;;1034:50:4;;-1:-1:-1;;;1034:50:4;;:102;;;1100:36;1124:11;1100:23;:36::i;:::-;1027:109;909:234;-1:-1:-1;;909:234:4:o;9613:893:12:-;6071:26;;-1:-1:-1;;;;;6071:26:12;6057:10;:40;6053:111;;6112:52;;-1:-1:-1;;;6112:52:12;;;;;;;:::i;:::-;;;;;;;;6053:111;9726:21:::1;::::0;;;::::1;;;:30;9718:90;;;;-1:-1:-1::0;;;9718:90:12::1;;;;;;;:::i;:::-;9833:1;9825:5;:9;9817:43;;;;-1:-1:-1::0;;;9817:43:12::1;;;;;;;:::i;:::-;9877:9;9889:36;5232:5;9889:12;:5:::0;9899:1:::1;9889:9;:12::i;:::-;:16:::0;::::1;:36::i;:::-;9877:48;;5459:5;9950:1;:20;9942:45;;;::::0;-1:-1:-1;;;9942:45:12;;8665:2:15;9942:45:12::1;::::0;::::1;8647:21:15::0;8704:2;8684:18;;;8677:30;-1:-1:-1;;;8723:18:15;;;8716:42;8775:18;;9942:45:12::1;8637:162:15::0;9942:45:12::1;10005:10;10013:1;10005:7;:10::i;:::-;10004:11;9996:44;;;;-1:-1:-1::0;;;9996:44:12::1;;;;;;;:::i;:::-;10049:16;10055:6;10063:1;10049:5;:16::i;:::-;10092:22;::::0;10086:3:::1;:1:::0;10088::::1;10086:3;:::i;:::-;:28;10082:88;;;10152:8;:1:::0;10158::::1;10152:5;:8::i;:::-;10127:22;:33:::0;10082:88:::1;10239:20;:22:::0;;;:20:::1;:22;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;10270:18:12::1;:20:::0;;;:18:::1;:20;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;10299:17:12::1;:19:::0;;;:17:::1;:19;::::0;::::1;:::i;:::-;;;;;;10379:23;10395:6;10379:15;:23::i;:::-;;10411;10427:6;10411:15;:23::i;:::-;;10443;10459:6;10443:15;:23::i;:::-;;10475;10491:6;10475:15;:23::i;:::-;;6175:1;9613:893:::0;;:::o;2343:98:3:-;2397:13;2429:5;2422:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2343:98;:::o;3755:217::-;3831:7;3858:16;3866:7;3858;:16::i;:::-;3850:73;;;;-1:-1:-1;;;3850:73:3;;17813:2:15;3850:73:3;;;17795:21:15;17852:2;17832:18;;;17825:30;17891:34;17871:18;;;17864:62;-1:-1:-1;;;17942:18:15;;;17935:42;17994:19;;3850:73:3;17785:234:15;3850:73:3;-1:-1:-1;3941:24:3;;;;:15;:24;;;;;;-1:-1:-1;;;;;3941:24:3;;3755:217::o;3306:388::-;3386:13;3402:23;3417:7;3402:14;:23::i;:::-;3386:39;;3449:5;-1:-1:-1;;;;;3443:11:3;:2;-1:-1:-1;;;;;3443:11:3;;;3435:57;;;;-1:-1:-1;;;3435:57:3;;20473:2:15;3435:57:3;;;20455:21:15;20512:2;20492:18;;;20485:30;20551:34;20531:18;;;20524:62;-1:-1:-1;;;20602:18:15;;;20595:31;20643:19;;3435:57:3;20445:223:15;3435:57:3;665:10:1;-1:-1:-1;;;;;3511:21:3;;;;:62;;-1:-1:-1;3536:37:3;3553:5;665:10:1;4395:162:3;:::i;3536:37::-;3503:152;;;;-1:-1:-1;;;3503:152:3;;14663:2:15;3503:152:3;;;14645:21:15;14702:2;14682:18;;;14675:30;14741:34;14721:18;;;14714:62;14812:26;14792:18;;;14785:54;14856:19;;3503:152:3;14635:246:15;3503:152:3;3666:21;3675:2;3679:7;3666:8;:21::i;:::-;3306:388;;;:::o;8722:133:12:-;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;8815:32:::1;8828:7;8837:9;8815:12;:32::i;:::-;8722:133:::0;;:::o;12452:656::-;12535:21;;12509:7;;12535:21;;;;;12527:61;;;;-1:-1:-1;;;12527:61:12;;;;;;;:::i;:::-;12605:16;12613:7;12605;:16::i;:::-;12597:48;;;;-1:-1:-1;;;12597:48:12;;7542:2:15;12597:48:12;;;7524:21:15;7581:2;7561:18;;;7554:30;-1:-1:-1;;;7600:18:15;;;7593:49;7659:18;;12597:48:12;7514:169:15;12597:48:12;12682:10;12662:16;12670:7;12662;:16::i;:::-;-1:-1:-1;;;;;12662:30:12;;12654:64;;;;-1:-1:-1;;;12654:64:12;;13544:2:15;12654:64:12;;;13526:21:15;13583:2;13563:18;;;13556:30;-1:-1:-1;;;13602:18:15;;;13595:51;13663:18;;12654:64:12;13516:171:15;12654:64:12;5346:5;12735:7;:27;;:55;;;;;12776:14;;12766:7;:24;12735:55;12727:88;;;;-1:-1:-1;;;12727:88:12;;16685:2:15;12727:88:12;;;16667:21:15;16724:2;16704:18;;;16697:30;-1:-1:-1;;;16743:18:15;;;16736:50;16803:18;;12727:88:12;16657:170:15;12727:88:12;12832:17;12864:9;;6791:5;12852:21;;;;:::i;:::-;12832:41;;12882:14;12899:32;12917:10;12929:1;12899:17;:32::i;:::-;12882:49;;12940:14;12957:24;12970:10;12957:12;:24::i;:::-;13003:52;;;23388:25:15;;;23444:2;23429:18;;23422:34;;;13053:1:12;23472:18:15;;;23465:34;13003:52:12;;23422:34:15;;-1:-1:-1;13026:9:12;;13014:10;;-1:-1:-1;;;;;;;;;;;13003:52:12;;;;;23376:2:15;13003:52:12;;;13064:14;13070:7;13064:5;:14::i;:::-;13094:6;12452:656;-1:-1:-1;;;;12452:656:12:o;4619:300:3:-;4778:41;665:10:1;4811:7:3;4778:18;:41::i;:::-;4770:103;;;;-1:-1:-1;;;4770:103:3;;;;;;;:::i;:::-;4884:28;4894:4;4900:2;4904:7;4884:9;:28::i;1222:253:4:-;1319:7;1354:23;1371:5;1354:16;:23::i;:::-;1346:5;:31;1338:87;;;;-1:-1:-1;;;1338:87:4;;9355:2:15;1338:87:4;;;9337:21:15;9394:2;9374:18;;;9367:30;9433:34;9413:18;;;9406:62;-1:-1:-1;;;9484:18:15;;;9477:41;9535:19;;1338:87:4;9327:233:15;1338:87:4;-1:-1:-1;;;;;;1442:19:4;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1222:253::o;19374:145:12:-;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;19474:37:::1;::::0;19442:21:::1;::::0;19482:10:::1;::::0;19474:37;::::1;;;::::0;19442:21;;19424:15:::1;19474:37:::0;19424:15;19474:37;19442:21;19482:10;19474:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;4985:149:3::0;5088:39;5105:4;5111:2;5115:7;5088:39;;;;;;;;;;;;:16;:39::i;8317:393:12:-;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;8394:14:::1;::::0;::::1;;8390:108;;;8431:15;::::0;::::1;::::0;::::1;;;:24;8423:63;;;::::0;-1:-1:-1;;;8423:63:12;;19763:2:15;8423:63:12::1;::::0;::::1;19745:21:15::0;19802:2;19782:18;;;19775:30;19841:28;19821:18;;;19814:56;19887:18;;8423:63:12::1;19735:176:15::0;8423:63:12::1;8508:25:::0;;::::1;::::0;:18:::1;::::0;:25:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;8633:21:12::1;::::0;;;::::1;;;8629:74;;;8669:15;:22:::0;;-1:-1:-1;;8669:22:12::1;;;::::0;;8629:74:::1;8317:393:::0;:::o;1729:230:4:-;1804:7;1839:30;1633:10;:17;;1546:111;1839:30;1831:5;:38;1823:95;;;;-1:-1:-1;;;1823:95:4;;22069:2:15;1823:95:4;;;22051:21:15;22108:2;22088:18;;;22081:30;22147:34;22127:18;;;22120:62;-1:-1:-1;;;22198:18:15;;;22191:42;22250:19;;1823:95:4;22041:234:15;1823:95:4;1935:10;1946:5;1935:17;;;;;;-1:-1:-1;;;1935:17:4;;;;;;;;;;;;;;;;;1928:24;;1729:230;;;:::o;2046:235:3:-;2118:7;2153:16;;;:7;:16;;;;;;-1:-1:-1;;;;;2153:16:3;2187:19;2179:73;;;;-1:-1:-1;;;2179:73:3;;15499:2:15;2179:73:3;;;15481:21:15;15538:2;15518:18;;;15511:30;15577:34;15557:18;;;15550:62;-1:-1:-1;;;15628:18:15;;;15621:39;15677:19;;2179:73:3;15471:231:15;9236:365:12;6071:26;;-1:-1:-1;;;;;6071:26:12;6057:10;:40;6053:111;;6112:52;;-1:-1:-1;;;6112:52:12;;;;;;;:::i;6053:111::-;9346:21:::1;::::0;;;::::1;;;:30;9338:90;;;;-1:-1:-1::0;;;9338:90:12::1;;;;;;;:::i;:::-;9453:1;9445:5;:9;9437:43;;;;-1:-1:-1::0;;;9437:43:12::1;;;;;;;:::i;:::-;9538:23;9554:6;9538:15;:23::i;:::-;;9570;9586:6;9570:15;:23::i;17475:594::-:0;17551:21;;17525:7;;17551:21;;;;;17543:61;;;;-1:-1:-1;;;17543:61:12;;;;;;;:::i;:::-;4697:4;17621:16;;:34;17613:77;;;;-1:-1:-1;;;17613:77:12;;21292:2:15;17613:77:12;;;21274:21:15;21331:2;21311:18;;;21304:30;21370:32;21350:18;;;21343:60;21420:18;;17613:77:12;21264:180:15;17613:77:12;4862:10;17707:9;:29;17699:73;;;;-1:-1:-1;;;17699:73:12;;;;;;;:::i;:::-;17789:17;17821:9;;6791:5;17809:21;;;;:::i;:::-;17789:41;;17839:14;17856:32;17874:10;17886:1;17856:17;:32::i;:::-;17839:49;;17897:14;17914:24;17927:10;17914:12;:24::i;:::-;17947:16;:18;;17897:41;;-1:-1:-1;17947:16:12;:18;;;:::i;:::-;;;;-1:-1:-1;;17987:52:12;;;23388:25:15;;;23444:2;23429:18;;23422:34;;;18037:1:12;23472:18:15;;;23465:34;;;;18010:9:12;;17998:10;;-1:-1:-1;;;;;;;;;;;17987:52:12;23376:2:15;23361:18;17987:52:12;;;;;;;;18055:6;17475:594;-1:-1:-1;;;17475:594:12:o;5911:26::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;10518:1224::-;6071:26;;-1:-1:-1;;;;;6071:26:12;6057:10;:40;6053:111;;6112:52;;-1:-1:-1;;;6112:52:12;;;;;;;:::i;6053:111::-;10632:21:::1;::::0;;;::::1;;;:30;10624:90;;;;-1:-1:-1::0;;;10624:90:12::1;;;;;;;:::i;:::-;10739:1;10731:5;:9;10723:43;;;;-1:-1:-1::0;;;10723:43:12::1;;;;;;;:::i;:::-;10783:9;10795:38;5291:5;10795:12;:5:::0;10805:1:::1;10795:9;:12::i;:38::-;10783:50;;5516:5;10858:1;:22;10850:47;;;::::0;-1:-1:-1;;;10850:47:12;;8665:2:15;10850:47:12::1;::::0;::::1;8647:21:15::0;8704:2;8684:18;;;8677:30;-1:-1:-1;;;8723:18:15;;;8716:42;8775:18;;10850:47:12::1;8637:162:15::0;10850:47:12::1;10915:10;10923:1;10915:7;:10::i;:::-;10914:11;10906:44;;;;-1:-1:-1::0;;;10906:44:12::1;;;;;;;:::i;:::-;10959:16;10965:6;10973:1;10959:5;:16::i;:::-;11002:23;::::0;10996:3:::1;:1:::0;10998::::1;10996:3;:::i;:::-;:29;10992:90;;;11064:8;:1:::0;11070::::1;11064:5;:8::i;:::-;11038:23;:34:::0;10992:90:::1;11153:22;:24:::0;;;:22:::1;:24;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11186:20:12::1;:22:::0;;;:20:::1;:22;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11217:18:12::1;:20:::0;;;:18:::1;:20;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11246:17:12::1;:19:::0;;;:17:::1;:19;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11378:19:12::1;:21:::0;;;:19:::1;:21;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11408:22:12::1;:24:::0;;;:22:::1;:24;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11441:20:12::1;:22:::0;;;:20:::1;:22;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11472:18:12::1;:20:::0;;;:18:::1;:20;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;11501:17:12::1;:19:::0;;;:17:::1;:19;::::0;::::1;:::i;:::-;;;;;;11583:23;11599:6;11583:15;:23::i;:::-;;11615;11631:6;11615:15;:23::i;1784:205:3:-:0;1856:7;-1:-1:-1;;;;;1883:19:3;;1875:74;;;;-1:-1:-1;;;1875:74:3;;15088:2:15;1875:74:3;;;15070:21:15;15127:2;15107:18;;;15100:30;15166:34;15146:18;;;15139:62;-1:-1:-1;;;15217:18:15;;;15210:40;15267:19;;1875:74:3;15060:232:15;1875:74:3;-1:-1:-1;;;;;;1966:16:3;;;;;:9;:16;;;;;;;1784:205::o;13120:264:12:-;785:6;;13187:4;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;13210:20:::1;::::0;7204:3:::1;::::0;13210:27:::1;::::0;13235:1:::1;13210:24;:27::i;:::-;:57;;13202:96;;;::::0;-1:-1:-1;;;13202:96:12;;20118:2:15;13202:96:12::1;::::0;::::1;20100:21:15::0;20157:2;20137:18;;;20130:30;20196:28;20176:18;;;20169:56;20242:18;;13202:96:12::1;20090:176:15::0;13202:96:12::1;13315:20;:22:::0;;;:20:::1;:22;::::0;::::1;:::i;:::-;;;;;;13353:23;13369:6;13353:15;:23::i;1003:1::-;13120:264:::0;;;:::o;7529:255::-;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;7628:21:::1;::::0;;;::::1;;;:30;7620:90;;;;-1:-1:-1::0;;;7620:90:12::1;;;;;;;:::i;:::-;7727:26;:49:::0;;-1:-1:-1;;;;;;7727:49:12::1;-1:-1:-1::0;;;;;7727:49:12;;;::::1;::::0;;;::::1;::::0;;7529:255::o;2505:102:3:-;2561:13;2593:7;2586:14;;;;;:::i;18687:594:12:-;18763:21;;18737:7;;18763:21;;;;;18755:61;;;;-1:-1:-1;;;18755:61:12;;;;;;;:::i;:::-;4803:3;18833:16;;:34;18825:77;;;;-1:-1:-1;;;18825:77:12;;8306:2:15;18825:77:12;;;8288:21:15;8345:2;8325:18;;;8318:30;8384:32;8364:18;;;8357:60;8434:18;;18825:77:12;8278:180:15;18825:77:12;4982:10;18919:9;:29;18911:73;;;;-1:-1:-1;;;18911:73:12;;;;;;;:::i;:::-;19001:17;19033:9;;6791:5;19021:21;;;;:::i;:::-;19001:41;;19051:14;19068:32;19086:10;19098:1;19068:17;:32::i;:::-;19051:49;;19109:14;19126:24;19139:10;19126:12;:24::i;:::-;19159:16;:18;;19109:41;;-1:-1:-1;19159:16:12;:18;;;:::i;:::-;;;;-1:-1:-1;;19199:52:12;;;23388:25:15;;;23444:2;23429:18;;23422:34;;;19249:1:12;23472:18:15;;;23465:34;;;;19222:9:12;;19210:10;;-1:-1:-1;;;;;;;;;;;19199:52:12;23376:2:15;23361:18;19199:52:12;23343:162:15;9047:177:12;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;9113:21:::1;::::0;;;::::1;;;:30;9105:74;;;::::0;-1:-1:-1;;;9105:74:12;;13184:2:15;9105:74:12::1;::::0;::::1;13166:21:15::0;13223:2;13203:18;;;13196:30;13262:33;13242:18;;;13235:61;13313:18;;9105:74:12::1;13156:181:15::0;9105:74:12::1;9188:21;:28:::0;;-1:-1:-1;;9188:28:12::1;::::0;::::1;::::0;;9047:177::o;7936:369::-;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;8010:14:::1;::::0;::::1;;8006:103;;;8047:13;::::0;::::1;;:22;8039:58;;;::::0;-1:-1:-1;;;8039:58:12;;7190:2:15;8039:58:12::1;::::0;::::1;7172:21:15::0;7229:2;7209:18;;;7202:30;7268:25;7248:18;;;7241:53;7311:18;;8039:58:12::1;7162:173:15::0;8039:58:12::1;8119:14:::0;;::::1;::::0;:7:::1;::::0;:14:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;8230:21:12::1;::::0;;;::::1;;;8226:72;;;8266:13;:20:::0;;-1:-1:-1;;8266:20:12::1;8282:4;8266:20;::::0;;7936:369;:::o;4039:290:3:-;-1:-1:-1;;;;;4141:24:3;;665:10:1;4141:24:3;;4133:62;;;;-1:-1:-1;;;4133:62:3;;12470:2:15;4133:62:3;;;12452:21:15;12509:2;12489:18;;;12482:30;12548:27;12528:18;;;12521:55;12593:18;;4133:62:3;12442:175:15;4133:62:3;665:10:1;4206:32:3;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;4206:42:3;;;;;;;;;;;;:53;;-1:-1:-1;;4206:53:3;;;;;;;;;;4274:48;;6712:41:15;;;4206:42:3;;665:10:1;4274:48:3;;6685:18:15;4274:48:3;;;;;;;4039:290;;:::o;5200:282::-;5331:41;665:10:1;5364:7:3;5331:18;:41::i;:::-;5323:103;;;;-1:-1:-1;;;5323:103:3;;;;;;;:::i;:::-;5436:39;5450:4;5456:2;5460:7;5469:5;5436:13;:39::i;1863:971:12:-;1936:13;1970:16;1978:7;1970;:16::i;:::-;1962:78;;;;-1:-1:-1;;;1962:78:12;;17395:2:15;1962:78:12;;;17377:21:15;17434:2;17414:18;;;17407:30;17473:34;17453:18;;;17446:62;-1:-1:-1;;;17524:18:15;;;17517:47;17581:19;;1962:78:12;17367:239:15;1962:78:12;2053:23;2079:19;;;:10;:19;;;;;2053:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2109:18;2130:10;:8;:10::i;:::-;2109:31;;2151:24;2178:13;:11;:13::i;:::-;2151:40;;2273:4;2267:18;2289:1;2267:23;2263:72;;;-1:-1:-1;2314:9:12;;1863:971;-1:-1:-1;;;1863:971:12:o;2263:72::-;2439:23;;:27;2435:108;;2514:4;2520:9;2497:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2483:48;;;;;1863:971;;;:::o;2435:108::-;2678:24;;:28;2674:110;;2754:4;2760:10;2737:34;;;;;;;;;:::i;2674:110::-;2803:23;2818:7;2803:14;:23::i;:::-;2796:30;1863:971;-1:-1:-1;;;;;1863:971:12:o;18081:594::-;18157:21;;18131:7;;18157:21;;;;;18149:61;;;;-1:-1:-1;;;18149:61:12;;;;;;;:::i;:::-;4750:4;18227:16;;:34;18219:77;;;;-1:-1:-1;;;18219:77:12;;22482:2:15;18219:77:12;;;22464:21:15;22521:2;22501:18;;;22494:30;22560:32;22540:18;;;22533:60;22610:18;;18219:77:12;22454:180:15;18219:77:12;4922:10;18313:9;:29;18305:73;;;;-1:-1:-1;;;18305:73:12;;;;;;;:::i;:::-;18395:17;18427:9;;6791:5;18415:21;;;;:::i;:::-;18395:41;;18445:14;18462:32;18480:10;18492:1;18462:17;:32::i;:::-;18445:49;;18503:14;18520:24;18533:10;18520:12;:24::i;:::-;18553:16;:18;;18503:41;;-1:-1:-1;18553:16:12;:18;;;:::i;:::-;;;;-1:-1:-1;;18593:52:12;;;23388:25:15;;;23444:2;23429:18;;23422:34;;;18643:1:12;23472:18:15;;;23465:34;;;;18616:9:12;;18604:10;;-1:-1:-1;;;;;;;;;;;18593:52:12;23376:2:15;23361:18;18593:52:12;23343:162:15;1020:244:12;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;-1:-1:-1;;;;;1109:22:12;::::1;1101:73;;;::::0;-1:-1:-1;;;1101:73:12;;10186:2:15;1101:73:12::1;::::0;::::1;10168:21:15::0;10225:2;10205:18;;;10198:30;10264:34;10244:18;;;10237:62;-1:-1:-1;;;10315:18:15;;;10308:36;10361:19;;1101:73:12::1;10158:228:15::0;1101:73:12::1;1211:6;::::0;1190:38:::1;::::0;-1:-1:-1;;;;;1190:38:12;;::::1;::::0;1211:6:::1;::::0;::::1;;::::0;1190:38:::1;::::0;;;::::1;1239:6;:17:::0;;-1:-1:-1;;;;;1239:17:12;;::::1;;;-1:-1:-1::0;;;;;;1239:17:12;;::::1;::::0;;;::::1;::::0;;1020:244::o;8867:87::-;785:6;;-1:-1:-1;;;;;785:6:12;;;;;665:10:1;932:23:12;924:68;;;;-1:-1:-1;;;924:68:12;;;;;;;:::i;:::-;8925:14:::1;:21:::0;;-1:-1:-1;;8925:21:12::1;8942:4;8925:21;::::0;;8867:87::o;1437:288:3:-;1539:4;-1:-1:-1;;;;;;1562:40:3;;-1:-1:-1;;;1562:40:3;;:104;;-1:-1:-1;;;;;;;1618:48:3;;-1:-1:-1;;;1618:48:3;1562:104;:156;;;-1:-1:-1;;;;;;;;;;871:40:2;;;1682:36:3;763:155:2;3039:96:13;3097:7;3123:5;3127:1;3123;:5;:::i;:::-;3116:12;3039:96;-1:-1:-1;;;3039:96:13:o;2672:::-;2730:7;2756:5;2760:1;2756;:5;:::i;6916:125:3:-;6981:4;7004:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7004:16:3;:30;;;6916:125::o;8771:372::-;-1:-1:-1;;;;;8850:16:3;;8842:61;;;;-1:-1:-1;;;8842:61:3;;17034:2:15;8842:61:3;;;17016:21:15;;;17053:18;;;17046:30;17112:34;17092:18;;;17085:62;17164:18;;8842:61:3;17006:182:15;8842:61:3;8922:16;8930:7;8922;:16::i;:::-;8921:17;8913:58;;;;-1:-1:-1;;;8913:58:3;;10593:2:15;8913:58:3;;;10575:21:15;10632:2;10612:18;;;10605:30;10671;10651:18;;;10644:58;10719:18;;8913:58:3;10565:178:15;8913:58:3;8982:45;9011:1;9015:2;9019:7;8982:20;:45::i;:::-;-1:-1:-1;;;;;9038:13:3;;;;;;:9;:13;;;;;:18;;9055:1;;9038:13;:18;;9055:1;;9038:18;:::i;:::-;;;;-1:-1:-1;;9066:16:3;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9066:21:3;-1:-1:-1;;;;;9066:21:3;;;;;;;;9103:33;;9066:16;;;9103:33;;9066:16;;9103:33;8771:372;;:::o;13396:600:12:-;13454:4;13726:14;;13697:26;13721:1;13697:19;;:23;;:26;;;;:::i;:::-;:43;13693:83;;;-1:-1:-1;13761:5:12;;13396:600;-1:-1:-1;13396:600:12:o;13693:83::-;13799:28;13807:19;;13799:7;:28::i;:::-;13798:29;13790:62;;;;-1:-1:-1;;;13790:62:12;;;;;;;:::i;:::-;13869:34;13875:6;13883:19;;13869:5;:34::i;:::-;13934:19;;:26;;13958:1;13934:23;:26::i;:::-;13912:19;:48;-1:-1:-1;13984:4:12;;13396:600;-1:-1:-1;13396:600:12:o;10673:171:3:-;10747:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;10747:29:3;-1:-1:-1;;;;;10747:29:3;;;;;;;;:24;;10800:23;10747:24;10800:14;:23::i;:::-;-1:-1:-1;;;;;10791:46:3;;;;;;;;;;;10673:171;;:::o;2990:501:12:-;3090:16;3098:7;3090;:16::i;:::-;3082:75;;;;-1:-1:-1;;;3082:75:12;;15909:2:15;3082:75:12;;;15891:21:15;15948:2;15928:18;;;15921:30;15987:34;15967:18;;;15960:62;-1:-1:-1;;;16038:18:15;;;16031:44;16092:19;;3082:75:12;15881:236:15;3082:75:12;3259:14;;;;3255:177;;;3296:21;;;;:12;:21;;;;;;;;:30;3288:91;;;;-1:-1:-1;;;3288:91:12;;20875:2:15;3288:91:12;;;20857:21:15;20914:2;20894:18;;;20887:30;20953:34;20933:18;;;20926:62;-1:-1:-1;;;21004:18:15;;;20997:46;21060:19;;3288:91:12;20847:238:15;3288:91:12;3392:21;;;;:12;:21;;;;;:28;;-1:-1:-1;;3392:28:12;3416:4;3392:28;;;3255:177;3452:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;11825:615::-;11900:7;5404:5;11926:30;11950:5;11926:19;;:23;;:30;;;;:::i;:::-;:47;;11918:92;;;;-1:-1:-1;;;11918:92:12;;16324:2:15;11918:92:12;;;16306:21:15;;;16343:18;;;16336:30;16402:34;16382:18;;;16375:62;16454:18;;11918:92:12;16296:182:15;11918:92:12;12035:1;12027:5;:9;12019:48;;;;-1:-1:-1;;;12019:48:12;;11361:2:15;12019:48:12;;;11343:21:15;11400:2;11380:18;;;11373:30;11439:28;11419:18;;;11412:56;11485:18;;12019:48:12;11333:176:15;12019:48:12;12093:1;12084:5;:10;;12076:51;;;;-1:-1:-1;;;12076:51:12;;22841:2:15;12076:51:12;;;22823:21:15;22880:2;22860:18;;;22853:30;22919;22899:18;;;22892:58;22967:18;;12076:51:12;22813:178:15;12076:51:12;12166:19;;12144;12202:196;12226:5;12222:1;:9;12202:196;;;12258:28;12266:19;;12258:7;:28::i;:::-;12257:29;12249:62;;;;-1:-1:-1;;;12249:62:12;;;;;;;:::i;:::-;12322:34;12328:6;12336:19;;12322:5;:34::i;:::-;12367:19;:21;;;:19;:21;;;:::i;:::-;;;;;;12233:3;;;;;:::i;:::-;;;;12202:196;;;-1:-1:-1;12421:11:12;11825:615;-1:-1:-1;;;11825:615:12:o;15431:2032::-;15486:7;15524:1;15512:9;;:13;15504:46;;;;-1:-1:-1;;;15504:46:12;;11716:2:15;15504:46:12;;;11698:21:15;11755:2;11735:18;;;11728:30;-1:-1:-1;;;11774:18:15;;;11767:50;11834:18;;15504:46:12;11688:170:15;15504:46:12;15736:9;;15661:70;;-1:-1:-1;;5199:2:15;5195:15;;;5191:53;15661:70:12;;;5179:66:15;15686:16:12;5261:12:15;;;5254:28;15704:15:12;5298:12:15;;;5291:28;5335:12;;;5328:28;;;15630:9:12;;15736;5372:13:15;;15661:70:12;;;;;;;;;;;;15651:81;;;;;;15643:90;;:102;;;;:::i;:::-;15755:9;:11;;15630:116;;-1:-1:-1;15755:9:12;:11;;;:::i;:::-;;;;;;15790:17;;15785:1;:22;15781:82;;-1:-1:-1;15852:1:12;;15431:2032;-1:-1:-1;;15431:2032:12:o;15781:82::-;15933:18;;15928:1;:23;15924:1434;;16011:17;:19;;;:17;:19;;;:::i;:::-;;;;-1:-1:-1;16048:1:12;;15431:2032;-1:-1:-1;;;;15431:2032:12:o;15924:1434::-;16074:20;;16069:1;:25;16065:1293;;16145:23;16161:6;16145:15;:23::i;:::-;16141:127;;;16183:18;:20;;;:18;:20;;;:::i;:::-;;;;-1:-1:-1;;16216:17:12;:19;;;:17;:19;;;:::i;:::-;;;;-1:-1:-1;16255:1:12;;15431:2032;-1:-1:-1;;;;15431:2032:12:o;16141:127::-;16065:1293;;;16292:22;;16287:1;:27;16283:1075;;16360:30;16383:6;16360:22;:30::i;:::-;16356:169;;;16405:20;:22;;;:20;:22;;;:::i;:::-;;;;-1:-1:-1;;16440:18:12;:20;;;:18;:20;;;:::i;:::-;;;;-1:-1:-1;;16473:17:12;:19;;;:17;:19;;;:::i;:::-;;;;-1:-1:-1;16512:1:12;;15431:2032;-1:-1:-1;;;;15431:2032:12:o;16283:1075::-;16549:19;;16544:1;:24;16540:818;;16616:31;16640:6;16616:23;:31::i;:::-;16612:207;;;16662:22;:24;;;:22;:24;;;:::i;:::-;;;;-1:-1:-1;;16699:20:12;:22;;;:20;:22;;;:::i;:::-;;;;-1:-1:-1;;16734:18:12;:20;;;:18;:20;;;:::i;:::-;;;;-1:-1:-1;;16767:17:12;:19;;;:17;:19;;;:::i;:::-;;;;-1:-1:-1;16806:1:12;;15431:2032;-1:-1:-1;;;;15431:2032:12:o;16540:818::-;16843:14;;16838:1;:19;16834:524;;16915:19;:21;;;:19;:21;;;:::i;:::-;;;;-1:-1:-1;;16947:22:12;:24;;;:22;:24;;;:::i;:::-;;;;-1:-1:-1;;16982:20:12;:22;;;:20;:22;;;:::i;:::-;;;;-1:-1:-1;;17015:18:12;:20;;;:18;:20;;;:::i;:::-;;;;-1:-1:-1;;17046:17:12;:19;;;:17;:19;;;:::i;:::-;;;;-1:-1:-1;17083:1:12;;15431:2032;-1:-1:-1;;;;15431:2032:12:o;16834:524::-;17152:14;:16;;;:14;:16;;;:::i;:::-;;;;-1:-1:-1;;17179:19:12;:21;;;:19;:21;;;:::i;:::-;;;;-1:-1:-1;;17211:22:12;:24;;;:22;:24;;;:::i;:::-;;;;-1:-1:-1;;17246:20:12;:22;;;:20;:22;;;:::i;:::-;;;;-1:-1:-1;;17279:18:12;:20;;;:18;:20;;;:::i;:::-;;;;-1:-1:-1;;17310:17:12;:19;;;:17;:19;;;:::i;:::-;;;;-1:-1:-1;17347:1:12;;15431:2032;-1:-1:-1;;;;15431:2032:12:o;16834:524::-;-1:-1:-1;17454:1:12;;15431:2032;-1:-1:-1;;15431:2032:12:o;3720:206::-;3789:20;3801:7;3789:11;:20::i;:::-;3832:19;;;;:10;:19;;;;;3826:33;;;;;:::i;:::-;:38;;-1:-1:-1;3822:97:12;;3888:19;;;;:10;:19;;;;;3881:26;;;:::i;7199:344:3:-;7292:4;7316:16;7324:7;7316;:16::i;:::-;7308:73;;;;-1:-1:-1;;;7308:73:3;;13894:2:15;7308:73:3;;;13876:21:15;13933:2;13913:18;;;13906:30;13972:34;13952:18;;;13945:62;-1:-1:-1;;;14023:18:15;;;14016:42;14075:19;;7308:73:3;13866:234:15;7308:73:3;7391:13;7407:23;7422:7;7407:14;:23::i;:::-;7391:39;;7459:5;-1:-1:-1;;;;;7448:16:3;:7;-1:-1:-1;;;;;7448:16:3;;:51;;;;7492:7;-1:-1:-1;;;;;7468:31:3;:20;7480:7;7468:11;:20::i;:::-;-1:-1:-1;;;;;7468:31:3;;7448:51;:87;;;-1:-1:-1;;;;;;4515:25:3;;;4492:4;4515:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;7503:32;4395:162;10032:530;10156:4;-1:-1:-1;;;;;10129:31:3;:23;10144:7;10129:14;:23::i;:::-;-1:-1:-1;;;;;10129:31:3;;10121:85;;;;-1:-1:-1;;;10121:85:3;;18937:2:15;10121:85:3;;;18919:21:15;18976:2;18956:18;;;18949:30;19015:34;18995:18;;;18988:62;-1:-1:-1;;;19066:18:15;;;19059:39;19115:19;;10121:85:3;18909:231:15;10121:85:3;-1:-1:-1;;;;;10224:16:3;;10216:65;;;;-1:-1:-1;;;10216:65:3;;12065:2:15;10216:65:3;;;12047:21:15;12104:2;12084:18;;;12077:30;12143:34;12123:18;;;12116:62;-1:-1:-1;;;12194:18:15;;;12187:34;12238:19;;10216:65:3;12037:226:15;10216:65:3;10292:39;10313:4;10319:2;10323:7;10292:20;:39::i;:::-;10393:29;10410:1;10414:7;10393:8;:29::i;:::-;-1:-1:-1;;;;;10433:15:3;;;;;;:9;:15;;;;;:20;;10452:1;;10433:15;:20;;10452:1;;10433:20;:::i;:::-;;;;-1:-1:-1;;;;;;;10463:13:3;;;;;;:9;:13;;;;;:18;;10480:1;;10463:13;:18;;10480:1;;10463:18;:::i;:::-;;;;-1:-1:-1;;10491:16:3;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;10491:21:3;-1:-1:-1;;;;;10491:21:3;;;;;;;;;10528:27;;10491:16;;10528:27;;;;;;;10032:530;;;:::o;6344:269::-;6457:28;6467:4;6473:2;6477:7;6457:9;:28::i;:::-;6503:48;6526:4;6532:2;6536:7;6545:5;6503:22;:48::i;:::-;6495:111;;;;-1:-1:-1;;;6495:111:3;;;;;;;:::i;7824:100:12:-;7876:13;7909:7;7902:14;;;;;:::i;1679:113::-;1733:13;1766:18;1759:25;;;;;:::i;2673:353:3:-;2746:13;2779:16;2787:7;2779;:16::i;:::-;2771:76;;;;-1:-1:-1;;;2771:76:3;;19347:2:15;2771:76:3;;;19329:21:15;19386:2;19366:18;;;19359:30;19425:34;19405:18;;;19398:62;-1:-1:-1;;;19476:18:15;;;19469:45;19531:19;;2771:76:3;19319:237:15;2771:76:3;2858:21;2882:10;:8;:10::i;:::-;2858:34;;2933:1;2915:7;2909:21;:25;:110;;;;;;;;;;;;;;;;;2973:7;2982:18;:7;:16;:18::i;:::-;2956:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2902:117;2673:353;-1:-1:-1;;;2673:353:3:o;2555:542:4:-;-1:-1:-1;;;;;2724:18:4;;2720:183;;2758:40;2790:7;3906:10;:17;;3879:24;;;;:15;:24;;;;;:44;;;3933:24;;;;;;;;;;;;3803:161;2758:40;2720:183;;;2827:2;-1:-1:-1;;;;;2819:10:4;:4;-1:-1:-1;;;;;2819:10:4;;2815:88;;2845:47;2878:4;2884:7;2845:32;:47::i;:::-;-1:-1:-1;;;;;2916:16:4;;2912:179;;2948:45;2985:7;2948:36;:45::i;2912:179::-;3020:4;-1:-1:-1;;;;;3014:10:4;:2;-1:-1:-1;;;;;3014:10:4;;3010:81;;3040:40;3068:2;3072:7;3040:27;:40::i;14008:624:12:-;14073:4;5459:5;14316:29;14343:1;14316:22;;:26;;:29;;;;:::i;:::-;:48;14312:88;;;-1:-1:-1;14385:5:12;;14008:624;-1:-1:-1;14008:624:12:o;14312:88::-;14423:31;14431:22;;14423:7;:31::i;:::-;14422:32;14414:65;;;;-1:-1:-1;;;14414:65:12;;;;;;;:::i;:::-;14496:37;14502:6;14510:22;;14496:5;:37::i;:::-;14567:22;;:29;;14594:1;14567:26;:29::i;:::-;14542:22;:54;-1:-1:-1;14620:4:12;;14008:624;-1:-1:-1;14008:624:12:o;14644:632::-;14710:4;5516:5;14953:30;14981:1;14953:23;;:27;;:30;;;;:::i;:::-;:51;14949:91;;;-1:-1:-1;15025:5:12;;14644:632;-1:-1:-1;14644:632:12:o;14949:91::-;15063:32;15071:23;;15063:7;:32::i;:::-;15062:33;15054:66;;;;-1:-1:-1;;;15054:66:12;;;;;;;:::i;:::-;15137:38;15143:6;15151:23;;15137:5;:38::i;:::-;15210:23;;:30;;15238:1;15210:27;:30::i;:::-;15184:23;:56;-1:-1:-1;15264:4:12;;14644:632;-1:-1:-1;14644:632:12:o;9360:348:3:-;9419:13;9435:23;9450:7;9435:14;:23::i;:::-;9419:39;;9469:48;9490:5;9505:1;9509:7;9469:20;:48::i;:::-;9555:29;9572:1;9576:7;9555:8;:29::i;:::-;-1:-1:-1;;;;;9595:16:3;;;;;;:9;:16;;;;;:21;;9615:1;;9595:16;:21;;9615:1;;9595:21;:::i;:::-;;;;-1:-1:-1;;9633:16:3;;;;:7;:16;;;;;;9626:23;;-1:-1:-1;;;;;;9626:23:3;;;9665:36;9641:7;;9633:16;-1:-1:-1;;;;;9665:36:3;;;;;9633:16;;9665:36;9360:348;;:::o;11397:824::-;11517:4;-1:-1:-1;;;;;11541:13:3;;1078:20:0;1116:8;11537:678:3;;11576:72;;-1:-1:-1;;;11576:72:3;;-1:-1:-1;;;;;11576:36:3;;;;;:72;;665:10:1;;11627:4:3;;11633:7;;11642:5;;11576:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11576:72:3;;;;;;;;-1:-1:-1;;11576:72:3;;;;;;;;;;;;:::i;:::-;;;11572:591;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11819:13:3;;11815:334;;11861:60;;-1:-1:-1;;;11861:60:3;;;;;;;:::i;11815:334::-;12101:6;12095:13;12086:6;12082:2;12078:15;12071:38;11572:591;-1:-1:-1;;;;;;11698:55:3;-1:-1:-1;;;11698:55:3;;-1:-1:-1;11691:62:3;;11537:678;-1:-1:-1;12200:4:3;11397:824;;;;;;:::o;271:703:14:-;327:13;544:10;540:51;;-1:-1:-1;;570:10:14;;;;;;;;;;;;-1:-1:-1;;;570:10:14;;;;;271:703::o;540:51::-;615:5;600:12;654:75;661:9;;654:75;;686:8;;;;:::i;:::-;;-1:-1:-1;708:10:14;;-1:-1:-1;716:2:14;708:10;;:::i;:::-;;;654:75;;;738:19;770:6;760:17;;;;;;-1:-1:-1;;;760:17:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;760:17:14;;738:39;;787:150;794:10;;787:150;;820:11;830:1;820:11;;:::i;:::-;;-1:-1:-1;888:10:14;896:2;888:5;:10;:::i;:::-;875:24;;:2;:24;:::i;:::-;862:39;;845:6;852;845:14;;;;;;-1:-1:-1;;;845:14:14;;;;;;;;;;;;:56;-1:-1:-1;;;;;845:56:14;;;;;;;;-1:-1:-1;915:11:14;924:2;915:11;;:::i;:::-;;;787:150;;4581:970:4;4843:22;4893:1;4868:22;4885:4;4868:16;:22::i;:::-;:26;;;;:::i;:::-;4904:18;4925:26;;;:17;:26;;;;;;4843:51;;-1:-1:-1;5055:28:4;;;5051:323;;-1:-1:-1;;;;;5121:18:4;;5099:19;5121:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5170:30;;;;;;:44;;;5286:30;;:17;:30;;;;;:43;;;5051:323;-1:-1:-1;5467:26:4;;;;:17;:26;;;;;;;;5460:33;;;-1:-1:-1;;;;;5510:18:4;;;;;:12;:18;;;;;:34;;;;;;;5503:41;4581:970::o;5839:1061::-;6113:10;:17;6088:22;;6113:21;;6133:1;;6113:21;:::i;:::-;6144:18;6165:24;;;:15;:24;;;;;;6533:10;:26;;6088:46;;-1:-1:-1;6165:24:4;;6088:46;;6533:26;;;;-1:-1:-1;;;6533:26:4;;;;;;;;;;;;;;;;;6511:48;;6595:11;6570:10;6581;6570:22;;;;;;-1:-1:-1;;;6570:22:4;;;;;;;;;;;;;;;;;;;;:36;;;;6674:28;;;:15;:28;;;;;;;:41;;;6843:24;;;;;6836:31;6877:10;:16;;;;;-1:-1:-1;;;6877:16:4;;;;;;;;;;;;;;;;;;;;;;;;;;5839:1061;;;;:::o;3391:217::-;3475:14;3492:20;3509:2;3492:16;:20::i;:::-;-1:-1:-1;;;;;3522:16:4;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3566:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3391:217:4:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:15;78:5;108:18;149:2;141:6;138:14;135:2;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:15;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:2;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:2;;;532:1;529;522:12;491:2;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;88:557;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:15;;757:42;;747:2;;813:1;810;803:12;828:229;871:5;924:3;917:4;909:6;905:17;901:27;891:2;;946:5;939;932:20;891:2;972:79;1047:3;1038:6;1025:20;1018:4;1010:6;1006:17;972:79;:::i;1062:196::-;1121:6;1174:2;1162:9;1153:7;1149:23;1145:32;1142:2;;;1195:6;1187;1180:22;1142:2;1223:29;1242:9;1223:29;:::i;1263:270::-;1331:6;1339;1392:2;1380:9;1371:7;1367:23;1363:32;1360:2;;;1413:6;1405;1398:22;1360:2;1441:29;1460:9;1441:29;:::i;:::-;1431:39;;1489:38;1523:2;1512:9;1508:18;1489:38;:::i;:::-;1479:48;;1350:183;;;;;:::o;1538:338::-;1615:6;1623;1631;1684:2;1672:9;1663:7;1659:23;1655:32;1652:2;;;1705:6;1697;1690:22;1652:2;1733:29;1752:9;1733:29;:::i;:::-;1723:39;;1781:38;1815:2;1804:9;1800:18;1781:38;:::i;:::-;1771:48;;1866:2;1855:9;1851:18;1838:32;1828:42;;1642:234;;;;;:::o;1881:696::-;1976:6;1984;1992;2000;2053:3;2041:9;2032:7;2028:23;2024:33;2021:2;;;2075:6;2067;2060:22;2021:2;2103:29;2122:9;2103:29;:::i;:::-;2093:39;;2151:38;2185:2;2174:9;2170:18;2151:38;:::i;:::-;2141:48;;2236:2;2225:9;2221:18;2208:32;2198:42;;2291:2;2280:9;2276:18;2263:32;2318:18;2310:6;2307:30;2304:2;;;2355:6;2347;2340:22;2304:2;2383:22;;2436:4;2428:13;;2424:27;-1:-1:-1;2414:2:15;;2470:6;2462;2455:22;2414:2;2498:73;2563:7;2558:2;2545:16;2540:2;2536;2532:11;2498:73;:::i;:::-;2488:83;;;2011:566;;;;;;;:::o;2582:367::-;2647:6;2655;2708:2;2696:9;2687:7;2683:23;2679:32;2676:2;;;2729:6;2721;2714:22;2676:2;2757:29;2776:9;2757:29;:::i;:::-;2747:39;;2836:2;2825:9;2821:18;2808:32;2883:5;2876:13;2869:21;2862:5;2859:32;2849:2;;2910:6;2902;2895:22;2849:2;2938:5;2928:15;;;2666:283;;;;;:::o;2954:264::-;3022:6;3030;3083:2;3071:9;3062:7;3058:23;3054:32;3051:2;;;3104:6;3096;3089:22;3051:2;3132:29;3151:9;3132:29;:::i;:::-;3122:39;3208:2;3193:18;;;;3180:32;;-1:-1:-1;;;3041:177:15:o;3223:255::-;3281:6;3334:2;3322:9;3313:7;3309:23;3305:32;3302:2;;;3355:6;3347;3340:22;3302:2;3399:9;3386:23;3418:30;3442:5;3418:30;:::i;3483:259::-;3552:6;3605:2;3593:9;3584:7;3580:23;3576:32;3573:2;;;3626:6;3618;3611:22;3573:2;3663:9;3657:16;3682:30;3706:5;3682:30;:::i;3747:342::-;3816:6;3869:2;3857:9;3848:7;3844:23;3840:32;3837:2;;;3890:6;3882;3875:22;3837:2;3935:9;3922:23;3968:18;3960:6;3957:30;3954:2;;;4005:6;3997;3990:22;3954:2;4033:50;4075:7;4066:6;4055:9;4051:22;4033:50;:::i;4094:190::-;4153:6;4206:2;4194:9;4185:7;4181:23;4177:32;4174:2;;;4227:6;4219;4212:22;4174:2;-1:-1:-1;4255:23:15;;4164:120;-1:-1:-1;4164:120:15:o;4289:410::-;4367:6;4375;4428:2;4416:9;4407:7;4403:23;4399:32;4396:2;;;4449:6;4441;4434:22;4396:2;4490:9;4477:23;4467:33;;4551:2;4540:9;4536:18;4523:32;4578:18;4570:6;4567:30;4564:2;;;4615:6;4607;4600:22;4564:2;4643:50;4685:7;4676:6;4665:9;4661:22;4643:50;:::i;:::-;4633:60;;;4386:313;;;;;:::o;4704:257::-;4745:3;4783:5;4777:12;4810:6;4805:3;4798:19;4826:63;4882:6;4875:4;4870:3;4866:14;4859:4;4852:5;4848:16;4826:63;:::i;:::-;4943:2;4922:15;-1:-1:-1;;4918:29:15;4909:39;;;;4950:4;4905:50;;4753:208;-1:-1:-1;;4753:208:15:o;5396:470::-;5575:3;5613:6;5607:13;5629:53;5675:6;5670:3;5663:4;5655:6;5651:17;5629:53;:::i;:::-;5745:13;;5704:16;;;;5767:57;5745:13;5704:16;5801:4;5789:17;;5767:57;:::i;:::-;5840:20;;5583:283;-1:-1:-1;;;;5583:283:15:o;6079:488::-;-1:-1:-1;;;;;6348:15:15;;;6330:34;;6400:15;;6395:2;6380:18;;6373:43;6447:2;6432:18;;6425:34;;;6495:3;6490:2;6475:18;;6468:31;;;6273:4;;6516:45;;6541:19;;6533:6;6516:45;:::i;:::-;6508:53;6282:285;-1:-1:-1;;;;;;6282:285:15:o;6764:219::-;6913:2;6902:9;6895:21;6876:4;6933:44;6973:2;6962:9;6958:18;6950:6;6933:44;:::i;7688:411::-;7890:2;7872:21;;;7929:2;7909:18;;;7902:30;7968:34;7963:2;7948:18;;7941:62;-1:-1:-1;;;8034:2:15;8019:18;;8012:45;8089:3;8074:19;;7862:237::o;8804:344::-;9006:2;8988:21;;;9045:2;9025:18;;;9018:30;-1:-1:-1;;;9079:2:15;9064:18;;9057:50;9139:2;9124:18;;8978:170::o;9565:414::-;9767:2;9749:21;;;9806:2;9786:18;;;9779:30;9845:34;9840:2;9825:18;;9818:62;-1:-1:-1;;;9911:2:15;9896:18;;9889:48;9969:3;9954:19;;9739:240::o;10748:406::-;10950:2;10932:21;;;10989:2;10969:18;;;10962:30;11028:34;11023:2;11008:18;;11001:62;-1:-1:-1;;;11094:2:15;11079:18;;11072:40;11144:3;11129:19;;10922:232::o;12622:355::-;12824:2;12806:21;;;12863:2;12843:18;;;12836:30;12902:33;12897:2;12882:18;;12875:61;12968:2;12953:18;;12796:181::o;14105:351::-;14307:2;14289:21;;;14346:2;14326:18;;;14319:30;14385:29;14380:2;14365:18;;14358:57;14447:2;14432:18;;14279:177::o;18024:356::-;18226:2;18208:21;;;18245:18;;;18238:30;18304:34;18299:2;18284:18;;18277:62;18371:2;18356:18;;18198:182::o;18385:345::-;18587:2;18569:21;;;18626:2;18606:18;;;18599:30;-1:-1:-1;;;18660:2:15;18645:18;;18638:51;18721:2;18706:18;;18559:171::o;21449:413::-;21651:2;21633:21;;;21690:2;21670:18;;;21663:30;21729:34;21724:2;21709:18;;21702:62;-1:-1:-1;;;21795:2:15;21780:18;;21773:47;21852:3;21837:19;;21623:239::o;24174:128::-;24214:3;24245:1;24241:6;24238:1;24235:13;24232:2;;;24251:18;;:::i;:::-;-1:-1:-1;24287:9:15;;24222:80::o;24307:120::-;24347:1;24373;24363:2;;24378:18;;:::i;:::-;-1:-1:-1;24412:9:15;;24353:74::o;24432:125::-;24472:4;24500:1;24497;24494:8;24491:2;;;24505:18;;:::i;:::-;-1:-1:-1;24542:9:15;;24481:76::o;24562:258::-;24634:1;24644:113;24658:6;24655:1;24652:13;24644:113;;;24734:11;;;24728:18;24715:11;;;24708:39;24680:2;24673:10;24644:113;;;24775:6;24772:1;24769:13;24766:2;;;-1:-1:-1;;24810:1:15;24792:16;;24785:27;24615:205::o;24825:136::-;24864:3;24892:5;24882:2;;24901:18;;:::i;:::-;-1:-1:-1;;;24937:18:15;;24872:89::o;24966:380::-;25045:1;25041:12;;;;25088;;;25109:2;;25163:4;25155:6;25151:17;25141:27;;25109:2;25216;25208:6;25205:14;25185:18;25182:38;25179:2;;;25262:10;25257:3;25253:20;25250:1;25243:31;25297:4;25294:1;25287:15;25325:4;25322:1;25315:15;25179:2;;25021:325;;;:::o;25351:135::-;25390:3;-1:-1:-1;;25411:17:15;;25408:2;;;25431:18;;:::i;:::-;-1:-1:-1;25478:1:15;25467:13;;25398:88::o;25491:112::-;25523:1;25549;25539:2;;25554:18;;:::i;:::-;-1:-1:-1;25588:9:15;;25529:74::o;25608:127::-;25669:10;25664:3;25660:20;25657:1;25650:31;25700:4;25697:1;25690:15;25724:4;25721:1;25714:15;25740:127;25801:10;25796:3;25792:20;25789:1;25782:31;25832:4;25829:1;25822:15;25856:4;25853:1;25846:15;25872:127;25933:10;25928:3;25924:20;25921:1;25914:31;25964:4;25961:1;25954:15;25988:4;25985:1;25978:15;26004:131;-1:-1:-1;;;;;;26078:32:15;;26068:43;;26058:2;;26125:1;26122;26115:12
Swarm Source
ipfs://c6c6d349ac4470945d16368e629b9f7373b506be184591c132bbf7da2f4bc465
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.