Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
48 LIFEINWEEKS
Holders
42
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LIFEINWEEKSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LifeInWeeksNFT
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// _ _ __ _ _ // | (_)/ _| ___ (_)_ __ __ _____ ___| | _____ // | | | |_ / _ \ | | '_ \ \ \ /\ / / _ \/ _ \ |/ / __| // | | | _| __/ | | | | | \ V V / __/ __/ <\__ \ // |_|_|_| \___| |_|_| |_| \_/\_/ \___|\___|_|\_\___/ // // by @eddietree pragma solidity ^0.8.0; import "./ERC721Tradable.sol"; import "./Base64.sol"; contract LifeInWeeksNFT is ERC721Tradable { bool public saleIsActive = true; bool public allowlistIsActive = true; uint256 public constant MAX_SUPPLY = 888; uint256 public constant PRICE_PER_TOKEN = 0.03 ether; uint constant numWeeksPerRow = 52; uint constant numYears = 90; /* uint constant boxSize = 6; uint constant boxMargin = 3; uint constant paperPaddingX = 0; uint constant paperPaddingY = 0; uint constant totalWidth = paperPaddingX*2 + boxSize*(numWeeksPerRow) + boxMargin*(numWeeksPerRow-1); uint constant totalHeight = paperPaddingY*2 + boxSize*(numYears) + boxMargin*(numYears-1);*/ uint constant SECONDS_PER_YEAR = 31556926; uint constant SECONDS_PER_DAY = 86400; uint constant SECONDS_PER_WEEK = 604800 ; uint16[MAX_SUPPLY] private _tokenData; mapping(address => uint8) private _allowList; constructor(address _proxyRegistryAddress) ERC721Tradable("Your Life In Weeks NFT", "LIFEINWEEKS", _proxyRegistryAddress) public { for(uint i = 0; i < MAX_SUPPLY; i+=1) { _tokenData[i] = 1969; } } function setAllowList(address[] calldata addresses, uint8 numAllowedToMint) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { _allowList[addresses[i]] = numAllowedToMint; } } function allowListNumAvailableToMint(address addr) external view returns (uint8) { return _allowList[addr]; } function uintToString(uint v) public pure returns (string memory) { uint maxlength = 100; bytes memory reversed = new bytes(maxlength); uint i = 0; while (v != 0) { uint remainder = v % 10; v = v / 10; reversed[i++] = bytes1(uint8(48 + remainder)); } bytes memory s = new bytes(i); // i + 1 is inefficient for (uint j = 0; j < i; j++) { s[j] = reversed[i - j - 1]; // to avoid the off-by-one error } string memory str = string(s); // memory isn't implicitly convertible to storage return str; } function getSVG(uint16 birthyear) public view returns (string memory) { uint256 nowTime = block.timestamp; // seconds since epoch (jan 1, 1970) uint currentyear = 1970 + (nowTime / SECONDS_PER_YEAR); uint currentWeek = ((nowTime % SECONDS_PER_YEAR) / SECONDS_PER_WEEK+1)%numWeeksPerRow; string memory weekStr = uintToString(currentWeek); string memory yearsDeltaStr = uintToString(currentyear-birthyear-1); string memory svg = string(abi.encodePacked("<svg width='calc(465 + 40)' height='calc(807 + 40)' style='background-color:white; border: 0px solid black' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='PatternStroke' x='0' y='0' width='.019230769' height='.0111111'><rect x='0.5' y='0.5' width='6' height='6' style='fill:rgb(255,255,255);stroke-width:1;stroke:rgb(0,0,0)' shape-rendering='crispEdges'/></pattern><pattern id='PatternFilledStart' x='0' y='0' width='calc(1/52)' height='calc(1/",yearsDeltaStr,")'><rect x='0.5' y='0.5' width='6' height='6' style='fill:rgb(0,0,0);'/></pattern><pattern id='PatternFilledLineYear' x='0' y='0' width='calc(1/",weekStr,")' height='1'><rect x='0.5' y='0.5' width='6' height='6' style='fill:rgb(0,0,0);'/></pattern><pattern id='PatternCurrentWeek' x='0' y='0' width='calc(1/1)' height='1'><rect x='0.5' y='0.5' width='6' height='6'><animate attributeType='XML' attributeName='fill' values='#000;#ff0;#000;#000' dur='1.5s' repeatCount='indefinite'/></rect></pattern></defs><g transform=' translate(20 20)'><rect fill='url(#PatternStroke)' width='465' height='807'/><rect fill='url(#PatternFilledStart)' width='465' height='calc(807*",yearsDeltaStr,"/90)'/><rect fill='url(#PatternFilledLineYear)' width='calc(465*(",weekStr,"/52))' height='calc(807*1/90)' y='calc(807*",yearsDeltaStr,"/90)'/><rect fill='url(#PatternCurrentWeek)' width='calc(465*(1/52))' height='calc(807*1/90)' x='calc(465*((",weekStr," - 1)/52))' y='calc(807*",yearsDeltaStr,"/90)'/><g style='font-family:monospace;font-size:11px;' text-anchor='end' fill='#999'><text x='-4' y='7' >1</text><text x='-4' y='calc(807*10/90)'>10</text><text x='-4' y='calc(807*20/90)'>20</text><text x='-4' y='calc(807*30/90)'>30</text><text x='-4' y='calc(807*40/90)'>40</text><text x='-4' y='calc(807*50/90)'>50</text><text x='-4' y='calc(807*60/90)'>60</text><text x='-4' y='calc(807*70/90)'>70</text><text x='-4' y='calc(807*80/90)'>80</text><text x='-4' y='calc(807*90/90)'>90</text></g></g></svg>")); return svg; } function tokenURI(uint256 tokenId) override(ERC721) public view returns (string memory) { require(tokenId >= 1 && tokenId <= MAX_SUPPLY, "Not valid token range"); uint16 birthyear = _tokenData[tokenId-1]; string memory svg = getSVG(birthyear); //string memory birthyearStr = uintToString(birthyear); string memory json = Base64.encode( bytes(string( abi.encodePacked( '{"name": ', '"Your Life in Weeks #',uintToString(tokenId),'",', '"description": "your life in weeks is an 100% on-chain dynamic display of your entire life in weeks, living on the Ethereum blockchain. every week, one block is filled and this generative SVG is dynamically updated. each row is a year (total of 90 years) and each column is a week (52 weeks per year).",', //'"attributes":[{"trait_type":"Birth Year", "value":"',birthyearStr,'"}],', '"image_data": "', svg, '"}' ) )) ); return string(abi.encodePacked('data:application/json;base64,', json)); } /** * @dev Mint this object with your birth year (costs 0.03 ETH) * @param birthyear uint The year you were born */ function mint(uint16 birthyear) public payable { require(saleIsActive, "Sale must be active to mint tokens"); uint256 ts = totalSupply(); uint8 numberOfTokens = 1; require(ts < MAX_SUPPLY, "Purchase would exceed max tokens"); require(PRICE_PER_TOKEN * numberOfTokens <= msg.value, "Ether value sent is not correct"); uint256 tokenId = ts; _tokenData[tokenId] = birthyear; mintTo(msg.sender); } function mintFreeAllowlist(uint16 birthyear) public { require(allowlistIsActive, "Sale must be active to mint tokens"); uint256 ts = totalSupply(); uint8 numberOfTokens = 1; require(numberOfTokens <= _allowList[msg.sender], "Exceeded max available to purchase"); require(ts + numberOfTokens <= MAX_SUPPLY, "Purchase would exceed max tokens"); _allowList[msg.sender] -= numberOfTokens; uint256 tokenId = ts; _tokenData[tokenId] = birthyear; mintTo(msg.sender); } function reserve(uint16 birthyear) public onlyOwner { uint256 ts = totalSupply(); uint numberOfTokens = 1; require(ts + numberOfTokens <= MAX_SUPPLY, "Mint would exceed max tokens"); uint256 tokenId = ts; _tokenData[tokenId] = birthyear; mintTo(msg.sender); } function gift(uint16 birthyear, address receipient) public onlyOwner { uint256 ts = totalSupply(); uint numberOfTokens = 1; require(ts + numberOfTokens <= MAX_SUPPLY, "Mint would exceed max tokens"); uint256 tokenId = ts; _tokenData[tokenId] = birthyear; mintTo(receipient); } function withdraw() public onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } function getBirthYear(uint256 _tokenId) public view returns (uint) { require(_tokenId >= 1 && _tokenId <= MAX_SUPPLY, "Not valid token range"); return _tokenData[_tokenId-1]; } function setSaleState(bool newState) public onlyOwner { saleIsActive = newState; } function setAllowlistState(bool newState) public onlyOwner { allowlistIsActive = newState; } function setBirthYear(uint256 _tokenId, uint16 birthyear) public { uint256 ts = totalSupply(); require(_tokenId >= 1 && _tokenId <= MAX_SUPPLY && _tokenId <= ts, "Not valid token range"); address ownerOfToken = ownerOf(_tokenId); require(ownerOfToken == msg.sender, "Not the owner"); // make sure owner owns this token if (ownerOfToken == msg.sender) { _tokenData[_tokenId-1] = birthyear; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} /** * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ERC721, ContextMixin, NativeMetaTransaction, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _nextTokenId; address proxyRegistryAddress; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; // nextTokenId is initialized to 1, since starting at 0 leads to higher gas cost for the first minter _nextTokenId.increment(); _initializeEIP712(_name); } /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token */ function mintTo(address _to) internal { uint256 currentTokenId = _nextTokenId.current(); _nextTokenId.increment(); _safeMint(_to, currentTokenId); } /** @dev Returns the total tokens minted so far. 1 is always subtracted from the Counter since it tracks the next available tokenId. */ function totalSupply() public view returns (uint256) { return _nextTokenId.current() - 1; } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/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}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. 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 { _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { 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` and `to` are never both zero. * * 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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) 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 generally not needed starting with Solidity 0.8, since 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. 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; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"allowListNumAvailableToMint","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getBirthYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"birthyear","type":"uint16"}],"name":"getSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"birthyear","type":"uint16"},{"internalType":"address","name":"receipient","type":"address"}],"name":"gift","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":[{"internalType":"uint16","name":"birthyear","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"birthyear","type":"uint16"}],"name":"mintFreeAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"birthyear","type":"uint16"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint8","name":"numAllowedToMint","type":"uint8"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setAllowlistState","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint16","name":"birthyear","type":"uint16"}],"name":"setBirthYear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setSaleState","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":"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":[{"internalType":"uint256","name":"v","type":"uint256"}],"name":"uintToString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600660006101000a81548160ff0219169083151502179055506001600b60146101000a81548160ff0219169083151502179055506001600b60156101000a81548160ff0219169083151502179055503480156200006257600080fd5b50604051620068aa380380620068aa8339818101604052810190620000889190620005f8565b6040518060400160405280601681526020017f596f7572204c69666520496e205765656b73204e4654000000000000000000008152506040518060400160405280600b81526020017f4c494645494e5745454b5300000000000000000000000000000000000000000081525082828281600090805190602001906200010f92919062000531565b5080600190805190602001906200012892919062000531565b5050506200014b6200013f6200024860201b60201c565b6200026460201b60201c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001a3600a6200032a60201b620026181760201c565b620001b4836200034060201b60201c565b50505060005b61037881101562000240576107b1600c82610378811062000204577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060018162000238919062000718565b9050620001ba565b50506200086b565b60006200025f620003c260201b6200262e1760201c565b905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001816000016000828254019250508190555050565b600660009054906101000a900460ff161562000393576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038a90620006e5565b60405180910390fd5b620003a4816200047560201b60201c565b6001600660006101000a81548160ff02191690831515021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156200046e57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff81830151169250505062000472565b3390505b90565b6040518060800160405280604f81526020016200685b604f91398051906020012081805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012030620004ec6200052460201b60201c565b60001b6040516020016200050595949392919062000688565b6040516020818303038152906040528051906020012060078190555050565b6000804690508091505090565b8280546200053f90620007bd565b90600052602060002090601f016020900481019282620005635760008555620005af565b82601f106200057e57805160ff1916838001178555620005af565b82800160010185558215620005af579182015b82811115620005ae57825182559160200191906001019062000591565b5b509050620005be9190620005c2565b5090565b5b80821115620005dd576000816000905550600101620005c3565b5090565b600081519050620005f28162000851565b92915050565b6000602082840312156200060b57600080fd5b60006200061b84828501620005e1565b91505092915050565b6200062f8162000775565b82525050565b620006408162000789565b82525050565b600062000655600e8362000707565b91507f616c726561647920696e697465640000000000000000000000000000000000006000830152602082019050919050565b600060a0820190506200069f600083018862000635565b620006ae602083018762000635565b620006bd604083018662000635565b620006cc606083018562000624565b620006db608083018462000635565b9695505050505050565b60006020820190508181036000830152620007008162000646565b9050919050565b600082825260208201905092915050565b60006200072582620007b3565b91506200073283620007b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200076a5762000769620007f3565b5b828201905092915050565b6000620007828262000793565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620007d657607f821691505b60208210811415620007ed57620007ec62000822565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200085c8162000775565b81146200086857600080fd5b50565b615fe0806200087b6000396000f3fe6080604052600436106102305760003560e01c80636352211e1161012e578063a22cb465116100ab578063e7bb1c061161006f578063e7bb1c0614610831578063e93956791461086e578063e985e9c5146108ab578063eb8d2444146108e8578063f2fde38b1461091357610230565b8063a22cb46514610750578063b88d4fde14610779578063c4e37095146107a2578063c87b56dd146107cb578063d2155fd21461080857610230565b806382d54e8b116100f257806382d54e8b1461067b578063833b9499146106a45780638da5cb5b146106cf57806395d89b41146106fa5780639a8b50661461072557610230565b80636352211e1461059857806370a08231146105d5578063715018a614610612578063760830bc146106295780638295784d1461065257610230565b80631f0808d4116101bc5780632d0335ab116101805780632d0335ab146104c557806332cb6b0c146105025780633408e4701461052d5780633ccfd60b1461055857806342842e0e1461056f57610230565b80631f0808d41461040357806320379ee51461042c57806323b872dd1461045757806323cf0a22146104805780632cd017841461049c57610230565b80630878b704116102035780630878b70414610317578063095ea7b3146103545780630c53c51c1461037d5780630f7e5970146103ad57806318160ddd146103d857610230565b806301ffc9a71461023557806306fdde031461027257806307f3e9e51461029d578063081812fc146102da575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613a74565b61093c565b604051610269919061556a565b60405180910390f35b34801561027e57600080fd5b50610287610a1e565b604051610294919061564c565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf91906137bd565b610ab0565b6040516102d191906159a9565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190613b54565b610b06565b60405161030e91906154c5565b60405180910390f35b34801561032357600080fd5b5061033e60048036038101906103399190613b54565b610b8b565b60405161034b919061598e565b60405180910390f35b34801561036057600080fd5b5061037b600480360381019061037691906139b7565b610c4b565b005b61039760048036038101906103929190613928565b610d63565b6040516103a4919061562a565b60405180910390f35b3480156103b957600080fd5b506103c2610fd5565b6040516103cf919061564c565b60405180910390f35b3480156103e457600080fd5b506103ed61100e565b6040516103fa919061598e565b60405180910390f35b34801561040f57600080fd5b5061042a60048036038101906104259190613aef565b61102b565b005b34801561043857600080fd5b5061044161117e565b60405161044e9190615585565b60405180910390f35b34801561046357600080fd5b5061047e60048036038101906104799190613822565b611188565b005b61049a60048036038101906104959190613aef565b6111e8565b005b3480156104a857600080fd5b506104c360048036038101906104be9190613a4b565b61135a565b005b3480156104d157600080fd5b506104ec60048036038101906104e791906137bd565b6113f3565b6040516104f9919061598e565b60405180910390f35b34801561050e57600080fd5b5061051761143c565b604051610524919061598e565b60405180910390f35b34801561053957600080fd5b50610542611442565b60405161054f919061598e565b60405180910390f35b34801561056457600080fd5b5061056d61144f565b005b34801561057b57600080fd5b5061059660048036038101906105919190613822565b61151a565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190613b54565b61153a565b6040516105cc91906154c5565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f791906137bd565b6115ec565b604051610609919061598e565b60405180910390f35b34801561061e57600080fd5b506106276116a4565b005b34801561063557600080fd5b50610650600480360381019061064b9190613b7d565b61172c565b005b34801561065e57600080fd5b50610679600480360381019061067491906139f3565b6118b9565b005b34801561068757600080fd5b506106a2600480360381019061069d9190613b18565b611a01565b005b3480156106b057600080fd5b506106b9611b55565b6040516106c6919061598e565b60405180910390f35b3480156106db57600080fd5b506106e4611b60565b6040516106f191906154c5565b60405180910390f35b34801561070657600080fd5b5061070f611b8a565b60405161071c919061564c565b60405180910390f35b34801561073157600080fd5b5061073a611c1c565b604051610747919061556a565b60405180910390f35b34801561075c57600080fd5b50610777600480360381019061077291906138ec565b611c2f565b005b34801561078557600080fd5b506107a0600480360381019061079b9190613871565b611c45565b005b3480156107ae57600080fd5b506107c960048036038101906107c49190613a4b565b611ca7565b005b3480156107d757600080fd5b506107f260048036038101906107ed9190613b54565b611d40565b6040516107ff919061564c565b60405180910390f35b34801561081457600080fd5b5061082f600480360381019061082a9190613aef565b611e66565b005b34801561083d57600080fd5b5061085860048036038101906108539190613aef565b612097565b604051610865919061564c565b60405180910390f35b34801561087a57600080fd5b5061089560048036038101906108909190613b54565b61216c565b6040516108a2919061564c565b60405180910390f35b3480156108b757600080fd5b506108d260048036038101906108cd91906137e6565b61240b565b6040516108df919061556a565b60405180910390f35b3480156108f457600080fd5b506108fd61250d565b60405161090a919061556a565b60405180910390f35b34801561091f57600080fd5b5061093a600480360381019061093591906137bd565b612520565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a0757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a175750610a16826126df565b5b9050919050565b606060008054610a2d90615cbb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5990615cbb565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050505050905090565b6000604460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000610b1182612749565b610b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b479061588e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060018210158015610ba057506103788211155b610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd69061572e565b60405180910390fd5b600c600183610bee9190615b54565b6103788110610c26577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff169050919050565b6000610c568261153a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbe9061592e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ce66127b5565b73ffffffffffffffffffffffffffffffffffffffff161480610d155750610d1481610d0f6127b5565b61240b565b5b610d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4b906157ee565b60405180910390fd5b610d5e83836127c4565b505050565b606060006040518060600160405280600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610de6878287878761287d565b610e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1c906158ee565b60405180910390fd5b610e786001600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461298690919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610eee939291906154e0565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610f23929190615321565b604051602081830303815290604052604051610f3f919061530a565b6000604051808303816000865af19150503d8060008114610f7c576040519150601f19603f3d011682016040523d82523d6000602084013e610f81565b606091505b509150915081610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd906156ae565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600161101c600a61299c565b6110269190615b54565b905090565b6110336127b5565b73ffffffffffffffffffffffffffffffffffffffff16611051611b60565b73ffffffffffffffffffffffffffffffffffffffff16146110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109e906158ae565b60405180910390fd5b60006110b161100e565b905060006001905061037881836110c89190615a73565b1115611109576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611100906156ee565b60405180910390fd5b600082905083600c82610378811061114a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550611178336129aa565b50505050565b6000600754905090565b6111996111936127b5565b826129d0565b6111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf9061596e565b60405180910390fd5b6111e3838383612aae565b505050565b600b60149054906101000a900460ff16611237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122e9061590e565b60405180910390fd5b600061124161100e565b9050600060019050610378821061128d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611284906156ce565b60405180910390fd5b348160ff16666a94d74f4300006112a49190615afa565b11156112e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112dc9061578e565b60405180910390fd5b600082905083600c826103788110611326577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550611354336129aa565b50505050565b6113626127b5565b73ffffffffffffffffffffffffffffffffffffffff16611380611b60565b73ffffffffffffffffffffffffffffffffffffffff16146113d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cd906158ae565b60405180910390fd5b80600b60156101000a81548160ff02191690831515021790555050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61037881565b6000804690508091505090565b6114576127b5565b73ffffffffffffffffffffffffffffffffffffffff16611475611b60565b73ffffffffffffffffffffffffffffffffffffffff16146114cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c2906158ae565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611516573d6000803e3d6000fd5b5050565b61153583838360405180602001604052806000815250611c45565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115da9061584e565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561165d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116549061582e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116ac6127b5565b73ffffffffffffffffffffffffffffffffffffffff166116ca611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611720576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611717906158ae565b60405180910390fd5b61172a6000612d0a565b565b600061173661100e565b90506001831015801561174b57506103788311155b80156117575750808311155b611796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178d9061572e565b60405180910390fd5b60006117a18461153a565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611811576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118089061580e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118b35782600c6001866118559190615b54565b610378811061188d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505b50505050565b6118c16127b5565b73ffffffffffffffffffffffffffffffffffffffff166118df611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c906158ae565b60405180910390fd5b60005b838390508110156119fb578160446000868685818110611981577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061199691906137bd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806119f390615ced565b915050611938565b50505050565b611a096127b5565b73ffffffffffffffffffffffffffffffffffffffff16611a27611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a74906158ae565b60405180910390fd5b6000611a8761100e565b90506000600190506103788183611a9e9190615a73565b1115611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad6906156ee565b60405180910390fd5b600082905084600c826103788110611b20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550611b4e846129aa565b5050505050565b666a94d74f43000081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611b9990615cbb565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc590615cbb565b8015611c125780601f10611be757610100808354040283529160200191611c12565b820191906000526020600020905b815481529060010190602001808311611bf557829003601f168201915b5050505050905090565b600b60159054906101000a900460ff1681565b611c41611c3a6127b5565b8383612dd0565b5050565b611c56611c506127b5565b836129d0565b611c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8c9061596e565b60405180910390fd5b611ca184848484612f3d565b50505050565b611caf6127b5565b73ffffffffffffffffffffffffffffffffffffffff16611ccd611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1a906158ae565b60405180910390fd5b80600b60146101000a81548160ff02191690831515021790555050565b606060018210158015611d5557506103788211155b611d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8b9061572e565b60405180910390fd5b6000600c600184611da59190615b54565b6103788110611ddd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1690506000611e0482612097565b90506000611e3a611e148661216c565b83604051602001611e26929190615380565b604051602081830303815290604052612f99565b905080604051602001611e4d91906153e6565b6040516020818303038152906040529350505050919050565b600b60159054906101000a900460ff16611eb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eac9061590e565b60405180910390fd5b6000611ebf61100e565b9050600060019050604460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff168160ff161115611f5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f539061594e565b60405180910390fd5b6103788160ff1683611f6e9190615a73565b1115611faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa6906156ce565b60405180910390fd5b80604460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff1661200a9190615b88565b92506101000a81548160ff021916908360ff160217905550600082905083600c826103788110612063577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550612091336129aa565b50505050565b6060600042905060006301e1853e826120b09190615ac9565b6107b26120bd9190615a73565b905060006034600162093a806301e1853e866120d99190615d64565b6120e39190615ac9565b6120ed9190615a73565b6120f79190615d64565b905060006121048261216c565b9050600061212c60018861ffff168661211d9190615b54565b6121279190615b54565b61216c565b905060008183838585878760405160200161214d9796959493929190615408565b6040516020818303038152906040529050809650505050505050919050565b606060006064905060008167ffffffffffffffff8111156121b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121e85781602001600182028036833780820191505090505b50905060005b600085146122a0576000600a866122059190615d64565b9050600a866122149190615ac9565b95508060306122239190615a73565b60f81b83838061223290615ced565b94508151811061226b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350506121ee565b60008167ffffffffffffffff8111156122e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123145781602001600182028036833780820191505090505b50905060005b828110156123f85783600182856123319190615b54565b61233b9190615b54565b81518110612372577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b8282815181106123b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806123f090615ced565b91505061231a565b5060008190508095505050505050919050565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161248391906154c5565b60206040518083038186803b15801561249b57600080fd5b505afa1580156124af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d39190613ac6565b73ffffffffffffffffffffffffffffffffffffffff1614156124f9576001915050612507565b6125038484613123565b9150505b92915050565b600b60149054906101000a900460ff1681565b6125286127b5565b73ffffffffffffffffffffffffffffffffffffffff16612546611b60565b73ffffffffffffffffffffffffffffffffffffffff161461259c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612593906158ae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561260c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126039061568e565b60405180910390fd5b61261581612d0a565b50565b6001816000016000828254019250508190555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156126d857600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506126dc565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006127bf61262e565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128378361153a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156128ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e5906157ce565b60405180910390fd5b60016129016128fc876131b7565b61321f565b8386866040516000815260200160405260405161292194939291906155e5565b6020604051602081039080840390855afa158015612943573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836129949190615a73565b905092915050565b600081600001549050919050565b60006129b6600a61299c565b90506129c2600a612618565b6129cc8282613258565b5050565b60006129db82612749565b612a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a11906157ae565b60405180910390fd5b6000612a258361153a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a9457508373ffffffffffffffffffffffffffffffffffffffff16612a7c84610b06565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aa55750612aa4818561240b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612ace8261153a565b73ffffffffffffffffffffffffffffffffffffffff1614612b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1b906158ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8b9061574e565b60405180910390fd5b612b9f838383613276565b612baa6000826127c4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bfa9190615b54565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c519190615a73565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e369061576e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f30919061556a565b60405180910390a3505050565b612f48848484612aae565b612f548484848461327b565b612f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8a9061566e565b60405180910390fd5b50505050565b6060600082511415612fbc5760405180602001604052806000815250905061311e565b6000604051806060016040528060408152602001615f6b6040913990506000600360028551612feb9190615a73565b612ff59190615ac9565b60046130019190615afa565b67ffffffffffffffff811115613040577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130725781602001600182028036833780820191505090505b509050600182016020820185865187015b808210156130de576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050613083565b50506003865106600181146130fa576002811461310d57613115565b603d6001830353603d6002830353613115565b603d60018303535b50505080925050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000604051806080016040528060438152602001615f2860439139805190602001208260000151836020015184604001518051906020012060405160200161320294939291906155a0565b604051602081830303815290604052805190602001209050919050565b600061322961117e565b8260405160200161323b929190615349565b604051602081830303815290604052805190602001209050919050565b613272828260405180602001604052806000815250613412565b5050565b505050565b600061329c8473ffffffffffffffffffffffffffffffffffffffff1661346d565b15613405578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132c56127b5565b8786866040518563ffffffff1660e01b81526004016132e7949392919061551e565b602060405180830381600087803b15801561330157600080fd5b505af192505050801561333257506040513d601f19601f8201168201806040525081019061332f9190613a9d565b60015b6133b5573d8060008114613362576040519150601f19603f3d011682016040523d82523d6000602084013e613367565b606091505b506000815114156133ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a49061566e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061340a565b600190505b949350505050565b61341c8383613480565b613429600084848461327b565b613468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345f9061566e565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e79061586e565b60405180910390fd5b6134f981612749565b15613539576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135309061570e565b60405180910390fd5b61354560008383613276565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135959190615a73565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061366161365c846159f5565b6159c4565b90508281526020810184848401111561367957600080fd5b613684848285615c79565b509392505050565b60008135905061369b81615e6f565b92915050565b60008083601f8401126136b357600080fd5b8235905067ffffffffffffffff8111156136cc57600080fd5b6020830191508360208202830111156136e457600080fd5b9250929050565b6000813590506136fa81615e86565b92915050565b60008135905061370f81615e9d565b92915050565b60008135905061372481615eb4565b92915050565b60008151905061373981615eb4565b92915050565b600082601f83011261375057600080fd5b813561376084826020860161364e565b91505092915050565b60008151905061377881615ecb565b92915050565b60008135905061378d81615ee2565b92915050565b6000813590506137a281615ef9565b92915050565b6000813590506137b781615f10565b92915050565b6000602082840312156137cf57600080fd5b60006137dd8482850161368c565b91505092915050565b600080604083850312156137f957600080fd5b60006138078582860161368c565b92505060206138188582860161368c565b9150509250929050565b60008060006060848603121561383757600080fd5b60006138458682870161368c565b93505060206138568682870161368c565b925050604061386786828701613793565b9150509250925092565b6000806000806080858703121561388757600080fd5b60006138958782880161368c565b94505060206138a68782880161368c565b93505060406138b787828801613793565b925050606085013567ffffffffffffffff8111156138d457600080fd5b6138e08782880161373f565b91505092959194509250565b600080604083850312156138ff57600080fd5b600061390d8582860161368c565b925050602061391e858286016136eb565b9150509250929050565b600080600080600060a0868803121561394057600080fd5b600061394e8882890161368c565b955050602086013567ffffffffffffffff81111561396b57600080fd5b6139778882890161373f565b945050604061398888828901613700565b935050606061399988828901613700565b92505060806139aa888289016137a8565b9150509295509295909350565b600080604083850312156139ca57600080fd5b60006139d88582860161368c565b92505060206139e985828601613793565b9150509250929050565b600080600060408486031215613a0857600080fd5b600084013567ffffffffffffffff811115613a2257600080fd5b613a2e868287016136a1565b93509350506020613a41868287016137a8565b9150509250925092565b600060208284031215613a5d57600080fd5b6000613a6b848285016136eb565b91505092915050565b600060208284031215613a8657600080fd5b6000613a9484828501613715565b91505092915050565b600060208284031215613aaf57600080fd5b6000613abd8482850161372a565b91505092915050565b600060208284031215613ad857600080fd5b6000613ae684828501613769565b91505092915050565b600060208284031215613b0157600080fd5b6000613b0f8482850161377e565b91505092915050565b60008060408385031215613b2b57600080fd5b6000613b398582860161377e565b9250506020613b4a8582860161368c565b9150509250929050565b600060208284031215613b6657600080fd5b6000613b7484828501613793565b91505092915050565b60008060408385031215613b9057600080fd5b6000613b9e85828601613793565b9250506020613baf8582860161377e565b9150509250929050565b613bc281615bce565b82525050565b613bd181615bbc565b82525050565b613be8613be382615bbc565b615d36565b82525050565b613bf781615be0565b82525050565b613c0681615bec565b82525050565b613c1d613c1882615bec565b615d48565b82525050565b6000613c2e82615a25565b613c388185615a3b565b9350613c48818560208601615c88565b613c5181615e51565b840191505092915050565b6000613c6782615a25565b613c718185615a4c565b9350613c81818560208601615c88565b80840191505092915050565b6000613c9882615a30565b613ca28185615a57565b9350613cb2818560208601615c88565b613cbb81615e51565b840191505092915050565b6000613cd182615a30565b613cdb8185615a68565b9350613ceb818560208601615c88565b80840191505092915050565b6000613d056101fd83615a68565b91507f2927206865696768743d2731273e3c7265637420783d27302e352720793d273060008301527f2e35272077696474683d273627206865696768743d273627207374796c653d2760208301527f66696c6c3a72676228302c302c30293b272f3e3c2f7061747465726e3e3c706160408301527f747465726e2069643d275061747465726e43757272656e745765656b2720783d60608301527f27302720793d2730272077696474683d2763616c6328312f312927206865696760808301527f68743d2731273e3c7265637420783d27302e352720793d27302e35272077696460a08301527f74683d273627206865696768743d2736273e3c616e696d61746520617474726960c08301527f62757465547970653d27584d4c27206174747269627574654e616d653d27666960e08301527f6c6c272076616c7565733d27233030303b236666303b233030303b23303030276101008301527f206475723d27312e35732720726570656174436f756e743d27696e646566696e6101208301527f697465272f3e3c2f726563743e3c2f7061747465726e3e3c2f646566733e3c676101408301527f207472616e73666f726d3d27207472616e736c61746528323020323029273e3c6101608301527f726563742066696c6c3d2775726c28235061747465726e5374726f6b652927206101808301527f77696474683d2734363527206865696768743d27383037272f3e3c72656374206101a08301527f66696c6c3d2775726c28235061747465726e46696c6c656453746172742927206101c08301527f77696474683d2734363527206865696768743d2763616c63283830372a0000006101e08301526101fd82019050919050565b6000613f88604183615a68565b91507f2f393029272f3e3c726563742066696c6c3d2775726c28235061747465726e4660008301527f696c6c65644c696e655965617229272077696474683d2763616c63283436352a60208301527f28000000000000000000000000000000000000000000000000000000000000006040830152604182019050919050565b6000614014603283615a57565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b600061407a602683615a57565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006140e0600283615a68565b91507f222c0000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b6000614120601c83615a57565b91507f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006000830152602082019050919050565b6000614160602083615a57565b91507f507572636861736520776f756c6420657863656564206d617820746f6b656e736000830152602082019050919050565b60006141a0601c83615a57565b91507f4d696e7420776f756c6420657863656564206d617820746f6b656e73000000006000830152602082019050919050565b60006141e0601c83615a57565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614220600283615a68565b91507f19010000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b60006142616101fa83615a68565b91507f2f393029272f3e3c67207374796c653d27666f6e742d66616d696c793a6d6f6e60008301527f6f73706163653b666f6e742d73697a653a313170783b2720746578742d616e6360208301527f686f723d27656e64272066696c6c3d2723393939273e3c7465787420783d272d60408301527f342720793d273727203e313c2f746578743e3c7465787420783d272d3427207960608301527f3d2763616c63283830372a31302f393029273e31303c2f746578743e3c74657860808301527f7420783d272d342720793d2763616c63283830372a32302f393029273e32303c60a08301527f2f746578743e3c7465787420783d272d342720793d2763616c63283830372a3360c08301527f302f393029273e33303c2f746578743e3c7465787420783d272d342720793d2760e08301527f63616c63283830372a34302f393029273e34303c2f746578743e3c74657874206101008301527f783d272d342720793d2763616c63283830372a35302f393029273e35303c2f746101208301527f6578743e3c7465787420783d272d342720793d2763616c63283830372a36302f6101408301527f393029273e36303c2f746578743e3c7465787420783d272d342720793d2763616101608301527f6c63283830372a37302f393029273e37303c2f746578743e3c7465787420783d6101808301527f272d342720793d2763616c63283830372a38302f393029273e38303c2f7465786101a08301527f743e3c7465787420783d272d342720793d2763616c63283830372a39302f39306101c08301527f29273e39303c2f746578743e3c2f673e3c2f673e3c2f7376673e0000000000006101e08301526101fa82019050919050565b60006144e4601583615a57565b91507f4e6f742076616c696420746f6b656e2072616e676500000000000000000000006000830152602082019050919050565b6000614524600f83615a68565b91507f22696d6167655f64617461223a202200000000000000000000000000000000006000830152600f82019050919050565b600061456561012f83615a68565b91507f226465736372697074696f6e223a2022796f7572206c69666520696e2077656560008301527f6b7320697320616e2031303025206f6e2d636861696e2064796e616d6963206460208301527f6973706c6179206f6620796f757220656e74697265206c69666520696e20776560408301527f656b732c206c6976696e67206f6e2074686520457468657265756d20626c6f6360608301527f6b636861696e2e206576657279207765656b2c206f6e6520626c6f636b20697360808301527f2066696c6c656420616e6420746869732067656e65726174697665205356472060a08301527f69732064796e616d6963616c6c7920757064617465642e206561636820726f7760c08301527f206973206120796561722028746f74616c206f6620393020796561727329206160e08301527f6e64206561636820636f6c756d6e2069732061207765656b20283532207765656101008301527f6b73207065722079656172292e222c000000000000000000000000000000000061012083015261012f82019050919050565b60006146fe600983615a68565b91507f7b226e616d65223a2000000000000000000000000000000000000000000000006000830152600982019050919050565b600061473e602483615a57565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006147a4601983615a57565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006147e4601f83615a57565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b6000614824602c83615a57565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061488a602583615a57565b91507f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008301527f49474e45520000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006148f0603883615a57565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614956600d83615a57565b91507f4e6f7420746865206f776e6572000000000000000000000000000000000000006000830152602082019050919050565b6000614996602a83615a57565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006149fc602983615a57565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a62600283615a68565b91507f227d0000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b6000614aa2602083615a57565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ae2602c83615a57565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614b48602083615a57565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614b88602983615a57565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bee602183615a57565b91507f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008301527f68000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c54602283615a57565b91507f53616c65206d7573742062652061637469766520746f206d696e7420746f6b6560008301527f6e730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614cba602183615a57565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d20602283615a57565b91507f4578636565646564206d617820617661696c61626c6520746f2070757263686160008301527f73650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d86601d83615a68565b91507f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006000830152601d82019050919050565b6000614dc6601583615a68565b91507f22596f7572204c69666520696e205765656b73202300000000000000000000006000830152601582019050919050565b6000614e06603183615a57565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614e6c602b83615a68565b91507f2f3532292927206865696768743d2763616c63283830372a312f39302927207960008301527f3d2763616c63283830372a0000000000000000000000000000000000000000006020830152602b82019050919050565b6000614ed2609083615a68565b91507f29273e3c7265637420783d27302e352720793d27302e35272077696474683d2760008301527f3627206865696768743d273627207374796c653d2766696c6c3a72676228302c60208301527f302c30293b272f3e3c2f7061747465726e3e3c7061747465726e2069643d275060408301527f61747465726e46696c6c65644c696e65596561722720783d27302720793d273060608301527f272077696474683d2763616c6328312f000000000000000000000000000000006080830152609082019050919050565b6000614fab6101c483615a68565b91507f3c7376672077696474683d2763616c6328343635202b2034302927206865696760008301527f68743d2763616c6328383037202b2034302927207374796c653d276261636b6760208301527f726f756e642d636f6c6f723a77686974653b20626f726465723a20307078207360408301527f6f6c696420626c61636b2720786d6c6e733d27687474703a2f2f7777772e773360608301527f2e6f72672f323030302f737667273e3c646566733e3c7061747465726e20696460808301527f3d275061747465726e5374726f6b652720783d27302720793d2730272077696460a08301527f74683d272e30313932333037363927206865696768743d272e3031313131313160c08301527f273e3c7265637420783d27302e352720793d27302e35272077696474683d273660e08301527f27206865696768743d273627207374796c653d2766696c6c3a726762283235356101008301527f2c3235352c323535293b7374726f6b652d77696474683a313b7374726f6b653a6101208301527f72676228302c302c302927202073686170652d72656e646572696e673d2763726101408301527f6973704564676573272f3e3c2f7061747465726e3e3c7061747465726e2069646101608301527f3d275061747465726e46696c6c656453746172742720783d27302720793d27306101808301527f272077696474683d2763616c6328312f35322927206865696768743d2763616c6101a08301527f6328312f000000000000000000000000000000000000000000000000000000006101c08301526101c482019050919050565b6000615207601883615a68565b91507f202d2031292f353229292720793d2763616c63283830372a00000000000000006000830152601882019050919050565b6000615247606c83615a68565b91507f2f393029272f3e3c726563742066696c6c3d2775726c28235061747465726e4360008301527f757272656e745765656b29272077696474683d2763616c63283436352a28312f60208301527f3532292927206865696768743d2763616c63283830372a312f3930292720783d60408301527f2763616c63283436352a282800000000000000000000000000000000000000006060830152606c82019050919050565b6152f581615c62565b82525050565b61530481615c6c565b82525050565b60006153168284613c5c565b915081905092915050565b600061532d8285613c5c565b91506153398284613bd7565b6014820191508190509392505050565b600061535482614213565b91506153608285613c0c565b6020820191506153708284613c0c565b6020820191508190509392505050565b600061538b826146f1565b915061539682614db9565b91506153a28285613cc6565b91506153ad826140d3565b91506153b882614557565b91506153c382614517565b91506153cf8284613cc6565b91506153da82614a55565b91508190509392505050565b60006153f182614d79565b91506153fd8284613cc6565b915081905092915050565b600061541382614f9d565b915061541f828a613cc6565b915061542a82614ec5565b91506154368289613cc6565b915061544182613cf7565b915061544d8288613cc6565b915061545882613f7b565b91506154648287613cc6565b915061546f82614e5f565b915061547b8286613cc6565b91506154868261523a565b91506154928285613cc6565b915061549d826151fa565b91506154a98284613cc6565b91506154b482614253565b915081905098975050505050505050565b60006020820190506154da6000830184613bc8565b92915050565b60006060820190506154f56000830186613bc8565b6155026020830185613bb9565b81810360408301526155148184613c23565b9050949350505050565b60006080820190506155336000830187613bc8565b6155406020830186613bc8565b61554d60408301856152ec565b818103606083015261555f8184613c23565b905095945050505050565b600060208201905061557f6000830184613bee565b92915050565b600060208201905061559a6000830184613bfd565b92915050565b60006080820190506155b56000830187613bfd565b6155c260208301866152ec565b6155cf6040830185613bc8565b6155dc6060830184613bfd565b95945050505050565b60006080820190506155fa6000830187613bfd565b61560760208301866152fb565b6156146040830185613bfd565b6156216060830184613bfd565b95945050505050565b600060208201905081810360008301526156448184613c23565b905092915050565b600060208201905081810360008301526156668184613c8d565b905092915050565b6000602082019050818103600083015261568781614007565b9050919050565b600060208201905081810360008301526156a78161406d565b9050919050565b600060208201905081810360008301526156c781614113565b9050919050565b600060208201905081810360008301526156e781614153565b9050919050565b6000602082019050818103600083015261570781614193565b9050919050565b60006020820190508181036000830152615727816141d3565b9050919050565b60006020820190508181036000830152615747816144d7565b9050919050565b6000602082019050818103600083015261576781614731565b9050919050565b6000602082019050818103600083015261578781614797565b9050919050565b600060208201905081810360008301526157a7816147d7565b9050919050565b600060208201905081810360008301526157c781614817565b9050919050565b600060208201905081810360008301526157e78161487d565b9050919050565b60006020820190508181036000830152615807816148e3565b9050919050565b6000602082019050818103600083015261582781614949565b9050919050565b6000602082019050818103600083015261584781614989565b9050919050565b60006020820190508181036000830152615867816149ef565b9050919050565b6000602082019050818103600083015261588781614a95565b9050919050565b600060208201905081810360008301526158a781614ad5565b9050919050565b600060208201905081810360008301526158c781614b3b565b9050919050565b600060208201905081810360008301526158e781614b7b565b9050919050565b6000602082019050818103600083015261590781614be1565b9050919050565b6000602082019050818103600083015261592781614c47565b9050919050565b6000602082019050818103600083015261594781614cad565b9050919050565b6000602082019050818103600083015261596781614d13565b9050919050565b6000602082019050818103600083015261598781614df9565b9050919050565b60006020820190506159a360008301846152ec565b92915050565b60006020820190506159be60008301846152fb565b92915050565b6000604051905081810181811067ffffffffffffffff821117156159eb576159ea615e22565b5b8060405250919050565b600067ffffffffffffffff821115615a1057615a0f615e22565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000615a7e82615c62565b9150615a8983615c62565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615abe57615abd615d95565b5b828201905092915050565b6000615ad482615c62565b9150615adf83615c62565b925082615aef57615aee615dc4565b5b828204905092915050565b6000615b0582615c62565b9150615b1083615c62565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615b4957615b48615d95565b5b828202905092915050565b6000615b5f82615c62565b9150615b6a83615c62565b925082821015615b7d57615b7c615d95565b5b828203905092915050565b6000615b9382615c6c565b9150615b9e83615c6c565b925082821015615bb157615bb0615d95565b5b828203905092915050565b6000615bc782615c42565b9050919050565b6000615bd982615c42565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000615c2d82615bbc565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615ca6578082015181840152602081019050615c8b565b83811115615cb5576000848401525b50505050565b60006002820490506001821680615cd357607f821691505b60208210811415615ce757615ce6615df3565b5b50919050565b6000615cf882615c62565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615d2b57615d2a615d95565b5b600182019050919050565b6000615d4182615d52565b9050919050565b6000819050919050565b6000615d5d82615e62565b9050919050565b6000615d6f82615c62565b9150615d7a83615c62565b925082615d8a57615d89615dc4565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615e7881615bbc565b8114615e8357600080fd5b50565b615e8f81615be0565b8114615e9a57600080fd5b50565b615ea681615bec565b8114615eb157600080fd5b50565b615ebd81615bf6565b8114615ec857600080fd5b50565b615ed481615c22565b8114615edf57600080fd5b50565b615eeb81615c34565b8114615ef657600080fd5b50565b615f0281615c62565b8114615f0d57600080fd5b50565b615f1981615c6c565b8114615f2457600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f8bd30dca0887f413f4a488a589ab7d2f1f869722cf01b70fe564345d886755a64736f6c63430008000033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102305760003560e01c80636352211e1161012e578063a22cb465116100ab578063e7bb1c061161006f578063e7bb1c0614610831578063e93956791461086e578063e985e9c5146108ab578063eb8d2444146108e8578063f2fde38b1461091357610230565b8063a22cb46514610750578063b88d4fde14610779578063c4e37095146107a2578063c87b56dd146107cb578063d2155fd21461080857610230565b806382d54e8b116100f257806382d54e8b1461067b578063833b9499146106a45780638da5cb5b146106cf57806395d89b41146106fa5780639a8b50661461072557610230565b80636352211e1461059857806370a08231146105d5578063715018a614610612578063760830bc146106295780638295784d1461065257610230565b80631f0808d4116101bc5780632d0335ab116101805780632d0335ab146104c557806332cb6b0c146105025780633408e4701461052d5780633ccfd60b1461055857806342842e0e1461056f57610230565b80631f0808d41461040357806320379ee51461042c57806323b872dd1461045757806323cf0a22146104805780632cd017841461049c57610230565b80630878b704116102035780630878b70414610317578063095ea7b3146103545780630c53c51c1461037d5780630f7e5970146103ad57806318160ddd146103d857610230565b806301ffc9a71461023557806306fdde031461027257806307f3e9e51461029d578063081812fc146102da575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613a74565b61093c565b604051610269919061556a565b60405180910390f35b34801561027e57600080fd5b50610287610a1e565b604051610294919061564c565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf91906137bd565b610ab0565b6040516102d191906159a9565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190613b54565b610b06565b60405161030e91906154c5565b60405180910390f35b34801561032357600080fd5b5061033e60048036038101906103399190613b54565b610b8b565b60405161034b919061598e565b60405180910390f35b34801561036057600080fd5b5061037b600480360381019061037691906139b7565b610c4b565b005b61039760048036038101906103929190613928565b610d63565b6040516103a4919061562a565b60405180910390f35b3480156103b957600080fd5b506103c2610fd5565b6040516103cf919061564c565b60405180910390f35b3480156103e457600080fd5b506103ed61100e565b6040516103fa919061598e565b60405180910390f35b34801561040f57600080fd5b5061042a60048036038101906104259190613aef565b61102b565b005b34801561043857600080fd5b5061044161117e565b60405161044e9190615585565b60405180910390f35b34801561046357600080fd5b5061047e60048036038101906104799190613822565b611188565b005b61049a60048036038101906104959190613aef565b6111e8565b005b3480156104a857600080fd5b506104c360048036038101906104be9190613a4b565b61135a565b005b3480156104d157600080fd5b506104ec60048036038101906104e791906137bd565b6113f3565b6040516104f9919061598e565b60405180910390f35b34801561050e57600080fd5b5061051761143c565b604051610524919061598e565b60405180910390f35b34801561053957600080fd5b50610542611442565b60405161054f919061598e565b60405180910390f35b34801561056457600080fd5b5061056d61144f565b005b34801561057b57600080fd5b5061059660048036038101906105919190613822565b61151a565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190613b54565b61153a565b6040516105cc91906154c5565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f791906137bd565b6115ec565b604051610609919061598e565b60405180910390f35b34801561061e57600080fd5b506106276116a4565b005b34801561063557600080fd5b50610650600480360381019061064b9190613b7d565b61172c565b005b34801561065e57600080fd5b50610679600480360381019061067491906139f3565b6118b9565b005b34801561068757600080fd5b506106a2600480360381019061069d9190613b18565b611a01565b005b3480156106b057600080fd5b506106b9611b55565b6040516106c6919061598e565b60405180910390f35b3480156106db57600080fd5b506106e4611b60565b6040516106f191906154c5565b60405180910390f35b34801561070657600080fd5b5061070f611b8a565b60405161071c919061564c565b60405180910390f35b34801561073157600080fd5b5061073a611c1c565b604051610747919061556a565b60405180910390f35b34801561075c57600080fd5b50610777600480360381019061077291906138ec565b611c2f565b005b34801561078557600080fd5b506107a0600480360381019061079b9190613871565b611c45565b005b3480156107ae57600080fd5b506107c960048036038101906107c49190613a4b565b611ca7565b005b3480156107d757600080fd5b506107f260048036038101906107ed9190613b54565b611d40565b6040516107ff919061564c565b60405180910390f35b34801561081457600080fd5b5061082f600480360381019061082a9190613aef565b611e66565b005b34801561083d57600080fd5b5061085860048036038101906108539190613aef565b612097565b604051610865919061564c565b60405180910390f35b34801561087a57600080fd5b5061089560048036038101906108909190613b54565b61216c565b6040516108a2919061564c565b60405180910390f35b3480156108b757600080fd5b506108d260048036038101906108cd91906137e6565b61240b565b6040516108df919061556a565b60405180910390f35b3480156108f457600080fd5b506108fd61250d565b60405161090a919061556a565b60405180910390f35b34801561091f57600080fd5b5061093a600480360381019061093591906137bd565b612520565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a0757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a175750610a16826126df565b5b9050919050565b606060008054610a2d90615cbb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5990615cbb565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050505050905090565b6000604460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000610b1182612749565b610b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b479061588e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060018210158015610ba057506103788211155b610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd69061572e565b60405180910390fd5b600c600183610bee9190615b54565b6103788110610c26577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff169050919050565b6000610c568261153a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbe9061592e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ce66127b5565b73ffffffffffffffffffffffffffffffffffffffff161480610d155750610d1481610d0f6127b5565b61240b565b5b610d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4b906157ee565b60405180910390fd5b610d5e83836127c4565b505050565b606060006040518060600160405280600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610de6878287878761287d565b610e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1c906158ee565b60405180910390fd5b610e786001600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461298690919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610eee939291906154e0565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610f23929190615321565b604051602081830303815290604052604051610f3f919061530a565b6000604051808303816000865af19150503d8060008114610f7c576040519150601f19603f3d011682016040523d82523d6000602084013e610f81565b606091505b509150915081610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd906156ae565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600161101c600a61299c565b6110269190615b54565b905090565b6110336127b5565b73ffffffffffffffffffffffffffffffffffffffff16611051611b60565b73ffffffffffffffffffffffffffffffffffffffff16146110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109e906158ae565b60405180910390fd5b60006110b161100e565b905060006001905061037881836110c89190615a73565b1115611109576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611100906156ee565b60405180910390fd5b600082905083600c82610378811061114a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550611178336129aa565b50505050565b6000600754905090565b6111996111936127b5565b826129d0565b6111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf9061596e565b60405180910390fd5b6111e3838383612aae565b505050565b600b60149054906101000a900460ff16611237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122e9061590e565b60405180910390fd5b600061124161100e565b9050600060019050610378821061128d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611284906156ce565b60405180910390fd5b348160ff16666a94d74f4300006112a49190615afa565b11156112e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112dc9061578e565b60405180910390fd5b600082905083600c826103788110611326577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550611354336129aa565b50505050565b6113626127b5565b73ffffffffffffffffffffffffffffffffffffffff16611380611b60565b73ffffffffffffffffffffffffffffffffffffffff16146113d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cd906158ae565b60405180910390fd5b80600b60156101000a81548160ff02191690831515021790555050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61037881565b6000804690508091505090565b6114576127b5565b73ffffffffffffffffffffffffffffffffffffffff16611475611b60565b73ffffffffffffffffffffffffffffffffffffffff16146114cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c2906158ae565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611516573d6000803e3d6000fd5b5050565b61153583838360405180602001604052806000815250611c45565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115da9061584e565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561165d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116549061582e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116ac6127b5565b73ffffffffffffffffffffffffffffffffffffffff166116ca611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611720576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611717906158ae565b60405180910390fd5b61172a6000612d0a565b565b600061173661100e565b90506001831015801561174b57506103788311155b80156117575750808311155b611796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178d9061572e565b60405180910390fd5b60006117a18461153a565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611811576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118089061580e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118b35782600c6001866118559190615b54565b610378811061188d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505b50505050565b6118c16127b5565b73ffffffffffffffffffffffffffffffffffffffff166118df611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c906158ae565b60405180910390fd5b60005b838390508110156119fb578160446000868685818110611981577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061199691906137bd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806119f390615ced565b915050611938565b50505050565b611a096127b5565b73ffffffffffffffffffffffffffffffffffffffff16611a27611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a74906158ae565b60405180910390fd5b6000611a8761100e565b90506000600190506103788183611a9e9190615a73565b1115611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad6906156ee565b60405180910390fd5b600082905084600c826103788110611b20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550611b4e846129aa565b5050505050565b666a94d74f43000081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611b9990615cbb565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc590615cbb565b8015611c125780601f10611be757610100808354040283529160200191611c12565b820191906000526020600020905b815481529060010190602001808311611bf557829003601f168201915b5050505050905090565b600b60159054906101000a900460ff1681565b611c41611c3a6127b5565b8383612dd0565b5050565b611c56611c506127b5565b836129d0565b611c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8c9061596e565b60405180910390fd5b611ca184848484612f3d565b50505050565b611caf6127b5565b73ffffffffffffffffffffffffffffffffffffffff16611ccd611b60565b73ffffffffffffffffffffffffffffffffffffffff1614611d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1a906158ae565b60405180910390fd5b80600b60146101000a81548160ff02191690831515021790555050565b606060018210158015611d5557506103788211155b611d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8b9061572e565b60405180910390fd5b6000600c600184611da59190615b54565b6103788110611ddd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1690506000611e0482612097565b90506000611e3a611e148661216c565b83604051602001611e26929190615380565b604051602081830303815290604052612f99565b905080604051602001611e4d91906153e6565b6040516020818303038152906040529350505050919050565b600b60159054906101000a900460ff16611eb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eac9061590e565b60405180910390fd5b6000611ebf61100e565b9050600060019050604460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff168160ff161115611f5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f539061594e565b60405180910390fd5b6103788160ff1683611f6e9190615a73565b1115611faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa6906156ce565b60405180910390fd5b80604460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff1661200a9190615b88565b92506101000a81548160ff021916908360ff160217905550600082905083600c826103788110612063577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550612091336129aa565b50505050565b6060600042905060006301e1853e826120b09190615ac9565b6107b26120bd9190615a73565b905060006034600162093a806301e1853e866120d99190615d64565b6120e39190615ac9565b6120ed9190615a73565b6120f79190615d64565b905060006121048261216c565b9050600061212c60018861ffff168661211d9190615b54565b6121279190615b54565b61216c565b905060008183838585878760405160200161214d9796959493929190615408565b6040516020818303038152906040529050809650505050505050919050565b606060006064905060008167ffffffffffffffff8111156121b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121e85781602001600182028036833780820191505090505b50905060005b600085146122a0576000600a866122059190615d64565b9050600a866122149190615ac9565b95508060306122239190615a73565b60f81b83838061223290615ced565b94508151811061226b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350506121ee565b60008167ffffffffffffffff8111156122e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123145781602001600182028036833780820191505090505b50905060005b828110156123f85783600182856123319190615b54565b61233b9190615b54565b81518110612372577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b8282815181106123b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806123f090615ced565b91505061231a565b5060008190508095505050505050919050565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161248391906154c5565b60206040518083038186803b15801561249b57600080fd5b505afa1580156124af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d39190613ac6565b73ffffffffffffffffffffffffffffffffffffffff1614156124f9576001915050612507565b6125038484613123565b9150505b92915050565b600b60149054906101000a900460ff1681565b6125286127b5565b73ffffffffffffffffffffffffffffffffffffffff16612546611b60565b73ffffffffffffffffffffffffffffffffffffffff161461259c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612593906158ae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561260c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126039061568e565b60405180910390fd5b61261581612d0a565b50565b6001816000016000828254019250508190555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156126d857600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506126dc565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006127bf61262e565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128378361153a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156128ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e5906157ce565b60405180910390fd5b60016129016128fc876131b7565b61321f565b8386866040516000815260200160405260405161292194939291906155e5565b6020604051602081039080840390855afa158015612943573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836129949190615a73565b905092915050565b600081600001549050919050565b60006129b6600a61299c565b90506129c2600a612618565b6129cc8282613258565b5050565b60006129db82612749565b612a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a11906157ae565b60405180910390fd5b6000612a258361153a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a9457508373ffffffffffffffffffffffffffffffffffffffff16612a7c84610b06565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aa55750612aa4818561240b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612ace8261153a565b73ffffffffffffffffffffffffffffffffffffffff1614612b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1b906158ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8b9061574e565b60405180910390fd5b612b9f838383613276565b612baa6000826127c4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bfa9190615b54565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c519190615a73565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e369061576e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f30919061556a565b60405180910390a3505050565b612f48848484612aae565b612f548484848461327b565b612f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8a9061566e565b60405180910390fd5b50505050565b6060600082511415612fbc5760405180602001604052806000815250905061311e565b6000604051806060016040528060408152602001615f6b6040913990506000600360028551612feb9190615a73565b612ff59190615ac9565b60046130019190615afa565b67ffffffffffffffff811115613040577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130725781602001600182028036833780820191505090505b509050600182016020820185865187015b808210156130de576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050613083565b50506003865106600181146130fa576002811461310d57613115565b603d6001830353603d6002830353613115565b603d60018303535b50505080925050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000604051806080016040528060438152602001615f2860439139805190602001208260000151836020015184604001518051906020012060405160200161320294939291906155a0565b604051602081830303815290604052805190602001209050919050565b600061322961117e565b8260405160200161323b929190615349565b604051602081830303815290604052805190602001209050919050565b613272828260405180602001604052806000815250613412565b5050565b505050565b600061329c8473ffffffffffffffffffffffffffffffffffffffff1661346d565b15613405578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132c56127b5565b8786866040518563ffffffff1660e01b81526004016132e7949392919061551e565b602060405180830381600087803b15801561330157600080fd5b505af192505050801561333257506040513d601f19601f8201168201806040525081019061332f9190613a9d565b60015b6133b5573d8060008114613362576040519150601f19603f3d011682016040523d82523d6000602084013e613367565b606091505b506000815114156133ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a49061566e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061340a565b600190505b949350505050565b61341c8383613480565b613429600084848461327b565b613468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345f9061566e565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e79061586e565b60405180910390fd5b6134f981612749565b15613539576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135309061570e565b60405180910390fd5b61354560008383613276565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135959190615a73565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061366161365c846159f5565b6159c4565b90508281526020810184848401111561367957600080fd5b613684848285615c79565b509392505050565b60008135905061369b81615e6f565b92915050565b60008083601f8401126136b357600080fd5b8235905067ffffffffffffffff8111156136cc57600080fd5b6020830191508360208202830111156136e457600080fd5b9250929050565b6000813590506136fa81615e86565b92915050565b60008135905061370f81615e9d565b92915050565b60008135905061372481615eb4565b92915050565b60008151905061373981615eb4565b92915050565b600082601f83011261375057600080fd5b813561376084826020860161364e565b91505092915050565b60008151905061377881615ecb565b92915050565b60008135905061378d81615ee2565b92915050565b6000813590506137a281615ef9565b92915050565b6000813590506137b781615f10565b92915050565b6000602082840312156137cf57600080fd5b60006137dd8482850161368c565b91505092915050565b600080604083850312156137f957600080fd5b60006138078582860161368c565b92505060206138188582860161368c565b9150509250929050565b60008060006060848603121561383757600080fd5b60006138458682870161368c565b93505060206138568682870161368c565b925050604061386786828701613793565b9150509250925092565b6000806000806080858703121561388757600080fd5b60006138958782880161368c565b94505060206138a68782880161368c565b93505060406138b787828801613793565b925050606085013567ffffffffffffffff8111156138d457600080fd5b6138e08782880161373f565b91505092959194509250565b600080604083850312156138ff57600080fd5b600061390d8582860161368c565b925050602061391e858286016136eb565b9150509250929050565b600080600080600060a0868803121561394057600080fd5b600061394e8882890161368c565b955050602086013567ffffffffffffffff81111561396b57600080fd5b6139778882890161373f565b945050604061398888828901613700565b935050606061399988828901613700565b92505060806139aa888289016137a8565b9150509295509295909350565b600080604083850312156139ca57600080fd5b60006139d88582860161368c565b92505060206139e985828601613793565b9150509250929050565b600080600060408486031215613a0857600080fd5b600084013567ffffffffffffffff811115613a2257600080fd5b613a2e868287016136a1565b93509350506020613a41868287016137a8565b9150509250925092565b600060208284031215613a5d57600080fd5b6000613a6b848285016136eb565b91505092915050565b600060208284031215613a8657600080fd5b6000613a9484828501613715565b91505092915050565b600060208284031215613aaf57600080fd5b6000613abd8482850161372a565b91505092915050565b600060208284031215613ad857600080fd5b6000613ae684828501613769565b91505092915050565b600060208284031215613b0157600080fd5b6000613b0f8482850161377e565b91505092915050565b60008060408385031215613b2b57600080fd5b6000613b398582860161377e565b9250506020613b4a8582860161368c565b9150509250929050565b600060208284031215613b6657600080fd5b6000613b7484828501613793565b91505092915050565b60008060408385031215613b9057600080fd5b6000613b9e85828601613793565b9250506020613baf8582860161377e565b9150509250929050565b613bc281615bce565b82525050565b613bd181615bbc565b82525050565b613be8613be382615bbc565b615d36565b82525050565b613bf781615be0565b82525050565b613c0681615bec565b82525050565b613c1d613c1882615bec565b615d48565b82525050565b6000613c2e82615a25565b613c388185615a3b565b9350613c48818560208601615c88565b613c5181615e51565b840191505092915050565b6000613c6782615a25565b613c718185615a4c565b9350613c81818560208601615c88565b80840191505092915050565b6000613c9882615a30565b613ca28185615a57565b9350613cb2818560208601615c88565b613cbb81615e51565b840191505092915050565b6000613cd182615a30565b613cdb8185615a68565b9350613ceb818560208601615c88565b80840191505092915050565b6000613d056101fd83615a68565b91507f2927206865696768743d2731273e3c7265637420783d27302e352720793d273060008301527f2e35272077696474683d273627206865696768743d273627207374796c653d2760208301527f66696c6c3a72676228302c302c30293b272f3e3c2f7061747465726e3e3c706160408301527f747465726e2069643d275061747465726e43757272656e745765656b2720783d60608301527f27302720793d2730272077696474683d2763616c6328312f312927206865696760808301527f68743d2731273e3c7265637420783d27302e352720793d27302e35272077696460a08301527f74683d273627206865696768743d2736273e3c616e696d61746520617474726960c08301527f62757465547970653d27584d4c27206174747269627574654e616d653d27666960e08301527f6c6c272076616c7565733d27233030303b236666303b233030303b23303030276101008301527f206475723d27312e35732720726570656174436f756e743d27696e646566696e6101208301527f697465272f3e3c2f726563743e3c2f7061747465726e3e3c2f646566733e3c676101408301527f207472616e73666f726d3d27207472616e736c61746528323020323029273e3c6101608301527f726563742066696c6c3d2775726c28235061747465726e5374726f6b652927206101808301527f77696474683d2734363527206865696768743d27383037272f3e3c72656374206101a08301527f66696c6c3d2775726c28235061747465726e46696c6c656453746172742927206101c08301527f77696474683d2734363527206865696768743d2763616c63283830372a0000006101e08301526101fd82019050919050565b6000613f88604183615a68565b91507f2f393029272f3e3c726563742066696c6c3d2775726c28235061747465726e4660008301527f696c6c65644c696e655965617229272077696474683d2763616c63283436352a60208301527f28000000000000000000000000000000000000000000000000000000000000006040830152604182019050919050565b6000614014603283615a57565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b600061407a602683615a57565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006140e0600283615a68565b91507f222c0000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b6000614120601c83615a57565b91507f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006000830152602082019050919050565b6000614160602083615a57565b91507f507572636861736520776f756c6420657863656564206d617820746f6b656e736000830152602082019050919050565b60006141a0601c83615a57565b91507f4d696e7420776f756c6420657863656564206d617820746f6b656e73000000006000830152602082019050919050565b60006141e0601c83615a57565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614220600283615a68565b91507f19010000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b60006142616101fa83615a68565b91507f2f393029272f3e3c67207374796c653d27666f6e742d66616d696c793a6d6f6e60008301527f6f73706163653b666f6e742d73697a653a313170783b2720746578742d616e6360208301527f686f723d27656e64272066696c6c3d2723393939273e3c7465787420783d272d60408301527f342720793d273727203e313c2f746578743e3c7465787420783d272d3427207960608301527f3d2763616c63283830372a31302f393029273e31303c2f746578743e3c74657860808301527f7420783d272d342720793d2763616c63283830372a32302f393029273e32303c60a08301527f2f746578743e3c7465787420783d272d342720793d2763616c63283830372a3360c08301527f302f393029273e33303c2f746578743e3c7465787420783d272d342720793d2760e08301527f63616c63283830372a34302f393029273e34303c2f746578743e3c74657874206101008301527f783d272d342720793d2763616c63283830372a35302f393029273e35303c2f746101208301527f6578743e3c7465787420783d272d342720793d2763616c63283830372a36302f6101408301527f393029273e36303c2f746578743e3c7465787420783d272d342720793d2763616101608301527f6c63283830372a37302f393029273e37303c2f746578743e3c7465787420783d6101808301527f272d342720793d2763616c63283830372a38302f393029273e38303c2f7465786101a08301527f743e3c7465787420783d272d342720793d2763616c63283830372a39302f39306101c08301527f29273e39303c2f746578743e3c2f673e3c2f673e3c2f7376673e0000000000006101e08301526101fa82019050919050565b60006144e4601583615a57565b91507f4e6f742076616c696420746f6b656e2072616e676500000000000000000000006000830152602082019050919050565b6000614524600f83615a68565b91507f22696d6167655f64617461223a202200000000000000000000000000000000006000830152600f82019050919050565b600061456561012f83615a68565b91507f226465736372697074696f6e223a2022796f7572206c69666520696e2077656560008301527f6b7320697320616e2031303025206f6e2d636861696e2064796e616d6963206460208301527f6973706c6179206f6620796f757220656e74697265206c69666520696e20776560408301527f656b732c206c6976696e67206f6e2074686520457468657265756d20626c6f6360608301527f6b636861696e2e206576657279207765656b2c206f6e6520626c6f636b20697360808301527f2066696c6c656420616e6420746869732067656e65726174697665205356472060a08301527f69732064796e616d6963616c6c7920757064617465642e206561636820726f7760c08301527f206973206120796561722028746f74616c206f6620393020796561727329206160e08301527f6e64206561636820636f6c756d6e2069732061207765656b20283532207765656101008301527f6b73207065722079656172292e222c000000000000000000000000000000000061012083015261012f82019050919050565b60006146fe600983615a68565b91507f7b226e616d65223a2000000000000000000000000000000000000000000000006000830152600982019050919050565b600061473e602483615a57565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006147a4601983615a57565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006147e4601f83615a57565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b6000614824602c83615a57565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061488a602583615a57565b91507f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008301527f49474e45520000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006148f0603883615a57565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614956600d83615a57565b91507f4e6f7420746865206f776e6572000000000000000000000000000000000000006000830152602082019050919050565b6000614996602a83615a57565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006149fc602983615a57565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a62600283615a68565b91507f227d0000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b6000614aa2602083615a57565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ae2602c83615a57565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614b48602083615a57565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614b88602983615a57565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bee602183615a57565b91507f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008301527f68000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c54602283615a57565b91507f53616c65206d7573742062652061637469766520746f206d696e7420746f6b6560008301527f6e730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614cba602183615a57565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d20602283615a57565b91507f4578636565646564206d617820617661696c61626c6520746f2070757263686160008301527f73650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d86601d83615a68565b91507f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006000830152601d82019050919050565b6000614dc6601583615a68565b91507f22596f7572204c69666520696e205765656b73202300000000000000000000006000830152601582019050919050565b6000614e06603183615a57565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614e6c602b83615a68565b91507f2f3532292927206865696768743d2763616c63283830372a312f39302927207960008301527f3d2763616c63283830372a0000000000000000000000000000000000000000006020830152602b82019050919050565b6000614ed2609083615a68565b91507f29273e3c7265637420783d27302e352720793d27302e35272077696474683d2760008301527f3627206865696768743d273627207374796c653d2766696c6c3a72676228302c60208301527f302c30293b272f3e3c2f7061747465726e3e3c7061747465726e2069643d275060408301527f61747465726e46696c6c65644c696e65596561722720783d27302720793d273060608301527f272077696474683d2763616c6328312f000000000000000000000000000000006080830152609082019050919050565b6000614fab6101c483615a68565b91507f3c7376672077696474683d2763616c6328343635202b2034302927206865696760008301527f68743d2763616c6328383037202b2034302927207374796c653d276261636b6760208301527f726f756e642d636f6c6f723a77686974653b20626f726465723a20307078207360408301527f6f6c696420626c61636b2720786d6c6e733d27687474703a2f2f7777772e773360608301527f2e6f72672f323030302f737667273e3c646566733e3c7061747465726e20696460808301527f3d275061747465726e5374726f6b652720783d27302720793d2730272077696460a08301527f74683d272e30313932333037363927206865696768743d272e3031313131313160c08301527f273e3c7265637420783d27302e352720793d27302e35272077696474683d273660e08301527f27206865696768743d273627207374796c653d2766696c6c3a726762283235356101008301527f2c3235352c323535293b7374726f6b652d77696474683a313b7374726f6b653a6101208301527f72676228302c302c302927202073686170652d72656e646572696e673d2763726101408301527f6973704564676573272f3e3c2f7061747465726e3e3c7061747465726e2069646101608301527f3d275061747465726e46696c6c656453746172742720783d27302720793d27306101808301527f272077696474683d2763616c6328312f35322927206865696768743d2763616c6101a08301527f6328312f000000000000000000000000000000000000000000000000000000006101c08301526101c482019050919050565b6000615207601883615a68565b91507f202d2031292f353229292720793d2763616c63283830372a00000000000000006000830152601882019050919050565b6000615247606c83615a68565b91507f2f393029272f3e3c726563742066696c6c3d2775726c28235061747465726e4360008301527f757272656e745765656b29272077696474683d2763616c63283436352a28312f60208301527f3532292927206865696768743d2763616c63283830372a312f3930292720783d60408301527f2763616c63283436352a282800000000000000000000000000000000000000006060830152606c82019050919050565b6152f581615c62565b82525050565b61530481615c6c565b82525050565b60006153168284613c5c565b915081905092915050565b600061532d8285613c5c565b91506153398284613bd7565b6014820191508190509392505050565b600061535482614213565b91506153608285613c0c565b6020820191506153708284613c0c565b6020820191508190509392505050565b600061538b826146f1565b915061539682614db9565b91506153a28285613cc6565b91506153ad826140d3565b91506153b882614557565b91506153c382614517565b91506153cf8284613cc6565b91506153da82614a55565b91508190509392505050565b60006153f182614d79565b91506153fd8284613cc6565b915081905092915050565b600061541382614f9d565b915061541f828a613cc6565b915061542a82614ec5565b91506154368289613cc6565b915061544182613cf7565b915061544d8288613cc6565b915061545882613f7b565b91506154648287613cc6565b915061546f82614e5f565b915061547b8286613cc6565b91506154868261523a565b91506154928285613cc6565b915061549d826151fa565b91506154a98284613cc6565b91506154b482614253565b915081905098975050505050505050565b60006020820190506154da6000830184613bc8565b92915050565b60006060820190506154f56000830186613bc8565b6155026020830185613bb9565b81810360408301526155148184613c23565b9050949350505050565b60006080820190506155336000830187613bc8565b6155406020830186613bc8565b61554d60408301856152ec565b818103606083015261555f8184613c23565b905095945050505050565b600060208201905061557f6000830184613bee565b92915050565b600060208201905061559a6000830184613bfd565b92915050565b60006080820190506155b56000830187613bfd565b6155c260208301866152ec565b6155cf6040830185613bc8565b6155dc6060830184613bfd565b95945050505050565b60006080820190506155fa6000830187613bfd565b61560760208301866152fb565b6156146040830185613bfd565b6156216060830184613bfd565b95945050505050565b600060208201905081810360008301526156448184613c23565b905092915050565b600060208201905081810360008301526156668184613c8d565b905092915050565b6000602082019050818103600083015261568781614007565b9050919050565b600060208201905081810360008301526156a78161406d565b9050919050565b600060208201905081810360008301526156c781614113565b9050919050565b600060208201905081810360008301526156e781614153565b9050919050565b6000602082019050818103600083015261570781614193565b9050919050565b60006020820190508181036000830152615727816141d3565b9050919050565b60006020820190508181036000830152615747816144d7565b9050919050565b6000602082019050818103600083015261576781614731565b9050919050565b6000602082019050818103600083015261578781614797565b9050919050565b600060208201905081810360008301526157a7816147d7565b9050919050565b600060208201905081810360008301526157c781614817565b9050919050565b600060208201905081810360008301526157e78161487d565b9050919050565b60006020820190508181036000830152615807816148e3565b9050919050565b6000602082019050818103600083015261582781614949565b9050919050565b6000602082019050818103600083015261584781614989565b9050919050565b60006020820190508181036000830152615867816149ef565b9050919050565b6000602082019050818103600083015261588781614a95565b9050919050565b600060208201905081810360008301526158a781614ad5565b9050919050565b600060208201905081810360008301526158c781614b3b565b9050919050565b600060208201905081810360008301526158e781614b7b565b9050919050565b6000602082019050818103600083015261590781614be1565b9050919050565b6000602082019050818103600083015261592781614c47565b9050919050565b6000602082019050818103600083015261594781614cad565b9050919050565b6000602082019050818103600083015261596781614d13565b9050919050565b6000602082019050818103600083015261598781614df9565b9050919050565b60006020820190506159a360008301846152ec565b92915050565b60006020820190506159be60008301846152fb565b92915050565b6000604051905081810181811067ffffffffffffffff821117156159eb576159ea615e22565b5b8060405250919050565b600067ffffffffffffffff821115615a1057615a0f615e22565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000615a7e82615c62565b9150615a8983615c62565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615abe57615abd615d95565b5b828201905092915050565b6000615ad482615c62565b9150615adf83615c62565b925082615aef57615aee615dc4565b5b828204905092915050565b6000615b0582615c62565b9150615b1083615c62565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615b4957615b48615d95565b5b828202905092915050565b6000615b5f82615c62565b9150615b6a83615c62565b925082821015615b7d57615b7c615d95565b5b828203905092915050565b6000615b9382615c6c565b9150615b9e83615c6c565b925082821015615bb157615bb0615d95565b5b828203905092915050565b6000615bc782615c42565b9050919050565b6000615bd982615c42565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000615c2d82615bbc565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615ca6578082015181840152602081019050615c8b565b83811115615cb5576000848401525b50505050565b60006002820490506001821680615cd357607f821691505b60208210811415615ce757615ce6615df3565b5b50919050565b6000615cf882615c62565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615d2b57615d2a615d95565b5b600182019050919050565b6000615d4182615d52565b9050919050565b6000819050919050565b6000615d5d82615e62565b9050919050565b6000615d6f82615c62565b9150615d7a83615c62565b925082615d8a57615d89615dc4565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615e7881615bbc565b8114615e8357600080fd5b50565b615e8f81615be0565b8114615e9a57600080fd5b50565b615ea681615bec565b8114615eb157600080fd5b50565b615ebd81615bf6565b8114615ec857600080fd5b50565b615ed481615c22565b8114615edf57600080fd5b50565b615eeb81615c34565b8114615ef657600080fd5b50565b615f0281615c62565b8114615f0d57600080fd5b50565b615f1981615c6c565b8114615f2457600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f8bd30dca0887f413f4a488a589ab7d2f1f869722cf01b70fe564345d886755a64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.