Feature Tip: Add private address tag to any address under My Name Tag !
NFT
Overview
TokenID
7145
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Phoenixes
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.0; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import './Delegated.sol'; import './ERC721Staked.sol'; import './Merkle.sol'; import './Royalties.sol'; contract Phoenixes is Delegated, ERC721Staked, Royalties, Merkle { using Address for address; using Strings for uint256; struct MintConfig{ uint64 ethPrice; uint16 maxMint; uint16 maxOrder; uint16 maxSupply; SaleState saleState; } enum SaleState{ NONE, PRESALE, MAINSALE } MintConfig public config = MintConfig( 0.0888 ether, 3, 3, 8888, SaleState.NONE ); address public crossmintProxy = 0xdAb1a1854214684acE522439684a145E62505233; address public payee = 0x4d0b3D71F4De4aaF2ea798A20F4EaD55A0F7416F; uint256 public supplyPerFaction = 1111; string public tokenURIPrefix; string public tokenURISuffix; mapping(uint256 => uint16) public factionSupply; constructor() ERC721B("Phoenixes", "PHNX") Royalties( owner(), 690, 10000 ){ } //safety first receive() external payable {} //view function getFactionSupply() external view returns(uint[] memory factions){ factions = new uint[]( 9 ); factions[0] = config.maxSupply - _supply; factions[1] = supplyPerFaction - factionSupply[1]; factions[2] = supplyPerFaction - factionSupply[2]; factions[3] = supplyPerFaction - factionSupply[3]; factions[4] = supplyPerFaction - factionSupply[4]; factions[5] = supplyPerFaction - factionSupply[5]; factions[6] = supplyPerFaction - factionSupply[6]; factions[7] = supplyPerFaction - factionSupply[7]; factions[8] = supplyPerFaction - factionSupply[8]; } //payable function crossMint( uint16 quantity, uint16 factionIdx, address recipient, bytes32[] calldata proof ) external payable { require( msg.sender == crossmintProxy ); _mint( quantity, factionIdx, recipient, proof ); } function mint( uint16 quantity, uint16 factionIdx, bytes32[] calldata proof ) external payable { _mint( quantity, factionIdx, msg.sender, proof ); } //onlyDelegates function burnFrom(uint256[] calldata tokenIds, address account) external payable onlyDelegates{ unchecked{ for(uint i; i < tokenIds.length; ++i ){ uint256 tokenId = tokenIds[i]; require( tokens[ tokenId ].stakeStart == 1, "Cannot burn while staked" ); _burn( account, tokenId ); } } } function mintTo(uint16[] calldata quantity, uint16[] calldata factions, 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" ); bool randomize; uint256 factionIdx; bytes memory hashData = _hashData(); unchecked{ for(uint256 i; i < recipient.length; ++i){ owners[recipient[i]].balance += quantity[i]; factionIdx = factions[i]; randomize = factionIdx == 0; for(uint256 j; j < quantity[i]; ++j){ if( randomize ) factionIdx = _randomFaction( hashData, j ); else require( factionSupply[ factionIdx ] + quantity[i] <= supplyPerFaction, "Mint/Order exceeds factoin supply" ); uint256 tokenId = (factionIdx - 1) * supplyPerFaction + factionSupply[ factionIdx ]; ++factionSupply[ factionIdx ]; _mint( recipient[i], tokenId ); } } } } function resurrectFor( uint[] calldata tokenIds, address[] calldata recipient ) external onlyDelegates{ require(tokenIds.length == recipient.length, "Must provide equal tokenIds and recipients" ); unchecked{ uint256 tokenId; for(uint i; i < tokenIds.length; ++i ){ tokenId = tokenIds[i]; require( !_exists( tokenId ), "Resurrect token(s) must not exist" ); --owners[address(0)].balance; ++tokens[tokenId].revived; _transfer(address(0), recipient[i], tokenId); } } } 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) < 3, "invalid sale state" ); config = newConfig; } function setCrossmint( address proxy ) external onlyDelegates{ crossmintProxy = proxy; } function setFactionSupply( uint256 newSupply ) external onlyDelegates{ supplyPerFaction = newSupply; } function setPayee( address newPayee ) external onlyOwner{ payee = newPayee; } function setStakeHandler( IStakeHandler handler ) external onlyDelegates{ stakeHandler = handler; } function setTokenURI( string calldata prefix, string calldata suffix ) external onlyDelegates{ tokenURIPrefix = prefix; tokenURISuffix = suffix; } //onlyOwner function setDefaultRoyalty( address receiver, uint16 feeNumerator, uint16 feeDenominator ) external onlyOwner { _setDefaultRoyalty( receiver, feeNumerator, feeDenominator ); } //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); } //private function _mint( uint16 quantity, uint256 factionIdx, address recipient, bytes32[] memory proof ) private { require( quantity > 0, "Must order 1+" ); require( factionIdx < 9, "Invalid faction" ); MintConfig memory cfg = config; Owner memory prev = owners[recipient]; require( quantity <= cfg.maxOrder, "Order too big" ); require( prev.purchased + quantity <= cfg.maxMint, "Mint limit reached" ); require( totalSupply() + quantity <= cfg.maxSupply, "Mint/Order exceeds supply" ); require( msg.value >= cfg.ethPrice * quantity, "Ether sent is not correct" ); if( factionIdx > 0 ){ require( factionSupply[ factionIdx ] + quantity <= supplyPerFaction, "Mint/Order exceeds faction supply" ); } if( cfg.saleState == SaleState.MAINSALE ){ //no-op } else if( cfg.saleState == SaleState.PRESALE ){ require( _isValidProof( keccak256( abi.encodePacked( recipient ) ), proof ), "Not on the access list" ); } else{ revert( "Sale is not active" ); } bytes memory hashData = _hashData(); bool randomize = factionIdx == 0; unchecked{ owners[recipient] = Owner( prev.balance + quantity, prev.purchased + quantity ); for(uint256 i; i < quantity; ++i ){ if( randomize ) factionIdx = _randomFaction( hashData, i ); uint256 tokenId = (factionIdx - 1) * supplyPerFaction + factionSupply[ factionIdx ]; ++factionSupply[ factionIdx ]; _mint( recipient, tokenId ); } } } function _hashData() private view returns( bytes memory ){ //uint160 cbVal = uint160( address(block.coinbase) ); bytes memory hashData = bytes.concat("", bytes20( address(block.coinbase))); //160 bits //uint40 feeVal = uint40( block.basefee % type(uint40).max ); hashData = bytes.concat(hashData, bytes5( uint40( block.basefee % type(uint40).max ))); //200 bits //uint32 limVal = uint32( block.gaslimit % type(uint32).max ); hashData = bytes.concat(hashData, bytes4( uint32( block.gaslimit % type(uint32).max ))); //232 bits //uint40 gasVal = uint40( tx.gasprice % type(uint40).max ); return bytes.concat(hashData, bytes5( uint40( tx.gasprice % type(uint40).max ))); //272 bits } function _randomFaction( bytes memory hashData, uint256 index) private view returns( uint256 ){ uint256 random = _random( hashData, index ); for( uint256 i; i < 8; ++i ){ uint256 factionIdx_ = ((random + i) % 8) + 1; if( factionSupply[ factionIdx_ ] < supplyPerFaction ) return factionIdx_; } revert( "Random failed" ); } function _random(bytes memory hashData, uint256 index) private view returns( uint256 ){ uint256 blockid = block.number - (gasleft() % type(uint8).max); uint256 blkHash = uint256(blockhash( blockid )); return uint256(keccak256( index % 2 == 1 ? abi.encodePacked( blkHash, index, hashData ): abi.encodePacked( hashData, index, blkHash ) )); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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; //mapping(uint => Royalty) public tokenRoyalties; 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/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; struct StakeSummary{ address owner; //160 uint16 tokenId; //176 uint32 accrued; //208 uint32 total; //240 } interface IStakeHandler{ function handleClaims( StakeSummary[] calldata stakes ) external; function handleStakes( uint256[] calldata tokenIds ) external; }
// 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 "./ERC721Batch.sol"; import "./IStakeHandler.sol"; abstract contract ERC721Staked is ERC721Batch { IStakeHandler public stakeHandler; function ownerOf( uint256 tokenId ) public override view returns( address currentOwner ){ require(_exists(tokenId), "ERC721B: query for nonexistent token"); if( tokens[ tokenId ].stakeStart > 1 ) currentOwner = address(this); else currentOwner = tokens[tokenId].owner; } function claimTokens( uint256[] calldata tokenIds, bool restake ) external { uint32 time = uint32(block.timestamp); StakeSummary[] memory stakes = new StakeSummary[](tokenIds.length); for(uint256 i = 0; i < tokenIds.length; ++i ){ Token storage token = tokens[ tokenIds[i] ]; require( token.owner == msg.sender, "caller is not owner" ); require( token.stakeStart > 1, "token is not staked"); uint32 accrued = ( time - token.stakeStart ); token.stakeTotal += accrued; token.stakeStart = restake ? time : 1; stakes[ i ] = StakeSummary( msg.sender, uint16(tokenIds[i]), accrued, token.stakeTotal ); } if( address(stakeHandler) != address(0) ){ stakeHandler.handleClaims( stakes ); } } function stakeTokens( uint256[] calldata tokenIds ) external { for(uint256 i; i < tokenIds.length; ++i ){ require( _exists(tokenIds[i]), "stake for nonexistent token" ); Token storage token = tokens[ tokenIds[i] ]; require( token.owner == msg.sender, "caller is not owner" ); require( token.stakeStart < 2, "token is already staked"); tokens[ tokenIds[ i ] ].stakeStart = uint32(block.timestamp); } if( address(stakeHandler) != address(0) ){ stakeHandler.handleStakes( tokenIds ); } } //internal function _isStaked( uint256 tokenId ) internal view returns( bool ){ return tokens[ tokenId ].stakeStart > 1; } function _transfer(address from, address to, uint256 tokenId) internal virtual override { require( !_isStaked(tokenId), "token is staked" ); super._transfer( from, to, tokenId ); } }
// 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 < 8888; ++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 _supply - burned(); } }
// 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 < 8888; ++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"; abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata { using Address for address; struct Owner{ uint16 balance; uint16 purchased; } struct Token{ address owner; uint32 stakeStart; uint32 stakeTotal; uint16 revived; } mapping(uint256 => Token) public tokens; mapping(address => Owner) public owners; uint256 internal _supply; 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 burned() public view returns(uint256){ return owners[address(0)].balance; } function name() external view returns( string memory name_ ){ return _name; } function ownerOf(uint256 tokenId) public virtual 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 = tokens[tokenId].owner; 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(tokens[tokenId].owner, to, tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } function _burn( address from, uint tokenId ) internal{ _transfer( from, address(0), tokenId ); } 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 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 = tokens[tokenId].owner; return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _mint( address to, uint256 tokenId ) internal{ require(!_exists(tokenId), "ERC721B: mint for existing token"); _beforeTokenTransfer(address(0), to, tokenId); ++_supply; tokens[ tokenId ] = Token( to, 1, 1, 0 ); emit Transfer( address(0), to, tokenId ); } 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(tokens[tokenId].owner == from, "ERC721B: transfer of token that is not own"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; _beforeTokenTransfer(from, to, tokenId); 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 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 (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// 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":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":"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":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"account","type":"address"}],"name":"burnFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bool","name":"restake","type":"bool"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"enum Phoenixes.SaleState","name":"saleState","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"},{"internalType":"uint16","name":"factionIdx","type":"uint16"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"crossMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"crossmintProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"factionSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[],"name":"getFactionSupply","outputs":[{"internalType":"uint256[]","name":"factions","type":"uint256[]"}],"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":[{"internalType":"uint16","name":"quantity","type":"uint16"},{"internalType":"uint16","name":"factionIdx","type":"uint16"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"quantity","type":"uint16[]"},{"internalType":"uint16[]","name":"factions","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":"currentOwner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"owners","outputs":[{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"purchased","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"resurrectFor","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":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"enum Phoenixes.SaleState","name":"saleState","type":"uint8"}],"internalType":"struct Phoenixes.MintConfig","name":"newConfig","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxy","type":"address"}],"name":"setCrossmint","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":"uint256","name":"newSupply","type":"uint256"}],"name":"setFactionSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPayee","type":"address"}],"name":"setPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStakeHandler","name":"handler","type":"address"}],"name":"setStakeHandler","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":[],"name":"stakeHandler","outputs":[{"internalType":"contract IStakeHandler","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyPerFaction","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"},{"internalType":"uint32","name":"stakeStart","type":"uint32"},{"internalType":"uint32","name":"stakeTotal","type":"uint32"},{"internalType":"uint16","name":"revived","type":"uint16"}],"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
6000600c81905561012060405267013b7b21280e0000608052600360a081905260c0526122b860e05261010052600d80546001600160781b0319166d22b800030003013b7b21280e0000179055600e805473dab1a1854214684ace522439684a145e625052336001600160a01b031991821617909155600f8054734d0b3d71f4de4aaf2ea798a20f4ead55a0f7416f9216919091179055610457601055348015620000a957600080fd5b506007546001600160a01b0316604080518082018252600981526850686f656e6978657360b81b6020808301918252835180850190945260048452630a0909cb60e31b9084015281516102b293612710939290916200010b916003916200029a565b508051620001219060049060208401906200029a565b5050506200013e62000138620001ba60201b60201c565b620001be565b6200015d620001556007546001600160a01b031690565b600162000210565b600a80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600b805463ffffffff1916909117620100009092029190911790555050506200037d565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b031633146200026f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b828054620002a89062000340565b90600052602060002090601f016020900481019282620002cc576000855562000317565b82601f10620002e757805160ff191683800117855562000317565b8280016001018555821562000317579182015b8281111562000317578251825591602001919060010190620002fa565b506200032592915062000329565b5090565b5b808211156200032557600081556001016200032a565b600181811c908216806200035557607f821691505b602082108114156200037757634e487b7160e01b600052602260045260246000fd5b50919050565b614a40806200038d6000396000f3fe6080604052600436106103545760003560e01c806370a08231116101c6578063a22cb465116100f7578063d438101911610095578063e0bca9f71161006f578063e0bca9f714610b25578063e985e9c514610b45578063ececaf0014610b8e578063f2fde38b14610bae57600080fd5b8063d438101914610ad0578063d48ede9914610af0578063dbbc853b14610b1057600080fd5b8063b88d4fde116100d1578063b88d4fde14610a5b578063c042314514610a7b578063c0ac998314610a9b578063c87b56dd14610ab057600080fd5b8063a22cb465146109fb578063ae90b21314610a1b578063b1bcac5a14610a3b57600080fd5b80637cb64759116101645780638da5cb5b1161013e5780638da5cb5b1461099d57806395d89b41146109bb5780639df8ff56146109d05780639e5e7fe1146109e557600080fd5b80637cb647591461091957806381870b1e1461093957806385bd797e1461095957600080fd5b806373f42561116101a057806373f42561146107ef57806377e23091146108305780637885fdc71461084357806379502c55146108bb57600080fd5b806370a082311461079a57806370ea028f146107ba578063715018a6146107da57600080fd5b80632f745c59116102a05780634a994eef1161023e5780634f6ccce7116102185780634f6ccce71461071a5780635f11e2cf1461073a5780636091f4f21461075a5780636352211e1461077a57600080fd5b80634a994eef146106445780634d44660c146106645780634f64b2be1461068457600080fd5b8063410459ad1161027a578063410459ad146105b757806341acc66a146105d757806342842e0e146105f7578063438b63001461061757600080fd5b80632f745c591461056f5780633339ea5a1461058f5780633ccfd60b146105a257600080fd5b8063095ea7b31161030d5780631fb676b3116102e75780631fb676b3146104dd57806323b872dd146104f05780632a55205a146105105780632c9b12e71461054f57600080fd5b8063095ea7b31461047a5780630ca5336b1461049a57806318160ddd146104ba57600080fd5b806301ffc9a714610360578063022914a71461039557806306fdde03146103eb578063077796271461040d578063081812fc1461042d578063089567e81461046557600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b5061038061037b366004613a93565b610bce565b60405190151581526020015b60405180910390f35b3480156103a157600080fd5b506103d06103b0366004613ac5565b60016020526000908152604090205461ffff808216916201000090041682565b6040805161ffff93841681529290911660208301520161038c565b3480156103f757600080fd5b50610400610bfa565b60405161038c9190613b3a565b34801561041957600080fd5b50610380610428366004613ac5565b610c8c565b34801561043957600080fd5b5061044d610448366004613b4d565b610ce5565b6040516001600160a01b03909116815260200161038c565b610478610473366004613bba565b610d64565b005b34801561048657600080fd5b50610478610495366004613c1e565b610dad565b3480156104a657600080fd5b506104786104b5366004613c4a565b610eb5565b3480156104c657600080fd5b506104cf611045565b60405190815260200161038c565b6104786104eb366004613c62565b611087565b3480156104fc57600080fd5b5061047861050b366004613cb8565b611161565b34801561051c57600080fd5b5061053061052b366004613cf9565b611192565b604080516001600160a01b03909316835260208301919091520161038c565b34801561055b57600080fd5b5061047861056a366004613d2b565b6111d6565b34801561057b57600080fd5b506104cf61058a366004613c1e565b6114be565b61047861059d366004613d7e565b6115a2565b3480156105ae57600080fd5b50610478611923565b3480156105c357600080fd5b506104786105d2366004613ac5565b61196a565b3480156105e357600080fd5b506104786105f2366004613e17565b6119b6565b34801561060357600080fd5b50610478610612366004613cb8565b611a39565b34801561062357600080fd5b50610637610632366004613ac5565b611a54565b60405161038c9190613e57565b34801561065057600080fd5b5061047861065f366004613e9b565b611b39565b34801561067057600080fd5b5061038061067f366004613ed0565b611b8e565b34801561069057600080fd5b506106e261069f366004613b4d565b6000602081905290815260409020546001600160a01b0381169063ffffffff600160a01b8204811691600160c01b81049091169061ffff600160e01b9091041684565b604080516001600160a01b0395909516855263ffffffff9384166020860152919092169083015261ffff16606082015260800161038c565b34801561072657600080fd5b506104cf610735366004613b4d565b611c02565b34801561074657600080fd5b50610478610755366004613f24565b611c74565b34801561076657600080fd5b50610478610775366004613ac5565b611e38565b34801561078657600080fd5b5061044d610795366004613b4d565b611e89565b3480156107a657600080fd5b506104cf6107b5366004613ac5565b611ef8565b3480156107c657600080fd5b506104786107d5366004613f83565b611f84565b3480156107e657600080fd5b506104786121b1565b3480156107fb57600080fd5b506000805260016020527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb495461ffff166104cf565b61047861083e366004613fc4565b6121e5565b34801561084f57600080fd5b50600a5460408051808201909152600b5461ffff808216835262010000909104166020820152610886916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff908116602080860191909152909201519091169082015260600161038c565b3480156108c757600080fd5b50600d54610908906001600160401b0381169061ffff600160401b8204811691600160501b8104821691600160601b8204169060ff600160701b9091041685565b60405161038c959493929190614055565b34801561092557600080fd5b50610478610934366004613b4d565b61223f565b34801561094557600080fd5b50610478610954366004613b4d565b612273565b34801561096557600080fd5b5061098a610974366004613b4d565b60136020526000908152604090205461ffff1681565b60405161ffff909116815260200161038c565b3480156109a957600080fd5b506007546001600160a01b031661044d565b3480156109c757600080fd5b506104006122a7565b3480156109dc57600080fd5b506106376122b6565b3480156109f157600080fd5b506104cf60105481565b348015610a0757600080fd5b50610478610a16366004613e9b565b612608565b348015610a2757600080fd5b50600f5461044d906001600160a01b031681565b348015610a4757600080fd5b5060095461044d906001600160a01b031681565b348015610a6757600080fd5b50610478610a763660046140c3565b612674565b348015610a8757600080fd5b50610478610a963660046141a2565b6126a6565b348015610aa757600080fd5b506104006126e4565b348015610abc57600080fd5b50610400610acb366004613b4d565b612772565b348015610adc57600080fd5b50600e5461044d906001600160a01b031681565b348015610afc57600080fd5b50610478610b0b366004614214565b6127fe565b348015610b1c57600080fd5b50610400612846565b348015610b3157600080fd5b50610478610b40366004613ac5565b612853565b348015610b5157600080fd5b50610380610b60366004614273565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b9a57600080fd5b50610478610ba93660046142ac565b6128a4565b348015610bba57600080fd5b50610478610bc9366004613ac5565b612922565b6000610bd982612974565b80610bf4575063152a902d60e11b6001600160e01b03198316145b92915050565b606060038054610c099061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c359061432e565b8015610c825780601f10610c5757610100808354040283529160200191610c82565b820191906000526020600020905b815481529060010190602001808311610c6557829003601f168201915b5050505050905090565b6007546000906001600160a01b03163314610cc25760405162461bcd60e51b8152600401610cb990614363565b60405180910390fd5b506001600160a01b03811660009081526008602052604090205460ff165b919050565b6000610cf082612999565b610d485760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b6064820152608401610cb9565b506000908152600560205260409020546001600160a01b031690565b610da7848461ffff16338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506129b692505050565b50505050565b6000818152602081905260409020546001600160a01b03908116908316811415610e245760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610cb9565b336001600160a01b0382161480610e405750610e408133610b60565b610ea65760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b6064820152608401610cb9565b610eb08383612ed8565b505050565b3360009081526008602052604090205460ff16610ee45760405162461bcd60e51b8152600401610cb990614398565b610ef460808201606083016143c2565b61ffff16610f0860608301604084016143c2565b61ffff161115610f5a5760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c796044820152606401610cb9565b610f6a60808201606083016143c2565b61ffff16610f76611045565b1115610fd05760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b6064820152608401610cb9565b6003610fe260a08301608084016143ec565b6002811115610ff357610ff361403f565b60ff16106110385760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b6044820152606401610cb9565b80600d610eb0828261445e565b600080805260016020527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb495461ffff166002546110829190614545565b905090565b3360009081526008602052604090205460ff166110b65760405162461bcd60e51b8152600401610cb990614398565b60005b82811015610da75760008484838181106110d5576110d561455c565b6020908102929092013560008181529283905260409092205491925050600160a01b900463ffffffff1660011461114e5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f74206275726e207768696c65207374616b656400000000000000006044820152606401610cb9565b6111588382612f3e565b506001016110b9565b61116b3382612f4a565b6111875760405162461bcd60e51b8152600401610cb990614572565b610eb0838383612fe8565b600b546000908190819061ffff6201000082048116916111b39116866145bb565b6111bd91906145f0565b600a546001600160a01b031693509150505b9250929050565b426000836001600160401b038111156111f1576111f16140ad565b60405190808252806020026020018201604052801561124357816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161120f5790505b50905060005b848110156114425760008060008888858181106112685761126861455c565b6020908102929092013583525081019190915260400160002080549091506001600160a01b031633146112d35760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610cb9565b80546001600160a01b90910463ffffffff16116113285760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b881a5cc81b9bdd081cdd185ad959606a1b6044820152606401610cb9565b805460009061134490600160a01b900463ffffffff1686614604565b825490915081908390601890611368908490600160c01b900463ffffffff16614629565b92506101000a81548163ffffffff021916908363ffffffff16021790555085611392576001611394565b845b825463ffffffff91909116600160a01b0263ffffffff60a01b199091161782556040805160808101909152338152602081018989868181106113d8576113d861455c565b9050602002013561ffff1681526020018263ffffffff1681526020018360000160189054906101000a900463ffffffff1663ffffffff168152508484815181106114245761142461455c565b602002602001018190525050508061143b90614651565b9050611249565b506009546001600160a01b0316156114b757600954604051636f1fa33b60e01b81526001600160a01b0390911690636f1fa33b9061148490849060040161466c565b600060405180830381600087803b15801561149e57600080fd5b505af11580156114b2573d6000803e3d6000fd5b505050505b5050505050565b6001600160a01b03821660009081526001602052604081205461ffff16821061153e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cb9565b6000805b6122b881101561159a576000818152602081905260409020546001600160a01b038681169116146115725761158a565b8161157c81614651565b925084141561158a5761159a565b61159381614651565b9050611542565b949350505050565b3360009081526008602052604090205460ff166115d15760405162461bcd60e51b8152600401610cb990614398565b8481146116355760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610cb9565b6000805b86811015611679578787828181106116535761165361455c565b905060200201602081019061166891906143c2565b61ffff169190910190600101611639565b50600d54600160601b900461ffff1681611691611045565b61169b91906146e6565b11156116e95760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c79000000000000006044820152606401610cb9565b60008060006116f6613052565b905060005b85811015611916578a8a828181106117155761171561455c565b905060200201602081019061172a91906143c2565b600160008989858181106117405761174061455c565b90506020020160208101906117559190613ac5565b6001600160a01b031681526020810191909152604001600020805461ffff19811661ffff91821693909301169190911790558888828181106117995761179961455c565b90506020020160208101906117ae91906143c2565b61ffff1680159450925060005b8b8b838181106117cd576117cd61455c565b90506020020160208101906117e291906143c2565b61ffff1681101561190d578415611804576117fd8382613130565b93506118a0565b6010548c8c848181106118195761181961455c565b905060200201602081019061182e91906143c2565b60008681526013602052604090205461ffff908116919091011611156118a05760405162461bcd60e51b815260206004820152602160248201527f4d696e742f4f72646572206578636565647320666163746f696e20737570706c6044820152607960f81b6064820152608401610cb9565b6000848152601360205260409020805460105461ffff198216600161ffff938416908101909316179092556000198601909102016119048989858181106118e9576118e961455c565b90506020020160208101906118fe9190613ac5565b826131e3565b506001016117bb565b506001016116fb565b5050505050505050505050565b6007546001600160a01b0316331461194d5760405162461bcd60e51b8152600401610cb990614363565b6119686119626007546001600160a01b031690565b47613315565b565b6007546001600160a01b031633146119945760405162461bcd60e51b8152600401610cb990614363565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146119e05760405162461bcd60e51b8152600401610cb990614363565b600a80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600b805463ffffffff191690911762010000909202919091179055505050565b610eb083838360405180602001604052806000815250612674565b6001600160a01b0381166000908152600160205260408120546060919061ffff1681816001600160401b03811115611a8e57611a8e6140ad565b604051908082528060200260200182016040528015611ab7578160200160208202803683370190505b50905060005b6122b8811015611b30576000818152602081905260409020546001600160a01b0387811691161415611b2057808285611af581614651565b965081518110611b0757611b0761455c565b60200260200101818152505082841415611b2057611b30565b611b2981614651565b9050611abd565b50949350505050565b6007546001600160a01b03163314611b635760405162461bcd60e51b8152600401610cb990614363565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000805b82811015611bf557600080858584818110611baf57611baf61455c565b60209081029290920135835250810191909152604001600020546001600160a01b03868116911614611be5576000915050611bfb565b611bee81614651565b9050611b92565b50600190505b9392505050565b6000611c0d82612999565b611c705760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610cb9565b5090565b3360009081526008602052604090205460ff16611ca35760405162461bcd60e51b8152600401610cb990614398565b828114611d055760405162461bcd60e51b815260206004820152602a60248201527f4d7573742070726f7669646520657175616c20746f6b656e49647320616e6420604482015269726563697069656e747360b01b6064820152608401610cb9565b6000805b84811015611e3057858582818110611d2357611d2361455c565b905060200201359150611d3582612999565b15611d8c5760405162461bcd60e51b815260206004820152602160248201527f52657375727265637420746f6b656e287329206d757374206e6f7420657869736044820152601d60fa1b6064820152608401610cb9565b7fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49805461ffff19811661ffff918216600019018216179091556000838152602081905260408120805461ffff60e01b198116600160e01b9182900485166001019094160292909217909155611e2890858584818110611e0d57611e0d61455c565b9050602002016020810190611e229190613ac5565b84612fe8565b600101611d09565b505050505050565b3360009081526008602052604090205460ff16611e675760405162461bcd60e51b8152600401610cb990614398565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000611e9482612999565b611eb05760405162461bcd60e51b8152600401610cb9906146fe565b6000828152602081905260409020546001600160a01b90910463ffffffff161115611edc575030919050565b506000908152602081905260409020546001600160a01b031690565b60006001600160a01b038216611f645760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610cb9565b506001600160a01b031660009081526001602052604090205461ffff1690565b60005b8181101561213b57611fb0838383818110611fa457611fa461455c565b90506020020135612999565b611ffc5760405162461bcd60e51b815260206004820152601b60248201527f7374616b6520666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610cb9565b60008060008585858181106120135761201361455c565b6020908102929092013583525081019190915260400160002080549091506001600160a01b0316331461207e5760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610cb9565b80546002600160a01b90910463ffffffff16106120dd5760405162461bcd60e51b815260206004820152601860248201527f746f6b656e2020697320616c7265616479207374616b656400000000000000006044820152606401610cb9565b426000808686868181106120f3576120f361455c565b90506020020135815260200190815260200160002060000160146101000a81548163ffffffff021916908363ffffffff160217905550508061213490614651565b9050611f87565b506009546001600160a01b0316156121ad57600954604051632e0ab80f60e11b81526001600160a01b0390911690635c15701e9061217f9085908590600401614742565b600060405180830381600087803b15801561219957600080fd5b505af1158015611e30573d6000803e3d6000fd5b5050565b6007546001600160a01b031633146121db5760405162461bcd60e51b8152600401610cb990614363565b611968600061342e565b600e546001600160a01b031633146121fc57600080fd5b6114b7858561ffff16858585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506129b692505050565b3360009081526008602052604090205460ff1661226e5760405162461bcd60e51b8152600401610cb990614398565b600c55565b3360009081526008602052604090205460ff166122a25760405162461bcd60e51b8152600401610cb990614398565b601055565b606060048054610c099061432e565b6040805160098082526101408201909252606091602082016101208036833701905050600254600d549192506122f691600160601b900461ffff16614545565b816000815181106123095761230961455c565b6020908102919091018101919091526001600052601390527f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d546010546123549161ffff1690614545565b816001815181106123675761236761455c565b6020908102919091018101919091526002600052601390527f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed1923546010546123b29161ffff1690614545565b816002815181106123c5576123c561455c565b6020908102919091018101919091526003600052601390527f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0c546010546124109161ffff1690614545565b816003815181106124235761242361455c565b6020908102919091018101919091526004600052601390527f01413ff7a3b1d5b6c016c061d48e2c7014700c777a29fcd068fff04265813d5d5460105461246e9161ffff1690614545565b816004815181106124815761248161455c565b6020908102919091018101919091526005600052601390527ff4b2859895858d6aa26d656e4999d552f6a869b74c43bba7d2a941c4d22c3559546010546124cc9161ffff1690614545565b816005815181106124df576124df61455c565b6020908102919091018101919091526006600052601390527f709d0e3cf89777a1e1f9c99632e4494f29b0327befd0df15e277a12d948257955460105461252a9161ffff1690614545565b8160068151811061253d5761253d61455c565b6020908102919091018101919091526007600052601390527f8ba6fb577925b0796671c737df59b8aaae861b630513fb12823699e3e0e3ee60546010546125889161ffff1690614545565b8160078151811061259b5761259b61455c565b6020908102919091018101919091526008600052601390527f7b49122965436243734b7a552847e7503db682b4cbd4d2fd428feb216e8bcdf8546010546125e69161ffff1690614545565b816008815181106125f9576125f961455c565b60200260200101818152505090565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61267e3383612f4a565b61269a5760405162461bcd60e51b8152600401610cb990614572565b610da784848484613480565b60005b818110156114b7576126d485858585858181106126c8576126c861455c565b90506020020135611161565b6126dd81614651565b90506126a9565b601180546126f19061432e565b80601f016020809104026020016040519081016040528092919081815260200182805461271d9061432e565b801561276a5780601f1061273f5761010080835404028352916020019161276a565b820191906000526020600020905b81548152906001019060200180831161274d57829003601f168201915b505050505081565b606061277d82612999565b6127c95760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610cb9565b60116127d4836134b3565b60126040516020016127e893929190614818565b6040516020818303038152906040529050919050565b3360009081526008602052604090205460ff1661282d5760405162461bcd60e51b8152600401610cb990614398565b612839601185856139ed565b506114b7601283836139ed565b601280546126f19061432e565b3360009081526008602052604090205460ff166128825760405162461bcd60e51b8152600401610cb990614398565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60005b838110156129195761290987878787858181106128c6576128c661455c565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061267492505050565b61291281614651565b90506128a7565b50505050505050565b6007546001600160a01b0316331461294c5760405162461bcd60e51b8152600401610cb990614363565b612955816135b0565b61297161296a6007546001600160a01b031690565b6001611b39565b50565b60006001600160e01b0319821663780e9d6360e01b1480610bf45750610bf482613648565b6000908152602081905260409020546001600160a01b0316151590565b60008461ffff16116129fa5760405162461bcd60e51b815260206004820152600d60248201526c4d757374206f7264657220312b60981b6044820152606401610cb9565b60098310612a3c5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103330b1ba34b7b760891b6044820152606401610cb9565b6040805160a081018252600d80546001600160401b038116835261ffff600160401b820481166020850152600160501b8204811694840194909452600160601b81049093166060830152600092608083019060ff600160701b909104166002811115612aaa57612aaa61403f565b6002811115612abb57612abb61403f565b9052506001600160a01b03841660009081526001602090815260409182902082518084018452905461ffff80821683526201000090910481169282019290925291830151929350909181169087161115612b475760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610cb9565b816020015161ffff16868260200151612b60919061484b565b61ffff161115612ba75760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610cb9565b816060015161ffff168661ffff16612bbd611045565b612bc791906146e6565b1115612c155760405162461bcd60e51b815260206004820152601960248201527f4d696e742f4f72646572206578636565647320737570706c79000000000000006044820152606401610cb9565b8151612c269061ffff881690614868565b6001600160401b0316341015612c7e5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610cb9565b8415612d0157601054600086815260136020526040902054612ca590889061ffff1661484b565b61ffff161115612d015760405162461bcd60e51b815260206004820152602160248201527f4d696e742f4f7264657220657863656564732066616374696f6e20737570706c6044820152607960f81b6064820152608401610cb9565b600282608001516002811115612d1957612d1961403f565b1415612d2457612e03565b600182608001516002811115612d3c57612d3c61403f565b1415612dc6576040516001600160601b0319606086901b166020820152612d7c906034016040516020818303038152906040528051906020012084613698565b612dc15760405162461bcd60e51b8152602060048201526016602482015275139bdd081bdb881d1a19481858d8d95cdcc81b1a5cdd60521b6044820152606401610cb9565b612e03565b60405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610cb9565b6000612e0d613052565b604080518082018252845161ffff908b01811682526020808701518c0182168184019081526001600160a01b038b16600090815260019092529381209251835494518316620100000263ffffffff199095169216919091179290921790559091508615905b8861ffff168110156114b2578115612e9157612e8e8382613130565b97505b6000888152601360205260409020805460105461ffff198216600161ffff938416908101909316179092556000198a0190910201612ecf88826131e3565b50600101612e72565b600081815260056020908152604080832080546001600160a01b0319166001600160a01b0387811691821790925592849052818420549151859492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b6121ad82600083612fe8565b6000612f5582612999565b612f715760405162461bcd60e51b8152600401610cb9906146fe565b6000828152602081905260409020546001600160a01b03908116908416811480612fb45750836001600160a01b0316612fa984610ce5565b6001600160a01b0316145b8061159a57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff1661159a565b6000818152602081905260409020546001600160a01b90910463ffffffff1611156130475760405162461bcd60e51b815260206004820152600f60248201526e1d1bdad95b881a5cc81cdd185ad959608a1b6044820152606401610cb9565b610eb08383836136af565b606060004160601b60405160200161307a91906001600160601b031991909116815260140190565b60408051601f1981840301815291905290508061309c64ffffffffff48614897565b60d81b6040516020016130b09291906148ab565b60408051601f198184030181529190529050806130d163ffffffff45614897565b60e01b6040516020016130e59291906148da565b60408051601f1981840301815291905290508061310764ffffffffff3a614897565b60d81b60405160200161311b9291906148ab565b60405160208183030381529060405291505090565b60008061313d84846137dd565b905060005b60088110156131aa576000600861315983856146e6565b6131639190614897565b61316e9060016146e6565b60105460008281526013602052604090205491925061ffff9091161015613199579250610bf4915050565b506131a381614651565b9050613142565b5060405162461bcd60e51b815260206004820152600d60248201526c14985b991bdb4819985a5b1959609a1b6044820152606401610cb9565b6131ec81612999565b156132395760405162461bcd60e51b815260206004820181905260248201527f455243373231423a206d696e7420666f72206578697374696e6720746f6b656e6044820152606401610cb9565b60026000815461324890614651565b90915550604080516080810182526001600160a01b0380851680835260016020808501828152858701928352600060608701818152898252928190528781209651875492519451935161ffff16600160e01b0261ffff60e01b1963ffffffff958616600160c01b021665ffffffffffff60c01b1996909516600160a01b026001600160c01b031990941691909716179190911792909216179290921790925591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b804710156133655760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cb9565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146133b2576040519150601f19603f3d011682016040523d82523d6000602084013e6133b7565b606091505b5050905080610eb05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cb9565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61348b848484612fe8565b6134978484848461386c565b610da75760405162461bcd60e51b8152600401610cb990614909565b6060816134d75750506040805180820190915260018152600360fc1b602082015290565b8160005b811561350157806134eb81614651565b91506134fa9050600a836145f0565b91506134db565b6000816001600160401b0381111561351b5761351b6140ad565b6040519080825280601f01601f191660200182016040528015613545576020820181803683370190505b5090505b841561159a5761355a600183614545565b9150613567600a86614897565b6135729060306146e6565b60f81b8183815181106135875761358761455c565b60200101906001600160f81b031916908160001a9053506135a9600a866145f0565b9450613549565b6007546001600160a01b031633146135da5760405162461bcd60e51b8152600401610cb990614363565b6001600160a01b03811661363f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb9565b6129718161342e565b60006001600160e01b031982166380ac58cd60e01b148061367957506001600160e01b03198216635b5e139f60e01b145b80610bf457506301ffc9a760e01b6001600160e01b0319831614610bf4565b6000600c546136a78385613979565b149392505050565b6000818152602081905260409020546001600160a01b0384811691161461372b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610cb9565b600081815260056020526040902080546001600160a01b03191690556001600160a01b038381166000818152600160208181526040808420805461ffff1980821661ffff9283166000190183161790925596891680865282862080549283169289169095019097161790925585835282905280822080546001600160a01b0319168517905551849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008060ff5a6137ed9190614897565b6137f79043614545565b90508040613806600285614897565b600114613836578484826040516020016138229392919061495c565b60405160208183030381529060405261385b565b80848660405160200161384b93929190614983565b6040516020818303038152906040525b805160209091012095945050505050565b60006001600160a01b0384163b1561396e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138b09033908990889088906004016149b0565b602060405180830381600087803b1580156138ca57600080fd5b505af19250505080156138fa575060408051601f3d908101601f191682019092526138f7918101906149ed565b60015b613954573d808015613928576040519150601f19603f3d011682016040523d82523d6000602084013e61392d565b606091505b50805161394c5760405162461bcd60e51b8152600401610cb990614909565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061159a565b506001949350505050565b600081815b84518110156139e557600085828151811061399b5761399b61455c565b602002602001015190508083116139c157600083815260208290526040902092506139d2565b600081815260208490526040902092505b50806139dd81614651565b91505061397e565b509392505050565b8280546139f99061432e565b90600052602060002090601f016020900481019282613a1b5760008555613a61565b82601f10613a345782800160ff19823516178555613a61565b82800160010185558215613a61579182015b82811115613a61578235825591602001919060010190613a46565b50611c709291505b80821115611c705760008155600101613a69565b6001600160e01b03198116811461297157600080fd5b600060208284031215613aa557600080fd5b8135611bfb81613a7d565b6001600160a01b038116811461297157600080fd5b600060208284031215613ad757600080fd5b8135611bfb81613ab0565b60005b83811015613afd578181015183820152602001613ae5565b83811115610da75750506000910152565b60008151808452613b26816020860160208601613ae2565b601f01601f19169290920160200192915050565b602081526000611bfb6020830184613b0e565b600060208284031215613b5f57600080fd5b5035919050565b61ffff8116811461297157600080fd5b60008083601f840112613b8857600080fd5b5081356001600160401b03811115613b9f57600080fd5b6020830191508360208260051b85010111156111cf57600080fd5b60008060008060608587031215613bd057600080fd5b8435613bdb81613b66565b93506020850135613beb81613b66565b925060408501356001600160401b03811115613c0657600080fd5b613c1287828801613b76565b95989497509550505050565b60008060408385031215613c3157600080fd5b8235613c3c81613ab0565b946020939093013593505050565b600060a08284031215613c5c57600080fd5b50919050565b600080600060408486031215613c7757600080fd5b83356001600160401b03811115613c8d57600080fd5b613c9986828701613b76565b9094509250506020840135613cad81613ab0565b809150509250925092565b600080600060608486031215613ccd57600080fd5b8335613cd881613ab0565b92506020840135613ce881613ab0565b929592945050506040919091013590565b60008060408385031215613d0c57600080fd5b50508035926020909101359150565b80358015158114610ce057600080fd5b600080600060408486031215613d4057600080fd5b83356001600160401b03811115613d5657600080fd5b613d6286828701613b76565b9094509250613d75905060208501613d1b565b90509250925092565b60008060008060008060608789031215613d9757600080fd5b86356001600160401b0380821115613dae57600080fd5b613dba8a838b01613b76565b90985096506020890135915080821115613dd357600080fd5b613ddf8a838b01613b76565b90965094506040890135915080821115613df857600080fd5b50613e0589828a01613b76565b979a9699509497509295939492505050565b600080600060608486031215613e2c57600080fd5b8335613e3781613ab0565b92506020840135613e4781613b66565b91506040840135613cad81613b66565b6020808252825182820181905260009190848201906040850190845b81811015613e8f57835183529284019291840191600101613e73565b50909695505050505050565b60008060408385031215613eae57600080fd5b8235613eb981613ab0565b9150613ec760208401613d1b565b90509250929050565b600080600060408486031215613ee557600080fd5b8335613ef081613ab0565b925060208401356001600160401b03811115613f0b57600080fd5b613f1786828701613b76565b9497909650939450505050565b60008060008060408587031215613f3a57600080fd5b84356001600160401b0380821115613f5157600080fd5b613f5d88838901613b76565b90965094506020870135915080821115613f7657600080fd5b50613c1287828801613b76565b60008060208385031215613f9657600080fd5b82356001600160401b03811115613fac57600080fd5b613fb885828601613b76565b90969095509350505050565b600080600080600060808688031215613fdc57600080fd5b8535613fe781613b66565b94506020860135613ff781613b66565b9350604086013561400781613ab0565b925060608601356001600160401b0381111561402257600080fd5b61402e88828901613b76565b969995985093965092949392505050565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038616815261ffff858116602083015284811660408301528316606082015260a081016003831061409d57634e487b7160e01b600052602160045260246000fd5b8260808301529695505050505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156140d957600080fd5b84356140e481613ab0565b935060208501356140f481613ab0565b92506040850135915060608501356001600160401b038082111561411757600080fd5b818701915087601f83011261412b57600080fd5b81358181111561413d5761413d6140ad565b604051601f8201601f19908116603f01168101908382118183101715614165576141656140ad565b816040528281528a602084870101111561417e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600080606085870312156141b857600080fd5b84356141c381613ab0565b93506020850135613beb81613ab0565b60008083601f8401126141e557600080fd5b5081356001600160401b038111156141fc57600080fd5b6020830191508360208285010111156111cf57600080fd5b6000806000806040858703121561422a57600080fd5b84356001600160401b038082111561424157600080fd5b61424d888389016141d3565b9096509450602087013591508082111561426657600080fd5b50613c12878288016141d3565b6000806040838503121561428657600080fd5b823561429181613ab0565b915060208301356142a181613ab0565b809150509250929050565b600080600080600080608087890312156142c557600080fd5b86356142d081613ab0565b955060208701356142e081613ab0565b945060408701356001600160401b03808211156142fc57600080fd5b6143088a838b01613b76565b9096509450606089013591508082111561432157600080fd5b50613e0589828a016141d3565b600181811c9082168061434257607f821691505b60208210811415613c5c57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6000602082840312156143d457600080fd5b8135611bfb81613b66565b6003811061297157600080fd5b6000602082840312156143fe57600080fd5b8135611bfb816143df565b60008135610bf481613b66565b60008135610bf4816143df565b6003821061444157634e487b7160e01b600052602160045260246000fd5b805460ff60701b191660709290921b60ff60701b16919091179055565b81356001600160401b03811680821461447657600080fd5b825467ffffffffffffffff198116821784559150602084013561449881613b66565b69ffff0000000000000000604091821b1669ffffffffffffffffffff198416831781178555908501356144ca81613b66565b6001600160601b0319939093169091171760509190911b61ffff60501b1617815561451a6144fa60608401614409565b82805461ffff60601b191660609290921b61ffff60601b16919091179055565b6121ad61452960808401614416565b82614423565b634e487b7160e01b600052601160045260246000fd5b6000828210156145575761455761452f565b500390565b634e487b7160e01b600052603260045260246000fd5b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60008160001904831182151516156145d5576145d561452f565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826145ff576145ff6145da565b500490565b600063ffffffff838116908316818110156146215761462161452f565b039392505050565b600063ffffffff8083168185168083038211156146485761464861452f565b01949350505050565b60006000198214156146655761466561452f565b5060010190565b602080825282518282018190526000919060409081850190868401855b828110156146d957815180516001600160a01b031685528681015161ffff16878601528581015163ffffffff90811687870152606091820151169085015260809093019290850190600101614689565b5091979650505050505050565b600082198211156146f9576146f961452f565b500190565b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b6020808252810182905260006001600160fb1b0383111561476257600080fd5b8260051b80856040850137600092016040019182525092915050565b8054600090600181811c908083168061479857607f831692505b60208084108214156147ba57634e487b7160e01b600052602260045260246000fd5b8180156147ce57600181146147df5761480c565b60ff1986168952848901965061480c565b60008881526020902060005b868110156148045781548b8201529085019083016147eb565b505084890196505b50505050505092915050565b6000614824828661477e565b8451614834818360208901613ae2565b6148408183018661477e565b979650505050505050565b600061ffff8083168185168083038211156146485761464861452f565b60006001600160401b038083168185168183048111821515161561488e5761488e61452f565b02949350505050565b6000826148a6576148a66145da565b500690565b600083516148bd818460208801613ae2565b6001600160d81b0319939093169190920190815260050192915050565b600083516148ec818460208801613ae2565b6001600160e01b0319939093169190920190815260040192915050565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6000845161496e818460208901613ae2565b91909101928352506020820152604001919050565b838152826020820152600082516149a1816040850160208701613ae2565b91909101604001949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149e390830184613b0e565b9695505050505050565b6000602082840312156149ff57600080fd5b8151611bfb81613a7d56fea2646970667358221220ec8e187c9c7b1ed7160f87be2578e1e4a5cd2028432579de12d709facff1ce3c64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106103545760003560e01c806370a08231116101c6578063a22cb465116100f7578063d438101911610095578063e0bca9f71161006f578063e0bca9f714610b25578063e985e9c514610b45578063ececaf0014610b8e578063f2fde38b14610bae57600080fd5b8063d438101914610ad0578063d48ede9914610af0578063dbbc853b14610b1057600080fd5b8063b88d4fde116100d1578063b88d4fde14610a5b578063c042314514610a7b578063c0ac998314610a9b578063c87b56dd14610ab057600080fd5b8063a22cb465146109fb578063ae90b21314610a1b578063b1bcac5a14610a3b57600080fd5b80637cb64759116101645780638da5cb5b1161013e5780638da5cb5b1461099d57806395d89b41146109bb5780639df8ff56146109d05780639e5e7fe1146109e557600080fd5b80637cb647591461091957806381870b1e1461093957806385bd797e1461095957600080fd5b806373f42561116101a057806373f42561146107ef57806377e23091146108305780637885fdc71461084357806379502c55146108bb57600080fd5b806370a082311461079a57806370ea028f146107ba578063715018a6146107da57600080fd5b80632f745c59116102a05780634a994eef1161023e5780634f6ccce7116102185780634f6ccce71461071a5780635f11e2cf1461073a5780636091f4f21461075a5780636352211e1461077a57600080fd5b80634a994eef146106445780634d44660c146106645780634f64b2be1461068457600080fd5b8063410459ad1161027a578063410459ad146105b757806341acc66a146105d757806342842e0e146105f7578063438b63001461061757600080fd5b80632f745c591461056f5780633339ea5a1461058f5780633ccfd60b146105a257600080fd5b8063095ea7b31161030d5780631fb676b3116102e75780631fb676b3146104dd57806323b872dd146104f05780632a55205a146105105780632c9b12e71461054f57600080fd5b8063095ea7b31461047a5780630ca5336b1461049a57806318160ddd146104ba57600080fd5b806301ffc9a714610360578063022914a71461039557806306fdde03146103eb578063077796271461040d578063081812fc1461042d578063089567e81461046557600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b5061038061037b366004613a93565b610bce565b60405190151581526020015b60405180910390f35b3480156103a157600080fd5b506103d06103b0366004613ac5565b60016020526000908152604090205461ffff808216916201000090041682565b6040805161ffff93841681529290911660208301520161038c565b3480156103f757600080fd5b50610400610bfa565b60405161038c9190613b3a565b34801561041957600080fd5b50610380610428366004613ac5565b610c8c565b34801561043957600080fd5b5061044d610448366004613b4d565b610ce5565b6040516001600160a01b03909116815260200161038c565b610478610473366004613bba565b610d64565b005b34801561048657600080fd5b50610478610495366004613c1e565b610dad565b3480156104a657600080fd5b506104786104b5366004613c4a565b610eb5565b3480156104c657600080fd5b506104cf611045565b60405190815260200161038c565b6104786104eb366004613c62565b611087565b3480156104fc57600080fd5b5061047861050b366004613cb8565b611161565b34801561051c57600080fd5b5061053061052b366004613cf9565b611192565b604080516001600160a01b03909316835260208301919091520161038c565b34801561055b57600080fd5b5061047861056a366004613d2b565b6111d6565b34801561057b57600080fd5b506104cf61058a366004613c1e565b6114be565b61047861059d366004613d7e565b6115a2565b3480156105ae57600080fd5b50610478611923565b3480156105c357600080fd5b506104786105d2366004613ac5565b61196a565b3480156105e357600080fd5b506104786105f2366004613e17565b6119b6565b34801561060357600080fd5b50610478610612366004613cb8565b611a39565b34801561062357600080fd5b50610637610632366004613ac5565b611a54565b60405161038c9190613e57565b34801561065057600080fd5b5061047861065f366004613e9b565b611b39565b34801561067057600080fd5b5061038061067f366004613ed0565b611b8e565b34801561069057600080fd5b506106e261069f366004613b4d565b6000602081905290815260409020546001600160a01b0381169063ffffffff600160a01b8204811691600160c01b81049091169061ffff600160e01b9091041684565b604080516001600160a01b0395909516855263ffffffff9384166020860152919092169083015261ffff16606082015260800161038c565b34801561072657600080fd5b506104cf610735366004613b4d565b611c02565b34801561074657600080fd5b50610478610755366004613f24565b611c74565b34801561076657600080fd5b50610478610775366004613ac5565b611e38565b34801561078657600080fd5b5061044d610795366004613b4d565b611e89565b3480156107a657600080fd5b506104cf6107b5366004613ac5565b611ef8565b3480156107c657600080fd5b506104786107d5366004613f83565b611f84565b3480156107e657600080fd5b506104786121b1565b3480156107fb57600080fd5b506000805260016020527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb495461ffff166104cf565b61047861083e366004613fc4565b6121e5565b34801561084f57600080fd5b50600a5460408051808201909152600b5461ffff808216835262010000909104166020820152610886916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff908116602080860191909152909201519091169082015260600161038c565b3480156108c757600080fd5b50600d54610908906001600160401b0381169061ffff600160401b8204811691600160501b8104821691600160601b8204169060ff600160701b9091041685565b60405161038c959493929190614055565b34801561092557600080fd5b50610478610934366004613b4d565b61223f565b34801561094557600080fd5b50610478610954366004613b4d565b612273565b34801561096557600080fd5b5061098a610974366004613b4d565b60136020526000908152604090205461ffff1681565b60405161ffff909116815260200161038c565b3480156109a957600080fd5b506007546001600160a01b031661044d565b3480156109c757600080fd5b506104006122a7565b3480156109dc57600080fd5b506106376122b6565b3480156109f157600080fd5b506104cf60105481565b348015610a0757600080fd5b50610478610a16366004613e9b565b612608565b348015610a2757600080fd5b50600f5461044d906001600160a01b031681565b348015610a4757600080fd5b5060095461044d906001600160a01b031681565b348015610a6757600080fd5b50610478610a763660046140c3565b612674565b348015610a8757600080fd5b50610478610a963660046141a2565b6126a6565b348015610aa757600080fd5b506104006126e4565b348015610abc57600080fd5b50610400610acb366004613b4d565b612772565b348015610adc57600080fd5b50600e5461044d906001600160a01b031681565b348015610afc57600080fd5b50610478610b0b366004614214565b6127fe565b348015610b1c57600080fd5b50610400612846565b348015610b3157600080fd5b50610478610b40366004613ac5565b612853565b348015610b5157600080fd5b50610380610b60366004614273565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b9a57600080fd5b50610478610ba93660046142ac565b6128a4565b348015610bba57600080fd5b50610478610bc9366004613ac5565b612922565b6000610bd982612974565b80610bf4575063152a902d60e11b6001600160e01b03198316145b92915050565b606060038054610c099061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c359061432e565b8015610c825780601f10610c5757610100808354040283529160200191610c82565b820191906000526020600020905b815481529060010190602001808311610c6557829003601f168201915b5050505050905090565b6007546000906001600160a01b03163314610cc25760405162461bcd60e51b8152600401610cb990614363565b60405180910390fd5b506001600160a01b03811660009081526008602052604090205460ff165b919050565b6000610cf082612999565b610d485760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b6064820152608401610cb9565b506000908152600560205260409020546001600160a01b031690565b610da7848461ffff16338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506129b692505050565b50505050565b6000818152602081905260409020546001600160a01b03908116908316811415610e245760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610cb9565b336001600160a01b0382161480610e405750610e408133610b60565b610ea65760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b6064820152608401610cb9565b610eb08383612ed8565b505050565b3360009081526008602052604090205460ff16610ee45760405162461bcd60e51b8152600401610cb990614398565b610ef460808201606083016143c2565b61ffff16610f0860608301604084016143c2565b61ffff161115610f5a5760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c796044820152606401610cb9565b610f6a60808201606083016143c2565b61ffff16610f76611045565b1115610fd05760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b6064820152608401610cb9565b6003610fe260a08301608084016143ec565b6002811115610ff357610ff361403f565b60ff16106110385760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b6044820152606401610cb9565b80600d610eb0828261445e565b600080805260016020527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb495461ffff166002546110829190614545565b905090565b3360009081526008602052604090205460ff166110b65760405162461bcd60e51b8152600401610cb990614398565b60005b82811015610da75760008484838181106110d5576110d561455c565b6020908102929092013560008181529283905260409092205491925050600160a01b900463ffffffff1660011461114e5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f74206275726e207768696c65207374616b656400000000000000006044820152606401610cb9565b6111588382612f3e565b506001016110b9565b61116b3382612f4a565b6111875760405162461bcd60e51b8152600401610cb990614572565b610eb0838383612fe8565b600b546000908190819061ffff6201000082048116916111b39116866145bb565b6111bd91906145f0565b600a546001600160a01b031693509150505b9250929050565b426000836001600160401b038111156111f1576111f16140ad565b60405190808252806020026020018201604052801561124357816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161120f5790505b50905060005b848110156114425760008060008888858181106112685761126861455c565b6020908102929092013583525081019190915260400160002080549091506001600160a01b031633146112d35760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610cb9565b80546001600160a01b90910463ffffffff16116113285760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b881a5cc81b9bdd081cdd185ad959606a1b6044820152606401610cb9565b805460009061134490600160a01b900463ffffffff1686614604565b825490915081908390601890611368908490600160c01b900463ffffffff16614629565b92506101000a81548163ffffffff021916908363ffffffff16021790555085611392576001611394565b845b825463ffffffff91909116600160a01b0263ffffffff60a01b199091161782556040805160808101909152338152602081018989868181106113d8576113d861455c565b9050602002013561ffff1681526020018263ffffffff1681526020018360000160189054906101000a900463ffffffff1663ffffffff168152508484815181106114245761142461455c565b602002602001018190525050508061143b90614651565b9050611249565b506009546001600160a01b0316156114b757600954604051636f1fa33b60e01b81526001600160a01b0390911690636f1fa33b9061148490849060040161466c565b600060405180830381600087803b15801561149e57600080fd5b505af11580156114b2573d6000803e3d6000fd5b505050505b5050505050565b6001600160a01b03821660009081526001602052604081205461ffff16821061153e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cb9565b6000805b6122b881101561159a576000818152602081905260409020546001600160a01b038681169116146115725761158a565b8161157c81614651565b925084141561158a5761159a565b61159381614651565b9050611542565b949350505050565b3360009081526008602052604090205460ff166115d15760405162461bcd60e51b8152600401610cb990614398565b8481146116355760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610cb9565b6000805b86811015611679578787828181106116535761165361455c565b905060200201602081019061166891906143c2565b61ffff169190910190600101611639565b50600d54600160601b900461ffff1681611691611045565b61169b91906146e6565b11156116e95760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c79000000000000006044820152606401610cb9565b60008060006116f6613052565b905060005b85811015611916578a8a828181106117155761171561455c565b905060200201602081019061172a91906143c2565b600160008989858181106117405761174061455c565b90506020020160208101906117559190613ac5565b6001600160a01b031681526020810191909152604001600020805461ffff19811661ffff91821693909301169190911790558888828181106117995761179961455c565b90506020020160208101906117ae91906143c2565b61ffff1680159450925060005b8b8b838181106117cd576117cd61455c565b90506020020160208101906117e291906143c2565b61ffff1681101561190d578415611804576117fd8382613130565b93506118a0565b6010548c8c848181106118195761181961455c565b905060200201602081019061182e91906143c2565b60008681526013602052604090205461ffff908116919091011611156118a05760405162461bcd60e51b815260206004820152602160248201527f4d696e742f4f72646572206578636565647320666163746f696e20737570706c6044820152607960f81b6064820152608401610cb9565b6000848152601360205260409020805460105461ffff198216600161ffff938416908101909316179092556000198601909102016119048989858181106118e9576118e961455c565b90506020020160208101906118fe9190613ac5565b826131e3565b506001016117bb565b506001016116fb565b5050505050505050505050565b6007546001600160a01b0316331461194d5760405162461bcd60e51b8152600401610cb990614363565b6119686119626007546001600160a01b031690565b47613315565b565b6007546001600160a01b031633146119945760405162461bcd60e51b8152600401610cb990614363565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146119e05760405162461bcd60e51b8152600401610cb990614363565b600a80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600b805463ffffffff191690911762010000909202919091179055505050565b610eb083838360405180602001604052806000815250612674565b6001600160a01b0381166000908152600160205260408120546060919061ffff1681816001600160401b03811115611a8e57611a8e6140ad565b604051908082528060200260200182016040528015611ab7578160200160208202803683370190505b50905060005b6122b8811015611b30576000818152602081905260409020546001600160a01b0387811691161415611b2057808285611af581614651565b965081518110611b0757611b0761455c565b60200260200101818152505082841415611b2057611b30565b611b2981614651565b9050611abd565b50949350505050565b6007546001600160a01b03163314611b635760405162461bcd60e51b8152600401610cb990614363565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000805b82811015611bf557600080858584818110611baf57611baf61455c565b60209081029290920135835250810191909152604001600020546001600160a01b03868116911614611be5576000915050611bfb565b611bee81614651565b9050611b92565b50600190505b9392505050565b6000611c0d82612999565b611c705760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610cb9565b5090565b3360009081526008602052604090205460ff16611ca35760405162461bcd60e51b8152600401610cb990614398565b828114611d055760405162461bcd60e51b815260206004820152602a60248201527f4d7573742070726f7669646520657175616c20746f6b656e49647320616e6420604482015269726563697069656e747360b01b6064820152608401610cb9565b6000805b84811015611e3057858582818110611d2357611d2361455c565b905060200201359150611d3582612999565b15611d8c5760405162461bcd60e51b815260206004820152602160248201527f52657375727265637420746f6b656e287329206d757374206e6f7420657869736044820152601d60fa1b6064820152608401610cb9565b7fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49805461ffff19811661ffff918216600019018216179091556000838152602081905260408120805461ffff60e01b198116600160e01b9182900485166001019094160292909217909155611e2890858584818110611e0d57611e0d61455c565b9050602002016020810190611e229190613ac5565b84612fe8565b600101611d09565b505050505050565b3360009081526008602052604090205460ff16611e675760405162461bcd60e51b8152600401610cb990614398565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000611e9482612999565b611eb05760405162461bcd60e51b8152600401610cb9906146fe565b6000828152602081905260409020546001600160a01b90910463ffffffff161115611edc575030919050565b506000908152602081905260409020546001600160a01b031690565b60006001600160a01b038216611f645760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610cb9565b506001600160a01b031660009081526001602052604090205461ffff1690565b60005b8181101561213b57611fb0838383818110611fa457611fa461455c565b90506020020135612999565b611ffc5760405162461bcd60e51b815260206004820152601b60248201527f7374616b6520666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610cb9565b60008060008585858181106120135761201361455c565b6020908102929092013583525081019190915260400160002080549091506001600160a01b0316331461207e5760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610cb9565b80546002600160a01b90910463ffffffff16106120dd5760405162461bcd60e51b815260206004820152601860248201527f746f6b656e2020697320616c7265616479207374616b656400000000000000006044820152606401610cb9565b426000808686868181106120f3576120f361455c565b90506020020135815260200190815260200160002060000160146101000a81548163ffffffff021916908363ffffffff160217905550508061213490614651565b9050611f87565b506009546001600160a01b0316156121ad57600954604051632e0ab80f60e11b81526001600160a01b0390911690635c15701e9061217f9085908590600401614742565b600060405180830381600087803b15801561219957600080fd5b505af1158015611e30573d6000803e3d6000fd5b5050565b6007546001600160a01b031633146121db5760405162461bcd60e51b8152600401610cb990614363565b611968600061342e565b600e546001600160a01b031633146121fc57600080fd5b6114b7858561ffff16858585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506129b692505050565b3360009081526008602052604090205460ff1661226e5760405162461bcd60e51b8152600401610cb990614398565b600c55565b3360009081526008602052604090205460ff166122a25760405162461bcd60e51b8152600401610cb990614398565b601055565b606060048054610c099061432e565b6040805160098082526101408201909252606091602082016101208036833701905050600254600d549192506122f691600160601b900461ffff16614545565b816000815181106123095761230961455c565b6020908102919091018101919091526001600052601390527f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d546010546123549161ffff1690614545565b816001815181106123675761236761455c565b6020908102919091018101919091526002600052601390527f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed1923546010546123b29161ffff1690614545565b816002815181106123c5576123c561455c565b6020908102919091018101919091526003600052601390527f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0c546010546124109161ffff1690614545565b816003815181106124235761242361455c565b6020908102919091018101919091526004600052601390527f01413ff7a3b1d5b6c016c061d48e2c7014700c777a29fcd068fff04265813d5d5460105461246e9161ffff1690614545565b816004815181106124815761248161455c565b6020908102919091018101919091526005600052601390527ff4b2859895858d6aa26d656e4999d552f6a869b74c43bba7d2a941c4d22c3559546010546124cc9161ffff1690614545565b816005815181106124df576124df61455c565b6020908102919091018101919091526006600052601390527f709d0e3cf89777a1e1f9c99632e4494f29b0327befd0df15e277a12d948257955460105461252a9161ffff1690614545565b8160068151811061253d5761253d61455c565b6020908102919091018101919091526007600052601390527f8ba6fb577925b0796671c737df59b8aaae861b630513fb12823699e3e0e3ee60546010546125889161ffff1690614545565b8160078151811061259b5761259b61455c565b6020908102919091018101919091526008600052601390527f7b49122965436243734b7a552847e7503db682b4cbd4d2fd428feb216e8bcdf8546010546125e69161ffff1690614545565b816008815181106125f9576125f961455c565b60200260200101818152505090565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61267e3383612f4a565b61269a5760405162461bcd60e51b8152600401610cb990614572565b610da784848484613480565b60005b818110156114b7576126d485858585858181106126c8576126c861455c565b90506020020135611161565b6126dd81614651565b90506126a9565b601180546126f19061432e565b80601f016020809104026020016040519081016040528092919081815260200182805461271d9061432e565b801561276a5780601f1061273f5761010080835404028352916020019161276a565b820191906000526020600020905b81548152906001019060200180831161274d57829003601f168201915b505050505081565b606061277d82612999565b6127c95760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610cb9565b60116127d4836134b3565b60126040516020016127e893929190614818565b6040516020818303038152906040529050919050565b3360009081526008602052604090205460ff1661282d5760405162461bcd60e51b8152600401610cb990614398565b612839601185856139ed565b506114b7601283836139ed565b601280546126f19061432e565b3360009081526008602052604090205460ff166128825760405162461bcd60e51b8152600401610cb990614398565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60005b838110156129195761290987878787858181106128c6576128c661455c565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061267492505050565b61291281614651565b90506128a7565b50505050505050565b6007546001600160a01b0316331461294c5760405162461bcd60e51b8152600401610cb990614363565b612955816135b0565b61297161296a6007546001600160a01b031690565b6001611b39565b50565b60006001600160e01b0319821663780e9d6360e01b1480610bf45750610bf482613648565b6000908152602081905260409020546001600160a01b0316151590565b60008461ffff16116129fa5760405162461bcd60e51b815260206004820152600d60248201526c4d757374206f7264657220312b60981b6044820152606401610cb9565b60098310612a3c5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b2103330b1ba34b7b760891b6044820152606401610cb9565b6040805160a081018252600d80546001600160401b038116835261ffff600160401b820481166020850152600160501b8204811694840194909452600160601b81049093166060830152600092608083019060ff600160701b909104166002811115612aaa57612aaa61403f565b6002811115612abb57612abb61403f565b9052506001600160a01b03841660009081526001602090815260409182902082518084018452905461ffff80821683526201000090910481169282019290925291830151929350909181169087161115612b475760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610cb9565b816020015161ffff16868260200151612b60919061484b565b61ffff161115612ba75760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610cb9565b816060015161ffff168661ffff16612bbd611045565b612bc791906146e6565b1115612c155760405162461bcd60e51b815260206004820152601960248201527f4d696e742f4f72646572206578636565647320737570706c79000000000000006044820152606401610cb9565b8151612c269061ffff881690614868565b6001600160401b0316341015612c7e5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610cb9565b8415612d0157601054600086815260136020526040902054612ca590889061ffff1661484b565b61ffff161115612d015760405162461bcd60e51b815260206004820152602160248201527f4d696e742f4f7264657220657863656564732066616374696f6e20737570706c6044820152607960f81b6064820152608401610cb9565b600282608001516002811115612d1957612d1961403f565b1415612d2457612e03565b600182608001516002811115612d3c57612d3c61403f565b1415612dc6576040516001600160601b0319606086901b166020820152612d7c906034016040516020818303038152906040528051906020012084613698565b612dc15760405162461bcd60e51b8152602060048201526016602482015275139bdd081bdb881d1a19481858d8d95cdcc81b1a5cdd60521b6044820152606401610cb9565b612e03565b60405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610cb9565b6000612e0d613052565b604080518082018252845161ffff908b01811682526020808701518c0182168184019081526001600160a01b038b16600090815260019092529381209251835494518316620100000263ffffffff199095169216919091179290921790559091508615905b8861ffff168110156114b2578115612e9157612e8e8382613130565b97505b6000888152601360205260409020805460105461ffff198216600161ffff938416908101909316179092556000198a0190910201612ecf88826131e3565b50600101612e72565b600081815260056020908152604080832080546001600160a01b0319166001600160a01b0387811691821790925592849052818420549151859492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b6121ad82600083612fe8565b6000612f5582612999565b612f715760405162461bcd60e51b8152600401610cb9906146fe565b6000828152602081905260409020546001600160a01b03908116908416811480612fb45750836001600160a01b0316612fa984610ce5565b6001600160a01b0316145b8061159a57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff1661159a565b6000818152602081905260409020546001600160a01b90910463ffffffff1611156130475760405162461bcd60e51b815260206004820152600f60248201526e1d1bdad95b881a5cc81cdd185ad959608a1b6044820152606401610cb9565b610eb08383836136af565b606060004160601b60405160200161307a91906001600160601b031991909116815260140190565b60408051601f1981840301815291905290508061309c64ffffffffff48614897565b60d81b6040516020016130b09291906148ab565b60408051601f198184030181529190529050806130d163ffffffff45614897565b60e01b6040516020016130e59291906148da565b60408051601f1981840301815291905290508061310764ffffffffff3a614897565b60d81b60405160200161311b9291906148ab565b60405160208183030381529060405291505090565b60008061313d84846137dd565b905060005b60088110156131aa576000600861315983856146e6565b6131639190614897565b61316e9060016146e6565b60105460008281526013602052604090205491925061ffff9091161015613199579250610bf4915050565b506131a381614651565b9050613142565b5060405162461bcd60e51b815260206004820152600d60248201526c14985b991bdb4819985a5b1959609a1b6044820152606401610cb9565b6131ec81612999565b156132395760405162461bcd60e51b815260206004820181905260248201527f455243373231423a206d696e7420666f72206578697374696e6720746f6b656e6044820152606401610cb9565b60026000815461324890614651565b90915550604080516080810182526001600160a01b0380851680835260016020808501828152858701928352600060608701818152898252928190528781209651875492519451935161ffff16600160e01b0261ffff60e01b1963ffffffff958616600160c01b021665ffffffffffff60c01b1996909516600160a01b026001600160c01b031990941691909716179190911792909216179290921790925591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b804710156133655760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cb9565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146133b2576040519150601f19603f3d011682016040523d82523d6000602084013e6133b7565b606091505b5050905080610eb05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cb9565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61348b848484612fe8565b6134978484848461386c565b610da75760405162461bcd60e51b8152600401610cb990614909565b6060816134d75750506040805180820190915260018152600360fc1b602082015290565b8160005b811561350157806134eb81614651565b91506134fa9050600a836145f0565b91506134db565b6000816001600160401b0381111561351b5761351b6140ad565b6040519080825280601f01601f191660200182016040528015613545576020820181803683370190505b5090505b841561159a5761355a600183614545565b9150613567600a86614897565b6135729060306146e6565b60f81b8183815181106135875761358761455c565b60200101906001600160f81b031916908160001a9053506135a9600a866145f0565b9450613549565b6007546001600160a01b031633146135da5760405162461bcd60e51b8152600401610cb990614363565b6001600160a01b03811661363f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb9565b6129718161342e565b60006001600160e01b031982166380ac58cd60e01b148061367957506001600160e01b03198216635b5e139f60e01b145b80610bf457506301ffc9a760e01b6001600160e01b0319831614610bf4565b6000600c546136a78385613979565b149392505050565b6000818152602081905260409020546001600160a01b0384811691161461372b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610cb9565b600081815260056020526040902080546001600160a01b03191690556001600160a01b038381166000818152600160208181526040808420805461ffff1980821661ffff9283166000190183161790925596891680865282862080549283169289169095019097161790925585835282905280822080546001600160a01b0319168517905551849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008060ff5a6137ed9190614897565b6137f79043614545565b90508040613806600285614897565b600114613836578484826040516020016138229392919061495c565b60405160208183030381529060405261385b565b80848660405160200161384b93929190614983565b6040516020818303038152906040525b805160209091012095945050505050565b60006001600160a01b0384163b1561396e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138b09033908990889088906004016149b0565b602060405180830381600087803b1580156138ca57600080fd5b505af19250505080156138fa575060408051601f3d908101601f191682019092526138f7918101906149ed565b60015b613954573d808015613928576040519150601f19603f3d011682016040523d82523d6000602084013e61392d565b606091505b50805161394c5760405162461bcd60e51b8152600401610cb990614909565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061159a565b506001949350505050565b600081815b84518110156139e557600085828151811061399b5761399b61455c565b602002602001015190508083116139c157600083815260208290526040902092506139d2565b600081815260208490526040902092505b50806139dd81614651565b91505061397e565b509392505050565b8280546139f99061432e565b90600052602060002090601f016020900481019282613a1b5760008555613a61565b82601f10613a345782800160ff19823516178555613a61565b82800160010185558215613a61579182015b82811115613a61578235825591602001919060010190613a46565b50611c709291505b80821115611c705760008155600101613a69565b6001600160e01b03198116811461297157600080fd5b600060208284031215613aa557600080fd5b8135611bfb81613a7d565b6001600160a01b038116811461297157600080fd5b600060208284031215613ad757600080fd5b8135611bfb81613ab0565b60005b83811015613afd578181015183820152602001613ae5565b83811115610da75750506000910152565b60008151808452613b26816020860160208601613ae2565b601f01601f19169290920160200192915050565b602081526000611bfb6020830184613b0e565b600060208284031215613b5f57600080fd5b5035919050565b61ffff8116811461297157600080fd5b60008083601f840112613b8857600080fd5b5081356001600160401b03811115613b9f57600080fd5b6020830191508360208260051b85010111156111cf57600080fd5b60008060008060608587031215613bd057600080fd5b8435613bdb81613b66565b93506020850135613beb81613b66565b925060408501356001600160401b03811115613c0657600080fd5b613c1287828801613b76565b95989497509550505050565b60008060408385031215613c3157600080fd5b8235613c3c81613ab0565b946020939093013593505050565b600060a08284031215613c5c57600080fd5b50919050565b600080600060408486031215613c7757600080fd5b83356001600160401b03811115613c8d57600080fd5b613c9986828701613b76565b9094509250506020840135613cad81613ab0565b809150509250925092565b600080600060608486031215613ccd57600080fd5b8335613cd881613ab0565b92506020840135613ce881613ab0565b929592945050506040919091013590565b60008060408385031215613d0c57600080fd5b50508035926020909101359150565b80358015158114610ce057600080fd5b600080600060408486031215613d4057600080fd5b83356001600160401b03811115613d5657600080fd5b613d6286828701613b76565b9094509250613d75905060208501613d1b565b90509250925092565b60008060008060008060608789031215613d9757600080fd5b86356001600160401b0380821115613dae57600080fd5b613dba8a838b01613b76565b90985096506020890135915080821115613dd357600080fd5b613ddf8a838b01613b76565b90965094506040890135915080821115613df857600080fd5b50613e0589828a01613b76565b979a9699509497509295939492505050565b600080600060608486031215613e2c57600080fd5b8335613e3781613ab0565b92506020840135613e4781613b66565b91506040840135613cad81613b66565b6020808252825182820181905260009190848201906040850190845b81811015613e8f57835183529284019291840191600101613e73565b50909695505050505050565b60008060408385031215613eae57600080fd5b8235613eb981613ab0565b9150613ec760208401613d1b565b90509250929050565b600080600060408486031215613ee557600080fd5b8335613ef081613ab0565b925060208401356001600160401b03811115613f0b57600080fd5b613f1786828701613b76565b9497909650939450505050565b60008060008060408587031215613f3a57600080fd5b84356001600160401b0380821115613f5157600080fd5b613f5d88838901613b76565b90965094506020870135915080821115613f7657600080fd5b50613c1287828801613b76565b60008060208385031215613f9657600080fd5b82356001600160401b03811115613fac57600080fd5b613fb885828601613b76565b90969095509350505050565b600080600080600060808688031215613fdc57600080fd5b8535613fe781613b66565b94506020860135613ff781613b66565b9350604086013561400781613ab0565b925060608601356001600160401b0381111561402257600080fd5b61402e88828901613b76565b969995985093965092949392505050565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038616815261ffff858116602083015284811660408301528316606082015260a081016003831061409d57634e487b7160e01b600052602160045260246000fd5b8260808301529695505050505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156140d957600080fd5b84356140e481613ab0565b935060208501356140f481613ab0565b92506040850135915060608501356001600160401b038082111561411757600080fd5b818701915087601f83011261412b57600080fd5b81358181111561413d5761413d6140ad565b604051601f8201601f19908116603f01168101908382118183101715614165576141656140ad565b816040528281528a602084870101111561417e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600080606085870312156141b857600080fd5b84356141c381613ab0565b93506020850135613beb81613ab0565b60008083601f8401126141e557600080fd5b5081356001600160401b038111156141fc57600080fd5b6020830191508360208285010111156111cf57600080fd5b6000806000806040858703121561422a57600080fd5b84356001600160401b038082111561424157600080fd5b61424d888389016141d3565b9096509450602087013591508082111561426657600080fd5b50613c12878288016141d3565b6000806040838503121561428657600080fd5b823561429181613ab0565b915060208301356142a181613ab0565b809150509250929050565b600080600080600080608087890312156142c557600080fd5b86356142d081613ab0565b955060208701356142e081613ab0565b945060408701356001600160401b03808211156142fc57600080fd5b6143088a838b01613b76565b9096509450606089013591508082111561432157600080fd5b50613e0589828a016141d3565b600181811c9082168061434257607f821691505b60208210811415613c5c57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6000602082840312156143d457600080fd5b8135611bfb81613b66565b6003811061297157600080fd5b6000602082840312156143fe57600080fd5b8135611bfb816143df565b60008135610bf481613b66565b60008135610bf4816143df565b6003821061444157634e487b7160e01b600052602160045260246000fd5b805460ff60701b191660709290921b60ff60701b16919091179055565b81356001600160401b03811680821461447657600080fd5b825467ffffffffffffffff198116821784559150602084013561449881613b66565b69ffff0000000000000000604091821b1669ffffffffffffffffffff198416831781178555908501356144ca81613b66565b6001600160601b0319939093169091171760509190911b61ffff60501b1617815561451a6144fa60608401614409565b82805461ffff60601b191660609290921b61ffff60601b16919091179055565b6121ad61452960808401614416565b82614423565b634e487b7160e01b600052601160045260246000fd5b6000828210156145575761455761452f565b500390565b634e487b7160e01b600052603260045260246000fd5b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60008160001904831182151516156145d5576145d561452f565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826145ff576145ff6145da565b500490565b600063ffffffff838116908316818110156146215761462161452f565b039392505050565b600063ffffffff8083168185168083038211156146485761464861452f565b01949350505050565b60006000198214156146655761466561452f565b5060010190565b602080825282518282018190526000919060409081850190868401855b828110156146d957815180516001600160a01b031685528681015161ffff16878601528581015163ffffffff90811687870152606091820151169085015260809093019290850190600101614689565b5091979650505050505050565b600082198211156146f9576146f961452f565b500190565b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b6020808252810182905260006001600160fb1b0383111561476257600080fd5b8260051b80856040850137600092016040019182525092915050565b8054600090600181811c908083168061479857607f831692505b60208084108214156147ba57634e487b7160e01b600052602260045260246000fd5b8180156147ce57600181146147df5761480c565b60ff1986168952848901965061480c565b60008881526020902060005b868110156148045781548b8201529085019083016147eb565b505084890196505b50505050505092915050565b6000614824828661477e565b8451614834818360208901613ae2565b6148408183018661477e565b979650505050505050565b600061ffff8083168185168083038211156146485761464861452f565b60006001600160401b038083168185168183048111821515161561488e5761488e61452f565b02949350505050565b6000826148a6576148a66145da565b500690565b600083516148bd818460208801613ae2565b6001600160d81b0319939093169190920190815260050192915050565b600083516148ec818460208801613ae2565b6001600160e01b0319939093169190920190815260040192915050565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6000845161496e818460208901613ae2565b91909101928352506020820152604001919050565b838152826020820152600082516149a1816040850160208701613ae2565b91909101604001949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149e390830184613b0e565b9695505050505050565b6000602082840312156149ff57600080fd5b8151611bfb81613a7d56fea2646970667358221220ec8e187c9c7b1ed7160f87be2578e1e4a5cd2028432579de12d709facff1ce3c64736f6c63430008090033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.