Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
521 DNKP
Holders
75
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DNKPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DunkPals
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import './ERC721Batch.sol'; import './Merkle.sol'; import './PaymentSplitterMod.sol'; import './Royalties.sol'; import './Signed.sol'; interface IERC721Owner{ function ownerOf( uint256 ) external view returns( address ); } contract DunkPals is ERC721Batch, Merkle, PaymentSplitterMod, Royalties, Signed { using Strings for uint256; struct Allowance{ address account; uint16 limit; } struct MintConfig{ uint64 ethPrice; uint64 discPrice; uint16 maxMint; uint16 maxOrder; uint16 maxSupply; uint8 saleState; } enum SaleState{ NONE, CLAIM, MAINSALE } MintConfig public config = MintConfig( 0.042 ether, //ethPrice 0.024 ether, //discPrice 50, //maxMint 20, //maxOrder 4224, //maxSupply uint8(SaleState.NONE) ); IERC721Owner public poodleDunks = IERC721Owner( 0xdB9b851E8972bA0c179Bf8a9246A815411EF1CE4 ); string public tokenURIPrefix; string public tokenURISuffix; uint256 public pineapples = 1 ether / 400; uint256 public magicBurgers = 1 ether / 200; uint256 public regBurgers = 1 ether / 100; uint256 public flush = 1 ether / 20; mapping(uint256 => bool) nonces; constructor() ERC721B("DunkPals", "DNKP" ) Royalties( owner(), 500, 10000 ) //5% Signed( 0x750142b3B633522b91dD801Dd6745AeE92D6A876 ){ } //payable function claimRandom( uint256 random, bytes calldata signature, uint16 limit, bytes32[] calldata proof ) external { //OZ: checks MintConfig memory cfg = config; uint256 supply = totalSupply(); require( supply < cfg.maxSupply, "mint/order exceeds supply" ); require( !nonces[ random ], "random used" ); uint8 claimState = uint8(SaleState.CLAIM); require( cfg.saleState & claimState == claimState, "Claims are not active" ); Owner memory prev = owners[msg.sender]; //check the claim list bytes32 leaf = keccak256( abi.encode( Allowance( msg.sender, limit ) ) ); require( _isValidProof( leaf, proof ), "not on the claim list" ); require( prev.claimed < limit, "all claims redeemed" ); //verify the random require( _isAuthorizedSigner( abi.encodePacked(random), signature ), "Invalid random" ); //apply odds uint16 totalQuantity = _applyRandom( random ); if( cfg.maxSupply < supply + totalQuantity ){ totalQuantity = uint16(cfg.maxSupply - supply); } //OZ: effects nonces[ random ] = true; unchecked{ owners[msg.sender] = Owner( prev.balance + totalQuantity, prev.claimed + 1, prev.purchased ); //OZ: interactions for(uint256 i; i < totalQuantity; ++i){ _mint( msg.sender ); } } } //payable function mintRandom( uint256 random, int16 tokenId, bytes calldata signature ) external payable { //OZ: checks MintConfig memory cfg = config; uint256 supply = totalSupply(); require( supply < cfg.maxSupply, "mint/order exceeds supply" ); require( !nonces[ random ], "random used" ); Owner memory prev = owners[msg.sender]; uint8 mainsale = uint8(SaleState.MAINSALE); if( cfg.saleState & mainsale == mainsale ){ require( prev.purchased < cfg.maxMint, "don't be greedy" ); if( tokenId > -1 && poodleDunks.ownerOf( uint256(uint16(tokenId)) ) == msg.sender ) require( msg.value >= cfg.discPrice, "ether sent is not correct" ); else require( msg.value >= cfg.ethPrice, "ether sent is not correct" ); } else{ revert( "Sale is not active" ); } require( _isAuthorizedSigner( abi.encodePacked(random), signature ), "Invalid random" ); uint16 totalQuantity = _applyRandom( random ); if( cfg.maxSupply < supply + totalQuantity ){ totalQuantity = uint16(cfg.maxSupply - supply); } //OZ: effects nonces[ random ] = true; unchecked{ owners[msg.sender] = Owner( prev.balance + totalQuantity, prev.claimed, prev.purchased + 1 ); //OZ: interactions for(uint256 i; i < totalQuantity; ++i){ _mint( msg.sender ); } } } //onlyDelegates function mintTo(uint16[] calldata quantity, address[] calldata recipient) external payable onlyDelegates{ require(quantity.length == recipient.length, "Must provide equal quantities and recipients" ); uint256 totalQuantity = 0; unchecked{ for(uint256 i = 0; i < quantity.length; ++i){ totalQuantity += quantity[i]; } } require( totalSupply() + totalQuantity <= config.maxSupply, "Mint/order exceeds supply" ); unchecked{ for(uint256 i; i < recipient.length; ++i){ owners[recipient[i]].balance += quantity[i]; for(uint256 j; j < quantity[i]; ++j){ _mint( recipient[i] ); } } } } function setConfig( MintConfig calldata newConfig ) external onlyDelegates{ require( newConfig.maxOrder <= newConfig.maxSupply, "max order must be lte max supply" ); require( totalSupply() <= newConfig.maxSupply, "max supply must be gte total supply" ); require( uint8(newConfig.saleState) < 4, "invalid sale state" ); config = newConfig; } function setOdds( uint256 pineappleOdds, uint256 magicBurgerOdds, uint256 regBurgerOdds, uint256 flushOdds ) external onlyDelegates{ pineapples = pineappleOdds; magicBurgers = magicBurgerOdds; regBurgers = regBurgerOdds; flush = flushOdds; } function setPoodleDunks( IERC721Owner pdAddress ) external onlyDelegates{ poodleDunks = pdAddress; } function setSigner( address signer ) external onlyDelegates{ _setSigner( signer ); } function setTokenURI( string calldata prefix, string calldata suffix ) external onlyDelegates{ tokenURIPrefix = prefix; tokenURISuffix = suffix; } //onlyOwner function addPayee(address account, uint256 shares_) external onlyOwner { _addPayee( account, shares_ ); } function resetCounters() external onlyOwner { _resetCounters(); } function setDefaultRoyalty( address receiver, uint16 feeNumerator, uint16 feeDenominator ) public onlyOwner { _setDefaultRoyalty( receiver, feeNumerator, feeDenominator ); } function setPayee( uint index, address account, uint newShares ) external onlyOwner { _setPayee(index, account, newShares); } //view: IERC165 function supportsInterface(bytes4 interfaceId) public view override(ERC721EnumerableB, Royalties) returns (bool) { return ERC721EnumerableB.supportsInterface(interfaceId) || Royalties.supportsInterface(interfaceId); } //view: IERC721Metadata function tokenURI( uint256 tokenId ) external view returns( string memory ){ require(_exists(tokenId), "query for nonexistent token"); return string(abi.encodePacked(tokenURIPrefix, tokenId.toString(), tokenURISuffix)); } function withdraw() external onlyOwner { require(address(this).balance >= 0, "No funds available"); Address.sendValue(payable(owner()), address(this).balance); //DunkPals Treasury 35% //Pineapple 35% //Squeebo 15% //Earlybail 10% //Danny 5% } function _applyRandom( uint256 random ) internal view returns( uint16 ){ if( random < pineapples ) return 6; if( random < magicBurgers ) return 4; if( random < regBurgers ) return 3; if( random < flush ) return 2; return 1; } }
// SPDX-License-Identifier: BSD-3 pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract Signed{ using ECDSA for bytes32; address internal _signer; constructor( address signer ){ _setSigner( signer ); } function _createHash( bytes memory data ) internal virtual view returns ( bytes32 ){ return keccak256( abi.encodePacked( address(this), msg.sender, data ) ); } function _isAuthorizedSigner( bytes memory data, bytes calldata signature ) internal view virtual returns( bool ){ return _signer == _recoverSigner( _createHash( data ), signature ); } function _recoverSigner( bytes32 hashed, bytes memory signature ) internal pure returns( address ){ return hashed.toEthSignedMessageHash().recover( signature ); } function _setSigner( address signer ) internal{ _signer = signer; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; contract Royalties is IERC2981{ struct Fraction{ uint16 numerator; uint16 denominator; } struct Royalty{ address receiver; Fraction fraction; } Royalty public defaultRoyalty; constructor( address receiver, uint16 royaltyNum, uint16 royaltyDenom ){ _setDefaultRoyalty( receiver, royaltyNum, royaltyDenom ); } //view: IERC2981 /** * @dev See {IERC2981-royaltyInfo}. **/ function royaltyInfo(uint256, uint256 _salePrice) external view virtual returns (address, uint256) { /* Royalty memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } */ uint256 royaltyAmount = (_salePrice * defaultRoyalty.fraction.numerator) / defaultRoyalty.fraction.denominator; return (defaultRoyalty.receiver, royaltyAmount); } //view: IERC165 /** * @dev See {IERC165-supportsInterface}. **/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC2981).interfaceId; } function _setDefaultRoyalty( address receiver, uint16 royaltyNum, uint16 royaltyDenom ) internal { defaultRoyalty.receiver = receiver; defaultRoyalty.fraction = Fraction(royaltyNum, royaltyDenom); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitterMod is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] internal _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor() payable {} /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } function _addPayee(address account, uint256 shares_) internal { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } function _resetCounters() internal { _totalReleased = 0; for(uint i; i < _payees.length; ++i ){ _released[ _payees[i] ] = 0; } } function _setPayee( uint index, address account, uint newShares ) internal { _totalShares = _totalShares - _shares[ account ] + newShares; _shares[ account ] = newShares; _payees[ index ] = account; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./Delegated.sol"; contract Merkle is Delegated{ bytes32 internal merkleRoot = ""; function setMerkleRoot( bytes32 merkleRoot_ ) external onlyDelegates{ merkleRoot = merkleRoot_; } function _isValidProof(bytes32 leaf, bytes32[] memory proof) internal view returns( bool ){ return MerkleProof.processProof( proof, leaf ) == merkleRoot; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ); function safeTransferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external; function transferBatch( address from, address to, uint[] calldata tokenIds ) external; function walletOfOwner( address account ) external view returns( uint[] memory ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "./ERC721B.sol"; abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable { function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721B, IERC165) returns( bool ){ return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface( interfaceId ); } function tokenOfOwnerByIndex( address owner, uint256 index ) external view returns( uint256 ){ require( owners[ owner ].balance > index, "ERC721EnumerableB: owner index out of bounds" ); uint256 count; uint256 tokenId; for( tokenId = 0; tokenId < tokens.length; ++tokenId ){ if( owner != tokens[tokenId].owner ) continue; if( index == count++ ) break; } return tokenId; } function tokenByIndex( uint256 index ) external view returns( uint256 ){ require( _exists( index ), "ERC721EnumerableB: query for nonexistent token"); return index; } function totalSupply() public view returns( uint256 ){ return tokens.length; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC721Batch.sol"; import "./ERC721EnumerableB.sol"; abstract contract ERC721Batch is ERC721EnumerableB, IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ){ for(uint i; i < tokenIds.length; ++i ){ if( account != tokens[ tokenIds[i] ].owner ) return false; } return true; } function safeTransferBatch( address from, address to, uint256[] calldata tokenIds, bytes calldata data ) external{ for(uint i; i < tokenIds.length; ++i ){ safeTransferFrom( from, to, tokenIds[i], data ); } } function transferBatch( address from, address to, uint256[] calldata tokenIds ) external{ for(uint i; i < tokenIds.length; ++i ){ transferFrom( from, to, tokenIds[i] ); } } function walletOfOwner( address account ) external view returns( uint[] memory ){ uint256 count; uint256 quantity = owners[ account ].balance; uint256[] memory wallet = new uint[]( quantity ); for( uint i = 0; i < tokens.length; ++i ){ if( account == tokens[i].owner ){ wallet[ count++ ] = i; if( count == quantity ) break; } } return wallet; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import './Delegated.sol'; abstract contract ERC721B is Context, Delegated, ERC165, IERC721, IERC721Metadata { using Address for address; struct Owner{ uint16 balance; uint16 claimed; uint16 purchased; } struct Token{ address owner; } Token[] public tokens; mapping(address => Owner) public owners; string private _name; string private _symbol; mapping(uint256 => address) internal _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_ ){ _name = name_; _symbol = symbol_; } //public view function balanceOf(address owner) external view returns( uint256 balance ){ require(owner != address(0), "ERC721B: balance query for the zero address"); return owners[owner].balance; } function name() external view returns( string memory name_ ){ return _name; } function ownerOf(uint256 tokenId) public view returns( address owner ){ require(_exists(tokenId), "ERC721B: query for nonexistent token"); return tokens[tokenId].owner; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns( bool isSupported ){ return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function symbol() external view returns( string memory symbol_ ){ return _symbol; } //approvals function approve(address to, uint tokenId) external{ address owner = ownerOf(tokenId); require(to != owner, "ERC721B: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721B: caller is not owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint256 tokenId) public view returns( address approver ){ require(_exists(tokenId), "ERC721: query for nonexistent token"); return _tokenApprovals[tokenId]; } function isApprovedForAll(address owner, address operator) public view returns( bool isApproved ){ return _operatorApprovals[owner][operator]; } function setApprovalForAll(address operator, bool approved) external{ _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } //transfers function safeTransferFrom(address from, address to, uint256 tokenId) external{ safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public{ require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721B: caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } function transferFrom(address from, address to, uint256 tokenId) public{ //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721B: caller is not owner nor approved"); _transfer(from, to, tokenId); } //internal function _approve(address to, uint tokenId) internal{ _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } function _beforeTokenTransfer(address from, address to) internal virtual { } 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("ERC721B: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _exists(uint256 tokenId) internal view returns( bool ){ return tokenId < tokens.length && tokens[tokenId].owner != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns( bool isApproved ){ require(_exists(tokenId), "ERC721B: query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _mint( address to ) internal virtual{ uint256 tokenId = tokens.length; tokens.push(Token(to)); emit Transfer( address(0), to, tokenId ); } function _safeMint(address to, uint tokenId) internal { _safeMint(to, tokenId, ""); } function _safeMint(address to, uint tokenId, bytes memory _data) internal { _mint(to); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721B: transfer to non ERC721Receiver implementer" ); } function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal{ _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721B: transfer to non ERC721Receiver implementer"); } function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ownerOf(tokenId) == from, "ERC721B: transfer of token that is not own"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; _beforeTokenTransfer(from, to); unchecked { --owners[from].balance; ++owners[to].balance; } tokens[tokenId].owner = to; emit Transfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } constructor() Ownable(){ setDelegate( owner(), true ); } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) public onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public override onlyOwner { super.transferOwnership( newOwner ); setDelegate( owner(), true ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // 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 (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees 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 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++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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 (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.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.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"addPayee","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":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"random","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint16","name":"limit","type":"uint16"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimRandom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint64","name":"discPrice","type":"uint64"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint8","name":"saleState","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"uint16","name":"numerator","type":"uint16"},{"internalType":"uint16","name":"denominator","type":"uint16"}],"internalType":"struct Royalties.Fraction","name":"fraction","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flush","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"approver","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isApproved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"magicBurgers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"random","type":"uint256"},{"internalType":"int16","name":"tokenId","type":"int16"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintRandom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"quantity","type":"uint16[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"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":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"owners","outputs":[{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"claimed","type":"uint16"},{"internalType":"uint16","name":"purchased","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pineapples","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poodleDunks","outputs":[{"internalType":"contract IERC721Owner","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"regBurgers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetCounters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferBatch","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":[{"components":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint64","name":"discPrice","type":"uint64"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint8","name":"saleState","type":"uint8"}],"internalType":"struct DunkPals.MintConfig","name":"newConfig","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint16","name":"feeNumerator","type":"uint16"},{"internalType":"uint16","name":"feeDenominator","type":"uint16"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pineappleOdds","type":"uint256"},{"internalType":"uint256","name":"magicBurgerOdds","type":"uint256"},{"internalType":"uint256","name":"regBurgerOdds","type":"uint256"},{"internalType":"uint256","name":"flushOdds","type":"uint256"}],"name":"setOdds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"newShares","type":"uint256"}],"name":"setPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721Owner","name":"pdAddress","type":"address"}],"name":"setPoodleDunks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"},{"internalType":"string","name":"suffix","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenIds","type":"uint256[]"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60006008819055610140604052669536c708910000608052665543df729c000060a052603260c052601460e0526110806101005261012052601180546001600160b81b03191675108000140032005543df729c0000009536c708910000179055601280546001600160a01b03191673db9b851e8972ba0c179bf8a9246a815411ef1ce41790556608e1bc9bf040006015556611c37937e08000601655662386f26fc1000060175566b1a2bc2ec50000601855348015620000be57600080fd5b5073750142b3b633522b91dd801dd6745aee92d6a876620000e76000546001600160a01b031690565b6101f46127106040518060400160405280600881526020016744756e6b50616c7360c01b815250604051806040016040528060048152602001630444e4b560e41b815250620001456200013f620001c060201b60201c565b620001c4565b620001646200015c6000546001600160a01b031690565b600162000214565b8151620001799060049060208501906200031d565b5080516200018f9060059060208401906200031d565b505050620001a58383836200029e60201b60201c565b505050620001b981620002fb60201b60201c565b5062000400565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620002735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b600e80546001600160a01b039094166001600160a01b0319909416939093179092556040805180820190915261ffff918216808252929091166020909101819052600f80546201000090920263ffffffff19909216909217179055565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b8280546200032b90620003c3565b90600052602060002090601f0160209004810192826200034f57600085556200039a565b82601f106200036a57805160ff19168380011785556200039a565b828001600101855582156200039a579182015b828111156200039a5782518255916020019190600101906200037d565b50620003a8929150620003ac565b5090565b5b80821115620003a85760008155600101620003ad565b600181811c90821680620003d857607f821691505b60208210811415620003fa57634e487b7160e01b600052602260045260246000fd5b50919050565b61457e80620004106000396000f3fe60806040526004361061037a5760003560e01c8063715018a6116101d1578063c042314511610102578063dc584425116100a0578063e985e9c51161006f578063e985e9c514610b80578063ececaf0014610bc9578063f2fde38b14610be9578063ff82c72314610c0957600080fd5b8063dc58442514610b16578063df23880014610b36578063e33b7de314610b56578063e4ed53a914610b6b57600080fd5b8063c87b56dd116100dc578063c87b56dd14610a8b578063ce7c2ac214610aab578063d48ede9914610ae1578063dbbc853b14610b0157600080fd5b8063c042314514610a40578063c0ac998314610a60578063c11b2c6f14610a7557600080fd5b806395d89b411161016f578063a22cb46511610149578063a22cb465146109cd578063ae7bf4c8146109ed578063af623c2514610a00578063b88d4fde14610a2057600080fd5b806395d89b411461096c5780639852595c146109815780639eb4a1ff146109b757600080fd5b80637abf7539116101ab5780637abf7539146108ee5780637cb647591461090e5780638b83209b1461092e5780638da5cb5b1461094e57600080fd5b8063715018a6146107c35780637885fdc7146107d857806379502c551461085057600080fd5b80633a98ef39116102ab5780634d44660c116102495780636352211e116102235780636352211e1461074d5780636b9f96ea1461076d5780636c19e7831461078357806370a08231146107a357600080fd5b80634d44660c146106ed5780634f64b2be1461070d5780634f6ccce71461072d57600080fd5b806342842e0e1161028557806342842e0e1461066d578063438b63001461068d57806349edc1f7146106ba5780634a994eef146106cd57600080fd5b80633a98ef39146106235780633ccfd60b1461063857806341acc66a1461064d57600080fd5b806318160ddd1161031857806323b872dd116102f257806323b872dd146105845780632a55205a146105a45780632f745c59146105e3578063317578041461060357600080fd5b806318160ddd1461052557806318f9b02314610544578063191655871461056457600080fd5b80630777962711610354578063077796271461048b578063081812fc146104ab578063095ea7b3146104e3578063141e95b71461050557600080fd5b806301ffc9a7146103c8578063022914a7146103fd57806306fdde031461046957600080fd5b366103c3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103d457600080fd5b506103e86103e336600461388b565b610c1f565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b506104446104183660046138bd565b60036020526000908152604090205461ffff808216916201000081048216916401000000009091041683565b6040805161ffff948516815292841660208401529216918101919091526060016103f4565b34801561047557600080fd5b5061047e610c4b565b6040516103f49190613932565b34801561049757600080fd5b506103e86104a63660046138bd565b610cdd565b3480156104b757600080fd5b506104cb6104c6366004613945565b610d30565b6040516001600160a01b0390911681526020016103f4565b3480156104ef57600080fd5b506105036104fe36600461395e565b610daf565b005b34801561051157600080fd5b50610503610520366004613a1f565b610eba565b34801561053157600080fd5b506002545b6040519081526020016103f4565b34801561055057600080fd5b5061050361055f36600461395e565b6112d5565b34801561057057600080fd5b5061050361057f3660046138bd565b61130d565b34801561059057600080fd5b5061050361059f366004613aac565b6114de565b3480156105b057600080fd5b506105c46105bf366004613aed565b61150f565b604080516001600160a01b0390931683526020830191909152016103f4565b3480156105ef57600080fd5b506105366105fe36600461395e565b611553565b34801561060f57600080fd5b5061050361061e3660046138bd565b611647565b34801561062f57600080fd5b50600954610536565b34801561064457600080fd5b50610503611698565b34801561065957600080fd5b50610503610668366004613b0f565b6116df565b34801561067957600080fd5b50610503610688366004613aac565b611762565b34801561069957600080fd5b506106ad6106a83660046138bd565b61177d565b6040516103f49190613b5a565b6105036106c8366004613b9e565b611872565b3480156106d957600080fd5b506105036106e8366004613bff565b611d1b565b3480156106f957600080fd5b506103e8610708366004613c3d565b611d70565b34801561071957600080fd5b506104cb610728366004613945565b611dec565b34801561073957600080fd5b50610536610748366004613945565b611e16565b34801561075957600080fd5b506104cb610768366004613945565b611e88565b34801561077957600080fd5b5061053660185481565b34801561078f57600080fd5b5061050361079e3660046138bd565b611edd565b3480156107af57600080fd5b506105366107be3660046138bd565b611f2d565b3480156107cf57600080fd5b50610503611fb9565b3480156107e457600080fd5b50600e5460408051808201909152600f5461ffff80821683526201000090910416602082015261081b916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff90811660208086019190915290920151909116908201526060016103f4565b34801561085c57600080fd5b506011546108a9906001600160401b0380821691600160401b81049091169061ffff600160801b8204811691600160901b8104821691600160a01b8204169060ff600160b01b9091041686565b604080516001600160401b03978816815296909516602087015261ffff93841694860194909452908216606085015216608083015260ff1660a082015260c0016103f4565b3480156108fa57600080fd5b50610503610909366004613c91565b611fed565b34801561091a57600080fd5b50610503610929366004613945565b612030565b34801561093a57600080fd5b506104cb610949366004613945565b612064565b34801561095a57600080fd5b506000546001600160a01b03166104cb565b34801561097857600080fd5b5061047e612079565b34801561098d57600080fd5b5061053661099c3660046138bd565b6001600160a01b03166000908152600c602052604090205490565b3480156109c357600080fd5b5061053660155481565b3480156109d957600080fd5b506105036109e8366004613bff565b612088565b6105036109fb366004613cc3565b6120f4565b348015610a0c57600080fd5b50610503610a1b366004613d22565b61234a565b348015610a2c57600080fd5b50610503610a3b366004613d50565b6124ca565b348015610a4c57600080fd5b50610503610a5b366004613e2f565b612502565b348015610a6c57600080fd5b5061047e612547565b348015610a8157600080fd5b5061053660175481565b348015610a9757600080fd5b5061047e610aa6366004613945565b6125d5565b348015610ab757600080fd5b50610536610ac63660046138bd565b6001600160a01b03166000908152600b602052604090205490565b348015610aed57600080fd5b50610503610afc366004613e87565b612661565b348015610b0d57600080fd5b5061047e6126a9565b348015610b2257600080fd5b506012546104cb906001600160a01b031681565b348015610b4257600080fd5b50610503610b51366004613ee6565b6126b6565b348015610b6257600080fd5b50600a54610536565b348015610b7757600080fd5b506105036126eb565b348015610b8c57600080fd5b506103e8610b9b366004613f0d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610bd557600080fd5b50610503610be4366004613f3b565b61271d565b348015610bf557600080fd5b50610503610c043660046138bd565b61279b565b348015610c1557600080fd5b5061053660165481565b6000610c2a826127ea565b80610c45575063152a902d60e11b6001600160e01b03198316145b92915050565b606060048054610c5a90613fbd565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8690613fbd565b8015610cd35780601f10610ca857610100808354040283529160200191610cd3565b820191906000526020600020905b815481529060010190602001808311610cb657829003601f168201915b5050505050905090565b600080546001600160a01b03163314610d115760405162461bcd60e51b8152600401610d0890613ff2565b60405180910390fd5b506001600160a01b031660009081526001602052604090205460ff1690565b6000610d3b8261280f565b610d935760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b6064820152608401610d08565b506000908152600660205260409020546001600160a01b031690565b6000610dba82611e88565b9050806001600160a01b0316836001600160a01b03161415610e295760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610d08565b336001600160a01b0382161480610e455750610e458133610b9b565b610eab5760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b6064820152608401610d08565b610eb58383612859565b505050565b6040805160c0810182526011546001600160401b038082168352600160401b8204166020830152600160801b810461ffff90811693830193909352600160901b810483166060830152600160a01b81049092166080820152600160b01b90910460ff1660a0820152600254816080015161ffff168110610f785760405162461bcd60e51b81526020600482015260196024820152786d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610d08565b60008881526019602052604090205460ff1615610fc55760405162461bcd60e51b815260206004820152600b60248201526a1c985b991bdb481d5cd95960aa1b6044820152606401610d08565b60a0820151600190811681146110155760405162461bcd60e51b8152602060048201526015602482015274436c61696d7320617265206e6f742061637469766560581b6044820152606401610d08565b336000818152600360209081526040808320815160608082018452915461ffff8082168352620100008204811683870152640100000000909104811682850152835180850185528781528d8216908601908152845195860197909752955190951691830191909152016040516020818303038152906040528051906020012090506110d3818888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506128c792505050565b6111175760405162461bcd60e51b81526020600482015260156024820152741b9bdd081bdb881d1a194818db185a5b481b1a5cdd605a1b6044820152606401610d08565b8761ffff16826020015161ffff16106111685760405162461bcd60e51b8152602060048201526013602482015272185b1b0818db185a5b5cc81c995919595b5959606a1b6044820152606401610d08565b6111948b60405160200161117e91815260200190565b6040516020818303038152906040528b8b6128de565b6111d15760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642072616e646f6d60901b6044820152606401610d08565b60006111dc8c612941565b90506111ec61ffff821686614053565b866080015161ffff1610156112125784866080015161ffff1661120f919061406b565b90505b60008c8152601960209081526040808320805460ff191660019081179091558151606081018352875161ffff908701811682528885015190920182168185019081528884015183168285019081523387526003909552928520905181549351945183166401000000000265ffff0000000019958416620100000263ffffffff19909516919093161792909217929092169190911790555b8161ffff168110156112c6576112be33612993565b6001016112a9565b50505050505050505050505050565b6000546001600160a01b031633146112ff5760405162461bcd60e51b8152600401610d0890613ff2565b6113098282612a21565b5050565b6001600160a01b0381166000908152600b60205260409020546113815760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610d08565b6000600a54476113919190614053565b6001600160a01b0383166000908152600c6020908152604080832054600954600b9093529083205493945091926113c89085614082565b6113d291906140b7565b6113dc919061406b565b90508061143f5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610d08565b6001600160a01b0383166000908152600c6020526040902054611463908290614053565b6001600160a01b0384166000908152600c6020526040902055600a5461148a908290614053565b600a556114978382612c07565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6114e83382612d20565b6115045760405162461bcd60e51b8152600401610d08906140cb565b610eb5838383612dc1565b600f546000908190819061ffff620100008204811691611530911686614082565b61153a91906140b7565b600e546001600160a01b031693509150505b9250929050565b6001600160a01b03821660009081526003602052604081205461ffff1682106115d35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d08565b6000805b60025481101561163f57600281815481106115f4576115f4614114565b6000918252602090912001546001600160a01b038681169116146116175761162f565b816116218161412a565b925084141561162f5761163f565b6116388161412a565b90506115d7565b949350505050565b3360009081526001602052604090205460ff166116765760405162461bcd60e51b8152600401610d0890614145565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146116c25760405162461bcd60e51b8152600401610d0890613ff2565b6116dd6116d76000546001600160a01b031690565b47612c07565b565b6000546001600160a01b031633146117095760405162461bcd60e51b8152600401610d0890613ff2565b600e80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600f805463ffffffff191690911762010000909202919091179055505050565b610eb5838383604051806020016040528060008152506124ca565b6001600160a01b0381166000908152600360205260408120546060919061ffff1681816001600160401b038111156117b7576117b7613d3a565b6040519080825280602002602001820160405280156117e0578160200160208202803683370190505b50905060005b600254811015611869576002818154811061180357611803614114565b6000918252602090912001546001600160a01b03878116911614156118595780828561182e8161412a565b96508151811061184057611840614114565b6020026020010181815250508284141561185957611869565b6118628161412a565b90506117e6565b50949350505050565b6040805160c0810182526011546001600160401b038082168352600160401b8204166020830152600160801b810461ffff90811693830193909352600160901b810483166060830152600160a01b81049092166080820152600160b01b90910460ff1660a0820152600254816080015161ffff1681106119305760405162461bcd60e51b81526020600482015260196024820152786d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610d08565b60008681526019602052604090205460ff161561197d5760405162461bcd60e51b815260206004820152600b60248201526a1c985b991bdb481d5cd95960aa1b6044820152606401610d08565b336000908152600360209081526040918290208251606081018452905461ffff808216835262010000820481169383019390935264010000000090049091169181019190915260a08301516002908116811415611b7757836040015161ffff16826040015161ffff1610611a255760405162461bcd60e51b815260206004820152600f60248201526e646f6e27742062652067726565647960881b6044820152606401610d08565b6000198760010b138015611abe57506012546040516331a9108f60e11b815261ffff8916600482015233916001600160a01b031690636352211e9060240160206040518083038186803b158015611a7b57600080fd5b505afa158015611a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab3919061416f565b6001600160a01b0316145b15611b215783602001516001600160401b0316341015611b1c5760405162461bcd60e51b8152602060048201526019602482015278195d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610d08565b611bb4565b83516001600160401b0316341015611b1c5760405162461bcd60e51b8152602060048201526019602482015278195d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610d08565b60405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610d08565b611be088604051602001611bca91815260200190565b60405160208183030381529060405287876128de565b611c1d5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642072616e646f6d60901b6044820152606401610d08565b6000611c2889612941565b9050611c3861ffff821685614053565b856080015161ffff161015611c5e5783856080015161ffff16611c5b919061406b565b90505b6000898152601960209081526040808320805460ff191660019081179091558151606081018352875161ffff908701811682528885015181168286019081528985015190930181168285019081523387526003909552928520905181549251945184166401000000000265ffff0000000019958516620100000263ffffffff19909416919094161791909117929092161790555b8161ffff16811015611d0f57611d0733612993565b600101611cf2565b50505050505050505050565b6000546001600160a01b03163314611d455760405162461bcd60e51b8152600401610d0890613ff2565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000805b82811015611ddf576002848483818110611d9057611d90614114565b9050602002013581548110611da757611da7614114565b6000918252602090912001546001600160a01b03868116911614611dcf576000915050611de5565b611dd88161412a565b9050611d74565b50600190505b9392505050565b60028181548110611dfc57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000611e218261280f565b611e845760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610d08565b5090565b6000611e938261280f565b611eaf5760405162461bcd60e51b8152600401610d089061418c565b60028281548110611ec257611ec2614114565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff16611f0c5760405162461bcd60e51b8152600401610d0890614145565b601080546001600160a01b0319166001600160a01b03831617905550565b50565b60006001600160a01b038216611f995760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610d08565b506001600160a01b031660009081526003602052604090205461ffff1690565b6000546001600160a01b03163314611fe35760405162461bcd60e51b8152600401610d0890613ff2565b6116dd6000612f15565b3360009081526001602052604090205460ff1661201c5760405162461bcd60e51b8152600401610d0890614145565b601593909355601691909155601755601855565b3360009081526001602052604090205460ff1661205f5760405162461bcd60e51b8152600401610d0890614145565b600855565b6000600d8281548110611ec257611ec2614114565b606060058054610c5a90613fbd565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526001602052604090205460ff166121235760405162461bcd60e51b8152600401610d0890614145565b8281146121875760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610d08565b6000805b848110156121cb578585828181106121a5576121a5614114565b90506020020160208101906121ba91906141d0565b61ffff16919091019060010161218b565b5060115461ffff600160a01b90910416816121e560025490565b6121ef9190614053565b111561223d5760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c79000000000000006044820152606401610d08565b60005b828110156123425785858281811061225a5761225a614114565b905060200201602081019061226f91906141d0565b6003600086868581811061228557612285614114565b905060200201602081019061229a91906138bd565b6001600160a01b0316815260208101919091526040016000908120805461ffff19811661ffff9182169490940116929092179091555b8686838181106122e2576122e2614114565b90506020020160208101906122f791906141d0565b61ffff168110156123395761233185858481811061231757612317614114565b905060200201602081019061232c91906138bd565b612993565b6001016122d0565b50600101612240565b505050505050565b3360009081526001602052604090205460ff166123795760405162461bcd60e51b8152600401610d0890614145565b61238960a08201608083016141d0565b61ffff1661239d60808301606084016141d0565b61ffff1611156123ef5760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c796044820152606401610d08565b6123ff60a08201608083016141d0565b61ffff1661240c60025490565b11156124665760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b6064820152608401610d08565b600461247860c0830160a084016141fc565b60ff16106124bd5760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b6044820152606401610d08565b806011610eb5828261424c565b6124d43383612d20565b6124f05760405162461bcd60e51b8152600401610d08906140cb565b6124fc84848484612f65565b50505050565b60005b8181101561254057612530858585858581811061252457612524614114565b905060200201356114de565b6125398161412a565b9050612505565b5050505050565b6013805461255490613fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461258090613fbd565b80156125cd5780601f106125a2576101008083540402835291602001916125cd565b820191906000526020600020905b8154815290600101906020018083116125b057829003601f168201915b505050505081565b60606125e08261280f565b61262c5760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610d08565b601361263783612f98565b601460405160200161264b9392919061440e565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff166126905760405162461bcd60e51b8152600401610d0890614145565b61269c601385856137e5565b50612540601483836137e5565b6014805461255490613fbd565b6000546001600160a01b031633146126e05760405162461bcd60e51b8152600401610d0890613ff2565b610eb5838383613095565b6000546001600160a01b031633146127155760405162461bcd60e51b8152600401610d0890613ff2565b6116dd61312e565b60005b8381101561279257612782878787878581811061273f5761273f614114565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506124ca92505050565b61278b8161412a565b9050612720565b50505050505050565b6000546001600160a01b031633146127c55760405162461bcd60e51b8152600401610d0890613ff2565b6127ce8161318e565b611f2a6127e36000546001600160a01b031690565b6001611d1b565b60006001600160e01b0319821663780e9d6360e01b1480610c455750610c4582613226565b60025460009082108015610c45575060006001600160a01b03166002838154811061283c5761283c614114565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061288e82611e88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006008546128d68385613276565b149392505050565b60006129286128ec856132ea565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061331e92505050565b6010546001600160a01b03918216911614949350505050565b600060155482101561295557506006919050565b60165482101561296757506004919050565b60175482101561297957506003919050565b60185482101561298b57506002919050565b506001919050565b60028054604080516020810182526001600160a01b03858116808352600185018655600095865291517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace850180546001600160a01b031916919092161790559051919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038216612a8c5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610d08565b60008111612adc5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401610d08565b6001600160a01b0382166000908152600b602052604090205415612b565760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401610d08565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b60205260409020819055600954612bbe908290614053565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80471015612c575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d08565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ca4576040519150601f19603f3d011682016040523d82523d6000602084013e612ca9565b606091505b5050905080610eb55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d08565b6000612d2b8261280f565b612d475760405162461bcd60e51b8152600401610d089061418c565b6000612d5283611e88565b9050806001600160a01b0316846001600160a01b03161480612d8d5750836001600160a01b0316612d8284610d30565b6001600160a01b0316145b8061163f57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff1661163f565b826001600160a01b0316612dd482611e88565b6001600160a01b031614612e3d5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610d08565b600081815260066020526040902080546001600160a01b03191690556001600160a01b03838116600090815260036020526040808220805461ffff1980821661ffff928316600019018316179092559386168352912080549182169183166001019092161790556002805483919083908110612ebb57612ebb614114565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612f70848484612dc1565b612f7c84848484613333565b6124fc5760405162461bcd60e51b8152600401610d0890614441565b606081612fbc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fe65780612fd08161412a565b9150612fdf9050600a836140b7565b9150612fc0565b6000816001600160401b0381111561300057613000613d3a565b6040519080825280601f01601f19166020018201604052801561302a576020820181803683370190505b5090505b841561163f5761303f60018361406b565b915061304c600a86614494565b613057906030614053565b60f81b81838151811061306c5761306c614114565b60200101906001600160f81b031916908160001a90535061308e600a866140b7565b945061302e565b6001600160a01b0382166000908152600b602052604090205460095482916130bc9161406b565b6130c69190614053565b6009556001600160a01b0382166000908152600b60205260409020819055600d8054839190859081106130fb576130fb614114565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6000600a8190555b600d54811015611f2a576000600c6000600d848154811061315957613159614114565b60009182526020808320909101546001600160a01b031683528201929092526040019020556131878161412a565b9050613136565b6000546001600160a01b031633146131b85760405162461bcd60e51b8152600401610d0890613ff2565b6001600160a01b03811661321d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d08565b611f2a81612f15565b60006001600160e01b031982166380ac58cd60e01b148061325757506001600160e01b03198216635b5e139f60e01b145b80610c4557506301ffc9a760e01b6001600160e01b0319831614610c45565b600081815b84518110156132e257600085828151811061329857613298614114565b602002602001015190508083116132be57600083815260208290526040902092506132cf565b600081815260208490526040902092505b50806132da8161412a565b91505061327b565b509392505050565b6000303383604051602001613301939291906144a8565b604051602081830303815290604052805190602001209050919050565b6000611de58261332d85613440565b9061347b565b60006001600160a01b0384163b1561343557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133779033908990889088906004016144ee565b602060405180830381600087803b15801561339157600080fd5b505af19250505080156133c1575060408051601f3d908101601f191682019092526133be9181019061452b565b60015b61341b573d8080156133ef576040519150601f19603f3d011682016040523d82523d6000602084013e6133f4565b606091505b5080516134135760405162461bcd60e51b8152600401610d0890614441565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061163f565b506001949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01613301565b600080600061348a8585613497565b915091506132e281613504565b6000808251604114156134ce5760208301516040840151606085015160001a6134c2878285856136bf565b9450945050505061154c565b8251604014156134f857602083015160408401516134ed8683836137ac565b93509350505061154c565b5060009050600261154c565b600081600481111561351857613518614027565b14156135215750565b600181600481111561353557613535614027565b14156135835760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d08565b600281600481111561359757613597614027565b14156135e55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d08565b60038160048111156135f9576135f9614027565b14156136525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d08565b600481600481111561366657613666614027565b1415611f2a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d08565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156136f657506000905060036137a3565b8460ff16601b1415801561370e57508460ff16601c14155b1561371f57506000905060046137a3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613773573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661379c576000600192509250506137a3565b9150600090505b94509492505050565b6000806001600160ff1b038316816137c960ff86901c601b614053565b90506137d7878288856136bf565b935093505050935093915050565b8280546137f190613fbd565b90600052602060002090601f0160209004810192826138135760008555613859565b82601f1061382c5782800160ff19823516178555613859565b82800160010185558215613859579182015b8281111561385957823582559160200191906001019061383e565b50611e849291505b80821115611e845760008155600101613861565b6001600160e01b031981168114611f2a57600080fd5b60006020828403121561389d57600080fd5b8135611de581613875565b6001600160a01b0381168114611f2a57600080fd5b6000602082840312156138cf57600080fd5b8135611de5816138a8565b60005b838110156138f55781810151838201526020016138dd565b838111156124fc5750506000910152565b6000815180845261391e8160208601602086016138da565b601f01601f19169290920160200192915050565b602081526000611de56020830184613906565b60006020828403121561395757600080fd5b5035919050565b6000806040838503121561397157600080fd5b823561397c816138a8565b946020939093013593505050565b60008083601f84011261399c57600080fd5b5081356001600160401b038111156139b357600080fd5b60208301915083602082850101111561154c57600080fd5b61ffff81168114611f2a57600080fd5b60008083601f8401126139ed57600080fd5b5081356001600160401b03811115613a0457600080fd5b6020830191508360208260051b850101111561154c57600080fd5b60008060008060008060808789031215613a3857600080fd5b8635955060208701356001600160401b0380821115613a5657600080fd5b613a628a838b0161398a565b909750955060408901359150613a77826139cb565b90935060608801359080821115613a8d57600080fd5b50613a9a89828a016139db565b979a9699509497509295939492505050565b600080600060608486031215613ac157600080fd5b8335613acc816138a8565b92506020840135613adc816138a8565b929592945050506040919091013590565b60008060408385031215613b0057600080fd5b50508035926020909101359150565b600080600060608486031215613b2457600080fd5b8335613b2f816138a8565b92506020840135613b3f816139cb565b91506040840135613b4f816139cb565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015613b9257835183529284019291840191600101613b76565b50909695505050505050565b60008060008060608587031215613bb457600080fd5b8435935060208501358060010b8114613bcc57600080fd5b925060408501356001600160401b03811115613be757600080fd5b613bf38782880161398a565b95989497509550505050565b60008060408385031215613c1257600080fd5b8235613c1d816138a8565b915060208301358015158114613c3257600080fd5b809150509250929050565b600080600060408486031215613c5257600080fd5b8335613c5d816138a8565b925060208401356001600160401b03811115613c7857600080fd5b613c84868287016139db565b9497909650939450505050565b60008060008060808587031215613ca757600080fd5b5050823594602084013594506040840135936060013592509050565b60008060008060408587031215613cd957600080fd5b84356001600160401b0380821115613cf057600080fd5b613cfc888389016139db565b90965094506020870135915080821115613d1557600080fd5b50613bf3878288016139db565b600060c08284031215613d3457600080fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215613d6657600080fd5b8435613d71816138a8565b93506020850135613d81816138a8565b92506040850135915060608501356001600160401b0380821115613da457600080fd5b818701915087601f830112613db857600080fd5b813581811115613dca57613dca613d3a565b604051601f8201601f19908116603f01168101908382118183101715613df257613df2613d3a565b816040528281528a6020848701011115613e0b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060608587031215613e4557600080fd5b8435613e50816138a8565b93506020850135613e60816138a8565b925060408501356001600160401b03811115613e7b57600080fd5b613bf3878288016139db565b60008060008060408587031215613e9d57600080fd5b84356001600160401b0380821115613eb457600080fd5b613ec08883890161398a565b90965094506020870135915080821115613ed957600080fd5b50613bf38782880161398a565b600080600060608486031215613efb57600080fd5b833592506020840135613adc816138a8565b60008060408385031215613f2057600080fd5b8235613f2b816138a8565b91506020830135613c32816138a8565b60008060008060008060808789031215613f5457600080fd5b8635613f5f816138a8565b95506020870135613f6f816138a8565b945060408701356001600160401b0380821115613f8b57600080fd5b613f978a838b016139db565b90965094506060890135915080821115613fb057600080fd5b50613a9a89828a0161398a565b600181811c90821680613fd157607f821691505b60208210811415613d3457634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156140665761406661403d565b500190565b60008282101561407d5761407d61403d565b500390565b600081600019048311821515161561409c5761409c61403d565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826140c6576140c66140a1565b500490565b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561413e5761413e61403d565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60006020828403121561418157600080fd5b8151611de5816138a8565b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b6000602082840312156141e257600080fd5b8135611de5816139cb565b60ff81168114611f2a57600080fd5b60006020828403121561420e57600080fd5b8135611de5816141ed565b600081356001600160401b0381168114610c4557600080fd5b60008135610c45816139cb565b60008135610c45816141ed565b6001600160401b0361425d83614219565b168154816001600160401b031982161783556fffffffffffffffff000000000000000061428c60208601614219565b60401b1680836fffffffffffffffffffffffffffffffff1984161717845560408501356142b8816139cb565b71ffffffffffffffffffffffffffffffffffff199290921690921782811760809290921b61ffff60801b169182178455916060850135916142f8836139cb565b61ffff60901b1993909316179190911760909190911b61ffff60901b1617815561434761432760808401614232565b82805461ffff60a01b191660a09290921b61ffff60a01b16919091179055565b61130961435660a0840161423f565b82805460ff60b01b191660b09290921b60ff60b01b16919091179055565b8054600090600181811c908083168061438e57607f831692505b60208084108214156143b057634e487b7160e01b600052602260045260246000fd5b8180156143c457600181146143d557614402565b60ff19861689528489019650614402565b60008881526020902060005b868110156143fa5781548b8201529085019083016143e1565b505084890196505b50505050505092915050565b600061441a8286614374565b845161442a8183602089016138da565b61443681830186614374565b979650505050505050565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6000826144a3576144a36140a1565b500690565b60006bffffffffffffffffffffffff19808660601b168352808560601b1660148401525082516144df8160288501602087016138da565b91909101602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061452190830184613906565b9695505050505050565b60006020828403121561453d57600080fd5b8151611de58161387556fea26469706673582212209432b726690b254e28e20affd2886fd593086fe42861bb9c567fea761342cbee64736f6c63430008090033
Deployed Bytecode
0x60806040526004361061037a5760003560e01c8063715018a6116101d1578063c042314511610102578063dc584425116100a0578063e985e9c51161006f578063e985e9c514610b80578063ececaf0014610bc9578063f2fde38b14610be9578063ff82c72314610c0957600080fd5b8063dc58442514610b16578063df23880014610b36578063e33b7de314610b56578063e4ed53a914610b6b57600080fd5b8063c87b56dd116100dc578063c87b56dd14610a8b578063ce7c2ac214610aab578063d48ede9914610ae1578063dbbc853b14610b0157600080fd5b8063c042314514610a40578063c0ac998314610a60578063c11b2c6f14610a7557600080fd5b806395d89b411161016f578063a22cb46511610149578063a22cb465146109cd578063ae7bf4c8146109ed578063af623c2514610a00578063b88d4fde14610a2057600080fd5b806395d89b411461096c5780639852595c146109815780639eb4a1ff146109b757600080fd5b80637abf7539116101ab5780637abf7539146108ee5780637cb647591461090e5780638b83209b1461092e5780638da5cb5b1461094e57600080fd5b8063715018a6146107c35780637885fdc7146107d857806379502c551461085057600080fd5b80633a98ef39116102ab5780634d44660c116102495780636352211e116102235780636352211e1461074d5780636b9f96ea1461076d5780636c19e7831461078357806370a08231146107a357600080fd5b80634d44660c146106ed5780634f64b2be1461070d5780634f6ccce71461072d57600080fd5b806342842e0e1161028557806342842e0e1461066d578063438b63001461068d57806349edc1f7146106ba5780634a994eef146106cd57600080fd5b80633a98ef39146106235780633ccfd60b1461063857806341acc66a1461064d57600080fd5b806318160ddd1161031857806323b872dd116102f257806323b872dd146105845780632a55205a146105a45780632f745c59146105e3578063317578041461060357600080fd5b806318160ddd1461052557806318f9b02314610544578063191655871461056457600080fd5b80630777962711610354578063077796271461048b578063081812fc146104ab578063095ea7b3146104e3578063141e95b71461050557600080fd5b806301ffc9a7146103c8578063022914a7146103fd57806306fdde031461046957600080fd5b366103c3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103d457600080fd5b506103e86103e336600461388b565b610c1f565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b506104446104183660046138bd565b60036020526000908152604090205461ffff808216916201000081048216916401000000009091041683565b6040805161ffff948516815292841660208401529216918101919091526060016103f4565b34801561047557600080fd5b5061047e610c4b565b6040516103f49190613932565b34801561049757600080fd5b506103e86104a63660046138bd565b610cdd565b3480156104b757600080fd5b506104cb6104c6366004613945565b610d30565b6040516001600160a01b0390911681526020016103f4565b3480156104ef57600080fd5b506105036104fe36600461395e565b610daf565b005b34801561051157600080fd5b50610503610520366004613a1f565b610eba565b34801561053157600080fd5b506002545b6040519081526020016103f4565b34801561055057600080fd5b5061050361055f36600461395e565b6112d5565b34801561057057600080fd5b5061050361057f3660046138bd565b61130d565b34801561059057600080fd5b5061050361059f366004613aac565b6114de565b3480156105b057600080fd5b506105c46105bf366004613aed565b61150f565b604080516001600160a01b0390931683526020830191909152016103f4565b3480156105ef57600080fd5b506105366105fe36600461395e565b611553565b34801561060f57600080fd5b5061050361061e3660046138bd565b611647565b34801561062f57600080fd5b50600954610536565b34801561064457600080fd5b50610503611698565b34801561065957600080fd5b50610503610668366004613b0f565b6116df565b34801561067957600080fd5b50610503610688366004613aac565b611762565b34801561069957600080fd5b506106ad6106a83660046138bd565b61177d565b6040516103f49190613b5a565b6105036106c8366004613b9e565b611872565b3480156106d957600080fd5b506105036106e8366004613bff565b611d1b565b3480156106f957600080fd5b506103e8610708366004613c3d565b611d70565b34801561071957600080fd5b506104cb610728366004613945565b611dec565b34801561073957600080fd5b50610536610748366004613945565b611e16565b34801561075957600080fd5b506104cb610768366004613945565b611e88565b34801561077957600080fd5b5061053660185481565b34801561078f57600080fd5b5061050361079e3660046138bd565b611edd565b3480156107af57600080fd5b506105366107be3660046138bd565b611f2d565b3480156107cf57600080fd5b50610503611fb9565b3480156107e457600080fd5b50600e5460408051808201909152600f5461ffff80821683526201000090910416602082015261081b916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff90811660208086019190915290920151909116908201526060016103f4565b34801561085c57600080fd5b506011546108a9906001600160401b0380821691600160401b81049091169061ffff600160801b8204811691600160901b8104821691600160a01b8204169060ff600160b01b9091041686565b604080516001600160401b03978816815296909516602087015261ffff93841694860194909452908216606085015216608083015260ff1660a082015260c0016103f4565b3480156108fa57600080fd5b50610503610909366004613c91565b611fed565b34801561091a57600080fd5b50610503610929366004613945565b612030565b34801561093a57600080fd5b506104cb610949366004613945565b612064565b34801561095a57600080fd5b506000546001600160a01b03166104cb565b34801561097857600080fd5b5061047e612079565b34801561098d57600080fd5b5061053661099c3660046138bd565b6001600160a01b03166000908152600c602052604090205490565b3480156109c357600080fd5b5061053660155481565b3480156109d957600080fd5b506105036109e8366004613bff565b612088565b6105036109fb366004613cc3565b6120f4565b348015610a0c57600080fd5b50610503610a1b366004613d22565b61234a565b348015610a2c57600080fd5b50610503610a3b366004613d50565b6124ca565b348015610a4c57600080fd5b50610503610a5b366004613e2f565b612502565b348015610a6c57600080fd5b5061047e612547565b348015610a8157600080fd5b5061053660175481565b348015610a9757600080fd5b5061047e610aa6366004613945565b6125d5565b348015610ab757600080fd5b50610536610ac63660046138bd565b6001600160a01b03166000908152600b602052604090205490565b348015610aed57600080fd5b50610503610afc366004613e87565b612661565b348015610b0d57600080fd5b5061047e6126a9565b348015610b2257600080fd5b506012546104cb906001600160a01b031681565b348015610b4257600080fd5b50610503610b51366004613ee6565b6126b6565b348015610b6257600080fd5b50600a54610536565b348015610b7757600080fd5b506105036126eb565b348015610b8c57600080fd5b506103e8610b9b366004613f0d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610bd557600080fd5b50610503610be4366004613f3b565b61271d565b348015610bf557600080fd5b50610503610c043660046138bd565b61279b565b348015610c1557600080fd5b5061053660165481565b6000610c2a826127ea565b80610c45575063152a902d60e11b6001600160e01b03198316145b92915050565b606060048054610c5a90613fbd565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8690613fbd565b8015610cd35780601f10610ca857610100808354040283529160200191610cd3565b820191906000526020600020905b815481529060010190602001808311610cb657829003601f168201915b5050505050905090565b600080546001600160a01b03163314610d115760405162461bcd60e51b8152600401610d0890613ff2565b60405180910390fd5b506001600160a01b031660009081526001602052604090205460ff1690565b6000610d3b8261280f565b610d935760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b6064820152608401610d08565b506000908152600660205260409020546001600160a01b031690565b6000610dba82611e88565b9050806001600160a01b0316836001600160a01b03161415610e295760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610d08565b336001600160a01b0382161480610e455750610e458133610b9b565b610eab5760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b6064820152608401610d08565b610eb58383612859565b505050565b6040805160c0810182526011546001600160401b038082168352600160401b8204166020830152600160801b810461ffff90811693830193909352600160901b810483166060830152600160a01b81049092166080820152600160b01b90910460ff1660a0820152600254816080015161ffff168110610f785760405162461bcd60e51b81526020600482015260196024820152786d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610d08565b60008881526019602052604090205460ff1615610fc55760405162461bcd60e51b815260206004820152600b60248201526a1c985b991bdb481d5cd95960aa1b6044820152606401610d08565b60a0820151600190811681146110155760405162461bcd60e51b8152602060048201526015602482015274436c61696d7320617265206e6f742061637469766560581b6044820152606401610d08565b336000818152600360209081526040808320815160608082018452915461ffff8082168352620100008204811683870152640100000000909104811682850152835180850185528781528d8216908601908152845195860197909752955190951691830191909152016040516020818303038152906040528051906020012090506110d3818888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506128c792505050565b6111175760405162461bcd60e51b81526020600482015260156024820152741b9bdd081bdb881d1a194818db185a5b481b1a5cdd605a1b6044820152606401610d08565b8761ffff16826020015161ffff16106111685760405162461bcd60e51b8152602060048201526013602482015272185b1b0818db185a5b5cc81c995919595b5959606a1b6044820152606401610d08565b6111948b60405160200161117e91815260200190565b6040516020818303038152906040528b8b6128de565b6111d15760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642072616e646f6d60901b6044820152606401610d08565b60006111dc8c612941565b90506111ec61ffff821686614053565b866080015161ffff1610156112125784866080015161ffff1661120f919061406b565b90505b60008c8152601960209081526040808320805460ff191660019081179091558151606081018352875161ffff908701811682528885015190920182168185019081528884015183168285019081523387526003909552928520905181549351945183166401000000000265ffff0000000019958416620100000263ffffffff19909516919093161792909217929092169190911790555b8161ffff168110156112c6576112be33612993565b6001016112a9565b50505050505050505050505050565b6000546001600160a01b031633146112ff5760405162461bcd60e51b8152600401610d0890613ff2565b6113098282612a21565b5050565b6001600160a01b0381166000908152600b60205260409020546113815760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610d08565b6000600a54476113919190614053565b6001600160a01b0383166000908152600c6020908152604080832054600954600b9093529083205493945091926113c89085614082565b6113d291906140b7565b6113dc919061406b565b90508061143f5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610d08565b6001600160a01b0383166000908152600c6020526040902054611463908290614053565b6001600160a01b0384166000908152600c6020526040902055600a5461148a908290614053565b600a556114978382612c07565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6114e83382612d20565b6115045760405162461bcd60e51b8152600401610d08906140cb565b610eb5838383612dc1565b600f546000908190819061ffff620100008204811691611530911686614082565b61153a91906140b7565b600e546001600160a01b031693509150505b9250929050565b6001600160a01b03821660009081526003602052604081205461ffff1682106115d35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d08565b6000805b60025481101561163f57600281815481106115f4576115f4614114565b6000918252602090912001546001600160a01b038681169116146116175761162f565b816116218161412a565b925084141561162f5761163f565b6116388161412a565b90506115d7565b949350505050565b3360009081526001602052604090205460ff166116765760405162461bcd60e51b8152600401610d0890614145565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146116c25760405162461bcd60e51b8152600401610d0890613ff2565b6116dd6116d76000546001600160a01b031690565b47612c07565b565b6000546001600160a01b031633146117095760405162461bcd60e51b8152600401610d0890613ff2565b600e80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600f805463ffffffff191690911762010000909202919091179055505050565b610eb5838383604051806020016040528060008152506124ca565b6001600160a01b0381166000908152600360205260408120546060919061ffff1681816001600160401b038111156117b7576117b7613d3a565b6040519080825280602002602001820160405280156117e0578160200160208202803683370190505b50905060005b600254811015611869576002818154811061180357611803614114565b6000918252602090912001546001600160a01b03878116911614156118595780828561182e8161412a565b96508151811061184057611840614114565b6020026020010181815250508284141561185957611869565b6118628161412a565b90506117e6565b50949350505050565b6040805160c0810182526011546001600160401b038082168352600160401b8204166020830152600160801b810461ffff90811693830193909352600160901b810483166060830152600160a01b81049092166080820152600160b01b90910460ff1660a0820152600254816080015161ffff1681106119305760405162461bcd60e51b81526020600482015260196024820152786d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610d08565b60008681526019602052604090205460ff161561197d5760405162461bcd60e51b815260206004820152600b60248201526a1c985b991bdb481d5cd95960aa1b6044820152606401610d08565b336000908152600360209081526040918290208251606081018452905461ffff808216835262010000820481169383019390935264010000000090049091169181019190915260a08301516002908116811415611b7757836040015161ffff16826040015161ffff1610611a255760405162461bcd60e51b815260206004820152600f60248201526e646f6e27742062652067726565647960881b6044820152606401610d08565b6000198760010b138015611abe57506012546040516331a9108f60e11b815261ffff8916600482015233916001600160a01b031690636352211e9060240160206040518083038186803b158015611a7b57600080fd5b505afa158015611a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab3919061416f565b6001600160a01b0316145b15611b215783602001516001600160401b0316341015611b1c5760405162461bcd60e51b8152602060048201526019602482015278195d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610d08565b611bb4565b83516001600160401b0316341015611b1c5760405162461bcd60e51b8152602060048201526019602482015278195d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610d08565b60405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610d08565b611be088604051602001611bca91815260200190565b60405160208183030381529060405287876128de565b611c1d5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642072616e646f6d60901b6044820152606401610d08565b6000611c2889612941565b9050611c3861ffff821685614053565b856080015161ffff161015611c5e5783856080015161ffff16611c5b919061406b565b90505b6000898152601960209081526040808320805460ff191660019081179091558151606081018352875161ffff908701811682528885015181168286019081528985015190930181168285019081523387526003909552928520905181549251945184166401000000000265ffff0000000019958516620100000263ffffffff19909416919094161791909117929092161790555b8161ffff16811015611d0f57611d0733612993565b600101611cf2565b50505050505050505050565b6000546001600160a01b03163314611d455760405162461bcd60e51b8152600401610d0890613ff2565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000805b82811015611ddf576002848483818110611d9057611d90614114565b9050602002013581548110611da757611da7614114565b6000918252602090912001546001600160a01b03868116911614611dcf576000915050611de5565b611dd88161412a565b9050611d74565b50600190505b9392505050565b60028181548110611dfc57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000611e218261280f565b611e845760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610d08565b5090565b6000611e938261280f565b611eaf5760405162461bcd60e51b8152600401610d089061418c565b60028281548110611ec257611ec2614114565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff16611f0c5760405162461bcd60e51b8152600401610d0890614145565b601080546001600160a01b0319166001600160a01b03831617905550565b50565b60006001600160a01b038216611f995760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610d08565b506001600160a01b031660009081526003602052604090205461ffff1690565b6000546001600160a01b03163314611fe35760405162461bcd60e51b8152600401610d0890613ff2565b6116dd6000612f15565b3360009081526001602052604090205460ff1661201c5760405162461bcd60e51b8152600401610d0890614145565b601593909355601691909155601755601855565b3360009081526001602052604090205460ff1661205f5760405162461bcd60e51b8152600401610d0890614145565b600855565b6000600d8281548110611ec257611ec2614114565b606060058054610c5a90613fbd565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526001602052604090205460ff166121235760405162461bcd60e51b8152600401610d0890614145565b8281146121875760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610d08565b6000805b848110156121cb578585828181106121a5576121a5614114565b90506020020160208101906121ba91906141d0565b61ffff16919091019060010161218b565b5060115461ffff600160a01b90910416816121e560025490565b6121ef9190614053565b111561223d5760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c79000000000000006044820152606401610d08565b60005b828110156123425785858281811061225a5761225a614114565b905060200201602081019061226f91906141d0565b6003600086868581811061228557612285614114565b905060200201602081019061229a91906138bd565b6001600160a01b0316815260208101919091526040016000908120805461ffff19811661ffff9182169490940116929092179091555b8686838181106122e2576122e2614114565b90506020020160208101906122f791906141d0565b61ffff168110156123395761233185858481811061231757612317614114565b905060200201602081019061232c91906138bd565b612993565b6001016122d0565b50600101612240565b505050505050565b3360009081526001602052604090205460ff166123795760405162461bcd60e51b8152600401610d0890614145565b61238960a08201608083016141d0565b61ffff1661239d60808301606084016141d0565b61ffff1611156123ef5760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c796044820152606401610d08565b6123ff60a08201608083016141d0565b61ffff1661240c60025490565b11156124665760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b6064820152608401610d08565b600461247860c0830160a084016141fc565b60ff16106124bd5760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b6044820152606401610d08565b806011610eb5828261424c565b6124d43383612d20565b6124f05760405162461bcd60e51b8152600401610d08906140cb565b6124fc84848484612f65565b50505050565b60005b8181101561254057612530858585858581811061252457612524614114565b905060200201356114de565b6125398161412a565b9050612505565b5050505050565b6013805461255490613fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461258090613fbd565b80156125cd5780601f106125a2576101008083540402835291602001916125cd565b820191906000526020600020905b8154815290600101906020018083116125b057829003601f168201915b505050505081565b60606125e08261280f565b61262c5760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610d08565b601361263783612f98565b601460405160200161264b9392919061440e565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff166126905760405162461bcd60e51b8152600401610d0890614145565b61269c601385856137e5565b50612540601483836137e5565b6014805461255490613fbd565b6000546001600160a01b031633146126e05760405162461bcd60e51b8152600401610d0890613ff2565b610eb5838383613095565b6000546001600160a01b031633146127155760405162461bcd60e51b8152600401610d0890613ff2565b6116dd61312e565b60005b8381101561279257612782878787878581811061273f5761273f614114565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506124ca92505050565b61278b8161412a565b9050612720565b50505050505050565b6000546001600160a01b031633146127c55760405162461bcd60e51b8152600401610d0890613ff2565b6127ce8161318e565b611f2a6127e36000546001600160a01b031690565b6001611d1b565b60006001600160e01b0319821663780e9d6360e01b1480610c455750610c4582613226565b60025460009082108015610c45575060006001600160a01b03166002838154811061283c5761283c614114565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061288e82611e88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006008546128d68385613276565b149392505050565b60006129286128ec856132ea565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061331e92505050565b6010546001600160a01b03918216911614949350505050565b600060155482101561295557506006919050565b60165482101561296757506004919050565b60175482101561297957506003919050565b60185482101561298b57506002919050565b506001919050565b60028054604080516020810182526001600160a01b03858116808352600185018655600095865291517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace850180546001600160a01b031916919092161790559051919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038216612a8c5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610d08565b60008111612adc5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401610d08565b6001600160a01b0382166000908152600b602052604090205415612b565760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401610d08565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b60205260409020819055600954612bbe908290614053565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80471015612c575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d08565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ca4576040519150601f19603f3d011682016040523d82523d6000602084013e612ca9565b606091505b5050905080610eb55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d08565b6000612d2b8261280f565b612d475760405162461bcd60e51b8152600401610d089061418c565b6000612d5283611e88565b9050806001600160a01b0316846001600160a01b03161480612d8d5750836001600160a01b0316612d8284610d30565b6001600160a01b0316145b8061163f57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff1661163f565b826001600160a01b0316612dd482611e88565b6001600160a01b031614612e3d5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610d08565b600081815260066020526040902080546001600160a01b03191690556001600160a01b03838116600090815260036020526040808220805461ffff1980821661ffff928316600019018316179092559386168352912080549182169183166001019092161790556002805483919083908110612ebb57612ebb614114565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612f70848484612dc1565b612f7c84848484613333565b6124fc5760405162461bcd60e51b8152600401610d0890614441565b606081612fbc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fe65780612fd08161412a565b9150612fdf9050600a836140b7565b9150612fc0565b6000816001600160401b0381111561300057613000613d3a565b6040519080825280601f01601f19166020018201604052801561302a576020820181803683370190505b5090505b841561163f5761303f60018361406b565b915061304c600a86614494565b613057906030614053565b60f81b81838151811061306c5761306c614114565b60200101906001600160f81b031916908160001a90535061308e600a866140b7565b945061302e565b6001600160a01b0382166000908152600b602052604090205460095482916130bc9161406b565b6130c69190614053565b6009556001600160a01b0382166000908152600b60205260409020819055600d8054839190859081106130fb576130fb614114565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6000600a8190555b600d54811015611f2a576000600c6000600d848154811061315957613159614114565b60009182526020808320909101546001600160a01b031683528201929092526040019020556131878161412a565b9050613136565b6000546001600160a01b031633146131b85760405162461bcd60e51b8152600401610d0890613ff2565b6001600160a01b03811661321d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d08565b611f2a81612f15565b60006001600160e01b031982166380ac58cd60e01b148061325757506001600160e01b03198216635b5e139f60e01b145b80610c4557506301ffc9a760e01b6001600160e01b0319831614610c45565b600081815b84518110156132e257600085828151811061329857613298614114565b602002602001015190508083116132be57600083815260208290526040902092506132cf565b600081815260208490526040902092505b50806132da8161412a565b91505061327b565b509392505050565b6000303383604051602001613301939291906144a8565b604051602081830303815290604052805190602001209050919050565b6000611de58261332d85613440565b9061347b565b60006001600160a01b0384163b1561343557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133779033908990889088906004016144ee565b602060405180830381600087803b15801561339157600080fd5b505af19250505080156133c1575060408051601f3d908101601f191682019092526133be9181019061452b565b60015b61341b573d8080156133ef576040519150601f19603f3d011682016040523d82523d6000602084013e6133f4565b606091505b5080516134135760405162461bcd60e51b8152600401610d0890614441565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061163f565b506001949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01613301565b600080600061348a8585613497565b915091506132e281613504565b6000808251604114156134ce5760208301516040840151606085015160001a6134c2878285856136bf565b9450945050505061154c565b8251604014156134f857602083015160408401516134ed8683836137ac565b93509350505061154c565b5060009050600261154c565b600081600481111561351857613518614027565b14156135215750565b600181600481111561353557613535614027565b14156135835760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d08565b600281600481111561359757613597614027565b14156135e55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d08565b60038160048111156135f9576135f9614027565b14156136525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d08565b600481600481111561366657613666614027565b1415611f2a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d08565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156136f657506000905060036137a3565b8460ff16601b1415801561370e57508460ff16601c14155b1561371f57506000905060046137a3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613773573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661379c576000600192509250506137a3565b9150600090505b94509492505050565b6000806001600160ff1b038316816137c960ff86901c601b614053565b90506137d7878288856136bf565b935093505050935093915050565b8280546137f190613fbd565b90600052602060002090601f0160209004810192826138135760008555613859565b82601f1061382c5782800160ff19823516178555613859565b82800160010185558215613859579182015b8281111561385957823582559160200191906001019061383e565b50611e849291505b80821115611e845760008155600101613861565b6001600160e01b031981168114611f2a57600080fd5b60006020828403121561389d57600080fd5b8135611de581613875565b6001600160a01b0381168114611f2a57600080fd5b6000602082840312156138cf57600080fd5b8135611de5816138a8565b60005b838110156138f55781810151838201526020016138dd565b838111156124fc5750506000910152565b6000815180845261391e8160208601602086016138da565b601f01601f19169290920160200192915050565b602081526000611de56020830184613906565b60006020828403121561395757600080fd5b5035919050565b6000806040838503121561397157600080fd5b823561397c816138a8565b946020939093013593505050565b60008083601f84011261399c57600080fd5b5081356001600160401b038111156139b357600080fd5b60208301915083602082850101111561154c57600080fd5b61ffff81168114611f2a57600080fd5b60008083601f8401126139ed57600080fd5b5081356001600160401b03811115613a0457600080fd5b6020830191508360208260051b850101111561154c57600080fd5b60008060008060008060808789031215613a3857600080fd5b8635955060208701356001600160401b0380821115613a5657600080fd5b613a628a838b0161398a565b909750955060408901359150613a77826139cb565b90935060608801359080821115613a8d57600080fd5b50613a9a89828a016139db565b979a9699509497509295939492505050565b600080600060608486031215613ac157600080fd5b8335613acc816138a8565b92506020840135613adc816138a8565b929592945050506040919091013590565b60008060408385031215613b0057600080fd5b50508035926020909101359150565b600080600060608486031215613b2457600080fd5b8335613b2f816138a8565b92506020840135613b3f816139cb565b91506040840135613b4f816139cb565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015613b9257835183529284019291840191600101613b76565b50909695505050505050565b60008060008060608587031215613bb457600080fd5b8435935060208501358060010b8114613bcc57600080fd5b925060408501356001600160401b03811115613be757600080fd5b613bf38782880161398a565b95989497509550505050565b60008060408385031215613c1257600080fd5b8235613c1d816138a8565b915060208301358015158114613c3257600080fd5b809150509250929050565b600080600060408486031215613c5257600080fd5b8335613c5d816138a8565b925060208401356001600160401b03811115613c7857600080fd5b613c84868287016139db565b9497909650939450505050565b60008060008060808587031215613ca757600080fd5b5050823594602084013594506040840135936060013592509050565b60008060008060408587031215613cd957600080fd5b84356001600160401b0380821115613cf057600080fd5b613cfc888389016139db565b90965094506020870135915080821115613d1557600080fd5b50613bf3878288016139db565b600060c08284031215613d3457600080fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215613d6657600080fd5b8435613d71816138a8565b93506020850135613d81816138a8565b92506040850135915060608501356001600160401b0380821115613da457600080fd5b818701915087601f830112613db857600080fd5b813581811115613dca57613dca613d3a565b604051601f8201601f19908116603f01168101908382118183101715613df257613df2613d3a565b816040528281528a6020848701011115613e0b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060608587031215613e4557600080fd5b8435613e50816138a8565b93506020850135613e60816138a8565b925060408501356001600160401b03811115613e7b57600080fd5b613bf3878288016139db565b60008060008060408587031215613e9d57600080fd5b84356001600160401b0380821115613eb457600080fd5b613ec08883890161398a565b90965094506020870135915080821115613ed957600080fd5b50613bf38782880161398a565b600080600060608486031215613efb57600080fd5b833592506020840135613adc816138a8565b60008060408385031215613f2057600080fd5b8235613f2b816138a8565b91506020830135613c32816138a8565b60008060008060008060808789031215613f5457600080fd5b8635613f5f816138a8565b95506020870135613f6f816138a8565b945060408701356001600160401b0380821115613f8b57600080fd5b613f978a838b016139db565b90965094506060890135915080821115613fb057600080fd5b50613a9a89828a0161398a565b600181811c90821680613fd157607f821691505b60208210811415613d3457634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156140665761406661403d565b500190565b60008282101561407d5761407d61403d565b500390565b600081600019048311821515161561409c5761409c61403d565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826140c6576140c66140a1565b500490565b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561413e5761413e61403d565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60006020828403121561418157600080fd5b8151611de5816138a8565b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b6000602082840312156141e257600080fd5b8135611de5816139cb565b60ff81168114611f2a57600080fd5b60006020828403121561420e57600080fd5b8135611de5816141ed565b600081356001600160401b0381168114610c4557600080fd5b60008135610c45816139cb565b60008135610c45816141ed565b6001600160401b0361425d83614219565b168154816001600160401b031982161783556fffffffffffffffff000000000000000061428c60208601614219565b60401b1680836fffffffffffffffffffffffffffffffff1984161717845560408501356142b8816139cb565b71ffffffffffffffffffffffffffffffffffff199290921690921782811760809290921b61ffff60801b169182178455916060850135916142f8836139cb565b61ffff60901b1993909316179190911760909190911b61ffff60901b1617815561434761432760808401614232565b82805461ffff60a01b191660a09290921b61ffff60a01b16919091179055565b61130961435660a0840161423f565b82805460ff60b01b191660b09290921b60ff60b01b16919091179055565b8054600090600181811c908083168061438e57607f831692505b60208084108214156143b057634e487b7160e01b600052602260045260246000fd5b8180156143c457600181146143d557614402565b60ff19861689528489019650614402565b60008881526020902060005b868110156143fa5781548b8201529085019083016143e1565b505084890196505b50505050505092915050565b600061441a8286614374565b845161442a8183602089016138da565b61443681830186614374565b979650505050505050565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6000826144a3576144a36140a1565b500690565b60006bffffffffffffffffffffffff19808660601b168352808560601b1660148401525082516144df8160288501602087016138da565b91909101602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061452190830184613906565b9695505050505050565b60006020828403121561453d57600080fd5b8151611de58161387556fea26469706673582212209432b726690b254e28e20affd2886fd593086fe42861bb9c567fea761342cbee64736f6c63430008090033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.