Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Multi Chain
Multichain Addresses
3 addresses found via
Latest 13 from a total of 13 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 17375671 | 121 days 7 hrs ago | IN | 0 ETH | 0.00181447 | ||||
Grant Role | 17375533 | 121 days 8 hrs ago | IN | 0 ETH | 0.00201768 | ||||
Mint NFT | 17375448 | 121 days 8 hrs ago | IN | 0 ETH | 0.01420309 | ||||
Grant Role | 17375302 | 121 days 8 hrs ago | IN | 0 ETH | 0.00222308 | ||||
Unpause | 17344304 | 125 days 17 hrs ago | IN | 0 ETH | 0.00117522 | ||||
Pause | 17319940 | 129 days 3 hrs ago | IN | 0 ETH | 0.00112282 | ||||
Unpause | 17319936 | 129 days 3 hrs ago | IN | 0 ETH | 0.00109534 | ||||
Revoke Role | 17319333 | 129 days 5 hrs ago | IN | 0 ETH | 0.00151707 | ||||
Grant Role | 17319316 | 129 days 5 hrs ago | IN | 0 ETH | 0.00215566 | ||||
Update Metadata | 17318754 | 129 days 7 hrs ago | IN | 0 ETH | 0.005754 | ||||
Set Supply Manag... | 17318743 | 129 days 7 hrs ago | IN | 0 ETH | 0.00392936 | ||||
Set Price Handle... | 17318538 | 129 days 8 hrs ago | IN | 0 ETH | 0.00267809 | ||||
0x61014060 | 17318000 | 129 days 10 hrs ago | IN | Create: MysticGalacticMission1 | 0 ETH | 0.21049688 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
MysticGalacticMission1
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./util/Util.sol"; import "./IPriceHandler.sol"; import "./ISupplyManager.sol"; /** * @title Mystic Galactic Mission One * @author Mystic Galactic Mission One LLC * @notice Mystic Galactic Mission One (MGM1) Smart Contract. * This contract implements the legally binding Bottle Deposit Agreement for the minting, management, and sale of ERC721 tokens related to the Mystic Galactic Mission 1 project. * The full text of the Bottle Deposit Agreement is available at https://w3s.link/ipfs/bafybeigtlvzhcwa22gcmmqsps2w5uf4qcchqlixa4bx7cwq3fnxnto4z5y. * The Bottle Deposit Agreement is the only source of the binding terms and conditions. * All comments below are for the convenience of persons examining the code, but are superseded by any terms of the Bottle Deposit Agreement that conflict with these comments. * The contract is designed to facilitate distribution and management of tokens, with built-in administrative controls and a refund mechanism for NFT owners. * The contract includes a refund mechanism which enables the contract owner to refund deposits to owners of specific tokens. * In the case that 1000 deposit NFTs are not minted, at the owner's discretion, all token owner(s) may be refunded or the mission may proceed. * Upon successful execution of the refund, the contract emits a 'RefundProcessed' event and transfers the refund amount to the token owner(s) * Note: This contract represents a contract for pre-sale deposit per the terms of the Bottle Deposit Agreement. * @dev The contract uses the OpenZeppelin library for standard ERC721 functionality, * additional features such as contract pausing, ownership management, and access control. * Custom pricing and supply management contracts can be set at the discretion of the contract owner. * The contract includes a refund mechanism which enables the contract owner to refund token owner(s) of specific tokens. * In case all deposits are not minted, at the owner's discretion, or if the mission fails, all token owner(s) can be refunded. * Upon successful execution of the refund, the contract emits a 'RefundProcessed' event and transfers the refund amount to the token owner(s). */ contract MysticGalacticMission1 is ERC721, Ownable, Pausable, AccessControl { using Util for uint256; /** * @dev The initial total supply of tokens available for minting at the contract deployment. * This value is immutable, meaning it can only be set once during contract deployment and cannot be changed afterwards. */ uint16 public immutable initialSupply; /** * @dev The initial supply of tokens that is reserved for specific purposes or individuals at the contract deployment. * This value is immutable, meaning it can only be set once during contract deployment and cannot be changed afterwards. */ uint16 public immutable initialReservedSupply; /** * @dev The maximum number of tokens that can be minted in a single day. * This value is immutable, meaning it can only be set once during contract deployment and cannot be changed afterwards. */ uint16 public immutable supplyPerDay; /** * @dev The `callerKey` is an immutable variable that is used to validate the caller of the contract. * It ensures that only the authorized contract can call certain functions. */ bytes32 private immutable callerKey; /** * @dev The `depositAcct` is where all the deposit funds are sent. * This address is set once at the time of contract deployment. */ address private depositAcct; /** * @dev The `baseURI` is a string that represents the base Uniform Resource Identifier (URI) * where the metadata of each token is stored. */ string private baseURI; /** * @dev The `DEPOSIT_ROLE` is a constant hash of the string "DEPOSIT_ROLE", * used to assign and manage deposit account roles in the contract. */ bytes32 private immutable DEPOSIT_ROLE; /** * @dev The `DEPOSIT_ROLE` is a constant hash of the string "RESERVE_ROLE", * used to assign and manage administrative roles in the contract. */ bytes32 private immutable RESERVE_ROLE; // Sub Contracts /** * @dev The `ph` variable represents an instance of the IPriceHandler interface. * This contract is used to handle the pricing logic of the tokens. */ IPriceHandler private ph; /** * @dev The `phAddr` is the address of the PriceHandler contract. */ address private phAddr; /** * @dev The `sm` variable represents an instance of the ISupplyManager interface. * This contract is used to manage the supply of the tokens. */ ISupplyManager private sm; /** * @dev The `smAddr` is the address of the SupplyManager contract. */ address private smAddr; /** * @dev Modifier function to restrict access to only the contract owner or accounts with the DEFAULT_ADMIN_ROLE. * Ensures that the caller of the function in which this modifier is used has the DEFAULT_ADMIN_ROLE, * otherwise it reverts the transaction. */ modifier onlyAdmin() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not owner or admin"); _; } /** * @dev Modifier function to restrict access to only the designated reserve minter account. * Ensures that the caller of the function in which this modifier is used is the reserve minter, * otherwise it reverts the transaction. */ modifier onlyReserveMinter () { require(hasRole(RESERVE_ROLE, msg.sender), "Caller is not reserve minter"); _; } /** * @dev Modifier function to restrict access to only the designated deposit account. * Ensures that the caller of the function in which this modifier is used is the deposit account, * otherwise it reverts the transaction. */ modifier onlyDepositAcct () { require(hasRole(DEPOSIT_ROLE, msg.sender), "Caller is not deposit account"); _; } /** * @dev Initializes the contract by setting the initial base URI, price in Wei, maximum tokens, * and maximum tokens per day. Inherits from ERC721, Ownable, Pausable, and AccessControlEnumerable. * Sets up the DEFAULT_ADMIN_ROLE and ADMIN_ROLE for the contract creator and pauses the contract. * @param _depositAcct The Account where funds from mints should go * @param _reserveAcct The Account that is allowed to mint from the reserved supply * @param _initialSupply The initial supply * @param _initialReservedSupply The amount of the supply reserved for the owner of this contract * @param _supplyPerDay The maximum amount per day all purchasers combined may make */ constructor( bytes32 _depositRole, address _depositAcct, bytes32 _reserveRole, address _reserveAcct, uint16 _initialSupply, uint16 _initialReservedSupply, uint16 _supplyPerDay, bytes32 _callerKey ) ERC721("Mystic Galactic Mission 1", "MYGM1") { require(_initialSupply > 0, "Supply <= 0"); require((_initialSupply - _initialReservedSupply) > 0, "Reserved supply > Total supply"); // Set immutable values callerKey = _callerKey; initialSupply = _initialSupply; supplyPerDay = _supplyPerDay; initialReservedSupply = _initialReservedSupply; depositAcct = _depositAcct; DEPOSIT_ROLE = _depositRole; RESERVE_ROLE = _reserveRole; // Setup roles _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DEPOSIT_ROLE, depositAcct); _setupRole(RESERVE_ROLE, _reserveAcct); // Pause the contract initially _pause(); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721) returns (bool) { return AccessControl.supportsInterface(interfaceId) || ERC721.supportsInterface(interfaceId); } /** * @dev Sets the price handler contract address, which is responsible for handling the price logic of the NFTs. * Can only be called by an account with the ADMIN_ROLE. * @param _priceHandlerAddr The address of the price handler contract. */ function setPriceHandler (address _priceHandlerAddr) external onlyAdmin { phAddr = _priceHandlerAddr; ph = IPriceHandler(_priceHandlerAddr); } /** * @dev Sets the supply manager contract address, which is responsible for managing the supply of the NFTs. * It also initializes the supply of NFTs in the supply manager contract. * Can only be called by an account with the ADMIN_ROLE. * @param _supplyManagerAddr The address of the supply manager contract. */ function setSupplyManager (address _supplyManagerAddr) external onlyAdmin { smAddr = _supplyManagerAddr; sm = ISupplyManager(_supplyManagerAddr); sm.initializeSupply(); } /** * @dev Mints new NFTs for the caller. This function can also refund any excess payment to the caller. * Can only be called when the contract is not paused. * @param bottles The number of NFTs to be minted. */ function mintNFT(uint16 bottles) public payable whenNotPaused { (uint256 totalAmount, int256 refundAmount ) = sm.mintFromPublicSupply(msg.sender, bottles, msg.value, ph.price(), hasRole(DEPOSIT_ROLE, msg.sender)); if (refundAmount > 0) { payable(msg.sender).transfer(uint256(refundAmount)); } payable(depositAcct).transfer(totalAmount); } /** * @dev Mints new NFTs from the reserved supply for the caller. * Can only be called by the reserve minter account and when the contract is not paused. * @param bottles The number of NFTs to be minted from the reserved supply. */ function mintNFTReserved(uint256 bottles) public onlyReserveMinter whenNotPaused { sm.mintFromReservedSupply(msg.sender, bottles); } /** * @dev Safely mints a new NFT and emits a TokenMinted event. * Can only be called by the supply manager contract. * @param minter The account that will own the minted NFT. * @param tokenId The ID for the NFT to be minted. * @param tokenPrice The price at which the NFT was minted. * @param _callerKey The key used to verify the caller's identity. */ function _safeMinter(address minter, uint256 tokenId, uint256 tokenPrice, bytes32 _callerKey) external { require ((msg.sender == smAddr) && (_callerKey == callerKey), "Unauthorized"); _safeMint(minter, tokenId); emit TokenMinted(minter, tokenPrice, tokenId, tokenURI(tokenId)); } event TokenMinted(address indexed to, uint256 paymentReceived, uint256 tokenId, string tokenURI); /** * @dev Returns the URI for a given NFT. * Reverts if the NFT does not exist. * @param tokenId The ID of the NFT to query. * @return The URI of the NFT. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, '/nft/', tokenId.toString())) : ""; } /** * @dev Returns the metadata URI (IPFS Address) for the contract metadata that can be used by marketplaces such as Opensea for describing * the collection of NFT's minted herein. * @return The metadata URI for the project description */ function contractURI() public view returns (string memory) { return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, '/metadata')) : ""; } /** * @dev Updates the base URI (IPFS address) for NFT metadata. * Can only be called by an admin account and will only update informational metadata. * The Deposit Agreement URI(IPFS Address) described in the metadata will never change. * Emits a BatchMetadataUpdate Event to notify marketplaces such as Opensea of the change in metadata * @param _baseURI The new base URI */ function updateMetadata( string memory _baseURI ) external onlyAdmin { baseURI = _baseURI; uint16 _supplyUsed = sm.supplyUsed(); if ( _supplyUsed != 0 ) { emit BatchMetadataUpdate(0, _supplyUsed - 1); } } event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); // Refunding /** * @dev Refunds the token owner(s) and burns the NFTs. There are two possible models based on forever. If forever the contract is refunding for the purpose of closing the * the contract and refunding all deposits. If forever is false, the accounts are refunded and the NFT may be minted again (recycled) to be used by another token owner. * Tokens can not be burnt unless the token owner is refunded. However, these refund mechanism does not guarantee the price that a token owner(s) will receive upon refund * Can only be called by the deposit account. * @param _tokenIds An array of token IDs to be refunded. * @param forever The if forever is true the NFTs burt may never be reused. If it is false than the NFT's may be re-used by the by the supply manager. */ function refundMinters(uint256[] calldata _tokenIds, bool forever) external payable onlyDepositAcct { for ( uint256 i = 0; i < _tokenIds.length; i++ ) { address minter = ownerOf(_tokenIds[i]); payable(minter).transfer(msg.value/_tokenIds.length); // Burn the NFT _burn(_tokenIds[i]); if ( !forever ) { sm.tokenBurnt(i); } emit RefundProcessed(minter, (msg.value / _tokenIds.length)); emit TokenBurnt(i); } } event RefundProcessed(address to, uint256 amount); event TokenBurnt(uint256 tokenId); // Security Functions /** * @dev Pause the contract */ function pause() public onlyAdmin { _pause(); } /** * @dev Unpause the contract */ function unpause() public onlyAdmin { _unpause(); } /** * @dev Overrides the grantRole function to restrict modifications of certain roles. * There can only be one deposit account as such granting the role to DEPOSIT_ROLE revokes the * permissions for the previous Deposit Acct */ function grantRole(bytes32 role, address acct) public virtual override onlyOwner { if ( role == DEPOSIT_ROLE ) { revokeRole(DEPOSIT_ROLE, depositAcct); depositAcct = acct; } super.grantRole(role, acct); } function transferOwnership(address newOwner) public virtual override onlyOwner { address oldOwner = owner(); super.transferOwnership(newOwner); revokeRole(DEFAULT_ADMIN_ROLE, oldOwner); grantRole(DEFAULT_ADMIN_ROLE, newOwner); } /** * @dev Verifies that the caller is a sub contract such as SupplyManager or PriceHandler. Only valid contracts can execute methods * in the main contract * @param _callerKey Private key exchanged between contracts */ function validateKey(bytes32 _callerKey) external view { require((msg.sender == phAddr || msg.sender == smAddr) && callerKey == _callerKey, "Contract caller is not authorized"); } // Pricing /** * @dev Sets a new price for minting a token in USD. The USD price should be 2 decimal places not the 18 decimal places of an ETHER * @param _usdPrice The new price in usdPrice. */ function setPrice(uint256 _usdPrice) external onlyOwner { ph.setPrice(_usdPrice); emit PriceUpdated(_usdPrice); } event PriceUpdated(uint256 newPrice); /** * @dev Sets the feed for the price conversion to native currency for price() method * @param _priceFeedAddress The address of the price feed oracle */ function setPriceFeed( address _priceFeedAddress ) external onlyAdmin { ph.setPriceFeed(_priceFeedAddress); } /** * @dev Returns the current price for minting a token in the native currency * @return The current price in the native currency with 18 decimals of accuracy. */ function price() external view returns (uint256) { return ph.price(); } /** * @dev Returns the current price for minting a token in USD. * @return The current price in USD. */ function priceInUSD() external view returns (uint256) { return ph.priceInUSD(); } /** * @dev Returns the number of tokens minted today. * @return uint16 Number of tokens minted today. */ function supplyMintedToday() external view returns (uint16) { return sm.supplyMintedToday(); } /** * @dev Resets the daily supply limit. * Can only be called by an admin account. */ function resetSupplyPerDay() external onlyAdmin { emit SupplyPerDayReset(); return sm.resetSupplyPerDay(); } event SupplyPerDayReset(); /** * @dev Returns the total supply of tokens. * @return uint16 Total supply of tokens. */ function supply() external view returns (uint16) { return sm.supply(); } /** * @dev Returns the number of tokens used from the total supply. * @return uint16 Number of tokens used from the total supply. */ function supplyUsed() external view returns (uint16) { return sm.supplyUsed(); } /** * @dev Returns the total reserved supply of tokens. * @return uint16 Total reserved supply of tokens. */ function reservedSupply() external view returns (uint16) { return sm.reservedSupply(); } /** * @dev Returns the number of tokens used from the reserved supply. * @return uint16 Number of tokens used from the reserved supply. */ function reservedSupplyUsed() external view returns (uint16) { return sm.reservedSupplyUsed(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; library Util { function uintToString(uint256 value) public pure returns (string memory) { 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); } function toString(address account) public pure returns(string memory) { return toString(abi.encodePacked(account)); } function toString(uint256 value) public pure returns(string memory) { return uintToString(value); } function toString(int256 value) public pure returns(string memory) { return toString(abi.encodePacked(value)); } function toString(bytes32 value) public pure returns(string memory) { return toString(abi.encodePacked(value)); } function toString(bytes memory data) public pure returns(string memory) { bytes memory alphabet = "0123456789abcdef"; bytes memory str = new bytes(2 + data.length * 2); str[0] = "0"; str[1] = "x"; for (uint i = 0; i < data.length; i++) { str[2+i*2] = alphabet[uint(uint8(data[i] >> 4))]; str[3+i*2] = alphabet[uint(uint8(data[i] & 0x0f))]; } return string(str); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface ISupplyManager { function supply() external view returns (uint16); function supplyUsed() external view returns (uint16); function reservedSupply() external view returns (uint16); function reservedSupplyUsed() external view returns (uint16); function initializeSupply () external; function mintFromPublicSupply( address minter, uint16 volume, uint256 amountSent, uint256 currentPrice, bool canMintFree ) external returns ( uint256 totalPrice, int256 refundAmount); function mintFromReservedSupply(address minter, uint256 volume) external; function tokenBurnt(uint256 tokenId ) external; function supplyMintedToday() external view returns (uint16); function resetSupplyPerDay() external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IPriceHandler { function setPrice(uint256 _usdPrice) external; function setPriceFeed( address _priceFeedAddress) external; function price() external view returns (uint256); function priceInUSD() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (last updated v4.8.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); _; } /** * @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 `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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(account), " 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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 pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "paris", "libraries": { "/contracts/util/Util.sol": { "Util": "0xC6df08B52b03269dBf477A9F7c081Fa08c62cEFF" } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_depositRole","type":"bytes32"},{"internalType":"address","name":"_depositAcct","type":"address"},{"internalType":"bytes32","name":"_reserveRole","type":"bytes32"},{"internalType":"address","name":"_reserveAcct","type":"address"},{"internalType":"uint16","name":"_initialSupply","type":"uint16"},{"internalType":"uint16","name":"_initialReservedSupply","type":"uint16"},{"internalType":"uint16","name":"_supplyPerDay","type":"uint16"},{"internalType":"bytes32","name":"_callerKey","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"PriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RefundProcessed","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":[],"name":"SupplyPerDayReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenBurnt","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"tokenPrice","type":"uint256"},{"internalType":"bytes32","name":"_callerKey","type":"bytes32"}],"name":"_safeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"acct","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":[],"name":"initialReservedSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"bottles","type":"uint16"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bottles","type":"uint256"}],"name":"mintNFTReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceInUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bool","name":"forever","type":"bool"}],"name":"refundMinters","outputs":[],"stateMutability":"payable","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":[],"name":"reservedSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedSupplyUsed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resetSupplyPerDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_usdPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeedAddress","type":"address"}],"name":"setPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceHandlerAddr","type":"address"}],"name":"setPriceHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_supplyManagerAddr","type":"address"}],"name":"setSupplyManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyMintedToday","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyPerDay","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyUsed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"updateMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_callerKey","type":"bytes32"}],"name":"validateKey","outputs":[],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101406040523480156200001257600080fd5b5060405162006a6738038062006a678339818101604052810190620000389190620006b6565b6040518060400160405280601981526020017f4d79737469632047616c6163746963204d697373696f6e2031000000000000008152506040518060400160405280600581526020017f4d59474d310000000000000000000000000000000000000000000000000000008152508160009081620000b59190620009f9565b508060019081620000c79190620009f9565b505050620000ea620000de620002b060201b60201c565b620002b860201b60201c565b6000600660146101000a81548160ff02191690831515021790555060008461ffff16116200014f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001469062000b41565b60405180910390fd5b600083856200015f919062000b92565b61ffff1611620001a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019d9062000c1f565b60405180910390fd5b8060e081815250508361ffff1660808161ffff16815250508161ffff1660c08161ffff16815250508261ffff1660a08161ffff168152505086600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550876101008181525050856101208181525050620002466000801b336200037e60201b60201c565b6200027d61010051600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166200037e60201b60201c565b6200029261012051866200037e60201b60201c565b620002a26200039460201b60201c565b505050505050505062000ce1565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200039082826200040960201b60201c565b5050565b620003a4620004fb60201b60201c565b6001600660146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003f0620002b060201b60201c565b604051620003ff919062000c52565b60405180910390a1565b6200041b82826200055060201b60201c565b620004f75760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200049c620002b060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6200050b620005bb60201b60201c565b156200054e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005459062000cbf565b60405180910390fd5b565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600660149054906101000a900460ff16905090565b600080fd5b6000819050919050565b620005ec81620005d7565b8114620005f857600080fd5b50565b6000815190506200060c81620005e1565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200063f8262000612565b9050919050565b620006518162000632565b81146200065d57600080fd5b50565b600081519050620006718162000646565b92915050565b600061ffff82169050919050565b620006908162000677565b81146200069c57600080fd5b50565b600081519050620006b08162000685565b92915050565b600080600080600080600080610100898b031215620006da57620006d9620005d2565b5b6000620006ea8b828c01620005fb565b9850506020620006fd8b828c0162000660565b9750506040620007108b828c01620005fb565b9650506060620007238b828c0162000660565b9550506080620007368b828c016200069f565b94505060a0620007498b828c016200069f565b93505060c06200075c8b828c016200069f565b92505060e06200076f8b828c01620005fb565b9150509295985092959890939650565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200080157607f821691505b602082108103620008175762000816620007b9565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620008817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000842565b6200088d868362000842565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620008da620008d4620008ce84620008a5565b620008af565b620008a5565b9050919050565b6000819050919050565b620008f683620008b9565b6200090e6200090582620008e1565b8484546200084f565b825550505050565b600090565b6200092562000916565b62000932818484620008eb565b505050565b5b818110156200095a576200094e6000826200091b565b60018101905062000938565b5050565b601f821115620009a95762000973816200081d565b6200097e8462000832565b810160208510156200098e578190505b620009a66200099d8562000832565b83018262000937565b50505b505050565b600082821c905092915050565b6000620009ce60001984600802620009ae565b1980831691505092915050565b6000620009e98383620009bb565b9150826002028217905092915050565b62000a04826200077f565b67ffffffffffffffff81111562000a205762000a1f6200078a565b5b62000a2c8254620007e8565b62000a398282856200095e565b600060209050601f83116001811462000a71576000841562000a5c578287015190505b62000a688582620009db565b86555062000ad8565b601f19841662000a81866200081d565b60005b8281101562000aab5784890151825560018201915060208501945060208101905062000a84565b8683101562000acb578489015162000ac7601f891682620009bb565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f537570706c79203c3d2030000000000000000000000000000000000000000000600082015250565b600062000b29600b8362000ae0565b915062000b368262000af1565b602082019050919050565b6000602082019050818103600083015262000b5c8162000b1a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000b9f8262000677565b915062000bac8362000677565b9250828203905061ffff81111562000bc95762000bc862000b63565b5b92915050565b7f526573657276656420737570706c79203e20546f74616c20737570706c790000600082015250565b600062000c07601e8362000ae0565b915062000c148262000bcf565b602082019050919050565b6000602082019050818103600083015262000c3a8162000bf8565b9050919050565b62000c4c8162000632565b82525050565b600060208201905062000c69600083018462000c41565b92915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000ca760108362000ae0565b915062000cb48262000c6f565b602082019050919050565b6000602082019050818103600083015262000cda8162000c98565b9050919050565b60805160a05160c05160e0516101005161012051615d1a62000d4d600039600061149601526000818161101d0152818161104701528181611f3c0152612380015260008181610f48015261141701526000611e38015260006122a0015260006111630152615d1a6000f3fe6080604052600436106102885760003560e01c8063724e78da1161015a578063a336bf6c116100c1578063d41edb7b1161007a578063d41edb7b14610971578063d547741f1461099c578063d7dc3c05146109c5578063e8a3d485146109e1578063e985e9c514610a0c578063f2fde38b14610a4957610288565b8063a336bf6c1461086e578063a39e9a2f14610899578063b88d4fde146108b5578063c062b6fa146108de578063c87b56dd14610909578063cecd97511461094657610288565b806391d148541161011357806391d148541461075c57806395d89b41146107995780639dc5c94a146107c4578063a035b1fe146107ef578063a217fddf1461081a578063a22cb4651461084557610288565b8063724e78da146106885780637ceb2381146106b15780638456cb59146106c85780638da5cb5b146106df578063918b5be11461070a57806391b7f5ed1461073357610288565b8063378dc3dc116101fe5780635c975abb116101b75780635c975abb146105785780635dc69c28146105a35780636301c70f146105cc5780636352211e146105f757806370a0823114610634578063715018a61461067157610288565b8063378dc3dc146104905780633b53ac87146104bb5780633f4ba83a146104e457806342842e0e146104fb57806344d19d2b146105245780635c7c49c91461054f57610288565b8063191250d711610250578063191250d71461038657806323b872dd146103af578063248a9ca3146103d85780632d453b52146104155780632f2ff15d1461043e57806336568abe1461046757610288565b806301ffc9a71461028d578063047fc9aa146102ca57806306fdde03146102f5578063081812fc14610320578063095ea7b31461035d575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613d8f565b610a72565b6040516102c19190613dd7565b60405180910390f35b3480156102d657600080fd5b506102df610a94565b6040516102ec9190613e0f565b60405180910390f35b34801561030157600080fd5b5061030a610b2c565b6040516103179190613eba565b60405180910390f35b34801561032c57600080fd5b5061034760048036038101906103429190613f12565b610bbe565b6040516103549190613f80565b60405180910390f35b34801561036957600080fd5b50610384600480360381019061037f9190613fc7565b610c04565b005b34801561039257600080fd5b506103ad60048036038101906103a89190614007565b610d1b565b005b3480156103bb57600080fd5b506103d660048036038101906103d19190614034565b610e6e565b005b3480156103e457600080fd5b506103ff60048036038101906103fa91906140bd565b610ece565b60405161040c91906140f9565b60405180910390f35b34801561042157600080fd5b5061043c60048036038101906104379190614114565b610eee565b005b34801561044a57600080fd5b506104656004803603810190610460919061417b565b611013565b005b34801561047357600080fd5b5061048e6004803603810190610489919061417b565b6110de565b005b34801561049c57600080fd5b506104a5611161565b6040516104b29190613e0f565b60405180910390f35b3480156104c757600080fd5b506104e260048036038101906104dd9190614007565b611185565b005b3480156104f057600080fd5b506104f9611256565b005b34801561050757600080fd5b50610522600480360381019061051d9190614034565b6112ac565b005b34801561053057600080fd5b506105396112cc565b6040516105469190613e0f565b60405180910390f35b34801561055b57600080fd5b50610576600480360381019061057191906140bd565b611364565b005b34801561058457600080fd5b5061058d61147a565b60405161059a9190613dd7565b60405180910390f35b3480156105af57600080fd5b506105ca60048036038101906105c59190613f12565b611491565b005b3480156105d857600080fd5b506105e1611594565b6040516105ee9190613e0f565b60405180910390f35b34801561060357600080fd5b5061061e60048036038101906106199190613f12565b61162c565b60405161062b9190613f80565b60405180910390f35b34801561064057600080fd5b5061065b60048036038101906106569190614007565b6116b2565b60405161066891906141ca565b60405180910390f35b34801561067d57600080fd5b50610686611769565b005b34801561069457600080fd5b506106af60048036038101906106aa9190614007565b61177d565b005b3480156106bd57600080fd5b506106c6611859565b005b3480156106d457600080fd5b506106dd611955565b005b3480156106eb57600080fd5b506106f46119ab565b6040516107019190613f80565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c919061431a565b6119d5565b005b34801561073f57600080fd5b5061075a60048036038101906107559190613f12565b611b1d565b005b34801561076857600080fd5b50610783600480360381019061077e919061417b565b611bec565b6040516107909190613dd7565b60405180910390f35b3480156107a557600080fd5b506107ae611c57565b6040516107bb9190613eba565b60405180910390f35b3480156107d057600080fd5b506107d9611ce9565b6040516107e69190613e0f565b60405180910390f35b3480156107fb57600080fd5b50610804611d81565b60405161081191906141ca565b60405180910390f35b34801561082657600080fd5b5061082f611e19565b60405161083c91906140f9565b60405180910390f35b34801561085157600080fd5b5061086c6004803603810190610867919061438f565b611e20565b005b34801561087a57600080fd5b50610883611e36565b6040516108909190613e0f565b60405180910390f35b6108b360048036038101906108ae91906143fb565b611e5a565b005b3480156108c157600080fd5b506108dc60048036038101906108d791906144c9565b612086565b005b3480156108ea57600080fd5b506108f36120e8565b6040516109009190613e0f565b60405180910390f35b34801561091557600080fd5b50610930600480360381019061092b9190613f12565b612180565b60405161093d9190613eba565b60405180910390f35b34801561095257600080fd5b5061095b61229e565b6040516109689190613e0f565b60405180910390f35b34801561097d57600080fd5b506109866122c2565b60405161099391906141ca565b60405180910390f35b3480156109a857600080fd5b506109c360048036038101906109be919061417b565b61235a565b005b6109df60048036038101906109da91906145ac565b61237b565b005b3480156109ed57600080fd5b506109f66125ba565b604051610a039190613eba565b60405180910390f35b348015610a1857600080fd5b50610a336004803603810190610a2e919061460c565b61260e565b604051610a409190613dd7565b60405180910390f35b348015610a5557600080fd5b50610a706004803603810190610a6b9190614007565b6126a2565b005b6000610a7d826126dd565b80610a8d5750610a8c82612757565b5b9050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047fc9aa6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b279190614661565b905090565b606060008054610b3b906146bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610b67906146bd565b8015610bb45780601f10610b8957610100808354040283529160200191610bb4565b820191906000526020600020905b815481529060010190602001808311610b9757829003601f168201915b5050505050905090565b6000610bc982612839565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0f8261162c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7690614760565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c9e612884565b73ffffffffffffffffffffffffffffffffffffffff161480610ccd5750610ccc81610cc7612884565b61260e565b5b610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d03906147f2565b60405180910390fd5b610d16838361288c565b505050565b610d286000801b33611bec565b610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e9061485e565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631d82aaf56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610e5357600080fd5b505af1158015610e67573d6000803e3d6000fd5b5050505050565b610e7f610e79612884565b82612945565b610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb5906148f0565b60405180910390fd5b610ec98383836129da565b505050565b600060076000838152602001908152602001600020600101549050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610f6a57507f000000000000000000000000000000000000000000000000000000000000000081145b610fa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa09061495c565b60405180910390fd5b610fb38484612cd3565b8373ffffffffffffffffffffffffffffffffffffffff167ffd8041fd7e4d7047a13bde415402e7278ad32792f9bdf46102a274181893cc948385610ff687612180565b6040516110059392919061497c565b60405180910390a250505050565b61101b612cf1565b7f000000000000000000000000000000000000000000000000000000000000000082036110d05761108e7f0000000000000000000000000000000000000000000000000000000000000000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661235a565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6110da8282612d6f565b5050565b6110e6612884565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90614a2c565b60405180910390fd5b61115d8282612d90565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6111926000801b33611bec565b6111d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c89061485e565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6112636000801b33611bec565b6112a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112999061485e565b60405180910390fd5b6112aa612e72565b565b6112c783838360405180602001604052806000815250612086565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344d19d2b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561133b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135f9190614661565b905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061140d5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80156114385750807f0000000000000000000000000000000000000000000000000000000000000000145b611477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146e90614abe565b60405180910390fd5b50565b6000600660149054906101000a900460ff16905090565b6114bb7f000000000000000000000000000000000000000000000000000000000000000033611bec565b6114fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f190614b2a565b60405180910390fd5b611502612ed5565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d41f5d733836040518363ffffffff1660e01b815260040161155f929190614b4a565b600060405180830381600087803b15801561157957600080fd5b505af115801561158d573d6000803e3d6000fd5b5050505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636301c70f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611603573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116279190614661565b905090565b60008061163883612f1f565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a090614bbf565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171990614c51565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611771612cf1565b61177b6000612f5c565b565b61178a6000801b33611bec565b6117c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c09061485e565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663724e78da826040518263ffffffff1660e01b81526004016118249190613f80565b600060405180830381600087803b15801561183e57600080fd5b505af1158015611852573d6000803e3d6000fd5b5050505050565b6118666000801b33611bec565b6118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189c9061485e565b60405180910390fd5b7f30d83f6ff3d3910bd7ca9b7532cf2c3c5e89240f7573ac91f79af44b9e28663f60405160405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ceb23816040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561193b57600080fd5b505af115801561194f573d6000803e3d6000fd5b50505050565b6119626000801b33611bec565b6119a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119989061485e565b60405180910390fd5b6119a9613022565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119e26000801b33611bec565b611a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a189061485e565b60405180910390fd5b8060099081611a309190614e1d565b506000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c062b6fa6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac49190614661565b905060008161ffff1614611b19577f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6000600183611b029190614f1e565b604051611b10929190614fc0565b60405180910390a15b5050565b611b25612cf1565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391b7f5ed826040518263ffffffff1660e01b8152600401611b8091906141ca565b600060405180830381600087803b158015611b9a57600080fd5b505af1158015611bae573d6000803e3d6000fd5b505050507f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe081604051611be191906141ca565b60405180910390a150565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054611c66906146bd565b80601f0160208091040260200160405190810160405280929190818152602001828054611c92906146bd565b8015611cdf5780601f10611cb457610100808354040283529160200191611cdf565b820191906000526020600020905b815481529060010190602001808311611cc257829003601f168201915b5050505050905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc5c94a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7c9190614661565b905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e149190614ffe565b905090565b6000801b81565b611e32611e2b612884565b8383613085565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611e62612ed5565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad7a85d8338534600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f379190614ffe565b611f617f000000000000000000000000000000000000000000000000000000000000000033611bec565b6040518663ffffffff1660e01b8152600401611f8195949392919061502b565b60408051808303816000875af1158015611f9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc391906150b4565b915091506000811315612018573373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612016573d6000803e3d6000fd5b505b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015612080573d6000803e3d6000fd5b50505050565b612097612091612884565b83612945565b6120d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cd906148f0565b60405180910390fd5b6120e2848484846131f1565b50505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c062b6fa6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612157573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217b9190614661565b905090565b606061218b8261324d565b6121ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c190615166565b60405180910390fd5b6000600980546121d9906146bd565b9050116121f55760405180602001604052806000815250612297565b60098273c6df08b52b03269dbf477a9f7c081fa08c62ceff636900a3ae90916040518263ffffffff1660e01b81526004016122309190615195565b600060405180830381865af415801561224d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122769190615220565b604051602001612287929190615374565b6040516020818303038152906040525b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d41edb7b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612331573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123559190614ffe565b905090565b61236382610ece565b61236c8161328e565b6123768383612d90565b505050565b6123a57f000000000000000000000000000000000000000000000000000000000000000033611bec565b6123e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123db906153ef565b60405180910390fd5b60005b838390508110156125b457600061241685858481811061240a5761240961540f565b5b9050602002013561162c565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc8686905034612441919061546d565b9081150290604051600060405180830381858888f1935050505015801561246c573d6000803e3d6000fd5b5061248f8585848181106124835761248261540f565b5b905060200201356132a2565b8261252257600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631043ecfc836040518263ffffffff1660e01b81526004016124ef91906141ca565b600060405180830381600087803b15801561250957600080fd5b505af115801561251d573d6000803e3d6000fd5b505050505b7f3367befd2b2f39615cd79917c2153263c4af1d3945ec003e5d5bfc13a8d85833818686905034612553919061546d565b604051612561929190614b4a565b60405180910390a17ff20b2822e5b23bbd8f6a8403d33b35d15c70c1b08311f66ab320995806ebbcf08260405161259891906141ca565b60405180910390a15080806125ac9061549e565b9150506123e7565b50505050565b60606000600980546125cb906146bd565b9050116125e75760405180602001604052806000815250612609565b60096040516020016125f99190615532565b6040516020818303038152906040525b905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6126aa612cf1565b60006126b46119ab565b90506126bf826133f0565b6126cc6000801b8261235a565b6126d96000801b83611013565b5050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612750575061274f82612757565b5b9050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061282257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612832575061283182613473565b5b9050919050565b6128428161324d565b612881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287890614bbf565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128ff8361162c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806129518361162c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806129935750612992818561260e565b5b806129d157508373ffffffffffffffffffffffffffffffffffffffff166129b984610bbe565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129fa8261162c565b73ffffffffffffffffffffffffffffffffffffffff1614612a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a47906155c6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab690615658565b60405180910390fd5b612acc83838360016134dd565b8273ffffffffffffffffffffffffffffffffffffffff16612aec8261162c565b73ffffffffffffffffffffffffffffffffffffffff1614612b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b39906155c6565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612cce83838360016134e3565b505050565b612ced8282604051806020016040528060008152506134e9565b5050565b612cf9612884565b73ffffffffffffffffffffffffffffffffffffffff16612d176119ab565b73ffffffffffffffffffffffffffffffffffffffff1614612d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d64906156c4565b60405180910390fd5b565b612d7882610ece565b612d818161328e565b612d8b8383613544565b505050565b612d9a8282611bec565b15612e6e5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612e13612884565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b612e7a613625565b6000600660146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612ebe612884565b604051612ecb9190613f80565b60405180910390a1565b612edd61147a565b15612f1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1490615730565b60405180910390fd5b565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61302a612ed5565b6001600660146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861306e612884565b60405161307b9190613f80565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ea9061579c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131e49190613dd7565b60405180910390a3505050565b6131fc8484846129da565b6132088484848461366e565b613247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323e9061582e565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661326f83612f1f565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61329f8161329a612884565b6137f5565b50565b60006132ad8261162c565b90506132bd8160008460016134dd565b6132c68261162c565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133ec8160008460016134e3565b5050565b6133f8612cf1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613467576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345e906158c0565b60405180910390fd5b61347081612f5c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b50505050565b6134f3838361387a565b613500600084848461366e565b61353f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135369061582e565b60405180910390fd5b505050565b61354e8282611bec565b6136215760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506135c6612884565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61362d61147a565b61366c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136639061592c565b60405180910390fd5b565b600061368f8473ffffffffffffffffffffffffffffffffffffffff16613a97565b156137e8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136b8612884565b8786866040518563ffffffff1660e01b81526004016136da94939291906159a1565b6020604051808303816000875af192505050801561371657506040513d601f19601f820116820180604052508101906137139190615a02565b60015b613798573d8060008114613746576040519150601f19603f3d011682016040523d82523d6000602084013e61374b565b606091505b506000815103613790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137879061582e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137ed565b600190505b949350505050565b6137ff8282611bec565b6138765761380c81613aba565b61381a8360001c6020613ae7565b60405160200161382b929190615ac7565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161386d9190613eba565b60405180910390fd5b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036138e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e090615b4d565b60405180910390fd5b6138f28161324d565b15613932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161392990615bb9565b60405180910390fd5b6139406000838360016134dd565b6139498161324d565b15613989576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161398090615bb9565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a936000838360016134e3565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060613ae08273ffffffffffffffffffffffffffffffffffffffff16601460ff16613ae7565b9050919050565b606060006002836002613afa9190615bd9565b613b049190615c1b565b67ffffffffffffffff811115613b1d57613b1c6141ef565b5b6040519080825280601f01601f191660200182016040528015613b4f5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613b8757613b8661540f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613beb57613bea61540f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613c2b9190615bd9565b613c359190615c1b565b90505b6001811115613cd5577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613c7757613c7661540f565b5b1a60f81b828281518110613c8e57613c8d61540f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613cce90615c4f565b9050613c38565b5060008414613d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d1090615cc4565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d6c81613d37565b8114613d7757600080fd5b50565b600081359050613d8981613d63565b92915050565b600060208284031215613da557613da4613d2d565b5b6000613db384828501613d7a565b91505092915050565b60008115159050919050565b613dd181613dbc565b82525050565b6000602082019050613dec6000830184613dc8565b92915050565b600061ffff82169050919050565b613e0981613df2565b82525050565b6000602082019050613e246000830184613e00565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e64578082015181840152602081019050613e49565b60008484015250505050565b6000601f19601f8301169050919050565b6000613e8c82613e2a565b613e968185613e35565b9350613ea6818560208601613e46565b613eaf81613e70565b840191505092915050565b60006020820190508181036000830152613ed48184613e81565b905092915050565b6000819050919050565b613eef81613edc565b8114613efa57600080fd5b50565b600081359050613f0c81613ee6565b92915050565b600060208284031215613f2857613f27613d2d565b5b6000613f3684828501613efd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f6a82613f3f565b9050919050565b613f7a81613f5f565b82525050565b6000602082019050613f956000830184613f71565b92915050565b613fa481613f5f565b8114613faf57600080fd5b50565b600081359050613fc181613f9b565b92915050565b60008060408385031215613fde57613fdd613d2d565b5b6000613fec85828601613fb2565b9250506020613ffd85828601613efd565b9150509250929050565b60006020828403121561401d5761401c613d2d565b5b600061402b84828501613fb2565b91505092915050565b60008060006060848603121561404d5761404c613d2d565b5b600061405b86828701613fb2565b935050602061406c86828701613fb2565b925050604061407d86828701613efd565b9150509250925092565b6000819050919050565b61409a81614087565b81146140a557600080fd5b50565b6000813590506140b781614091565b92915050565b6000602082840312156140d3576140d2613d2d565b5b60006140e1848285016140a8565b91505092915050565b6140f381614087565b82525050565b600060208201905061410e60008301846140ea565b92915050565b6000806000806080858703121561412e5761412d613d2d565b5b600061413c87828801613fb2565b945050602061414d87828801613efd565b935050604061415e87828801613efd565b925050606061416f878288016140a8565b91505092959194509250565b6000806040838503121561419257614191613d2d565b5b60006141a0858286016140a8565b92505060206141b185828601613fb2565b9150509250929050565b6141c481613edc565b82525050565b60006020820190506141df60008301846141bb565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61422782613e70565b810181811067ffffffffffffffff82111715614246576142456141ef565b5b80604052505050565b6000614259613d23565b9050614265828261421e565b919050565b600067ffffffffffffffff821115614285576142846141ef565b5b61428e82613e70565b9050602081019050919050565b82818337600083830152505050565b60006142bd6142b88461426a565b61424f565b9050828152602081018484840111156142d9576142d86141ea565b5b6142e484828561429b565b509392505050565b600082601f830112614301576143006141e5565b5b81356143118482602086016142aa565b91505092915050565b6000602082840312156143305761432f613d2d565b5b600082013567ffffffffffffffff81111561434e5761434d613d32565b5b61435a848285016142ec565b91505092915050565b61436c81613dbc565b811461437757600080fd5b50565b60008135905061438981614363565b92915050565b600080604083850312156143a6576143a5613d2d565b5b60006143b485828601613fb2565b92505060206143c58582860161437a565b9150509250929050565b6143d881613df2565b81146143e357600080fd5b50565b6000813590506143f5816143cf565b92915050565b60006020828403121561441157614410613d2d565b5b600061441f848285016143e6565b91505092915050565b600067ffffffffffffffff821115614443576144426141ef565b5b61444c82613e70565b9050602081019050919050565b600061446c61446784614428565b61424f565b905082815260208101848484011115614488576144876141ea565b5b61449384828561429b565b509392505050565b600082601f8301126144b0576144af6141e5565b5b81356144c0848260208601614459565b91505092915050565b600080600080608085870312156144e3576144e2613d2d565b5b60006144f187828801613fb2565b945050602061450287828801613fb2565b935050604061451387828801613efd565b925050606085013567ffffffffffffffff81111561453457614533613d32565b5b6145408782880161449b565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261456c5761456b6141e5565b5b8235905067ffffffffffffffff8111156145895761458861454c565b5b6020830191508360208202830111156145a5576145a4614551565b5b9250929050565b6000806000604084860312156145c5576145c4613d2d565b5b600084013567ffffffffffffffff8111156145e3576145e2613d32565b5b6145ef86828701614556565b935093505060206146028682870161437a565b9150509250925092565b6000806040838503121561462357614622613d2d565b5b600061463185828601613fb2565b925050602061464285828601613fb2565b9150509250929050565b60008151905061465b816143cf565b92915050565b60006020828403121561467757614676613d2d565b5b60006146858482850161464c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146d557607f821691505b6020821081036146e8576146e761468e565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061474a602183613e35565b9150614755826146ee565b604082019050919050565b600060208201905081810360008301526147798161473d565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006147dc603d83613e35565b91506147e782614780565b604082019050919050565b6000602082019050818103600083015261480b816147cf565b9050919050565b7f43616c6c6572206973206e6f74206f776e6572206f722061646d696e00000000600082015250565b6000614848601c83613e35565b915061485382614812565b602082019050919050565b600060208201905081810360008301526148778161483b565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006148da602d83613e35565b91506148e58261487e565b604082019050919050565b60006020820190508181036000830152614909816148cd565b9050919050565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b6000614946600c83613e35565b915061495182614910565b602082019050919050565b6000602082019050818103600083015261497581614939565b9050919050565b600060608201905061499160008301866141bb565b61499e60208301856141bb565b81810360408301526149b08184613e81565b9050949350505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614a16602f83613e35565b9150614a21826149ba565b604082019050919050565b60006020820190508181036000830152614a4581614a09565b9050919050565b7f436f6e74726163742063616c6c6572206973206e6f7420617574686f72697a6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614aa8602183613e35565b9150614ab382614a4c565b604082019050919050565b60006020820190508181036000830152614ad781614a9b565b9050919050565b7f43616c6c6572206973206e6f742072657365727665206d696e74657200000000600082015250565b6000614b14601c83613e35565b9150614b1f82614ade565b602082019050919050565b60006020820190508181036000830152614b4381614b07565b9050919050565b6000604082019050614b5f6000830185613f71565b614b6c60208301846141bb565b9392505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614ba9601883613e35565b9150614bb482614b73565b602082019050919050565b60006020820190508181036000830152614bd881614b9c565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614c3b602983613e35565b9150614c4682614bdf565b604082019050919050565b60006020820190508181036000830152614c6a81614c2e565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614cd37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c96565b614cdd8683614c96565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614d1a614d15614d1084613edc565b614cf5565b613edc565b9050919050565b6000819050919050565b614d3483614cff565b614d48614d4082614d21565b848454614ca3565b825550505050565b600090565b614d5d614d50565b614d68818484614d2b565b505050565b5b81811015614d8c57614d81600082614d55565b600181019050614d6e565b5050565b601f821115614dd157614da281614c71565b614dab84614c86565b81016020851015614dba578190505b614dce614dc685614c86565b830182614d6d565b50505b505050565b600082821c905092915050565b6000614df460001984600802614dd6565b1980831691505092915050565b6000614e0d8383614de3565b9150826002028217905092915050565b614e2682613e2a565b67ffffffffffffffff811115614e3f57614e3e6141ef565b5b614e4982546146bd565b614e54828285614d90565b600060209050601f831160018114614e875760008415614e75578287015190505b614e7f8582614e01565b865550614ee7565b601f198416614e9586614c71565b60005b82811015614ebd57848901518255600182019150602085019450602081019050614e98565b86831015614eda5784890151614ed6601f891682614de3565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f2982613df2565b9150614f3483613df2565b9250828203905061ffff811115614f4e57614f4d614eef565b5b92915050565b6000819050919050565b6000614f79614f74614f6f84614f54565b614cf5565b613edc565b9050919050565b614f8981614f5e565b82525050565b6000614faa614fa5614fa084613df2565b614cf5565b613edc565b9050919050565b614fba81614f8f565b82525050565b6000604082019050614fd56000830185614f80565b614fe26020830184614fb1565b9392505050565b600081519050614ff881613ee6565b92915050565b60006020828403121561501457615013613d2d565b5b600061502284828501614fe9565b91505092915050565b600060a0820190506150406000830188613f71565b61504d6020830187613e00565b61505a60408301866141bb565b61506760608301856141bb565b6150746080830184613dc8565b9695505050505050565b6000819050919050565b6150918161507e565b811461509c57600080fd5b50565b6000815190506150ae81615088565b92915050565b600080604083850312156150cb576150ca613d2d565b5b60006150d985828601614fe9565b92505060206150ea8582860161509f565b9150509250929050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615150602f83613e35565b915061515b826150f4565b604082019050919050565b6000602082019050818103600083015261517f81615143565b9050919050565b61518f81613edc565b82525050565b60006020820190506151aa6000830184615186565b92915050565b60006151c36151be8461426a565b61424f565b9050828152602081018484840111156151df576151de6141ea565b5b6151ea848285613e46565b509392505050565b600082601f830112615207576152066141e5565b5b81516152178482602086016151b0565b91505092915050565b60006020828403121561523657615235613d2d565b5b600082015167ffffffffffffffff81111561525457615253613d32565b5b615260848285016151f2565b91505092915050565b600081905092915050565b60008154615281816146bd565b61528b8186615269565b945060018216600081146152a657600181146152bb576152ee565b60ff19831686528115158202860193506152ee565b6152c485614c71565b60005b838110156152e6578154818901526001820191506020810190506152c7565b838801955050505b50505092915050565b7f2f6e66742f000000000000000000000000000000000000000000000000000000600082015250565b600061532d600583615269565b9150615338826152f7565b600582019050919050565b600061534e82613e2a565b6153588185615269565b9350615368818560208601613e46565b80840191505092915050565b60006153808285615274565b915061538b82615320565b91506153978284615343565b91508190509392505050565b7f43616c6c6572206973206e6f74206465706f736974206163636f756e74000000600082015250565b60006153d9601d83613e35565b91506153e4826153a3565b602082019050919050565b60006020820190508181036000830152615408816153cc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061547882613edc565b915061548383613edc565b9250826154935761549261543e565b5b828204905092915050565b60006154a982613edc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036154db576154da614eef565b5b600182019050919050565b7f2f6d657461646174610000000000000000000000000000000000000000000000600082015250565b600061551c600983615269565b9150615527826154e6565b600982019050919050565b600061553e8284615274565b91506155498261550f565b915081905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006155b0602583613e35565b91506155bb82615554565b604082019050919050565b600060208201905081810360008301526155df816155a3565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615642602483613e35565b915061564d826155e6565b604082019050919050565b6000602082019050818103600083015261567181615635565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156ae602083613e35565b91506156b982615678565b602082019050919050565b600060208201905081810360008301526156dd816156a1565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061571a601083613e35565b9150615725826156e4565b602082019050919050565b600060208201905081810360008301526157498161570d565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615786601983613e35565b915061579182615750565b602082019050919050565b600060208201905081810360008301526157b581615779565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615818603283613e35565b9150615823826157bc565b604082019050919050565b600060208201905081810360008301526158478161580b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158aa602683613e35565b91506158b58261584e565b604082019050919050565b600060208201905081810360008301526158d98161589d565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615916601483613e35565b9150615921826158e0565b602082019050919050565b6000602082019050818103600083015261594581615909565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159738261594c565b61597d8185615957565b935061598d818560208601613e46565b61599681613e70565b840191505092915050565b60006080820190506159b66000830187613f71565b6159c36020830186613f71565b6159d060408301856141bb565b81810360608301526159e28184615968565b905095945050505050565b6000815190506159fc81613d63565b92915050565b600060208284031215615a1857615a17613d2d565b5b6000615a26848285016159ed565b91505092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615a65601783615269565b9150615a7082615a2f565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615ab1601183615269565b9150615abc82615a7b565b601182019050919050565b6000615ad282615a58565b9150615ade8285615343565b9150615ae982615aa4565b9150615af58284615343565b91508190509392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615b37602083613e35565b9150615b4282615b01565b602082019050919050565b60006020820190508181036000830152615b6681615b2a565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ba3601c83613e35565b9150615bae82615b6d565b602082019050919050565b60006020820190508181036000830152615bd281615b96565b9050919050565b6000615be482613edc565b9150615bef83613edc565b9250828202615bfd81613edc565b91508282048414831517615c1457615c13614eef565b5b5092915050565b6000615c2682613edc565b9150615c3183613edc565b9250828201905080821115615c4957615c48614eef565b5b92915050565b6000615c5a82613edc565b915060008203615c6d57615c6c614eef565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615cae602083613e35565b9150615cb982615c78565b602082019050919050565b60006020820190508181036000830152615cdd81615ca1565b905091905056fea264697066735822122099fb16145317c602776f64f30712dcf8ad2c24ed9efb86ee738593fd8a1aedbe64736f6c6343000813003342b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e0000000000000000000000001a4fb4754d5c10cd2853ea007337e6ca273371762d2d107031ed7c4c035237ea2b3215b54c18ebe335aeeda4567db5e027d8fd1f000000000000000000000000cdeca827dcd3e56521b48187686e0fe13e7acd6600000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000fc387cc87ec6a7be23597e6ac94ff7a468800347bc8b372cec650e71c3a321c61
Deployed Bytecode
0x6080604052600436106102885760003560e01c8063724e78da1161015a578063a336bf6c116100c1578063d41edb7b1161007a578063d41edb7b14610971578063d547741f1461099c578063d7dc3c05146109c5578063e8a3d485146109e1578063e985e9c514610a0c578063f2fde38b14610a4957610288565b8063a336bf6c1461086e578063a39e9a2f14610899578063b88d4fde146108b5578063c062b6fa146108de578063c87b56dd14610909578063cecd97511461094657610288565b806391d148541161011357806391d148541461075c57806395d89b41146107995780639dc5c94a146107c4578063a035b1fe146107ef578063a217fddf1461081a578063a22cb4651461084557610288565b8063724e78da146106885780637ceb2381146106b15780638456cb59146106c85780638da5cb5b146106df578063918b5be11461070a57806391b7f5ed1461073357610288565b8063378dc3dc116101fe5780635c975abb116101b75780635c975abb146105785780635dc69c28146105a35780636301c70f146105cc5780636352211e146105f757806370a0823114610634578063715018a61461067157610288565b8063378dc3dc146104905780633b53ac87146104bb5780633f4ba83a146104e457806342842e0e146104fb57806344d19d2b146105245780635c7c49c91461054f57610288565b8063191250d711610250578063191250d71461038657806323b872dd146103af578063248a9ca3146103d85780632d453b52146104155780632f2ff15d1461043e57806336568abe1461046757610288565b806301ffc9a71461028d578063047fc9aa146102ca57806306fdde03146102f5578063081812fc14610320578063095ea7b31461035d575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613d8f565b610a72565b6040516102c19190613dd7565b60405180910390f35b3480156102d657600080fd5b506102df610a94565b6040516102ec9190613e0f565b60405180910390f35b34801561030157600080fd5b5061030a610b2c565b6040516103179190613eba565b60405180910390f35b34801561032c57600080fd5b5061034760048036038101906103429190613f12565b610bbe565b6040516103549190613f80565b60405180910390f35b34801561036957600080fd5b50610384600480360381019061037f9190613fc7565b610c04565b005b34801561039257600080fd5b506103ad60048036038101906103a89190614007565b610d1b565b005b3480156103bb57600080fd5b506103d660048036038101906103d19190614034565b610e6e565b005b3480156103e457600080fd5b506103ff60048036038101906103fa91906140bd565b610ece565b60405161040c91906140f9565b60405180910390f35b34801561042157600080fd5b5061043c60048036038101906104379190614114565b610eee565b005b34801561044a57600080fd5b506104656004803603810190610460919061417b565b611013565b005b34801561047357600080fd5b5061048e6004803603810190610489919061417b565b6110de565b005b34801561049c57600080fd5b506104a5611161565b6040516104b29190613e0f565b60405180910390f35b3480156104c757600080fd5b506104e260048036038101906104dd9190614007565b611185565b005b3480156104f057600080fd5b506104f9611256565b005b34801561050757600080fd5b50610522600480360381019061051d9190614034565b6112ac565b005b34801561053057600080fd5b506105396112cc565b6040516105469190613e0f565b60405180910390f35b34801561055b57600080fd5b50610576600480360381019061057191906140bd565b611364565b005b34801561058457600080fd5b5061058d61147a565b60405161059a9190613dd7565b60405180910390f35b3480156105af57600080fd5b506105ca60048036038101906105c59190613f12565b611491565b005b3480156105d857600080fd5b506105e1611594565b6040516105ee9190613e0f565b60405180910390f35b34801561060357600080fd5b5061061e60048036038101906106199190613f12565b61162c565b60405161062b9190613f80565b60405180910390f35b34801561064057600080fd5b5061065b60048036038101906106569190614007565b6116b2565b60405161066891906141ca565b60405180910390f35b34801561067d57600080fd5b50610686611769565b005b34801561069457600080fd5b506106af60048036038101906106aa9190614007565b61177d565b005b3480156106bd57600080fd5b506106c6611859565b005b3480156106d457600080fd5b506106dd611955565b005b3480156106eb57600080fd5b506106f46119ab565b6040516107019190613f80565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c919061431a565b6119d5565b005b34801561073f57600080fd5b5061075a60048036038101906107559190613f12565b611b1d565b005b34801561076857600080fd5b50610783600480360381019061077e919061417b565b611bec565b6040516107909190613dd7565b60405180910390f35b3480156107a557600080fd5b506107ae611c57565b6040516107bb9190613eba565b60405180910390f35b3480156107d057600080fd5b506107d9611ce9565b6040516107e69190613e0f565b60405180910390f35b3480156107fb57600080fd5b50610804611d81565b60405161081191906141ca565b60405180910390f35b34801561082657600080fd5b5061082f611e19565b60405161083c91906140f9565b60405180910390f35b34801561085157600080fd5b5061086c6004803603810190610867919061438f565b611e20565b005b34801561087a57600080fd5b50610883611e36565b6040516108909190613e0f565b60405180910390f35b6108b360048036038101906108ae91906143fb565b611e5a565b005b3480156108c157600080fd5b506108dc60048036038101906108d791906144c9565b612086565b005b3480156108ea57600080fd5b506108f36120e8565b6040516109009190613e0f565b60405180910390f35b34801561091557600080fd5b50610930600480360381019061092b9190613f12565b612180565b60405161093d9190613eba565b60405180910390f35b34801561095257600080fd5b5061095b61229e565b6040516109689190613e0f565b60405180910390f35b34801561097d57600080fd5b506109866122c2565b60405161099391906141ca565b60405180910390f35b3480156109a857600080fd5b506109c360048036038101906109be919061417b565b61235a565b005b6109df60048036038101906109da91906145ac565b61237b565b005b3480156109ed57600080fd5b506109f66125ba565b604051610a039190613eba565b60405180910390f35b348015610a1857600080fd5b50610a336004803603810190610a2e919061460c565b61260e565b604051610a409190613dd7565b60405180910390f35b348015610a5557600080fd5b50610a706004803603810190610a6b9190614007565b6126a2565b005b6000610a7d826126dd565b80610a8d5750610a8c82612757565b5b9050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047fc9aa6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b279190614661565b905090565b606060008054610b3b906146bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610b67906146bd565b8015610bb45780601f10610b8957610100808354040283529160200191610bb4565b820191906000526020600020905b815481529060010190602001808311610b9757829003601f168201915b5050505050905090565b6000610bc982612839565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0f8261162c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7690614760565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c9e612884565b73ffffffffffffffffffffffffffffffffffffffff161480610ccd5750610ccc81610cc7612884565b61260e565b5b610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d03906147f2565b60405180910390fd5b610d16838361288c565b505050565b610d286000801b33611bec565b610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e9061485e565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631d82aaf56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610e5357600080fd5b505af1158015610e67573d6000803e3d6000fd5b5050505050565b610e7f610e79612884565b82612945565b610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb5906148f0565b60405180910390fd5b610ec98383836129da565b505050565b600060076000838152602001908152602001600020600101549050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610f6a57507fc387cc87ec6a7be23597e6ac94ff7a468800347bc8b372cec650e71c3a321c6181145b610fa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa09061495c565b60405180910390fd5b610fb38484612cd3565b8373ffffffffffffffffffffffffffffffffffffffff167ffd8041fd7e4d7047a13bde415402e7278ad32792f9bdf46102a274181893cc948385610ff687612180565b6040516110059392919061497c565b60405180910390a250505050565b61101b612cf1565b7f42b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e82036110d05761108e7f42b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661235a565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6110da8282612d6f565b5050565b6110e6612884565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90614a2c565b60405180910390fd5b61115d8282612d90565b5050565b7f00000000000000000000000000000000000000000000000000000000000005dc81565b6111926000801b33611bec565b6111d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c89061485e565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6112636000801b33611bec565b6112a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112999061485e565b60405180910390fd5b6112aa612e72565b565b6112c783838360405180602001604052806000815250612086565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344d19d2b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561133b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135f9190614661565b905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061140d5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80156114385750807fc387cc87ec6a7be23597e6ac94ff7a468800347bc8b372cec650e71c3a321c61145b611477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146e90614abe565b60405180910390fd5b50565b6000600660149054906101000a900460ff16905090565b6114bb7f2d2d107031ed7c4c035237ea2b3215b54c18ebe335aeeda4567db5e027d8fd1f33611bec565b6114fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f190614b2a565b60405180910390fd5b611502612ed5565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d41f5d733836040518363ffffffff1660e01b815260040161155f929190614b4a565b600060405180830381600087803b15801561157957600080fd5b505af115801561158d573d6000803e3d6000fd5b5050505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636301c70f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611603573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116279190614661565b905090565b60008061163883612f1f565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a090614bbf565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171990614c51565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611771612cf1565b61177b6000612f5c565b565b61178a6000801b33611bec565b6117c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c09061485e565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663724e78da826040518263ffffffff1660e01b81526004016118249190613f80565b600060405180830381600087803b15801561183e57600080fd5b505af1158015611852573d6000803e3d6000fd5b5050505050565b6118666000801b33611bec565b6118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189c9061485e565b60405180910390fd5b7f30d83f6ff3d3910bd7ca9b7532cf2c3c5e89240f7573ac91f79af44b9e28663f60405160405180910390a1600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ceb23816040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561193b57600080fd5b505af115801561194f573d6000803e3d6000fd5b50505050565b6119626000801b33611bec565b6119a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119989061485e565b60405180910390fd5b6119a9613022565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119e26000801b33611bec565b611a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a189061485e565b60405180910390fd5b8060099081611a309190614e1d565b506000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c062b6fa6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac49190614661565b905060008161ffff1614611b19577f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6000600183611b029190614f1e565b604051611b10929190614fc0565b60405180910390a15b5050565b611b25612cf1565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391b7f5ed826040518263ffffffff1660e01b8152600401611b8091906141ca565b600060405180830381600087803b158015611b9a57600080fd5b505af1158015611bae573d6000803e3d6000fd5b505050507f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe081604051611be191906141ca565b60405180910390a150565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054611c66906146bd565b80601f0160208091040260200160405190810160405280929190818152602001828054611c92906146bd565b8015611cdf5780601f10611cb457610100808354040283529160200191611cdf565b820191906000526020600020905b815481529060010190602001808311611cc257829003601f168201915b5050505050905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc5c94a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7c9190614661565b905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e149190614ffe565b905090565b6000801b81565b611e32611e2b612884565b8383613085565b5050565b7f000000000000000000000000000000000000000000000000000000000000000f81565b611e62612ed5565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad7a85d8338534600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f379190614ffe565b611f617f42b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e33611bec565b6040518663ffffffff1660e01b8152600401611f8195949392919061502b565b60408051808303816000875af1158015611f9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc391906150b4565b915091506000811315612018573373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612016573d6000803e3d6000fd5b505b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015612080573d6000803e3d6000fd5b50505050565b612097612091612884565b83612945565b6120d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cd906148f0565b60405180910390fd5b6120e2848484846131f1565b50505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c062b6fa6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612157573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217b9190614661565b905090565b606061218b8261324d565b6121ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c190615166565b60405180910390fd5b6000600980546121d9906146bd565b9050116121f55760405180602001604052806000815250612297565b60098273c6df08b52b03269dbf477a9f7c081fa08c62ceff636900a3ae90916040518263ffffffff1660e01b81526004016122309190615195565b600060405180830381865af415801561224d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122769190615220565b604051602001612287929190615374565b6040516020818303038152906040525b9050919050565b7f00000000000000000000000000000000000000000000000000000000000001f481565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d41edb7b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612331573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123559190614ffe565b905090565b61236382610ece565b61236c8161328e565b6123768383612d90565b505050565b6123a57f42b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e33611bec565b6123e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123db906153ef565b60405180910390fd5b60005b838390508110156125b457600061241685858481811061240a5761240961540f565b5b9050602002013561162c565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc8686905034612441919061546d565b9081150290604051600060405180830381858888f1935050505015801561246c573d6000803e3d6000fd5b5061248f8585848181106124835761248261540f565b5b905060200201356132a2565b8261252257600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631043ecfc836040518263ffffffff1660e01b81526004016124ef91906141ca565b600060405180830381600087803b15801561250957600080fd5b505af115801561251d573d6000803e3d6000fd5b505050505b7f3367befd2b2f39615cd79917c2153263c4af1d3945ec003e5d5bfc13a8d85833818686905034612553919061546d565b604051612561929190614b4a565b60405180910390a17ff20b2822e5b23bbd8f6a8403d33b35d15c70c1b08311f66ab320995806ebbcf08260405161259891906141ca565b60405180910390a15080806125ac9061549e565b9150506123e7565b50505050565b60606000600980546125cb906146bd565b9050116125e75760405180602001604052806000815250612609565b60096040516020016125f99190615532565b6040516020818303038152906040525b905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6126aa612cf1565b60006126b46119ab565b90506126bf826133f0565b6126cc6000801b8261235a565b6126d96000801b83611013565b5050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612750575061274f82612757565b5b9050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061282257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612832575061283182613473565b5b9050919050565b6128428161324d565b612881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287890614bbf565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128ff8361162c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806129518361162c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806129935750612992818561260e565b5b806129d157508373ffffffffffffffffffffffffffffffffffffffff166129b984610bbe565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129fa8261162c565b73ffffffffffffffffffffffffffffffffffffffff1614612a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a47906155c6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab690615658565b60405180910390fd5b612acc83838360016134dd565b8273ffffffffffffffffffffffffffffffffffffffff16612aec8261162c565b73ffffffffffffffffffffffffffffffffffffffff1614612b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b39906155c6565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612cce83838360016134e3565b505050565b612ced8282604051806020016040528060008152506134e9565b5050565b612cf9612884565b73ffffffffffffffffffffffffffffffffffffffff16612d176119ab565b73ffffffffffffffffffffffffffffffffffffffff1614612d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d64906156c4565b60405180910390fd5b565b612d7882610ece565b612d818161328e565b612d8b8383613544565b505050565b612d9a8282611bec565b15612e6e5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612e13612884565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b612e7a613625565b6000600660146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612ebe612884565b604051612ecb9190613f80565b60405180910390a1565b612edd61147a565b15612f1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1490615730565b60405180910390fd5b565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61302a612ed5565b6001600660146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861306e612884565b60405161307b9190613f80565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ea9061579c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131e49190613dd7565b60405180910390a3505050565b6131fc8484846129da565b6132088484848461366e565b613247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323e9061582e565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661326f83612f1f565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61329f8161329a612884565b6137f5565b50565b60006132ad8261162c565b90506132bd8160008460016134dd565b6132c68261162c565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133ec8160008460016134e3565b5050565b6133f8612cf1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613467576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345e906158c0565b60405180910390fd5b61347081612f5c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b50505050565b6134f3838361387a565b613500600084848461366e565b61353f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135369061582e565b60405180910390fd5b505050565b61354e8282611bec565b6136215760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506135c6612884565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61362d61147a565b61366c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136639061592c565b60405180910390fd5b565b600061368f8473ffffffffffffffffffffffffffffffffffffffff16613a97565b156137e8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136b8612884565b8786866040518563ffffffff1660e01b81526004016136da94939291906159a1565b6020604051808303816000875af192505050801561371657506040513d601f19601f820116820180604052508101906137139190615a02565b60015b613798573d8060008114613746576040519150601f19603f3d011682016040523d82523d6000602084013e61374b565b606091505b506000815103613790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137879061582e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137ed565b600190505b949350505050565b6137ff8282611bec565b6138765761380c81613aba565b61381a8360001c6020613ae7565b60405160200161382b929190615ac7565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161386d9190613eba565b60405180910390fd5b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036138e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e090615b4d565b60405180910390fd5b6138f28161324d565b15613932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161392990615bb9565b60405180910390fd5b6139406000838360016134dd565b6139498161324d565b15613989576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161398090615bb9565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a936000838360016134e3565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060613ae08273ffffffffffffffffffffffffffffffffffffffff16601460ff16613ae7565b9050919050565b606060006002836002613afa9190615bd9565b613b049190615c1b565b67ffffffffffffffff811115613b1d57613b1c6141ef565b5b6040519080825280601f01601f191660200182016040528015613b4f5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613b8757613b8661540f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613beb57613bea61540f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613c2b9190615bd9565b613c359190615c1b565b90505b6001811115613cd5577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613c7757613c7661540f565b5b1a60f81b828281518110613c8e57613c8d61540f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613cce90615c4f565b9050613c38565b5060008414613d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d1090615cc4565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d6c81613d37565b8114613d7757600080fd5b50565b600081359050613d8981613d63565b92915050565b600060208284031215613da557613da4613d2d565b5b6000613db384828501613d7a565b91505092915050565b60008115159050919050565b613dd181613dbc565b82525050565b6000602082019050613dec6000830184613dc8565b92915050565b600061ffff82169050919050565b613e0981613df2565b82525050565b6000602082019050613e246000830184613e00565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e64578082015181840152602081019050613e49565b60008484015250505050565b6000601f19601f8301169050919050565b6000613e8c82613e2a565b613e968185613e35565b9350613ea6818560208601613e46565b613eaf81613e70565b840191505092915050565b60006020820190508181036000830152613ed48184613e81565b905092915050565b6000819050919050565b613eef81613edc565b8114613efa57600080fd5b50565b600081359050613f0c81613ee6565b92915050565b600060208284031215613f2857613f27613d2d565b5b6000613f3684828501613efd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f6a82613f3f565b9050919050565b613f7a81613f5f565b82525050565b6000602082019050613f956000830184613f71565b92915050565b613fa481613f5f565b8114613faf57600080fd5b50565b600081359050613fc181613f9b565b92915050565b60008060408385031215613fde57613fdd613d2d565b5b6000613fec85828601613fb2565b9250506020613ffd85828601613efd565b9150509250929050565b60006020828403121561401d5761401c613d2d565b5b600061402b84828501613fb2565b91505092915050565b60008060006060848603121561404d5761404c613d2d565b5b600061405b86828701613fb2565b935050602061406c86828701613fb2565b925050604061407d86828701613efd565b9150509250925092565b6000819050919050565b61409a81614087565b81146140a557600080fd5b50565b6000813590506140b781614091565b92915050565b6000602082840312156140d3576140d2613d2d565b5b60006140e1848285016140a8565b91505092915050565b6140f381614087565b82525050565b600060208201905061410e60008301846140ea565b92915050565b6000806000806080858703121561412e5761412d613d2d565b5b600061413c87828801613fb2565b945050602061414d87828801613efd565b935050604061415e87828801613efd565b925050606061416f878288016140a8565b91505092959194509250565b6000806040838503121561419257614191613d2d565b5b60006141a0858286016140a8565b92505060206141b185828601613fb2565b9150509250929050565b6141c481613edc565b82525050565b60006020820190506141df60008301846141bb565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61422782613e70565b810181811067ffffffffffffffff82111715614246576142456141ef565b5b80604052505050565b6000614259613d23565b9050614265828261421e565b919050565b600067ffffffffffffffff821115614285576142846141ef565b5b61428e82613e70565b9050602081019050919050565b82818337600083830152505050565b60006142bd6142b88461426a565b61424f565b9050828152602081018484840111156142d9576142d86141ea565b5b6142e484828561429b565b509392505050565b600082601f830112614301576143006141e5565b5b81356143118482602086016142aa565b91505092915050565b6000602082840312156143305761432f613d2d565b5b600082013567ffffffffffffffff81111561434e5761434d613d32565b5b61435a848285016142ec565b91505092915050565b61436c81613dbc565b811461437757600080fd5b50565b60008135905061438981614363565b92915050565b600080604083850312156143a6576143a5613d2d565b5b60006143b485828601613fb2565b92505060206143c58582860161437a565b9150509250929050565b6143d881613df2565b81146143e357600080fd5b50565b6000813590506143f5816143cf565b92915050565b60006020828403121561441157614410613d2d565b5b600061441f848285016143e6565b91505092915050565b600067ffffffffffffffff821115614443576144426141ef565b5b61444c82613e70565b9050602081019050919050565b600061446c61446784614428565b61424f565b905082815260208101848484011115614488576144876141ea565b5b61449384828561429b565b509392505050565b600082601f8301126144b0576144af6141e5565b5b81356144c0848260208601614459565b91505092915050565b600080600080608085870312156144e3576144e2613d2d565b5b60006144f187828801613fb2565b945050602061450287828801613fb2565b935050604061451387828801613efd565b925050606085013567ffffffffffffffff81111561453457614533613d32565b5b6145408782880161449b565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261456c5761456b6141e5565b5b8235905067ffffffffffffffff8111156145895761458861454c565b5b6020830191508360208202830111156145a5576145a4614551565b5b9250929050565b6000806000604084860312156145c5576145c4613d2d565b5b600084013567ffffffffffffffff8111156145e3576145e2613d32565b5b6145ef86828701614556565b935093505060206146028682870161437a565b9150509250925092565b6000806040838503121561462357614622613d2d565b5b600061463185828601613fb2565b925050602061464285828601613fb2565b9150509250929050565b60008151905061465b816143cf565b92915050565b60006020828403121561467757614676613d2d565b5b60006146858482850161464c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146d557607f821691505b6020821081036146e8576146e761468e565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061474a602183613e35565b9150614755826146ee565b604082019050919050565b600060208201905081810360008301526147798161473d565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006147dc603d83613e35565b91506147e782614780565b604082019050919050565b6000602082019050818103600083015261480b816147cf565b9050919050565b7f43616c6c6572206973206e6f74206f776e6572206f722061646d696e00000000600082015250565b6000614848601c83613e35565b915061485382614812565b602082019050919050565b600060208201905081810360008301526148778161483b565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006148da602d83613e35565b91506148e58261487e565b604082019050919050565b60006020820190508181036000830152614909816148cd565b9050919050565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b6000614946600c83613e35565b915061495182614910565b602082019050919050565b6000602082019050818103600083015261497581614939565b9050919050565b600060608201905061499160008301866141bb565b61499e60208301856141bb565b81810360408301526149b08184613e81565b9050949350505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614a16602f83613e35565b9150614a21826149ba565b604082019050919050565b60006020820190508181036000830152614a4581614a09565b9050919050565b7f436f6e74726163742063616c6c6572206973206e6f7420617574686f72697a6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614aa8602183613e35565b9150614ab382614a4c565b604082019050919050565b60006020820190508181036000830152614ad781614a9b565b9050919050565b7f43616c6c6572206973206e6f742072657365727665206d696e74657200000000600082015250565b6000614b14601c83613e35565b9150614b1f82614ade565b602082019050919050565b60006020820190508181036000830152614b4381614b07565b9050919050565b6000604082019050614b5f6000830185613f71565b614b6c60208301846141bb565b9392505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614ba9601883613e35565b9150614bb482614b73565b602082019050919050565b60006020820190508181036000830152614bd881614b9c565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614c3b602983613e35565b9150614c4682614bdf565b604082019050919050565b60006020820190508181036000830152614c6a81614c2e565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614cd37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c96565b614cdd8683614c96565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614d1a614d15614d1084613edc565b614cf5565b613edc565b9050919050565b6000819050919050565b614d3483614cff565b614d48614d4082614d21565b848454614ca3565b825550505050565b600090565b614d5d614d50565b614d68818484614d2b565b505050565b5b81811015614d8c57614d81600082614d55565b600181019050614d6e565b5050565b601f821115614dd157614da281614c71565b614dab84614c86565b81016020851015614dba578190505b614dce614dc685614c86565b830182614d6d565b50505b505050565b600082821c905092915050565b6000614df460001984600802614dd6565b1980831691505092915050565b6000614e0d8383614de3565b9150826002028217905092915050565b614e2682613e2a565b67ffffffffffffffff811115614e3f57614e3e6141ef565b5b614e4982546146bd565b614e54828285614d90565b600060209050601f831160018114614e875760008415614e75578287015190505b614e7f8582614e01565b865550614ee7565b601f198416614e9586614c71565b60005b82811015614ebd57848901518255600182019150602085019450602081019050614e98565b86831015614eda5784890151614ed6601f891682614de3565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f2982613df2565b9150614f3483613df2565b9250828203905061ffff811115614f4e57614f4d614eef565b5b92915050565b6000819050919050565b6000614f79614f74614f6f84614f54565b614cf5565b613edc565b9050919050565b614f8981614f5e565b82525050565b6000614faa614fa5614fa084613df2565b614cf5565b613edc565b9050919050565b614fba81614f8f565b82525050565b6000604082019050614fd56000830185614f80565b614fe26020830184614fb1565b9392505050565b600081519050614ff881613ee6565b92915050565b60006020828403121561501457615013613d2d565b5b600061502284828501614fe9565b91505092915050565b600060a0820190506150406000830188613f71565b61504d6020830187613e00565b61505a60408301866141bb565b61506760608301856141bb565b6150746080830184613dc8565b9695505050505050565b6000819050919050565b6150918161507e565b811461509c57600080fd5b50565b6000815190506150ae81615088565b92915050565b600080604083850312156150cb576150ca613d2d565b5b60006150d985828601614fe9565b92505060206150ea8582860161509f565b9150509250929050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615150602f83613e35565b915061515b826150f4565b604082019050919050565b6000602082019050818103600083015261517f81615143565b9050919050565b61518f81613edc565b82525050565b60006020820190506151aa6000830184615186565b92915050565b60006151c36151be8461426a565b61424f565b9050828152602081018484840111156151df576151de6141ea565b5b6151ea848285613e46565b509392505050565b600082601f830112615207576152066141e5565b5b81516152178482602086016151b0565b91505092915050565b60006020828403121561523657615235613d2d565b5b600082015167ffffffffffffffff81111561525457615253613d32565b5b615260848285016151f2565b91505092915050565b600081905092915050565b60008154615281816146bd565b61528b8186615269565b945060018216600081146152a657600181146152bb576152ee565b60ff19831686528115158202860193506152ee565b6152c485614c71565b60005b838110156152e6578154818901526001820191506020810190506152c7565b838801955050505b50505092915050565b7f2f6e66742f000000000000000000000000000000000000000000000000000000600082015250565b600061532d600583615269565b9150615338826152f7565b600582019050919050565b600061534e82613e2a565b6153588185615269565b9350615368818560208601613e46565b80840191505092915050565b60006153808285615274565b915061538b82615320565b91506153978284615343565b91508190509392505050565b7f43616c6c6572206973206e6f74206465706f736974206163636f756e74000000600082015250565b60006153d9601d83613e35565b91506153e4826153a3565b602082019050919050565b60006020820190508181036000830152615408816153cc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061547882613edc565b915061548383613edc565b9250826154935761549261543e565b5b828204905092915050565b60006154a982613edc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036154db576154da614eef565b5b600182019050919050565b7f2f6d657461646174610000000000000000000000000000000000000000000000600082015250565b600061551c600983615269565b9150615527826154e6565b600982019050919050565b600061553e8284615274565b91506155498261550f565b915081905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006155b0602583613e35565b91506155bb82615554565b604082019050919050565b600060208201905081810360008301526155df816155a3565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615642602483613e35565b915061564d826155e6565b604082019050919050565b6000602082019050818103600083015261567181615635565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156ae602083613e35565b91506156b982615678565b602082019050919050565b600060208201905081810360008301526156dd816156a1565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061571a601083613e35565b9150615725826156e4565b602082019050919050565b600060208201905081810360008301526157498161570d565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615786601983613e35565b915061579182615750565b602082019050919050565b600060208201905081810360008301526157b581615779565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615818603283613e35565b9150615823826157bc565b604082019050919050565b600060208201905081810360008301526158478161580b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158aa602683613e35565b91506158b58261584e565b604082019050919050565b600060208201905081810360008301526158d98161589d565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615916601483613e35565b9150615921826158e0565b602082019050919050565b6000602082019050818103600083015261594581615909565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159738261594c565b61597d8185615957565b935061598d818560208601613e46565b61599681613e70565b840191505092915050565b60006080820190506159b66000830187613f71565b6159c36020830186613f71565b6159d060408301856141bb565b81810360608301526159e28184615968565b905095945050505050565b6000815190506159fc81613d63565b92915050565b600060208284031215615a1857615a17613d2d565b5b6000615a26848285016159ed565b91505092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615a65601783615269565b9150615a7082615a2f565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615ab1601183615269565b9150615abc82615a7b565b601182019050919050565b6000615ad282615a58565b9150615ade8285615343565b9150615ae982615aa4565b9150615af58284615343565b91508190509392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615b37602083613e35565b9150615b4282615b01565b602082019050919050565b60006020820190508181036000830152615b6681615b2a565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ba3601c83613e35565b9150615bae82615b6d565b602082019050919050565b60006020820190508181036000830152615bd281615b96565b9050919050565b6000615be482613edc565b9150615bef83613edc565b9250828202615bfd81613edc565b91508282048414831517615c1457615c13614eef565b5b5092915050565b6000615c2682613edc565b9150615c3183613edc565b9250828201905080821115615c4957615c48614eef565b5b92915050565b6000615c5a82613edc565b915060008203615c6d57615c6c614eef565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615cae602083613e35565b9150615cb982615c78565b602082019050919050565b60006020820190508181036000830152615cdd81615ca1565b905091905056fea264697066735822122099fb16145317c602776f64f30712dcf8ad2c24ed9efb86ee738593fd8a1aedbe64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
42b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e0000000000000000000000001a4fb4754d5c10cd2853ea007337e6ca273371762d2d107031ed7c4c035237ea2b3215b54c18ebe335aeeda4567db5e027d8fd1f000000000000000000000000cdeca827dcd3e56521b48187686e0fe13e7acd6600000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000fc387cc87ec6a7be23597e6ac94ff7a468800347bc8b372cec650e71c3a321c61
-----Decoded View---------------
Arg [0] : _depositRole (bytes32): 0x42b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e
Arg [1] : _depositAcct (address): 0x1a4fB4754d5C10cD2853Ea007337e6ca27337176
Arg [2] : _reserveRole (bytes32): 0x2d2d107031ed7c4c035237ea2b3215b54c18ebe335aeeda4567db5e027d8fd1f
Arg [3] : _reserveAcct (address): 0xcDeCa827DcD3e56521b48187686E0FE13E7ACd66
Arg [4] : _initialSupply (uint16): 1500
Arg [5] : _initialReservedSupply (uint16): 500
Arg [6] : _supplyPerDay (uint16): 15
Arg [7] : _callerKey (bytes32): 0xc387cc87ec6a7be23597e6ac94ff7a468800347bc8b372cec650e71c3a321c61
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 42b0cb3876e6fc041eb2f3e25b4a75fbe8234ad925f4dd99a68cc8179a34081e
Arg [1] : 0000000000000000000000001a4fb4754d5c10cd2853ea007337e6ca27337176
Arg [2] : 2d2d107031ed7c4c035237ea2b3215b54c18ebe335aeeda4567db5e027d8fd1f
Arg [3] : 000000000000000000000000cdeca827dcd3e56521b48187686e0fe13e7acd66
Arg [4] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [7] : c387cc87ec6a7be23597e6ac94ff7a468800347bc8b372cec650e71c3a321c61
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.