Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
1151
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SilksYearlingPass
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/utils/Counters.sol"; import "./CollaborationPricing.sol"; import "./WhitelistPricing.sol"; import "./ERC721Redeemable.sol"; contract SilksYearlingPass is ERC721Redeemable, CollaborationPricing, WhitelistPricing { struct UsedTokens { mapping(uint256 => bool) tokens; } using Counters for Counters.Counter; Counters.Counter private passIds; address private avatarsAddress; mapping(address => UsedTokens) private usedTokens; constructor( string memory _name, string memory _symbol, string memory _baseUri, uint256 _maxSupply, address _avatarsAddress, address _payeeAddress, uint256[] memory _publicSaleInfo // price - 0, maxPerTx - 1, maxPerWallet - 2 ) ERC721Redeemable ( _name, _symbol, _payeeAddress, _maxSupply ) { baseUri = _baseUri; require(Address.isContract(_avatarsAddress), "NOT_CONTRACT_ADDRESS"); avatarsAddress = _avatarsAddress; collaborations[address(0)] = Collaboration( _publicSaleInfo[0], true, _publicSaleInfo[1], _publicSaleInfo[2], true ); } function publicPurchase() public payable whenNotPaused { (uint256 price, bool paused, uint256 maxPerTx, uint256 maxPerWallet, bool valid) = getCollaboration(address(0)); require(valid && !paused, "PUBLIC_MINT_PAUSED"); checkPurchaseConditions(msg.sender, price, maxPerTx, maxPerWallet); _mintPasses(msg.sender, (msg.value / price)); } function whitelistGatedPurchase( uint _id, bytes32[] calldata merkleProof ) public payable whenNotPaused { (uint256 price, bool paused, uint256 maxPerTx, uint256 maxPerWallet, bool valid) = getWhitelist(_id); require(valid && !paused, "NOT_VALID_OR_PAUSED"); require(isWhitelisted(_id, msg.sender, merkleProof), "NOT_WHITELISTED"); checkPurchaseConditions(msg.sender, price, maxPerTx, maxPerWallet); _mintPasses(msg.sender, msg.value / price); } function airDrop( address _to, uint256 _amount ) public onlyOwner whenNotPaused { _mintPasses(_to, _amount); } function genesisAvatarGatedOwnerMint( address _to, uint256[] calldata _tokenIds ) external payable onlyOwner { (uint256 price, bool paused, uint256 maxPerTx, uint256 maxPerWallet, bool valid) = getCollaboration(avatarsAddress); require(valid && !paused, "NOT_VALID_OR_PAUSED"); checkPurchaseConditions(_to, price, maxPerTx, maxPerWallet); _checkAndMintPasses(avatarsAddress, _to, _tokenIds); } function genesisAvatarsGatedPurchase( uint256[] calldata _tokenIds ) public payable whenNotPaused { tokenGatedPurchase(avatarsAddress, _tokenIds); } function tokenGatedPurchase( address _contractAddress, uint256[] calldata _tokenIds ) public payable whenNotPaused { (uint256 price, bool paused, uint256 maxPerTx, uint256 maxPerWallet, bool valid) = getCollaboration(_contractAddress); require(valid && !paused, "NOT_VALID_OR_PAUSED"); checkPurchaseConditions(msg.sender, price, maxPerTx, maxPerWallet); // Verify that the total eth sent is enough to purchase the yearling mint passes for each token require(_tokenIds.length == (msg.value / price), "INV_PAYMENT"); _checkAndMintPasses(_contractAddress, msg.sender, _tokenIds); } function comboWhitelistTokenGatedPurchase( uint256 _id, bytes32[] calldata merkleProof, address _contractAddress, uint256[] calldata _tokenIds ) public payable whenNotPaused { (uint256 price, bool paused, uint256 maxPerTx, uint256 maxPerWallet, bool valid) = getWhitelist(_id); require(valid && !paused, "NOT_VALID_OR_PAUSED"); require(isWhitelisted(_id, msg.sender, merkleProof), "NOT_WHITELISTED"); checkPurchaseConditions(msg.sender, price, maxPerTx, maxPerWallet); // Verify that the total eth sent is enough to purchase the yearling mint passes for each token require(_tokenIds.length == (msg.value / price), "INV_PAYMENT"); _checkAndMintPasses(_contractAddress, msg.sender, _tokenIds); } function _checkAndMintPasses( address _contractAddress, address _to, uint256[] calldata _tokenIds ) internal { ERC721 erc721Contract = ERC721(_contractAddress); // Verify token ownership and if already redeemed for (uint256 i = 0; i < _tokenIds.length; i++) { require(erc721Contract.ownerOf(_tokenIds[i]) == _to, "NOT_OWNER"); require(!checkIfTokenUsed(_contractAddress, _tokenIds[i]), "USED_TOKEN"); usedTokens[_contractAddress].tokens[_tokenIds[i]] = true; } _mintPasses(_to, _tokenIds.length); } function checkPurchaseConditions( address _to, uint256 price, uint256 maxPerTx, uint256 maxPerWallet ) internal { // Make sure the the exact amount needed to mint and the number to mint * price is // equal to the amount of eth sent. require( msg.value % price == 0 && ((msg.value / price) * price == msg.value), "INV_ETH_TOTAL" ); require(maxPerTx == 0 || (msg.value / price) <= maxPerTx, "PER_TX_ERROR"); require( maxPerWallet == 0 || (balanceOf(_to) + (msg.value / price)) <= maxPerWallet, "PER_WALLET_ERROR" ); } function _mintPasses( address _to, uint256 _amount ) internal { require((totalSupply() + _amount) <= maxSupply, "MAX_SUPPLY_ERROR"); for (uint256 i = 0; i < _amount; i++) { passIds.increment(); uint256 newYearlingPassId = passIds.current(); _mint(_to, newYearlingPassId); } } function checkIfTokenUsed( address _contractAddress, uint256 _tokenId ) public view returns (bool) { return usedTokens[_contractAddress].tokens[_tokenId]; } function checkIfTokenUsedBatch( address _contractAddress, uint256[] calldata _tokenIds ) public view returns (bool[] memory) { bool[] memory checks = new bool[](_tokenIds.length); for (uint256 i = 0; i < _tokenIds.length; i++) { checks[i] = usedTokens[_contractAddress].tokens[_tokenIds[i]]; } return checks; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract WhitelistPricing is Ownable { struct Whitelist { bytes32 merkleRoot; uint price; bool paused; uint maxPerTx; uint maxPerWallet; bool valid; } mapping(uint => Whitelist) internal whitelists; function getWhitelist( uint _id ) public view returns ( uint price, bool paused, uint maxPerTx, uint maxPerWallet, bool valid ) { return ( whitelists[_id].price, whitelists[_id].paused, whitelists[_id].maxPerTx, whitelists[_id].maxPerWallet, whitelists[_id].valid ); } function isWhitelisted( uint _id, address _address, bytes32[] calldata _merkleProof ) public view returns (bool) { if (whitelists[_id].valid && whitelists[_id].merkleRoot.length > 0) { bytes32 node = keccak256(abi.encodePacked(_address)); return MerkleProof.verify( _merkleProof, whitelists[_id].merkleRoot, node ); } return false; } function setWhitelist( uint _id, bytes32 _merkleRoot, uint _price, bool _paused, uint _maxPerTx, uint _maxPerWallet ) external onlyOwner { whitelists[_id] = Whitelist( _merkleRoot, _price, _paused, _maxPerTx, _maxPerWallet, true ); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/access/Ownable.sol"; contract CollaborationPricing is Ownable { struct Collaboration { uint price; bool paused; uint maxPerTx; uint maxPerWallet; bool valid; } mapping(address => Collaboration) internal collaborations; function getCollaboration( address _contractAddress ) public view returns ( uint price, bool paused, uint maxPerTx, uint maxPerWallet, bool valid ) { return ( collaborations[_contractAddress].price, collaborations[_contractAddress].paused, collaborations[_contractAddress].maxPerTx, collaborations[_contractAddress].maxPerWallet, collaborations[_contractAddress].valid ); } function setCollaboration( address _contractAddress, uint _price, bool _paused, uint _maxPerTx, uint _maxPerWallet, bool _valid ) external onlyOwner { collaborations[_contractAddress] = Collaboration( _price, _paused, _maxPerTx, _maxPerWallet, _valid ); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; abstract contract RedeemContract { function extMint(address to, uint256 amount_req) external virtual; } contract ERC721Redeemable is ERC721Enumerable, Ownable, Pausable { using Address for address; bool public redeemStarted; address public redeemAddress; string public baseUri; address public payee; uint256 public maxSupply; constructor( string memory _name, string memory _symbol, address _payee, uint256 _maxSupply ) ERC721 (_name, _symbol) { payee = _payee; maxSupply = _maxSupply; _pause(); } function redeem( uint256[] calldata _passIds ) external { require(redeemStarted, "REDEEM_PAUSED"); require(Address.isContract(redeemAddress), "INVALID_ADDRESS"); for (uint256 i = 0; i < _passIds.length; i++) { require(ownerOf(_passIds[i]) == msg.sender, "NOT_PASS_OWNER"); _burn(_passIds[i]); } // Call contract to mint horses to msg.sender RedeemContract(redeemAddress).extMint(msg.sender, _passIds.length); } function setRedeemInfo( address _redeemContractAddress, bool _redeemStarted ) external onlyOwner { redeemAddress = _redeemContractAddress; redeemStarted = _redeemStarted; } function _baseURI() internal view virtual override returns (string memory) { return string( abi.encodePacked(baseUri, '/') ); } function setBaseUri( string calldata _baseUri ) public onlyOwner { baseUri = _baseUri; } function withdrawFunds() external onlyOwner { sendEth(payee, address(this).balance); } function setPayeeAddress( address _payee ) external onlyOwner { payee = _payee; } function sendEth( address to, uint amount ) internal { require(to != address(0), "INVALID_PAYMENT_ADDRESS"); (bool success,) = to.call{value : amount}(""); require(success, "Failed to send ether"); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function setMaxSupply( uint256 _maxSupply ) external onlyOwner { maxSupply = _maxSupply; } }
// 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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden 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 token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); 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: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/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); }
{ "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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_avatarsAddress","type":"address"},{"internalType":"address","name":"_payeeAddress","type":"address"},{"internalType":"uint256[]","name":"_publicSaleInfo","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","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":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"checkIfTokenUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"checkIfTokenUsedBatch","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"comboWhitelistTokenGatedPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"genesisAvatarGatedOwnerMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"genesisAvatarsGatedPurchase","outputs":[],"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":"address","name":"_contractAddress","type":"address"}],"name":"getCollaboration","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getWhitelist","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","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":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_passIds","type":"uint256[]"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bool","name":"_paused","type":"bool"},{"internalType":"uint256","name":"_maxPerTx","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"bool","name":"_valid","type":"bool"}],"name":"setCollaboration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payee","type":"address"}],"name":"setPayeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_redeemContractAddress","type":"address"},{"internalType":"bool","name":"_redeemStarted","type":"bool"}],"name":"setRedeemInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bool","name":"_paused","type":"bool"},{"internalType":"uint256","name":"_maxPerTx","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"tokenGatedPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistGatedPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200699738038062006997833981810160405281019062000037919062000888565b868683868383816000908051906020019062000055929190620004c0565b5080600190805190602001906200006e929190620004c0565b5050506200009162000085620002ee60201b60201c565b620002f660201b60201c565b6000600a60146101000a81548160ff02191690831515021790555081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e8190555062000104620003bc60201b60201c565b5050505084600c908051906020019062000120929190620004c0565b5062000137836200043160201b620022201760201c565b62000179576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001709062000a18565b60405180910390fd5b82601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060a0016040528082600081518110620001dc57620001db62000a3a565b5b602002602001015181526020016001151581526020018260018151811062000209576200020862000a3a565b5b60200260200101518152602001826002815181106200022d576200022c62000a3a565b5b6020026020010151815260200160011515815250600f60008073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908315150217905550604082015181600201556060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050505050505050505062000b6d565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003cc6200045460201b60201c565b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25862000418620002ee60201b60201c565b60405162000427919062000a7a565b60405180910390a1565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b62000464620004a960201b60201c565b15620004a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200049e9062000ae7565b60405180910390fd5b565b6000600a60149054906101000a900460ff16905090565b828054620004ce9062000b38565b90600052602060002090601f016020900481019282620004f257600085556200053e565b82601f106200050d57805160ff19168380011785556200053e565b828001600101855582156200053e579182015b828111156200053d57825182559160200191906001019062000520565b5b5090506200054d919062000551565b5090565b5b808211156200056c57600081600090555060010162000552565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005d9826200058e565b810181811067ffffffffffffffff82111715620005fb57620005fa6200059f565b5b80604052505050565b60006200061062000570565b90506200061e8282620005ce565b919050565b600067ffffffffffffffff8211156200064157620006406200059f565b5b6200064c826200058e565b9050602081019050919050565b60005b83811015620006795780820151818401526020810190506200065c565b8381111562000689576000848401525b50505050565b6000620006a6620006a08462000623565b62000604565b905082815260208101848484011115620006c557620006c462000589565b5b620006d284828562000659565b509392505050565b600082601f830112620006f257620006f162000584565b5b8151620007048482602086016200068f565b91505092915050565b6000819050919050565b62000722816200070d565b81146200072e57600080fd5b50565b600081519050620007428162000717565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007758262000748565b9050919050565b620007878162000768565b81146200079357600080fd5b50565b600081519050620007a7816200077c565b92915050565b600067ffffffffffffffff821115620007cb57620007ca6200059f565b5b602082029050602081019050919050565b600080fd5b6000620007f8620007f284620007ad565b62000604565b905080838252602082019050602084028301858111156200081e576200081d620007dc565b5b835b818110156200084b578062000836888262000731565b84526020840193505060208101905062000820565b5050509392505050565b600082601f8301126200086d576200086c62000584565b5b81516200087f848260208601620007e1565b91505092915050565b600080600080600080600060e0888a031215620008aa57620008a96200057a565b5b600088015167ffffffffffffffff811115620008cb57620008ca6200057f565b5b620008d98a828b01620006da565b975050602088015167ffffffffffffffff811115620008fd57620008fc6200057f565b5b6200090b8a828b01620006da565b965050604088015167ffffffffffffffff8111156200092f576200092e6200057f565b5b6200093d8a828b01620006da565b9550506060620009508a828b0162000731565b9450506080620009638a828b0162000796565b93505060a0620009768a828b0162000796565b92505060c088015167ffffffffffffffff8111156200099a57620009996200057f565b5b620009a88a828b0162000855565b91505092959891949750929550565b600082825260208201905092915050565b7f4e4f545f434f4e54524143545f41444452455353000000000000000000000000600082015250565b600062000a00601483620009b7565b915062000a0d82620009c8565b602082019050919050565b6000602082019050818103600083015262000a3381620009f1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b62000a748162000768565b82525050565b600060208201905062000a91600083018462000a69565b92915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000acf601083620009b7565b915062000adc8262000a97565b602082019050919050565b6000602082019050818103600083015262000b028162000ac0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000b5157607f821691505b60208210810362000b675762000b6662000b09565b5b50919050565b615e1a8062000b7d6000396000f3fe6080604052600436106102885760003560e01c80635c975abb1161015a578063a0bcfc7f116100c1578063d5abeb011161007a578063d5abeb01146109ac578063e39c2092146109d7578063e985e9c5146109e1578063f2fde38b14610a1e578063f88f6fce14610a47578063f9afb26a14610a6357610288565b8063a0bcfc7f146108ad578063a22cb465146108d6578063a4a055b3146108ff578063ae90b2131461091b578063b88d4fde14610946578063c87b56dd1461096f57610288565b80638456cb59116101135780638456cb59146107ab5780638da5cb5b146107c257806395d89b41146107ed57806396db752a1461081857806399495762146108595780639abc83201461088257610288565b80635c975abb146106aa5780636352211e146106d55780636f8b44b0146107125780637045b22a1461073b57806370a0823114610757578063715018a61461079457610288565b806323b872dd116101fe5780632f745c59116101b75780632f745c5914610586578063382a2914146105c35780633e9af518146105ec5780633f4ba83a1461062d57806342842e0e146106445780634f6ccce71461066d57610288565b806323b872dd1461048c57806324600fc3146104b5578063265b5150146104cc5780632b85831f146104f75780632ca5ffb6146105345780632f73a4361461055d57610288565b80630f094bb1116102505780630f094bb114610384578063127a58b0146103a057806318160ddd146103bc57806319b3d7a3146103e75780631e42200014610412578063221a50521461044f57610288565b806301ffc9a71461028d578063045f7850146102ca57806306fdde03146102f3578063081812fc1461031e578063095ea7b31461035b575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613d8a565b610a8c565b6040516102c19190613dd2565b60405180910390f35b3480156102d657600080fd5b506102f160048036038101906102ec9190613e81565b610b06565b005b3480156102ff57600080fd5b50610308610b24565b6040516103159190613f5a565b60405180910390f35b34801561032a57600080fd5b5061034560048036038101906103409190613f7c565b610bb6565b6040516103529190613fb8565b60405180910390f35b34801561036757600080fd5b50610382600480360381019061037d9190613e81565b610bfc565b005b61039e60048036038101906103999190614038565b610d13565b005b6103ba60048036038101906103b591906140ee565b610de6565b005b3480156103c857600080fd5b506103d1610f13565b6040516103de91906141a4565b60405180910390f35b3480156103f357600080fd5b506103fc610f20565b6040516104099190613dd2565b60405180910390f35b34801561041e57600080fd5b50610439600480360381019061043491906141bf565b610f33565b6040516104469190613dd2565b60405180910390f35b34801561045b57600080fd5b5061047660048036038101906104719190614038565b611024565b60405161048391906142f1565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae9190614313565b611142565b005b3480156104c157600080fd5b506104ca6111a2565b005b3480156104d857600080fd5b506104e16111d8565b6040516104ee9190613fb8565b60405180910390f35b34801561050357600080fd5b5061051e60048036038101906105199190613e81565b6111fe565b60405161052b9190613dd2565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190614392565b611269565b005b34801561056957600080fd5b50610584600480360381019061057f9190614455565b611344565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613e81565b611404565b6040516105ba91906141a4565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e591906144e2565b6114a9565b005b3480156105f857600080fd5b50610613600480360381019061060e91906144e2565b6114f5565b60405161062495949392919061450f565b60405180910390f35b34801561063957600080fd5b50610642611679565b005b34801561065057600080fd5b5061066b60048036038101906106669190614313565b61168b565b005b34801561067957600080fd5b50610694600480360381019061068f9190613f7c565b6116ab565b6040516106a191906141a4565b60405180910390f35b3480156106b657600080fd5b506106bf61171c565b6040516106cc9190613dd2565b60405180910390f35b3480156106e157600080fd5b506106fc60048036038101906106f79190613f7c565b611733565b6040516107099190613fb8565b60405180910390f35b34801561071e57600080fd5b5061073960048036038101906107349190613f7c565b6117e4565b005b61075560048036038101906107509190614562565b6117f6565b005b34801561076357600080fd5b5061077e600480360381019061077991906144e2565b61182f565b60405161078b91906141a4565b60405180910390f35b3480156107a057600080fd5b506107a96118e6565b005b3480156107b757600080fd5b506107c06118fa565b005b3480156107ce57600080fd5b506107d761190c565b6040516107e49190613fb8565b60405180910390f35b3480156107f957600080fd5b50610802611936565b60405161080f9190613f5a565b60405180910390f35b34801561082457600080fd5b5061083f600480360381019061083a9190613f7c565b6119c8565b60405161085095949392919061450f565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b91906145af565b611a70565b005b34801561088e57600080fd5b50610897611ad7565b6040516108a49190613f5a565b60405180910390f35b3480156108b957600080fd5b506108d460048036038101906108cf9190614645565b611b65565b005b3480156108e257600080fd5b506108fd60048036038101906108f891906145af565b611b83565b005b61091960048036038101906109149190614038565b611b99565b005b34801561092757600080fd5b50610930611c78565b60405161093d9190613fb8565b60405180910390f35b34801561095257600080fd5b5061096d600480360381019061096891906147c2565b611c9e565b005b34801561097b57600080fd5b5061099660048036038101906109919190613f7c565b611d00565b6040516109a39190613f5a565b60405180910390f35b3480156109b857600080fd5b506109c1611d68565b6040516109ce91906141a4565b60405180910390f35b6109df611d6e565b005b3480156109ed57600080fd5b50610a086004803603810190610a039190614845565b611e04565b604051610a159190613dd2565b60405180910390f35b348015610a2a57600080fd5b50610a456004803603810190610a4091906144e2565b611e98565b005b610a616004803603810190610a5c9190614885565b611f1b565b005b348015610a6f57600080fd5b50610a8a6004803603810190610a859190614562565b611ffe565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aff5750610afe82612243565b5b9050919050565b610b0e612325565b610b166123a3565b610b2082826123ed565b5050565b606060008054610b3390614914565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5f90614914565b8015610bac5780601f10610b8157610100808354040283529160200191610bac565b820191906000526020600020905b815481529060010190602001808311610b8f57829003601f168201915b5050505050905090565b6000610bc18261248a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0782611733565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e906149b7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c966124d5565b73ffffffffffffffffffffffffffffffffffffffff161480610cc55750610cc481610cbf6124d5565b611e04565b5b610d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfb90614a49565b60405180910390fd5b610d0e83836124dd565b505050565b610d1b612325565b6000806000806000610d4e601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166114f5565b94509450945094509450808015610d63575083155b610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990614ab5565b60405180910390fd5b610dae88868585612596565b610ddc601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168989896126d0565b5050505050505050565b610dee6123a3565b6000806000806000610dff8b6119c8565b94509450945094509450808015610e14575083155b610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90614ab5565b60405180910390fd5b610e5f8b338c8c610f33565b610e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9590614b21565b60405180910390fd5b610eaa33868585612596565b8434610eb69190614b9f565b8787905014610efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef190614c1c565b60405180910390fd5b610f06883389896126d0565b5050505050505050505050565b6000600880549050905090565b600a60159054906101000a900460ff1681565b60006010600086815260200190815260200160002060050160009054906101000a900460ff168015610f7d575060006010600087815260200190815260200160002050602060ff16115b1561101757600084604051602001610f959190614c84565b60405160208183030381529060405280519060200120905061100f848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010600089815260200190815260200160002060000154836128f3565b91505061101c565b600090505b949350505050565b606060008383905067ffffffffffffffff81111561104557611044614697565b5b6040519080825280602002602001820160405280156110735781602001602082028036833780820191505090505b50905060005b8484905081101561113657601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008686848181106110db576110da614c9f565b5b90506020020135815260200190815260200160002060009054906101000a900460ff1682828151811061111157611110614c9f565b5b602002602001019015159081151581525050808061112e90614cce565b915050611079565b50809150509392505050565b61115361114d6124d5565b8261290a565b611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990614d88565b60405180910390fd5b61119d83838361299f565b505050565b6111aa612325565b6111d6600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647612c05565b565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600083815260200190815260200160002060009054906101000a900460ff16905092915050565b611271612325565b6040518060a001604052808681526020018515158152602001848152602001838152602001821515815250600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908315150217905550604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550905050505050505050565b61134c612325565b6040518060c0016040528086815260200185815260200184151581526020018381526020018281526020016001151581525060106000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff021916908315150217905550606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff021916908315150217905550905050505050505050565b600061140f8361182f565b8210611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790614e1a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6114b1612325565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806000806000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160009054906101000a900460ff16600f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff169450945094509450945091939590929450565b611681612325565b611689612d25565b565b6116a683838360405180602001604052806000815250611c9e565b505050565b60006116b5610f13565b82106116f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ed90614eac565b60405180910390fd5b6008828154811061170a57611709614c9f565b5b90600052602060002001549050919050565b6000600a60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d290614f18565b60405180910390fd5b80915050919050565b6117ec612325565b80600e8190555050565b6117fe6123a3565b61182b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168383611b99565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361189f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189690614faa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6118ee612325565b6118f86000612d88565b565b611902612325565b61190a612e4e565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461194590614914565b80601f016020809104026020016040519081016040528092919081815260200182805461197190614914565b80156119be5780601f10611993576101008083540402835291602001916119be565b820191906000526020600020905b8154815290600101906020018083116119a157829003601f168201915b5050505050905090565b600080600080600060106000878152602001908152602001600020600101546010600088815260200190815260200160002060020160009054906101000a900460ff166010600089815260200190815260200160002060030154601060008a815260200190815260200160002060040154601060008b815260200190815260200160002060050160009054906101000a900460ff169450945094509450945091939590929450565b611a78612325565b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60156101000a81548160ff0219169083151502179055505050565b600c8054611ae490614914565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1090614914565b8015611b5d5780601f10611b3257610100808354040283529160200191611b5d565b820191906000526020600020905b815481529060010190602001808311611b4057829003601f168201915b505050505081565b611b6d612325565b8181600c9190611b7e929190613c7b565b505050565b611b95611b8e6124d5565b8383612eb1565b5050565b611ba16123a3565b6000806000806000611bb2886114f5565b94509450945094509450808015611bc7575083155b611c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfd90614ab5565b60405180910390fd5b611c1233868585612596565b8434611c1e9190614b9f565b8787905014611c62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5990614c1c565b60405180910390fd5b611c6e883389896126d0565b5050505050505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611caf611ca96124d5565b8361290a565b611cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce590614d88565b60405180910390fd5b611cfa8484848461301d565b50505050565b6060611d0b8261248a565b6000611d15613079565b90506000815111611d355760405180602001604052806000815250611d60565b80611d3f846130a1565b604051602001611d50929190615006565b6040516020818303038152906040525b915050919050565b600e5481565b611d766123a3565b6000806000806000611d8860006114f5565b94509450945094509450808015611d9d575083155b611ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd390615076565b60405180910390fd5b611de833868585612596565b611dfd338634611df89190614b9f565b6123ed565b5050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ea0612325565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0690615108565b60405180910390fd5b611f1881612d88565b50565b611f236123a3565b6000806000806000611f34886119c8565b94509450945094509450808015611f49575083155b611f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7f90614ab5565b60405180910390fd5b611f9488338989610f33565b611fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fca90614b21565b60405180910390fd5b611fdf33868585612596565b611ff4338634611fef9190614b9f565b6123ed565b5050505050505050565b600a60159054906101000a900460ff1661204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490615174565b60405180910390fd5b612078600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612220565b6120b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ae906151e0565b60405180910390fd5b60005b82829050811015612189573373ffffffffffffffffffffffffffffffffffffffff166120fe8484848181106120f2576120f1614c9f565b5b90506020020135611733565b73ffffffffffffffffffffffffffffffffffffffff1614612154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214b9061524c565b60405180910390fd5b61217683838381811061216a57612169614c9f565b5b90506020020135613201565b808061218190614cce565b9150506120ba565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c3defc9233848490506040518363ffffffff1660e01b81526004016121ea92919061526c565b600060405180830381600087803b15801561220457600080fd5b505af1158015612218573d6000803e3d6000fd5b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061230e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061231e575061231d8261331e565b5b9050919050565b61232d6124d5565b73ffffffffffffffffffffffffffffffffffffffff1661234b61190c565b73ffffffffffffffffffffffffffffffffffffffff16146123a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612398906152e1565b60405180910390fd5b565b6123ab61171c565b156123eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e29061534d565b60405180910390fd5b565b600e54816123f9610f13565b612403919061536d565b1115612444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243b9061540f565b60405180910390fd5b60005b81811015612485576124596011613388565b6000612465601161339e565b905061247184826133ac565b50808061247d90614cce565b915050612447565b505050565b61249381613585565b6124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c990614f18565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661255083611733565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600083346125a4919061542f565b1480156125c65750348384346125ba9190614b9f565b6125c49190615460565b145b612605576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fc90615506565b60405180910390fd5b600082148061261f575081833461261c9190614b9f565b11155b61265e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265590615572565b60405180910390fd5b600081148061268b57508083346126759190614b9f565b61267e8661182f565b612688919061536d565b11155b6126ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c1906155de565b60405180910390fd5b50505050565b600084905060005b838390508110156128de578473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e86868581811061272957612728614c9f565b5b905060200201356040518263ffffffff1660e01b815260040161274c91906141a4565b602060405180830381865afa158015612769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278d9190615613565b73ffffffffffffffffffffffffffffffffffffffff16146127e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127da9061568c565b60405180910390fd5b612806868585848181106127fa576127f9614c9f565b5b905060200201356111fe565b15612846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283d906156f8565b60405180910390fd5b6001601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600086868581811061289f5761289e614c9f565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806128d690614cce565b9150506126d8565b506128ec84848490506123ed565b5050505050565b60008261290085846135f1565b1490509392505050565b60008061291683611733565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061295857506129578185611e04565b5b8061299657508373ffffffffffffffffffffffffffffffffffffffff1661297e84610bb6565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129bf82611733565b73ffffffffffffffffffffffffffffffffffffffff1614612a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0c9061578a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7b9061581c565b60405180910390fd5b612a8f838383613647565b612a9a6000826124dd565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612aea919061583c565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b41919061536d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c00838383613759565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6b906158bc565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612c9a9061590d565b60006040518083038185875af1925050503d8060008114612cd7576040519150601f19603f3d011682016040523d82523d6000602084013e612cdc565b606091505b5050905080612d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d179061596e565b60405180910390fd5b505050565b612d2d61375e565b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612d716124d5565b604051612d7e9190613fb8565b60405180910390a1565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e566123a3565b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612e9a6124d5565b604051612ea79190613fb8565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f16906159da565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130109190613dd2565b60405180910390a3505050565b61302884848461299f565b613034848484846137a7565b613073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306a90615a6c565b60405180910390fd5b50505050565b6060600c60405160200161308d9190615b6c565b604051602081830303815290604052905090565b6060600082036130e8576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131fc565b600082905060005b6000821461311a57808061310390614cce565b915050600a826131139190614b9f565b91506130f0565b60008167ffffffffffffffff81111561313657613135614697565b5b6040519080825280601f01601f1916602001820160405280156131685781602001600182028036833780820191505090505b5090505b600085146131f557600182613181919061583c565b9150600a85613190919061542f565b603061319c919061536d565b60f81b8183815181106131b2576131b1614c9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131ee9190614b9f565b945061316c565b8093505050505b919050565b600061320c82611733565b905061321a81600084613647565b6132256000836124dd565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613275919061583c565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461331a81600084613759565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361341b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341290615bda565b60405180910390fd5b61342481613585565b15613464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345b90615c46565b60405180910390fd5b61347060008383613647565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134c0919061536d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461358160008383613759565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008082905060005b845181101561363c576136278286838151811061361a57613619614c9f565b5b602002602001015161392e565b9150808061363490614cce565b9150506135fa565b508091505092915050565b613652838383613959565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036136945761368f8161395e565b6136d3565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136d2576136d183826139a7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036137155761371081613b14565b613754565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613753576137528282613be5565b5b5b505050565b505050565b61376661171c565b6137a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379c90615cb2565b60405180910390fd5b565b60006137c88473ffffffffffffffffffffffffffffffffffffffff16612220565b15613921578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137f16124d5565b8786866040518563ffffffff1660e01b81526004016138139493929190615d27565b6020604051808303816000875af192505050801561384f57506040513d601f19601f8201168201806040525081019061384c9190615d88565b60015b6138d1573d806000811461387f576040519150601f19603f3d011682016040523d82523d6000602084013e613884565b606091505b5060008151036138c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138c090615a6c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613926565b600190505b949350505050565b6000818310613946576139418284613c64565b613951565b6139508383613c64565b5b905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139b48461182f565b6139be919061583c565b9050600060076000848152602001908152602001600020549050818114613aa3576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613b28919061583c565b9050600060096000848152602001908152602001600020549050600060088381548110613b5857613b57614c9f565b5b906000526020600020015490508060088381548110613b7a57613b79614c9f565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613bc957613bc8615db5565b5b6001900381819060005260206000200160009055905550505050565b6000613bf08361182f565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b828054613c8790614914565b90600052602060002090601f016020900481019282613ca95760008555613cf0565b82601f10613cc257803560ff1916838001178555613cf0565b82800160010185558215613cf0579182015b82811115613cef578235825591602001919060010190613cd4565b5b509050613cfd9190613d01565b5090565b5b80821115613d1a576000816000905550600101613d02565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d6781613d32565b8114613d7257600080fd5b50565b600081359050613d8481613d5e565b92915050565b600060208284031215613da057613d9f613d28565b5b6000613dae84828501613d75565b91505092915050565b60008115159050919050565b613dcc81613db7565b82525050565b6000602082019050613de76000830184613dc3565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e1882613ded565b9050919050565b613e2881613e0d565b8114613e3357600080fd5b50565b600081359050613e4581613e1f565b92915050565b6000819050919050565b613e5e81613e4b565b8114613e6957600080fd5b50565b600081359050613e7b81613e55565b92915050565b60008060408385031215613e9857613e97613d28565b5b6000613ea685828601613e36565b9250506020613eb785828601613e6c565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613efb578082015181840152602081019050613ee0565b83811115613f0a576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f2c82613ec1565b613f368185613ecc565b9350613f46818560208601613edd565b613f4f81613f10565b840191505092915050565b60006020820190508181036000830152613f748184613f21565b905092915050565b600060208284031215613f9257613f91613d28565b5b6000613fa084828501613e6c565b91505092915050565b613fb281613e0d565b82525050565b6000602082019050613fcd6000830184613fa9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613ff857613ff7613fd3565b5b8235905067ffffffffffffffff81111561401557614014613fd8565b5b60208301915083602082028301111561403157614030613fdd565b5b9250929050565b60008060006040848603121561405157614050613d28565b5b600061405f86828701613e36565b935050602084013567ffffffffffffffff8111156140805761407f613d2d565b5b61408c86828701613fe2565b92509250509250925092565b60008083601f8401126140ae576140ad613fd3565b5b8235905067ffffffffffffffff8111156140cb576140ca613fd8565b5b6020830191508360208202830111156140e7576140e6613fdd565b5b9250929050565b6000806000806000806080878903121561410b5761410a613d28565b5b600061411989828a01613e6c565b965050602087013567ffffffffffffffff81111561413a57614139613d2d565b5b61414689828a01614098565b9550955050604061415989828a01613e36565b935050606087013567ffffffffffffffff81111561417a57614179613d2d565b5b61418689828a01613fe2565b92509250509295509295509295565b61419e81613e4b565b82525050565b60006020820190506141b96000830184614195565b92915050565b600080600080606085870312156141d9576141d8613d28565b5b60006141e787828801613e6c565b94505060206141f887828801613e36565b935050604085013567ffffffffffffffff81111561421957614218613d2d565b5b61422587828801614098565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61426881613db7565b82525050565b600061427a838361425f565b60208301905092915050565b6000602082019050919050565b600061429e82614233565b6142a8818561423e565b93506142b38361424f565b8060005b838110156142e45781516142cb888261426e565b97506142d683614286565b9250506001810190506142b7565b5085935050505092915050565b6000602082019050818103600083015261430b8184614293565b905092915050565b60008060006060848603121561432c5761432b613d28565b5b600061433a86828701613e36565b935050602061434b86828701613e36565b925050604061435c86828701613e6c565b9150509250925092565b61436f81613db7565b811461437a57600080fd5b50565b60008135905061438c81614366565b92915050565b60008060008060008060c087890312156143af576143ae613d28565b5b60006143bd89828a01613e36565b96505060206143ce89828a01613e6c565b95505060406143df89828a0161437d565b94505060606143f089828a01613e6c565b935050608061440189828a01613e6c565b92505060a061441289828a0161437d565b9150509295509295509295565b6000819050919050565b6144328161441f565b811461443d57600080fd5b50565b60008135905061444f81614429565b92915050565b60008060008060008060c0878903121561447257614471613d28565b5b600061448089828a01613e6c565b965050602061449189828a01614440565b95505060406144a289828a01613e6c565b94505060606144b389828a0161437d565b93505060806144c489828a01613e6c565b92505060a06144d589828a01613e6c565b9150509295509295509295565b6000602082840312156144f8576144f7613d28565b5b600061450684828501613e36565b91505092915050565b600060a0820190506145246000830188614195565b6145316020830187613dc3565b61453e6040830186614195565b61454b6060830185614195565b6145586080830184613dc3565b9695505050505050565b6000806020838503121561457957614578613d28565b5b600083013567ffffffffffffffff81111561459757614596613d2d565b5b6145a385828601613fe2565b92509250509250929050565b600080604083850312156145c6576145c5613d28565b5b60006145d485828601613e36565b92505060206145e58582860161437d565b9150509250929050565b60008083601f84011261460557614604613fd3565b5b8235905067ffffffffffffffff81111561462257614621613fd8565b5b60208301915083600182028301111561463e5761463d613fdd565b5b9250929050565b6000806020838503121561465c5761465b613d28565b5b600083013567ffffffffffffffff81111561467a57614679613d2d565b5b614686858286016145ef565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6146cf82613f10565b810181811067ffffffffffffffff821117156146ee576146ed614697565b5b80604052505050565b6000614701613d1e565b905061470d82826146c6565b919050565b600067ffffffffffffffff82111561472d5761472c614697565b5b61473682613f10565b9050602081019050919050565b82818337600083830152505050565b600061476561476084614712565b6146f7565b90508281526020810184848401111561478157614780614692565b5b61478c848285614743565b509392505050565b600082601f8301126147a9576147a8613fd3565b5b81356147b9848260208601614752565b91505092915050565b600080600080608085870312156147dc576147db613d28565b5b60006147ea87828801613e36565b94505060206147fb87828801613e36565b935050604061480c87828801613e6c565b925050606085013567ffffffffffffffff81111561482d5761482c613d2d565b5b61483987828801614794565b91505092959194509250565b6000806040838503121561485c5761485b613d28565b5b600061486a85828601613e36565b925050602061487b85828601613e36565b9150509250929050565b60008060006040848603121561489e5761489d613d28565b5b60006148ac86828701613e6c565b935050602084013567ffffffffffffffff8111156148cd576148cc613d2d565b5b6148d986828701614098565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061492c57607f821691505b60208210810361493f5761493e6148e5565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006149a1602183613ecc565b91506149ac82614945565b604082019050919050565b600060208201905081810360008301526149d081614994565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614a33603e83613ecc565b9150614a3e826149d7565b604082019050919050565b60006020820190508181036000830152614a6281614a26565b9050919050565b7f4e4f545f56414c49445f4f525f50415553454400000000000000000000000000600082015250565b6000614a9f601383613ecc565b9150614aaa82614a69565b602082019050919050565b60006020820190508181036000830152614ace81614a92565b9050919050565b7f4e4f545f57484954454c49535445440000000000000000000000000000000000600082015250565b6000614b0b600f83613ecc565b9150614b1682614ad5565b602082019050919050565b60006020820190508181036000830152614b3a81614afe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614baa82613e4b565b9150614bb583613e4b565b925082614bc557614bc4614b41565b5b828204905092915050565b7f494e565f5041594d454e54000000000000000000000000000000000000000000600082015250565b6000614c06600b83613ecc565b9150614c1182614bd0565b602082019050919050565b60006020820190508181036000830152614c3581614bf9565b9050919050565b60008160601b9050919050565b6000614c5482614c3c565b9050919050565b6000614c6682614c49565b9050919050565b614c7e614c7982613e0d565b614c5b565b82525050565b6000614c908284614c6d565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614cd982613e4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614d0b57614d0a614b70565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614d72602e83613ecc565b9150614d7d82614d16565b604082019050919050565b60006020820190508181036000830152614da181614d65565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614e04602b83613ecc565b9150614e0f82614da8565b604082019050919050565b60006020820190508181036000830152614e3381614df7565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614e96602c83613ecc565b9150614ea182614e3a565b604082019050919050565b60006020820190508181036000830152614ec581614e89565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614f02601883613ecc565b9150614f0d82614ecc565b602082019050919050565b60006020820190508181036000830152614f3181614ef5565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614f94602983613ecc565b9150614f9f82614f38565b604082019050919050565b60006020820190508181036000830152614fc381614f87565b9050919050565b600081905092915050565b6000614fe082613ec1565b614fea8185614fca565b9350614ffa818560208601613edd565b80840191505092915050565b60006150128285614fd5565b915061501e8284614fd5565b91508190509392505050565b7f5055424c49435f4d494e545f5041555345440000000000000000000000000000600082015250565b6000615060601283613ecc565b915061506b8261502a565b602082019050919050565b6000602082019050818103600083015261508f81615053565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006150f2602683613ecc565b91506150fd82615096565b604082019050919050565b60006020820190508181036000830152615121816150e5565b9050919050565b7f52454445454d5f50415553454400000000000000000000000000000000000000600082015250565b600061515e600d83613ecc565b915061516982615128565b602082019050919050565b6000602082019050818103600083015261518d81615151565b9050919050565b7f494e56414c49445f414444524553530000000000000000000000000000000000600082015250565b60006151ca600f83613ecc565b91506151d582615194565b602082019050919050565b600060208201905081810360008301526151f9816151bd565b9050919050565b7f4e4f545f504153535f4f574e4552000000000000000000000000000000000000600082015250565b6000615236600e83613ecc565b915061524182615200565b602082019050919050565b6000602082019050818103600083015261526581615229565b9050919050565b60006040820190506152816000830185613fa9565b61528e6020830184614195565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006152cb602083613ecc565b91506152d682615295565b602082019050919050565b600060208201905081810360008301526152fa816152be565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615337601083613ecc565b915061534282615301565b602082019050919050565b600060208201905081810360008301526153668161532a565b9050919050565b600061537882613e4b565b915061538383613e4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156153b8576153b7614b70565b5b828201905092915050565b7f4d41585f535550504c595f4552524f5200000000000000000000000000000000600082015250565b60006153f9601083613ecc565b9150615404826153c3565b602082019050919050565b60006020820190508181036000830152615428816153ec565b9050919050565b600061543a82613e4b565b915061544583613e4b565b92508261545557615454614b41565b5b828206905092915050565b600061546b82613e4b565b915061547683613e4b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156154af576154ae614b70565b5b828202905092915050565b7f494e565f4554485f544f54414c00000000000000000000000000000000000000600082015250565b60006154f0600d83613ecc565b91506154fb826154ba565b602082019050919050565b6000602082019050818103600083015261551f816154e3565b9050919050565b7f5045525f54585f4552524f520000000000000000000000000000000000000000600082015250565b600061555c600c83613ecc565b915061556782615526565b602082019050919050565b6000602082019050818103600083015261558b8161554f565b9050919050565b7f5045525f57414c4c45545f4552524f5200000000000000000000000000000000600082015250565b60006155c8601083613ecc565b91506155d382615592565b602082019050919050565b600060208201905081810360008301526155f7816155bb565b9050919050565b60008151905061560d81613e1f565b92915050565b60006020828403121561562957615628613d28565b5b6000615637848285016155fe565b91505092915050565b7f4e4f545f4f574e45520000000000000000000000000000000000000000000000600082015250565b6000615676600983613ecc565b915061568182615640565b602082019050919050565b600060208201905081810360008301526156a581615669565b9050919050565b7f555345445f544f4b454e00000000000000000000000000000000000000000000600082015250565b60006156e2600a83613ecc565b91506156ed826156ac565b602082019050919050565b60006020820190508181036000830152615711816156d5565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615774602583613ecc565b915061577f82615718565b604082019050919050565b600060208201905081810360008301526157a381615767565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615806602483613ecc565b9150615811826157aa565b604082019050919050565b60006020820190508181036000830152615835816157f9565b9050919050565b600061584782613e4b565b915061585283613e4b565b92508282101561586557615864614b70565b5b828203905092915050565b7f494e56414c49445f5041594d454e545f41444452455353000000000000000000600082015250565b60006158a6601783613ecc565b91506158b182615870565b602082019050919050565b600060208201905081810360008301526158d581615899565b9050919050565b600081905092915050565b50565b60006158f76000836158dc565b9150615902826158e7565b600082019050919050565b6000615918826158ea565b9150819050919050565b7f4661696c656420746f2073656e64206574686572000000000000000000000000600082015250565b6000615958601483613ecc565b915061596382615922565b602082019050919050565b600060208201905081810360008301526159878161594b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006159c4601983613ecc565b91506159cf8261598e565b602082019050919050565b600060208201905081810360008301526159f3816159b7565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615a56603283613ecc565b9150615a61826159fa565b604082019050919050565b60006020820190508181036000830152615a8581615a49565b9050919050565b60008190508160005260206000209050919050565b60008154615aae81614914565b615ab88186614fca565b94506001821660008114615ad35760018114615ae457615b17565b60ff19831686528186019350615b17565b615aed85615a8c565b60005b83811015615b0f57815481890152600182019150602081019050615af0565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000615b56600183614fca565b9150615b6182615b20565b600182019050919050565b6000615b788284615aa1565b9150615b8382615b49565b915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615bc4602083613ecc565b9150615bcf82615b8e565b602082019050919050565b60006020820190508181036000830152615bf381615bb7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615c30601c83613ecc565b9150615c3b82615bfa565b602082019050919050565b60006020820190508181036000830152615c5f81615c23565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615c9c601483613ecc565b9150615ca782615c66565b602082019050919050565b60006020820190508181036000830152615ccb81615c8f565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615cf982615cd2565b615d038185615cdd565b9350615d13818560208601613edd565b615d1c81613f10565b840191505092915050565b6000608082019050615d3c6000830187613fa9565b615d496020830186613fa9565b615d566040830185614195565b8181036060830152615d688184615cee565b905095945050505050565b600081519050615d8281613d5e565b92915050565b600060208284031215615d9e57615d9d613d28565b5b6000615dac84828501615d73565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212205a83fb6390fb6857a5c7adc5f8d71854c92d3dc4d7b3a5d3a3c29bbb48ed474664736f6c634300080e003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000002710000000000000000000000000a03e357a09e761e8d486a1419c74bf42e8d1b0640000000000000000000000006193bc379321f14159c73ab75a650bc5305c27ee00000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000002f53696c6b732054686f726f756768627265642052616365686f727365732028556e72657665616c6564292032303232000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075354523230323200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f72616365686f727365732e73696c6b732e696f2f6170692f6d6574616461746100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000522810a26e50000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode
0x6080604052600436106102885760003560e01c80635c975abb1161015a578063a0bcfc7f116100c1578063d5abeb011161007a578063d5abeb01146109ac578063e39c2092146109d7578063e985e9c5146109e1578063f2fde38b14610a1e578063f88f6fce14610a47578063f9afb26a14610a6357610288565b8063a0bcfc7f146108ad578063a22cb465146108d6578063a4a055b3146108ff578063ae90b2131461091b578063b88d4fde14610946578063c87b56dd1461096f57610288565b80638456cb59116101135780638456cb59146107ab5780638da5cb5b146107c257806395d89b41146107ed57806396db752a1461081857806399495762146108595780639abc83201461088257610288565b80635c975abb146106aa5780636352211e146106d55780636f8b44b0146107125780637045b22a1461073b57806370a0823114610757578063715018a61461079457610288565b806323b872dd116101fe5780632f745c59116101b75780632f745c5914610586578063382a2914146105c35780633e9af518146105ec5780633f4ba83a1461062d57806342842e0e146106445780634f6ccce71461066d57610288565b806323b872dd1461048c57806324600fc3146104b5578063265b5150146104cc5780632b85831f146104f75780632ca5ffb6146105345780632f73a4361461055d57610288565b80630f094bb1116102505780630f094bb114610384578063127a58b0146103a057806318160ddd146103bc57806319b3d7a3146103e75780631e42200014610412578063221a50521461044f57610288565b806301ffc9a71461028d578063045f7850146102ca57806306fdde03146102f3578063081812fc1461031e578063095ea7b31461035b575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613d8a565b610a8c565b6040516102c19190613dd2565b60405180910390f35b3480156102d657600080fd5b506102f160048036038101906102ec9190613e81565b610b06565b005b3480156102ff57600080fd5b50610308610b24565b6040516103159190613f5a565b60405180910390f35b34801561032a57600080fd5b5061034560048036038101906103409190613f7c565b610bb6565b6040516103529190613fb8565b60405180910390f35b34801561036757600080fd5b50610382600480360381019061037d9190613e81565b610bfc565b005b61039e60048036038101906103999190614038565b610d13565b005b6103ba60048036038101906103b591906140ee565b610de6565b005b3480156103c857600080fd5b506103d1610f13565b6040516103de91906141a4565b60405180910390f35b3480156103f357600080fd5b506103fc610f20565b6040516104099190613dd2565b60405180910390f35b34801561041e57600080fd5b50610439600480360381019061043491906141bf565b610f33565b6040516104469190613dd2565b60405180910390f35b34801561045b57600080fd5b5061047660048036038101906104719190614038565b611024565b60405161048391906142f1565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae9190614313565b611142565b005b3480156104c157600080fd5b506104ca6111a2565b005b3480156104d857600080fd5b506104e16111d8565b6040516104ee9190613fb8565b60405180910390f35b34801561050357600080fd5b5061051e60048036038101906105199190613e81565b6111fe565b60405161052b9190613dd2565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190614392565b611269565b005b34801561056957600080fd5b50610584600480360381019061057f9190614455565b611344565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613e81565b611404565b6040516105ba91906141a4565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e591906144e2565b6114a9565b005b3480156105f857600080fd5b50610613600480360381019061060e91906144e2565b6114f5565b60405161062495949392919061450f565b60405180910390f35b34801561063957600080fd5b50610642611679565b005b34801561065057600080fd5b5061066b60048036038101906106669190614313565b61168b565b005b34801561067957600080fd5b50610694600480360381019061068f9190613f7c565b6116ab565b6040516106a191906141a4565b60405180910390f35b3480156106b657600080fd5b506106bf61171c565b6040516106cc9190613dd2565b60405180910390f35b3480156106e157600080fd5b506106fc60048036038101906106f79190613f7c565b611733565b6040516107099190613fb8565b60405180910390f35b34801561071e57600080fd5b5061073960048036038101906107349190613f7c565b6117e4565b005b61075560048036038101906107509190614562565b6117f6565b005b34801561076357600080fd5b5061077e600480360381019061077991906144e2565b61182f565b60405161078b91906141a4565b60405180910390f35b3480156107a057600080fd5b506107a96118e6565b005b3480156107b757600080fd5b506107c06118fa565b005b3480156107ce57600080fd5b506107d761190c565b6040516107e49190613fb8565b60405180910390f35b3480156107f957600080fd5b50610802611936565b60405161080f9190613f5a565b60405180910390f35b34801561082457600080fd5b5061083f600480360381019061083a9190613f7c565b6119c8565b60405161085095949392919061450f565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b91906145af565b611a70565b005b34801561088e57600080fd5b50610897611ad7565b6040516108a49190613f5a565b60405180910390f35b3480156108b957600080fd5b506108d460048036038101906108cf9190614645565b611b65565b005b3480156108e257600080fd5b506108fd60048036038101906108f891906145af565b611b83565b005b61091960048036038101906109149190614038565b611b99565b005b34801561092757600080fd5b50610930611c78565b60405161093d9190613fb8565b60405180910390f35b34801561095257600080fd5b5061096d600480360381019061096891906147c2565b611c9e565b005b34801561097b57600080fd5b5061099660048036038101906109919190613f7c565b611d00565b6040516109a39190613f5a565b60405180910390f35b3480156109b857600080fd5b506109c1611d68565b6040516109ce91906141a4565b60405180910390f35b6109df611d6e565b005b3480156109ed57600080fd5b50610a086004803603810190610a039190614845565b611e04565b604051610a159190613dd2565b60405180910390f35b348015610a2a57600080fd5b50610a456004803603810190610a4091906144e2565b611e98565b005b610a616004803603810190610a5c9190614885565b611f1b565b005b348015610a6f57600080fd5b50610a8a6004803603810190610a859190614562565b611ffe565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aff5750610afe82612243565b5b9050919050565b610b0e612325565b610b166123a3565b610b2082826123ed565b5050565b606060008054610b3390614914565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5f90614914565b8015610bac5780601f10610b8157610100808354040283529160200191610bac565b820191906000526020600020905b815481529060010190602001808311610b8f57829003601f168201915b5050505050905090565b6000610bc18261248a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0782611733565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e906149b7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c966124d5565b73ffffffffffffffffffffffffffffffffffffffff161480610cc55750610cc481610cbf6124d5565b611e04565b5b610d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfb90614a49565b60405180910390fd5b610d0e83836124dd565b505050565b610d1b612325565b6000806000806000610d4e601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166114f5565b94509450945094509450808015610d63575083155b610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990614ab5565b60405180910390fd5b610dae88868585612596565b610ddc601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168989896126d0565b5050505050505050565b610dee6123a3565b6000806000806000610dff8b6119c8565b94509450945094509450808015610e14575083155b610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90614ab5565b60405180910390fd5b610e5f8b338c8c610f33565b610e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9590614b21565b60405180910390fd5b610eaa33868585612596565b8434610eb69190614b9f565b8787905014610efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef190614c1c565b60405180910390fd5b610f06883389896126d0565b5050505050505050505050565b6000600880549050905090565b600a60159054906101000a900460ff1681565b60006010600086815260200190815260200160002060050160009054906101000a900460ff168015610f7d575060006010600087815260200190815260200160002050602060ff16115b1561101757600084604051602001610f959190614c84565b60405160208183030381529060405280519060200120905061100f848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010600089815260200190815260200160002060000154836128f3565b91505061101c565b600090505b949350505050565b606060008383905067ffffffffffffffff81111561104557611044614697565b5b6040519080825280602002602001820160405280156110735781602001602082028036833780820191505090505b50905060005b8484905081101561113657601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008686848181106110db576110da614c9f565b5b90506020020135815260200190815260200160002060009054906101000a900460ff1682828151811061111157611110614c9f565b5b602002602001019015159081151581525050808061112e90614cce565b915050611079565b50809150509392505050565b61115361114d6124d5565b8261290a565b611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990614d88565b60405180910390fd5b61119d83838361299f565b505050565b6111aa612325565b6111d6600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647612c05565b565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600083815260200190815260200160002060009054906101000a900460ff16905092915050565b611271612325565b6040518060a001604052808681526020018515158152602001848152602001838152602001821515815250600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908315150217905550604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550905050505050505050565b61134c612325565b6040518060c0016040528086815260200185815260200184151581526020018381526020018281526020016001151581525060106000888152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff021916908315150217905550606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff021916908315150217905550905050505050505050565b600061140f8361182f565b8210611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790614e1a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6114b1612325565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806000806000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160009054906101000a900460ff16600f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff169450945094509450945091939590929450565b611681612325565b611689612d25565b565b6116a683838360405180602001604052806000815250611c9e565b505050565b60006116b5610f13565b82106116f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ed90614eac565b60405180910390fd5b6008828154811061170a57611709614c9f565b5b90600052602060002001549050919050565b6000600a60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d290614f18565b60405180910390fd5b80915050919050565b6117ec612325565b80600e8190555050565b6117fe6123a3565b61182b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168383611b99565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361189f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189690614faa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6118ee612325565b6118f86000612d88565b565b611902612325565b61190a612e4e565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461194590614914565b80601f016020809104026020016040519081016040528092919081815260200182805461197190614914565b80156119be5780601f10611993576101008083540402835291602001916119be565b820191906000526020600020905b8154815290600101906020018083116119a157829003601f168201915b5050505050905090565b600080600080600060106000878152602001908152602001600020600101546010600088815260200190815260200160002060020160009054906101000a900460ff166010600089815260200190815260200160002060030154601060008a815260200190815260200160002060040154601060008b815260200190815260200160002060050160009054906101000a900460ff169450945094509450945091939590929450565b611a78612325565b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60156101000a81548160ff0219169083151502179055505050565b600c8054611ae490614914565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1090614914565b8015611b5d5780601f10611b3257610100808354040283529160200191611b5d565b820191906000526020600020905b815481529060010190602001808311611b4057829003601f168201915b505050505081565b611b6d612325565b8181600c9190611b7e929190613c7b565b505050565b611b95611b8e6124d5565b8383612eb1565b5050565b611ba16123a3565b6000806000806000611bb2886114f5565b94509450945094509450808015611bc7575083155b611c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfd90614ab5565b60405180910390fd5b611c1233868585612596565b8434611c1e9190614b9f565b8787905014611c62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5990614c1c565b60405180910390fd5b611c6e883389896126d0565b5050505050505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611caf611ca96124d5565b8361290a565b611cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce590614d88565b60405180910390fd5b611cfa8484848461301d565b50505050565b6060611d0b8261248a565b6000611d15613079565b90506000815111611d355760405180602001604052806000815250611d60565b80611d3f846130a1565b604051602001611d50929190615006565b6040516020818303038152906040525b915050919050565b600e5481565b611d766123a3565b6000806000806000611d8860006114f5565b94509450945094509450808015611d9d575083155b611ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd390615076565b60405180910390fd5b611de833868585612596565b611dfd338634611df89190614b9f565b6123ed565b5050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ea0612325565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0690615108565b60405180910390fd5b611f1881612d88565b50565b611f236123a3565b6000806000806000611f34886119c8565b94509450945094509450808015611f49575083155b611f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7f90614ab5565b60405180910390fd5b611f9488338989610f33565b611fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fca90614b21565b60405180910390fd5b611fdf33868585612596565b611ff4338634611fef9190614b9f565b6123ed565b5050505050505050565b600a60159054906101000a900460ff1661204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490615174565b60405180910390fd5b612078600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612220565b6120b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ae906151e0565b60405180910390fd5b60005b82829050811015612189573373ffffffffffffffffffffffffffffffffffffffff166120fe8484848181106120f2576120f1614c9f565b5b90506020020135611733565b73ffffffffffffffffffffffffffffffffffffffff1614612154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214b9061524c565b60405180910390fd5b61217683838381811061216a57612169614c9f565b5b90506020020135613201565b808061218190614cce565b9150506120ba565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c3defc9233848490506040518363ffffffff1660e01b81526004016121ea92919061526c565b600060405180830381600087803b15801561220457600080fd5b505af1158015612218573d6000803e3d6000fd5b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061230e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061231e575061231d8261331e565b5b9050919050565b61232d6124d5565b73ffffffffffffffffffffffffffffffffffffffff1661234b61190c565b73ffffffffffffffffffffffffffffffffffffffff16146123a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612398906152e1565b60405180910390fd5b565b6123ab61171c565b156123eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e29061534d565b60405180910390fd5b565b600e54816123f9610f13565b612403919061536d565b1115612444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243b9061540f565b60405180910390fd5b60005b81811015612485576124596011613388565b6000612465601161339e565b905061247184826133ac565b50808061247d90614cce565b915050612447565b505050565b61249381613585565b6124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c990614f18565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661255083611733565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600083346125a4919061542f565b1480156125c65750348384346125ba9190614b9f565b6125c49190615460565b145b612605576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fc90615506565b60405180910390fd5b600082148061261f575081833461261c9190614b9f565b11155b61265e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265590615572565b60405180910390fd5b600081148061268b57508083346126759190614b9f565b61267e8661182f565b612688919061536d565b11155b6126ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c1906155de565b60405180910390fd5b50505050565b600084905060005b838390508110156128de578473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e86868581811061272957612728614c9f565b5b905060200201356040518263ffffffff1660e01b815260040161274c91906141a4565b602060405180830381865afa158015612769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278d9190615613565b73ffffffffffffffffffffffffffffffffffffffff16146127e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127da9061568c565b60405180910390fd5b612806868585848181106127fa576127f9614c9f565b5b905060200201356111fe565b15612846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283d906156f8565b60405180910390fd5b6001601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600086868581811061289f5761289e614c9f565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806128d690614cce565b9150506126d8565b506128ec84848490506123ed565b5050505050565b60008261290085846135f1565b1490509392505050565b60008061291683611733565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061295857506129578185611e04565b5b8061299657508373ffffffffffffffffffffffffffffffffffffffff1661297e84610bb6565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129bf82611733565b73ffffffffffffffffffffffffffffffffffffffff1614612a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0c9061578a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7b9061581c565b60405180910390fd5b612a8f838383613647565b612a9a6000826124dd565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612aea919061583c565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b41919061536d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c00838383613759565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6b906158bc565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612c9a9061590d565b60006040518083038185875af1925050503d8060008114612cd7576040519150601f19603f3d011682016040523d82523d6000602084013e612cdc565b606091505b5050905080612d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d179061596e565b60405180910390fd5b505050565b612d2d61375e565b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612d716124d5565b604051612d7e9190613fb8565b60405180910390a1565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e566123a3565b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612e9a6124d5565b604051612ea79190613fb8565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f16906159da565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130109190613dd2565b60405180910390a3505050565b61302884848461299f565b613034848484846137a7565b613073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306a90615a6c565b60405180910390fd5b50505050565b6060600c60405160200161308d9190615b6c565b604051602081830303815290604052905090565b6060600082036130e8576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131fc565b600082905060005b6000821461311a57808061310390614cce565b915050600a826131139190614b9f565b91506130f0565b60008167ffffffffffffffff81111561313657613135614697565b5b6040519080825280601f01601f1916602001820160405280156131685781602001600182028036833780820191505090505b5090505b600085146131f557600182613181919061583c565b9150600a85613190919061542f565b603061319c919061536d565b60f81b8183815181106131b2576131b1614c9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131ee9190614b9f565b945061316c565b8093505050505b919050565b600061320c82611733565b905061321a81600084613647565b6132256000836124dd565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613275919061583c565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461331a81600084613759565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361341b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341290615bda565b60405180910390fd5b61342481613585565b15613464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345b90615c46565b60405180910390fd5b61347060008383613647565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134c0919061536d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461358160008383613759565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008082905060005b845181101561363c576136278286838151811061361a57613619614c9f565b5b602002602001015161392e565b9150808061363490614cce565b9150506135fa565b508091505092915050565b613652838383613959565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036136945761368f8161395e565b6136d3565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136d2576136d183826139a7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036137155761371081613b14565b613754565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613753576137528282613be5565b5b5b505050565b505050565b61376661171c565b6137a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379c90615cb2565b60405180910390fd5b565b60006137c88473ffffffffffffffffffffffffffffffffffffffff16612220565b15613921578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137f16124d5565b8786866040518563ffffffff1660e01b81526004016138139493929190615d27565b6020604051808303816000875af192505050801561384f57506040513d601f19601f8201168201806040525081019061384c9190615d88565b60015b6138d1573d806000811461387f576040519150601f19603f3d011682016040523d82523d6000602084013e613884565b606091505b5060008151036138c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138c090615a6c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613926565b600190505b949350505050565b6000818310613946576139418284613c64565b613951565b6139508383613c64565b5b905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139b48461182f565b6139be919061583c565b9050600060076000848152602001908152602001600020549050818114613aa3576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613b28919061583c565b9050600060096000848152602001908152602001600020549050600060088381548110613b5857613b57614c9f565b5b906000526020600020015490508060088381548110613b7a57613b79614c9f565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613bc957613bc8615db5565b5b6001900381819060005260206000200160009055905550505050565b6000613bf08361182f565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b828054613c8790614914565b90600052602060002090601f016020900481019282613ca95760008555613cf0565b82601f10613cc257803560ff1916838001178555613cf0565b82800160010185558215613cf0579182015b82811115613cef578235825591602001919060010190613cd4565b5b509050613cfd9190613d01565b5090565b5b80821115613d1a576000816000905550600101613d02565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d6781613d32565b8114613d7257600080fd5b50565b600081359050613d8481613d5e565b92915050565b600060208284031215613da057613d9f613d28565b5b6000613dae84828501613d75565b91505092915050565b60008115159050919050565b613dcc81613db7565b82525050565b6000602082019050613de76000830184613dc3565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e1882613ded565b9050919050565b613e2881613e0d565b8114613e3357600080fd5b50565b600081359050613e4581613e1f565b92915050565b6000819050919050565b613e5e81613e4b565b8114613e6957600080fd5b50565b600081359050613e7b81613e55565b92915050565b60008060408385031215613e9857613e97613d28565b5b6000613ea685828601613e36565b9250506020613eb785828601613e6c565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613efb578082015181840152602081019050613ee0565b83811115613f0a576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f2c82613ec1565b613f368185613ecc565b9350613f46818560208601613edd565b613f4f81613f10565b840191505092915050565b60006020820190508181036000830152613f748184613f21565b905092915050565b600060208284031215613f9257613f91613d28565b5b6000613fa084828501613e6c565b91505092915050565b613fb281613e0d565b82525050565b6000602082019050613fcd6000830184613fa9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613ff857613ff7613fd3565b5b8235905067ffffffffffffffff81111561401557614014613fd8565b5b60208301915083602082028301111561403157614030613fdd565b5b9250929050565b60008060006040848603121561405157614050613d28565b5b600061405f86828701613e36565b935050602084013567ffffffffffffffff8111156140805761407f613d2d565b5b61408c86828701613fe2565b92509250509250925092565b60008083601f8401126140ae576140ad613fd3565b5b8235905067ffffffffffffffff8111156140cb576140ca613fd8565b5b6020830191508360208202830111156140e7576140e6613fdd565b5b9250929050565b6000806000806000806080878903121561410b5761410a613d28565b5b600061411989828a01613e6c565b965050602087013567ffffffffffffffff81111561413a57614139613d2d565b5b61414689828a01614098565b9550955050604061415989828a01613e36565b935050606087013567ffffffffffffffff81111561417a57614179613d2d565b5b61418689828a01613fe2565b92509250509295509295509295565b61419e81613e4b565b82525050565b60006020820190506141b96000830184614195565b92915050565b600080600080606085870312156141d9576141d8613d28565b5b60006141e787828801613e6c565b94505060206141f887828801613e36565b935050604085013567ffffffffffffffff81111561421957614218613d2d565b5b61422587828801614098565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61426881613db7565b82525050565b600061427a838361425f565b60208301905092915050565b6000602082019050919050565b600061429e82614233565b6142a8818561423e565b93506142b38361424f565b8060005b838110156142e45781516142cb888261426e565b97506142d683614286565b9250506001810190506142b7565b5085935050505092915050565b6000602082019050818103600083015261430b8184614293565b905092915050565b60008060006060848603121561432c5761432b613d28565b5b600061433a86828701613e36565b935050602061434b86828701613e36565b925050604061435c86828701613e6c565b9150509250925092565b61436f81613db7565b811461437a57600080fd5b50565b60008135905061438c81614366565b92915050565b60008060008060008060c087890312156143af576143ae613d28565b5b60006143bd89828a01613e36565b96505060206143ce89828a01613e6c565b95505060406143df89828a0161437d565b94505060606143f089828a01613e6c565b935050608061440189828a01613e6c565b92505060a061441289828a0161437d565b9150509295509295509295565b6000819050919050565b6144328161441f565b811461443d57600080fd5b50565b60008135905061444f81614429565b92915050565b60008060008060008060c0878903121561447257614471613d28565b5b600061448089828a01613e6c565b965050602061449189828a01614440565b95505060406144a289828a01613e6c565b94505060606144b389828a0161437d565b93505060806144c489828a01613e6c565b92505060a06144d589828a01613e6c565b9150509295509295509295565b6000602082840312156144f8576144f7613d28565b5b600061450684828501613e36565b91505092915050565b600060a0820190506145246000830188614195565b6145316020830187613dc3565b61453e6040830186614195565b61454b6060830185614195565b6145586080830184613dc3565b9695505050505050565b6000806020838503121561457957614578613d28565b5b600083013567ffffffffffffffff81111561459757614596613d2d565b5b6145a385828601613fe2565b92509250509250929050565b600080604083850312156145c6576145c5613d28565b5b60006145d485828601613e36565b92505060206145e58582860161437d565b9150509250929050565b60008083601f84011261460557614604613fd3565b5b8235905067ffffffffffffffff81111561462257614621613fd8565b5b60208301915083600182028301111561463e5761463d613fdd565b5b9250929050565b6000806020838503121561465c5761465b613d28565b5b600083013567ffffffffffffffff81111561467a57614679613d2d565b5b614686858286016145ef565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6146cf82613f10565b810181811067ffffffffffffffff821117156146ee576146ed614697565b5b80604052505050565b6000614701613d1e565b905061470d82826146c6565b919050565b600067ffffffffffffffff82111561472d5761472c614697565b5b61473682613f10565b9050602081019050919050565b82818337600083830152505050565b600061476561476084614712565b6146f7565b90508281526020810184848401111561478157614780614692565b5b61478c848285614743565b509392505050565b600082601f8301126147a9576147a8613fd3565b5b81356147b9848260208601614752565b91505092915050565b600080600080608085870312156147dc576147db613d28565b5b60006147ea87828801613e36565b94505060206147fb87828801613e36565b935050604061480c87828801613e6c565b925050606085013567ffffffffffffffff81111561482d5761482c613d2d565b5b61483987828801614794565b91505092959194509250565b6000806040838503121561485c5761485b613d28565b5b600061486a85828601613e36565b925050602061487b85828601613e36565b9150509250929050565b60008060006040848603121561489e5761489d613d28565b5b60006148ac86828701613e6c565b935050602084013567ffffffffffffffff8111156148cd576148cc613d2d565b5b6148d986828701614098565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061492c57607f821691505b60208210810361493f5761493e6148e5565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006149a1602183613ecc565b91506149ac82614945565b604082019050919050565b600060208201905081810360008301526149d081614994565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614a33603e83613ecc565b9150614a3e826149d7565b604082019050919050565b60006020820190508181036000830152614a6281614a26565b9050919050565b7f4e4f545f56414c49445f4f525f50415553454400000000000000000000000000600082015250565b6000614a9f601383613ecc565b9150614aaa82614a69565b602082019050919050565b60006020820190508181036000830152614ace81614a92565b9050919050565b7f4e4f545f57484954454c49535445440000000000000000000000000000000000600082015250565b6000614b0b600f83613ecc565b9150614b1682614ad5565b602082019050919050565b60006020820190508181036000830152614b3a81614afe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614baa82613e4b565b9150614bb583613e4b565b925082614bc557614bc4614b41565b5b828204905092915050565b7f494e565f5041594d454e54000000000000000000000000000000000000000000600082015250565b6000614c06600b83613ecc565b9150614c1182614bd0565b602082019050919050565b60006020820190508181036000830152614c3581614bf9565b9050919050565b60008160601b9050919050565b6000614c5482614c3c565b9050919050565b6000614c6682614c49565b9050919050565b614c7e614c7982613e0d565b614c5b565b82525050565b6000614c908284614c6d565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614cd982613e4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614d0b57614d0a614b70565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614d72602e83613ecc565b9150614d7d82614d16565b604082019050919050565b60006020820190508181036000830152614da181614d65565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614e04602b83613ecc565b9150614e0f82614da8565b604082019050919050565b60006020820190508181036000830152614e3381614df7565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614e96602c83613ecc565b9150614ea182614e3a565b604082019050919050565b60006020820190508181036000830152614ec581614e89565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614f02601883613ecc565b9150614f0d82614ecc565b602082019050919050565b60006020820190508181036000830152614f3181614ef5565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614f94602983613ecc565b9150614f9f82614f38565b604082019050919050565b60006020820190508181036000830152614fc381614f87565b9050919050565b600081905092915050565b6000614fe082613ec1565b614fea8185614fca565b9350614ffa818560208601613edd565b80840191505092915050565b60006150128285614fd5565b915061501e8284614fd5565b91508190509392505050565b7f5055424c49435f4d494e545f5041555345440000000000000000000000000000600082015250565b6000615060601283613ecc565b915061506b8261502a565b602082019050919050565b6000602082019050818103600083015261508f81615053565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006150f2602683613ecc565b91506150fd82615096565b604082019050919050565b60006020820190508181036000830152615121816150e5565b9050919050565b7f52454445454d5f50415553454400000000000000000000000000000000000000600082015250565b600061515e600d83613ecc565b915061516982615128565b602082019050919050565b6000602082019050818103600083015261518d81615151565b9050919050565b7f494e56414c49445f414444524553530000000000000000000000000000000000600082015250565b60006151ca600f83613ecc565b91506151d582615194565b602082019050919050565b600060208201905081810360008301526151f9816151bd565b9050919050565b7f4e4f545f504153535f4f574e4552000000000000000000000000000000000000600082015250565b6000615236600e83613ecc565b915061524182615200565b602082019050919050565b6000602082019050818103600083015261526581615229565b9050919050565b60006040820190506152816000830185613fa9565b61528e6020830184614195565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006152cb602083613ecc565b91506152d682615295565b602082019050919050565b600060208201905081810360008301526152fa816152be565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615337601083613ecc565b915061534282615301565b602082019050919050565b600060208201905081810360008301526153668161532a565b9050919050565b600061537882613e4b565b915061538383613e4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156153b8576153b7614b70565b5b828201905092915050565b7f4d41585f535550504c595f4552524f5200000000000000000000000000000000600082015250565b60006153f9601083613ecc565b9150615404826153c3565b602082019050919050565b60006020820190508181036000830152615428816153ec565b9050919050565b600061543a82613e4b565b915061544583613e4b565b92508261545557615454614b41565b5b828206905092915050565b600061546b82613e4b565b915061547683613e4b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156154af576154ae614b70565b5b828202905092915050565b7f494e565f4554485f544f54414c00000000000000000000000000000000000000600082015250565b60006154f0600d83613ecc565b91506154fb826154ba565b602082019050919050565b6000602082019050818103600083015261551f816154e3565b9050919050565b7f5045525f54585f4552524f520000000000000000000000000000000000000000600082015250565b600061555c600c83613ecc565b915061556782615526565b602082019050919050565b6000602082019050818103600083015261558b8161554f565b9050919050565b7f5045525f57414c4c45545f4552524f5200000000000000000000000000000000600082015250565b60006155c8601083613ecc565b91506155d382615592565b602082019050919050565b600060208201905081810360008301526155f7816155bb565b9050919050565b60008151905061560d81613e1f565b92915050565b60006020828403121561562957615628613d28565b5b6000615637848285016155fe565b91505092915050565b7f4e4f545f4f574e45520000000000000000000000000000000000000000000000600082015250565b6000615676600983613ecc565b915061568182615640565b602082019050919050565b600060208201905081810360008301526156a581615669565b9050919050565b7f555345445f544f4b454e00000000000000000000000000000000000000000000600082015250565b60006156e2600a83613ecc565b91506156ed826156ac565b602082019050919050565b60006020820190508181036000830152615711816156d5565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615774602583613ecc565b915061577f82615718565b604082019050919050565b600060208201905081810360008301526157a381615767565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615806602483613ecc565b9150615811826157aa565b604082019050919050565b60006020820190508181036000830152615835816157f9565b9050919050565b600061584782613e4b565b915061585283613e4b565b92508282101561586557615864614b70565b5b828203905092915050565b7f494e56414c49445f5041594d454e545f41444452455353000000000000000000600082015250565b60006158a6601783613ecc565b91506158b182615870565b602082019050919050565b600060208201905081810360008301526158d581615899565b9050919050565b600081905092915050565b50565b60006158f76000836158dc565b9150615902826158e7565b600082019050919050565b6000615918826158ea565b9150819050919050565b7f4661696c656420746f2073656e64206574686572000000000000000000000000600082015250565b6000615958601483613ecc565b915061596382615922565b602082019050919050565b600060208201905081810360008301526159878161594b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006159c4601983613ecc565b91506159cf8261598e565b602082019050919050565b600060208201905081810360008301526159f3816159b7565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615a56603283613ecc565b9150615a61826159fa565b604082019050919050565b60006020820190508181036000830152615a8581615a49565b9050919050565b60008190508160005260206000209050919050565b60008154615aae81614914565b615ab88186614fca565b94506001821660008114615ad35760018114615ae457615b17565b60ff19831686528186019350615b17565b615aed85615a8c565b60005b83811015615b0f57815481890152600182019150602081019050615af0565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000615b56600183614fca565b9150615b6182615b20565b600182019050919050565b6000615b788284615aa1565b9150615b8382615b49565b915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615bc4602083613ecc565b9150615bcf82615b8e565b602082019050919050565b60006020820190508181036000830152615bf381615bb7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615c30601c83613ecc565b9150615c3b82615bfa565b602082019050919050565b60006020820190508181036000830152615c5f81615c23565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615c9c601483613ecc565b9150615ca782615c66565b602082019050919050565b60006020820190508181036000830152615ccb81615c8f565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615cf982615cd2565b615d038185615cdd565b9350615d13818560208601613edd565b615d1c81613f10565b840191505092915050565b6000608082019050615d3c6000830187613fa9565b615d496020830186613fa9565b615d566040830185614195565b8181036060830152615d688184615cee565b905095945050505050565b600081519050615d8281613d5e565b92915050565b600060208284031215615d9e57615d9d613d28565b5b6000615dac84828501615d73565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212205a83fb6390fb6857a5c7adc5f8d71854c92d3dc4d7b3a5d3a3c29bbb48ed474664736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000002710000000000000000000000000a03e357a09e761e8d486a1419c74bf42e8d1b0640000000000000000000000006193bc379321f14159c73ab75a650bc5305c27ee00000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000002f53696c6b732054686f726f756768627265642052616365686f727365732028556e72657665616c6564292032303232000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075354523230323200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f72616365686f727365732e73696c6b732e696f2f6170692f6d6574616461746100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000522810a26e50000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000003e8
-----Decoded View---------------
Arg [0] : _name (string): Silks Thoroughbred Racehorses (Unrevealed) 2022
Arg [1] : _symbol (string): STR2022
Arg [2] : _baseUri (string): https://racehorses.silks.io/api/metadata
Arg [3] : _maxSupply (uint256): 10000
Arg [4] : _avatarsAddress (address): 0xA03e357A09E761E8d486A1419c74bf42e8D1B064
Arg [5] : _payeeAddress (address): 0x6193bc379321f14159C73Ab75A650bc5305c27eE
Arg [6] : _publicSaleInfo (uint256[]): 370000000000000000,10,1000
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 000000000000000000000000a03e357a09e761e8d486a1419c74bf42e8d1b064
Arg [5] : 0000000000000000000000006193bc379321f14159c73ab75a650bc5305c27ee
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [8] : 53696c6b732054686f726f756768627265642052616365686f72736573202855
Arg [9] : 6e72657665616c65642920323032320000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [11] : 5354523230323200000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [13] : 68747470733a2f2f72616365686f727365732e73696c6b732e696f2f6170692f
Arg [14] : 6d65746164617461000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [16] : 0000000000000000000000000000000000000000000000000522810a26e50000
Arg [17] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [18] : 00000000000000000000000000000000000000000000000000000000000003e8
Loading...
Loading
Loading...
Loading
[ 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.