Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
There are no matching entriesUpdate your filters to view other transactions | |||||||||
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ASignOfTheTimes
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
/// @title A Sign Of The Times
/// @author @GBERGPHOTO
/// @notice ASOTT is a photographic diary by Gregory Berg
/// @dev @0xORPHAN x @TRANSMENTAL
/*
█████╗ ███████╗██╗ ██████╗ ███╗ ██╗
██╔══██╗ ██╔════╝██║██╔════╝ ████╗ ██║
███████║ ███████╗██║██║ ███╗██╔██╗ ██║
██╔══██║ ╚════██║██║██║ ██║██║╚██╗██║
██║ ██║ ███████║██║╚██████╔╝██║ ╚████║
╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝
██████╗ ███████╗ ████████╗██╗ ██╗███████╗
██╔═══██╗██╔════╝ ╚══██╔══╝██║ ██║██╔════╝
██║ ██║█████╗ ██║ ███████║█████╗
██║ ██║██╔══╝ ██║ ██╔══██║██╔══╝
╚██████╔╝██║ ██║ ██║ ██║███████╗
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝
████████╗██╗███╗ ███╗███████╗███████╗
╚══██╔══╝██║████╗ ████║██╔════╝██╔════╝
██║ ██║██╔████╔██║█████╗ ███████╗
██║ ██║██║╚██╔╝██║██╔══╝ ╚════██║
██║ ██║██║ ╚═╝ ██║███████╗███████║
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝
*/
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
contract ASignOfTheTimes is ERC721A, ReentrancyGuard, ERC2981, Ownable {
string public baseExtension = ".json";
string public baseURI;
address payable public GregoryBerg = payable(0x33602B325F169741662cD33C3F693Eee8dbD20D5);
bool public paused = true;
uint public nftPerAddress = 2;
uint public maxSupply = 100;
uint256 public cost = 0.15 ether;
mapping(address => uint256) public addressMintedBalance;
event RoyaltiesChanged(address _newReceiver, uint96 _newValue);
constructor(
string memory _initBaseURI
)ERC721A("A Sign Of The Times", "ASOTT")
{
baseURI= _initBaseURI;
_setDefaultRoyalty(GregoryBerg, 1000);
}
modifier unPaused() {
require(!paused, 'Contract paused');
_;
}
modifier callerIsUser() {
require(tx.origin == msg.sender, 'The caller is another contract.');
_;
}
function developNFT(
uint256 _amount
)
public
payable
unPaused()
callerIsUser()
{
uint supply = totalSupply();
require((_amount + supply) <= maxSupply, "Sold Out");
require(_amount + addressMintedBalance[msg.sender] <= nftPerAddress, "Can only has 2");
require(msg.value >= (cost * _amount), "not enough ether value");
for (uint256 i = 1; i <= _amount; i++) {
addressMintedBalance[msg.sender]++;
}
_safeMint(msg.sender, _amount);
}
function setBaseURI(string memory _newBaseURI) external onlyOwner {
baseURI = _newBaseURI;
}
function togglePaused(bool _state) external onlyOwner {
paused = _state;
}
function setMintCost(uint256 _cost) external onlyOwner {
cost = _cost;
}
function setNftPerAddress(uint _nftPerAddress) external onlyOwner {
nftPerAddress = _nftPerAddress;
}
function setBaseExtension(string memory _baseExtension) external onlyOwner {
baseExtension = _baseExtension;
}
function setRoyalties(address _receiver, uint96 _value ) external onlyOwner {
_setDefaultRoyalty(_receiver, _value);
emit RoyaltiesChanged(_receiver, _value);
}
function withdraw() public onlyOwner {
(bool success, ) = GregoryBerg.call{value: address(this).balance}("");
require(success, "Failed to send to Greg.");
}
function tokenURI(uint256 _tokenId)
public
view
virtual
override
returns (string memory)
{
require(_exists(_tokenId), "Token does not exist.");
return string(abi.encodePacked(baseURI, Strings.toString(_tokenId), baseExtension));
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721A, ERC2981)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
function _startTokenId()
internal
view
virtual
override
returns(uint256)
{
return 1;
}
}
/*
█████╗ ███████╗██╗ ██████╗ ███╗ ██╗
██╔══██╗ ██╔════╝██║██╔════╝ ████╗ ██║
███████║ ███████╗██║██║ ███╗██╔██╗ ██║
██╔══██║ ╚════██║██║██║ ██║██║╚██╗██║
██║ ██║ ███████║██║╚██████╔╝██║ ╚████║
╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝
██████╗ ███████╗ ████████╗██╗ ██╗███████╗
██╔═══██╗██╔════╝ ╚══██╔══╝██║ ██║██╔════╝
██║ ██║█████╗ ██║ ███████║█████╗
██║ ██║██╔══╝ ██║ ██╔══██║██╔══╝
╚██████╔╝██║ ██║ ██║ ██║███████╗
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝
████████╗██╗███╗ ███╗███████╗███████╗
╚══██╔══╝██║████╗ ████║██╔════╝██╔════╝
██║ ██║██╔████╔██║█████╗ ███████╗
██║ ██║██║╚██╔╝██║██╔══╝ ╚════██║
██║ ██║██║ ╚═╝ ██║███████╗███████║
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝
*/// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
}
// Compiler will pack this into a single 256bit word.
struct AddressData {
// Realistically, 2**64-1 is more than enough.
uint64 balance;
// Keeps track of mint count with minimal overhead for tokenomics.
uint64 numberMinted;
// Keeps track of burn count with minimal overhead for tokenomics.
uint64 numberBurned;
// For miscellaneous variable(s) pertaining to the address
// (e.g. number of whitelist mint slots used).
// If there are multiple variables, please pack them into a uint64.
uint64 aux;
}
// The tokenId of the next token to be minted.
uint256 internal _currentIndex;
// The number of tokens burned.
uint256 internal _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
mapping(uint256 => TokenOwnership) internal _ownerships;
// Mapping owner address to address data
mapping(address => AddressData) private _addressData;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
/**
* To change the starting tokenId, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
*/
function totalSupply() public view returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than _currentIndex - _startTokenId() times
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view returns (uint256) {
// Counter underflow is impossible as _currentIndex does not decrement,
// and it is initialized to _startTokenId()
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return uint256(_addressData[owner].balance);
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return uint256(_addressData[owner].numberMinted);
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return uint256(_addressData[owner].numberBurned);
}
/**
* Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return _addressData[owner].aux;
}
/**
* Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal {
_addressData[owner].aux = aux;
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr && curr < _currentIndex) {
TokenOwnership memory ownership = _ownerships[curr];
if (!ownership.burned) {
if (ownership.addr != address(0)) {
return ownership;
}
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
while (true) {
curr--;
ownership = _ownerships[curr];
if (ownership.addr != address(0)) {
return ownership;
}
}
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return _ownershipOf(tokenId).addr;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : '';
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = ERC721A.ownerOf(tokenId);
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_approve(to, tokenId, owner);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSender()) revert ApproveToCaller();
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
_transfer(from, to, tokenId);
if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return _startTokenId() <= tokenId && tokenId < _currentIndex &&
!_ownerships[tokenId].burned;
}
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_mint(to, quantity, _data, true);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
// updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
unchecked {
_addressData[to].balance += uint64(quantity);
_addressData[to].numberMinted += uint64(quantity);
_ownerships[startTokenId].addr = to;
_ownerships[startTokenId].startTimestamp = uint64(block.timestamp);
uint256 updatedIndex = startTokenId;
uint256 end = updatedIndex + quantity;
if (safe && to.isContract()) {
do {
emit Transfer(address(0), to, updatedIndex);
if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (updatedIndex != end);
// Reentrancy protection
if (_currentIndex != startTokenId) revert();
} else {
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex != end);
}
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) private {
TokenOwnership memory prevOwnership = _ownershipOf(tokenId);
if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
bool isApprovedOrOwner = (_msgSender() == from ||
isApprovedForAll(from, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, from);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
_addressData[from].balance -= 1;
_addressData[to].balance += 1;
TokenOwnership storage currSlot = _ownerships[tokenId];
currSlot.addr = to;
currSlot.startTimestamp = uint64(block.timestamp);
// If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
TokenOwnership storage nextSlot = _ownerships[nextTokenId];
if (nextSlot.addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId != _currentIndex) {
nextSlot.addr = from;
nextSlot.startTimestamp = prevOwnership.startTimestamp;
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev This is equivalent to _burn(tokenId, false)
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
TokenOwnership memory prevOwnership = _ownershipOf(tokenId);
address from = prevOwnership.addr;
if (approvalCheck) {
bool isApprovedOrOwner = (_msgSender() == from ||
isApprovedForAll(from, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, from);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
AddressData storage addressData = _addressData[from];
addressData.balance -= 1;
addressData.numberBurned += 1;
// Keep track of who burned the token, and the timestamp of burning.
TokenOwnership storage currSlot = _ownerships[tokenId];
currSlot.addr = from;
currSlot.startTimestamp = uint64(block.timestamp);
currSlot.burned = true;
// If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
TokenOwnership storage nextSlot = _ownerships[nextTokenId];
if (nextSlot.addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId != _currentIndex) {
nextSlot.addr = from;
nextSlot.startTimestamp = prevOwnership.startTimestamp;
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
external
view
virtual
override
returns (address, uint256)
{
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];
if (royalty.receiver == address(0)) {
royalty = _defaultRoyaltyInfo;
}
uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();
return (royalty.receiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: invalid receiver");
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `tokenId` must be already minted.
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setTokenRoyalty(
uint256 tokenId,
address receiver,
uint96 feeNumerator
) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: Invalid parameters");
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Resets royalty information for the token id back to the global default.
*/
function _resetTokenRoyalty(uint256 tokenId) internal virtual {
delete _tokenRoyaltyInfo[tokenId];
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newReceiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"_newValue","type":"uint96"}],"name":"RoyaltiesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"GregoryBerg","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"developNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftPerAddress","type":"uint256"}],"name":"setNftPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_value","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c908051906020019062000051929190620004c3565b507333602b325f169741662cd33c3f693eee8dbd20d5600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600e60146101000a81548160ff0219169083151502179055506002600f556064601055670214e8348c4f0000601155348015620000e557600080fd5b5060405162004a8938038062004a8983398181016040528101906200010b919062000710565b6040518060400160405280601381526020017f41205369676e204f66205468652054696d6573000000000000000000000000008152506040518060400160405280600581526020017f41534f545400000000000000000000000000000000000000000000000000000081525081600290805190602001906200018f929190620004c3565b508060039080519060200190620001a8929190620004c3565b50620001b96200023f60201b60201c565b60008190555050506001600881905550620001e9620001dd6200024860201b60201c565b6200025060201b60201c565b80600d908051906020019062000201929190620004c3565b5062000238600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166103e86200031660201b60201c565b50620008e0565b60006001905090565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000326620004b960201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000387576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200037e90620007e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620003f9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003f0906200085a565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b828054620004d190620008ab565b90600052602060002090601f016020900481019282620004f5576000855562000541565b82601f106200051057805160ff191683800117855562000541565b8280016001018555821562000541579182015b828111156200054057825182559160200191906001019062000523565b5b50905062000550919062000554565b5090565b5b808211156200056f57600081600090555060010162000555565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005dc8262000591565b810181811067ffffffffffffffff82111715620005fe57620005fd620005a2565b5b80604052505050565b60006200061362000573565b9050620006218282620005d1565b919050565b600067ffffffffffffffff821115620006445762000643620005a2565b5b6200064f8262000591565b9050602081019050919050565b60005b838110156200067c5780820151818401526020810190506200065f565b838111156200068c576000848401525b50505050565b6000620006a9620006a38462000626565b62000607565b905082815260208101848484011115620006c857620006c76200058c565b5b620006d58482856200065c565b509392505050565b600082601f830112620006f557620006f462000587565b5b81516200070784826020860162000692565b91505092915050565b6000602082840312156200072957620007286200057d565b5b600082015167ffffffffffffffff8111156200074a576200074962000582565b5b6200075884828501620006dd565b91505092915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620007d0602a8362000761565b9150620007dd8262000772565b604082019050919050565b600060208201905081810360008301526200080381620007c1565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200084260198362000761565b91506200084f826200080a565b602082019050919050565b60006020820190508181036000830152620008758162000833565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008c457607f821691505b602082108103620008da57620008d96200087c565b5b50919050565b61419980620008f06000396000f3fe6080604052600436106101f95760003560e01c80636c0360eb1161010d578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb0114610713578063da3ef23f1461073e578063da541e0914610767578063e985e9c514610790578063f2fde38b146107cd576101f9565b8063b88d4fde14610659578063c21b471b14610682578063c6682862146106ab578063c87b56dd146106d6576101f9565b80638da5cb5b116100dc5780638da5cb5b146105be57806395d89b41146105e9578063a22cb46514610614578063a600b7e41461063d576101f9565b80636c0360eb1461051657806370a0823114610541578063715018a61461057e5780638545f4ea14610595576101f9565b80632032fd3c116101905780633ccfd60b1161015f5780633ccfd60b1461044557806342842e0e1461045c57806355f804b3146104855780635c975abb146104ae5780636352211e146104d9576101f9565b80632032fd3c1461038a5780632035f8a1146103b557806323b872dd146103de5780632a55205a14610407576101f9565b8063095ea7b3116101cc578063095ea7b3146102ce57806313faede6146102f757806318160ddd1461032257806318cae2691461034d576101f9565b806301ffc9a7146101fe57806306fdde031461023b57806307ce9fee14610266578063081812fc14610291575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612fff565b6107f6565b6040516102329190613047565b60405180910390f35b34801561024757600080fd5b50610250610808565b60405161025d91906130fb565b60405180910390f35b34801561027257600080fd5b5061027b61089a565b604051610288919061315e565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b391906131af565b6108c0565b6040516102c591906131fd565b60405180910390f35b3480156102da57600080fd5b506102f560048036038101906102f09190613244565b61093c565b005b34801561030357600080fd5b5061030c610a46565b6040516103199190613293565b60405180910390f35b34801561032e57600080fd5b50610337610a4c565b6040516103449190613293565b60405180910390f35b34801561035957600080fd5b50610374600480360381019061036f91906132ae565b610a63565b6040516103819190613293565b60405180910390f35b34801561039657600080fd5b5061039f610a7b565b6040516103ac9190613293565b60405180910390f35b3480156103c157600080fd5b506103dc60048036038101906103d791906131af565b610a81565b005b3480156103ea57600080fd5b50610405600480360381019061040091906132db565b610b07565b005b34801561041357600080fd5b5061042e6004803603810190610429919061332e565b610b17565b60405161043c92919061336e565b60405180910390f35b34801561045157600080fd5b5061045a610d01565b005b34801561046857600080fd5b50610483600480360381019061047e91906132db565b610e4e565b005b34801561049157600080fd5b506104ac60048036038101906104a791906134cc565b610e6e565b005b3480156104ba57600080fd5b506104c3610f04565b6040516104d09190613047565b60405180910390f35b3480156104e557600080fd5b5061050060048036038101906104fb91906131af565b610f17565b60405161050d91906131fd565b60405180910390f35b34801561052257600080fd5b5061052b610f2d565b60405161053891906130fb565b60405180910390f35b34801561054d57600080fd5b50610568600480360381019061056391906132ae565b610fbb565b6040516105759190613293565b60405180910390f35b34801561058a57600080fd5b5061059361108a565b005b3480156105a157600080fd5b506105bc60048036038101906105b791906131af565b611112565b005b3480156105ca57600080fd5b506105d3611198565b6040516105e091906131fd565b60405180910390f35b3480156105f557600080fd5b506105fe6111c2565b60405161060b91906130fb565b60405180910390f35b34801561062057600080fd5b5061063b60048036038101906106369190613541565b611254565b005b610657600480360381019061065291906131af565b6113cb565b005b34801561066557600080fd5b50610680600480360381019061067b9190613622565b611649565b005b34801561068e57600080fd5b506106a960048036038101906106a491906136e9565b6116c5565b005b3480156106b757600080fd5b506106c0611788565b6040516106cd91906130fb565b60405180910390f35b3480156106e257600080fd5b506106fd60048036038101906106f891906131af565b611816565b60405161070a91906130fb565b60405180910390f35b34801561071f57600080fd5b50610728611895565b6040516107359190613293565b60405180910390f35b34801561074a57600080fd5b50610765600480360381019061076091906134cc565b61189b565b005b34801561077357600080fd5b5061078e60048036038101906107899190613729565b611931565b005b34801561079c57600080fd5b506107b760048036038101906107b29190613756565b6119ca565b6040516107c49190613047565b60405180910390f35b3480156107d957600080fd5b506107f460048036038101906107ef91906132ae565b611a5e565b005b600061080182611b55565b9050919050565b606060028054610817906137c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610843906137c5565b80156108905780601f1061086557610100808354040283529160200191610890565b820191906000526020600020905b81548152906001019060200180831161087357829003601f168201915b5050505050905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006108cb82611bcf565b610901576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061094782610f17565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109ae576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109cd611c1d565b73ffffffffffffffffffffffffffffffffffffffff16141580156109ff57506109fd816109f8611c1d565b6119ca565b155b15610a36576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a41838383611c25565b505050565b60115481565b6000610a56611cd7565b6001546000540303905090565b60126020528060005260406000206000915090505481565b600f5481565b610a89611c1d565b73ffffffffffffffffffffffffffffffffffffffff16610aa7611198565b73ffffffffffffffffffffffffffffffffffffffff1614610afd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af490613842565b60405180910390fd5b80600f8190555050565b610b12838383611ce0565b505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cac5760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cb6612194565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ce29190613891565b610cec919061391a565b90508160000151819350935050509250929050565b610d09611c1d565b73ffffffffffffffffffffffffffffffffffffffff16610d27611198565b73ffffffffffffffffffffffffffffffffffffffff1614610d7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7490613842565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610dc59061397c565b60006040518083038185875af1925050503d8060008114610e02576040519150601f19603f3d011682016040523d82523d6000602084013e610e07565b606091505b5050905080610e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e42906139dd565b60405180910390fd5b50565b610e6983838360405180602001604052806000815250611649565b505050565b610e76611c1d565b73ffffffffffffffffffffffffffffffffffffffff16610e94611198565b73ffffffffffffffffffffffffffffffffffffffff1614610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190613842565b60405180910390fd5b80600d9080519060200190610f00929190612ead565b5050565b600e60149054906101000a900460ff1681565b6000610f228261219e565b600001519050919050565b600d8054610f3a906137c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610f66906137c5565b8015610fb35780601f10610f8857610100808354040283529160200191610fb3565b820191906000526020600020905b815481529060010190602001808311610f9657829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611022576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611092611c1d565b73ffffffffffffffffffffffffffffffffffffffff166110b0611198565b73ffffffffffffffffffffffffffffffffffffffff1614611106576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fd90613842565b60405180910390fd5b611110600061242d565b565b61111a611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611138611198565b73ffffffffffffffffffffffffffffffffffffffff161461118e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118590613842565b60405180910390fd5b8060118190555050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546111d1906137c5565b80601f01602080910402602001604051908101604052809291908181526020018280546111fd906137c5565b801561124a5780601f1061121f5761010080835404028352916020019161124a565b820191906000526020600020905b81548152906001019060200180831161122d57829003601f168201915b5050505050905090565b61125c611c1d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112c0576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006112cd611c1d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661137a611c1d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113bf9190613047565b60405180910390a35050565b600e60149054906101000a900460ff161561141b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141290613a49565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148090613ab5565b60405180910390fd5b6000611493610a4c565b905060105481836114a49190613ad5565b11156114e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dc90613b77565b60405180910390fd5b600f54601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836115339190613ad5565b1115611574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156b90613be3565b60405180910390fd5b816011546115829190613891565b3410156115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb90613c4f565b60405180910390fd5b6000600190505b82811161163a57601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061162290613c6f565b9190505550808061163290613c6f565b9150506115cb565b5061164533836124f3565b5050565b611654848484611ce0565b6116738373ffffffffffffffffffffffffffffffffffffffff16612511565b8015611688575061168684848484612534565b155b156116bf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6116cd611c1d565b73ffffffffffffffffffffffffffffffffffffffff166116eb611198565b73ffffffffffffffffffffffffffffffffffffffff1614611741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173890613842565b60405180910390fd5b61174b8282612684565b7f111989d7f0e41872bbd4cf4d94f4125711bfde242cfd6caca6658064ad6c23d1828260405161177c929190613cc6565b60405180910390a15050565b600c8054611795906137c5565b80601f01602080910402602001604051908101604052809291908181526020018280546117c1906137c5565b801561180e5780601f106117e35761010080835404028352916020019161180e565b820191906000526020600020905b8154815290600101906020018083116117f157829003601f168201915b505050505081565b606061182182611bcf565b611860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185790613d3b565b60405180910390fd5b600d61186b83612819565b600c60405160200161187f93929190613e2b565b6040516020818303038152906040529050919050565b60105481565b6118a3611c1d565b73ffffffffffffffffffffffffffffffffffffffff166118c1611198565b73ffffffffffffffffffffffffffffffffffffffff1614611917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190e90613842565b60405180910390fd5b80600c908051906020019061192d929190612ead565b5050565b611939611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611957611198565b73ffffffffffffffffffffffffffffffffffffffff16146119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a490613842565b60405180910390fd5b80600e60146101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a66611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611a84611198565b73ffffffffffffffffffffffffffffffffffffffff1614611ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad190613842565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4090613ece565b60405180910390fd5b611b528161242d565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bc85750611bc782612979565b5b9050919050565b600081611bda611cd7565b11158015611be9575060005482105b8015611c16575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b6000611ceb8261219e565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611d56576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611d77611c1d565b73ffffffffffffffffffffffffffffffffffffffff161480611da65750611da585611da0611c1d565b6119ca565b5b80611deb5750611db4611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611dd3846108c0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e24576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e8a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e978585856001612a5b565b611ea360008487611c25565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361212257600054821461212157878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461218d8585856001612a61565b5050505050565b6000612710905090565b6121a6612f33565b6000829050806121b4611cd7565b111580156121c3575060005481105b156123f6576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516123f457600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122d8578092505050612428565b5b6001156123f357818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146123ee578092505050612428565b6122d9565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61250d828260405180602001604052806000815250612a67565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261255a611c1d565b8786866040518563ffffffff1660e01b815260040161257c9493929190613f43565b6020604051808303816000875af19250505080156125b857506040513d601f19601f820116820180604052508101906125b59190613fa4565b60015b612631573d80600081146125e8576040519150601f19603f3d011682016040523d82523d6000602084013e6125ed565b606091505b506000815103612629576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61268c612194565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156126ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e190614043565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612759576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612750906140af565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b606060008203612860576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612974565b600082905060005b6000821461289257808061287b90613c6f565b915050600a8261288b919061391a565b9150612868565b60008167ffffffffffffffff8111156128ae576128ad6133a1565b5b6040519080825280601f01601f1916602001820160405280156128e05781602001600182028036833780820191505090505b5090505b6000851461296d576001826128f991906140cf565b9150600a856129089190614103565b60306129149190613ad5565b60f81b81838151811061292a57612929614134565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612966919061391a565b94506128e4565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a4457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612a545750612a5382612a79565b5b9050919050565b50505050565b50505050565b612a748383836001612ae3565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612b4f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008403612b89576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b966000868387612a5b565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015612d605750612d5f8773ffffffffffffffffffffffffffffffffffffffff16612511565b5b15612e25575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dd56000888480600101955088612534565b612e0b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808203612d66578260005414612e2057600080fd5b612e90565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808203612e26575b816000819055505050612ea66000868387612a61565b5050505050565b828054612eb9906137c5565b90600052602060002090601f016020900481019282612edb5760008555612f22565b82601f10612ef457805160ff1916838001178555612f22565b82800160010185558215612f22579182015b82811115612f21578251825591602001919060010190612f06565b5b509050612f2f9190612f76565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115612f8f576000816000905550600101612f77565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fdc81612fa7565b8114612fe757600080fd5b50565b600081359050612ff981612fd3565b92915050565b60006020828403121561301557613014612f9d565b5b600061302384828501612fea565b91505092915050565b60008115159050919050565b6130418161302c565b82525050565b600060208201905061305c6000830184613038565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561309c578082015181840152602081019050613081565b838111156130ab576000848401525b50505050565b6000601f19601f8301169050919050565b60006130cd82613062565b6130d7818561306d565b93506130e781856020860161307e565b6130f0816130b1565b840191505092915050565b6000602082019050818103600083015261311581846130c2565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131488261311d565b9050919050565b6131588161313d565b82525050565b6000602082019050613173600083018461314f565b92915050565b6000819050919050565b61318c81613179565b811461319757600080fd5b50565b6000813590506131a981613183565b92915050565b6000602082840312156131c5576131c4612f9d565b5b60006131d38482850161319a565b91505092915050565b60006131e78261311d565b9050919050565b6131f7816131dc565b82525050565b600060208201905061321260008301846131ee565b92915050565b613221816131dc565b811461322c57600080fd5b50565b60008135905061323e81613218565b92915050565b6000806040838503121561325b5761325a612f9d565b5b60006132698582860161322f565b925050602061327a8582860161319a565b9150509250929050565b61328d81613179565b82525050565b60006020820190506132a86000830184613284565b92915050565b6000602082840312156132c4576132c3612f9d565b5b60006132d28482850161322f565b91505092915050565b6000806000606084860312156132f4576132f3612f9d565b5b60006133028682870161322f565b93505060206133138682870161322f565b92505060406133248682870161319a565b9150509250925092565b6000806040838503121561334557613344612f9d565b5b60006133538582860161319a565b92505060206133648582860161319a565b9150509250929050565b600060408201905061338360008301856131ee565b6133906020830184613284565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133d9826130b1565b810181811067ffffffffffffffff821117156133f8576133f76133a1565b5b80604052505050565b600061340b612f93565b905061341782826133d0565b919050565b600067ffffffffffffffff821115613437576134366133a1565b5b613440826130b1565b9050602081019050919050565b82818337600083830152505050565b600061346f61346a8461341c565b613401565b90508281526020810184848401111561348b5761348a61339c565b5b61349684828561344d565b509392505050565b600082601f8301126134b3576134b2613397565b5b81356134c384826020860161345c565b91505092915050565b6000602082840312156134e2576134e1612f9d565b5b600082013567ffffffffffffffff811115613500576134ff612fa2565b5b61350c8482850161349e565b91505092915050565b61351e8161302c565b811461352957600080fd5b50565b60008135905061353b81613515565b92915050565b6000806040838503121561355857613557612f9d565b5b60006135668582860161322f565b92505060206135778582860161352c565b9150509250929050565b600067ffffffffffffffff82111561359c5761359b6133a1565b5b6135a5826130b1565b9050602081019050919050565b60006135c56135c084613581565b613401565b9050828152602081018484840111156135e1576135e061339c565b5b6135ec84828561344d565b509392505050565b600082601f83011261360957613608613397565b5b81356136198482602086016135b2565b91505092915050565b6000806000806080858703121561363c5761363b612f9d565b5b600061364a8782880161322f565b945050602061365b8782880161322f565b935050604061366c8782880161319a565b925050606085013567ffffffffffffffff81111561368d5761368c612fa2565b5b613699878288016135f4565b91505092959194509250565b60006bffffffffffffffffffffffff82169050919050565b6136c6816136a5565b81146136d157600080fd5b50565b6000813590506136e3816136bd565b92915050565b60008060408385031215613700576136ff612f9d565b5b600061370e8582860161322f565b925050602061371f858286016136d4565b9150509250929050565b60006020828403121561373f5761373e612f9d565b5b600061374d8482850161352c565b91505092915050565b6000806040838503121561376d5761376c612f9d565b5b600061377b8582860161322f565b925050602061378c8582860161322f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137dd57607f821691505b6020821081036137f0576137ef613796565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061382c60208361306d565b9150613837826137f6565b602082019050919050565b6000602082019050818103600083015261385b8161381f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061389c82613179565b91506138a783613179565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138e0576138df613862565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061392582613179565b915061393083613179565b9250826139405761393f6138eb565b5b828204905092915050565b600081905092915050565b50565b600061396660008361394b565b915061397182613956565b600082019050919050565b600061398782613959565b9150819050919050565b7f4661696c656420746f2073656e6420746f20477265672e000000000000000000600082015250565b60006139c760178361306d565b91506139d282613991565b602082019050919050565b600060208201905081810360008301526139f6816139ba565b9050919050565b7f436f6e7472616374207061757365640000000000000000000000000000000000600082015250565b6000613a33600f8361306d565b9150613a3e826139fd565b602082019050919050565b60006020820190508181036000830152613a6281613a26565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b6000613a9f601f8361306d565b9150613aaa82613a69565b602082019050919050565b60006020820190508181036000830152613ace81613a92565b9050919050565b6000613ae082613179565b9150613aeb83613179565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b2057613b1f613862565b5b828201905092915050565b7f536f6c64204f7574000000000000000000000000000000000000000000000000600082015250565b6000613b6160088361306d565b9150613b6c82613b2b565b602082019050919050565b60006020820190508181036000830152613b9081613b54565b9050919050565b7f43616e206f6e6c79206861732032000000000000000000000000000000000000600082015250565b6000613bcd600e8361306d565b9150613bd882613b97565b602082019050919050565b60006020820190508181036000830152613bfc81613bc0565b9050919050565b7f6e6f7420656e6f7567682065746865722076616c756500000000000000000000600082015250565b6000613c3960168361306d565b9150613c4482613c03565b602082019050919050565b60006020820190508181036000830152613c6881613c2c565b9050919050565b6000613c7a82613179565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613cac57613cab613862565b5b600182019050919050565b613cc0816136a5565b82525050565b6000604082019050613cdb60008301856131ee565b613ce86020830184613cb7565b9392505050565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b6000613d2560158361306d565b9150613d3082613cef565b602082019050919050565b60006020820190508181036000830152613d5481613d18565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613d88816137c5565b613d928186613d5b565b94506001821660008114613dad5760018114613dbe57613df1565b60ff19831686528186019350613df1565b613dc785613d66565b60005b83811015613de957815481890152600182019150602081019050613dca565b838801955050505b50505092915050565b6000613e0582613062565b613e0f8185613d5b565b9350613e1f81856020860161307e565b80840191505092915050565b6000613e378286613d7b565b9150613e438285613dfa565b9150613e4f8284613d7b565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613eb860268361306d565b9150613ec382613e5c565b604082019050919050565b60006020820190508181036000830152613ee781613eab565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613f1582613eee565b613f1f8185613ef9565b9350613f2f81856020860161307e565b613f38816130b1565b840191505092915050565b6000608082019050613f5860008301876131ee565b613f6560208301866131ee565b613f726040830185613284565b8181036060830152613f848184613f0a565b905095945050505050565b600081519050613f9e81612fd3565b92915050565b600060208284031215613fba57613fb9612f9d565b5b6000613fc884828501613f8f565b91505092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061402d602a8361306d565b915061403882613fd1565b604082019050919050565b6000602082019050818103600083015261405c81614020565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061409960198361306d565b91506140a482614063565b602082019050919050565b600060208201905081810360008301526140c88161408c565b9050919050565b60006140da82613179565b91506140e583613179565b9250828210156140f8576140f7613862565b5b828203905092915050565b600061410e82613179565b915061411983613179565b925082614129576141286138eb565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220b86179753134ec25d13c23c54d325671bf95e5b06be4c53fb345a0183367c8cb64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61366741555a7841593678505a475a593267484e35576a3375384b474c6f5662624274344d7372706a6575752f00000000000000000000
Deployed Bytecode
0x6080604052600436106101f95760003560e01c80636c0360eb1161010d578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb0114610713578063da3ef23f1461073e578063da541e0914610767578063e985e9c514610790578063f2fde38b146107cd576101f9565b8063b88d4fde14610659578063c21b471b14610682578063c6682862146106ab578063c87b56dd146106d6576101f9565b80638da5cb5b116100dc5780638da5cb5b146105be57806395d89b41146105e9578063a22cb46514610614578063a600b7e41461063d576101f9565b80636c0360eb1461051657806370a0823114610541578063715018a61461057e5780638545f4ea14610595576101f9565b80632032fd3c116101905780633ccfd60b1161015f5780633ccfd60b1461044557806342842e0e1461045c57806355f804b3146104855780635c975abb146104ae5780636352211e146104d9576101f9565b80632032fd3c1461038a5780632035f8a1146103b557806323b872dd146103de5780632a55205a14610407576101f9565b8063095ea7b3116101cc578063095ea7b3146102ce57806313faede6146102f757806318160ddd1461032257806318cae2691461034d576101f9565b806301ffc9a7146101fe57806306fdde031461023b57806307ce9fee14610266578063081812fc14610291575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612fff565b6107f6565b6040516102329190613047565b60405180910390f35b34801561024757600080fd5b50610250610808565b60405161025d91906130fb565b60405180910390f35b34801561027257600080fd5b5061027b61089a565b604051610288919061315e565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b391906131af565b6108c0565b6040516102c591906131fd565b60405180910390f35b3480156102da57600080fd5b506102f560048036038101906102f09190613244565b61093c565b005b34801561030357600080fd5b5061030c610a46565b6040516103199190613293565b60405180910390f35b34801561032e57600080fd5b50610337610a4c565b6040516103449190613293565b60405180910390f35b34801561035957600080fd5b50610374600480360381019061036f91906132ae565b610a63565b6040516103819190613293565b60405180910390f35b34801561039657600080fd5b5061039f610a7b565b6040516103ac9190613293565b60405180910390f35b3480156103c157600080fd5b506103dc60048036038101906103d791906131af565b610a81565b005b3480156103ea57600080fd5b50610405600480360381019061040091906132db565b610b07565b005b34801561041357600080fd5b5061042e6004803603810190610429919061332e565b610b17565b60405161043c92919061336e565b60405180910390f35b34801561045157600080fd5b5061045a610d01565b005b34801561046857600080fd5b50610483600480360381019061047e91906132db565b610e4e565b005b34801561049157600080fd5b506104ac60048036038101906104a791906134cc565b610e6e565b005b3480156104ba57600080fd5b506104c3610f04565b6040516104d09190613047565b60405180910390f35b3480156104e557600080fd5b5061050060048036038101906104fb91906131af565b610f17565b60405161050d91906131fd565b60405180910390f35b34801561052257600080fd5b5061052b610f2d565b60405161053891906130fb565b60405180910390f35b34801561054d57600080fd5b50610568600480360381019061056391906132ae565b610fbb565b6040516105759190613293565b60405180910390f35b34801561058a57600080fd5b5061059361108a565b005b3480156105a157600080fd5b506105bc60048036038101906105b791906131af565b611112565b005b3480156105ca57600080fd5b506105d3611198565b6040516105e091906131fd565b60405180910390f35b3480156105f557600080fd5b506105fe6111c2565b60405161060b91906130fb565b60405180910390f35b34801561062057600080fd5b5061063b60048036038101906106369190613541565b611254565b005b610657600480360381019061065291906131af565b6113cb565b005b34801561066557600080fd5b50610680600480360381019061067b9190613622565b611649565b005b34801561068e57600080fd5b506106a960048036038101906106a491906136e9565b6116c5565b005b3480156106b757600080fd5b506106c0611788565b6040516106cd91906130fb565b60405180910390f35b3480156106e257600080fd5b506106fd60048036038101906106f891906131af565b611816565b60405161070a91906130fb565b60405180910390f35b34801561071f57600080fd5b50610728611895565b6040516107359190613293565b60405180910390f35b34801561074a57600080fd5b50610765600480360381019061076091906134cc565b61189b565b005b34801561077357600080fd5b5061078e60048036038101906107899190613729565b611931565b005b34801561079c57600080fd5b506107b760048036038101906107b29190613756565b6119ca565b6040516107c49190613047565b60405180910390f35b3480156107d957600080fd5b506107f460048036038101906107ef91906132ae565b611a5e565b005b600061080182611b55565b9050919050565b606060028054610817906137c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610843906137c5565b80156108905780601f1061086557610100808354040283529160200191610890565b820191906000526020600020905b81548152906001019060200180831161087357829003601f168201915b5050505050905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006108cb82611bcf565b610901576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061094782610f17565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109ae576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109cd611c1d565b73ffffffffffffffffffffffffffffffffffffffff16141580156109ff57506109fd816109f8611c1d565b6119ca565b155b15610a36576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a41838383611c25565b505050565b60115481565b6000610a56611cd7565b6001546000540303905090565b60126020528060005260406000206000915090505481565b600f5481565b610a89611c1d565b73ffffffffffffffffffffffffffffffffffffffff16610aa7611198565b73ffffffffffffffffffffffffffffffffffffffff1614610afd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af490613842565b60405180910390fd5b80600f8190555050565b610b12838383611ce0565b505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cac5760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cb6612194565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ce29190613891565b610cec919061391a565b90508160000151819350935050509250929050565b610d09611c1d565b73ffffffffffffffffffffffffffffffffffffffff16610d27611198565b73ffffffffffffffffffffffffffffffffffffffff1614610d7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7490613842565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610dc59061397c565b60006040518083038185875af1925050503d8060008114610e02576040519150601f19603f3d011682016040523d82523d6000602084013e610e07565b606091505b5050905080610e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e42906139dd565b60405180910390fd5b50565b610e6983838360405180602001604052806000815250611649565b505050565b610e76611c1d565b73ffffffffffffffffffffffffffffffffffffffff16610e94611198565b73ffffffffffffffffffffffffffffffffffffffff1614610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190613842565b60405180910390fd5b80600d9080519060200190610f00929190612ead565b5050565b600e60149054906101000a900460ff1681565b6000610f228261219e565b600001519050919050565b600d8054610f3a906137c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610f66906137c5565b8015610fb35780601f10610f8857610100808354040283529160200191610fb3565b820191906000526020600020905b815481529060010190602001808311610f9657829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611022576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611092611c1d565b73ffffffffffffffffffffffffffffffffffffffff166110b0611198565b73ffffffffffffffffffffffffffffffffffffffff1614611106576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fd90613842565b60405180910390fd5b611110600061242d565b565b61111a611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611138611198565b73ffffffffffffffffffffffffffffffffffffffff161461118e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118590613842565b60405180910390fd5b8060118190555050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546111d1906137c5565b80601f01602080910402602001604051908101604052809291908181526020018280546111fd906137c5565b801561124a5780601f1061121f5761010080835404028352916020019161124a565b820191906000526020600020905b81548152906001019060200180831161122d57829003601f168201915b5050505050905090565b61125c611c1d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112c0576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006112cd611c1d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661137a611c1d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113bf9190613047565b60405180910390a35050565b600e60149054906101000a900460ff161561141b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141290613a49565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148090613ab5565b60405180910390fd5b6000611493610a4c565b905060105481836114a49190613ad5565b11156114e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dc90613b77565b60405180910390fd5b600f54601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836115339190613ad5565b1115611574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156b90613be3565b60405180910390fd5b816011546115829190613891565b3410156115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb90613c4f565b60405180910390fd5b6000600190505b82811161163a57601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061162290613c6f565b9190505550808061163290613c6f565b9150506115cb565b5061164533836124f3565b5050565b611654848484611ce0565b6116738373ffffffffffffffffffffffffffffffffffffffff16612511565b8015611688575061168684848484612534565b155b156116bf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6116cd611c1d565b73ffffffffffffffffffffffffffffffffffffffff166116eb611198565b73ffffffffffffffffffffffffffffffffffffffff1614611741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173890613842565b60405180910390fd5b61174b8282612684565b7f111989d7f0e41872bbd4cf4d94f4125711bfde242cfd6caca6658064ad6c23d1828260405161177c929190613cc6565b60405180910390a15050565b600c8054611795906137c5565b80601f01602080910402602001604051908101604052809291908181526020018280546117c1906137c5565b801561180e5780601f106117e35761010080835404028352916020019161180e565b820191906000526020600020905b8154815290600101906020018083116117f157829003601f168201915b505050505081565b606061182182611bcf565b611860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185790613d3b565b60405180910390fd5b600d61186b83612819565b600c60405160200161187f93929190613e2b565b6040516020818303038152906040529050919050565b60105481565b6118a3611c1d565b73ffffffffffffffffffffffffffffffffffffffff166118c1611198565b73ffffffffffffffffffffffffffffffffffffffff1614611917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190e90613842565b60405180910390fd5b80600c908051906020019061192d929190612ead565b5050565b611939611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611957611198565b73ffffffffffffffffffffffffffffffffffffffff16146119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a490613842565b60405180910390fd5b80600e60146101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a66611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611a84611198565b73ffffffffffffffffffffffffffffffffffffffff1614611ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad190613842565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4090613ece565b60405180910390fd5b611b528161242d565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bc85750611bc782612979565b5b9050919050565b600081611bda611cd7565b11158015611be9575060005482105b8015611c16575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b6000611ceb8261219e565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611d56576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611d77611c1d565b73ffffffffffffffffffffffffffffffffffffffff161480611da65750611da585611da0611c1d565b6119ca565b5b80611deb5750611db4611c1d565b73ffffffffffffffffffffffffffffffffffffffff16611dd3846108c0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e24576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e8a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e978585856001612a5b565b611ea360008487611c25565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361212257600054821461212157878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461218d8585856001612a61565b5050505050565b6000612710905090565b6121a6612f33565b6000829050806121b4611cd7565b111580156121c3575060005481105b156123f6576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516123f457600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122d8578092505050612428565b5b6001156123f357818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146123ee578092505050612428565b6122d9565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61250d828260405180602001604052806000815250612a67565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261255a611c1d565b8786866040518563ffffffff1660e01b815260040161257c9493929190613f43565b6020604051808303816000875af19250505080156125b857506040513d601f19601f820116820180604052508101906125b59190613fa4565b60015b612631573d80600081146125e8576040519150601f19603f3d011682016040523d82523d6000602084013e6125ed565b606091505b506000815103612629576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61268c612194565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156126ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e190614043565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612759576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612750906140af565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b606060008203612860576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612974565b600082905060005b6000821461289257808061287b90613c6f565b915050600a8261288b919061391a565b9150612868565b60008167ffffffffffffffff8111156128ae576128ad6133a1565b5b6040519080825280601f01601f1916602001820160405280156128e05781602001600182028036833780820191505090505b5090505b6000851461296d576001826128f991906140cf565b9150600a856129089190614103565b60306129149190613ad5565b60f81b81838151811061292a57612929614134565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612966919061391a565b94506128e4565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a4457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612a545750612a5382612a79565b5b9050919050565b50505050565b50505050565b612a748383836001612ae3565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612b4f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008403612b89576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b966000868387612a5b565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015612d605750612d5f8773ffffffffffffffffffffffffffffffffffffffff16612511565b5b15612e25575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dd56000888480600101955088612534565b612e0b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808203612d66578260005414612e2057600080fd5b612e90565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808203612e26575b816000819055505050612ea66000868387612a61565b5050505050565b828054612eb9906137c5565b90600052602060002090601f016020900481019282612edb5760008555612f22565b82601f10612ef457805160ff1916838001178555612f22565b82800160010185558215612f22579182015b82811115612f21578251825591602001919060010190612f06565b5b509050612f2f9190612f76565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115612f8f576000816000905550600101612f77565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fdc81612fa7565b8114612fe757600080fd5b50565b600081359050612ff981612fd3565b92915050565b60006020828403121561301557613014612f9d565b5b600061302384828501612fea565b91505092915050565b60008115159050919050565b6130418161302c565b82525050565b600060208201905061305c6000830184613038565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561309c578082015181840152602081019050613081565b838111156130ab576000848401525b50505050565b6000601f19601f8301169050919050565b60006130cd82613062565b6130d7818561306d565b93506130e781856020860161307e565b6130f0816130b1565b840191505092915050565b6000602082019050818103600083015261311581846130c2565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131488261311d565b9050919050565b6131588161313d565b82525050565b6000602082019050613173600083018461314f565b92915050565b6000819050919050565b61318c81613179565b811461319757600080fd5b50565b6000813590506131a981613183565b92915050565b6000602082840312156131c5576131c4612f9d565b5b60006131d38482850161319a565b91505092915050565b60006131e78261311d565b9050919050565b6131f7816131dc565b82525050565b600060208201905061321260008301846131ee565b92915050565b613221816131dc565b811461322c57600080fd5b50565b60008135905061323e81613218565b92915050565b6000806040838503121561325b5761325a612f9d565b5b60006132698582860161322f565b925050602061327a8582860161319a565b9150509250929050565b61328d81613179565b82525050565b60006020820190506132a86000830184613284565b92915050565b6000602082840312156132c4576132c3612f9d565b5b60006132d28482850161322f565b91505092915050565b6000806000606084860312156132f4576132f3612f9d565b5b60006133028682870161322f565b93505060206133138682870161322f565b92505060406133248682870161319a565b9150509250925092565b6000806040838503121561334557613344612f9d565b5b60006133538582860161319a565b92505060206133648582860161319a565b9150509250929050565b600060408201905061338360008301856131ee565b6133906020830184613284565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133d9826130b1565b810181811067ffffffffffffffff821117156133f8576133f76133a1565b5b80604052505050565b600061340b612f93565b905061341782826133d0565b919050565b600067ffffffffffffffff821115613437576134366133a1565b5b613440826130b1565b9050602081019050919050565b82818337600083830152505050565b600061346f61346a8461341c565b613401565b90508281526020810184848401111561348b5761348a61339c565b5b61349684828561344d565b509392505050565b600082601f8301126134b3576134b2613397565b5b81356134c384826020860161345c565b91505092915050565b6000602082840312156134e2576134e1612f9d565b5b600082013567ffffffffffffffff811115613500576134ff612fa2565b5b61350c8482850161349e565b91505092915050565b61351e8161302c565b811461352957600080fd5b50565b60008135905061353b81613515565b92915050565b6000806040838503121561355857613557612f9d565b5b60006135668582860161322f565b92505060206135778582860161352c565b9150509250929050565b600067ffffffffffffffff82111561359c5761359b6133a1565b5b6135a5826130b1565b9050602081019050919050565b60006135c56135c084613581565b613401565b9050828152602081018484840111156135e1576135e061339c565b5b6135ec84828561344d565b509392505050565b600082601f83011261360957613608613397565b5b81356136198482602086016135b2565b91505092915050565b6000806000806080858703121561363c5761363b612f9d565b5b600061364a8782880161322f565b945050602061365b8782880161322f565b935050604061366c8782880161319a565b925050606085013567ffffffffffffffff81111561368d5761368c612fa2565b5b613699878288016135f4565b91505092959194509250565b60006bffffffffffffffffffffffff82169050919050565b6136c6816136a5565b81146136d157600080fd5b50565b6000813590506136e3816136bd565b92915050565b60008060408385031215613700576136ff612f9d565b5b600061370e8582860161322f565b925050602061371f858286016136d4565b9150509250929050565b60006020828403121561373f5761373e612f9d565b5b600061374d8482850161352c565b91505092915050565b6000806040838503121561376d5761376c612f9d565b5b600061377b8582860161322f565b925050602061378c8582860161322f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137dd57607f821691505b6020821081036137f0576137ef613796565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061382c60208361306d565b9150613837826137f6565b602082019050919050565b6000602082019050818103600083015261385b8161381f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061389c82613179565b91506138a783613179565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138e0576138df613862565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061392582613179565b915061393083613179565b9250826139405761393f6138eb565b5b828204905092915050565b600081905092915050565b50565b600061396660008361394b565b915061397182613956565b600082019050919050565b600061398782613959565b9150819050919050565b7f4661696c656420746f2073656e6420746f20477265672e000000000000000000600082015250565b60006139c760178361306d565b91506139d282613991565b602082019050919050565b600060208201905081810360008301526139f6816139ba565b9050919050565b7f436f6e7472616374207061757365640000000000000000000000000000000000600082015250565b6000613a33600f8361306d565b9150613a3e826139fd565b602082019050919050565b60006020820190508181036000830152613a6281613a26565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b6000613a9f601f8361306d565b9150613aaa82613a69565b602082019050919050565b60006020820190508181036000830152613ace81613a92565b9050919050565b6000613ae082613179565b9150613aeb83613179565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b2057613b1f613862565b5b828201905092915050565b7f536f6c64204f7574000000000000000000000000000000000000000000000000600082015250565b6000613b6160088361306d565b9150613b6c82613b2b565b602082019050919050565b60006020820190508181036000830152613b9081613b54565b9050919050565b7f43616e206f6e6c79206861732032000000000000000000000000000000000000600082015250565b6000613bcd600e8361306d565b9150613bd882613b97565b602082019050919050565b60006020820190508181036000830152613bfc81613bc0565b9050919050565b7f6e6f7420656e6f7567682065746865722076616c756500000000000000000000600082015250565b6000613c3960168361306d565b9150613c4482613c03565b602082019050919050565b60006020820190508181036000830152613c6881613c2c565b9050919050565b6000613c7a82613179565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613cac57613cab613862565b5b600182019050919050565b613cc0816136a5565b82525050565b6000604082019050613cdb60008301856131ee565b613ce86020830184613cb7565b9392505050565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b6000613d2560158361306d565b9150613d3082613cef565b602082019050919050565b60006020820190508181036000830152613d5481613d18565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613d88816137c5565b613d928186613d5b565b94506001821660008114613dad5760018114613dbe57613df1565b60ff19831686528186019350613df1565b613dc785613d66565b60005b83811015613de957815481890152600182019150602081019050613dca565b838801955050505b50505092915050565b6000613e0582613062565b613e0f8185613d5b565b9350613e1f81856020860161307e565b80840191505092915050565b6000613e378286613d7b565b9150613e438285613dfa565b9150613e4f8284613d7b565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613eb860268361306d565b9150613ec382613e5c565b604082019050919050565b60006020820190508181036000830152613ee781613eab565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613f1582613eee565b613f1f8185613ef9565b9350613f2f81856020860161307e565b613f38816130b1565b840191505092915050565b6000608082019050613f5860008301876131ee565b613f6560208301866131ee565b613f726040830185613284565b8181036060830152613f848184613f0a565b905095945050505050565b600081519050613f9e81612fd3565b92915050565b600060208284031215613fba57613fb9612f9d565b5b6000613fc884828501613f8f565b91505092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061402d602a8361306d565b915061403882613fd1565b604082019050919050565b6000602082019050818103600083015261405c81614020565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061409960198361306d565b91506140a482614063565b602082019050919050565b600060208201905081810360008301526140c88161408c565b9050919050565b60006140da82613179565b91506140e583613179565b9250828210156140f8576140f7613862565b5b828203905092915050565b600061410e82613179565b915061411983613179565b925082614129576141286138eb565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220b86179753134ec25d13c23c54d325671bf95e5b06be4c53fb345a0183367c8cb64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61366741555a7841593678505a475a593267484e35576a3375384b474c6f5662624274344d7372706a6575752f00000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string): ipfs://Qma6gAUZxAY6xPZGZY2gHN5Wj3u8KGLoVbbBt4Msrpjeuu/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d61366741555a7841593678505a475a593267484e35576a
Arg [3] : 3375384b474c6f5662624274344d7372706a6575752f00000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.