Source Code
Overview
ETH Balance
0.070000000000001629 ETH
Eth Value
$139.69 (@ $1,995.57/ETH)Latest 25 from a total of 1,413 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Purchase | 15296770 | 1301 days ago | IN | 1 wei | 0.00019969 | ||||
| Purchase | 15296770 | 1301 days ago | IN | 1 wei | 0.00019969 | ||||
| Purchase | 15296770 | 1301 days ago | IN | 1 wei | 0.00019969 | ||||
| Purchase | 15296770 | 1301 days ago | IN | 1 wei | 0.00019969 | ||||
| End Sale | 15257957 | 1307 days ago | IN | 0 ETH | 0.00106949 | ||||
| Purchase | 15256261 | 1307 days ago | IN | 1 wei | 0.00050791 | ||||
| Purchase | 15247562 | 1309 days ago | IN | 1 wei | 0.00033511 | ||||
| Purchase | 15247560 | 1309 days ago | IN | 1 wei | 0.00034085 | ||||
| Purchase | 15247560 | 1309 days ago | IN | 1 wei | 0.00034085 | ||||
| Purchase | 15247560 | 1309 days ago | IN | 1 wei | 0.00034085 | ||||
| Purchase | 15247559 | 1309 days ago | IN | 1 wei | 0.00233527 | ||||
| Purchase | 15247558 | 1309 days ago | IN | 1 wei | 0.00214904 | ||||
| Purchase | 15247558 | 1309 days ago | IN | 1 wei | 0.00227499 | ||||
| Purchase | 15247558 | 1309 days ago | IN | 1 wei | 0.00227499 | ||||
| Purchase | 15247558 | 1309 days ago | IN | 1 wei | 0.00227499 | ||||
| Purchase | 15247558 | 1309 days ago | IN | 1 wei | 0.00227499 | ||||
| Purchase | 15247557 | 1309 days ago | IN | 1 wei | 0.00248522 | ||||
| Purchase | 15247557 | 1309 days ago | IN | 1 wei | 0.00248522 | ||||
| Purchase | 15247557 | 1309 days ago | IN | 1 wei | 0.00248522 | ||||
| Purchase | 15247557 | 1309 days ago | IN | 1 wei | 0.00248522 | ||||
| Purchase | 15247557 | 1309 days ago | IN | 1 wei | 0.00232723 | ||||
| Purchase | 15247557 | 1309 days ago | IN | 1 wei | 0.00248522 | ||||
| Purchase | 15247556 | 1309 days ago | IN | 1 wei | 0.00214726 | ||||
| Purchase | 15247556 | 1309 days ago | IN | 1 wei | 0.00229303 | ||||
| Purchase | 15247556 | 1309 days ago | IN | 1 wei | 0.00214726 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Sale
Compiler Version
v0.7.6+commit.7338295f
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.7.6;
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/utils/ReentrancyGuard.sol';
import '../nft/ApexaNFT.sol';
import '../utils/Whitelist.sol';
contract Sale is Ownable, ReentrancyGuard, Whitelist {
using Address for address;
using Address for address payable;
using Counters for Counters.Counter;
ApexaNFT public immutable nft;
bool public onSale;
bool public onClaim;
uint256 public price;
uint256 public saleSupply;
uint256 public currentSupply;
uint256 public currentSaleId;
uint256 public claimSupply;
uint256 public currentClaim;
uint256 public currentClaimId;
string public Url;
uint256 public lastMintedInPreviousBatch;
mapping(uint256 => mapping(uint256 => bool)) public hasClaimed;
event Purchase(uint256 tokenId, address indexed buyer, uint256 price);
event Claimed(uint256 tokenId, address indexed user, uint256 claimedToken);
event SaleStarted(uint256 batchId, uint256 timestamp, uint256 count);
event SaleEnded(uint256 batchId, uint256 timestamp);
event ClaimStarted(uint256 claimId, uint256 timestamp, uint256 count);
event ClaimEnded(uint256 claimId, uint256 timestamp);
constructor(
address _nft,
uint256 _price,
string memory _url
) Ownable() ReentrancyGuard() {
require(bytes(_url).length > 0, 'Invalid url');
require(_nft.isContract(), 'Invalid NFT Address');
require(_price > 0, 'Invalid price');
nft = ApexaNFT(_nft);
price = _price;
Url = _url;
currentSaleId = 1; // sale 1 was already completed
}
/// @notice To start a sale
/// @dev Called by owner to start a sale
/// @param count no of tokens available for sale during the sale
function startSale(uint256 count) external onlyOwner returns (bool) {
require(onClaim == false, 'Claim is running');
require(onSale == false, 'Sale is already running');
onSale = true;
saleSupply = count;
currentSupply = 0;
currentSaleId++;
emit SaleStarted(currentSaleId, block.timestamp, count);
lastMintedInPreviousBatch = nft.totalSupply();
return true;
}
/// @notice To end a sale
/// @dev Called by owner to end a sale and update the last minted token
function endSale() external onlyOwner returns (bool) {
require(onSale == true, 'Sale is not started');
onSale = false;
lastMintedInPreviousBatch = nft.totalSupply();
emit SaleEnded(currentSaleId, block.timestamp);
return true;
}
/// @notice To start a claiming period
/// @dev Called by owner to start a claiming period
/// @param count no of tokens available to claim by the token holders during the period
function startClaim(uint256 count) external onlyOwner returns (bool) {
require(onSale == false, 'Sale is running');
onClaim = true;
claimSupply = count;
currentClaim = 0;
currentClaimId++;
lastMintedInPreviousBatch = nft.totalSupply();
emit ClaimStarted(currentClaimId, block.timestamp, count);
return true;
}
/// @notice To end a sale
/// @dev Called by owner to end a sale and update the last minted token
function endClaim() external onlyOwner returns (bool) {
require(onClaim == true, 'Claim is not started');
onClaim = false;
lastMintedInPreviousBatch = nft.totalSupply();
emit ClaimEnded(currentClaimId, block.timestamp);
return true;
}
modifier onlyDuringSale() {
require(onSale, 'Sale is not started');
_;
}
modifier onlyDuringClaim() {
require(onClaim, 'Claim is not started');
_;
}
/// @notice To purchase a token
/// @dev Called by the user to purchase a token and can be called only during a sale
/// @return id id of the purchased token
function purchase() external payable nonReentrant onlyDuringSale onlyWhitelisted returns (uint256) {
require(msg.value == price, 'Invalid Price');
require(currentSupply < saleSupply, 'Sale supply alredy sold');
address user = _msgSender();
uint256 id = nft.mint(user, Url);
emit Purchase(id, user, price);
currentSupply++;
return id;
}
/// @notice To purchase a `count` tokens
/// @dev Called by the user to purchase `count` number of tokens and can be called only during a sale
/// @param count number of tokens user is trying to purchase
/// @return ids array of id of the purchased tokens
function batchPurchase(uint256 count)
external
payable
nonReentrant
onlyDuringSale
onlyWhitelisted
returns (uint256[] memory)
{
require(msg.value == price * count, 'Invalid Price');
require(currentSupply + count <= saleSupply, 'Max supply already sold');
address user = _msgSender();
string memory _url = Url;
uint256[] memory ids = new uint256[](count);
for (uint256 i = 0; i < count; i++) {
ids[i] = nft.mint(user, _url);
emit Purchase(ids[i], user, price);
}
currentSupply += count;
return ids;
}
/// @notice To claim a token
/// @dev Called by the token owners to claim a token and can be called only during a claim
/// @param tokenId id of the token owned by the user
/// @return id id of the claimed token
function claim(uint256 tokenId) external nonReentrant onlyDuringClaim onlyWhitelisted returns (uint256) {
require(tokenId <= lastMintedInPreviousBatch, 'Can not claim for this token');
require(!hasClaimed[currentClaimId][tokenId], 'Already claimed');
require(currentClaim <= claimSupply, 'Exceeding max claim supply');
address user = _msgSender();
require(nft.ownerOf(tokenId) == user, 'Only token owner can claim');
uint256 id = nft.mint(user, Url);
hasClaimed[currentClaimId][tokenId] = true;
emit Claimed(tokenId, user, id);
currentClaim++;
return id;
}
/// @notice To claim tokens for a batch
/// @dev Called by the users to claim tokens for a batch of tokens in once tx.
/// @param ids array of token ids to claim
/// @return claimedIds array of ids of the claimed tokens
function batchClaim(uint256[] calldata ids)
external
onlyDuringClaim
nonReentrant
onlyWhitelisted
returns (uint256[] memory)
{
uint256 len = ids.length;
require(currentClaim + len <= claimSupply, 'Exceeding max claim supply');
uint256 ccId = currentClaimId;
uint256 _currentClaim;
uint256 id;
string memory _url = Url;
address user = _msgSender();
uint256[] memory claimedIds = new uint256[](len);
for (uint256 i = 0; i < len; i++) {
id = ids[i];
require(
!hasClaimed[ccId][id] && id <= lastMintedInPreviousBatch && nft.ownerOf(id) == user,
'Invalid tokenId'
);
claimedIds[i] = nft.mint(user, _url);
hasClaimed[ccId][id] = true;
emit Claimed(id, user, claimedIds[i]);
_currentClaim++;
}
currentClaim += _currentClaim;
return claimedIds;
}
/// @notice To update placeholder uri
/// @dev Called by the admin to update the placeholder
/// @param url new placeholder url
function updateURL(string calldata url) external onlyOwner returns (bool) {
require(bytes(url).length > 0, 'Invalid URL');
Url = url;
return true;
}
/// @notice To update price
/// @dev Called by the admin to update the price
/// @param _price new price
function updatePrice(uint256 _price) external onlyOwner returns (bool) {
require(_price > 0, 'Invalid price');
price = _price;
return true;
}
/// @notice To collect ether balance
/// @dev Called by the admin to collect the ether balance held by the contract
/// @param acc address to transfer the tokens
/// @return bal balance transferred
function withdraw(address acc) external onlyOwner returns (uint256) {
uint256 bal = address(this).balance;
payable(acc).sendValue(bal);
return bal;
}
/// @notice To collect `token` balance
/// @dev Called by the admin to collect the `token` balance held by the contract
/// @param token address of the token
/// @param acc address to transfer the tokens
/// @return bal balance transferred
function withdraw(address token, address acc) external onlyOwner returns (uint256) {
IERC20 tk = IERC20(token);
uint256 bal = tk.balanceOf(address(this));
bool sent = tk.transfer(acc, bal);
require(sent, 'Token Transfer failed');
return bal;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../math/SafeMath.sol";
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
* Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
* overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
* directly accessed.
*/
library Counters {
using SafeMath for uint256;
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
// The {SafeMath} overflow check can be skipped here, see the comment at the top
counter._value += 1;
}
function decrement(Counter storage counter) internal {
counter._value = counter._value.sub(1);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor () internal {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '../utils/AccessProtected.sol';
contract ApexaNFT is ERC721('Apex Athletes', 'AA'), AccessProtected {
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private tokenIds;
string private _baseURI;
uint256 private _revealedTill;
uint256 public cap;
event SetCap(uint256 _cap);
constructor(uint256 _cap) {
setCap(_cap);
}
/**
* @notice - Mint NFT
* @dev - callable only by admin
*
* @param recipient - mint to
* @param URI - uri of the NFT
*/
function mint(address recipient, string memory URI) external onlyAdmin returns (uint256) {
tokenIds.increment();
uint256 newTokenId = tokenIds.current();
require(newTokenId <= cap, 'NFT cap exceeded');
_mint(recipient, newTokenId);
_setTokenURI(newTokenId, URI);
return newTokenId;
}
/**
* @notice - Set URI for token
* @dev - callable only by admin
*
* @param tokenId - Token ID of NFT
* @param _tokenURI - URI to set
*/
function setURI(uint256 tokenId, string memory _tokenURI) external onlyAdmin {
_setTokenURI(tokenId, _tokenURI);
}
function setCap(uint256 _cap) public onlyOwner {
cap = _cap;
emit SetCap(_cap);
}
/**
* @notice - Set URI for token batch
* @dev - callable only by admin
*
* @param _tokenIds - Token IDs of NFTs
* @param tokenURIs - URIs to set
*/
function setBatchURI(uint256[] memory _tokenIds, string[] memory tokenURIs) external onlyAdmin {
require(_tokenIds.length == tokenURIs.length, 'Length mismatch');
for (uint256 i = 0; i < _tokenIds.length; i++) {
_setTokenURI(_tokenIds[i], tokenURIs[i]);
}
}
function baseURIForReveals() public view virtual returns (string memory) {
return _baseURI;
}
function setBaseURI(string memory __baseURI) external onlyAdmin {
_baseURI = __baseURI;
}
function setRevealedTill(uint256 __revealedTill) external onlyAdmin {
_revealedTill = __revealedTill;
}
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');
if (tokenId > _revealedTill || bytes(_baseURI).length == 0) {
return super.tokenURI(tokenId);
}
return string(abi.encodePacked(_baseURI, tokenId.toString()));
}
function setTokenURIBatch(uint256[] memory _tokenIds, string[] memory tokenURIs) external onlyAdmin {
require(_tokenIds.length == tokenURIs.length, 'Length mismatch');
for (uint256 i = 0; i < _tokenIds.length; i++) {
_setTokenURI(_tokenIds[i], tokenURIs[i]);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import "./AccessProtected.sol";
abstract contract Whitelist is AccessProtected {
mapping(address => bool) public whitelisted;
mapping(address => bool) public blacklisted;
bool public checkForWhitelist;
event Whitelisted(address indexed _addr, bool enabled);
event Blacklisted(address indexed _addr, bool enabled);
event SetWhitelistEnabled(bool enabled);
function setWhitelistEnabled(bool enabled) public onlyAdmin {
checkForWhitelist = enabled;
emit SetWhitelistEnabled(enabled);
}
function _whitelist(address user, bool enabled) internal {
whitelisted[user] = enabled;
emit Whitelisted(user, enabled);
}
function whitelist(address user, bool enabled) external onlyAdmin {
_whitelist(user, enabled);
}
function whitelistBatch(address[] memory users, bool[] memory enabled)
external
onlyAdmin
{
require(
users.length == enabled.length,
"Length of users and enabled must match"
);
for (uint256 i = 0; i < users.length; i++) {
_whitelist(users[i], enabled[i]);
}
}
function _blacklist(address user, bool enabled) internal {
blacklisted[user] = enabled;
emit Blacklisted(user, enabled);
}
function blacklist(address user, bool enabled) external onlyAdmin {
_blacklist(user, enabled);
}
function blacklistBatch(address[] memory users, bool[] memory enabled)
external
onlyAdmin
{
require(
users.length == enabled.length,
"Length of users and enabled must match"
);
for (uint256 index = 0; index < users.length; index++) {
_blacklist(users[index], enabled[index]);
}
}
modifier onlyWhitelisted() {
require(
checkForWhitelist == false || whitelisted[msg.sender] == true,
"User is not whitelisted"
);
require(blacklisted[msg.sender] == false, "User is blacklisted");
_;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../../utils/Context.sol";
import "./IERC721.sol";
import "./IERC721Metadata.sol";
import "./IERC721Enumerable.sol";
import "./IERC721Receiver.sol";
import "../../introspection/ERC165.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";
import "../../utils/EnumerableSet.sol";
import "../../utils/EnumerableMap.sol";
import "../../utils/Strings.sol";
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using SafeMath for uint256;
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
// which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;
// Mapping from holder address to their (enumerable) set of owned tokens
mapping (address => EnumerableSet.UintSet) private _holderTokens;
// Enumerable mapping from token ids to their owners
EnumerableMap.UintToAddressMap private _tokenOwners;
// 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;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Optional mapping for token URIs
mapping (uint256 => string) private _tokenURIs;
// Base URI
string private _baseURI;
/*
* bytes4(keccak256('balanceOf(address)')) == 0x70a08231
* bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
* bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
* bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
* bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
* bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
* bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
* bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
* bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
*
* => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
* 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
*/
bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
/*
* bytes4(keccak256('name()')) == 0x06fdde03
* bytes4(keccak256('symbol()')) == 0x95d89b41
* bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
*
* => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
*/
bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
/*
* bytes4(keccak256('totalSupply()')) == 0x18160ddd
* bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
* bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
*
* => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
*/
bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor (string memory name_, string memory symbol_) public {
_name = name_;
_symbol = symbol_;
// register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(_INTERFACE_ID_ERC721);
_registerInterface(_INTERFACE_ID_ERC721_METADATA);
_registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _holderTokens[owner].length();
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
}
/**
* @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) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = baseURI();
// If there is no base URI, return the token URI.
if (bytes(base).length == 0) {
return _tokenURI;
}
// If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(base, _tokenURI));
}
// If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
return string(abi.encodePacked(base, tokenId.toString()));
}
/**
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a prefix in {tokenURI} to each token's URI, or
* to the token ID if no specific URI is set for that token ID.
*/
function baseURI() public view virtual returns (string memory) {
return _baseURI;
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
return _holderTokens[owner].at(index);
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
// _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
return _tokenOwners.length();
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
(uint256 tokenId, ) = _tokenOwners.at(index);
return tokenId;
}
/**
* @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 || ERC721.isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _tokenOwners.contains(tokenId);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
d*
* - `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);
_holderTokens[to].add(tokenId);
_tokenOwners.set(tokenId, to);
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId); // internal owner
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
// Clear metadata (if any)
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
_holderTokens[owner].remove(tokenId);
_tokenOwners.remove(tokenId);
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_holderTokens[from].remove(tokenId);
_holderTokens[to].add(tokenId);
_tokenOwners.set(tokenId, to);
emit Transfer(from, to, tokenId);
}
/**
* @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
/**
* @dev Internal function to set the base URI for all token IDs. It is
* automatically added as a prefix to the value returned in {tokenURI},
* or to the token ID if {tokenURI} is empty.
*/
function _setBaseURI(string memory baseURI_) internal virtual {
_baseURI = baseURI_;
}
/**
* @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()) {
return true;
}
bytes memory returndata = to.functionCall(abi.encodeWithSelector(
IERC721Receiver(to).onERC721Received.selector,
_msgSender(),
from,
tokenId,
_data
), "ERC721: transfer to non ERC721Receiver implementer");
bytes4 retval = abi.decode(returndata, (bytes4));
return (retval == _ERC721_RECEIVED);
}
/**
* @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); // internal owner
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
abstract contract AccessProtected is Context, Ownable {
mapping(address => bool) internal _admins; // user address => admin? mapping
event AdminAccessSet(address _admin, bool _enabled);
/**
* @notice Set Admin Access
*
* @param admin - Address of Admin
* @param enabled - Enable/Disable Admin Access
*/
function setAdmin(address admin, bool enabled) external onlyOwner {
_admins[admin] = enabled;
emit AdminAccessSet(admin, enabled);
}
/**
* @notice Check Admin Access
*
* @param admin - Address of Admin
* @return whether user has admin access
*/
function isAdmin(address admin) public view returns (bool) {
return _admins[admin];
}
/**
* Throws if called by any account other than the Admin.
*/
modifier onlyAdmin() {
require(
_admins[_msgSender()] || _msgSender() == owner(),
"Caller does not have Admin Access"
);
_;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
import "../../introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
import "./IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
import "./IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
abstract contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
constructor () internal {
// Derived contracts need only register support for their own interfaces,
// we register support for ERC165 itself here
_registerInterface(_INTERFACE_ID_ERC165);
}
/**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableMap for EnumerableMap.UintToAddressMap;
*
* // Declare a set state variable
* EnumerableMap.UintToAddressMap private myMap;
* }
* ```
*
* As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
* supported.
*/
library EnumerableMap {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions, and user-facing
// implementations (such as Uint256ToAddressMap) are just wrappers around
// the underlying Map.
// This means that we can only create new EnumerableMaps for types that fit
// in bytes32.
struct MapEntry {
bytes32 _key;
bytes32 _value;
}
struct Map {
// Storage of map keys and values
MapEntry[] _entries;
// Position of the entry defined by a key in the `entries` array, plus 1
// because index 0 means a key is not in the map.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Adds a key-value pair to a map, or updates the value for an existing
* key. O(1).
*
* Returns true if the key was added to the map, that is if it was not
* already present.
*/
function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
// We read and store the key's index to prevent multiple reads from the same storage slot
uint256 keyIndex = map._indexes[key];
if (keyIndex == 0) { // Equivalent to !contains(map, key)
map._entries.push(MapEntry({ _key: key, _value: value }));
// The entry is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
map._indexes[key] = map._entries.length;
return true;
} else {
map._entries[keyIndex - 1]._value = value;
return false;
}
}
/**
* @dev Removes a key-value pair from a map. O(1).
*
* Returns true if the key was removed from the map, that is if it was present.
*/
function _remove(Map storage map, bytes32 key) private returns (bool) {
// We read and store the key's index to prevent multiple reads from the same storage slot
uint256 keyIndex = map._indexes[key];
if (keyIndex != 0) { // Equivalent to contains(map, key)
// To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
// in the array, and then remove the last entry (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = keyIndex - 1;
uint256 lastIndex = map._entries.length - 1;
// When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
MapEntry storage lastEntry = map._entries[lastIndex];
// Move the last entry to the index where the entry to delete is
map._entries[toDeleteIndex] = lastEntry;
// Update the index for the moved entry
map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved entry was stored
map._entries.pop();
// Delete the index for the deleted slot
delete map._indexes[key];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the key is in the map. O(1).
*/
function _contains(Map storage map, bytes32 key) private view returns (bool) {
return map._indexes[key] != 0;
}
/**
* @dev Returns the number of key-value pairs in the map. O(1).
*/
function _length(Map storage map) private view returns (uint256) {
return map._entries.length;
}
/**
* @dev Returns the key-value pair stored at position `index` in the map. O(1).
*
* Note that there are no guarantees on the ordering of entries inside the
* array, and it may change when more entries are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
require(map._entries.length > index, "EnumerableMap: index out of bounds");
MapEntry storage entry = map._entries[index];
return (entry._key, entry._value);
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
uint256 keyIndex = map._indexes[key];
if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
}
/**
* @dev Returns the value associated with `key`. O(1).
*
* Requirements:
*
* - `key` must be in the map.
*/
function _get(Map storage map, bytes32 key) private view returns (bytes32) {
uint256 keyIndex = map._indexes[key];
require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
return map._entries[keyIndex - 1]._value; // All indexes are 1-based
}
/**
* @dev Same as {_get}, with a custom error message when `key` is not in the map.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {_tryGet}.
*/
function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
uint256 keyIndex = map._indexes[key];
require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
return map._entries[keyIndex - 1]._value; // All indexes are 1-based
}
// UintToAddressMap
struct UintToAddressMap {
Map _inner;
}
/**
* @dev Adds a key-value pair to a map, or updates the value for an existing
* key. O(1).
*
* Returns true if the key was added to the map, that is if it was not
* already present.
*/
function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the key was removed from the map, that is if it was present.
*/
function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
return _remove(map._inner, bytes32(key));
}
/**
* @dev Returns true if the key is in the map. O(1).
*/
function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
return _contains(map._inner, bytes32(key));
}
/**
* @dev Returns the number of elements in the map. O(1).
*/
function length(UintToAddressMap storage map) internal view returns (uint256) {
return _length(map._inner);
}
/**
* @dev Returns the element stored at position `index` in the set. O(1).
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
(bytes32 key, bytes32 value) = _at(map._inner, index);
return (uint256(key), address(uint160(uint256(value))));
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*
* _Available since v3.4._
*/
function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
(bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
return (success, address(uint160(uint256(value))));
}
/**
* @dev Returns the value associated with `key`. O(1).
*
* Requirements:
*
* - `key` must be in the map.
*/
function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
return address(uint160(uint256(_get(map._inner, bytes32(key)))));
}
/**
* @dev Same as {get}, with a custom error message when `key` is not in the map.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryGet}.
*/
function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev String operations.
*/
library Strings {
/**
* @dev Converts a `uint256` to its ASCII `string` representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
uint256 index = digits - 1;
temp = value;
while (temp != 0) {
buffer[index--] = bytes1(uint8(48 + temp % 10));
temp /= 10;
}
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_nft","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"string","name":"_url","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_admin","type":"address"},{"indexed":false,"internalType":"bool","name":"_enabled","type":"bool"}],"name":"AdminAccessSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"Blacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"claimId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"claimId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"ClaimStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"claimedToken","type":"uint256"}],"name":"Claimed","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"batchId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"batchId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"SaleStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SetWhitelistEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"Whitelisted","type":"event"},{"inputs":[],"name":"Url","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"batchClaim","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"batchPurchase","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"bool[]","name":"enabled","type":"bool[]"}],"name":"blacklistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkForWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentClaimId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSaleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastMintedInPreviousBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nft","outputs":[{"internalType":"contract ApexaNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setWhitelistEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"startClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"startSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"updatePrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"updateURL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"bool[]","name":"enabled","type":"bool[]"}],"name":"whitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"acc","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"acc","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b506040516200513b3803806200513b833981810160405260608110156200003757600080fd5b810190808051906020019092919080519060200190929190805160405193929190846401000000008211156200006c57600080fd5b838201915060208201858111156200008357600080fd5b8251866001820283011164010000000082111715620000a157600080fd5b8083526020830192505050908051906020019080838360005b83811015620000d7578082015181840152602081019050620000ba565b50505050905090810190601f168015620001055780820380516001836020036101000a031916815260200191505b5060405250505060006200011e620003b960201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555060008151116200023b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642075726c00000000000000000000000000000000000000000081525060200191505060405180910390fd5b620002678373ffffffffffffffffffffffffffffffffffffffff16620003c160201b620046cb1760201c565b620002da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f496e76616c6964204e465420416464726573730000000000000000000000000081525060200191505060405180910390fd5b6000821162000351576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f496e76616c69642070726963650000000000000000000000000000000000000081525060200191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508160068190555080600d9080519060200190620003a7929190620003d4565b5060016009819055505050506200048a565b600033905090565b600080823b905060008111915050919050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200040c576000855562000458565b82601f106200042757805160ff191683800117855562000458565b8280016001018555821562000458579182015b82811115620004575782518255916020019190600101906200043a565b5b5090506200046791906200046b565b5090565b5b80821115620004865760008160009055506001016200046c565b5090565b60805160601c614c61620004da6000398061134852806119eb5280611b225280611e80528061207052806126245280612cee52806131095280613644528061377a5280613de55250614c616000f3fe6080604052600436106102255760003560e01c80638d21df8c11610123578063b2c62d46116100ab578063dbac26e91161006f578063dbac26e914610d81578063f2fde38b14610de8578063f59c370814610e39578063f940e38514610e96578063fbc51e4b14610f1b57610225565b8063b2c62d4614610b64578063bc29278214610b91578063c8434fd014610c6c578063ce5625b614610cef578063d936547e14610d1a57610225565b80639c6c4d23116100f25780639c6c4d231461092d5780639fc704bb1461095a578063a035b1fe146109b5578063a96af0f4146109e0578063acd4d57514610a0b57610225565b80638d21df8c146107ba5780638d6cc56d1461084a5780638da5cb5b1461089b5780639a7f5f1c146108dc57610225565b80633c3a1437116101b157806364edfbf01161017557806364edfbf014610702578063715018a61461072057806372806c5a14610737578063771282f6146107625780637be5254e1461078d57610225565b80633c3a143714610577578063404e5129146105a257806347ccca02146105ff5780634b0bddd21461064057806351cff8d91461069d57610225565b806324d7806c116101f857806324d7806c1461043c5780632e849894146104a3578063326687b9146104ce578063379607f5146104fb578063380d831b1461054a57610225565b8063052d9e7e1461022a5780630ad29ec3146102675780630e3ab61d14610292578063180bb7bc146102e3575b600080fd5b34801561023657600080fd5b506102656004803603602081101561024d57600080fd5b81019080803515159060200190929190505050610fb7565b005b34801561027357600080fd5b5061027c6110f8565b6040518082815260200191505060405180910390f35b34801561029e57600080fd5b506102cb600480360360208110156102b557600080fd5b81019080803590602001909291905050506110fe565b60405180821515815260200191505060405180910390f35b3480156102ef57600080fd5b5061043a6004803603604081101561030657600080fd5b810190808035906020019064010000000081111561032357600080fd5b82018360208201111561033557600080fd5b8035906020019184602083028401116401000000008311171561035757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156103b757600080fd5b8201836020820111156103c957600080fd5b803590602001918460208302840111640100000000831117156103eb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506113f6565b005b34801561044857600080fd5b5061048b6004803603602081101561045f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611575565b60405180821515815260200191505060405180910390f35b3480156104af57600080fd5b506104b86115cb565b6040518082815260200191505060405180910390f35b3480156104da57600080fd5b506104e36115d1565b60405180821515815260200191505060405180910390f35b34801561050757600080fd5b506105346004803603602081101561051e57600080fd5b81019080803590602001909291905050506115e4565b6040518082815260200191505060405180910390f35b34801561055657600080fd5b5061055f611d29565b60405180821515815260200191505060405180910390f35b34801561058357600080fd5b5061058c611f6d565b6040518082815260200191505060405180910390f35b3480156105ae57600080fd5b506105fd600480360360408110156105c557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611f73565b005b34801561060b57600080fd5b5061061461206e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561064c57600080fd5b5061069b6004803603604081101561066357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612092565b005b3480156106a957600080fd5b506106ec600480360360208110156106c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121f3565b6040518082815260200191505060405180910390f35b61070a6122db565b6040518082815260200191505060405180910390f35b34801561072c57600080fd5b506107356127ec565b005b34801561074357600080fd5b5061074c612959565b6040518082815260200191505060405180910390f35b34801561076e57600080fd5b5061077761295f565b6040518082815260200191505060405180910390f35b34801561079957600080fd5b506107a2612965565b60405180821515815260200191505060405180910390f35b3480156107c657600080fd5b506107cf612978565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561080f5780820151818401526020810190506107f4565b50505050905090810190601f16801561083c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561085657600080fd5b506108836004803603602081101561086d57600080fd5b8101908080359060200190929190505050612a16565b60405180821515815260200191505060405180910390f35b3480156108a757600080fd5b506108b0612b4d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156108e857600080fd5b50610915600480360360208110156108ff57600080fd5b8101908080359060200190929190505050612b76565b60405180821515815260200191505060405180910390f35b34801561093957600080fd5b50610942612de5565b60405180821515815260200191505060405180910390f35b34801561096657600080fd5b5061099d6004803603604081101561097d57600080fd5b810190808035906020019092919080359060200190929190505050612df8565b60405180821515815260200191505060405180910390f35b3480156109c157600080fd5b506109ca612e27565b6040518082815260200191505060405180910390f35b3480156109ec57600080fd5b506109f5612e2d565b6040518082815260200191505060405180910390f35b348015610a1757600080fd5b50610b6260048036036040811015610a2e57600080fd5b8101908080359060200190640100000000811115610a4b57600080fd5b820183602082011115610a5d57600080fd5b80359060200191846020830284011164010000000083111715610a7f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610adf57600080fd5b820183602082011115610af157600080fd5b80359060200191846020830284011164010000000083111715610b1357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612e33565b005b348015610b7057600080fd5b50610b79612fb2565b60405180821515815260200191505060405180910390f35b348015610b9d57600080fd5b50610c1560048036036020811015610bb457600080fd5b8101908080359060200190640100000000811115610bd157600080fd5b820183602082011115610be357600080fd5b80359060200191846020830284011164010000000083111715610c0557600080fd5b90919293919293905050506131f6565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610c58578082015181840152602081019050610c3d565b505050509050019250505060405180910390f35b610c9860048036036020811015610c8257600080fd5b81019080803590602001909291905050506139a4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610cdb578082015181840152602081019050610cc0565b505050509050019250505060405180910390f35b348015610cfb57600080fd5b50610d04613fc7565b6040518082815260200191505060405180910390f35b348015610d2657600080fd5b50610d6960048036036020811015610d3d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613fcd565b60405180821515815260200191505060405180910390f35b348015610d8d57600080fd5b50610dd060048036036020811015610da457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613fed565b60405180821515815260200191505060405180910390f35b348015610df457600080fd5b50610e3760048036036020811015610e0b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061400d565b005b348015610e4557600080fd5b50610e9460048036036040811015610e5c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035151590602001909291905050506141ff565b005b348015610ea257600080fd5b50610f0560048036036040811015610eb957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506142fa565b6040518082815260200191505060405180910390f35b348015610f2757600080fd5b50610f9f60048036036020811015610f3e57600080fd5b8101908080359060200190640100000000811115610f5b57600080fd5b820183602082011115610f6d57600080fd5b80359060200191846001830284011164010000000083111715610f8f57600080fd5b9091929391929390505050614585565b60405180821515815260200191505060405180910390f35b60026000610fc36146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061104f5750611019612b4d565b73ffffffffffffffffffffffffffffffffffffffff166110376146de565b73ffffffffffffffffffffffffffffffffffffffff16145b6110a4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b80600560006101000a81548160ff0219169083151502179055507f9d1749bd4eb18cf13b7c30dd998926aaf378a23b0574aded3464483c126a53de816040516110ed9190614b12565b60405180910390a150565b600a5481565b60006111086146de565b73ffffffffffffffffffffffffffffffffffffffff16611126612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146111af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60001515600560029054906101000a900460ff16151514611238576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f436c61696d2069732072756e6e696e670000000000000000000000000000000081525060200191505060405180910390fd5b60001515600560019054906101000a900460ff161515146112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f53616c6520697320616c72656164792072756e6e696e6700000000000000000081525060200191505060405180910390fd5b6001600560016101000a81548160ff0219169083151502179055508160078190555060006008819055506009600081548092919060010191905055507f5ee5e9eecd6fd27ba20784f8da118fe26b697aca487c80f605baec0b88ed3636600954428460405180848152602001838152602001828152602001935050505060405180910390a17f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113ac57600080fd5b505afa1580156113c0573d6000803e3d6000fd5b505050506040513d60208110156113d657600080fd5b8101908080519060200190929190505050600e8190555060019050919050565b600260006114026146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061148e5750611458612b4d565b73ffffffffffffffffffffffffffffffffffffffff166114766146de565b73ffffffffffffffffffffffffffffffffffffffff16145b6114e3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b8051825114611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e90614b6d565b60405180910390fd5b60005b82518110156115705761156383828151811061154257fe5b602002602001015183838151811061155657fe5b60200260200101516146e6565b808060010191505061152a565b505050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60095481565b600560019054906101000a900460ff1681565b60006002600154141561165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600560029054906101000a900460ff166116e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f436c61696d206973206e6f74207374617274656400000000000000000000000081525060200191505060405180910390fd5b60001515600560009054906101000a900460ff161515148061175b575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b61179a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179190614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461182d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182490614b4d565b60405180910390fd5b600e548211156118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f43616e206e6f7420636c61696d20666f72207468697320746f6b656e0000000081525060200191505060405180910390fd5b600f6000600c548152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff161561194c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f416c726561647920636c61696d6564000000000000000000000000000000000081525060200191505060405180910390fd5b600a54600b5411156119c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f457863656564696e67206d617820636c61696d20737570706c7900000000000081525060200191505060405180910390fd5b60006119d06146de565b90508073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611a5a57600080fd5b505afa158015611a6e573d6000803e3d6000fd5b505050506040513d6020811015611a8457600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614611b1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4f6e6c7920746f6b656e206f776e65722063616e20636c61696d00000000000081525060200191505060405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52183600d6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015611c135780601f10611be857610100808354040283529160200191611c13565b820191906000526020600020905b815481529060010190602001808311611bf657829003601f168201915b50509350505050602060405180830381600087803b158015611c3457600080fd5b505af1158015611c48573d6000803e3d6000fd5b505050506040513d6020811015611c5e57600080fd5b810190808051906020019092919050505090506001600f6000600c548152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0268583604051808381526020018281526020019250505060405180910390a2600b60008154809291906001019190505550809250505060018081905550919050565b6000611d336146de565b73ffffffffffffffffffffffffffffffffffffffff16611d51612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614611dda576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60011515600560019054906101000a900460ff16151514611e63576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206973206e6f7420737461727465640000000000000000000000000081525060200191505060405180910390fd5b6000600560016101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611ee457600080fd5b505afa158015611ef8573d6000803e3d6000fd5b505050506040513d6020811015611f0e57600080fd5b8101908080519060200190929190505050600e819055507fce4010416b0dec196298b584ceebdd43ecf89e6c03007517c3a7f4403db6c21260095442604051808381526020018281526020019250505060405180910390a16001905090565b600b5481565b60026000611f7f6146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061200b5750611fd5612b4d565b73ffffffffffffffffffffffffffffffffffffffff16611ff36146de565b73ffffffffffffffffffffffffffffffffffffffff16145b612060576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b61206a82826146e6565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61209a6146de565b73ffffffffffffffffffffffffffffffffffffffff166120b8612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614612141576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fe529461c8529abc0e0fe7c5ee361f74fe22e0b7574df1fc0b7558a282091fb788282604051808373ffffffffffffffffffffffffffffffffffffffff16815260200182151581526020019250505060405180910390a15050565b60006121fd6146de565b73ffffffffffffffffffffffffffffffffffffffff1661221b612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146122a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60004790506122d2818473ffffffffffffffffffffffffffffffffffffffff1661478f90919063ffffffff16565b80915050919050565b600060026001541415612356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600560019054906101000a900460ff166123e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206973206e6f7420737461727465640000000000000000000000000081525060200191505060405180910390fd5b60001515600560009054906101000a900460ff1615151480612452575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514612524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251b90614b4d565b60405180910390fd5b600654341461259b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f496e76616c69642050726963650000000000000000000000000000000000000081525060200191505060405180910390fd5b60075460085410612614576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f53616c6520737570706c7920616c7265647920736f6c6400000000000000000081525060200191505060405180910390fd5b600061261e6146de565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52183600d6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff168152602001806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156127155780601f106126ea57610100808354040283529160200191612715565b820191906000526020600020905b8154815290600101906020018083116126f857829003601f168201915b50509350505050602060405180830381600087803b15801561273657600080fd5b505af115801561274a573d6000803e3d6000fd5b505050506040513d602081101561276057600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff167f9b9322562a425e363b0c2f80fc966e9c4f48ac3b5c2d1527d75829c8f505ec9682600654604051808381526020018281526020019250505060405180910390a260086000815480929190600101919050555080925050506001808190555090565b6127f46146de565b73ffffffffffffffffffffffffffffffffffffffff16612812612b4d565b73ffffffffffffffffffffffffffffffffffffffff161461289b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600c5481565b60085481565b600560029054906101000a900460ff1681565b600d8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612a0e5780601f106129e357610100808354040283529160200191612a0e565b820191906000526020600020905b8154815290600101906020018083116129f157829003601f168201915b505050505081565b6000612a206146de565b73ffffffffffffffffffffffffffffffffffffffff16612a3e612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614612ac7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008211612b3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f496e76616c69642070726963650000000000000000000000000000000000000081525060200191505060405180910390fd5b8160068190555060019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000612b806146de565b73ffffffffffffffffffffffffffffffffffffffff16612b9e612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614612c27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60001515600560019054906101000a900460ff16151514612cb0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f53616c652069732072756e6e696e67000000000000000000000000000000000081525060200191505060405180910390fd5b6001600560026101000a81548160ff02191690831515021790555081600a819055506000600b81905550600c600081548092919060010191905055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d5257600080fd5b505afa158015612d66573d6000803e3d6000fd5b505050506040513d6020811015612d7c57600080fd5b8101908080519060200190929190505050600e819055507f930ce4186237dac015e67be18574d439dd6996ea692409db614100bd18e6df42600c54428460405180848152602001838152602001828152602001935050505060405180910390a160019050919050565b600560009054906101000a900460ff1681565b600f6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60065481565b60075481565b60026000612e3f6146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612ecb5750612e95612b4d565b73ffffffffffffffffffffffffffffffffffffffff16612eb36146de565b73ffffffffffffffffffffffffffffffffffffffff16145b612f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b8051825114612f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5b90614b6d565b60405180910390fd5b60005b8251811015612fad57612fa0838281518110612f7f57fe5b6020026020010151838381518110612f9357fe5b60200260200101516148c9565b8080600101915050612f67565b505050565b6000612fbc6146de565b73ffffffffffffffffffffffffffffffffffffffff16612fda612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614613063576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60011515600560029054906101000a900460ff161515146130ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f436c61696d206973206e6f74207374617274656400000000000000000000000081525060200191505060405180910390fd5b6000600560026101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561316d57600080fd5b505afa158015613181573d6000803e3d6000fd5b505050506040513d602081101561319757600080fd5b8101908080519060200190929190505050600e819055507fe6c90b8a9fab15bdebdf96f7861e2592d2cbbe43b72faf4b1f42220bbcaebfa9600c5442604051808381526020018281526020019250505060405180910390a16001905090565b6060600560029054906101000a900460ff1661327a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f436c61696d206973206e6f74207374617274656400000000000000000000000081525060200191505060405180910390fd5b600260015414156132f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555060001515600560009054906101000a900460ff161515148061336d575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b6133ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a390614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461343f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343690614b4d565b60405180910390fd5b6000838390509050600a5481600b540111156134c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f457863656564696e67206d617820636c61696d20737570706c7900000000000081525060200191505060405180910390fd5b6000600c5490506000806000600d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135655780601f1061353a57610100808354040283529160200191613565565b820191906000526020600020905b81548152906001019060200180831161354857829003601f168201915b5050505050905060006135766146de565b905060008667ffffffffffffffff8111801561359157600080fd5b506040519080825280602002602001820160405280156135c05781602001602082028036833780820191505090505b50905060005b8781101561397c578a8a828181106135da57fe5b905060200201359450600f6000888152602001908152602001600020600086815260200190815260200160002060009054906101000a900460ff161580156136245750600e548511155b801561370657508273ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e876040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156136b357600080fd5b505afa1580156136c7573d6000803e3d6000fd5b505050506040513d60208110156136dd57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16145b613778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f496e76616c696420746f6b656e4964000000000000000000000000000000000081525060200191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52184866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613821578082015181840152602081019050613806565b50505050905090810190601f16801561384e5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15801561386e57600080fd5b505af1158015613882573d6000803e3d6000fd5b505050506040513d602081101561389857600080fd5b81019080805190602001909291905050508282815181106138b557fe5b6020026020010181815250506001600f6000898152602001908152602001600020600087815260200190815260200160002060006101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff167f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0268684848151811061394357fe5b6020026020010151604051808381526020018281526020019250505060405180910390a2858060010196505080806001019150506135c6565b5084600b60008282540192505081905550809750505050505050506001808190555092915050565b606060026001541415613a1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600560019054906101000a900460ff16613aa9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206973206e6f7420737461727465640000000000000000000000000081525060200191505060405180910390fd5b60001515600560009054906101000a900460ff1615151480613b1b575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b613b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b5190614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514613bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613be490614b4d565b60405180910390fd5b81600654023414613c66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f496e76616c69642050726963650000000000000000000000000000000000000081525060200191505060405180910390fd5b60075482600854011115613ce2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4d617820737570706c7920616c726561647920736f6c6400000000000000000081525060200191505060405180910390fd5b6000613cec6146de565b90506000600d8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015613d865780601f10613d5b57610100808354040283529160200191613d86565b820191906000526020600020905b815481529060010190602001808311613d6957829003601f168201915b5050505050905060008467ffffffffffffffff81118015613da657600080fd5b50604051908082528060200260200182016040528015613dd55781602001602082028036833780820191505090505b50905060005b85811015613fa4577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0def52185856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613e8c578082015181840152602081019050613e71565b50505050905090810190601f168015613eb95780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015613ed957600080fd5b505af1158015613eed573d6000803e3d6000fd5b505050506040513d6020811015613f0357600080fd5b8101908080519060200190929190505050828281518110613f2057fe5b6020026020010181815250508373ffffffffffffffffffffffffffffffffffffffff167f9b9322562a425e363b0c2f80fc966e9c4f48ac3b5c2d1527d75829c8f505ec96838381518110613f7057fe5b6020026020010151600654604051808381526020018281526020019250505060405180910390a28080600101915050613ddb565b508460086000828254019250508190555080935050505060018081905550919050565b600e5481565b60036020528060005260406000206000915054906101000a900460ff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b6140156146de565b73ffffffffffffffffffffffffffffffffffffffff16614033612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146140bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614142576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180614bab6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6002600061420b6146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806142975750614261612b4d565b73ffffffffffffffffffffffffffffffffffffffff1661427f6146de565b73ffffffffffffffffffffffffffffffffffffffff16145b6142ec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b6142f682826148c9565b5050565b60006143046146de565b73ffffffffffffffffffffffffffffffffffffffff16614322612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146143ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600083905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561441957600080fd5b505afa15801561442d573d6000803e3d6000fd5b505050506040513d602081101561444357600080fd5b8101908080519060200190929190505050905060008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156144c957600080fd5b505af11580156144dd573d6000803e3d6000fd5b505050506040513d60208110156144f357600080fd5b8101908080519060200190929190505050905080614579576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f546f6b656e205472616e73666572206661696c6564000000000000000000000081525060200191505060405180910390fd5b81935050505092915050565b600061458f6146de565b73ffffffffffffffffffffffffffffffffffffffff166145ad612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614614636576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600083839050116146af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642055524c00000000000000000000000000000000000000000081525060200191505060405180910390fd5b8282600d91906146c0929190614972565b506001905092915050565b600080823b905060008111915050919050565b600033905090565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167fcf3473b85df1594d47b6958f29a32bea0abff9dd68296f7bf33443646793cfd8826040516147839190614b12565b60405180910390a25050565b80471015614805576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a20696e73756666696369656e742062616c616e636500000081525060200191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d8060008114614865576040519150601f19603f3d011682016040523d82523d6000602084013e61486a565b606091505b50509050806148c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180614bd1603a913960400191505060405180910390fd5b505050565b80600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440826040516149669190614b12565b60405180910390a25050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826149a857600085556149ef565b82601f106149c157803560ff19168380011785556149ef565b828001600101855582156149ef579182015b828111156149ee5782358255916020019190600101906149d3565b5b5090506149fc9190614a00565b5090565b5b80821115614a19576000816000905550600101614a01565b5090565b614a2681614b9e565b82525050565b6000614a39601783614b8d565b91507f55736572206973206e6f742077686974656c69737465640000000000000000006000830152602082019050919050565b6000614a79601383614b8d565b91507f5573657220697320626c61636b6c6973746564000000000000000000000000006000830152602082019050919050565b6000614ab9602683614b8d565b91507f4c656e677468206f6620757365727320616e6420656e61626c6564206d75737460008301527f206d6174636800000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000602082019050614b276000830184614a1d565b92915050565b60006020820190508181036000830152614b4681614a2c565b9050919050565b60006020820190508181036000830152614b6681614a6c565b9050919050565b60006020820190508181036000830152614b8681614aac565b9050919050565b600082825260208201905092915050565b6000811515905091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d6179206861766520726576657274656443616c6c657220646f6573206e6f7420686176652041646d696e20416363657373a2646970667358221220ed4c5a7dff803b1359048605cd9a7c47587013cfa7fb84dc0b9304f0ffc8899564736f6c63430007060033000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b00000000000000000000000000000000000000000000000000f8b0a10e47000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d4e6261454e64506d6745784d336942595a6d6f425a3659746376574c7538766b53416d637862547a545a37560000000000000000000000
Deployed Bytecode
0x6080604052600436106102255760003560e01c80638d21df8c11610123578063b2c62d46116100ab578063dbac26e91161006f578063dbac26e914610d81578063f2fde38b14610de8578063f59c370814610e39578063f940e38514610e96578063fbc51e4b14610f1b57610225565b8063b2c62d4614610b64578063bc29278214610b91578063c8434fd014610c6c578063ce5625b614610cef578063d936547e14610d1a57610225565b80639c6c4d23116100f25780639c6c4d231461092d5780639fc704bb1461095a578063a035b1fe146109b5578063a96af0f4146109e0578063acd4d57514610a0b57610225565b80638d21df8c146107ba5780638d6cc56d1461084a5780638da5cb5b1461089b5780639a7f5f1c146108dc57610225565b80633c3a1437116101b157806364edfbf01161017557806364edfbf014610702578063715018a61461072057806372806c5a14610737578063771282f6146107625780637be5254e1461078d57610225565b80633c3a143714610577578063404e5129146105a257806347ccca02146105ff5780634b0bddd21461064057806351cff8d91461069d57610225565b806324d7806c116101f857806324d7806c1461043c5780632e849894146104a3578063326687b9146104ce578063379607f5146104fb578063380d831b1461054a57610225565b8063052d9e7e1461022a5780630ad29ec3146102675780630e3ab61d14610292578063180bb7bc146102e3575b600080fd5b34801561023657600080fd5b506102656004803603602081101561024d57600080fd5b81019080803515159060200190929190505050610fb7565b005b34801561027357600080fd5b5061027c6110f8565b6040518082815260200191505060405180910390f35b34801561029e57600080fd5b506102cb600480360360208110156102b557600080fd5b81019080803590602001909291905050506110fe565b60405180821515815260200191505060405180910390f35b3480156102ef57600080fd5b5061043a6004803603604081101561030657600080fd5b810190808035906020019064010000000081111561032357600080fd5b82018360208201111561033557600080fd5b8035906020019184602083028401116401000000008311171561035757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156103b757600080fd5b8201836020820111156103c957600080fd5b803590602001918460208302840111640100000000831117156103eb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506113f6565b005b34801561044857600080fd5b5061048b6004803603602081101561045f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611575565b60405180821515815260200191505060405180910390f35b3480156104af57600080fd5b506104b86115cb565b6040518082815260200191505060405180910390f35b3480156104da57600080fd5b506104e36115d1565b60405180821515815260200191505060405180910390f35b34801561050757600080fd5b506105346004803603602081101561051e57600080fd5b81019080803590602001909291905050506115e4565b6040518082815260200191505060405180910390f35b34801561055657600080fd5b5061055f611d29565b60405180821515815260200191505060405180910390f35b34801561058357600080fd5b5061058c611f6d565b6040518082815260200191505060405180910390f35b3480156105ae57600080fd5b506105fd600480360360408110156105c557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611f73565b005b34801561060b57600080fd5b5061061461206e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561064c57600080fd5b5061069b6004803603604081101561066357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612092565b005b3480156106a957600080fd5b506106ec600480360360208110156106c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121f3565b6040518082815260200191505060405180910390f35b61070a6122db565b6040518082815260200191505060405180910390f35b34801561072c57600080fd5b506107356127ec565b005b34801561074357600080fd5b5061074c612959565b6040518082815260200191505060405180910390f35b34801561076e57600080fd5b5061077761295f565b6040518082815260200191505060405180910390f35b34801561079957600080fd5b506107a2612965565b60405180821515815260200191505060405180910390f35b3480156107c657600080fd5b506107cf612978565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561080f5780820151818401526020810190506107f4565b50505050905090810190601f16801561083c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561085657600080fd5b506108836004803603602081101561086d57600080fd5b8101908080359060200190929190505050612a16565b60405180821515815260200191505060405180910390f35b3480156108a757600080fd5b506108b0612b4d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156108e857600080fd5b50610915600480360360208110156108ff57600080fd5b8101908080359060200190929190505050612b76565b60405180821515815260200191505060405180910390f35b34801561093957600080fd5b50610942612de5565b60405180821515815260200191505060405180910390f35b34801561096657600080fd5b5061099d6004803603604081101561097d57600080fd5b810190808035906020019092919080359060200190929190505050612df8565b60405180821515815260200191505060405180910390f35b3480156109c157600080fd5b506109ca612e27565b6040518082815260200191505060405180910390f35b3480156109ec57600080fd5b506109f5612e2d565b6040518082815260200191505060405180910390f35b348015610a1757600080fd5b50610b6260048036036040811015610a2e57600080fd5b8101908080359060200190640100000000811115610a4b57600080fd5b820183602082011115610a5d57600080fd5b80359060200191846020830284011164010000000083111715610a7f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610adf57600080fd5b820183602082011115610af157600080fd5b80359060200191846020830284011164010000000083111715610b1357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612e33565b005b348015610b7057600080fd5b50610b79612fb2565b60405180821515815260200191505060405180910390f35b348015610b9d57600080fd5b50610c1560048036036020811015610bb457600080fd5b8101908080359060200190640100000000811115610bd157600080fd5b820183602082011115610be357600080fd5b80359060200191846020830284011164010000000083111715610c0557600080fd5b90919293919293905050506131f6565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610c58578082015181840152602081019050610c3d565b505050509050019250505060405180910390f35b610c9860048036036020811015610c8257600080fd5b81019080803590602001909291905050506139a4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610cdb578082015181840152602081019050610cc0565b505050509050019250505060405180910390f35b348015610cfb57600080fd5b50610d04613fc7565b6040518082815260200191505060405180910390f35b348015610d2657600080fd5b50610d6960048036036020811015610d3d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613fcd565b60405180821515815260200191505060405180910390f35b348015610d8d57600080fd5b50610dd060048036036020811015610da457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613fed565b60405180821515815260200191505060405180910390f35b348015610df457600080fd5b50610e3760048036036020811015610e0b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061400d565b005b348015610e4557600080fd5b50610e9460048036036040811015610e5c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035151590602001909291905050506141ff565b005b348015610ea257600080fd5b50610f0560048036036040811015610eb957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506142fa565b6040518082815260200191505060405180910390f35b348015610f2757600080fd5b50610f9f60048036036020811015610f3e57600080fd5b8101908080359060200190640100000000811115610f5b57600080fd5b820183602082011115610f6d57600080fd5b80359060200191846001830284011164010000000083111715610f8f57600080fd5b9091929391929390505050614585565b60405180821515815260200191505060405180910390f35b60026000610fc36146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061104f5750611019612b4d565b73ffffffffffffffffffffffffffffffffffffffff166110376146de565b73ffffffffffffffffffffffffffffffffffffffff16145b6110a4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b80600560006101000a81548160ff0219169083151502179055507f9d1749bd4eb18cf13b7c30dd998926aaf378a23b0574aded3464483c126a53de816040516110ed9190614b12565b60405180910390a150565b600a5481565b60006111086146de565b73ffffffffffffffffffffffffffffffffffffffff16611126612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146111af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60001515600560029054906101000a900460ff16151514611238576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f436c61696d2069732072756e6e696e670000000000000000000000000000000081525060200191505060405180910390fd5b60001515600560019054906101000a900460ff161515146112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f53616c6520697320616c72656164792072756e6e696e6700000000000000000081525060200191505060405180910390fd5b6001600560016101000a81548160ff0219169083151502179055508160078190555060006008819055506009600081548092919060010191905055507f5ee5e9eecd6fd27ba20784f8da118fe26b697aca487c80f605baec0b88ed3636600954428460405180848152602001838152602001828152602001935050505060405180910390a17f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113ac57600080fd5b505afa1580156113c0573d6000803e3d6000fd5b505050506040513d60208110156113d657600080fd5b8101908080519060200190929190505050600e8190555060019050919050565b600260006114026146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061148e5750611458612b4d565b73ffffffffffffffffffffffffffffffffffffffff166114766146de565b73ffffffffffffffffffffffffffffffffffffffff16145b6114e3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b8051825114611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e90614b6d565b60405180910390fd5b60005b82518110156115705761156383828151811061154257fe5b602002602001015183838151811061155657fe5b60200260200101516146e6565b808060010191505061152a565b505050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60095481565b600560019054906101000a900460ff1681565b60006002600154141561165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600560029054906101000a900460ff166116e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f436c61696d206973206e6f74207374617274656400000000000000000000000081525060200191505060405180910390fd5b60001515600560009054906101000a900460ff161515148061175b575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b61179a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179190614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461182d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182490614b4d565b60405180910390fd5b600e548211156118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f43616e206e6f7420636c61696d20666f72207468697320746f6b656e0000000081525060200191505060405180910390fd5b600f6000600c548152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff161561194c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f416c726561647920636c61696d6564000000000000000000000000000000000081525060200191505060405180910390fd5b600a54600b5411156119c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f457863656564696e67206d617820636c61696d20737570706c7900000000000081525060200191505060405180910390fd5b60006119d06146de565b90508073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611a5a57600080fd5b505afa158015611a6e573d6000803e3d6000fd5b505050506040513d6020811015611a8457600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614611b1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4f6e6c7920746f6b656e206f776e65722063616e20636c61696d00000000000081525060200191505060405180910390fd5b60007f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff1663d0def52183600d6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015611c135780601f10611be857610100808354040283529160200191611c13565b820191906000526020600020905b815481529060010190602001808311611bf657829003601f168201915b50509350505050602060405180830381600087803b158015611c3457600080fd5b505af1158015611c48573d6000803e3d6000fd5b505050506040513d6020811015611c5e57600080fd5b810190808051906020019092919050505090506001600f6000600c548152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0268583604051808381526020018281526020019250505060405180910390a2600b60008154809291906001019190505550809250505060018081905550919050565b6000611d336146de565b73ffffffffffffffffffffffffffffffffffffffff16611d51612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614611dda576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60011515600560019054906101000a900460ff16151514611e63576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206973206e6f7420737461727465640000000000000000000000000081525060200191505060405180910390fd5b6000600560016101000a81548160ff0219169083151502179055507f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611ee457600080fd5b505afa158015611ef8573d6000803e3d6000fd5b505050506040513d6020811015611f0e57600080fd5b8101908080519060200190929190505050600e819055507fce4010416b0dec196298b584ceebdd43ecf89e6c03007517c3a7f4403db6c21260095442604051808381526020018281526020019250505060405180910390a16001905090565b600b5481565b60026000611f7f6146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061200b5750611fd5612b4d565b73ffffffffffffffffffffffffffffffffffffffff16611ff36146de565b73ffffffffffffffffffffffffffffffffffffffff16145b612060576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b61206a82826146e6565b5050565b7f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b81565b61209a6146de565b73ffffffffffffffffffffffffffffffffffffffff166120b8612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614612141576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fe529461c8529abc0e0fe7c5ee361f74fe22e0b7574df1fc0b7558a282091fb788282604051808373ffffffffffffffffffffffffffffffffffffffff16815260200182151581526020019250505060405180910390a15050565b60006121fd6146de565b73ffffffffffffffffffffffffffffffffffffffff1661221b612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146122a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60004790506122d2818473ffffffffffffffffffffffffffffffffffffffff1661478f90919063ffffffff16565b80915050919050565b600060026001541415612356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600560019054906101000a900460ff166123e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206973206e6f7420737461727465640000000000000000000000000081525060200191505060405180910390fd5b60001515600560009054906101000a900460ff1615151480612452575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514612524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251b90614b4d565b60405180910390fd5b600654341461259b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f496e76616c69642050726963650000000000000000000000000000000000000081525060200191505060405180910390fd5b60075460085410612614576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f53616c6520737570706c7920616c7265647920736f6c6400000000000000000081525060200191505060405180910390fd5b600061261e6146de565b905060007f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff1663d0def52183600d6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff168152602001806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156127155780601f106126ea57610100808354040283529160200191612715565b820191906000526020600020905b8154815290600101906020018083116126f857829003601f168201915b50509350505050602060405180830381600087803b15801561273657600080fd5b505af115801561274a573d6000803e3d6000fd5b505050506040513d602081101561276057600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff167f9b9322562a425e363b0c2f80fc966e9c4f48ac3b5c2d1527d75829c8f505ec9682600654604051808381526020018281526020019250505060405180910390a260086000815480929190600101919050555080925050506001808190555090565b6127f46146de565b73ffffffffffffffffffffffffffffffffffffffff16612812612b4d565b73ffffffffffffffffffffffffffffffffffffffff161461289b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600c5481565b60085481565b600560029054906101000a900460ff1681565b600d8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612a0e5780601f106129e357610100808354040283529160200191612a0e565b820191906000526020600020905b8154815290600101906020018083116129f157829003601f168201915b505050505081565b6000612a206146de565b73ffffffffffffffffffffffffffffffffffffffff16612a3e612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614612ac7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008211612b3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f496e76616c69642070726963650000000000000000000000000000000000000081525060200191505060405180910390fd5b8160068190555060019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000612b806146de565b73ffffffffffffffffffffffffffffffffffffffff16612b9e612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614612c27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60001515600560019054906101000a900460ff16151514612cb0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f53616c652069732072756e6e696e67000000000000000000000000000000000081525060200191505060405180910390fd5b6001600560026101000a81548160ff02191690831515021790555081600a819055506000600b81905550600c600081548092919060010191905055507f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d5257600080fd5b505afa158015612d66573d6000803e3d6000fd5b505050506040513d6020811015612d7c57600080fd5b8101908080519060200190929190505050600e819055507f930ce4186237dac015e67be18574d439dd6996ea692409db614100bd18e6df42600c54428460405180848152602001838152602001828152602001935050505060405180910390a160019050919050565b600560009054906101000a900460ff1681565b600f6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60065481565b60075481565b60026000612e3f6146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612ecb5750612e95612b4d565b73ffffffffffffffffffffffffffffffffffffffff16612eb36146de565b73ffffffffffffffffffffffffffffffffffffffff16145b612f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b8051825114612f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5b90614b6d565b60405180910390fd5b60005b8251811015612fad57612fa0838281518110612f7f57fe5b6020026020010151838381518110612f9357fe5b60200260200101516148c9565b8080600101915050612f67565b505050565b6000612fbc6146de565b73ffffffffffffffffffffffffffffffffffffffff16612fda612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614613063576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60011515600560029054906101000a900460ff161515146130ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f436c61696d206973206e6f74207374617274656400000000000000000000000081525060200191505060405180910390fd5b6000600560026101000a81548160ff0219169083151502179055507f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561316d57600080fd5b505afa158015613181573d6000803e3d6000fd5b505050506040513d602081101561319757600080fd5b8101908080519060200190929190505050600e819055507fe6c90b8a9fab15bdebdf96f7861e2592d2cbbe43b72faf4b1f42220bbcaebfa9600c5442604051808381526020018281526020019250505060405180910390a16001905090565b6060600560029054906101000a900460ff1661327a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f436c61696d206973206e6f74207374617274656400000000000000000000000081525060200191505060405180910390fd5b600260015414156132f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555060001515600560009054906101000a900460ff161515148061336d575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b6133ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a390614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461343f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343690614b4d565b60405180910390fd5b6000838390509050600a5481600b540111156134c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f457863656564696e67206d617820636c61696d20737570706c7900000000000081525060200191505060405180910390fd5b6000600c5490506000806000600d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156135655780601f1061353a57610100808354040283529160200191613565565b820191906000526020600020905b81548152906001019060200180831161354857829003601f168201915b5050505050905060006135766146de565b905060008667ffffffffffffffff8111801561359157600080fd5b506040519080825280602002602001820160405280156135c05781602001602082028036833780820191505090505b50905060005b8781101561397c578a8a828181106135da57fe5b905060200201359450600f6000888152602001908152602001600020600086815260200190815260200160002060009054906101000a900460ff161580156136245750600e548511155b801561370657508273ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff16636352211e876040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156136b357600080fd5b505afa1580156136c7573d6000803e3d6000fd5b505050506040513d60208110156136dd57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16145b613778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f496e76616c696420746f6b656e4964000000000000000000000000000000000081525060200191505060405180910390fd5b7f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff1663d0def52184866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613821578082015181840152602081019050613806565b50505050905090810190601f16801561384e5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15801561386e57600080fd5b505af1158015613882573d6000803e3d6000fd5b505050506040513d602081101561389857600080fd5b81019080805190602001909291905050508282815181106138b557fe5b6020026020010181815250506001600f6000898152602001908152602001600020600087815260200190815260200160002060006101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff167f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0268684848151811061394357fe5b6020026020010151604051808381526020018281526020019250505060405180910390a2858060010196505080806001019150506135c6565b5084600b60008282540192505081905550809750505050505050506001808190555092915050565b606060026001541415613a1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550600560019054906101000a900460ff16613aa9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f53616c65206973206e6f7420737461727465640000000000000000000000000081525060200191505060405180910390fd5b60001515600560009054906101000a900460ff1615151480613b1b575060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b613b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b5190614b2d565b60405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514613bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613be490614b4d565b60405180910390fd5b81600654023414613c66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f496e76616c69642050726963650000000000000000000000000000000000000081525060200191505060405180910390fd5b60075482600854011115613ce2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4d617820737570706c7920616c726561647920736f6c6400000000000000000081525060200191505060405180910390fd5b6000613cec6146de565b90506000600d8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015613d865780601f10613d5b57610100808354040283529160200191613d86565b820191906000526020600020905b815481529060010190602001808311613d6957829003601f168201915b5050505050905060008467ffffffffffffffff81118015613da657600080fd5b50604051908082528060200260200182016040528015613dd55781602001602082028036833780820191505090505b50905060005b85811015613fa4577f000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b73ffffffffffffffffffffffffffffffffffffffff1663d0def52185856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613e8c578082015181840152602081019050613e71565b50505050905090810190601f168015613eb95780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015613ed957600080fd5b505af1158015613eed573d6000803e3d6000fd5b505050506040513d6020811015613f0357600080fd5b8101908080519060200190929190505050828281518110613f2057fe5b6020026020010181815250508373ffffffffffffffffffffffffffffffffffffffff167f9b9322562a425e363b0c2f80fc966e9c4f48ac3b5c2d1527d75829c8f505ec96838381518110613f7057fe5b6020026020010151600654604051808381526020018281526020019250505060405180910390a28080600101915050613ddb565b508460086000828254019250508190555080935050505060018081905550919050565b600e5481565b60036020528060005260406000206000915054906101000a900460ff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b6140156146de565b73ffffffffffffffffffffffffffffffffffffffff16614033612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146140bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614142576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180614bab6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6002600061420b6146de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806142975750614261612b4d565b73ffffffffffffffffffffffffffffffffffffffff1661427f6146de565b73ffffffffffffffffffffffffffffffffffffffff16145b6142ec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614c0b6021913960400191505060405180910390fd5b6142f682826148c9565b5050565b60006143046146de565b73ffffffffffffffffffffffffffffffffffffffff16614322612b4d565b73ffffffffffffffffffffffffffffffffffffffff16146143ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600083905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561441957600080fd5b505afa15801561442d573d6000803e3d6000fd5b505050506040513d602081101561444357600080fd5b8101908080519060200190929190505050905060008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156144c957600080fd5b505af11580156144dd573d6000803e3d6000fd5b505050506040513d60208110156144f357600080fd5b8101908080519060200190929190505050905080614579576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f546f6b656e205472616e73666572206661696c6564000000000000000000000081525060200191505060405180910390fd5b81935050505092915050565b600061458f6146de565b73ffffffffffffffffffffffffffffffffffffffff166145ad612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614614636576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600083839050116146af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642055524c00000000000000000000000000000000000000000081525060200191505060405180910390fd5b8282600d91906146c0929190614972565b506001905092915050565b600080823b905060008111915050919050565b600033905090565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167fcf3473b85df1594d47b6958f29a32bea0abff9dd68296f7bf33443646793cfd8826040516147839190614b12565b60405180910390a25050565b80471015614805576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a20696e73756666696369656e742062616c616e636500000081525060200191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d8060008114614865576040519150601f19603f3d011682016040523d82523d6000602084013e61486a565b606091505b50509050806148c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180614bd1603a913960400191505060405180910390fd5b505050565b80600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440826040516149669190614b12565b60405180910390a25050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826149a857600085556149ef565b82601f106149c157803560ff19168380011785556149ef565b828001600101855582156149ef579182015b828111156149ee5782358255916020019190600101906149d3565b5b5090506149fc9190614a00565b5090565b5b80821115614a19576000816000905550600101614a01565b5090565b614a2681614b9e565b82525050565b6000614a39601783614b8d565b91507f55736572206973206e6f742077686974656c69737465640000000000000000006000830152602082019050919050565b6000614a79601383614b8d565b91507f5573657220697320626c61636b6c6973746564000000000000000000000000006000830152602082019050919050565b6000614ab9602683614b8d565b91507f4c656e677468206f6620757365727320616e6420656e61626c6564206d75737460008301527f206d6174636800000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000602082019050614b276000830184614a1d565b92915050565b60006020820190508181036000830152614b4681614a2c565b9050919050565b60006020820190508181036000830152614b6681614a6c565b9050919050565b60006020820190508181036000830152614b8681614aac565b9050919050565b600082825260208201905092915050565b6000811515905091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d6179206861766520726576657274656443616c6c657220646f6573206e6f7420686176652041646d696e20416363657373a2646970667358221220ed4c5a7dff803b1359048605cd9a7c47587013cfa7fb84dc0b9304f0ffc8899564736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b00000000000000000000000000000000000000000000000000f8b0a10e47000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d4e6261454e64506d6745784d336942595a6d6f425a3659746376574c7538766b53416d637862547a545a37560000000000000000000000
-----Decoded View---------------
Arg [0] : _nft (address): 0xe0467b2dF6A715Ec91dD29e7e58d9F35d676968b
Arg [1] : _price (uint256): 70000000000000000
Arg [2] : _url (string): ipfs://QmNbaENdPmgExM3iBYZmoBZ6YtcvWLu8vkSAmcxbTzTZ7V
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000e0467b2df6a715ec91dd29e7e58d9f35d676968b
Arg [1] : 00000000000000000000000000000000000000000000000000f8b0a10e470000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [4] : 697066733a2f2f516d4e6261454e64506d6745784d336942595a6d6f425a3659
Arg [5] : 746376574c7538766b53416d637862547a545a37560000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$139.46
Net Worth in ETH
0.069884
Token Allocations
ETH
99.89%
BNB
0.11%
Multichain Portfolio | 33 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.