Overview
TokenID
3790
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:
RetroRollers
Compiler Version
v0.8.11+commit.d7f03943
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; //Mimetic Metadata import { MimeticMetadata } from "./Mimetics/MimeticMetadata.sol"; import { INonDilutive } from "./Interfaces/INonDilutive.sol"; //Lock Registry import "./Interfaces/ILock.sol"; import "./LockRegistry/LockRegistry.sol"; //ERC-Standards and OpenZeppelin import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./ERC721A.sol"; import "./DutchAuction/MDDA.sol"; import "./Scorekeeper.sol"; contract RetroRollers is ERC721A, INonDilutive, MimeticMetadata, LockRegistry, AccessControl, ReentrancyGuard, MDDA, Scorekeeper { using Strings for uint256; address public ROLLERS_PAYOUT_ADDRESS = 0x9cEE145eA8842E8C332BEC94Eb48337ff38cdadF; bytes32 public merkleRoot; uint256 public mintPrice = 0.08 ether; uint256 public maxPublicMintPerAddress = 2; uint256 public MAX_SUPPLY = 8888; uint256 public lockedSupply = 3333; uint256 public reservedSupply = 3000; uint256 public totalReserveMinted; uint256 public publicSupply; uint64 public startTime; bool public mintActive = false; mapping(uint => uint) private tokenMatrix; mapping(uint => uint) private mappedTokenIds; /** Contract Functionality Variables */ bytes4 private constant _INTERFACE_ID_LOCKABLE = 0xc1c8d4d6; bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); constructor(string memory _baseTokenURI) ERC721A("Retro Rollers", "RR") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); startTime = 1651770000; // May 5th, 1:00 PM EST setPublicSupply(); loadGeneration( 0, // layer true, // enabled (cannot be removed by project owner) true, // locked (cannot be removed by project owner) true, // sticky (cannot be removed by owner) _baseTokenURI ); } modifier onlyOperator() { if(!(hasRole(OPERATOR_ROLE, msg.sender)||owner()==msg.sender)) revert CallerIsNotOperator(); _; } modifier mintCompliance() { if(startTime > block.timestamp) revert SaleNotStarted(); if(!mintActive) revert SaleNotStarted(); _; } /** ensures the function caller is the user */ modifier isContract() { uint32 size = 32; address _addr = msg.sender; assembly { size := extcodesize(_addr) } if(size > 0) revert CallerIsContract(); _; } function mintDutchAuction(uint8 _quantity) public payable isContract nonReentrant { DAHook(_quantity, totalSupply()); uint random = randomness(); for(uint i = 0; i < _quantity; i++){ _mintToken(msg.sender, mappedTokenFor((random+i))); } } /** Public Mint Function */ function mint(uint64 quantity) external payable isContract nonReentrant mintCompliance { uint totalSupply = totalSupply(); if(_addressData[msg.sender].mintTime < startTime) { _addressData[msg.sender].reserveMinted = 0; _addressData[msg.sender].numberMinted = 0; } if(totalSupply - totalReserveMinted + quantity > publicSupply) revert MaxMintAmountReached(); if(quantity == 0) revert InvalidMintAmount(); if(quantity + _addressData[msg.sender].numberMinted - _addressData[msg.sender].reserveMinted > maxPublicMintPerAddress) revert MaxMintAmountReached(); delete totalSupply; uint random = randomness(); for(uint i = 0; i < quantity; i++){ _mintToken(msg.sender, mappedTokenFor((random+i))); } refundIfOver(quantity * mintPrice); } /** Presale Mint Function */ function reservedMint(bytes32[] calldata _merkleProof) external payable isContract nonReentrant mintCompliance { if(totalSupply() == MAX_SUPPLY - lockedSupply) revert MaxSupplyReached(); if(!verify(msg.sender, _merkleProof)) revert InvalidProof(); if(_addressData[msg.sender].mintTime < startTime) { _addressData[msg.sender].reserveMinted = 0; _addressData[msg.sender].numberMinted = 0; } else { if (_addressData[msg.sender].reserveMinted == 1) revert MaxMintAmountReached(); } _mintToken(msg.sender, mappedTokenFor(randomness())); _addressData[msg.sender].reserveMinted = 1; refundIfOver(mintPrice); } function randomness() internal view returns (uint256) { return uint256(keccak256( abi.encodePacked( msg.sender, block.coinbase, block.difficulty, block.gaslimit, block.timestamp, totalSupply(), blockhash(block.number - 1) ) )); } function mappedTokenFor(uint _randomSeed) internal returns (uint64) { uint maxIndex = MAX_SUPPLY - lockedSupply-_mintCounter; uint random = _randomSeed % (maxIndex); uint lastAvail = tokenMatrix[maxIndex]; uint256 value = 0; if (tokenMatrix[random] == 0) { // If this matrix position is empty, set the value to the generated random number. value = random; } else { // Otherwise, use the previously stored number from the matrix. value = tokenMatrix[random]; } // If the last available tokenID is still unused... if (lastAvail == 0) { // ...store that ID in the current matrix position. tokenMatrix[random] = maxIndex; } else { // ...otherwise copy over the stored number to the current matrix position. tokenMatrix[random] = lastAvail; } return uint64(value + _startTokenId()); } /** Get the owner of a specific token from the tokenId */ function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return _ownershipOf(tokenId); } function getTokensOfOwner(address owner) external view returns(uint[] memory) { uint[] memory tokens = new uint[](balanceOf(owner)); uint ct = 0; for(uint i = 1; i <= MAX_SUPPLY - lockedSupply; i++) { if(_ownerships[i].addr == owner) { tokens[ct] = i; ct++; } } return tokens; } /** Refund function which requires the minimum amount for the transaction and returns any extra payment to the sender */ function refundIfOver(uint256 price) private { if(msg.value < price) revert NotEnoughETH(); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function verify(address target, bytes32[] calldata _merkleProof) public view returns(bool) { bytes32 leaf = keccak256(abi.encodePacked(target)); return MerkleProof.verify(_merkleProof, merkleRoot, leaf); } /** Standard TokenURI ERC721A function. */ function tokenURI(uint256 _tokenId) override public view returns (string memory) { // Make sure that the token has been minted if(!_exists(_tokenId)) revert InvalidTokenId(); return _tokenURI(_tokenId); } /** Mint Function only usable by contract owner. Use reserved for giveaways and promotions. */ function ownerMint(address to, uint256 quantity) public isContract nonReentrant onlyOperator { if(quantity + totalSupply() > MAX_SUPPLY) revert MaxSupplyReached(); uint random = randomness(); for(uint i = 0; i < quantity; i++){ _mintToken(to, mappedTokenFor(random+i)); } } function toggleMint() external onlyOperator { mintActive = !mintActive; } function setStartTime(uint64 _startTime) external onlyOperator { startTime = _startTime; } function setMintPrice(uint _mintPrice) external onlyOperator { mintPrice = _mintPrice; } function setReservedSupply(uint _reservedSupply) external onlyOperator { reservedSupply = _reservedSupply; setPublicSupply(); } function setLockedSupply(uint _lockedSupply) external onlyOperator { lockedSupply = _lockedSupply; setPublicSupply(); } function setMerkleRoot(bytes32 _merkleRoot) external onlyOperator { merkleRoot = _merkleRoot; } function setScoreSignerAddress(address _scoreSigner) external onlyOperator { scoreSigner = _scoreSigner; } function setRollScorePrice(uint64 _price) external onlyOperator { rollScorePrice = _price; } function setRollTokenAddress(address _rollAddress) external onlyOperator { rollToken = IROLL(_rollAddress); } function setPayoutAddress(address _payoutAddress) external onlyOperator { ROLLERS_PAYOUT_ADDRESS = _payoutAddress; } function setPublicSupply() internal { publicSupply = MAX_SUPPLY - reservedSupply - lockedSupply; } /** MIMETIC METADATA FUNCTIONS **/ /* * @notice Allows any user to see the layer that a token currently has enabled. */ function getTokenGeneration(uint256 _tokenId) override public virtual view returns(uint256) { if(_exists(_tokenId) == false) revert InvalidTokenId(); return _getTokenGeneration(_tokenId); } function focusGeneration(uint256 _layerId, uint256 _tokenId) override public virtual payable { if(!isUnlocked(_tokenId)) revert LockedToken(); _focusGeneration(_layerId, _tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, AccessControl) returns (bool) { return interfaceId == _INTERFACE_ID_LOCKABLE || super.supportsInterface(interfaceId); } function transferFrom(address from, address to, uint256 tokenId) public override { if(!isUnlocked(tokenId)) revert LockedToken(); ERC721A.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override { if(!isUnlocked(tokenId)) revert LockedToken(); ERC721A.safeTransferFrom(from, to, tokenId, _data); } function lockId(uint256 _id) external override { if(!_exists(_id)) revert InvalidTokenId(); _lockId(_id); } function unlockId(uint256 _id) external override { if(!_exists(_id)) revert InvalidTokenId(); _unlockId(_id); } function freeId(uint256 _id, address _contract) external override { if(!_exists(_id)) revert InvalidTokenId(); _freeId(_id, _contract); } function recordHighScore(uint8 v, bytes32 r, bytes32 s, UserData memory record) public override(Scorekeeper) { require(ownerOf(record.rollerId) == msg.sender, "NotOwner"); super.recordHighScore(v,r,s,record); } /** Standard withdraw function for the owner to pull the contract */ function withdraw() external onlyOperator { uint256 mintAmount = address(this).balance; address rollers = payable(ROLLERS_PAYOUT_ADDRESS); // SET UP MULTI-SIG WALLET bool success; (success, ) = rollers.call{value: mintAmount }(""); if(!success) revert TransactionUnsuccessful(); } function withdrawInitialDAFunds() public onlyOperator { require(!INITIAL_FUNDS_WITHDRAWN, "Initial funds have already been withdrawn."); require(DA_FINAL_PRICE > 0, "DA has not finished!"); //Only pull the amount of ether that is the final price times how many were bought. This leaves room for refunds until final withdraw. uint256 initialFunds = DA_QUANTITY * DA_FINAL_PRICE; INITIAL_FUNDS_WITHDRAWN = true; (bool succ, ) = payable(ROLLERS_PAYOUT_ADDRESS).call{value: initialFunds}(""); require(succ, "transfer failed"); } function withdrawFinalDAFunds() public onlyOperator { //Require this is 1 week after DA Start. require(block.timestamp >= DA_STARTING_TIMESTAMP + 604800); uint256 finalFunds = address(this).balance; (bool succ, ) = payable(ROLLERS_PAYOUT_ADDRESS).call{value: finalFunds}(""); require(succ, "transfer failed"); } } error CallerIsContract(); error CallerIsNotOperator(); error InvalidMintAmount(); error InvalidProof(); error InvalidTokenId(); error LockedToken(); error MaxMintAmountReached(); error MaxSupplyReached(); error NotEnoughETH(); error SaleNotStarted(); error TransactionUnsuccessful();
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import { IMimeticMetadata } from "./IMimeticMetadata.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { Strings } from "@openzeppelin/contracts/utils/Strings.sol"; error MintExceedsMaxSupply(); error MintCostMismatch(); error MintNotEnabled(); error GenerationAlreadyLoaded(); error GenerationNotDifferent(); error GenerationNotEnabled(); error GenerationNotDowngradable(); error GenerationNotToggleable(); error GenerationCostMismatch(); error TokenNonExistent(); error TokenNotRevealed(); error TokenRevealed(); error TokenOwnerMismatch(); error WithdrawFailed(); /** * @title Non-Dilutive 721 * @author nftchance * @notice This token was created to serve as a proof for a conversational point. Non-dilutive 721 * tokens can exist. Teams can easily build around this concept. Teams can additionally * still monetize the going ons and hard work of their team. However, that does not need to * come at the cost of their holders. As it stands every token drop following the * initial is a holder mining experience in which every single holders is impacted by the * lower market concentration of liquidty and attention. * @notice If you plan on yoinking this code. Please message me. Curiosity breeds progress. I am * here to help if you need or want it. I do not want a cut; I do not want paid. I want a * market of * honest and holder thoughtful devs. This is a very very weird 721 * implementation and comes with many nuances. I'd love to discuss. * @notice Doodles drop of the Spaceships by wrapping into a new token is 100% dilutive. * @dev The extendable 'Generations' wrap the token metadata within the content to remove the need * of dropping another token into the collection. By doing this, that does not inherently * mean the metadata is mutable beyond the extent that the token holder can change the * active metadata. The underlying generations still much exist and can be configured in a * way that allows accessing them again if desired. However, there does also exist the * ability to have truly immutable layers that cannot be removed. (If following this * implementation it is vitally noted that object permanence must be achieved from day one. * A project CANNOT implement this on a mutable URL that is massive holder-trust betrayal.) */ contract MimeticMetadata is IMimeticMetadata, Ownable { using Strings for uint256; mapping(uint256 => Generation) public generations; mapping(uint256 => uint256) tokenToGeneration; /** * @notice Function that controls which metadata the token is currently utilizing. * By default every token is using layer zero which is loaded during the time * of contract deployment. Cannot be removed, is immutable, holders can always * revert back. However, if at any time they choose to "wrap" their token then * it is automatically reflected here. * @notice Errors out if the token has not yet been revealed within this collection. * @param _tokenId the token we are getting the URI for * @return _tokenURI The internet accessible URI of the token */ function _tokenURI(uint256 _tokenId) internal virtual view returns (string memory) { // Make sure that the token has been minted uint256 activeGenerationLayer = tokenToGeneration[_tokenId]; Generation memory activeGeneration = generations[activeGenerationLayer]; return string(abi.encodePacked(activeGeneration.baseURI, _tokenId.toString())); } /** * @notice Allows the project owner to establish a new generation. Generations are enabled by * default. With this we initialize the generation to be loaded. * @dev _name is passed as a param, if this is not needed; remove it. Don't be superfluous. * @dev only accessed by owner of contract * @param _layerId the z-depth of the metadata being loaded * @param _enabled a generation can be connected before a token can utilize it * @param _locked can this layer be disabled by the project owner * @param _sticky can this layer be removed by the holder * @param _baseURI the internet URI the metadata is stored on */ function loadGeneration(uint256 _layerId, bool _enabled, bool _locked, bool _sticky, string memory _baseURI) override public virtual onlyOwner { Generation storage generation = generations[_layerId]; // Make sure that we are not overwriting an existing layer. if(generation.loaded) revert GenerationAlreadyLoaded(); generations[_layerId] = Generation({ loaded: true, enabled: _enabled, locked: _locked, sticky: _sticky, baseURI: _baseURI }); } /** * @notice Used to toggle the state of a generation. Disable generations cannot be focused by * token holders. */ function toggleGeneration( uint256 _layerId) override public virtual onlyOwner { Generation memory generation = generations[_layerId]; // Make sure that the token isn't locked (immutable but overlapping keywords is spicy) if(generation.enabled && generation.locked) revert GenerationNotToggleable(); generations[_layerId].enabled = !generation.enabled; } /** * @notice Allows any user to see the layer that a token currently has enabled. */ function _getTokenGeneration(uint256 _tokenId) internal virtual view returns(uint256) { return tokenToGeneration[_tokenId]; } /** * @notice Function that allows token holders to focus a generation and wear their skin. * This is not in control of the project maintainers once the layer has been * initialized. * @dev This function is utilized when building supporting functions around the concept of * extendable metadata. For example, if Doodles were to drop their spaceships, it would * be loaded and then enabled by the holder through this function on a front-end. * @param _layerId the layer that this generation belongs on. The bottom is zero. * @param _tokenId the token that we are updating the metadata for */ function _focusGeneration(uint256 _layerId, uint256 _tokenId) internal virtual { uint256 activeGenerationLayer = tokenToGeneration[_tokenId]; if(activeGenerationLayer == _layerId) revert GenerationNotDifferent(); // Make sure that the generation has been enabled Generation memory generation = generations[_layerId]; if(!generation.enabled) revert GenerationNotEnabled(); // Make sure a user can't take off a sticky generation Generation memory activeGeneration = generations[activeGenerationLayer]; if(activeGeneration.sticky && _layerId < activeGenerationLayer) revert GenerationNotDowngradable(); // Finally evolve to the generation tokenToGeneration[_tokenId] = _layerId; emit GenerationChange( _layerId, _tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface INonDilutive { function getTokenGeneration( uint256 _tokenId ) external returns ( uint256 ); function focusGeneration( uint256 _layerId ,uint256 _tokenId ) external payable; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.2; interface IERC721x { /** * @dev Returns if the token is locked (non-transferrable) or not. */ function isUnlocked(uint256 _id) external view returns(bool); /** * @dev Returns the amount of locks on the token. */ function lockCount(uint256 _tokenId) external view returns(uint256); /** * @dev Returns if a contract is allowed to lock/unlock tokens. */ function approvedContract(address _contract) external view returns(bool); /** * @dev Returns the contract that locked a token at a specific index in the mapping. */ function lockMap(uint256 _tokenId, uint256 _index) external view returns(address); /** * @dev Returns the mapping index of a contract that locked a token. */ function lockMapIndex(uint256 _tokenId, address _contract) external view returns(uint256); /** * @dev Locks a token, preventing it from being transferrable */ function lockId(uint256 _id) external; /** * @dev Unlocks a token. */ function unlockId(uint256 _id) external; /** * @dev Unlocks a token from a given contract if the contract is no longer approved. */ function freeId(uint256 _id, address _contract) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.2; /* * ,_, * (',') * {/"\} * -"-"- */ import "@openzeppelin/contracts/access/Ownable.sol"; import "../Interfaces/ILock.sol"; abstract contract LockRegistry is Ownable, IERC721x { mapping(address => bool) public override approvedContract; mapping(uint256 => uint256) public override lockCount; mapping(uint256 => mapping(uint256 => address)) public override lockMap; mapping(uint256 => mapping(address => uint256)) public override lockMapIndex; event TokenLocked(uint256 indexed tokenId, address indexed approvedContract); event TokenUnlocked(uint256 indexed tokenId, address indexed approvedContract); function isUnlocked(uint256 _id) public view override returns(bool) { return lockCount[_id] == 0; } function updateApprovedContracts(address[] calldata _contracts, bool[] calldata _values) external onlyOwner { require(_contracts.length == _values.length, "!length"); for(uint256 i = 0; i < _contracts.length; i++) approvedContract[_contracts[i]] = _values[i]; } function _lockId(uint256 _id) internal { require(approvedContract[msg.sender], "Cannot update map"); require(lockMapIndex[_id][msg.sender] == 0, "ID already locked by caller"); uint256 count = lockCount[_id] + 1; lockMap[_id][count] = msg.sender; lockMapIndex[_id][msg.sender] = count; lockCount[_id]++; emit TokenLocked(_id, msg.sender); } function _unlockId(uint256 _id) internal { require(approvedContract[msg.sender], "Cannot update map"); uint256 index = lockMapIndex[_id][msg.sender]; require(index != 0, "ID not locked by caller"); uint256 last = lockCount[_id]; if (index != last) { address lastContract = lockMap[_id][last]; lockMap[_id][index] = lastContract; lockMap[_id][last] = address(0); lockMapIndex[_id][lastContract] = index; } else lockMap[_id][index] = address(0); lockMapIndex[_id][msg.sender] = 0; lockCount[_id]--; emit TokenUnlocked(_id, msg.sender); } function _freeId(uint256 _id, address _contract) internal { require(!approvedContract[_contract], "Cannot update map"); uint256 index = lockMapIndex[_id][_contract]; require(index != 0, "ID not locked"); uint256 last = lockCount[_id]; if (index != last) { address lastContract = lockMap[_id][last]; lockMap[_id][index] = lastContract; lockMap[_id][last] = address(0); lockMapIndex[_id][lastContract] = index; } else lockMap[_id][index] = address(0); lockMapIndex[_id][_contract] = 0; lockCount[_id]--; emit TokenUnlocked(_id, _contract); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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. */ 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 Merklee 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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The number of tokens burned. uint256 internal _burnCounter; uint256 public _mintCounter; uint256 public _maxSupply = 8888; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) internal _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _mintCounter - _burnCounter; } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _mintCounter; } } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _reserveMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].reserveMinted); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getMintTime(address owner) internal view returns (uint64) { return _addressData[owner].mintTime; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 mintTime) internal { _addressData[owner].mintTime = mintTime; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { // unchecked { // if (_startTokenId() <= curr && curr < _maxSupply) { // TokenOwnership memory ownership = _ownerships[curr]; // if (!ownership.burned) { // if (ownership.addr != address(0)) { // return ownership; // } // // Invariant: // // There will always be an ownership that has an address and is not burned // // before an ownership that does not have an address and is not burned. // // Hence, curr will not underflow. // while (true) { // curr--; // ownership = _ownerships[curr]; // if (ownership.addr != address(0)) { // return ownership; // } // } // } // } // } // revert OwnerQueryForNonexistentToken(); return _ownerships[tokenId]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownerships[tokenId].addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { // return _startTokenId() <= tokenId && tokenId < _maxSupply && !_ownerships[tokenId].burned; return _ownerships[tokenId].addr != address(0) && !_ownerships[tokenId].burned; } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mintToken(address to, uint64 tokenId) internal { if (to == address(0)) revert MintToZeroAddress(); if (tokenId == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance++; _addressData[to].numberMinted++; _addressData[to].mintTime = uint64(block.timestamp); _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); emit Transfer(address(0), to, tokenId); _mintCounter++; } _afterTokenTransfers(address(0), to, tokenId, 1); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { } function _safeMint(address to, uint256 quantity) internal { } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (_exists(tokenId)) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (_exists(tokenId)) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; /* Open source Dutch Auction contract Dutch Auction that exposes a function to minters that allows them to pull difference between payment price and settle price. Initial version has no owner functions to not allow for owner foul play. Written by: mousedev.eth */ contract MDDA is Ownable { uint256 public DA_STARTING_PRICE; uint256 public DA_ENDING_PRICE; uint256 public DA_DECREMENT; uint256 public DA_DECREMENT_FREQUENCY; uint256 public DA_STARTING_TIMESTAMP; uint256 public DA_MAX_QUANTITY; uint256 public DA_FINAL_PRICE; uint256 public DA_QUANTITY; bool public DATA_SET; bool public INITIAL_FUNDS_WITHDRAWN; //Struct for storing batch price data. struct TokenBatchPriceData { uint128 pricePaid; uint128 quantityMinted; } //Token to token price data mapping(address => TokenBatchPriceData[]) public userToTokenBatchPriceData; function initializeAuctionData( uint256 _DAStartingPrice, uint256 _DAEndingPrice, uint256 _DADecrement, uint256 _DADecrementFrequency, uint256 _DAStartingTimestamp, uint256 _DAMaxQuantity, uint256 _DAQuantity ) public onlyOwner { require(!DATA_SET, "DA data has already been set."); DA_STARTING_PRICE = _DAStartingPrice; DA_ENDING_PRICE = _DAEndingPrice; DA_DECREMENT = _DADecrement; DA_DECREMENT_FREQUENCY = _DADecrementFrequency; DA_STARTING_TIMESTAMP = _DAStartingTimestamp; DA_MAX_QUANTITY = _DAMaxQuantity; DA_QUANTITY = _DAQuantity; DATA_SET = true; } function userToTokenBatches(address user) public view returns (TokenBatchPriceData[] memory) { return userToTokenBatchPriceData[user]; } function currentPrice() public view returns (uint256) { require( block.timestamp >= DA_STARTING_TIMESTAMP, "DA has not started!"); if (DA_FINAL_PRICE > 0) return DA_FINAL_PRICE; //Seconds since we started uint256 timeSinceStart = block.timestamp - DA_STARTING_TIMESTAMP; //How many decrements should've happened since that time uint256 decrementsSinceStart = timeSinceStart / DA_DECREMENT_FREQUENCY; //How much eth to remove uint256 totalDecrement = decrementsSinceStart * DA_DECREMENT; //If how much we want to reduce is greater or equal to the range, return the lowest value if (totalDecrement >= DA_STARTING_PRICE - DA_ENDING_PRICE) { return DA_ENDING_PRICE; } //If not, return the starting price minus the decrement. return DA_STARTING_PRICE - totalDecrement; } function DAHook(uint128 _quantity, uint256 _totalSupply) internal { require(DATA_SET, "DA data not set yet"); uint256 _currentPrice = currentPrice(); //Require enough ETH require(msg.value >= _quantity * _currentPrice, "Did not send enough eth."); require(_quantity > 0 && _quantity <= DA_MAX_QUANTITY, "Incorrect quantity!"); require(block.timestamp >= DA_STARTING_TIMESTAMP, "DA has not started!"); require(_totalSupply + _quantity <= DA_QUANTITY, "Max supply for DA reached!"); //Set the final price. if (_totalSupply + _quantity == DA_QUANTITY) DA_FINAL_PRICE = _currentPrice; //Add to user batch array. userToTokenBatchPriceData[msg.sender].push(TokenBatchPriceData(uint128(msg.value), _quantity)); } function refundExtraETH() public { require(DA_FINAL_PRICE > 0, "Dutch action must be over!"); uint256 totalRefund; for ( uint256 i = userToTokenBatchPriceData[msg.sender].length; i > 0; i--) { //This is what they should have paid if they bought at lowest price tier. uint256 expectedPrice = userToTokenBatchPriceData[msg.sender][i - 1] .quantityMinted * DA_FINAL_PRICE; //What they paid - what they should have paid = refund. uint256 refund = userToTokenBatchPriceData[msg.sender][i - 1] .pricePaid - expectedPrice; //Remove this tokenBatch userToTokenBatchPriceData[msg.sender].pop(); //Send them their extra monies. totalRefund += refund; } payable(msg.sender).transfer(totalRefund); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/Strings.sol'; import "./IROLL.sol"; contract Scorekeeper { using Strings for uint256; struct EIP712Domain { string name; string version; uint256 chainId; address verifyingContract; } struct UserData { uint64 rollerId; uint64 score; uint64 timestamp; address wallet; } IROLL public rollToken; address public scoreSigner; uint256 public rollScorePrice = 100 ether; bytes32 constant EIP712DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); bytes32 constant USERDATA_TYPEHASH = keccak256( "UserData(uint64 rollerId,uint64 score,uint64 timestamp,address wallet)" ); bytes32 DOMAIN_SEPARATOR; mapping(uint => UserData) public scores; constructor() { uint256 chainId; assembly { chainId := chainid() } DOMAIN_SEPARATOR = hash(EIP712Domain({ name: "RetroRollers", version: '1', chainId: chainId, verifyingContract: address(this) })); } /** Hashing functions used in verfiying Score messages */ function hash(EIP712Domain memory eip712Domain) internal pure returns (bytes32) { return keccak256(abi.encode( EIP712DOMAIN_TYPEHASH, keccak256(bytes(eip712Domain.name)), keccak256(bytes(eip712Domain.version)), eip712Domain.chainId, eip712Domain.verifyingContract )); } function hash(UserData memory score) internal pure returns (bytes32) { return keccak256(abi.encode( USERDATA_TYPEHASH, score.rollerId, score.score, score.timestamp, score.wallet )); } /** Score Functions */ function recordHighScore(uint8 v, bytes32 r, bytes32 s, UserData memory record) public virtual { if(rollScorePrice > rollToken.balanceOf(msg.sender)) revert NotEnoughRollToken(); if(rollScorePrice > rollToken.allowance(msg.sender, address(this))) revert NotEnoughRollToken(); rollToken.transferFrom(msg.sender, address(this), rollScorePrice); bytes32 digest = keccak256(abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, hash(record) )); address signer = ecrecover(digest, v, r, s); if(signer != scoreSigner) revert InvalidSignature(); // require(signer == scoreSigner, "InvalidSignature"); if(signer == address(0)) revert ECDSAInvalidSignature(); // require(signer != address(0), "ECDSAInvalidSignature"); //require(ownerOf(record.rollerId) == msg.sender, "NotOwner"); if(record.wallet != msg.sender) revert NotScoreWallet(); // require(record.wallet == msg.sender, "NotScorerWallet"); if(scores[record.rollerId].score > record.score) revert NotHighScore(); saveScore(record); } function saveScore(UserData memory record) internal virtual { scores[record.rollerId] = record; } function getScore(uint _tokenId) public virtual view returns (UserData memory) { return scores[_tokenId]; } } error NotHighScore(); error NotEnoughRollToken(); error NotScoreWallet(); error InvalidSignature(); error ECDSAInvalidSignature();
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface IMimeticMetadata { struct Generation { bool enabled; bool loaded; bool locked; bool sticky; string baseURI; } event GenerationChange(uint256 _layerId, uint256 _tokenId); function loadGeneration(uint256 _layerId, bool _enabled, bool _locked, bool _sticky, string memory _baseURI) external; function toggleGeneration(uint256 _layerId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { uint64 balance; uint64 numberMinted; uint64 mintTime; uint64 reserveMinted; } /** * @dev Returns the total amount of tokens stored by the contract. * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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 pragma solidity ^0.8.0; interface IROLL { function balanceOf(address owner) external view returns(uint256); function transferFrom(address, address, uint256) external; function allowance(address owner, address spender) external view returns(uint256); function approve(address spender, uint256 amount) external returns(bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CallerIsContract","type":"error"},{"inputs":[],"name":"CallerIsNotOperator","type":"error"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[],"name":"GenerationAlreadyLoaded","type":"error"},{"inputs":[],"name":"GenerationNotDifferent","type":"error"},{"inputs":[],"name":"GenerationNotDowngradable","type":"error"},{"inputs":[],"name":"GenerationNotEnabled","type":"error"},{"inputs":[],"name":"GenerationNotToggleable","type":"error"},{"inputs":[],"name":"InvalidMintAmount","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"LockedToken","type":"error"},{"inputs":[],"name":"MaxMintAmountReached","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotEnoughETH","type":"error"},{"inputs":[],"name":"NotEnoughRollToken","type":"error"},{"inputs":[],"name":"NotHighScore","type":"error"},{"inputs":[],"name":"NotScoreWallet","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleNotStarted","type":"error"},{"inputs":[],"name":"TransactionUnsuccessful","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_layerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"GenerationChange","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DATA_SET","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT_FREQUENCY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_ENDING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_FINAL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_MAX_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_FUNDS_WITHDRAWN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLLERS_PAYOUT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerId","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"focusGeneration","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_contract","type":"address"}],"name":"freeId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"generations","outputs":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"bool","name":"loaded","type":"bool"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"sticky","type":"bool"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getScore","outputs":[{"components":[{"internalType":"uint64","name":"rollerId","type":"uint64"},{"internalType":"uint64","name":"score","type":"uint64"},{"internalType":"uint64","name":"timestamp","type":"uint64"},{"internalType":"address","name":"wallet","type":"address"}],"internalType":"struct Scorekeeper.UserData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenGeneration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_DAStartingPrice","type":"uint256"},{"internalType":"uint256","name":"_DAEndingPrice","type":"uint256"},{"internalType":"uint256","name":"_DADecrement","type":"uint256"},{"internalType":"uint256","name":"_DADecrementFrequency","type":"uint256"},{"internalType":"uint256","name":"_DAStartingTimestamp","type":"uint256"},{"internalType":"uint256","name":"_DAMaxQuantity","type":"uint256"},{"internalType":"uint256","name":"_DAQuantity","type":"uint256"}],"name":"initializeAuctionData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerId","type":"uint256"},{"internalType":"bool","name":"_enabled","type":"bool"},{"internalType":"bool","name":"_locked","type":"bool"},{"internalType":"bool","name":"_sticky","type":"bool"},{"internalType":"string","name":"_baseURI","type":"string"}],"name":"loadGeneration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"lockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"lockMapIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMintPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"quantity","type":"uint64"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_quantity","type":"uint8"}],"name":"mintDutchAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"components":[{"internalType":"uint64","name":"rollerId","type":"uint64"},{"internalType":"uint64","name":"score","type":"uint64"},{"internalType":"uint64","name":"timestamp","type":"uint64"},{"internalType":"address","name":"wallet","type":"address"}],"internalType":"struct Scorekeeper.UserData","name":"record","type":"tuple"}],"name":"recordHighScore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"refundExtraETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"reservedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rollScorePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rollToken","outputs":[{"internalType":"contract IROLL","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"scoreSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"scores","outputs":[{"internalType":"uint64","name":"rollerId","type":"uint64"},{"internalType":"uint64","name":"score","type":"uint64"},{"internalType":"uint64","name":"timestamp","type":"uint64"},{"internalType":"address","name":"wallet","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockedSupply","type":"uint256"}],"name":"setLockedSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payoutAddress","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reservedSupply","type":"uint256"}],"name":"setReservedSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_price","type":"uint64"}],"name":"setRollScorePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rollAddress","type":"address"}],"name":"setRollTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_scoreSigner","type":"address"}],"name":"setScoreSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_startTime","type":"uint64"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerId","type":"uint256"}],"name":"toggleGeneration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReserveMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"unlockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_contracts","type":"address[]"},{"internalType":"bool[]","name":"_values","type":"bool[]"}],"name":"updateApprovedContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userToTokenBatchPriceData","outputs":[{"internalType":"uint128","name":"pricePaid","type":"uint128"},{"internalType":"uint128","name":"quantityMinted","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"userToTokenBatches","outputs":[{"components":[{"internalType":"uint128","name":"pricePaid","type":"uint128"},{"internalType":"uint128","name":"quantityMinted","type":"uint128"}],"internalType":"struct MDDA.TokenBatchPriceData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFinalDAFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawInitialDAFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526122b8600281815568056bc75e2d63100000601e55602180546001600160a01b031916739cee145ea8842e8c332bec94eb48337ff38cdadf17905567011c37937e080000602355602455602555610d05602655610bb8602755602a805460ff60401b191690553480156200007757600080fd5b5060405162005d3d38038062005d3d8339810160408190526200009a91620005a6565b604080518082018252600d81526c526574726f20526f6c6c65727360981b602080830191825283518085019094526002845261292960f11b908401528151919291620000e991600391620004ea565b508051620000ff906004906020840190620004ea565b5050506200011c62000116620001cd60201b60201c565b620001d1565b600160118190556040805160c081018252600c608082019081526b526574726f526f6c6c65727360a01b60a0830152815281518083018352928352603160f81b6020848101919091528101929092524690820181905230606083015290620001849062000223565b601f555062000195600033620002c1565b602a80546001600160401b0319166362740290179055620001b5620002d1565b620001c660006001808085620002f7565b50620006e5565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82600001518051906020012083602001518051906020012084604001518560600151604051602001620002a49594939291909485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b604051602081830303815290604052805190602001209050919050565b620002cd828262000446565b5050565b602654602754602554620002e6919062000682565b620002f2919062000682565b602955565b6009546001600160a01b03163314620003565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6000858152600a602052604090208054610100900460ff16156200038d576040516301ee81b760e51b815260040160405180910390fd5b6040805160a081018252861515815260016020808301828152881515848601908152881515606086019081526080860189815260008e8152600a8652979097208651815494519351925161ffff1990951690151561ff00191617610100931515939093029290921763ffff00001916620100009115159190910263ff000000191617630100000092151592909202919091178155935180519394936200043b938501929190910190620004ea565b505050505050505050565b60008281526010602090815260408083206001600160a01b038516845290915290205460ff16620002cd5760008281526010602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620004a63390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620004f890620006a8565b90600052602060002090601f0160209004810192826200051c576000855562000567565b82601f106200053757805160ff191683800117855562000567565b8280016001018555821562000567579182015b82811115620005675782518255916020019190600101906200054a565b506200057592915062000579565b5090565b5b808211156200057557600081556001016200057a565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620005ba57600080fd5b82516001600160401b0380821115620005d257600080fd5b818501915085601f830112620005e757600080fd5b815181811115620005fc57620005fc62000590565b604051601f8201601f19908116603f0116810190838211818310171562000627576200062762000590565b8160405282815288868487010111156200064057600080fd5b600093505b8284101562000664578484018601518185018701529285019262000645565b82841115620006765760008684830101525b98975050505050505050565b600082821015620006a357634e487b7160e01b600052601160045260246000fd5b500390565b600181811c90821680620006bd57607f821691505b60208210811415620006df57634e487b7160e01b600052602260045260246000fd5b50919050565b61564880620006f56000396000f3fe6080604052600436106104f75760003560e01c806378e979251161028c578063b81293711161015a578063e985e9c5116100cc578063f5998ed811610085578063f5998ed81461115b578063f5b541a614611171578063f89d2e4d14611193578063fb37df76146111a9578063fb9d09c8146111bc578063fc6bbba5146111cf57600080fd5b8063e985e9c514611086578063ea18dc5c146110cf578063f2fde38b146110e5578063f4a0a52814611105578063f4c5f7db14611125578063f526afe01461114557600080fd5b8063ca5c7b911161011e578063ca5c7b9114610fe5578063d1b72daf14610ffb578063d3dd5fe01461101b578063d547741f14611030578063dfb1b54514611050578063e91f9e291461106657600080fd5b8063b812937114610f64578063b88d4fde14610f7a578063b9765a1f14610f9a578063c421ebc614610faf578063c87b56dd14610fc557600080fd5b806397f65c08116101fe578063aaab1ba5116101b7578063aaab1ba514610e90578063ab93099b14610ea3578063ac52e64414610ec3578063ad8b0e9414610ee3578063b1a6505f14610f14578063b76a0df414610f4457600080fd5b806397f65c0814610dfa578063996e52b514610e105780639d1b464a14610e26578063a217fddf14610e3b578063a22cb46514610e50578063a278519914610e7057600080fd5b80638f820be5116102505780638f820be514610d1a57806391785e6d14610d2f57806391d1485414610d4f5780639231ab2a14610d6f57806394d216d614610dc557806395d89b4114610de557600080fd5b806378e9792514610c715780637cb6475914610ca95780637d6dc62714610cc957806383e6848d14610ce95780638da5cb5b14610cfc57600080fd5b806333ea51a8116103c957806354bdfa061161033b578063650b00f6116102f4578063650b00f614610bb55780636817c76c14610be257806370a0823114610bf8578063715018a614610c1857806372abc8b714610c2d57806378615c3214610c5b57600080fd5b806354bdfa0614610ae65780635ca8518a14610b065780635de6dc5514610b1c5780635e84d72314610b4957806361de16f514610b5f5780636352211e14610b7f57600080fd5b806340a9c8df1161038d57806340a9c8df14610a3057806342842e0e14610a5057806342ba828814610a7057806344d19d2b14610a90578063484b973c14610aa657806349e2921b14610ac657600080fd5b806333ea51a81461098e578063356f0147146109ae57806336568abe146109db57806338812e58146109fb5780633ccfd60b14610a1b57600080fd5b806323b872dd1161046d5780632cba8123116104265780632cba81231461084a5780632def58001461088b5780632eb4a7ab146108ab5780632ee691a3146108c15780632f2ff15d1461095857806332cb6b0c1461097857600080fd5b806323b872dd14610763578063248a9ca31461078357806325fd90f3146107b3578063266dab34146107d45780632799cde0146107ea5780632b4519fb1461080a57600080fd5b80630e1af57b116104bf5780630e1af57b146105f357806318160ddd146106db5780631cbf6c50146106f45780631e13f86b1461070e578063204e656b1461072e57806322f4596f1461074d57600080fd5b806301ffc9a7146104fc57806306fdde0314610531578063081812fc1461055357806309308e5d1461058b578063095ea7b3146105d1575b600080fd5b34801561050857600080fd5b5061051c610517366004614ba7565b6111e4565b60405190151581526020015b60405180910390f35b34801561053d57600080fd5b5061054661120f565b6040516105289190614c1c565b34801561055f57600080fd5b5061057361056e366004614c2f565b6112a1565b6040516001600160a01b039091168152602001610528565b34801561059757600080fd5b506105c36105a6366004614c64565b600f60209081526000928352604080842090915290825290205481565b604051908152602001610528565b3480156105dd57600080fd5b506105f16105ec366004614c90565b6112e5565b005b3480156105ff57600080fd5b5061069261060e366004614c2f565b6040805160808101825260008082526020820181905291810182905260608101919091525060009081526020808052604091829020825160808101845281546001600160401b038082168352600160401b8204811694830194909452600160801b9004909216928201929092526001909101546001600160a01b0316606082015290565b6040805182516001600160401b0390811682526020808501518216908301528383015116918101919091526060918201516001600160a01b031691810191909152608001610528565b3480156106e757600080fd5b50600054600154036105c3565b34801561070057600080fd5b50601a5461051c9060ff1681565b34801561071a57600080fd5b506105f1610729366004614c2f565b611370565b34801561073a57600080fd5b50601a5461051c90610100900460ff1681565b34801561075957600080fd5b506105c360025481565b34801561076f57600080fd5b506105f161077e366004614cba565b6113d9565b34801561078f57600080fd5b506105c361079e366004614c2f565b60009081526010602052604090206001015490565b3480156107bf57600080fd5b50602a5461051c90600160401b900460ff1681565b3480156107e057600080fd5b506105c360285481565b3480156107f657600080fd5b506105f1610805366004614c2f565b611411565b34801561081657600080fd5b5061082a610825366004614c90565b611440565b604080516001600160801b03938416815292909116602083015201610528565b34801561085657600080fd5b50610573610865366004614cf6565b600e6020908152600092835260408084209091529082529020546001600160a01b031681565b34801561089757600080fd5b506105f16108a6366004614d2f565b611483565b3480156108b757600080fd5b506105c360225481565b3480156108cd57600080fd5b5061091f6108dc366004614c2f565b6020805260009081526040902080546001909101546001600160401b0380831692600160401b8104821692600160801b909104909116906001600160a01b031684565b604080516001600160401b039586168152938516602085015291909316908201526001600160a01b039091166060820152608001610528565b34801561096457600080fd5b506105f1610973366004614c64565b6114ea565b34801561098457600080fd5b506105c360255481565b34801561099a57600080fd5b506105f16109a9366004614d4a565b611510565b3480156109ba57600080fd5b506109ce6109c9366004614d4a565b61158b565b6040516105289190614d65565b3480156109e757600080fd5b506105f16109f6366004614c64565b611617565b348015610a0757600080fd5b506105f1610a16366004614d2f565b61169a565b348015610a2757600080fd5b506105f1611716565b348015610a3c57600080fd5b506105f1610a4b366004614c2f565b6117e9565b348015610a5c57600080fd5b506105f1610a6b366004614cba565b611818565b348015610a7c57600080fd5b50601c54610573906001600160a01b031681565b348015610a9c57600080fd5b506105c360275481565b348015610ab257600080fd5b506105f1610ac1366004614c90565b611833565b348015610ad257600080fd5b506105f1610ae1366004614d4a565b611961565b348015610af257600080fd5b506105f1610b01366004614dc1565b6119dc565b348015610b1257600080fd5b506105c360175481565b348015610b2857600080fd5b50610b3c610b37366004614d4a565b611a86565b6040516105289190614e0d565b348015610b5557600080fd5b506105c360295481565b348015610b6b57600080fd5b506105f1610b7a366004614eec565b611b5a565b348015610b8b57600080fd5b50610573610b9a366004614c2f565b6000908152600560205260409020546001600160a01b031690565b348015610bc157600080fd5b506105c3610bd0366004614c2f565b600d6020526000908152604090205481565b348015610bee57600080fd5b506105c360235481565b348015610c0457600080fd5b506105c3610c13366004614d4a565b611c71565b348015610c2457600080fd5b506105f1611cbf565b348015610c3957600080fd5b5061051c610c48366004614c2f565b6000908152600d60205260409020541590565b348015610c6757600080fd5b506105c360165481565b348015610c7d57600080fd5b50602a54610c91906001600160401b031681565b6040516001600160401b039091168152602001610528565b348015610cb557600080fd5b506105f1610cc4366004614c2f565b611cf5565b348015610cd557600080fd5b506105f1610ce4366004614f89565b611d53565b6105f1610cf736600461503d565b611dc1565b348015610d0857600080fd5b506009546001600160a01b0316610573565b348015610d2657600080fd5b506105f1611e74565b348015610d3b57600080fd5b506105c3610d4a366004614c2f565b612042565b348015610d5b57600080fd5b5061051c610d6a366004614c64565b61207e565b348015610d7b57600080fd5b50610d8f610d8a366004614c2f565b6120a9565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610528565b348015610dd157600080fd5b506105f1610de0366004614c64565b6120cf565b348015610df157600080fd5b506105466120ff565b348015610e0657600080fd5b506105c360135481565b348015610e1c57600080fd5b506105c360155481565b348015610e3257600080fd5b506105c361210e565b348015610e4757600080fd5b506105c3600081565b348015610e5c57600080fd5b506105f1610e6b366004615058565b6121d4565b348015610e7c57600080fd5b506105f1610e8b366004614c2f565b61226a565b6105f1610e9e3660046150cd565b6122d0565b348015610eaf57600080fd5b506105f1610ebe366004614d4a565b6124c1565b348015610ecf57600080fd5b506105f1610ede36600461510e565b61253c565b348015610eef57600080fd5b50610f03610efe366004614c2f565b61263d565b604051610528959493929190615179565b348015610f2057600080fd5b5061051c610f2f366004614d4a565b600c6020526000908152604090205460ff1681565b348015610f5057600080fd5b5061051c610f5f3660046151b7565b612705565b348015610f7057600080fd5b506105c360145481565b348015610f8657600080fd5b506105f1610f95366004615209565b61278b565b348015610fa657600080fd5b506105f16127c4565b348015610fbb57600080fd5b506105c3601e5481565b348015610fd157600080fd5b50610546610fe0366004614c2f565b61295b565b348015610ff157600080fd5b506105c360265481565b34801561100757600080fd5b506105f1611016366004614c2f565b61298c565b34801561102757600080fd5b506105f1612af9565b34801561103c57600080fd5b506105f161104b366004614c64565b612b78565b34801561105c57600080fd5b506105c360245481565b34801561107257600080fd5b50601d54610573906001600160a01b031681565b34801561109257600080fd5b5061051c6110a1366004615284565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156110db57600080fd5b506105c360195481565b3480156110f157600080fd5b506105f1611100366004614d4a565b612b9e565b34801561111157600080fd5b506105f1611120366004614c2f565b612c36565b34801561113157600080fd5b50602154610573906001600160a01b031681565b34801561115157600080fd5b506105c360015481565b34801561116757600080fd5b506105c360185481565b34801561117d57600080fd5b506105c36000805160206155f383398151915281565b34801561119f57600080fd5b506105c360125481565b6105f16111b7366004614cf6565b612c94565b6105f16111ca366004614d2f565b612ccb565b3480156111db57600080fd5b506105f1612f12565b60006001600160e01b031982166360e46a6b60e11b1480611209575061120982612fa5565b92915050565b60606003805461121e906152ae565b80601f016020809104026020016040519081016040528092919081815260200182805461124a906152ae565b80156112975780601f1061126c57610100808354040283529160200191611297565b820191906000526020600020905b81548152906001019060200180831161127a57829003601f168201915b5050505050905090565b60006112ac82612fca565b6112c9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000818152600560205260409020546001600160a01b039081169083168114156113225760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590611342575061134081336110a1565b155b15611360576040516367d9dca160e11b815260040160405180910390fd5b61136b838383613009565b505050565b6113886000805160206155f38339815191523361207e565b806113ac5750336113a16009546001600160a01b031690565b6001600160a01b0316145b6113c95760405163683b4ec760e11b815260040160405180910390fd5b60278190556113d6613065565b50565b6000818152600d60205260409020541561140657604051630e620e2360e01b815260040160405180910390fd5b61136b838383613087565b61141a81612fca565b611437576040516307ed98ed60e31b815260040160405180910390fd5b6113d681613092565b601b602052816000526040600020818154811061145c57600080fd5b6000918252602090912001546001600160801b038082169350600160801b90910416905082565b61149b6000805160206155f38339815191523361207e565b806114bf5750336114b46009546001600160a01b031690565b6001600160a01b0316145b6114dc5760405163683b4ec760e11b815260040160405180910390fd5b6001600160401b0316601e55565b60008281526010602052604090206001015461150681336131d2565b61136b8383613236565b6115286000805160206155f38339815191523361207e565b8061154c5750336115416009546001600160a01b031690565b6001600160a01b0316145b6115695760405163683b4ec760e11b815260040160405180910390fd5b602180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152601b60209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561160c57600084815260209081902060408051808201909152908401546001600160801b038082168352600160801b90910416818301528252600190920191016115c3565b505050509050919050565b6001600160a01b038116331461168c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61169682826132bc565b5050565b6116b26000805160206155f38339815191523361207e565b806116d65750336116cb6009546001600160a01b031690565b6001600160a01b0316145b6116f35760405163683b4ec760e11b815260040160405180910390fd5b602a805467ffffffffffffffff19166001600160401b0392909216919091179055565b61172e6000805160206155f38339815191523361207e565b806117525750336117476009546001600160a01b031690565b6001600160a01b0316145b61176f5760405163683b4ec760e11b815260040160405180910390fd5b60215460405147916001600160a01b031690600090829084908381818185875af1925050503d80600081146117c0576040519150601f19603f3d011682016040523d82523d6000602084013e6117c5565b606091505b5050809150508061136b57604051631cf13a3560e21b815260040160405180910390fd5b6117f281612fca565b61180f576040516307ed98ed60e31b815260040160405180910390fd5b6113d681613323565b61136b8383836040518060200160405280600081525061278b565b33803b9063ffffffff82161561185c57604051637df1f81760e01b815260040160405180910390fd5b6002601154141561187f5760405162461bcd60e51b8152600401611683906152e9565b600260115561189c6000805160206155f38339815191523361207e565b806118c05750336118b56009546001600160a01b031690565b6001600160a01b0316145b6118dd5760405163683b4ec760e11b815260040160405180910390fd5b602554600054600154036118f19085615336565b11156119105760405163d05cb60960e01b815260040160405180910390fd5b600061191a6134c0565b905060005b84811015611954576119428661193d6119388486615336565b613549565b6135f0565b8061194c8161534e565b91505061191f565b5050600160115550505050565b6119796000805160206155f38339815191523361207e565b8061199d5750336119926009546001600160a01b031690565b6001600160a01b0316145b6119ba5760405163683b4ec760e11b815260040160405180910390fd5b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314611a065760405162461bcd60e51b815260040161168390615369565b601a5460ff1615611a595760405162461bcd60e51b815260206004820152601d60248201527f444120646174612068617320616c7265616479206265656e207365742e0000006044820152606401611683565b601296909655601394909455601492909255601555601655601755601955601a805460ff19166001179055565b60606000611a9383611c71565b6001600160401b03811115611aaa57611aaa614e61565b604051908082528060200260200182016040528015611ad3578160200160208202803683370190505b509050600060015b602654602554611aeb919061539e565b8111611b51576000818152600560205260409020546001600160a01b0386811691161415611b3f5780838381518110611b2657611b266153b5565b602090810291909101015281611b3b8161534e565b9250505b80611b498161534e565b915050611adb565b50909392505050565b6009546001600160a01b03163314611b845760405162461bcd60e51b815260040161168390615369565b6000858152600a602052604090208054610100900460ff1615611bba576040516301ee81b760e51b815260040160405180910390fd5b6040805160a081018252861515815260016020808301828152881515848601908152881515606086019081526080860189815260008e8152600a8652979097208651815494519351925161ffff1990951690151561ff00191617610100931515939093029290921763ffff00001916620100009115159190910263ff00000019161763010000009215159290920291909117815593518051939493611c66938501929190910190614af8565b505050505050505050565b60006001600160a01b038216611c9a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6009546001600160a01b03163314611ce95760405162461bcd60e51b815260040161168390615369565b611cf3600061371b565b565b611d0d6000805160206155f38339815191523361207e565b80611d31575033611d266009546001600160a01b031690565b6001600160a01b0316145b611d4e5760405163683b4ec760e11b815260040160405180910390fd5b602255565b80516001600160401b03166000908152600560205260409020546001600160a01b03163314611daf5760405162461bcd60e51b81526020600482015260086024820152672737ba27bbb732b960c11b6044820152606401611683565b611dbb8484848461376d565b50505050565b33803b9063ffffffff821615611dea57604051637df1f81760e01b815260040160405180910390fd5b60026011541415611e0d5760405162461bcd60e51b8152600401611683906152e9565b6002601155611e2b60ff8416611e266000546001540390565b613b11565b6000611e356134c0565b905060005b8460ff16811015611e6857611e563361193d6119388486615336565b80611e608161534e565b915050611e3a565b50506001601155505050565b611e8c6000805160206155f38339815191523361207e565b80611eb0575033611ea56009546001600160a01b031690565b6001600160a01b0316145b611ecd5760405163683b4ec760e11b815260040160405180910390fd5b601a54610100900460ff1615611f385760405162461bcd60e51b815260206004820152602a60248201527f496e697469616c2066756e6473206861766520616c7265616479206265656e206044820152693bb4ba34323930bbb71760b11b6064820152608401611683565b600060185411611f815760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b6044820152606401611683565b6000601854601954611f9391906153cb565b601a805461ff0019166101001790556021546040519192506000916001600160a01b039091169083905b60006040518083038185875af1925050503d8060008114611ffa576040519150601f19603f3d011682016040523d82523d6000602084013e611fff565b606091505b50509050806116965760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401611683565b600061204d82612fca565b61206a576040516307ed98ed60e31b815260040160405180910390fd5b6000828152600b6020526040902054611209565b60009182526010602090815260408084206001600160a01b0393909316845291905290205460ff1690565b604080516060810182526000808252602082018190529181019190915261120982613d52565b6120d882612fca565b6120f5576040516307ed98ed60e31b815260040160405180910390fd5b6116968282613db9565b60606004805461121e906152ae565b60006016544210156121585760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401611683565b60185415612167575060185490565b600060165442612177919061539e565b90506000601554826121899190615400565b905060006014548261219b91906153cb565b90506013546012546121ad919061539e565b81106121be57601354935050505090565b806012546121cc919061539e565b935050505090565b6001600160a01b0382163314156121fe5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6122826000805160206155f38339815191523361207e565b806122a657503361229b6009546001600160a01b031690565b6001600160a01b0316145b6122c35760405163683b4ec760e11b815260040160405180910390fd5b60268190556113d6613065565b33803b9063ffffffff8216156122f957604051637df1f81760e01b815260040160405180910390fd5b6002601154141561231c5760405162461bcd60e51b8152600401611683906152e9565b6002601155602a54426001600160401b03909116111561234f576040516316851a3760e11b815260040160405180910390fd5b602a54600160401b900460ff16612379576040516316851a3760e11b815260040160405180910390fd5b602654602554612389919061539e565b6000546001540314156123af5760405163d05cb60960e01b815260040160405180910390fd5b6123ba338585612705565b6123d7576040516309bde33960e01b815260040160405180910390fd5b602a54336000908152600660205260409020546001600160401b03918216600160801b909104909116101561243857336000908152600660205260409020805477ffffffffffffffff0000000000000000ffffffffffffffff169055612479565b33600090815260066020526040902054600160c01b90046001600160401b03166001141561247957604051630c398d6560e41b815260040160405180910390fd5b6124883361193d6119386134c0565b33600090815260066020526040902080546001600160c01b0316600160c01b1790556023546124b690613f6c565b505060016011555050565b6124d96000805160206155f38339815191523361207e565b806124fd5750336124f26009546001600160a01b031690565b6001600160a01b0316145b61251a5760405163683b4ec760e11b815260040160405180910390fd5b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b031633146125665760405162461bcd60e51b815260040161168390615369565b82811461259f5760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401611683565b60005b83811015612636578282828181106125bc576125bc6153b5565b90506020020160208101906125d19190615414565b600c60008787858181106125e7576125e76153b5565b90506020020160208101906125fc9190614d4a565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061262e8161534e565b9150506125a2565b5050505050565b600a602052600090815260409020805460018201805460ff808416946101008504821694620100008104831694630100000090910490921692909190612682906152ae565b80601f01602080910402602001604051908101604052809291908181526020018280546126ae906152ae565b80156126fb5780601f106126d0576101008083540402835291602001916126fb565b820191906000526020600020905b8154815290600101906020018083116126de57829003601f168201915b5050505050905085565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050612782848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506022549150849050613fcb565b95945050505050565b6000828152600d6020526040902054156127b857604051630e620e2360e01b815260040160405180910390fd5b611dbb84848484613fe1565b6000601854116128165760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f766572210000000000006044820152606401611683565b336000908152601b60205260408120545b801561292d57601854336000908152601b6020526040812090919061284d60018561539e565b8154811061285d5761285d6153b5565b6000918252602090912001546128839190600160801b90046001600160801b03166153cb565b336000908152601b602052604081209192509082906128a360018661539e565b815481106128b3576128b36153b5565b6000918252602090912001546128d291906001600160801b031661539e565b336000908152601b60205260409020805491925090806128f4576128f461542f565b6000828152602081208201600019908101919091550190556129168185615336565b93505050808061292590615445565b915050612827565b50604051339082156108fc029083906000818181858888f19350505050158015611696573d6000803e3d6000fd5b606061296682612fca565b612983576040516307ed98ed60e31b815260040160405180910390fd5b6112098261402c565b6009546001600160a01b031633146129b65760405162461bcd60e51b815260040161168390615369565b6000818152600a60209081526040808320815160a081018352815460ff80821615158352610100820481161515958301959095526201000081048516151593820193909352630100000090920490921615156060820152600182018054919291608084019190612a25906152ae565b80601f0160208091040260200160405190810160405280929190818152602001828054612a51906152ae565b8015612a9e5780601f10612a7357610100808354040283529160200191612a9e565b820191906000526020600020905b815481529060010190602001808311612a8157829003601f168201915b505050505081525050905080600001518015612abb575080604001515b15612ad95760405163ab47bcbb60e01b815260040160405180910390fd5b516000918252600a6020526040909120805460ff19169115919091179055565b612b116000805160206155f38339815191523361207e565b80612b35575033612b2a6009546001600160a01b031690565b6001600160a01b0316145b612b525760405163683b4ec760e11b815260040160405180910390fd5b602a805468ff0000000000000000198116600160401b9182900460ff1615909102179055565b600082815260106020526040902060010154612b9481336131d2565b61136b83836132bc565b6009546001600160a01b03163314612bc85760405162461bcd60e51b815260040161168390615369565b6001600160a01b038116612c2d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611683565b6113d68161371b565b612c4e6000805160206155f38339815191523361207e565b80612c72575033612c676009546001600160a01b031690565b6001600160a01b0316145b612c8f5760405163683b4ec760e11b815260040160405180910390fd5b602355565b6000818152600d602052604090205415612cc157604051630e620e2360e01b815260040160405180910390fd5b611696828261416a565b33803b9063ffffffff821615612cf457604051637df1f81760e01b815260040160405180910390fd5b60026011541415612d175760405162461bcd60e51b8152600401611683906152e9565b6002601155602a54426001600160401b039091161115612d4a576040516316851a3760e11b815260040160405180910390fd5b602a54600160401b900460ff16612d74576040516316851a3760e11b815260040160405180910390fd5b60008054600154602a543384526006602052604090932054919003916001600160401b03908116600160801b909204161015612dd857336000908152600660205260409020805477ffffffffffffffff0000000000000000ffffffffffffffff1690555b602954846001600160401b031660285483612df3919061539e565b612dfd9190615336565b1115612e1c57604051630c398d6560e41b815260040160405180910390fd5b6001600160401b038416612e435760405163199f5a0360e31b815260040160405180910390fd5b602454336000908152600660205260409020546001600160401b03600160c01b8204811691612e7b91600160401b909104168761545c565b612e859190615487565b6001600160401b03161115612ead57604051630c398d6560e41b815260040160405180910390fd5b50600080612eb96134c0565b905060005b856001600160401b0316811015612ef257612ee03361193d6119388486615336565b80612eea8161534e565b915050612ebe565b50611e68602354866001600160401b0316612f0d91906153cb565b613f6c565b612f2a6000805160206155f38339815191523361207e565b80612f4e575033612f436009546001600160a01b031690565b6001600160a01b0316145b612f6b5760405163683b4ec760e11b815260040160405180910390fd5b601654612f7b9062093a80615336565b421015612f8757600080fd5b60215460405147916000916001600160a01b03909116908390611fbd565b60006001600160e01b03198216637965db0b60e01b1480611209575061120982614422565b6000818152600560205260408120546001600160a01b031615801590611209575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b602654602754602554613078919061539e565b613082919061539e565b602955565b61136b838383614472565b336000908152600c602052604090205460ff166130c15760405162461bcd60e51b8152600401611683906154af565b6000818152600f60209081526040808320338452909152902054156131285760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401611683565b6000818152600d6020526040812054613142906001615336565b6000838152600e60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600f83528184209084528252808320849055858352600d909152812080549293509061319c8361534e565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b6131dc828261207e565b611696576131f4816001600160a01b03166014614662565b6131ff836020614662565b6040516020016132109291906154da565b60408051601f198184030181529082905262461bcd60e51b825261168391600401614c1c565b613240828261207e565b6116965760008281526010602090815260408083206001600160a01b03851684529091529020805460ff191660011790556132783390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6132c6828261207e565b156116965760008281526010602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b336000908152600c602052604090205460ff166133525760405162461bcd60e51b8152600401611683906154af565b6000818152600f60209081526040808320338452909152902054806133b95760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401611683565b6000828152600d602052604090205481811461342f576000838152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600f83528184209084529091529020829055613457565b6000838152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600f602090815260408083203384528252808320839055858352600d909152812080549161348983615445565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b600033414445426134d46000546001540390565b6134df60014361539e565b6040516bffffffffffffffffffffffff19606098891b811660208301529690971b909516603487015260488601939093526068850191909152608884015260a88301524060c882015260e8016040516020818303038152906040528051906020012060001c905090565b60008060015460265460255461355f919061539e565b613569919061539e565b90506000613577828561554f565b6000838152602b602052604080822054838352908220549293509161359d5750816135ae565b506000828152602b60205260409020545b816135c9576000838152602b602052604090208490556135db565b6000838152602b602052604090208290555b6135e6600182615336565b9695505050505050565b6001600160a01b03821661361657604051622e076360e81b815260040160405180910390fd5b6001600160401b03811661363d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038216600081815260066020908152604080832080546001600160801b0319811660016001600160401b0380841682018116928317600160401b67ffffffffffffffff19909516909317849004811690910181169092021767ffffffffffffffff60801b1916600160801b428316908102919091179092558616808552600590935281842080546001600160e01b0319168617600160a01b90920291909117905551909291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a460018054810190555050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601c546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156137b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137d99190615563565b601e5411156137fb576040516328663cc760e01b815260040160405180910390fd5b601c54604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015613849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061386d9190615563565b601e54111561388f576040516328663cc760e01b815260040160405180910390fd5b601c54601e546040516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156138e557600080fd5b505af11580156138f9573d6000803e3d6000fd5b505050506000601f5461390b83614804565b60405161190160f01b60208201526022810192909252604282015260620160408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa158015613994573d6000803e3d6000fd5b5050604051601f190151601d549092506001600160a01b0380841691161490506139d157604051638baa579f60e01b815260040160405180910390fd5b6001600160a01b0381166139f85760405163f645eedf60e01b815260040160405180910390fd5b60608301516001600160a01b03163314613a255760405163fad13b2b60e01b815260040160405180910390fd5b60208084015184516001600160401b039081166000908152928052604090922054908216600160401b9091049091161115613a735760405163e66d043f60e01b815260040160405180910390fd5b613b098380516001600160401b03908116600090815260208080526040918290208451815492860151938601518516600160801b0267ffffffffffffffff60801b19948616600160401b026001600160801b031990941691909516179190911791909116919091178155606090910151600190910180546001600160a01b039092166001600160a01b0319909216919091179055565b505050505050565b601a5460ff16613b595760405162461bcd60e51b815260206004820152601360248201527211104819185d18481b9bdd081cd95d081e595d606a1b6044820152606401611683565b6000613b6361210e565b9050613b78816001600160801b0385166153cb565b341015613bc75760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e00000000000000006044820152606401611683565b6000836001600160801b0316118015613beb5750601754836001600160801b031611155b613c2d5760405162461bcd60e51b8152602060048201526013602482015272496e636f7272656374207175616e746974792160681b6044820152606401611683565b601654421015613c755760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401611683565b601954613c8b6001600160801b03851684615336565b1115613cd95760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f722044412072656163686564210000000000006044820152606401611683565b601954613cef6001600160801b03851684615336565b1415613cfb5760188190555b5050336000908152601b6020908152604080832081518083019092526001600160801b033481168352948516828401908152815460018101835591855292909320905191518416600160801b029190931617910155565b604080516060808201835260008083526020808401829052928401819052938452600582529282902082519384018352546001600160a01b0381168452600160a01b81046001600160401b031691840191909152600160e01b900460ff1615159082015290565b6001600160a01b0381166000908152600c602052604090205460ff1615613df25760405162461bcd60e51b8152600401611683906154af565b6000828152600f602090815260408083206001600160a01b038516845290915290205480613e525760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401611683565b6000838152600d6020526040902054818114613ec8576000848152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600f83528184209084529091529020829055613ef0565b6000848152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600f602090815260408083206001600160a01b03871684528252808320839055868352600d9091528120805491613f2b83615445565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b80341015613f8d57604051632c1d501360e11b815260040160405180910390fd5b803411156113d657336108fc613fa3833461539e565b6040518115909202916000818181858888f19350505050158015611696573d6000803e3d6000fd5b600082613fd8858461489e565b14949350505050565b613fec848484614472565b6001600160a01b0383163b1515801561400e575061400c84848484614912565b155b15611dbb576040516368d2bf6b60e11b815260040160405180910390fd5b6000818152600b6020908152604080832054808452600a8352818420825160a081018452815460ff808216151583526101008204811615159683019690965262010000810486161515948201949094526301000000909304909316151560608381019190915260018401805491959294929392916080840191906140af906152ae565b80601f01602080910402602001604051908101604052809291908181526020018280546140db906152ae565b80156141285780601f106140fd57610100808354040283529160200191614128565b820191906000526020600020905b81548152906001019060200180831161410b57829003601f168201915b50505050508152505090508060800151614141856149fb565b60405160200161415292919061557c565b60405160208183030381529060405292505050919050565b6000818152600b60205260409020548281141561419a5760405163f54bd87b60e01b815260040160405180910390fd5b6000838152600a60209081526040808320815160a081018352815460ff80821615158352610100820481161515958301959095526201000081048516151593820193909352630100000090920490921615156060820152600182018054919291608084019190614209906152ae565b80601f0160208091040260200160405190810160405280929190818152602001828054614235906152ae565b80156142825780601f1061425757610100808354040283529160200191614282565b820191906000526020600020905b81548152906001019060200180831161426557829003601f168201915b505050505081525050905080600001516142af576040516349225c6d60e11b815260040160405180910390fd5b6000828152600a60209081526040808320815160a081018352815460ff8082161515835261010082048116151595830195909552620100008104851615159382019390935263010000009092049092161515606082015260018201805491929160808401919061431e906152ae565b80601f016020809104026020016040519081016040528092919081815260200182805461434a906152ae565b80156143975780601f1061436c57610100808354040283529160200191614397565b820191906000526020600020905b81548152906001019060200180831161437a57829003601f168201915b5050505050815250509050806060015180156143b257508285105b156143d0576040516327f2a5f360e01b815260040160405180910390fd5b6000848152600b602090815260409182902087905581518781529081018690527f60167bfed1f9fd83e5c4abb0501220bbb9a4f3b6594708901bd0dd18fba3234b910160405180910390a15050505050565b60006001600160e01b031982166380ac58cd60e01b148061445357506001600160e01b03198216635b5e139f60e01b145b8061120957506301ffc9a760e01b6001600160e01b0319831614611209565b600061447d82613d52565b9050836001600160a01b031681600001516001600160a01b0316146144b45760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806144d257506144d285336110a1565b806144ed5750336144e2846112a1565b6001600160a01b0316145b90508061450d57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661453457604051633a954ecd60e21b815260040160405180910390fd5b61454060008487613009565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116614619576145e386612fca565b1561461957805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612636565b606060006146718360026153cb565b61467c906002615336565b6001600160401b0381111561469357614693614e61565b6040519080825280601f01601f1916602001820160405280156146bd576020820181803683370190505b509050600360fc1b816000815181106146d8576146d86153b5565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614707576147076153b5565b60200101906001600160f81b031916908160001a905350600061472b8460026153cb565b614736906001615336565b90505b60018111156147ae576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061476a5761476a6153b5565b1a60f81b828281518110614780576147806153b5565b60200101906001600160f81b031916908160001a90535060049490941c936147a781615445565b9050614739565b5083156147fd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401611683565b9392505050565b60007ffcc65f86083f3bc8bfaa9b55cb7a062f3cb94d16d19d31e00f2ef2197411a55782600001518360200151846040015185606001516040516020016148819594939291909485526001600160401b039384166020860152918316604085015290911660608301526001600160a01b0316608082015260a00190565b604051602081830303815290604052805190602001209050919050565b600081815b845181101561490a5760008582815181106148c0576148c06153b5565b602002602001015190508083116148e657600083815260208290526040902092506148f7565b600081815260208490526040902092505b50806149028161534e565b9150506148a3565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906149479033908990889088906004016155a2565b6020604051808303816000875af1925050508015614982575060408051601f3d908101601f1916820190925261497f918101906155d5565b60015b6149dd573d8080156149b0576040519150601f19603f3d011682016040523d82523d6000602084013e6149b5565b606091505b5080516149d5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081614a1f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115614a495780614a338161534e565b9150614a429050600a83615400565b9150614a23565b6000816001600160401b03811115614a6357614a63614e61565b6040519080825280601f01601f191660200182016040528015614a8d576020820181803683370190505b5090505b84156149f357614aa260018361539e565b9150614aaf600a8661554f565b614aba906030615336565b60f81b818381518110614acf57614acf6153b5565b60200101906001600160f81b031916908160001a905350614af1600a86615400565b9450614a91565b828054614b04906152ae565b90600052602060002090601f016020900481019282614b265760008555614b6c565b82601f10614b3f57805160ff1916838001178555614b6c565b82800160010185558215614b6c579182015b82811115614b6c578251825591602001919060010190614b51565b50614b78929150614b7c565b5090565b5b80821115614b785760008155600101614b7d565b6001600160e01b0319811681146113d657600080fd5b600060208284031215614bb957600080fd5b81356147fd81614b91565b60005b83811015614bdf578181015183820152602001614bc7565b83811115611dbb5750506000910152565b60008151808452614c08816020860160208601614bc4565b601f01601f19169290920160200192915050565b6020815260006147fd6020830184614bf0565b600060208284031215614c4157600080fd5b5035919050565b80356001600160a01b0381168114614c5f57600080fd5b919050565b60008060408385031215614c7757600080fd5b82359150614c8760208401614c48565b90509250929050565b60008060408385031215614ca357600080fd5b614cac83614c48565b946020939093013593505050565b600080600060608486031215614ccf57600080fd5b614cd884614c48565b9250614ce660208501614c48565b9150604084013590509250925092565b60008060408385031215614d0957600080fd5b50508035926020909101359150565b80356001600160401b0381168114614c5f57600080fd5b600060208284031215614d4157600080fd5b6147fd82614d18565b600060208284031215614d5c57600080fd5b6147fd82614c48565b602080825282518282018190526000919060409081850190868401855b82811015614db457815180516001600160801b0390811686529087015116868501529284019290850190600101614d82565b5091979650505050505050565b600080600080600080600060e0888a031215614ddc57600080fd5b505085359760208701359750604087013596606081013596506080810135955060a0810135945060c0013592509050565b6020808252825182820181905260009190848201906040850190845b81811015614e4557835183529284019291840191600101614e29565b50909695505050505050565b80358015158114614c5f57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115614e9157614e91614e61565b604051601f8501601f19908116603f01168101908282118183101715614eb957614eb9614e61565b81604052809350858152868686011115614ed257600080fd5b858560208301376000602087830101525050509392505050565b600080600080600060a08688031215614f0457600080fd5b85359450614f1460208701614e51565b9350614f2260408701614e51565b9250614f3060608701614e51565b915060808601356001600160401b03811115614f4b57600080fd5b8601601f81018813614f5c57600080fd5b614f6b88823560208401614e77565b9150509295509295909350565b803560ff81168114614c5f57600080fd5b60008060008084860360e0811215614fa057600080fd5b614fa986614f78565b945060208601359350604086013592506080605f1982011215614fcb57600080fd5b50604051608081018181106001600160401b0382111715614fee57614fee614e61565b604052614ffd60608701614d18565b815261500b60808701614d18565b602082015261501c60a08701614d18565b604082015261502d60c08701614c48565b6060820152939692955090935050565b60006020828403121561504f57600080fd5b6147fd82614f78565b6000806040838503121561506b57600080fd5b61507483614c48565b9150614c8760208401614e51565b60008083601f84011261509457600080fd5b5081356001600160401b038111156150ab57600080fd5b6020830191508360208260051b85010111156150c657600080fd5b9250929050565b600080602083850312156150e057600080fd5b82356001600160401b038111156150f657600080fd5b61510285828601615082565b90969095509350505050565b6000806000806040858703121561512457600080fd5b84356001600160401b038082111561513b57600080fd5b61514788838901615082565b9096509450602087013591508082111561516057600080fd5b5061516d87828801615082565b95989497509550505050565b851515815284151560208201528315156040820152821515606082015260a0608082015260006151ac60a0830184614bf0565b979650505050505050565b6000806000604084860312156151cc57600080fd5b6151d584614c48565b925060208401356001600160401b038111156151f057600080fd5b6151fc86828701615082565b9497909650939450505050565b6000806000806080858703121561521f57600080fd5b61522885614c48565b935061523660208601614c48565b92506040850135915060608501356001600160401b0381111561525857600080fd5b8501601f8101871361526957600080fd5b61527887823560208401614e77565b91505092959194509250565b6000806040838503121561529757600080fd5b6152a083614c48565b9150614c8760208401614c48565b600181811c908216806152c257607f821691505b602082108114156152e357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561534957615349615320565b500190565b600060001982141561536257615362615320565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000828210156153b0576153b0615320565b500390565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156153e5576153e5615320565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261540f5761540f6153ea565b500490565b60006020828403121561542657600080fd5b6147fd82614e51565b634e487b7160e01b600052603160045260246000fd5b60008161545457615454615320565b506000190190565b60006001600160401b0380831681851680830382111561547e5761547e615320565b01949350505050565b60006001600160401b03838116908316818110156154a7576154a7615320565b039392505050565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615512816017850160208801614bc4565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615543816028840160208801614bc4565b01602801949350505050565b60008261555e5761555e6153ea565b500690565b60006020828403121561557557600080fd5b5051919050565b6000835161558e818460208801614bc4565b83519083019061547e818360208801614bc4565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135e690830184614bf0565b6000602082840312156155e757600080fd5b81516147fd81614b9156fe97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929a2646970667358221220771b8d59c335e4556e693d904190a4500d2f94f9d87f1f91168a5975f829eadc64736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d52384e5533684a796b6e536262706366765354736d66334a7058626a656b6a6b41525a57453539733962346e2f00000000000000000000
Deployed Bytecode
0x6080604052600436106104f75760003560e01c806378e979251161028c578063b81293711161015a578063e985e9c5116100cc578063f5998ed811610085578063f5998ed81461115b578063f5b541a614611171578063f89d2e4d14611193578063fb37df76146111a9578063fb9d09c8146111bc578063fc6bbba5146111cf57600080fd5b8063e985e9c514611086578063ea18dc5c146110cf578063f2fde38b146110e5578063f4a0a52814611105578063f4c5f7db14611125578063f526afe01461114557600080fd5b8063ca5c7b911161011e578063ca5c7b9114610fe5578063d1b72daf14610ffb578063d3dd5fe01461101b578063d547741f14611030578063dfb1b54514611050578063e91f9e291461106657600080fd5b8063b812937114610f64578063b88d4fde14610f7a578063b9765a1f14610f9a578063c421ebc614610faf578063c87b56dd14610fc557600080fd5b806397f65c08116101fe578063aaab1ba5116101b7578063aaab1ba514610e90578063ab93099b14610ea3578063ac52e64414610ec3578063ad8b0e9414610ee3578063b1a6505f14610f14578063b76a0df414610f4457600080fd5b806397f65c0814610dfa578063996e52b514610e105780639d1b464a14610e26578063a217fddf14610e3b578063a22cb46514610e50578063a278519914610e7057600080fd5b80638f820be5116102505780638f820be514610d1a57806391785e6d14610d2f57806391d1485414610d4f5780639231ab2a14610d6f57806394d216d614610dc557806395d89b4114610de557600080fd5b806378e9792514610c715780637cb6475914610ca95780637d6dc62714610cc957806383e6848d14610ce95780638da5cb5b14610cfc57600080fd5b806333ea51a8116103c957806354bdfa061161033b578063650b00f6116102f4578063650b00f614610bb55780636817c76c14610be257806370a0823114610bf8578063715018a614610c1857806372abc8b714610c2d57806378615c3214610c5b57600080fd5b806354bdfa0614610ae65780635ca8518a14610b065780635de6dc5514610b1c5780635e84d72314610b4957806361de16f514610b5f5780636352211e14610b7f57600080fd5b806340a9c8df1161038d57806340a9c8df14610a3057806342842e0e14610a5057806342ba828814610a7057806344d19d2b14610a90578063484b973c14610aa657806349e2921b14610ac657600080fd5b806333ea51a81461098e578063356f0147146109ae57806336568abe146109db57806338812e58146109fb5780633ccfd60b14610a1b57600080fd5b806323b872dd1161046d5780632cba8123116104265780632cba81231461084a5780632def58001461088b5780632eb4a7ab146108ab5780632ee691a3146108c15780632f2ff15d1461095857806332cb6b0c1461097857600080fd5b806323b872dd14610763578063248a9ca31461078357806325fd90f3146107b3578063266dab34146107d45780632799cde0146107ea5780632b4519fb1461080a57600080fd5b80630e1af57b116104bf5780630e1af57b146105f357806318160ddd146106db5780631cbf6c50146106f45780631e13f86b1461070e578063204e656b1461072e57806322f4596f1461074d57600080fd5b806301ffc9a7146104fc57806306fdde0314610531578063081812fc1461055357806309308e5d1461058b578063095ea7b3146105d1575b600080fd5b34801561050857600080fd5b5061051c610517366004614ba7565b6111e4565b60405190151581526020015b60405180910390f35b34801561053d57600080fd5b5061054661120f565b6040516105289190614c1c565b34801561055f57600080fd5b5061057361056e366004614c2f565b6112a1565b6040516001600160a01b039091168152602001610528565b34801561059757600080fd5b506105c36105a6366004614c64565b600f60209081526000928352604080842090915290825290205481565b604051908152602001610528565b3480156105dd57600080fd5b506105f16105ec366004614c90565b6112e5565b005b3480156105ff57600080fd5b5061069261060e366004614c2f565b6040805160808101825260008082526020820181905291810182905260608101919091525060009081526020808052604091829020825160808101845281546001600160401b038082168352600160401b8204811694830194909452600160801b9004909216928201929092526001909101546001600160a01b0316606082015290565b6040805182516001600160401b0390811682526020808501518216908301528383015116918101919091526060918201516001600160a01b031691810191909152608001610528565b3480156106e757600080fd5b50600054600154036105c3565b34801561070057600080fd5b50601a5461051c9060ff1681565b34801561071a57600080fd5b506105f1610729366004614c2f565b611370565b34801561073a57600080fd5b50601a5461051c90610100900460ff1681565b34801561075957600080fd5b506105c360025481565b34801561076f57600080fd5b506105f161077e366004614cba565b6113d9565b34801561078f57600080fd5b506105c361079e366004614c2f565b60009081526010602052604090206001015490565b3480156107bf57600080fd5b50602a5461051c90600160401b900460ff1681565b3480156107e057600080fd5b506105c360285481565b3480156107f657600080fd5b506105f1610805366004614c2f565b611411565b34801561081657600080fd5b5061082a610825366004614c90565b611440565b604080516001600160801b03938416815292909116602083015201610528565b34801561085657600080fd5b50610573610865366004614cf6565b600e6020908152600092835260408084209091529082529020546001600160a01b031681565b34801561089757600080fd5b506105f16108a6366004614d2f565b611483565b3480156108b757600080fd5b506105c360225481565b3480156108cd57600080fd5b5061091f6108dc366004614c2f565b6020805260009081526040902080546001909101546001600160401b0380831692600160401b8104821692600160801b909104909116906001600160a01b031684565b604080516001600160401b039586168152938516602085015291909316908201526001600160a01b039091166060820152608001610528565b34801561096457600080fd5b506105f1610973366004614c64565b6114ea565b34801561098457600080fd5b506105c360255481565b34801561099a57600080fd5b506105f16109a9366004614d4a565b611510565b3480156109ba57600080fd5b506109ce6109c9366004614d4a565b61158b565b6040516105289190614d65565b3480156109e757600080fd5b506105f16109f6366004614c64565b611617565b348015610a0757600080fd5b506105f1610a16366004614d2f565b61169a565b348015610a2757600080fd5b506105f1611716565b348015610a3c57600080fd5b506105f1610a4b366004614c2f565b6117e9565b348015610a5c57600080fd5b506105f1610a6b366004614cba565b611818565b348015610a7c57600080fd5b50601c54610573906001600160a01b031681565b348015610a9c57600080fd5b506105c360275481565b348015610ab257600080fd5b506105f1610ac1366004614c90565b611833565b348015610ad257600080fd5b506105f1610ae1366004614d4a565b611961565b348015610af257600080fd5b506105f1610b01366004614dc1565b6119dc565b348015610b1257600080fd5b506105c360175481565b348015610b2857600080fd5b50610b3c610b37366004614d4a565b611a86565b6040516105289190614e0d565b348015610b5557600080fd5b506105c360295481565b348015610b6b57600080fd5b506105f1610b7a366004614eec565b611b5a565b348015610b8b57600080fd5b50610573610b9a366004614c2f565b6000908152600560205260409020546001600160a01b031690565b348015610bc157600080fd5b506105c3610bd0366004614c2f565b600d6020526000908152604090205481565b348015610bee57600080fd5b506105c360235481565b348015610c0457600080fd5b506105c3610c13366004614d4a565b611c71565b348015610c2457600080fd5b506105f1611cbf565b348015610c3957600080fd5b5061051c610c48366004614c2f565b6000908152600d60205260409020541590565b348015610c6757600080fd5b506105c360165481565b348015610c7d57600080fd5b50602a54610c91906001600160401b031681565b6040516001600160401b039091168152602001610528565b348015610cb557600080fd5b506105f1610cc4366004614c2f565b611cf5565b348015610cd557600080fd5b506105f1610ce4366004614f89565b611d53565b6105f1610cf736600461503d565b611dc1565b348015610d0857600080fd5b506009546001600160a01b0316610573565b348015610d2657600080fd5b506105f1611e74565b348015610d3b57600080fd5b506105c3610d4a366004614c2f565b612042565b348015610d5b57600080fd5b5061051c610d6a366004614c64565b61207e565b348015610d7b57600080fd5b50610d8f610d8a366004614c2f565b6120a9565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610528565b348015610dd157600080fd5b506105f1610de0366004614c64565b6120cf565b348015610df157600080fd5b506105466120ff565b348015610e0657600080fd5b506105c360135481565b348015610e1c57600080fd5b506105c360155481565b348015610e3257600080fd5b506105c361210e565b348015610e4757600080fd5b506105c3600081565b348015610e5c57600080fd5b506105f1610e6b366004615058565b6121d4565b348015610e7c57600080fd5b506105f1610e8b366004614c2f565b61226a565b6105f1610e9e3660046150cd565b6122d0565b348015610eaf57600080fd5b506105f1610ebe366004614d4a565b6124c1565b348015610ecf57600080fd5b506105f1610ede36600461510e565b61253c565b348015610eef57600080fd5b50610f03610efe366004614c2f565b61263d565b604051610528959493929190615179565b348015610f2057600080fd5b5061051c610f2f366004614d4a565b600c6020526000908152604090205460ff1681565b348015610f5057600080fd5b5061051c610f5f3660046151b7565b612705565b348015610f7057600080fd5b506105c360145481565b348015610f8657600080fd5b506105f1610f95366004615209565b61278b565b348015610fa657600080fd5b506105f16127c4565b348015610fbb57600080fd5b506105c3601e5481565b348015610fd157600080fd5b50610546610fe0366004614c2f565b61295b565b348015610ff157600080fd5b506105c360265481565b34801561100757600080fd5b506105f1611016366004614c2f565b61298c565b34801561102757600080fd5b506105f1612af9565b34801561103c57600080fd5b506105f161104b366004614c64565b612b78565b34801561105c57600080fd5b506105c360245481565b34801561107257600080fd5b50601d54610573906001600160a01b031681565b34801561109257600080fd5b5061051c6110a1366004615284565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156110db57600080fd5b506105c360195481565b3480156110f157600080fd5b506105f1611100366004614d4a565b612b9e565b34801561111157600080fd5b506105f1611120366004614c2f565b612c36565b34801561113157600080fd5b50602154610573906001600160a01b031681565b34801561115157600080fd5b506105c360015481565b34801561116757600080fd5b506105c360185481565b34801561117d57600080fd5b506105c36000805160206155f383398151915281565b34801561119f57600080fd5b506105c360125481565b6105f16111b7366004614cf6565b612c94565b6105f16111ca366004614d2f565b612ccb565b3480156111db57600080fd5b506105f1612f12565b60006001600160e01b031982166360e46a6b60e11b1480611209575061120982612fa5565b92915050565b60606003805461121e906152ae565b80601f016020809104026020016040519081016040528092919081815260200182805461124a906152ae565b80156112975780601f1061126c57610100808354040283529160200191611297565b820191906000526020600020905b81548152906001019060200180831161127a57829003601f168201915b5050505050905090565b60006112ac82612fca565b6112c9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000818152600560205260409020546001600160a01b039081169083168114156113225760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590611342575061134081336110a1565b155b15611360576040516367d9dca160e11b815260040160405180910390fd5b61136b838383613009565b505050565b6113886000805160206155f38339815191523361207e565b806113ac5750336113a16009546001600160a01b031690565b6001600160a01b0316145b6113c95760405163683b4ec760e11b815260040160405180910390fd5b60278190556113d6613065565b50565b6000818152600d60205260409020541561140657604051630e620e2360e01b815260040160405180910390fd5b61136b838383613087565b61141a81612fca565b611437576040516307ed98ed60e31b815260040160405180910390fd5b6113d681613092565b601b602052816000526040600020818154811061145c57600080fd5b6000918252602090912001546001600160801b038082169350600160801b90910416905082565b61149b6000805160206155f38339815191523361207e565b806114bf5750336114b46009546001600160a01b031690565b6001600160a01b0316145b6114dc5760405163683b4ec760e11b815260040160405180910390fd5b6001600160401b0316601e55565b60008281526010602052604090206001015461150681336131d2565b61136b8383613236565b6115286000805160206155f38339815191523361207e565b8061154c5750336115416009546001600160a01b031690565b6001600160a01b0316145b6115695760405163683b4ec760e11b815260040160405180910390fd5b602180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152601b60209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561160c57600084815260209081902060408051808201909152908401546001600160801b038082168352600160801b90910416818301528252600190920191016115c3565b505050509050919050565b6001600160a01b038116331461168c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61169682826132bc565b5050565b6116b26000805160206155f38339815191523361207e565b806116d65750336116cb6009546001600160a01b031690565b6001600160a01b0316145b6116f35760405163683b4ec760e11b815260040160405180910390fd5b602a805467ffffffffffffffff19166001600160401b0392909216919091179055565b61172e6000805160206155f38339815191523361207e565b806117525750336117476009546001600160a01b031690565b6001600160a01b0316145b61176f5760405163683b4ec760e11b815260040160405180910390fd5b60215460405147916001600160a01b031690600090829084908381818185875af1925050503d80600081146117c0576040519150601f19603f3d011682016040523d82523d6000602084013e6117c5565b606091505b5050809150508061136b57604051631cf13a3560e21b815260040160405180910390fd5b6117f281612fca565b61180f576040516307ed98ed60e31b815260040160405180910390fd5b6113d681613323565b61136b8383836040518060200160405280600081525061278b565b33803b9063ffffffff82161561185c57604051637df1f81760e01b815260040160405180910390fd5b6002601154141561187f5760405162461bcd60e51b8152600401611683906152e9565b600260115561189c6000805160206155f38339815191523361207e565b806118c05750336118b56009546001600160a01b031690565b6001600160a01b0316145b6118dd5760405163683b4ec760e11b815260040160405180910390fd5b602554600054600154036118f19085615336565b11156119105760405163d05cb60960e01b815260040160405180910390fd5b600061191a6134c0565b905060005b84811015611954576119428661193d6119388486615336565b613549565b6135f0565b8061194c8161534e565b91505061191f565b5050600160115550505050565b6119796000805160206155f38339815191523361207e565b8061199d5750336119926009546001600160a01b031690565b6001600160a01b0316145b6119ba5760405163683b4ec760e11b815260040160405180910390fd5b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314611a065760405162461bcd60e51b815260040161168390615369565b601a5460ff1615611a595760405162461bcd60e51b815260206004820152601d60248201527f444120646174612068617320616c7265616479206265656e207365742e0000006044820152606401611683565b601296909655601394909455601492909255601555601655601755601955601a805460ff19166001179055565b60606000611a9383611c71565b6001600160401b03811115611aaa57611aaa614e61565b604051908082528060200260200182016040528015611ad3578160200160208202803683370190505b509050600060015b602654602554611aeb919061539e565b8111611b51576000818152600560205260409020546001600160a01b0386811691161415611b3f5780838381518110611b2657611b266153b5565b602090810291909101015281611b3b8161534e565b9250505b80611b498161534e565b915050611adb565b50909392505050565b6009546001600160a01b03163314611b845760405162461bcd60e51b815260040161168390615369565b6000858152600a602052604090208054610100900460ff1615611bba576040516301ee81b760e51b815260040160405180910390fd5b6040805160a081018252861515815260016020808301828152881515848601908152881515606086019081526080860189815260008e8152600a8652979097208651815494519351925161ffff1990951690151561ff00191617610100931515939093029290921763ffff00001916620100009115159190910263ff00000019161763010000009215159290920291909117815593518051939493611c66938501929190910190614af8565b505050505050505050565b60006001600160a01b038216611c9a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6009546001600160a01b03163314611ce95760405162461bcd60e51b815260040161168390615369565b611cf3600061371b565b565b611d0d6000805160206155f38339815191523361207e565b80611d31575033611d266009546001600160a01b031690565b6001600160a01b0316145b611d4e5760405163683b4ec760e11b815260040160405180910390fd5b602255565b80516001600160401b03166000908152600560205260409020546001600160a01b03163314611daf5760405162461bcd60e51b81526020600482015260086024820152672737ba27bbb732b960c11b6044820152606401611683565b611dbb8484848461376d565b50505050565b33803b9063ffffffff821615611dea57604051637df1f81760e01b815260040160405180910390fd5b60026011541415611e0d5760405162461bcd60e51b8152600401611683906152e9565b6002601155611e2b60ff8416611e266000546001540390565b613b11565b6000611e356134c0565b905060005b8460ff16811015611e6857611e563361193d6119388486615336565b80611e608161534e565b915050611e3a565b50506001601155505050565b611e8c6000805160206155f38339815191523361207e565b80611eb0575033611ea56009546001600160a01b031690565b6001600160a01b0316145b611ecd5760405163683b4ec760e11b815260040160405180910390fd5b601a54610100900460ff1615611f385760405162461bcd60e51b815260206004820152602a60248201527f496e697469616c2066756e6473206861766520616c7265616479206265656e206044820152693bb4ba34323930bbb71760b11b6064820152608401611683565b600060185411611f815760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b6044820152606401611683565b6000601854601954611f9391906153cb565b601a805461ff0019166101001790556021546040519192506000916001600160a01b039091169083905b60006040518083038185875af1925050503d8060008114611ffa576040519150601f19603f3d011682016040523d82523d6000602084013e611fff565b606091505b50509050806116965760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401611683565b600061204d82612fca565b61206a576040516307ed98ed60e31b815260040160405180910390fd5b6000828152600b6020526040902054611209565b60009182526010602090815260408084206001600160a01b0393909316845291905290205460ff1690565b604080516060810182526000808252602082018190529181019190915261120982613d52565b6120d882612fca565b6120f5576040516307ed98ed60e31b815260040160405180910390fd5b6116968282613db9565b60606004805461121e906152ae565b60006016544210156121585760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401611683565b60185415612167575060185490565b600060165442612177919061539e565b90506000601554826121899190615400565b905060006014548261219b91906153cb565b90506013546012546121ad919061539e565b81106121be57601354935050505090565b806012546121cc919061539e565b935050505090565b6001600160a01b0382163314156121fe5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6122826000805160206155f38339815191523361207e565b806122a657503361229b6009546001600160a01b031690565b6001600160a01b0316145b6122c35760405163683b4ec760e11b815260040160405180910390fd5b60268190556113d6613065565b33803b9063ffffffff8216156122f957604051637df1f81760e01b815260040160405180910390fd5b6002601154141561231c5760405162461bcd60e51b8152600401611683906152e9565b6002601155602a54426001600160401b03909116111561234f576040516316851a3760e11b815260040160405180910390fd5b602a54600160401b900460ff16612379576040516316851a3760e11b815260040160405180910390fd5b602654602554612389919061539e565b6000546001540314156123af5760405163d05cb60960e01b815260040160405180910390fd5b6123ba338585612705565b6123d7576040516309bde33960e01b815260040160405180910390fd5b602a54336000908152600660205260409020546001600160401b03918216600160801b909104909116101561243857336000908152600660205260409020805477ffffffffffffffff0000000000000000ffffffffffffffff169055612479565b33600090815260066020526040902054600160c01b90046001600160401b03166001141561247957604051630c398d6560e41b815260040160405180910390fd5b6124883361193d6119386134c0565b33600090815260066020526040902080546001600160c01b0316600160c01b1790556023546124b690613f6c565b505060016011555050565b6124d96000805160206155f38339815191523361207e565b806124fd5750336124f26009546001600160a01b031690565b6001600160a01b0316145b61251a5760405163683b4ec760e11b815260040160405180910390fd5b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b031633146125665760405162461bcd60e51b815260040161168390615369565b82811461259f5760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401611683565b60005b83811015612636578282828181106125bc576125bc6153b5565b90506020020160208101906125d19190615414565b600c60008787858181106125e7576125e76153b5565b90506020020160208101906125fc9190614d4a565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061262e8161534e565b9150506125a2565b5050505050565b600a602052600090815260409020805460018201805460ff808416946101008504821694620100008104831694630100000090910490921692909190612682906152ae565b80601f01602080910402602001604051908101604052809291908181526020018280546126ae906152ae565b80156126fb5780601f106126d0576101008083540402835291602001916126fb565b820191906000526020600020905b8154815290600101906020018083116126de57829003601f168201915b5050505050905085565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050612782848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506022549150849050613fcb565b95945050505050565b6000828152600d6020526040902054156127b857604051630e620e2360e01b815260040160405180910390fd5b611dbb84848484613fe1565b6000601854116128165760405162461bcd60e51b815260206004820152601a60248201527f447574636820616374696f6e206d757374206265206f766572210000000000006044820152606401611683565b336000908152601b60205260408120545b801561292d57601854336000908152601b6020526040812090919061284d60018561539e565b8154811061285d5761285d6153b5565b6000918252602090912001546128839190600160801b90046001600160801b03166153cb565b336000908152601b602052604081209192509082906128a360018661539e565b815481106128b3576128b36153b5565b6000918252602090912001546128d291906001600160801b031661539e565b336000908152601b60205260409020805491925090806128f4576128f461542f565b6000828152602081208201600019908101919091550190556129168185615336565b93505050808061292590615445565b915050612827565b50604051339082156108fc029083906000818181858888f19350505050158015611696573d6000803e3d6000fd5b606061296682612fca565b612983576040516307ed98ed60e31b815260040160405180910390fd5b6112098261402c565b6009546001600160a01b031633146129b65760405162461bcd60e51b815260040161168390615369565b6000818152600a60209081526040808320815160a081018352815460ff80821615158352610100820481161515958301959095526201000081048516151593820193909352630100000090920490921615156060820152600182018054919291608084019190612a25906152ae565b80601f0160208091040260200160405190810160405280929190818152602001828054612a51906152ae565b8015612a9e5780601f10612a7357610100808354040283529160200191612a9e565b820191906000526020600020905b815481529060010190602001808311612a8157829003601f168201915b505050505081525050905080600001518015612abb575080604001515b15612ad95760405163ab47bcbb60e01b815260040160405180910390fd5b516000918252600a6020526040909120805460ff19169115919091179055565b612b116000805160206155f38339815191523361207e565b80612b35575033612b2a6009546001600160a01b031690565b6001600160a01b0316145b612b525760405163683b4ec760e11b815260040160405180910390fd5b602a805468ff0000000000000000198116600160401b9182900460ff1615909102179055565b600082815260106020526040902060010154612b9481336131d2565b61136b83836132bc565b6009546001600160a01b03163314612bc85760405162461bcd60e51b815260040161168390615369565b6001600160a01b038116612c2d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611683565b6113d68161371b565b612c4e6000805160206155f38339815191523361207e565b80612c72575033612c676009546001600160a01b031690565b6001600160a01b0316145b612c8f5760405163683b4ec760e11b815260040160405180910390fd5b602355565b6000818152600d602052604090205415612cc157604051630e620e2360e01b815260040160405180910390fd5b611696828261416a565b33803b9063ffffffff821615612cf457604051637df1f81760e01b815260040160405180910390fd5b60026011541415612d175760405162461bcd60e51b8152600401611683906152e9565b6002601155602a54426001600160401b039091161115612d4a576040516316851a3760e11b815260040160405180910390fd5b602a54600160401b900460ff16612d74576040516316851a3760e11b815260040160405180910390fd5b60008054600154602a543384526006602052604090932054919003916001600160401b03908116600160801b909204161015612dd857336000908152600660205260409020805477ffffffffffffffff0000000000000000ffffffffffffffff1690555b602954846001600160401b031660285483612df3919061539e565b612dfd9190615336565b1115612e1c57604051630c398d6560e41b815260040160405180910390fd5b6001600160401b038416612e435760405163199f5a0360e31b815260040160405180910390fd5b602454336000908152600660205260409020546001600160401b03600160c01b8204811691612e7b91600160401b909104168761545c565b612e859190615487565b6001600160401b03161115612ead57604051630c398d6560e41b815260040160405180910390fd5b50600080612eb96134c0565b905060005b856001600160401b0316811015612ef257612ee03361193d6119388486615336565b80612eea8161534e565b915050612ebe565b50611e68602354866001600160401b0316612f0d91906153cb565b613f6c565b612f2a6000805160206155f38339815191523361207e565b80612f4e575033612f436009546001600160a01b031690565b6001600160a01b0316145b612f6b5760405163683b4ec760e11b815260040160405180910390fd5b601654612f7b9062093a80615336565b421015612f8757600080fd5b60215460405147916000916001600160a01b03909116908390611fbd565b60006001600160e01b03198216637965db0b60e01b1480611209575061120982614422565b6000818152600560205260408120546001600160a01b031615801590611209575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b602654602754602554613078919061539e565b613082919061539e565b602955565b61136b838383614472565b336000908152600c602052604090205460ff166130c15760405162461bcd60e51b8152600401611683906154af565b6000818152600f60209081526040808320338452909152902054156131285760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401611683565b6000818152600d6020526040812054613142906001615336565b6000838152600e60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600f83528184209084528252808320849055858352600d909152812080549293509061319c8361534e565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b6131dc828261207e565b611696576131f4816001600160a01b03166014614662565b6131ff836020614662565b6040516020016132109291906154da565b60408051601f198184030181529082905262461bcd60e51b825261168391600401614c1c565b613240828261207e565b6116965760008281526010602090815260408083206001600160a01b03851684529091529020805460ff191660011790556132783390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6132c6828261207e565b156116965760008281526010602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b336000908152600c602052604090205460ff166133525760405162461bcd60e51b8152600401611683906154af565b6000818152600f60209081526040808320338452909152902054806133b95760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401611683565b6000828152600d602052604090205481811461342f576000838152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600f83528184209084529091529020829055613457565b6000838152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600f602090815260408083203384528252808320839055858352600d909152812080549161348983615445565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b600033414445426134d46000546001540390565b6134df60014361539e565b6040516bffffffffffffffffffffffff19606098891b811660208301529690971b909516603487015260488601939093526068850191909152608884015260a88301524060c882015260e8016040516020818303038152906040528051906020012060001c905090565b60008060015460265460255461355f919061539e565b613569919061539e565b90506000613577828561554f565b6000838152602b602052604080822054838352908220549293509161359d5750816135ae565b506000828152602b60205260409020545b816135c9576000838152602b602052604090208490556135db565b6000838152602b602052604090208290555b6135e6600182615336565b9695505050505050565b6001600160a01b03821661361657604051622e076360e81b815260040160405180910390fd5b6001600160401b03811661363d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038216600081815260066020908152604080832080546001600160801b0319811660016001600160401b0380841682018116928317600160401b67ffffffffffffffff19909516909317849004811690910181169092021767ffffffffffffffff60801b1916600160801b428316908102919091179092558616808552600590935281842080546001600160e01b0319168617600160a01b90920291909117905551909291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a460018054810190555050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601c546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156137b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137d99190615563565b601e5411156137fb576040516328663cc760e01b815260040160405180910390fd5b601c54604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015613849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061386d9190615563565b601e54111561388f576040516328663cc760e01b815260040160405180910390fd5b601c54601e546040516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156138e557600080fd5b505af11580156138f9573d6000803e3d6000fd5b505050506000601f5461390b83614804565b60405161190160f01b60208201526022810192909252604282015260620160408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa158015613994573d6000803e3d6000fd5b5050604051601f190151601d549092506001600160a01b0380841691161490506139d157604051638baa579f60e01b815260040160405180910390fd5b6001600160a01b0381166139f85760405163f645eedf60e01b815260040160405180910390fd5b60608301516001600160a01b03163314613a255760405163fad13b2b60e01b815260040160405180910390fd5b60208084015184516001600160401b039081166000908152928052604090922054908216600160401b9091049091161115613a735760405163e66d043f60e01b815260040160405180910390fd5b613b098380516001600160401b03908116600090815260208080526040918290208451815492860151938601518516600160801b0267ffffffffffffffff60801b19948616600160401b026001600160801b031990941691909516179190911791909116919091178155606090910151600190910180546001600160a01b039092166001600160a01b0319909216919091179055565b505050505050565b601a5460ff16613b595760405162461bcd60e51b815260206004820152601360248201527211104819185d18481b9bdd081cd95d081e595d606a1b6044820152606401611683565b6000613b6361210e565b9050613b78816001600160801b0385166153cb565b341015613bc75760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e00000000000000006044820152606401611683565b6000836001600160801b0316118015613beb5750601754836001600160801b031611155b613c2d5760405162461bcd60e51b8152602060048201526013602482015272496e636f7272656374207175616e746974792160681b6044820152606401611683565b601654421015613c755760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401611683565b601954613c8b6001600160801b03851684615336565b1115613cd95760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f722044412072656163686564210000000000006044820152606401611683565b601954613cef6001600160801b03851684615336565b1415613cfb5760188190555b5050336000908152601b6020908152604080832081518083019092526001600160801b033481168352948516828401908152815460018101835591855292909320905191518416600160801b029190931617910155565b604080516060808201835260008083526020808401829052928401819052938452600582529282902082519384018352546001600160a01b0381168452600160a01b81046001600160401b031691840191909152600160e01b900460ff1615159082015290565b6001600160a01b0381166000908152600c602052604090205460ff1615613df25760405162461bcd60e51b8152600401611683906154af565b6000828152600f602090815260408083206001600160a01b038516845290915290205480613e525760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401611683565b6000838152600d6020526040902054818114613ec8576000848152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600f83528184209084529091529020829055613ef0565b6000848152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600f602090815260408083206001600160a01b03871684528252808320839055868352600d9091528120805491613f2b83615445565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b80341015613f8d57604051632c1d501360e11b815260040160405180910390fd5b803411156113d657336108fc613fa3833461539e565b6040518115909202916000818181858888f19350505050158015611696573d6000803e3d6000fd5b600082613fd8858461489e565b14949350505050565b613fec848484614472565b6001600160a01b0383163b1515801561400e575061400c84848484614912565b155b15611dbb576040516368d2bf6b60e11b815260040160405180910390fd5b6000818152600b6020908152604080832054808452600a8352818420825160a081018452815460ff808216151583526101008204811615159683019690965262010000810486161515948201949094526301000000909304909316151560608381019190915260018401805491959294929392916080840191906140af906152ae565b80601f01602080910402602001604051908101604052809291908181526020018280546140db906152ae565b80156141285780601f106140fd57610100808354040283529160200191614128565b820191906000526020600020905b81548152906001019060200180831161410b57829003601f168201915b50505050508152505090508060800151614141856149fb565b60405160200161415292919061557c565b60405160208183030381529060405292505050919050565b6000818152600b60205260409020548281141561419a5760405163f54bd87b60e01b815260040160405180910390fd5b6000838152600a60209081526040808320815160a081018352815460ff80821615158352610100820481161515958301959095526201000081048516151593820193909352630100000090920490921615156060820152600182018054919291608084019190614209906152ae565b80601f0160208091040260200160405190810160405280929190818152602001828054614235906152ae565b80156142825780601f1061425757610100808354040283529160200191614282565b820191906000526020600020905b81548152906001019060200180831161426557829003601f168201915b505050505081525050905080600001516142af576040516349225c6d60e11b815260040160405180910390fd5b6000828152600a60209081526040808320815160a081018352815460ff8082161515835261010082048116151595830195909552620100008104851615159382019390935263010000009092049092161515606082015260018201805491929160808401919061431e906152ae565b80601f016020809104026020016040519081016040528092919081815260200182805461434a906152ae565b80156143975780601f1061436c57610100808354040283529160200191614397565b820191906000526020600020905b81548152906001019060200180831161437a57829003601f168201915b5050505050815250509050806060015180156143b257508285105b156143d0576040516327f2a5f360e01b815260040160405180910390fd5b6000848152600b602090815260409182902087905581518781529081018690527f60167bfed1f9fd83e5c4abb0501220bbb9a4f3b6594708901bd0dd18fba3234b910160405180910390a15050505050565b60006001600160e01b031982166380ac58cd60e01b148061445357506001600160e01b03198216635b5e139f60e01b145b8061120957506301ffc9a760e01b6001600160e01b0319831614611209565b600061447d82613d52565b9050836001600160a01b031681600001516001600160a01b0316146144b45760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806144d257506144d285336110a1565b806144ed5750336144e2846112a1565b6001600160a01b0316145b90508061450d57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661453457604051633a954ecd60e21b815260040160405180910390fd5b61454060008487613009565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116614619576145e386612fca565b1561461957805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612636565b606060006146718360026153cb565b61467c906002615336565b6001600160401b0381111561469357614693614e61565b6040519080825280601f01601f1916602001820160405280156146bd576020820181803683370190505b509050600360fc1b816000815181106146d8576146d86153b5565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614707576147076153b5565b60200101906001600160f81b031916908160001a905350600061472b8460026153cb565b614736906001615336565b90505b60018111156147ae576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061476a5761476a6153b5565b1a60f81b828281518110614780576147806153b5565b60200101906001600160f81b031916908160001a90535060049490941c936147a781615445565b9050614739565b5083156147fd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401611683565b9392505050565b60007ffcc65f86083f3bc8bfaa9b55cb7a062f3cb94d16d19d31e00f2ef2197411a55782600001518360200151846040015185606001516040516020016148819594939291909485526001600160401b039384166020860152918316604085015290911660608301526001600160a01b0316608082015260a00190565b604051602081830303815290604052805190602001209050919050565b600081815b845181101561490a5760008582815181106148c0576148c06153b5565b602002602001015190508083116148e657600083815260208290526040902092506148f7565b600081815260208490526040902092505b50806149028161534e565b9150506148a3565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906149479033908990889088906004016155a2565b6020604051808303816000875af1925050508015614982575060408051601f3d908101601f1916820190925261497f918101906155d5565b60015b6149dd573d8080156149b0576040519150601f19603f3d011682016040523d82523d6000602084013e6149b5565b606091505b5080516149d5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081614a1f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115614a495780614a338161534e565b9150614a429050600a83615400565b9150614a23565b6000816001600160401b03811115614a6357614a63614e61565b6040519080825280601f01601f191660200182016040528015614a8d576020820181803683370190505b5090505b84156149f357614aa260018361539e565b9150614aaf600a8661554f565b614aba906030615336565b60f81b818381518110614acf57614acf6153b5565b60200101906001600160f81b031916908160001a905350614af1600a86615400565b9450614a91565b828054614b04906152ae565b90600052602060002090601f016020900481019282614b265760008555614b6c565b82601f10614b3f57805160ff1916838001178555614b6c565b82800160010185558215614b6c579182015b82811115614b6c578251825591602001919060010190614b51565b50614b78929150614b7c565b5090565b5b80821115614b785760008155600101614b7d565b6001600160e01b0319811681146113d657600080fd5b600060208284031215614bb957600080fd5b81356147fd81614b91565b60005b83811015614bdf578181015183820152602001614bc7565b83811115611dbb5750506000910152565b60008151808452614c08816020860160208601614bc4565b601f01601f19169290920160200192915050565b6020815260006147fd6020830184614bf0565b600060208284031215614c4157600080fd5b5035919050565b80356001600160a01b0381168114614c5f57600080fd5b919050565b60008060408385031215614c7757600080fd5b82359150614c8760208401614c48565b90509250929050565b60008060408385031215614ca357600080fd5b614cac83614c48565b946020939093013593505050565b600080600060608486031215614ccf57600080fd5b614cd884614c48565b9250614ce660208501614c48565b9150604084013590509250925092565b60008060408385031215614d0957600080fd5b50508035926020909101359150565b80356001600160401b0381168114614c5f57600080fd5b600060208284031215614d4157600080fd5b6147fd82614d18565b600060208284031215614d5c57600080fd5b6147fd82614c48565b602080825282518282018190526000919060409081850190868401855b82811015614db457815180516001600160801b0390811686529087015116868501529284019290850190600101614d82565b5091979650505050505050565b600080600080600080600060e0888a031215614ddc57600080fd5b505085359760208701359750604087013596606081013596506080810135955060a0810135945060c0013592509050565b6020808252825182820181905260009190848201906040850190845b81811015614e4557835183529284019291840191600101614e29565b50909695505050505050565b80358015158114614c5f57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115614e9157614e91614e61565b604051601f8501601f19908116603f01168101908282118183101715614eb957614eb9614e61565b81604052809350858152868686011115614ed257600080fd5b858560208301376000602087830101525050509392505050565b600080600080600060a08688031215614f0457600080fd5b85359450614f1460208701614e51565b9350614f2260408701614e51565b9250614f3060608701614e51565b915060808601356001600160401b03811115614f4b57600080fd5b8601601f81018813614f5c57600080fd5b614f6b88823560208401614e77565b9150509295509295909350565b803560ff81168114614c5f57600080fd5b60008060008084860360e0811215614fa057600080fd5b614fa986614f78565b945060208601359350604086013592506080605f1982011215614fcb57600080fd5b50604051608081018181106001600160401b0382111715614fee57614fee614e61565b604052614ffd60608701614d18565b815261500b60808701614d18565b602082015261501c60a08701614d18565b604082015261502d60c08701614c48565b6060820152939692955090935050565b60006020828403121561504f57600080fd5b6147fd82614f78565b6000806040838503121561506b57600080fd5b61507483614c48565b9150614c8760208401614e51565b60008083601f84011261509457600080fd5b5081356001600160401b038111156150ab57600080fd5b6020830191508360208260051b85010111156150c657600080fd5b9250929050565b600080602083850312156150e057600080fd5b82356001600160401b038111156150f657600080fd5b61510285828601615082565b90969095509350505050565b6000806000806040858703121561512457600080fd5b84356001600160401b038082111561513b57600080fd5b61514788838901615082565b9096509450602087013591508082111561516057600080fd5b5061516d87828801615082565b95989497509550505050565b851515815284151560208201528315156040820152821515606082015260a0608082015260006151ac60a0830184614bf0565b979650505050505050565b6000806000604084860312156151cc57600080fd5b6151d584614c48565b925060208401356001600160401b038111156151f057600080fd5b6151fc86828701615082565b9497909650939450505050565b6000806000806080858703121561521f57600080fd5b61522885614c48565b935061523660208601614c48565b92506040850135915060608501356001600160401b0381111561525857600080fd5b8501601f8101871361526957600080fd5b61527887823560208401614e77565b91505092959194509250565b6000806040838503121561529757600080fd5b6152a083614c48565b9150614c8760208401614c48565b600181811c908216806152c257607f821691505b602082108114156152e357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561534957615349615320565b500190565b600060001982141561536257615362615320565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000828210156153b0576153b0615320565b500390565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156153e5576153e5615320565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261540f5761540f6153ea565b500490565b60006020828403121561542657600080fd5b6147fd82614e51565b634e487b7160e01b600052603160045260246000fd5b60008161545457615454615320565b506000190190565b60006001600160401b0380831681851680830382111561547e5761547e615320565b01949350505050565b60006001600160401b03838116908316818110156154a7576154a7615320565b039392505050565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615512816017850160208801614bc4565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615543816028840160208801614bc4565b01602801949350505050565b60008261555e5761555e6153ea565b500690565b60006020828403121561557557600080fd5b5051919050565b6000835161558e818460208801614bc4565b83519083019061547e818360208801614bc4565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135e690830184614bf0565b6000602082840312156155e757600080fd5b81516147fd81614b9156fe97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929a2646970667358221220771b8d59c335e4556e693d904190a4500d2f94f9d87f1f91168a5975f829eadc64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d52384e5533684a796b6e536262706366765354736d66334a7058626a656b6a6b41525a57453539733962346e2f00000000000000000000
-----Decoded View---------------
Arg [0] : _baseTokenURI (string): ipfs://QmR8NU3hJyknSbbpcfvSTsmf3JpXbjekjkARZWE59s9b4n/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d52384e5533684a796b6e536262706366765354736d6633
Arg [3] : 4a7058626a656b6a6b41525a57453539733962346e2f00000000000000000000
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.