Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0.0001 ETH
Eth Value
$0.21 (@ $2,052.55/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 21 from a total of 21 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 15841818 | 1242 days ago | IN | 0 ETH | 0.0011086 | ||||
| Mint | 15841766 | 1242 days ago | IN | 1 ETH | 0.00342293 | ||||
| Set Cost | 15841718 | 1242 days ago | IN | 0 ETH | 0.00087861 | ||||
| Set Cost | 15827492 | 1244 days ago | IN | 0 ETH | 0.00148269 | ||||
| Mint | 15827376 | 1244 days ago | IN | 0.0001 ETH | 0.00222175 | ||||
| Set Base URI | 15683033 | 1264 days ago | IN | 0 ETH | 0.00146484 | ||||
| Set Base URI | 15676911 | 1265 days ago | IN | 0 ETH | 0.00079403 | ||||
| Set Approval For... | 15619401 | 1273 days ago | IN | 0 ETH | 0.00118729 | ||||
| Set Approval For... | 15397958 | 1307 days ago | IN | 0 ETH | 0.00112417 | ||||
| Safe Transfer Fr... | 15397950 | 1307 days ago | IN | 0 ETH | 0.00146371 | ||||
| Set Approval For... | 15397559 | 1307 days ago | IN | 0 ETH | 0.00077373 | ||||
| Set Approval For... | 15396430 | 1307 days ago | IN | 0 ETH | 0.00030368 | ||||
| Set Approval For... | 15392319 | 1308 days ago | IN | 0 ETH | 0.00237502 | ||||
| Set Approval For... | 15392224 | 1308 days ago | IN | 0 ETH | 0.00143186 | ||||
| Set Approval For... | 15392128 | 1308 days ago | IN | 0 ETH | 0.00102294 | ||||
| Set Approval For... | 15392082 | 1308 days ago | IN | 0 ETH | 0.00107614 | ||||
| Set Approval For... | 15392039 | 1308 days ago | IN | 0 ETH | 0.00126651 | ||||
| Set Approval For... | 15391407 | 1308 days ago | IN | 0 ETH | 0.00067243 | ||||
| Set Approval For... | 15391254 | 1308 days ago | IN | 0 ETH | 0.00113717 | ||||
| Set Approval For... | 15391173 | 1308 days ago | IN | 0 ETH | 0.00078671 | ||||
| Mint By Owner Bu... | 15373293 | 1311 days ago | IN | 0 ETH | 0.01089588 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 15841818 | 1242 days ago | 1 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
GLD_TEST_ERC721_1
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;
// import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract GLD_TEST_ERC721_1 is
ERC721,
ERC2981,
Ownable,
ReentrancyGuard
{
uint256 public cost = 0.0001 ether;
uint256 public totalMinted;
address public royaltyAddress;
string private customBaseURI;
bool public paused;
constructor(
string memory tokenName,
string memory tokenSymbol,
string memory customBaseURI_,
address royaltyAddress_
) ERC721(tokenName, tokenSymbol)
ReentrancyGuard()
ERC2981()
{
customBaseURI = customBaseURI_;
royaltyAddress = royaltyAddress_;
paused = false;
_setDefaultRoyalty(royaltyAddress, 1000);
}
/***********
receive function
*/
receive() external payable {
}
/*************
minting functions
*/
function mint()
external
payable
nonReentrant
{
require(!paused, "paused");
require(msg.value == cost, "ether != COST");
_safeMint(msg.sender);
emit Mint(msg.sender, totalMinted);
}
function mint(address _recipient)
external
payable
nonReentrant
{
require(!paused, "paused");
require(msg.value == cost, "ether != COST");
_safeMint(_recipient);
emit MintToRecipient(_recipient, totalMinted);
}
function mintDiscount()
external
payable
nonReentrant
{
require(!paused, "paused");
require(msg.value == ((cost * 1000) / 10000), "ether != DISCOUNT COST");
_safeMint(msg.sender);
emit MintDiscount(msg.sender, totalMinted);
}
function mintAllowlist()
external
payable
nonReentrant
{
require(!paused, "paused");
require(msg.value == cost, "ether != COST");
_safeMint(msg.sender);
emit MintAllowlist(msg.sender, totalMinted);
}
function mintByOwner(address to)
public
payable
onlyOwner
nonReentrant
{
_safeMint(to);
emit MintByOwner(to, totalMinted);
}
function mintByOwner(address to, uint256 tokenId)
public
payable
onlyOwner
nonReentrant
{
_safeMint(to, tokenId);
emit MintByOwner(to, tokenId);
}
function mintByOwnerBulk(address[] memory to)
external
payable
onlyOwner
nonReentrant
{
for (uint i = 0; i < to.length; i++) {
_safeMint(to[i]);
}
emit MintByOwnerBulk(to.length);
}
function burn(uint256 tokenId)
external
onlyOwner
{
address tokenOwner = ownerOf(tokenId);
_burn(tokenId);
(bool sent,) = payable(tokenOwner).call{value: cost}("");
require(sent, "Failed to receive Ether");
emit Burned(tokenId, cost);
}
function _safeMint(address to)
internal
virtual
{
uint256 _totalMinted = ++totalMinted;
_safeMint(to, _totalMinted);
}
function withdraw(address to, uint256 amount)
external
onlyOwner
{
(bool sent,) = payable(to).call{value: amount}("");
require(sent, "Failed to pay Ether");
emit Withdraw(to, amount);
}
/**************
pause/unpause
*/
function pause() external onlyOwner {
paused = true;
emit Paused();
}
function unpause() external onlyOwner {
paused = false;
emit Unpaused();
}
/*********
update price
*/
function setCost(uint256 newCost)
external
onlyOwner {
cost = newCost;
emit CostChanged(cost);
}
/*****************
token uri
*/
function baseTokenURI()
public
view
returns (string memory)
{
return customBaseURI;
}
function setBaseURI(string memory customBaseURI_)
external
onlyOwner
{
customBaseURI = customBaseURI_;
}
function _baseURI()
internal
view
virtual
override
returns (string memory)
{
return customBaseURI;
}
/**********
supported interfaces
*/
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC2981, ERC721) returns (bool)
{
return super.supportsInterface(interfaceId);
}
/***********
ERC2981 interface
*/
function setTokenRoyalty(
uint256 tokenId,
address receiver,
uint96 feeNumerator
) external
onlyOwner
{
_setTokenRoyalty(tokenId, receiver, feeNumerator);
emit TokenRoyaltyChanged(tokenId, receiver);
}
function updateDefaultRoyalty(
address newRoyaltyReceiver
) external
onlyOwner
{
royaltyAddress = newRoyaltyReceiver;
_setDefaultRoyalty(royaltyAddress, 1000);
emit RoyaltyAddressChanged(royaltyAddress);
}
/**************
public function to get state of mint
*/
function mintState()
public
view
returns (
bool isPaused,
uint256 numMinted,
string memory baseUri,
uint256 mintCost
)
{
return (paused, totalMinted, customBaseURI, cost);
}
/*************
events
*/
event Mint(address indexed to, uint256 tokenId);
event MintToRecipient(address indexed to, uint256 tokenId);
event MintDiscount(address indexed to, uint256 tokenId);
event MintAllowlist(address indexed to, uint256 tokenId);
event MintByOwner(address indexed to, uint256 tokenId);
event MintByOwnerBulk(uint256 numMinted);
event Withdraw(address indexed to, uint256 amount);
event Paused();
event Unpaused();
event CostChanged(uint256 cost);
event Burned(uint256 tokenId, uint256 cost);
event RoyaltyAddressChanged(address indexed to);
event TokenRoyaltyChanged(uint256 tokenId, address indexed to);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: address zero is not a valid owner");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: invalid token ID");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
_requireMinted(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not token owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_safeTransfer(from, to, tokenId, data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
require(_exists(tokenId), "ERC721: invalid token ID");
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];
if (royalty.receiver == address(0)) {
royalty = _defaultRoyaltyInfo;
}
uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();
return (royalty.receiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: invalid receiver");
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `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 (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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.7.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts 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.7.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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// 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);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/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.6.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"string","name":"customBaseURI_","type":"string"},{"internalType":"address","name":"royaltyAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"CostChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintAllowlist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintByOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"numMinted","type":"uint256"}],"name":"MintByOwnerBulk","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintDiscount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintToRecipient","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":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"RoyaltyAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"TokenRoyaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintByOwner","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintByOwner","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"}],"name":"mintByOwnerBulk","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintDiscount","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintState","outputs":[{"internalType":"bool","name":"isPaused","type":"bool"},{"internalType":"uint256","name":"numMinted","type":"uint256"},{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"uint256","name":"mintCost","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"customBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","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":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRoyaltyReceiver","type":"address"}],"name":"updateDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052655af3107a4000600a553480156200001b57600080fd5b5060405162002ca138038062002ca18339810160408190526200003e91620003b3565b8351849084906200005790600090602085019062000240565b5080516200006d90600190602084019062000240565b5050506200008a62000084620000e560201b60201c565b620000e9565b60016009558151620000a490600d90602085019062000240565b50600c80546001600160a01b0319166001600160a01b038316908117909155600e805460ff19169055620000db906103e86200013b565b50505050620004a3565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620001af5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002075760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001a6565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b8280546200024e9062000466565b90600052602060002090601f016020900481019282620002725760008555620002bd565b82601f106200028d57805160ff1916838001178555620002bd565b82800160010185558215620002bd579182015b82811115620002bd578251825591602001919060010190620002a0565b50620002cb929150620002cf565b5090565b5b80821115620002cb5760008155600101620002d0565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200030e57600080fd5b81516001600160401b03808211156200032b576200032b620002e6565b604051601f8301601f19908116603f01168101908282118183101715620003565762000356620002e6565b816040528381526020925086838588010111156200037357600080fd5b600091505b8382101562000397578582018301518183018401529082019062000378565b83821115620003a95760008385830101525b9695505050505050565b60008060008060808587031215620003ca57600080fd5b84516001600160401b0380821115620003e257600080fd5b620003f088838901620002fc565b955060208701519150808211156200040757600080fd5b6200041588838901620002fc565b945060408701519150808211156200042c57600080fd5b506200043b87828801620002fc565b606087015190935090506001600160a01b03811681146200045b57600080fd5b939692955090935050565b600181811c908216806200047b57607f821691505b602082108114156200049d57634e487b7160e01b600052602260045260246000fd5b50919050565b6127ee80620004b36000396000f3fe6080604052600436106102295760003560e01c806370a0823111610123578063ad2f852a116100ab578063d547cfb71161006f578063d547cfb71461060c578063e985e9c514610621578063f2fde38b1461066a578063f3fef3a31461068a578063f7a225a4146106aa57600080fd5b8063ad2f852a14610574578063b533731d14610594578063b88d4fde146105a7578063c051e38a146105c7578063c87b56dd146105ec57600080fd5b80638da5cb5b116100f25780638da5cb5b1461050357806395d89b4114610521578063a22cb46514610536578063a2309ff814610556578063a98a933a1461056c57600080fd5b806370a08231146104a6578063715018a6146104c65780637a92d698146104db5780638456cb59146104ee57600080fd5b80633542aee2116101b157806355f804b31161017557806355f804b3146104195780635944c753146104395780635c975abb146104595780636352211e146104735780636a6278421461049357600080fd5b80633542aee2146103915780633f4ba83a146103a457806342842e0e146103b957806342966c68146103d957806344a0d68a146103f957600080fd5b80631249c58b116101f85780631249c58b146102e657806313faede6146102ee57806320d58da41461031257806323b872dd146103325780632a55205a1461035257600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c457600080fd5b3661023057005b600080fd5b34801561024157600080fd5b5061025561025036600461205b565b6106b2565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f6106c3565b60405161026191906120d0565b34801561029857600080fd5b506102ac6102a73660046120e3565b610755565b6040516001600160a01b039091168152602001610261565b3480156102d057600080fd5b506102e46102df366004612118565b61077c565b005b6102e4610897565b3480156102fa57600080fd5b50610304600a5481565b604051908152602001610261565b34801561031e57600080fd5b506102e461032d366004612142565b61094c565b34801561033e57600080fd5b506102e461034d36600461215d565b6109b9565b34801561035e57600080fd5b5061037261036d366004612199565b6109ea565b604080516001600160a01b039093168352602083019190915201610261565b6102e461039f366004612118565b610a96565b3480156103b057600080fd5b506102e4610b1c565b3480156103c557600080fd5b506102e46103d436600461215d565b610b59565b3480156103e557600080fd5b506102e46103f43660046120e3565b610b74565b34801561040557600080fd5b506102e46104143660046120e3565b610c76565b34801561042557600080fd5b506102e461043436600461225a565b610cb9565b34801561044557600080fd5b506102e46104543660046122a3565b610cd8565b34801561046557600080fd5b50600e546102559060ff1681565b34801561047f57600080fd5b506102ac61048e3660046120e3565b610d33565b6102e46104a1366004612142565b610d93565b3480156104b257600080fd5b506103046104c1366004612142565b610e55565b3480156104d257600080fd5b506102e4610edb565b6102e46104e93660046122ef565b610eef565b3480156104fa57600080fd5b506102e4610fa2565b34801561050f57600080fd5b506008546001600160a01b03166102ac565b34801561052d57600080fd5b5061027f610fe2565b34801561054257600080fd5b506102e461055136600461239c565b610ff1565b34801561056257600080fd5b50610304600b5481565b6102e4610ffc565b34801561058057600080fd5b50600c546102ac906001600160a01b031681565b6102e46105a2366004612142565b6110e9565b3480156105b357600080fd5b506102e46105c23660046123d8565b61115f565b3480156105d357600080fd5b506105dc611197565b6040516102619493929190612454565b3480156105f857600080fd5b5061027f6106073660046120e3565b611250565b34801561061857600080fd5b5061027f6112b7565b34801561062d57600080fd5b5061025561063c366004612486565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067657600080fd5b506102e4610685366004612142565b6112c6565b34801561069657600080fd5b506102e46106a5366004612118565b61133f565b6102e461141b565b60006106bd826114c5565b92915050565b6060600080546106d2906124b9565b80601f01602080910402602001604051908101604052809291908181526020018280546106fe906124b9565b801561074b5780601f106107205761010080835404028352916020019161074b565b820191906000526020600020905b81548152906001019060200180831161072e57829003601f168201915b5050505050905090565b6000610760826114ea565b506000908152600460205260409020546001600160a01b031690565b600061078782610d33565b9050806001600160a01b0316836001600160a01b031614156107fa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108165750610816813361063c565b6108885760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016107f1565b6108928383611549565b505050565b600260095414156108ba5760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff16156108e25760405162461bcd60e51b81526004016107f19061252b565b600a5434146109035760405162461bcd60e51b81526004016107f19061254b565b61090c336115b7565b600b5460405190815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885906020015b60405180910390a26001600955565b6109546115d9565b600c80546001600160a01b0319166001600160a01b03831690811790915561097e906103e8611633565b600c546040516001600160a01b03909116907fcd9aab92b963aae2022c8ea74144d4317b71fc1d1b63a5eb8f4067816a49be1490600090a250565b6109c333826116ed565b6109df5760405162461bcd60e51b81526004016107f190612572565b61089283838361176c565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a5f5750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a7e906001600160601b0316876125d6565b610a88919061260b565b915196919550909350505050565b610a9e6115d9565b60026009541415610ac15760405162461bcd60e51b81526004016107f1906124f4565b6002600955610ad08282611908565b816001600160a01b03167fbfa26a581be175e9b5994742c96f70b3f64fd28f242ad54aa26ac9df857566f582604051610b0b91815260200190565b60405180910390a250506001600955565b610b246115d9565b600e805460ff191690556040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693390600090a1565b6108928383836040518060200160405280600081525061115f565b610b7c6115d9565b6000610b8782610d33565b9050610b9282611922565b600a546040516000916001600160a01b038416918381818185875af1925050503d8060008114610bde576040519150601f19603f3d011682016040523d82523d6000602084013e610be3565b606091505b5050905080610c345760405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f207265636569766520457468657200000000000000000060448201526064016107f1565b600a546040805185815260208101929092527fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b910160405180910390a1505050565b610c7e6115d9565b600a8190556040518181527f5d3cc44bbc86a70941868a14a9f66a647d7f7499d4d3789f68e4486c11ea46da9060200160405180910390a150565b610cc16115d9565b8051610cd490600d906020840190611fac565b5050565b610ce06115d9565b610ceb8383836119bd565b816001600160a01b03167f5fb4768bccc9e44f8a8b08645a23642c274d628342f78e673add73cdbc8d524184604051610d2691815260200190565b60405180910390a2505050565b6000818152600260205260408120546001600160a01b0316806106bd5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f1565b60026009541415610db65760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff1615610dde5760405162461bcd60e51b81526004016107f19061252b565b600a543414610dff5760405162461bcd60e51b81526004016107f19061254b565b610e08816115b7565b806001600160a01b03167f8680abd43eeea87cc050b782e92d6993f7cf396c85638ed16f509c63589dd09f600b54604051610e4591815260200190565b60405180910390a2506001600955565b60006001600160a01b038216610ebf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107f1565b506001600160a01b031660009081526003602052604090205490565b610ee36115d9565b610eed6000611a88565b565b610ef76115d9565b60026009541415610f1a5760405162461bcd60e51b81526004016107f1906124f4565b600260095560005b8151811015610f5f57610f4d828281518110610f4057610f4061261f565b60200260200101516115b7565b80610f5781612635565b915050610f22565b507f1f1535a10d1a482b7d5841000942398db25cb2a5c761cffb75886d1c5020a0d58151604051610f9291815260200190565b60405180910390a1506001600955565b610faa6115d9565b600e805460ff191660011790556040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75290600090a1565b6060600180546106d2906124b9565b610cd4338383611ada565b6002600954141561101f5760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff16156110475760405162461bcd60e51b81526004016107f19061252b565b612710600a546103e861105a91906125d6565b611064919061260b565b34146110ab5760405162461bcd60e51b8152602060048201526016602482015275195d1a195c88084f48111254d0d3d553950810d3d4d560521b60448201526064016107f1565b6110b4336115b7565b600b5460405190815233907f8d3df23a7cf8c533ed24274969d8485920c4662d8c2218fe2b35d805adeaf74b9060200161093d565b6110f16115d9565b600260095414156111145760405162461bcd60e51b81526004016107f1906124f4565b6002600955611122816115b7565b806001600160a01b03167fbfa26a581be175e9b5994742c96f70b3f64fd28f242ad54aa26ac9df857566f5600b54604051610e4591815260200190565b61116933836116ed565b6111855760405162461bcd60e51b81526004016107f190612572565b61119184848484611ba9565b50505050565b60008060606000600e60009054906101000a900460ff16600b54600d600a548180546111c2906124b9565b80601f01602080910402602001604051908101604052809291908181526020018280546111ee906124b9565b801561123b5780601f106112105761010080835404028352916020019161123b565b820191906000526020600020905b81548152906001019060200180831161121e57829003601f168201915b50505050509150935093509350935090919293565b606061125b826114ea565b60006112656112b7565b9050600081511161128557604051806020016040528060008152506112b0565b8061128f84611bdc565b6040516020016112a0929190612650565b6040516020818303038152906040525b9392505050565b6060600d80546106d2906124b9565b6112ce6115d9565b6001600160a01b0381166113335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f1565b61133c81611a88565b50565b6113476115d9565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611394576040519150601f19603f3d011682016040523d82523d6000602084013e611399565b606091505b50509050806113e05760405162461bcd60e51b81526020600482015260136024820152722330b4b632b2103a37903830bc9022ba3432b960691b60448201526064016107f1565b826001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436483604051610d2691815260200190565b6002600954141561143e5760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff16156114665760405162461bcd60e51b81526004016107f19061252b565b600a5434146114875760405162461bcd60e51b81526004016107f19061254b565b611490336115b7565b600b5460405190815233907f52c759fe0f1d33d4d8bc5f7616584c640e1b9b12282cf372a796939dccc3980b9060200161093d565b60006001600160e01b0319821663152a902d60e11b14806106bd57506106bd82611cda565b6000818152600260205260409020546001600160a01b031661133c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061157e82610d33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000600b600081546115c890612635565b91829055509050610cd48282611908565b6008546001600160a01b03163314610eed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f1565b6127106001600160601b038216111561165e5760405162461bcd60e51b81526004016107f19061267f565b6001600160a01b0382166116b45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016107f1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000806116f983610d33565b9050806001600160a01b0316846001600160a01b0316148061174057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806117645750836001600160a01b031661175984610755565b6001600160a01b0316145b949350505050565b826001600160a01b031661177f82610d33565b6001600160a01b0316146117e35760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107f1565b6001600160a01b0382166118455760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f1565b611850600082611549565b6001600160a01b03831660009081526003602052604081208054600192906118799084906126c9565b90915550506001600160a01b03821660009081526003602052604081208054600192906118a79084906126e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610cd4828260405180602001604052806000815250611d2a565b600061192d82610d33565b905061193a600083611549565b6001600160a01b03811660009081526003602052604081208054600192906119639084906126c9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6127106001600160601b03821611156119e85760405162461bcd60e51b81526004016107f19061267f565b6001600160a01b038216611a3e5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016107f1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611b3c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bb484848461176c565b611bc084848484611d5d565b6111915760405162461bcd60e51b81526004016107f1906126f8565b606081611c005750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c2a5780611c1481612635565b9150611c239050600a8361260b565b9150611c04565b60008167ffffffffffffffff811115611c4557611c456121bb565b6040519080825280601f01601f191660200182016040528015611c6f576020820181803683370190505b5090505b841561176457611c846001836126c9565b9150611c91600a8661274a565b611c9c9060306126e0565b60f81b818381518110611cb157611cb161261f565b60200101906001600160f81b031916908160001a905350611cd3600a8661260b565b9450611c73565b60006001600160e01b031982166380ac58cd60e01b1480611d0b57506001600160e01b03198216635b5e139f60e01b145b806106bd57506301ffc9a760e01b6001600160e01b03198316146106bd565b611d348383611e6a565b611d416000848484611d5d565b6108925760405162461bcd60e51b81526004016107f1906126f8565b60006001600160a01b0384163b15611e5f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611da190339089908890889060040161275e565b602060405180830381600087803b158015611dbb57600080fd5b505af1925050508015611deb575060408051601f3d908101601f19168201909252611de89181019061279b565b60015b611e45573d808015611e19576040519150601f19603f3d011682016040523d82523d6000602084013e611e1e565b606091505b508051611e3d5760405162461bcd60e51b81526004016107f1906126f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611764565b506001949350505050565b6001600160a01b038216611ec05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f1565b6000818152600260205260409020546001600160a01b031615611f255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f1565b6001600160a01b0382166000908152600360205260408120805460019290611f4e9084906126e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611fb8906124b9565b90600052602060002090601f016020900481019282611fda5760008555612020565b82601f10611ff357805160ff1916838001178555612020565b82800160010185558215612020579182015b82811115612020578251825591602001919060010190612005565b5061202c929150612030565b5090565b5b8082111561202c5760008155600101612031565b6001600160e01b03198116811461133c57600080fd5b60006020828403121561206d57600080fd5b81356112b081612045565b60005b8381101561209357818101518382015260200161207b565b838111156111915750506000910152565b600081518084526120bc816020860160208601612078565b601f01601f19169290920160200192915050565b6020815260006112b060208301846120a4565b6000602082840312156120f557600080fd5b5035919050565b80356001600160a01b038116811461211357600080fd5b919050565b6000806040838503121561212b57600080fd5b612134836120fc565b946020939093013593505050565b60006020828403121561215457600080fd5b6112b0826120fc565b60008060006060848603121561217257600080fd5b61217b846120fc565b9250612189602085016120fc565b9150604084013590509250925092565b600080604083850312156121ac57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121fa576121fa6121bb565b604052919050565b600067ffffffffffffffff83111561221c5761221c6121bb565b61222f601f8401601f19166020016121d1565b905082815283838301111561224357600080fd5b828260208301376000602084830101529392505050565b60006020828403121561226c57600080fd5b813567ffffffffffffffff81111561228357600080fd5b8201601f8101841361229457600080fd5b61176484823560208401612202565b6000806000606084860312156122b857600080fd5b833592506122c8602085016120fc565b915060408401356001600160601b03811681146122e457600080fd5b809150509250925092565b6000602080838503121561230257600080fd5b823567ffffffffffffffff8082111561231a57600080fd5b818501915085601f83011261232e57600080fd5b813581811115612340576123406121bb565b8060051b91506123518483016121d1565b818152918301840191848101908884111561236b57600080fd5b938501935b8385101561239057612381856120fc565b82529385019390850190612370565b98975050505050505050565b600080604083850312156123af57600080fd5b6123b8836120fc565b9150602083013580151581146123cd57600080fd5b809150509250929050565b600080600080608085870312156123ee57600080fd5b6123f7856120fc565b9350612405602086016120fc565b925060408501359150606085013567ffffffffffffffff81111561242857600080fd5b8501601f8101871361243957600080fd5b61244887823560208401612202565b91505092959194509250565b841515815283602082015260806040820152600061247560808301856120a4565b905082606083015295945050505050565b6000806040838503121561249957600080fd5b6124a2836120fc565b91506124b0602084016120fc565b90509250929050565b600181811c908216806124cd57607f821691505b602082108114156124ee57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600690820152651c185d5cd95960d21b604082015260600190565b6020808252600d908201526c195d1a195c88084f4810d3d4d5609a1b604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156125f0576125f06125c0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261261a5761261a6125f5565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612649576126496125c0565b5060010190565b60008351612662818460208801612078565b835190830190612676818360208801612078565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000828210156126db576126db6125c0565b500390565b600082198211156126f3576126f36125c0565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612759576127596125f5565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612791908301846120a4565b9695505050505050565b6000602082840312156127ad57600080fd5b81516112b08161204556fea2646970667358221220fc417e7a9aa8199b854bebb1d40dd91c8c6ef84ceeda71d6c02811cc2ab9979964736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000ee3718ebdf6472eafbc2acbf343e735f57ee76600000000000000000000000000000000000000000000000000000000000000011474c445f544553545f4552433732315f310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006474c44545f310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d50376b586d6a78774778315462463437367756787632693574377237595866346871575636483176377a4c7a00000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102295760003560e01c806370a0823111610123578063ad2f852a116100ab578063d547cfb71161006f578063d547cfb71461060c578063e985e9c514610621578063f2fde38b1461066a578063f3fef3a31461068a578063f7a225a4146106aa57600080fd5b8063ad2f852a14610574578063b533731d14610594578063b88d4fde146105a7578063c051e38a146105c7578063c87b56dd146105ec57600080fd5b80638da5cb5b116100f25780638da5cb5b1461050357806395d89b4114610521578063a22cb46514610536578063a2309ff814610556578063a98a933a1461056c57600080fd5b806370a08231146104a6578063715018a6146104c65780637a92d698146104db5780638456cb59146104ee57600080fd5b80633542aee2116101b157806355f804b31161017557806355f804b3146104195780635944c753146104395780635c975abb146104595780636352211e146104735780636a6278421461049357600080fd5b80633542aee2146103915780633f4ba83a146103a457806342842e0e146103b957806342966c68146103d957806344a0d68a146103f957600080fd5b80631249c58b116101f85780631249c58b146102e657806313faede6146102ee57806320d58da41461031257806323b872dd146103325780632a55205a1461035257600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c457600080fd5b3661023057005b600080fd5b34801561024157600080fd5b5061025561025036600461205b565b6106b2565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f6106c3565b60405161026191906120d0565b34801561029857600080fd5b506102ac6102a73660046120e3565b610755565b6040516001600160a01b039091168152602001610261565b3480156102d057600080fd5b506102e46102df366004612118565b61077c565b005b6102e4610897565b3480156102fa57600080fd5b50610304600a5481565b604051908152602001610261565b34801561031e57600080fd5b506102e461032d366004612142565b61094c565b34801561033e57600080fd5b506102e461034d36600461215d565b6109b9565b34801561035e57600080fd5b5061037261036d366004612199565b6109ea565b604080516001600160a01b039093168352602083019190915201610261565b6102e461039f366004612118565b610a96565b3480156103b057600080fd5b506102e4610b1c565b3480156103c557600080fd5b506102e46103d436600461215d565b610b59565b3480156103e557600080fd5b506102e46103f43660046120e3565b610b74565b34801561040557600080fd5b506102e46104143660046120e3565b610c76565b34801561042557600080fd5b506102e461043436600461225a565b610cb9565b34801561044557600080fd5b506102e46104543660046122a3565b610cd8565b34801561046557600080fd5b50600e546102559060ff1681565b34801561047f57600080fd5b506102ac61048e3660046120e3565b610d33565b6102e46104a1366004612142565b610d93565b3480156104b257600080fd5b506103046104c1366004612142565b610e55565b3480156104d257600080fd5b506102e4610edb565b6102e46104e93660046122ef565b610eef565b3480156104fa57600080fd5b506102e4610fa2565b34801561050f57600080fd5b506008546001600160a01b03166102ac565b34801561052d57600080fd5b5061027f610fe2565b34801561054257600080fd5b506102e461055136600461239c565b610ff1565b34801561056257600080fd5b50610304600b5481565b6102e4610ffc565b34801561058057600080fd5b50600c546102ac906001600160a01b031681565b6102e46105a2366004612142565b6110e9565b3480156105b357600080fd5b506102e46105c23660046123d8565b61115f565b3480156105d357600080fd5b506105dc611197565b6040516102619493929190612454565b3480156105f857600080fd5b5061027f6106073660046120e3565b611250565b34801561061857600080fd5b5061027f6112b7565b34801561062d57600080fd5b5061025561063c366004612486565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561067657600080fd5b506102e4610685366004612142565b6112c6565b34801561069657600080fd5b506102e46106a5366004612118565b61133f565b6102e461141b565b60006106bd826114c5565b92915050565b6060600080546106d2906124b9565b80601f01602080910402602001604051908101604052809291908181526020018280546106fe906124b9565b801561074b5780601f106107205761010080835404028352916020019161074b565b820191906000526020600020905b81548152906001019060200180831161072e57829003601f168201915b5050505050905090565b6000610760826114ea565b506000908152600460205260409020546001600160a01b031690565b600061078782610d33565b9050806001600160a01b0316836001600160a01b031614156107fa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108165750610816813361063c565b6108885760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016107f1565b6108928383611549565b505050565b600260095414156108ba5760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff16156108e25760405162461bcd60e51b81526004016107f19061252b565b600a5434146109035760405162461bcd60e51b81526004016107f19061254b565b61090c336115b7565b600b5460405190815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885906020015b60405180910390a26001600955565b6109546115d9565b600c80546001600160a01b0319166001600160a01b03831690811790915561097e906103e8611633565b600c546040516001600160a01b03909116907fcd9aab92b963aae2022c8ea74144d4317b71fc1d1b63a5eb8f4067816a49be1490600090a250565b6109c333826116ed565b6109df5760405162461bcd60e51b81526004016107f190612572565b61089283838361176c565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a5f5750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a7e906001600160601b0316876125d6565b610a88919061260b565b915196919550909350505050565b610a9e6115d9565b60026009541415610ac15760405162461bcd60e51b81526004016107f1906124f4565b6002600955610ad08282611908565b816001600160a01b03167fbfa26a581be175e9b5994742c96f70b3f64fd28f242ad54aa26ac9df857566f582604051610b0b91815260200190565b60405180910390a250506001600955565b610b246115d9565b600e805460ff191690556040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693390600090a1565b6108928383836040518060200160405280600081525061115f565b610b7c6115d9565b6000610b8782610d33565b9050610b9282611922565b600a546040516000916001600160a01b038416918381818185875af1925050503d8060008114610bde576040519150601f19603f3d011682016040523d82523d6000602084013e610be3565b606091505b5050905080610c345760405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f207265636569766520457468657200000000000000000060448201526064016107f1565b600a546040805185815260208101929092527fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b910160405180910390a1505050565b610c7e6115d9565b600a8190556040518181527f5d3cc44bbc86a70941868a14a9f66a647d7f7499d4d3789f68e4486c11ea46da9060200160405180910390a150565b610cc16115d9565b8051610cd490600d906020840190611fac565b5050565b610ce06115d9565b610ceb8383836119bd565b816001600160a01b03167f5fb4768bccc9e44f8a8b08645a23642c274d628342f78e673add73cdbc8d524184604051610d2691815260200190565b60405180910390a2505050565b6000818152600260205260408120546001600160a01b0316806106bd5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f1565b60026009541415610db65760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff1615610dde5760405162461bcd60e51b81526004016107f19061252b565b600a543414610dff5760405162461bcd60e51b81526004016107f19061254b565b610e08816115b7565b806001600160a01b03167f8680abd43eeea87cc050b782e92d6993f7cf396c85638ed16f509c63589dd09f600b54604051610e4591815260200190565b60405180910390a2506001600955565b60006001600160a01b038216610ebf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107f1565b506001600160a01b031660009081526003602052604090205490565b610ee36115d9565b610eed6000611a88565b565b610ef76115d9565b60026009541415610f1a5760405162461bcd60e51b81526004016107f1906124f4565b600260095560005b8151811015610f5f57610f4d828281518110610f4057610f4061261f565b60200260200101516115b7565b80610f5781612635565b915050610f22565b507f1f1535a10d1a482b7d5841000942398db25cb2a5c761cffb75886d1c5020a0d58151604051610f9291815260200190565b60405180910390a1506001600955565b610faa6115d9565b600e805460ff191660011790556040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75290600090a1565b6060600180546106d2906124b9565b610cd4338383611ada565b6002600954141561101f5760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff16156110475760405162461bcd60e51b81526004016107f19061252b565b612710600a546103e861105a91906125d6565b611064919061260b565b34146110ab5760405162461bcd60e51b8152602060048201526016602482015275195d1a195c88084f48111254d0d3d553950810d3d4d560521b60448201526064016107f1565b6110b4336115b7565b600b5460405190815233907f8d3df23a7cf8c533ed24274969d8485920c4662d8c2218fe2b35d805adeaf74b9060200161093d565b6110f16115d9565b600260095414156111145760405162461bcd60e51b81526004016107f1906124f4565b6002600955611122816115b7565b806001600160a01b03167fbfa26a581be175e9b5994742c96f70b3f64fd28f242ad54aa26ac9df857566f5600b54604051610e4591815260200190565b61116933836116ed565b6111855760405162461bcd60e51b81526004016107f190612572565b61119184848484611ba9565b50505050565b60008060606000600e60009054906101000a900460ff16600b54600d600a548180546111c2906124b9565b80601f01602080910402602001604051908101604052809291908181526020018280546111ee906124b9565b801561123b5780601f106112105761010080835404028352916020019161123b565b820191906000526020600020905b81548152906001019060200180831161121e57829003601f168201915b50505050509150935093509350935090919293565b606061125b826114ea565b60006112656112b7565b9050600081511161128557604051806020016040528060008152506112b0565b8061128f84611bdc565b6040516020016112a0929190612650565b6040516020818303038152906040525b9392505050565b6060600d80546106d2906124b9565b6112ce6115d9565b6001600160a01b0381166113335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f1565b61133c81611a88565b50565b6113476115d9565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611394576040519150601f19603f3d011682016040523d82523d6000602084013e611399565b606091505b50509050806113e05760405162461bcd60e51b81526020600482015260136024820152722330b4b632b2103a37903830bc9022ba3432b960691b60448201526064016107f1565b826001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436483604051610d2691815260200190565b6002600954141561143e5760405162461bcd60e51b81526004016107f1906124f4565b6002600955600e5460ff16156114665760405162461bcd60e51b81526004016107f19061252b565b600a5434146114875760405162461bcd60e51b81526004016107f19061254b565b611490336115b7565b600b5460405190815233907f52c759fe0f1d33d4d8bc5f7616584c640e1b9b12282cf372a796939dccc3980b9060200161093d565b60006001600160e01b0319821663152a902d60e11b14806106bd57506106bd82611cda565b6000818152600260205260409020546001600160a01b031661133c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061157e82610d33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000600b600081546115c890612635565b91829055509050610cd48282611908565b6008546001600160a01b03163314610eed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f1565b6127106001600160601b038216111561165e5760405162461bcd60e51b81526004016107f19061267f565b6001600160a01b0382166116b45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016107f1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000806116f983610d33565b9050806001600160a01b0316846001600160a01b0316148061174057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806117645750836001600160a01b031661175984610755565b6001600160a01b0316145b949350505050565b826001600160a01b031661177f82610d33565b6001600160a01b0316146117e35760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107f1565b6001600160a01b0382166118455760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f1565b611850600082611549565b6001600160a01b03831660009081526003602052604081208054600192906118799084906126c9565b90915550506001600160a01b03821660009081526003602052604081208054600192906118a79084906126e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610cd4828260405180602001604052806000815250611d2a565b600061192d82610d33565b905061193a600083611549565b6001600160a01b03811660009081526003602052604081208054600192906119639084906126c9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6127106001600160601b03821611156119e85760405162461bcd60e51b81526004016107f19061267f565b6001600160a01b038216611a3e5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016107f1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600790529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611b3c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bb484848461176c565b611bc084848484611d5d565b6111915760405162461bcd60e51b81526004016107f1906126f8565b606081611c005750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c2a5780611c1481612635565b9150611c239050600a8361260b565b9150611c04565b60008167ffffffffffffffff811115611c4557611c456121bb565b6040519080825280601f01601f191660200182016040528015611c6f576020820181803683370190505b5090505b841561176457611c846001836126c9565b9150611c91600a8661274a565b611c9c9060306126e0565b60f81b818381518110611cb157611cb161261f565b60200101906001600160f81b031916908160001a905350611cd3600a8661260b565b9450611c73565b60006001600160e01b031982166380ac58cd60e01b1480611d0b57506001600160e01b03198216635b5e139f60e01b145b806106bd57506301ffc9a760e01b6001600160e01b03198316146106bd565b611d348383611e6a565b611d416000848484611d5d565b6108925760405162461bcd60e51b81526004016107f1906126f8565b60006001600160a01b0384163b15611e5f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611da190339089908890889060040161275e565b602060405180830381600087803b158015611dbb57600080fd5b505af1925050508015611deb575060408051601f3d908101601f19168201909252611de89181019061279b565b60015b611e45573d808015611e19576040519150601f19603f3d011682016040523d82523d6000602084013e611e1e565b606091505b508051611e3d5760405162461bcd60e51b81526004016107f1906126f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611764565b506001949350505050565b6001600160a01b038216611ec05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f1565b6000818152600260205260409020546001600160a01b031615611f255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f1565b6001600160a01b0382166000908152600360205260408120805460019290611f4e9084906126e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611fb8906124b9565b90600052602060002090601f016020900481019282611fda5760008555612020565b82601f10611ff357805160ff1916838001178555612020565b82800160010185558215612020579182015b82811115612020578251825591602001919060010190612005565b5061202c929150612030565b5090565b5b8082111561202c5760008155600101612031565b6001600160e01b03198116811461133c57600080fd5b60006020828403121561206d57600080fd5b81356112b081612045565b60005b8381101561209357818101518382015260200161207b565b838111156111915750506000910152565b600081518084526120bc816020860160208601612078565b601f01601f19169290920160200192915050565b6020815260006112b060208301846120a4565b6000602082840312156120f557600080fd5b5035919050565b80356001600160a01b038116811461211357600080fd5b919050565b6000806040838503121561212b57600080fd5b612134836120fc565b946020939093013593505050565b60006020828403121561215457600080fd5b6112b0826120fc565b60008060006060848603121561217257600080fd5b61217b846120fc565b9250612189602085016120fc565b9150604084013590509250925092565b600080604083850312156121ac57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121fa576121fa6121bb565b604052919050565b600067ffffffffffffffff83111561221c5761221c6121bb565b61222f601f8401601f19166020016121d1565b905082815283838301111561224357600080fd5b828260208301376000602084830101529392505050565b60006020828403121561226c57600080fd5b813567ffffffffffffffff81111561228357600080fd5b8201601f8101841361229457600080fd5b61176484823560208401612202565b6000806000606084860312156122b857600080fd5b833592506122c8602085016120fc565b915060408401356001600160601b03811681146122e457600080fd5b809150509250925092565b6000602080838503121561230257600080fd5b823567ffffffffffffffff8082111561231a57600080fd5b818501915085601f83011261232e57600080fd5b813581811115612340576123406121bb565b8060051b91506123518483016121d1565b818152918301840191848101908884111561236b57600080fd5b938501935b8385101561239057612381856120fc565b82529385019390850190612370565b98975050505050505050565b600080604083850312156123af57600080fd5b6123b8836120fc565b9150602083013580151581146123cd57600080fd5b809150509250929050565b600080600080608085870312156123ee57600080fd5b6123f7856120fc565b9350612405602086016120fc565b925060408501359150606085013567ffffffffffffffff81111561242857600080fd5b8501601f8101871361243957600080fd5b61244887823560208401612202565b91505092959194509250565b841515815283602082015260806040820152600061247560808301856120a4565b905082606083015295945050505050565b6000806040838503121561249957600080fd5b6124a2836120fc565b91506124b0602084016120fc565b90509250929050565b600181811c908216806124cd57607f821691505b602082108114156124ee57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600690820152651c185d5cd95960d21b604082015260600190565b6020808252600d908201526c195d1a195c88084f4810d3d4d5609a1b604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156125f0576125f06125c0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261261a5761261a6125f5565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612649576126496125c0565b5060010190565b60008351612662818460208801612078565b835190830190612676818360208801612078565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000828210156126db576126db6125c0565b500390565b600082198211156126f3576126f36125c0565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612759576127596125f5565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612791908301846120a4565b9695505050505050565b6000602082840312156127ad57600080fd5b81516112b08161204556fea2646970667358221220fc417e7a9aa8199b854bebb1d40dd91c8c6ef84ceeda71d6c02811cc2ab9979964736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000ee3718ebdf6472eafbc2acbf343e735f57ee76600000000000000000000000000000000000000000000000000000000000000011474c445f544553545f4552433732315f310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006474c44545f310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d50376b586d6a78774778315462463437367756787632693574377237595866346871575636483176377a4c7a00000000000000000000000000000000
-----Decoded View---------------
Arg [0] : tokenName (string): GLD_TEST_ERC721_1
Arg [1] : tokenSymbol (string): GLDT_1
Arg [2] : customBaseURI_ (string): https://gateway.pinata.cloud/ipfs/QmP7kXmjxwGx1TbF476wVxv2i5t7r7YXf4hqWV6H1v7zLz
Arg [3] : royaltyAddress_ (address): 0xee3718eBdF6472Eafbc2AcbF343E735f57ee7660
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 000000000000000000000000ee3718ebdf6472eafbc2acbf343e735f57ee7660
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 474c445f544553545f4552433732315f31000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 474c44545f310000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [9] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [10] : 732f516d50376b586d6a78774778315462463437367756787632693574377237
Arg [11] : 595866346871575636483176377a4c7a00000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.21
Net Worth in ETH
0.0001
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,052.55 | 0.0001 | $0.205255 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.