Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 5,093 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24221276 | 62 days ago | IN | 0 ETH | 0.00000106 | ||||
| Set Approval For... | 23798449 | 121 days ago | IN | 0 ETH | 0.00007435 | ||||
| Set Approval For... | 23434278 | 172 days ago | IN | 0 ETH | 0.00004116 | ||||
| Set Approval For... | 22719733 | 272 days ago | IN | 0 ETH | 0.00006706 | ||||
| Set Approval For... | 19223911 | 761 days ago | IN | 0 ETH | 0.00071143 | ||||
| Set Approval For... | 18909747 | 805 days ago | IN | 0 ETH | 0.00043755 | ||||
| Set Approval For... | 18498749 | 862 days ago | IN | 0 ETH | 0.00094205 | ||||
| Set Approval For... | 17515969 | 1000 days ago | IN | 0 ETH | 0.00188855 | ||||
| Set Approval For... | 17201501 | 1044 days ago | IN | 0 ETH | 0.00521625 | ||||
| Set Approval For... | 16907863 | 1086 days ago | IN | 0 ETH | 0.00087588 | ||||
| Safe Transfer Fr... | 16862857 | 1092 days ago | IN | 0 ETH | 0.00132873 | ||||
| Set Approval For... | 16631293 | 1125 days ago | IN | 0 ETH | 0.00149455 | ||||
| Set Approval For... | 16306786 | 1170 days ago | IN | 0 ETH | 0.00079838 | ||||
| Set Approval For... | 16296191 | 1172 days ago | IN | 0 ETH | 0.00076037 | ||||
| Set Approval For... | 16266686 | 1176 days ago | IN | 0 ETH | 0.00057588 | ||||
| Set Approval For... | 16206416 | 1184 days ago | IN | 0 ETH | 0.00063395 | ||||
| Set Approval For... | 16143398 | 1193 days ago | IN | 0 ETH | 0.00060935 | ||||
| Set Approval For... | 16098703 | 1199 days ago | IN | 0 ETH | 0.00032161 | ||||
| Set Approval For... | 16080556 | 1202 days ago | IN | 0 ETH | 0.00052128 | ||||
| Set Approval For... | 15980198 | 1216 days ago | IN | 0 ETH | 0.00061181 | ||||
| Set Approval For... | 15942416 | 1221 days ago | IN | 0 ETH | 0.00125732 | ||||
| Set Approval For... | 15883483 | 1229 days ago | IN | 0 ETH | 0.0021908 | ||||
| Set Approval For... | 15883114 | 1229 days ago | IN | 0 ETH | 0.00059872 | ||||
| Set Approval For... | 15875154 | 1230 days ago | IN | 0 ETH | 0.00064268 | ||||
| Set Approval For... | 15872678 | 1231 days ago | IN | 0 ETH | 0.00053614 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BuilderBears
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
/*
* ______ __ __ __ __ _____ ______ ______
* /\ == \ /\ \/\ \ /\ \ /\ \ /\ __-. /\ ___\ /\ == \
* \ \ __< \ \ \_\ \ \ \ \ \ \ \____ \ \ \/\ \ \ \ __\ \ \ __<
* \ \_____\ \ \_____\ \ \_\ \ \_____\ \ \____- \ \_____\ \ \_\ \_\
* \/_____/ \/_____/ \/_/ \/_____/ \/____/ \/_____/ \/_/ /_/
* ______ ______ ______ ______ ______
* /\ == \ /\ ___\ /\ __ \ /\ == \ /\ ___\
* \ \ __< \ \ __\ \ \ __ \ \ \ __< \ \___ \
* \ \_____\ \ \_____\ \ \_\ \_\ \ \_\ \_\ \/\_____\
* \/_____/ \/_____/ \/_/\/_/ \/_/ /_/ \/_____/
*/
contract BuilderBears is ERC721A, Ownable, ReentrancyGuard {
mapping(uint256 => string) private ceilingPriceToBaseURI;
uint256[] private ceilingPrices;
uint public immutable collectionSize = 4269;
AggregatorV3Interface internal priceFeed;
bool public isMintActive = false;
constructor(address _priceFeedAddress) ERC721A("BuilderBears", "BUILDERBEAR") {
priceFeed = AggregatorV3Interface(_priceFeedAddress);
}
function mint()
external
payable
nonReentrant
{
require(isMintActive, "mint not active");
require(msg.value == 0 ether, "free mint requires no fee");
require(_totalMinted() < collectionSize, "sold out");
require(tx.origin == msg.sender, "contracts not allowed");
_safeMint(msg.sender, 1);
}
function _baseURI()
internal
view
override
returns (string memory)
{
uint latestEthPriceUSD = getLatestEthPriceUSD();
for (uint i = 0; i < ceilingPrices.length; i++) {
if (latestEthPriceUSD < ceilingPrices[i]) {
return ceilingPriceToBaseURI[ceilingPrices[i]];
}
}
return ceilingPriceToBaseURI[ceilingPrices[ceilingPrices.length - 1]];
}
function withdraw()
external
onlyOwner
{
(bool success, ) = owner().call{value: address(this).balance}("");
require(success, "failed transfer");
}
function setCeilingPriceToBaseURIMapping(
uint256[] calldata _ceilingPrices,
string[] calldata _baseURIs
)
external
onlyOwner
{
require(_ceilingPrices.length == _baseURIs.length, "mismatched array lengths");
ceilingPrices = _ceilingPrices;
for (uint8 i = 0; i < ceilingPrices.length; i++) {
ceilingPriceToBaseURI[ceilingPrices[i]] = _baseURIs[i];
}
}
function setIsMintActive(bool _isMintActive)
external
onlyOwner
{
isMintActive = _isMintActive;
}
function setPriceFeed(address _address)
external
onlyOwner
{
priceFeed = AggregatorV3Interface(_address);
}
function getIsMintActive()
public
view
returns (bool)
{
return isMintActive;
}
function getLatestEthPriceUSD()
public
view
returns (uint)
{
(,int price,,,) = priceFeed.latestRoundData();
uint8 decimals = priceFeed.decimals();
return uint(price) / 10 ** decimals;
}
function _startTokenId()
internal
pure
override
returns (uint256)
{
return 1;
}
fallback()
external
payable
{
require(false, "not implemented");
}
receive()
external
payable
{
require(false, "not implemented");
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
// getRoundData and latestRoundData should both raise "No data present"
// if they do not have data to report, instead of returning unset values
// which could be misinterpreted as actual reported values.
function getRoundData(uint80 _roundId)
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
function latestRoundData()
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
}// 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 v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @dev ERC721 token receiver interface.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard,
* including the Metadata extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at `_startTokenId()`
* (defaults to 0, e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Mask of an entry in packed address data.
uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;
// The bit position of `extraData` in packed ownership.
uint256 private constant BITPOS_EXTRA_DATA = 232;
// Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;
// The mask of the lower 160 bits for addresses.
uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1;
// The maximum `quantity` that can be minted with `_mintERC2309`.
// This limit is to prevent overflows on the address data entries.
// For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309`
// is required to cause an overflow, which is unrealistic.
uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;
// The tokenId of the next token to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See `_packedOwnershipOf` implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
// - [232..255] `extraData`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see `_totalMinted`.
*/
function totalSupply() public view override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view returns (uint256) {
// Counter underflow is impossible as _currentIndex does not decrement,
// and it is initialized to `_startTokenId()`
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view returns (uint256) {
return _burnCounter;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes of the XOR of
// all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
// e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return uint64(_packedAddressData[owner] >> BITPOS_AUX);
}
/**
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
// Cast `aux` with assembly to avoid redundant masking.
assembly {
auxCasted := aux
}
packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
_packedAddressData[owner] = packed;
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & BITMASK_BURNED == 0) {
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed is zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
ownership.burned = packed & BITMASK_BURNED != 0;
ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA);
}
/**
* Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev Packs ownership data into a single uint256.
*/
function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, BITMASK_ADDRESS)
// `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`.
result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags))
}
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
}
/**
* @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, it can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
/**
* @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
*/
function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
// For branchless setting of the `nextInitialized` flag.
assembly {
// `(quantity == 1) << BITPOS_NEXT_INITIALIZED`.
result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
}
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSenderERC721A()) revert ApproveToCaller();
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), 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-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 {
transferFrom(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* See {_mint}.
*
* Emits a {Transfer} event for each mint.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_mint(to, quantity);
unchecked {
if (to.code.length != 0) {
uint256 end = _currentIndex;
uint256 index = end - quantity;
do {
if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (index < end);
// Reentrancy protection.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event for each mint.
*/
function _mint(address to, uint256 quantity) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// `balance` and `numberMinted` have a maximum limit of 2**64.
// `tokenId` has a maximum limit of 2**256.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
uint256 tokenId = startTokenId;
uint256 end = startTokenId + quantity;
do {
emit Transfer(address(0), to, tokenId++);
} while (tokenId < end);
_currentIndex = end;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* This function is intended for efficient minting only during contract creation.
*
* It emits only one {ConsecutiveTransfer} as defined in
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
* instead of a sequence of {Transfer} event(s).
*
* Calling this function outside of contract creation WILL make your contract
* non-compliant with the ERC721 standard.
* For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
* {ConsecutiveTransfer} event is only permissible during contract creation.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {ConsecutiveTransfer} event.
*/
function _mintERC2309(address to, uint256 quantity) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are unrealistic due to the above check for `quantity` to be below the limit.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);
_currentIndex = startTokenId + quantity;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedAddress(uint256 tokenId)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
assembly {
// Compute the slot.
mstore(0x00, tokenId)
mstore(0x20, tokenApprovalsPtr.slot)
approvedAddressSlot := keccak256(0x00, 0x40)
// Load the slot's value from storage.
approvedAddress := sload(approvedAddressSlot)
}
}
/**
* @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`.
*/
function _isOwnerOrApproved(
address approvedAddress,
address from,
address msgSender
) private pure returns (bool result) {
assembly {
// Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
from := and(from, BITMASK_ADDRESS)
// Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
msgSender := and(msgSender, BITMASK_ADDRESS)
// `msgSender == from || msgSender == approvedAddress`.
result := or(eq(msgSender, from), eq(msgSender, approvedAddress))
}
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
// We can directly increment and decrement the balances.
--_packedAddressData[from]; // Updates: `balance -= 1`.
++_packedAddressData[to]; // Updates: `balance += 1`.
// Updates:
// - `address` to the next owner.
// - `startTimestamp` to the timestamp of transfering.
// - `burned` to `false`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
to,
BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);
if (approvalCheck) {
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// Updates:
// - `balance -= 1`.
// - `numberBurned += 1`.
//
// We can directly decrement the balance, and increment the number burned.
// This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
_packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;
// Updates:
// - `address` to the last owner.
// - `startTimestamp` to the timestamp of burning.
// - `burned` to `true`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
from,
(BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
bytes4 retval
) {
return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
/**
* @dev Directly sets the extra data for the ownership data `index`.
*/
function _setExtraDataAt(uint256 index, uint24 extraData) internal {
uint256 packed = _packedOwnerships[index];
if (packed == 0) revert OwnershipNotInitializedForExtraData();
uint256 extraDataCasted;
// Cast `extraData` with assembly to avoid redundant masking.
assembly {
extraDataCasted := extraData
}
packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA);
_packedOwnerships[index] = packed;
}
/**
* @dev Returns the next extra data for the packed ownership data.
* The returned result is shifted into position.
*/
function _nextExtraData(
address from,
address to,
uint256 prevOwnershipPacked
) private view returns (uint256) {
uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA);
return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA;
}
/**
* @dev Called during each token transfer to set the 24bit `extraData` field.
* Intended to be overridden by the cosumer contract.
*
* `previousExtraData` - the value of `extraData` before transfer.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _extraData(
address from,
address to,
uint24 previousExtraData
) internal view virtual returns (uint24) {}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred.
* This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred.
* This includes minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function _toString(uint256 value) internal pure returns (string memory ptr) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit),
// but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
// We will need 1 32-byte word to store the length,
// and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
ptr := add(mload(0x40), 128)
// Update the free memory pointer to allocate.
mstore(0x40, ptr)
// Cache the end of the memory to calculate the length later.
let end := ptr
// We write the string from the rightmost digit to the leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// Costs a bit more than early returning for the zero case,
// but cheaper in terms of deployment and overall runtime costs.
for {
// Initialize and perform the first pass without check.
let temp := value
// Move the pointer 1 byte leftwards to point to an empty character slot.
ptr := sub(ptr, 1)
// Write the character to the pointer. 48 is the ASCII index of '0'.
mstore8(ptr, add(48, mod(temp, 10)))
temp := div(temp, 10)
} temp {
// Keep dividing `temp` until zero.
temp := div(temp, 10)
} {
// Body of the for loop.
ptr := sub(ptr, 1)
mstore8(ptr, add(48, mod(temp, 10)))
}
let length := sub(end, ptr)
// Move the pointer 32 bytes leftwards to make room for the length.
ptr := sub(ptr, 32)
// Store the length.
mstore(ptr, length)
}
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of an ERC721A compliant contract.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* The caller cannot approve to their own address.
*/
error ApproveToCaller();
/**
* Cannot query the balance for the zero address.
*/
error BalanceQueryForZeroAddress();
/**
* Cannot mint to the zero address.
*/
error MintToZeroAddress();
/**
* The quantity of tokens minted must be more than zero.
*/
error MintZeroQuantity();
/**
* The token does not exist.
*/
error OwnerQueryForNonexistentToken();
/**
* The caller must own the token or be an approved operator.
*/
error TransferCallerNotOwnerNorApproved();
/**
* The token must be owned by `from`.
*/
error TransferFromIncorrectOwner();
/**
* Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
*/
error TransferToNonERC721ReceiverImplementer();
/**
* Cannot transfer to the zero address.
*/
error TransferToZeroAddress();
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
/**
* The `quantity` minted with ERC2309 exceeds the safety limit.
*/
error MintERC2309QuantityExceedsLimit();
/**
* The `extraData` cannot be set on an unintialized ownership slot.
*/
error OwnershipNotInitializedForExtraData();
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
// Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
uint24 extraData;
}
/**
* @dev Returns the total amount of tokens stored by the contract.
*
* Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
*/
function totalSupply() external view returns (uint256);
// ==============================
// 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);
// ==============================
// IERC721
// ==============================
/**
* @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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev 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);
// ==============================
// IERC721Metadata
// ==============================
/**
* @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);
// ==============================
// IERC2309
// ==============================
/**
* @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
* as defined in the ERC2309 standard. See `_mintERC2309` for more details.
*/
event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}// 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;
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_priceFeedAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"stateMutability":"payable","type":"fallback"},{"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":"collectionSize","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":[],"name":"getIsMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestEthPriceUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ceilingPrices","type":"uint256[]"},{"internalType":"string[]","name":"_baseURIs","type":"string[]"}],"name":"setCeilingPriceToBaseURIMapping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isMintActive","type":"bool"}],"name":"setIsMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setPriceFeed","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a06040526110ad6080908152506000600c60146101000a81548160ff0219169083151502179055503480156200003557600080fd5b5060405162003ae838038062003ae883398181016040528101906200005b919062000372565b6040518060400160405280600c81526020017f4275696c646572426561727300000000000000000000000000000000000000008152506040518060400160405280600b81526020017f4255494c444552424541520000000000000000000000000000000000000000008152508160029080519060200190620000df92919062000258565b508060039080519060200190620000f892919062000258565b50620001096200018160201b60201c565b600081905550505062000131620001256200018a60201b60201c565b6200019260201b60201c565b600160098190555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000409565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200026690620003d3565b90600052602060002090601f0160209004810192826200028a5760008555620002d6565b82601f10620002a557805160ff1916838001178555620002d6565b82800160010185558215620002d6579182015b82811115620002d5578251825591602001919060010190620002b8565b5b509050620002e59190620002e9565b5090565b5b8082111562000304576000816000905550600101620002ea565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200033a826200030d565b9050919050565b6200034c816200032d565b81146200035857600080fd5b50565b6000815190506200036c8162000341565b92915050565b6000602082840312156200038b576200038a62000308565b5b60006200039b848285016200035b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003ec57607f821691505b60208210811415620004035762000402620003a4565b5b50919050565b6080516136bc6200042c60003960008181610b8f015261110901526136bc6000f3fe6080604052600436106101845760003560e01c806370a08231116100d157806395d89b411161008a578063c87b56dd11610064578063c87b56dd146105b2578063e985e9c5146105ef578063f2fde38b1461062c578063fa4e25b414610655576101cc565b806395d89b4114610535578063a22cb46514610560578063b88d4fde14610589576101cc565b806370a0823114610439578063715018a614610476578063724e78da1461048d5780638399e681146104b657806388ce39a3146104e15780638da5cb5b1461050a576101cc565b806318160ddd1161013e57806342842e0e1161011857806342842e0e1461037d57806345c0f533146103a65780635b92ac0d146103d15780636352211e146103fc576101cc565b806318160ddd1461031257806323b872dd1461033d5780633ccfd60b14610366576101cc565b80624ca54c1461020f57806301ffc9a71461023a57806306fdde0314610277578063081812fc146102a2578063095ea7b3146102df5780631249c58b14610308576101cc565b366101cc5760006101ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101c1906124b1565b60405180910390fd5b005b600061020d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610204906124b1565b60405180910390fd5b005b34801561021b57600080fd5b5061022461067e565b60405161023191906124ea565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190612571565b6107cc565b60405161026e91906125b9565b60405180910390f35b34801561028357600080fd5b5061028c61085e565b604051610299919061265c565b60405180910390f35b3480156102ae57600080fd5b506102c960048036038101906102c491906126aa565b6108f0565b6040516102d69190612718565b60405180910390f35b3480156102eb57600080fd5b506103066004803603810190610301919061275f565b61096c565b005b610310610aad565b005b34801561031e57600080fd5b50610327610c79565b60405161033491906124ea565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f919061279f565b610c90565b005b34801561037257600080fd5b5061037b610fb5565b005b34801561038957600080fd5b506103a4600480360381019061039f919061279f565b6110e7565b005b3480156103b257600080fd5b506103bb611107565b6040516103c891906124ea565b60405180910390f35b3480156103dd57600080fd5b506103e661112b565b6040516103f391906125b9565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e91906126aa565b61113e565b6040516104309190612718565b60405180910390f35b34801561044557600080fd5b50610460600480360381019061045b91906127f2565b611150565b60405161046d91906124ea565b60405180910390f35b34801561048257600080fd5b5061048b611209565b005b34801561049957600080fd5b506104b460048036038101906104af91906127f2565b611291565b005b3480156104c257600080fd5b506104cb611351565b6040516104d891906125b9565b60405180910390f35b3480156104ed57600080fd5b50610508600480360381019061050391906128da565b611368565b005b34801561051657600080fd5b5061051f6114d5565b60405161052c9190612718565b60405180910390f35b34801561054157600080fd5b5061054a6114ff565b604051610557919061265c565b60405180910390f35b34801561056c57600080fd5b5061058760048036038101906105829190612987565b611591565b005b34801561059557600080fd5b506105b060048036038101906105ab9190612af7565b611709565b005b3480156105be57600080fd5b506105d960048036038101906105d491906126aa565b61177c565b6040516105e6919061265c565b60405180910390f35b3480156105fb57600080fd5b5061061660048036038101906106119190612b7a565b61181b565b60405161062391906125b9565b60405180910390f35b34801561063857600080fd5b50610653600480360381019061064e91906127f2565b6118af565b005b34801561066157600080fd5b5061067c60048036038101906106779190612bba565b6119a7565b005b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156106ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107129190612c74565b5050509150506000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610787573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ab9190612d28565b905080600a6107ba9190612eb7565b826107c59190612f31565b9250505090565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061082757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108575750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461086d90612f91565b80601f016020809104026020016040519081016040528092919081815260200182805461089990612f91565b80156108e65780601f106108bb576101008083540402835291602001916108e6565b820191906000526020600020905b8154815290600101906020018083116108c957829003601f168201915b5050505050905090565b60006108fb82611a40565b610931576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109778261113e565b90508073ffffffffffffffffffffffffffffffffffffffff16610998611a9f565b73ffffffffffffffffffffffffffffffffffffffff16146109fb576109c4816109bf611a9f565b61181b565b6109fa576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60026009541415610af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aea9061300f565b60405180910390fd5b6002600981905550600c60149054906101000a900460ff16610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b419061307b565b60405180910390fd5b60003414610b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b84906130e7565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000610bb6611aa7565b10610bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bed90613153565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610c64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5b906131bf565b60405180910390fd5b610c6f336001611aba565b6001600981905550565b6000610c83611ad8565b6001546000540303905090565b6000610c9b82611ae1565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d02576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d0e84611baf565b91509150610d248187610d1f611a9f565b611bd1565b610d7057610d3986610d34611a9f565b61181b565b610d6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610dd7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610de48686866001611c15565b8015610def57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ebd85610e99888887611c1b565b7c020000000000000000000000000000000000000000000000000000000017611c43565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f45576000600185019050600060046000838152602001908152602001600020541415610f43576000548114610f42578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fad8686866001611c6e565b505050505050565b610fbd611c74565b73ffffffffffffffffffffffffffffffffffffffff16610fdb6114d5565b73ffffffffffffffffffffffffffffffffffffffff1614611031576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110289061322b565b60405180910390fd5b600061103b6114d5565b73ffffffffffffffffffffffffffffffffffffffff164760405161105e9061327c565b60006040518083038185875af1925050503d806000811461109b576040519150601f19603f3d011682016040523d82523d6000602084013e6110a0565b606091505b50509050806110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db906132dd565b60405180910390fd5b50565b61110283838360405180602001604052806000815250611709565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600c60149054906101000a900460ff1681565b600061114982611ae1565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111b8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611211611c74565b73ffffffffffffffffffffffffffffffffffffffff1661122f6114d5565b73ffffffffffffffffffffffffffffffffffffffff1614611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c9061322b565b60405180910390fd5b61128f6000611c7c565b565b611299611c74565b73ffffffffffffffffffffffffffffffffffffffff166112b76114d5565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113049061322b565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600c60149054906101000a900460ff16905090565b611370611c74565b73ffffffffffffffffffffffffffffffffffffffff1661138e6114d5565b73ffffffffffffffffffffffffffffffffffffffff16146113e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113db9061322b565b60405180910390fd5b81819050848490501461142c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142390613349565b60405180910390fd5b8383600b919061143d929190612364565b5060005b600b805490508160ff1610156114ce5782828260ff1681811061146757611466613369565b5b905060200281019061147991906133a7565b600a6000600b8560ff168154811061149457611493613369565b5b9060005260206000200154815260200190815260200160002091906114ba9291906123b1565b5080806114c69061340a565b915050611441565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461150e90612f91565b80601f016020809104026020016040519081016040528092919081815260200182805461153a90612f91565b80156115875780601f1061155c57610100808354040283529160200191611587565b820191906000526020600020905b81548152906001019060200180831161156a57829003601f168201915b5050505050905090565b611599611a9f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115fe576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061160b611a9f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116b8611a9f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116fd91906125b9565b60405180910390a35050565b611714848484610c90565b60008373ffffffffffffffffffffffffffffffffffffffff163b146117765761173f84848484611d42565b611775576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061178782611a40565b6117bd576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117c7611e93565b90506000815114156117e85760405180602001604052806000815250611813565b806117f284612080565b604051602001611803929190613470565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118b7611c74565b73ffffffffffffffffffffffffffffffffffffffff166118d56114d5565b73ffffffffffffffffffffffffffffffffffffffff161461192b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119229061322b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561199b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199290613506565b60405180910390fd5b6119a481611c7c565b50565b6119af611c74565b73ffffffffffffffffffffffffffffffffffffffff166119cd6114d5565b73ffffffffffffffffffffffffffffffffffffffff1614611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a9061322b565b60405180910390fd5b80600c60146101000a81548160ff02191690831515021790555050565b600081611a4b611ad8565b11158015611a5a575060005482105b8015611a98575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000611ab1611ad8565b60005403905090565b611ad48282604051806020016040528060008152506120da565b5050565b60006001905090565b60008082905080611af0611ad8565b11611b7857600054811015611b775760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611b75575b6000811415611b6b576004600083600190039350838152602001908152602001600020549050611b40565b8092505050611baa565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c32868684612177565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d68611a9f565b8786866040518563ffffffff1660e01b8152600401611d8a949392919061357b565b6020604051808303816000875af1925050508015611dc657506040513d601f19601f82011682018060405250810190611dc391906135dc565b60015b611e40573d8060008114611df6576040519150601f19603f3d011682016040523d82523d6000602084013e611dfb565b606091505b50600081511415611e38576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000611e9f61067e565b905060005b600b80549050811015611fad57600b8181548110611ec557611ec4613369565b5b9060005260206000200154821015611f9a57600a6000600b8381548110611eef57611eee613369565b5b906000526020600020015481526020019081526020016000208054611f1390612f91565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3f90612f91565b8015611f8c5780601f10611f6157610100808354040283529160200191611f8c565b820191906000526020600020905b815481529060010190602001808311611f6f57829003601f168201915b50505050509250505061207d565b8080611fa590613609565b915050611ea4565b50600a6000600b6001600b80549050611fc69190613652565b81548110611fd757611fd6613369565b5b906000526020600020015481526020019081526020016000208054611ffb90612f91565b80601f016020809104026020016040519081016040528092919081815260200182805461202790612f91565b80156120745780601f1061204957610100808354040283529160200191612074565b820191906000526020600020905b81548152906001019060200180831161205757829003601f168201915b50505050509150505b90565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b80156120c657600183039250600a81066030018353600a810490506120a6565b508181036020830392508083525050919050565b6120e48383612180565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461217257600080549050600083820390505b6121246000868380600101945086611d42565b61215a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061211157816000541461216f57600080fd5b50505b505050565b60009392505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121ed576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612228576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122356000848385611c15565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506122ac8361229d6000866000611c1b565b6122a685612354565b17611c43565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106122d05780600081905550505061234f6000848385611c6e565b505050565b60006001821460e11b9050919050565b8280548282559060005260206000209081019282156123a0579160200282015b8281111561239f578235825591602001919060010190612384565b5b5090506123ad9190612437565b5090565b8280546123bd90612f91565b90600052602060002090601f0160209004810192826123df5760008555612426565b82601f106123f857803560ff1916838001178555612426565b82800160010185558215612426579182015b8281111561242557823582559160200191906001019061240a565b5b5090506124339190612437565b5090565b5b80821115612450576000816000905550600101612438565b5090565b600082825260208201905092915050565b7f6e6f7420696d706c656d656e7465640000000000000000000000000000000000600082015250565b600061249b600f83612454565b91506124a682612465565b602082019050919050565b600060208201905081810360008301526124ca8161248e565b9050919050565b6000819050919050565b6124e4816124d1565b82525050565b60006020820190506124ff60008301846124db565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61254e81612519565b811461255957600080fd5b50565b60008135905061256b81612545565b92915050565b6000602082840312156125875761258661250f565b5b60006125958482850161255c565b91505092915050565b60008115159050919050565b6125b38161259e565b82525050565b60006020820190506125ce60008301846125aa565b92915050565b600081519050919050565b60005b838110156125fd5780820151818401526020810190506125e2565b8381111561260c576000848401525b50505050565b6000601f19601f8301169050919050565b600061262e826125d4565b6126388185612454565b93506126488185602086016125df565b61265181612612565b840191505092915050565b600060208201905081810360008301526126768184612623565b905092915050565b612687816124d1565b811461269257600080fd5b50565b6000813590506126a48161267e565b92915050565b6000602082840312156126c0576126bf61250f565b5b60006126ce84828501612695565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612702826126d7565b9050919050565b612712816126f7565b82525050565b600060208201905061272d6000830184612709565b92915050565b61273c816126f7565b811461274757600080fd5b50565b60008135905061275981612733565b92915050565b600080604083850312156127765761277561250f565b5b60006127848582860161274a565b925050602061279585828601612695565b9150509250929050565b6000806000606084860312156127b8576127b761250f565b5b60006127c68682870161274a565b93505060206127d78682870161274a565b92505060406127e886828701612695565b9150509250925092565b6000602082840312156128085761280761250f565b5b60006128168482850161274a565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126128445761284361281f565b5b8235905067ffffffffffffffff81111561286157612860612824565b5b60208301915083602082028301111561287d5761287c612829565b5b9250929050565b60008083601f84011261289a5761289961281f565b5b8235905067ffffffffffffffff8111156128b7576128b6612824565b5b6020830191508360208202830111156128d3576128d2612829565b5b9250929050565b600080600080604085870312156128f4576128f361250f565b5b600085013567ffffffffffffffff81111561291257612911612514565b5b61291e8782880161282e565b9450945050602085013567ffffffffffffffff81111561294157612940612514565b5b61294d87828801612884565b925092505092959194509250565b6129648161259e565b811461296f57600080fd5b50565b6000813590506129818161295b565b92915050565b6000806040838503121561299e5761299d61250f565b5b60006129ac8582860161274a565b92505060206129bd85828601612972565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a0482612612565b810181811067ffffffffffffffff82111715612a2357612a226129cc565b5b80604052505050565b6000612a36612505565b9050612a4282826129fb565b919050565b600067ffffffffffffffff821115612a6257612a616129cc565b5b612a6b82612612565b9050602081019050919050565b82818337600083830152505050565b6000612a9a612a9584612a47565b612a2c565b905082815260208101848484011115612ab657612ab56129c7565b5b612ac1848285612a78565b509392505050565b600082601f830112612ade57612add61281f565b5b8135612aee848260208601612a87565b91505092915050565b60008060008060808587031215612b1157612b1061250f565b5b6000612b1f8782880161274a565b9450506020612b308782880161274a565b9350506040612b4187828801612695565b925050606085013567ffffffffffffffff811115612b6257612b61612514565b5b612b6e87828801612ac9565b91505092959194509250565b60008060408385031215612b9157612b9061250f565b5b6000612b9f8582860161274a565b9250506020612bb08582860161274a565b9150509250929050565b600060208284031215612bd057612bcf61250f565b5b6000612bde84828501612972565b91505092915050565b600069ffffffffffffffffffff82169050919050565b612c0681612be7565b8114612c1157600080fd5b50565b600081519050612c2381612bfd565b92915050565b6000819050919050565b612c3c81612c29565b8114612c4757600080fd5b50565b600081519050612c5981612c33565b92915050565b600081519050612c6e8161267e565b92915050565b600080600080600060a08688031215612c9057612c8f61250f565b5b6000612c9e88828901612c14565b9550506020612caf88828901612c4a565b9450506040612cc088828901612c5f565b9350506060612cd188828901612c5f565b9250506080612ce288828901612c14565b9150509295509295909350565b600060ff82169050919050565b612d0581612cef565b8114612d1057600080fd5b50565b600081519050612d2281612cfc565b92915050565b600060208284031215612d3e57612d3d61250f565b5b6000612d4c84828501612d13565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115612ddb57808604811115612db757612db6612d55565b5b6001851615612dc65780820291505b8081029050612dd485612d84565b9450612d9b565b94509492505050565b600082612df45760019050612eb0565b81612e025760009050612eb0565b8160018114612e185760028114612e2257612e51565b6001915050612eb0565b60ff841115612e3457612e33612d55565b5b8360020a915084821115612e4b57612e4a612d55565b5b50612eb0565b5060208310610133831016604e8410600b8410161715612e865782820a905083811115612e8157612e80612d55565b5b612eb0565b612e938484846001612d91565b92509050818404811115612eaa57612ea9612d55565b5b81810290505b9392505050565b6000612ec2826124d1565b9150612ecd83612cef565b9250612efa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612de4565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612f3c826124d1565b9150612f47836124d1565b925082612f5757612f56612f02565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612fa957607f821691505b60208210811415612fbd57612fbc612f62565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612ff9601f83612454565b915061300482612fc3565b602082019050919050565b6000602082019050818103600083015261302881612fec565b9050919050565b7f6d696e74206e6f74206163746976650000000000000000000000000000000000600082015250565b6000613065600f83612454565b91506130708261302f565b602082019050919050565b6000602082019050818103600083015261309481613058565b9050919050565b7f66726565206d696e74207265717569726573206e6f2066656500000000000000600082015250565b60006130d1601983612454565b91506130dc8261309b565b602082019050919050565b60006020820190508181036000830152613100816130c4565b9050919050565b7f736f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b600061313d600883612454565b915061314882613107565b602082019050919050565b6000602082019050818103600083015261316c81613130565b9050919050565b7f636f6e747261637473206e6f7420616c6c6f7765640000000000000000000000600082015250565b60006131a9601583612454565b91506131b482613173565b602082019050919050565b600060208201905081810360008301526131d88161319c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613215602083612454565b9150613220826131df565b602082019050919050565b6000602082019050818103600083015261324481613208565b9050919050565b600081905092915050565b50565b600061326660008361324b565b915061327182613256565b600082019050919050565b600061328782613259565b9150819050919050565b7f6661696c6564207472616e736665720000000000000000000000000000000000600082015250565b60006132c7600f83612454565b91506132d282613291565b602082019050919050565b600060208201905081810360008301526132f6816132ba565b9050919050565b7f6d69736d617463686564206172726179206c656e677468730000000000000000600082015250565b6000613333601883612454565b915061333e826132fd565b602082019050919050565b6000602082019050818103600083015261336281613326565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126133c4576133c3613398565b5b80840192508235915067ffffffffffffffff8211156133e6576133e561339d565b5b602083019250600182023603831315613402576134016133a2565b5b509250929050565b600061341582612cef565b915060ff82141561342957613428612d55565b5b600182019050919050565b600081905092915050565b600061344a826125d4565b6134548185613434565b93506134648185602086016125df565b80840191505092915050565b600061347c828561343f565b9150613488828461343f565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006134f0602683612454565b91506134fb82613494565b604082019050919050565b6000602082019050818103600083015261351f816134e3565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061354d82613526565b6135578185613531565b93506135678185602086016125df565b61357081612612565b840191505092915050565b60006080820190506135906000830187612709565b61359d6020830186612709565b6135aa60408301856124db565b81810360608301526135bc8184613542565b905095945050505050565b6000815190506135d681612545565b92915050565b6000602082840312156135f2576135f161250f565b5b6000613600848285016135c7565b91505092915050565b6000613614826124d1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561364757613646612d55565b5b600182019050919050565b600061365d826124d1565b9150613668836124d1565b92508282101561367b5761367a612d55565b5b82820390509291505056fea26469706673582212209520da330aab9e81c2ee6ad5c8ffb946b9159ec6cc8b42cdb7d8e87dc01c5c4964736f6c634300080c00330000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Deployed Bytecode
0x6080604052600436106101845760003560e01c806370a08231116100d157806395d89b411161008a578063c87b56dd11610064578063c87b56dd146105b2578063e985e9c5146105ef578063f2fde38b1461062c578063fa4e25b414610655576101cc565b806395d89b4114610535578063a22cb46514610560578063b88d4fde14610589576101cc565b806370a0823114610439578063715018a614610476578063724e78da1461048d5780638399e681146104b657806388ce39a3146104e15780638da5cb5b1461050a576101cc565b806318160ddd1161013e57806342842e0e1161011857806342842e0e1461037d57806345c0f533146103a65780635b92ac0d146103d15780636352211e146103fc576101cc565b806318160ddd1461031257806323b872dd1461033d5780633ccfd60b14610366576101cc565b80624ca54c1461020f57806301ffc9a71461023a57806306fdde0314610277578063081812fc146102a2578063095ea7b3146102df5780631249c58b14610308576101cc565b366101cc5760006101ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101c1906124b1565b60405180910390fd5b005b600061020d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610204906124b1565b60405180910390fd5b005b34801561021b57600080fd5b5061022461067e565b60405161023191906124ea565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190612571565b6107cc565b60405161026e91906125b9565b60405180910390f35b34801561028357600080fd5b5061028c61085e565b604051610299919061265c565b60405180910390f35b3480156102ae57600080fd5b506102c960048036038101906102c491906126aa565b6108f0565b6040516102d69190612718565b60405180910390f35b3480156102eb57600080fd5b506103066004803603810190610301919061275f565b61096c565b005b610310610aad565b005b34801561031e57600080fd5b50610327610c79565b60405161033491906124ea565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f919061279f565b610c90565b005b34801561037257600080fd5b5061037b610fb5565b005b34801561038957600080fd5b506103a4600480360381019061039f919061279f565b6110e7565b005b3480156103b257600080fd5b506103bb611107565b6040516103c891906124ea565b60405180910390f35b3480156103dd57600080fd5b506103e661112b565b6040516103f391906125b9565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e91906126aa565b61113e565b6040516104309190612718565b60405180910390f35b34801561044557600080fd5b50610460600480360381019061045b91906127f2565b611150565b60405161046d91906124ea565b60405180910390f35b34801561048257600080fd5b5061048b611209565b005b34801561049957600080fd5b506104b460048036038101906104af91906127f2565b611291565b005b3480156104c257600080fd5b506104cb611351565b6040516104d891906125b9565b60405180910390f35b3480156104ed57600080fd5b50610508600480360381019061050391906128da565b611368565b005b34801561051657600080fd5b5061051f6114d5565b60405161052c9190612718565b60405180910390f35b34801561054157600080fd5b5061054a6114ff565b604051610557919061265c565b60405180910390f35b34801561056c57600080fd5b5061058760048036038101906105829190612987565b611591565b005b34801561059557600080fd5b506105b060048036038101906105ab9190612af7565b611709565b005b3480156105be57600080fd5b506105d960048036038101906105d491906126aa565b61177c565b6040516105e6919061265c565b60405180910390f35b3480156105fb57600080fd5b5061061660048036038101906106119190612b7a565b61181b565b60405161062391906125b9565b60405180910390f35b34801561063857600080fd5b50610653600480360381019061064e91906127f2565b6118af565b005b34801561066157600080fd5b5061067c60048036038101906106779190612bba565b6119a7565b005b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156106ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107129190612c74565b5050509150506000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610787573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ab9190612d28565b905080600a6107ba9190612eb7565b826107c59190612f31565b9250505090565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061082757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108575750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461086d90612f91565b80601f016020809104026020016040519081016040528092919081815260200182805461089990612f91565b80156108e65780601f106108bb576101008083540402835291602001916108e6565b820191906000526020600020905b8154815290600101906020018083116108c957829003601f168201915b5050505050905090565b60006108fb82611a40565b610931576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109778261113e565b90508073ffffffffffffffffffffffffffffffffffffffff16610998611a9f565b73ffffffffffffffffffffffffffffffffffffffff16146109fb576109c4816109bf611a9f565b61181b565b6109fa576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60026009541415610af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aea9061300f565b60405180910390fd5b6002600981905550600c60149054906101000a900460ff16610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b419061307b565b60405180910390fd5b60003414610b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b84906130e7565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000010ad610bb6611aa7565b10610bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bed90613153565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610c64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5b906131bf565b60405180910390fd5b610c6f336001611aba565b6001600981905550565b6000610c83611ad8565b6001546000540303905090565b6000610c9b82611ae1565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d02576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d0e84611baf565b91509150610d248187610d1f611a9f565b611bd1565b610d7057610d3986610d34611a9f565b61181b565b610d6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610dd7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610de48686866001611c15565b8015610def57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ebd85610e99888887611c1b565b7c020000000000000000000000000000000000000000000000000000000017611c43565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f45576000600185019050600060046000838152602001908152602001600020541415610f43576000548114610f42578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fad8686866001611c6e565b505050505050565b610fbd611c74565b73ffffffffffffffffffffffffffffffffffffffff16610fdb6114d5565b73ffffffffffffffffffffffffffffffffffffffff1614611031576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110289061322b565b60405180910390fd5b600061103b6114d5565b73ffffffffffffffffffffffffffffffffffffffff164760405161105e9061327c565b60006040518083038185875af1925050503d806000811461109b576040519150601f19603f3d011682016040523d82523d6000602084013e6110a0565b606091505b50509050806110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db906132dd565b60405180910390fd5b50565b61110283838360405180602001604052806000815250611709565b505050565b7f00000000000000000000000000000000000000000000000000000000000010ad81565b600c60149054906101000a900460ff1681565b600061114982611ae1565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111b8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611211611c74565b73ffffffffffffffffffffffffffffffffffffffff1661122f6114d5565b73ffffffffffffffffffffffffffffffffffffffff1614611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c9061322b565b60405180910390fd5b61128f6000611c7c565b565b611299611c74565b73ffffffffffffffffffffffffffffffffffffffff166112b76114d5565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113049061322b565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600c60149054906101000a900460ff16905090565b611370611c74565b73ffffffffffffffffffffffffffffffffffffffff1661138e6114d5565b73ffffffffffffffffffffffffffffffffffffffff16146113e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113db9061322b565b60405180910390fd5b81819050848490501461142c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142390613349565b60405180910390fd5b8383600b919061143d929190612364565b5060005b600b805490508160ff1610156114ce5782828260ff1681811061146757611466613369565b5b905060200281019061147991906133a7565b600a6000600b8560ff168154811061149457611493613369565b5b9060005260206000200154815260200190815260200160002091906114ba9291906123b1565b5080806114c69061340a565b915050611441565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461150e90612f91565b80601f016020809104026020016040519081016040528092919081815260200182805461153a90612f91565b80156115875780601f1061155c57610100808354040283529160200191611587565b820191906000526020600020905b81548152906001019060200180831161156a57829003601f168201915b5050505050905090565b611599611a9f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115fe576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061160b611a9f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116b8611a9f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116fd91906125b9565b60405180910390a35050565b611714848484610c90565b60008373ffffffffffffffffffffffffffffffffffffffff163b146117765761173f84848484611d42565b611775576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061178782611a40565b6117bd576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117c7611e93565b90506000815114156117e85760405180602001604052806000815250611813565b806117f284612080565b604051602001611803929190613470565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118b7611c74565b73ffffffffffffffffffffffffffffffffffffffff166118d56114d5565b73ffffffffffffffffffffffffffffffffffffffff161461192b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119229061322b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561199b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199290613506565b60405180910390fd5b6119a481611c7c565b50565b6119af611c74565b73ffffffffffffffffffffffffffffffffffffffff166119cd6114d5565b73ffffffffffffffffffffffffffffffffffffffff1614611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a9061322b565b60405180910390fd5b80600c60146101000a81548160ff02191690831515021790555050565b600081611a4b611ad8565b11158015611a5a575060005482105b8015611a98575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000611ab1611ad8565b60005403905090565b611ad48282604051806020016040528060008152506120da565b5050565b60006001905090565b60008082905080611af0611ad8565b11611b7857600054811015611b775760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611b75575b6000811415611b6b576004600083600190039350838152602001908152602001600020549050611b40565b8092505050611baa565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c32868684612177565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d68611a9f565b8786866040518563ffffffff1660e01b8152600401611d8a949392919061357b565b6020604051808303816000875af1925050508015611dc657506040513d601f19601f82011682018060405250810190611dc391906135dc565b60015b611e40573d8060008114611df6576040519150601f19603f3d011682016040523d82523d6000602084013e611dfb565b606091505b50600081511415611e38576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000611e9f61067e565b905060005b600b80549050811015611fad57600b8181548110611ec557611ec4613369565b5b9060005260206000200154821015611f9a57600a6000600b8381548110611eef57611eee613369565b5b906000526020600020015481526020019081526020016000208054611f1390612f91565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3f90612f91565b8015611f8c5780601f10611f6157610100808354040283529160200191611f8c565b820191906000526020600020905b815481529060010190602001808311611f6f57829003601f168201915b50505050509250505061207d565b8080611fa590613609565b915050611ea4565b50600a6000600b6001600b80549050611fc69190613652565b81548110611fd757611fd6613369565b5b906000526020600020015481526020019081526020016000208054611ffb90612f91565b80601f016020809104026020016040519081016040528092919081815260200182805461202790612f91565b80156120745780601f1061204957610100808354040283529160200191612074565b820191906000526020600020905b81548152906001019060200180831161205757829003601f168201915b50505050509150505b90565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b80156120c657600183039250600a81066030018353600a810490506120a6565b508181036020830392508083525050919050565b6120e48383612180565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461217257600080549050600083820390505b6121246000868380600101945086611d42565b61215a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061211157816000541461216f57600080fd5b50505b505050565b60009392505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121ed576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612228576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122356000848385611c15565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506122ac8361229d6000866000611c1b565b6122a685612354565b17611c43565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106122d05780600081905550505061234f6000848385611c6e565b505050565b60006001821460e11b9050919050565b8280548282559060005260206000209081019282156123a0579160200282015b8281111561239f578235825591602001919060010190612384565b5b5090506123ad9190612437565b5090565b8280546123bd90612f91565b90600052602060002090601f0160209004810192826123df5760008555612426565b82601f106123f857803560ff1916838001178555612426565b82800160010185558215612426579182015b8281111561242557823582559160200191906001019061240a565b5b5090506124339190612437565b5090565b5b80821115612450576000816000905550600101612438565b5090565b600082825260208201905092915050565b7f6e6f7420696d706c656d656e7465640000000000000000000000000000000000600082015250565b600061249b600f83612454565b91506124a682612465565b602082019050919050565b600060208201905081810360008301526124ca8161248e565b9050919050565b6000819050919050565b6124e4816124d1565b82525050565b60006020820190506124ff60008301846124db565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61254e81612519565b811461255957600080fd5b50565b60008135905061256b81612545565b92915050565b6000602082840312156125875761258661250f565b5b60006125958482850161255c565b91505092915050565b60008115159050919050565b6125b38161259e565b82525050565b60006020820190506125ce60008301846125aa565b92915050565b600081519050919050565b60005b838110156125fd5780820151818401526020810190506125e2565b8381111561260c576000848401525b50505050565b6000601f19601f8301169050919050565b600061262e826125d4565b6126388185612454565b93506126488185602086016125df565b61265181612612565b840191505092915050565b600060208201905081810360008301526126768184612623565b905092915050565b612687816124d1565b811461269257600080fd5b50565b6000813590506126a48161267e565b92915050565b6000602082840312156126c0576126bf61250f565b5b60006126ce84828501612695565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612702826126d7565b9050919050565b612712816126f7565b82525050565b600060208201905061272d6000830184612709565b92915050565b61273c816126f7565b811461274757600080fd5b50565b60008135905061275981612733565b92915050565b600080604083850312156127765761277561250f565b5b60006127848582860161274a565b925050602061279585828601612695565b9150509250929050565b6000806000606084860312156127b8576127b761250f565b5b60006127c68682870161274a565b93505060206127d78682870161274a565b92505060406127e886828701612695565b9150509250925092565b6000602082840312156128085761280761250f565b5b60006128168482850161274a565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126128445761284361281f565b5b8235905067ffffffffffffffff81111561286157612860612824565b5b60208301915083602082028301111561287d5761287c612829565b5b9250929050565b60008083601f84011261289a5761289961281f565b5b8235905067ffffffffffffffff8111156128b7576128b6612824565b5b6020830191508360208202830111156128d3576128d2612829565b5b9250929050565b600080600080604085870312156128f4576128f361250f565b5b600085013567ffffffffffffffff81111561291257612911612514565b5b61291e8782880161282e565b9450945050602085013567ffffffffffffffff81111561294157612940612514565b5b61294d87828801612884565b925092505092959194509250565b6129648161259e565b811461296f57600080fd5b50565b6000813590506129818161295b565b92915050565b6000806040838503121561299e5761299d61250f565b5b60006129ac8582860161274a565b92505060206129bd85828601612972565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a0482612612565b810181811067ffffffffffffffff82111715612a2357612a226129cc565b5b80604052505050565b6000612a36612505565b9050612a4282826129fb565b919050565b600067ffffffffffffffff821115612a6257612a616129cc565b5b612a6b82612612565b9050602081019050919050565b82818337600083830152505050565b6000612a9a612a9584612a47565b612a2c565b905082815260208101848484011115612ab657612ab56129c7565b5b612ac1848285612a78565b509392505050565b600082601f830112612ade57612add61281f565b5b8135612aee848260208601612a87565b91505092915050565b60008060008060808587031215612b1157612b1061250f565b5b6000612b1f8782880161274a565b9450506020612b308782880161274a565b9350506040612b4187828801612695565b925050606085013567ffffffffffffffff811115612b6257612b61612514565b5b612b6e87828801612ac9565b91505092959194509250565b60008060408385031215612b9157612b9061250f565b5b6000612b9f8582860161274a565b9250506020612bb08582860161274a565b9150509250929050565b600060208284031215612bd057612bcf61250f565b5b6000612bde84828501612972565b91505092915050565b600069ffffffffffffffffffff82169050919050565b612c0681612be7565b8114612c1157600080fd5b50565b600081519050612c2381612bfd565b92915050565b6000819050919050565b612c3c81612c29565b8114612c4757600080fd5b50565b600081519050612c5981612c33565b92915050565b600081519050612c6e8161267e565b92915050565b600080600080600060a08688031215612c9057612c8f61250f565b5b6000612c9e88828901612c14565b9550506020612caf88828901612c4a565b9450506040612cc088828901612c5f565b9350506060612cd188828901612c5f565b9250506080612ce288828901612c14565b9150509295509295909350565b600060ff82169050919050565b612d0581612cef565b8114612d1057600080fd5b50565b600081519050612d2281612cfc565b92915050565b600060208284031215612d3e57612d3d61250f565b5b6000612d4c84828501612d13565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115612ddb57808604811115612db757612db6612d55565b5b6001851615612dc65780820291505b8081029050612dd485612d84565b9450612d9b565b94509492505050565b600082612df45760019050612eb0565b81612e025760009050612eb0565b8160018114612e185760028114612e2257612e51565b6001915050612eb0565b60ff841115612e3457612e33612d55565b5b8360020a915084821115612e4b57612e4a612d55565b5b50612eb0565b5060208310610133831016604e8410600b8410161715612e865782820a905083811115612e8157612e80612d55565b5b612eb0565b612e938484846001612d91565b92509050818404811115612eaa57612ea9612d55565b5b81810290505b9392505050565b6000612ec2826124d1565b9150612ecd83612cef565b9250612efa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612de4565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612f3c826124d1565b9150612f47836124d1565b925082612f5757612f56612f02565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612fa957607f821691505b60208210811415612fbd57612fbc612f62565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612ff9601f83612454565b915061300482612fc3565b602082019050919050565b6000602082019050818103600083015261302881612fec565b9050919050565b7f6d696e74206e6f74206163746976650000000000000000000000000000000000600082015250565b6000613065600f83612454565b91506130708261302f565b602082019050919050565b6000602082019050818103600083015261309481613058565b9050919050565b7f66726565206d696e74207265717569726573206e6f2066656500000000000000600082015250565b60006130d1601983612454565b91506130dc8261309b565b602082019050919050565b60006020820190508181036000830152613100816130c4565b9050919050565b7f736f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b600061313d600883612454565b915061314882613107565b602082019050919050565b6000602082019050818103600083015261316c81613130565b9050919050565b7f636f6e747261637473206e6f7420616c6c6f7765640000000000000000000000600082015250565b60006131a9601583612454565b91506131b482613173565b602082019050919050565b600060208201905081810360008301526131d88161319c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613215602083612454565b9150613220826131df565b602082019050919050565b6000602082019050818103600083015261324481613208565b9050919050565b600081905092915050565b50565b600061326660008361324b565b915061327182613256565b600082019050919050565b600061328782613259565b9150819050919050565b7f6661696c6564207472616e736665720000000000000000000000000000000000600082015250565b60006132c7600f83612454565b91506132d282613291565b602082019050919050565b600060208201905081810360008301526132f6816132ba565b9050919050565b7f6d69736d617463686564206172726179206c656e677468730000000000000000600082015250565b6000613333601883612454565b915061333e826132fd565b602082019050919050565b6000602082019050818103600083015261336281613326565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126133c4576133c3613398565b5b80840192508235915067ffffffffffffffff8211156133e6576133e561339d565b5b602083019250600182023603831315613402576134016133a2565b5b509250929050565b600061341582612cef565b915060ff82141561342957613428612d55565b5b600182019050919050565b600081905092915050565b600061344a826125d4565b6134548185613434565b93506134648185602086016125df565b80840191505092915050565b600061347c828561343f565b9150613488828461343f565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006134f0602683612454565b91506134fb82613494565b604082019050919050565b6000602082019050818103600083015261351f816134e3565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061354d82613526565b6135578185613531565b93506135678185602086016125df565b61357081612612565b840191505092915050565b60006080820190506135906000830187612709565b61359d6020830186612709565b6135aa60408301856124db565b81810360608301526135bc8184613542565b905095945050505050565b6000815190506135d681612545565b92915050565b6000602082840312156135f2576135f161250f565b5b6000613600848285016135c7565b91505092915050565b6000613614826124d1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561364757613646612d55565b5b600182019050919050565b600061365d826124d1565b9150613668836124d1565b92508282101561367b5761367a612d55565b5b82820390509291505056fea26469706673582212209520da330aab9e81c2ee6ad5c8ffb946b9159ec6cc8b42cdb7d8e87dc01c5c4964736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
-----Decoded View---------------
Arg [0] : _priceFeedAddress (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.