Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
422 MEDALLION
Holders
191
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 MEDALLIONLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Medallions
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /** * * ββββ βββββββββββββββββββ ββββββ βββ βββ βββ βββββββ ββββ βββββββββββ * βββββ ββββββββββββββββββββββββββββββββ βββ βββββββββββββββββ βββββββββββ * βββββββββββββββββ βββ ββββββββββββββ βββ ββββββ βββββββββ βββββββββββ * βββββββββββββββββ βββ ββββββββββββββ βββ ββββββ βββββββββββββββββββββ * βββ βββ ββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββ ββββββββββββββ * βββ ββββββββββββββββββ βββ ββββββββββββββββββββββ βββββββ βββ βββββββββββββ * * for Chain Runners * * ---- * * Renegades, this is Tank. * * You prob heard the reports of debris up on wrecker hills. * βspace dustβ, they said. Well, you know me, I went to check it out. * * What a load of bullshit. * * Someone was up to something. I don't know who or what but I called up * Thomazi, we pulled up, middle of the night and packed our hover with * the stuff till we just about couldnβt fly no more. * * We took it back to the foundry, cracked it open. In my 30 years working * the forge, never seen anythin quite like it. It shines like diamonds and * squirms like worms. Yah, living, or something. * * Here's where it gets weirdβand I swear on cosmoβs graveβmy weezy cough * from operating the forge all these years? Gone. Thomaziβs skin thing? Gone too. * * Look, I don't know what this stuff is. But it's damn magic as far as * I'm concerned. Every Renegade ought to be walking around with some of * this stuff on 'em. Which is just what me and Thomazi went and made. * We call them Medallions. And there's one for each of you. * * Break the chain! * * ---- * * Thank you * - For Mega City: Chain Runners Team * - Simpler Withdrawals: Anti Runners (0x5BBA66A04bD2785788B1b92A23C500BCcb3B4071) * - Gas optimizations: Nuclear Nerds (0x0f78c6eee3c89ff37fd9ef96bd685830993636f2) */ import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721Enumerable.sol"; import "./interfaces/IMedallionsRenderer.sol"; contract Medallions is ERC721Enumerable, Ownable, ReentrancyGuard { event MintWithRunner(uint indexed _runnerId, uint indexed _tokenId); address public proxyRegistryAddress; uint public total; mapping(uint => uint) public runnerToToken; address public renderingContractAddress; uint8 public mintPhase = 0; uint private constant MAX_MINT = 8; uint private constant RUNNER_MINT_PRICE = 0.01 ether; uint private constant PUBLIC_MINT_PRICE = 0.015 ether; address private foundryTreasury; ParentContract private chainRunners; string private baseURI; mapping(address => uint256) private withdrawalAllotment1000th; mapping(address => uint256) private withdrawedAmount; uint256 private totalWithdrawed; constructor( address foundryTreasuryAddress, address chainRunnersAddress, address _proxyRegistryAddress, uint _total ) ERC721("Medallions", "MEDALLION") { foundryTreasury = foundryTreasuryAddress; chainRunners = ParentContract(chainRunnersAddress); proxyRegistryAddress = _proxyRegistryAddress; total = _total; withdrawalAllotment1000th[foundryTreasuryAddress] = 900; // 90% - Medallions Team withdrawalAllotment1000th[address(0x44A2ee3bB45d002157d2508C1003A4e055D52Bc8)] = 100; // 10% - Chain Runners Team } function mintWithRunners(uint256 [] memory ids) external payable { uint supply = totalSupply(); uint qty = ids.length; require(supply + qty <= total, "Minting exceeds total"); require(mintPhase == 1, "Mint not active"); require(RUNNER_MINT_PRICE * qty == msg.value, "Invalid funds"); for (uint i = 0; i < ids.length; i++) { uint runnerId = ids[i]; uint nextTokenId = supply + 1 + i; require(runnerToToken[runnerId] == 0, "Medallion already owned"); require(chainRunners.ownerOf(runnerId) == _msgSender(), "Must own all runners"); _mint(_msgSender(), nextTokenId); runnerToToken[runnerId] = nextTokenId; emit MintWithRunner(runnerId, nextTokenId); } } function mint(uint256 qty) external payable { uint supply = totalSupply(); require(qty <= MAX_MINT, "Minting too many"); require(mintPhase == 2, "Mint not active"); require(supply + qty <= total, "Minting exceeds total"); require(PUBLIC_MINT_PRICE * qty == msg.value, "Invalid funds"); for(uint i = 1; i <= qty; i++) { _mint(_msgSender(), supply + i); } } function setRenderingContractAddress(address _renderingContractAddress) public onlyOwner { renderingContractAddress = _renderingContractAddress; } function setBaseURI(string memory _baseURI) public onlyOwner { baseURI = _baseURI; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "Token does not exist."); if (renderingContractAddress != address(0)) { IMedallionsRenderer renderer = IMedallionsRenderer(renderingContractAddress); return renderer.tokenURI(_tokenId); } else { return string(abi.encodePacked(baseURI, Strings.toString(_tokenId))); } } function setMintPhase(uint8 value) public onlyOwner { require(value <= 2, "Invalid phase"); mintPhase = value; } receive() external payable {} function allowedWithdrawalAmount(address _addr) public view returns (uint256) { uint256 allotment1000th = withdrawalAllotment1000th[_addr]; uint256 _total = address(this).balance + totalWithdrawed; uint256 amount = _total * allotment1000th / 1000 - withdrawedAmount[_addr]; return amount; } function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner { proxyRegistryAddress = _proxyRegistryAddress; } function withdraw() public nonReentrant { require(withdrawalAllotment1000th[_msgSender()] > 0, "Not allowed to withdraw"); uint256 amount = allowedWithdrawalAmount(_msgSender()); require(amount > 0, "Amount must be positive"); withdrawedAmount[_msgSender()] += amount; totalWithdrawed += amount; (bool success,) = _msgSender().call{value : amount}(''); require(success, "Withdrawal failed"); } function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Enable gasless listings on opensea ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } function getBalance() external view returns(uint) { return (address(this)).balance; } } abstract contract ParentContract { function ownerOf(uint256 tokenId) public virtual view returns (address); function balanceOf(address owner) external virtual view returns (uint256 balance); } contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// 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 // 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 pragma solidity ^0.8.7; import "./ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account but rips out the core of the gas-wasting processing that comes from OpenZeppelin. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return numOwners(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < numOwners(), "ERC721Enumerable: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); uint count; uint len = numOwners(); for(uint i = 1; i <= len; i++){ if(owner == getOwner(i)){ if(count == index) return i; else count++; } } revert("ERC721Enumerable: owner index out of bounds"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface IMedallionsRenderer { function tokenURI(uint256 _tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./Address.sol"; abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; address[] private _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. * @dev seed _owners with null entry to make 1-based token * id lookups simpler. Either manipulate length or indices. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _owners.push(address(0)); } function numOwners() internal view returns (uint256) { return _owners.length - 1; } function getOwner(uint256 tokenId) internal view returns (address) { return _owners[tokenId]; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count; for( uint i = 1; i < _owners.length; ++i ){ if( owner == _owners[i] ) ++count; } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require( owner != address(0), "ERC721: owner query for nonexistent token" ); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId <= numOwners() && _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; library Address { function isContract(address account) internal view returns (bool) { uint size; assembly { size := extcodesize(account) } return size > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"foundryTreasuryAddress","type":"address"},{"internalType":"address","name":"chainRunnersAddress","type":"address"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"uint256","name":"_total","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_runnerId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MintWithRunner","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"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"allowedWithdrawalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","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":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"mintWithRunners","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":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderingContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"runnerToToken","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"value","type":"uint8"}],"name":"setMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_renderingContractAddress","type":"address"}],"name":"setRenderingContractAddress","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"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":"total","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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
6080604052600a805460ff60a01b191690553480156200001e57600080fd5b5060405162002a1238038062002a128339810160408190526200004191620002ac565b604080518082018252600a8152694d6564616c6c696f6e7360b01b60208083019182528351808501909452600984526826a2a220a62624a7a760b91b9084015281519192916200009491600091620001e9565b508051620000aa906001906020840190620001e9565b5050600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b031916905550620000f83362000197565b6001600655600b80546001600160a01b03199081166001600160a01b03968716908117909255600c80548216958716959095179094556007805490941692909416919091179091556008556000908152600e6020526040812061038490557344a2ee3bb45d002157d2508c1003a4e055d52bc8905260647f46938a16510fc4deae818381e8c40b09350e2e92427f664e169a3d68632d0142556200033b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001f790620002fe565b90600052602060002090601f0160209004810192826200021b576000855562000266565b82601f106200023657805160ff191683800117855562000266565b8280016001018555821562000266579182015b828111156200026657825182559160200191906001019062000249565b506200027492915062000278565b5090565b5b8082111562000274576000815560010162000279565b80516001600160a01b0381168114620002a757600080fd5b919050565b60008060008060808587031215620002c357600080fd5b620002ce856200028f565b9350620002de602086016200028f565b9250620002ee604086016200028f565b6060959095015193969295505050565b600181811c908216806200031357607f821691505b602082108114156200033557634e487b7160e01b600052602260045260246000fd5b50919050565b6126c7806200034b6000396000f3fe6080604052600436106101f25760003560e01c80635541590e1161010d578063a0712d68116100a0578063c87b56dd1161006f578063c87b56dd1461057b578063cd7c03261461059b578063d26ea6c0146105bb578063e985e9c5146105db578063f2fde38b146105fb57600080fd5b8063a0712d6814610508578063a22cb4651461051b578063b88d4fde1461053b578063c074f4121461055b57600080fd5b8063715018a6116100dc578063715018a6146104a05780637b1a2c91146104b55780638da5cb5b146104d557806395d89b41146104f357600080fd5b80635541590e1461042d57806355f804b3146104405780636352211e1461046057806370a082311461048057600080fd5b806323b872dd116101855780633ccfd60b116101545780633ccfd60b146103ab5780634138d8b9146103c057806342842e0e146103ed5780634f6ccce71461040d57600080fd5b806323b872dd146103355780632ddbd13a146103555780632f745c591461036b57806331c07bbf1461038b57600080fd5b806312065fe0116101c157806312065fe0146102af57806312b40a9f146102cd57806317881cbf146102ed57806318160ddd1461032057600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d57600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b5061021e610219366004612137565b61061b565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610646565b60405161022a9190612387565b34801561026157600080fd5b50610275610270366004612228565b6106d8565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a836600461205e565b610765565b005b3480156102bb57600080fd5b5030315b60405190815260200161022a565b3480156102d957600080fd5b506102ad6102e8366004611ef7565b61087b565b3480156102f957600080fd5b50600a5461030e90600160a01b900460ff1681565b60405160ff909116815260200161022a565b34801561032c57600080fd5b506102bf6108c7565b34801561034157600080fd5b506102ad610350366004611f6a565b6108d6565b34801561036157600080fd5b506102bf60085481565b34801561037757600080fd5b506102bf61038636600461205e565b610907565b34801561039757600080fd5b506102ad6103a6366004612241565b6109b4565b3480156103b757600080fd5b506102ad610a42565b3480156103cc57600080fd5b506102bf6103db366004612228565b60096020526000908152604090205481565b3480156103f957600080fd5b506102ad610408366004611f6a565b610c25565b34801561041957600080fd5b506102bf610428366004612228565b610c40565b6102ad61043b36600461208a565b610cb1565b34801561044c57600080fd5b506102ad61045b366004612171565b610f82565b34801561046c57600080fd5b5061027561047b366004612228565b610fc3565b34801561048c57600080fd5b506102bf61049b366004611ef7565b61104f565b3480156104ac57600080fd5b506102ad61111e565b3480156104c157600080fd5b506102bf6104d0366004611ef7565b611154565b3480156104e157600080fd5b506005546001600160a01b0316610275565b3480156104ff57600080fd5b506102486111c3565b6102ad610516366004612228565b6111d2565b34801561052757600080fd5b506102ad61053636600461202b565b611341565b34801561054757600080fd5b506102ad610556366004611fab565b611406565b34801561056757600080fd5b50600a54610275906001600160a01b031681565b34801561058757600080fd5b50610248610596366004612228565b611438565b3480156105a757600080fd5b50600754610275906001600160a01b031681565b3480156105c757600080fd5b506102ad6105d6366004611ef7565b611553565b3480156105e757600080fd5b5061021e6105f6366004611f31565b61159f565b34801561060757600080fd5b506102ad610616366004611ef7565b61166f565b60006001600160e01b0319821663780e9d6360e01b148061064057506106408261170a565b92915050565b606060008054610655906125a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610681906125a4565b80156106ce5780601f106106a3576101008083540402835291602001916106ce565b820191906000526020600020905b8154815290600101906020018083116106b157829003601f168201915b5050505050905090565b60006106e38261175a565b6107495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061077082610fc3565b9050806001600160a01b0316836001600160a01b031614156107de5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610740565b336001600160a01b03821614806107fa57506107fa813361159f565b61086c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610740565b61087683836117a9565b505050565b6005546001600160a01b031633146108a55760405162461bcd60e51b815260040161074090612437565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006108d1611817565b905090565b6108e03382611829565b6108fc5760405162461bcd60e51b81526004016107409061246c565b6108768383836118eb565b60006109128361104f565b82106109305760405162461bcd60e51b81526004016107409061239a565b60008061093b611817565b905060015b81811161099b5761095081611a41565b6001600160a01b0316866001600160a01b03161415610989578483141561097b579250610640915050565b82610985816125df565b9350505b80610993816125df565b915050610940565b5060405162461bcd60e51b81526004016107409061239a565b6005546001600160a01b031633146109de5760405162461bcd60e51b815260040161074090612437565b60028160ff161115610a225760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420706861736560981b6044820152606401610740565b600a805460ff909216600160a01b0260ff60a01b19909216919091179055565b60026006541415610a955760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610740565b6002600655336000908152600e6020526040902054610af65760405162461bcd60e51b815260206004820152601760248201527f4e6f7420616c6c6f77656420746f2077697468647261770000000000000000006044820152606401610740565b6000610b0133611154565b905060008111610b535760405162461bcd60e51b815260206004820152601760248201527f416d6f756e74206d75737420626520706f7369746976650000000000000000006044820152606401610740565b336000908152600f602052604081208054839290610b72908490612516565b925050819055508060106000828254610b8b9190612516565b9091555050604051600090339083908381818185875af1925050503d8060008114610bd2576040519150601f19603f3d011682016040523d82523d6000602084013e610bd7565b606091505b5050905080610c1c5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610740565b50506001600655565b61087683838360405180602001604052806000815250611406565b6000610c4a611817565b8210610cad5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610740565b5090565b6000610cbb6108c7565b825160085491925090610cce8284612516565b1115610d145760405162461bcd60e51b8152602060048201526015602482015274135a5b9d1a5b99c8195e18d959591cc81d1bdd185b605a1b6044820152606401610740565b600a54600160a01b900460ff16600114610d625760405162461bcd60e51b815260206004820152600f60248201526e4d696e74206e6f742061637469766560881b6044820152606401610740565b34610d7482662386f26fc10000612542565b14610db15760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642066756e647360981b6044820152606401610740565b60005b8351811015610f7c576000848281518110610dd157610dd161263a565b60200260200101519050600082856001610deb9190612516565b610df59190612516565b60008381526009602052604090205490915015610e545760405162461bcd60e51b815260206004820152601760248201527f4d6564616c6c696f6e20616c7265616479206f776e65640000000000000000006044820152606401610740565b33600c546040516331a9108f60e11b8152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015610e9d57600080fd5b505afa158015610eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed59190611f14565b6001600160a01b031614610f225760405162461bcd60e51b81526020600482015260146024820152734d757374206f776e20616c6c2072756e6e65727360601b6044820152606401610740565b610f2c3382611a71565b60008281526009602052604080822083905551829184917f723a9749051c4e5b4bc628cde059b349f26a52dfc977fe1cb54bcebc410179c19190a350508080610f74906125df565b915050610db4565b50505050565b6005546001600160a01b03163314610fac5760405162461bcd60e51b815260040161074090612437565b8051610fbf90600d906020840190611e29565b5050565b60008060028381548110610fd957610fd961263a565b6000918252602090912001546001600160a01b03169050806106405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610740565b60006001600160a01b0382166110ba5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610740565b600060015b60025481101561111757600281815481106110dc576110dc61263a565b6000918252602090912001546001600160a01b038581169116141561110757611104826125df565b91505b611110816125df565b90506110bf565b5092915050565b6005546001600160a01b031633146111485760405162461bcd60e51b815260040161074090612437565b6111526000611b99565b565b6001600160a01b0381166000908152600e6020526040812054601054829061117c9047612516565b6001600160a01b0385166000908152600f6020526040812054919250906103e86111a68585612542565b6111b0919061252e565b6111ba9190612561565b95945050505050565b606060018054610655906125a4565b60006111dc6108c7565b905060088211156112225760405162461bcd60e51b815260206004820152601060248201526f4d696e74696e6720746f6f206d616e7960801b6044820152606401610740565b600a54600160a01b900460ff166002146112705760405162461bcd60e51b815260206004820152600f60248201526e4d696e74206e6f742061637469766560881b6044820152606401610740565b60085461127d8383612516565b11156112c35760405162461bcd60e51b8152602060048201526015602482015274135a5b9d1a5b99c8195e18d959591cc81d1bdd185b605a1b6044820152606401610740565b346112d58366354a6ba7a18000612542565b146113125760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642066756e647360981b6044820152606401610740565b60015b8281116108765761132f3361132a8385612516565b611a71565b80611339816125df565b915050611315565b6001600160a01b03821633141561139a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610740565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114103383611829565b61142c5760405162461bcd60e51b81526004016107409061246c565b610f7c84848484611beb565b60606114438261175a565b6114875760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610740565b600a546001600160a01b03161561152157600a5460405163c87b56dd60e01b8152600481018490526001600160a01b0390911690819063c87b56dd9060240160006040518083038186803b1580156114de57600080fd5b505afa1580156114f2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261151a91908101906121ba565b9392505050565b600d61152c83611c1e565b60405160200161153d9291906122ac565b6040516020818303038152906040529050919050565b6005546001600160a01b0316331461157d5760405162461bcd60e51b815260040161074090612437565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60075460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156115ec57600080fd5b505afa158015611600573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116249190611f14565b6001600160a01b0316141561163d576001915050610640565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6005546001600160a01b031633146116995760405162461bcd60e51b815260040161074090612437565b6001600160a01b0381166116fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610740565b61170781611b99565b50565b60006001600160e01b031982166380ac58cd60e01b148061173b57506001600160e01b03198216635b5e139f60e01b145b8061064057506301ffc9a760e01b6001600160e01b0319831614610640565b6000611764611817565b8211158015610640575060006001600160a01b03166002838154811061178c5761178c61263a565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117de82610fc3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6002546000906108d190600190612561565b60006118348261175a565b6118955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610740565b60006118a083610fc3565b9050806001600160a01b0316846001600160a01b031614806118db5750836001600160a01b03166118d0846106d8565b6001600160a01b0316145b806116675750611667818561159f565b826001600160a01b03166118fe82610fc3565b6001600160a01b0316146119665760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610740565b6001600160a01b0382166119c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610740565b6119d36000826117a9565b81600282815481106119e7576119e761263a565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600060028281548110611a5657611a5661263a565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b038216611ac75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610740565b611ad08161175a565b15611b1d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610740565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611bf68484846118eb565b611c0284848484611d1c565b610f7c5760405162461bcd60e51b8152600401610740906123e5565b606081611c425750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c6c5780611c56816125df565b9150611c659050600a8361252e565b9150611c46565b60008167ffffffffffffffff811115611c8757611c87612650565b6040519080825280601f01601f191660200182016040528015611cb1576020820181803683370190505b5090505b841561166757611cc6600183612561565b9150611cd3600a866125fa565b611cde906030612516565b60f81b818381518110611cf357611cf361263a565b60200101906001600160f81b031916908160001a905350611d15600a8661252e565b9450611cb5565b60006001600160a01b0384163b15611e1e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d6090339089908890889060040161234a565b602060405180830381600087803b158015611d7a57600080fd5b505af1925050508015611daa575060408051601f3d908101601f19168201909252611da791810190612154565b60015b611e04573d808015611dd8576040519150601f19603f3d011682016040523d82523d6000602084013e611ddd565b606091505b508051611dfc5760405162461bcd60e51b8152600401610740906123e5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611667565b506001949350505050565b828054611e35906125a4565b90600052602060002090601f016020900481019282611e575760008555611e9d565b82601f10611e7057805160ff1916838001178555611e9d565b82800160010185558215611e9d579182015b82811115611e9d578251825591602001919060010190611e82565b50610cad9291505b80821115610cad5760008155600101611ea5565b6000611ecc611ec7846124ee565b6124bd565b9050828152838383011115611ee057600080fd5b828260208301376000602084830101529392505050565b600060208284031215611f0957600080fd5b813561151a81612666565b600060208284031215611f2657600080fd5b815161151a81612666565b60008060408385031215611f4457600080fd5b8235611f4f81612666565b91506020830135611f5f81612666565b809150509250929050565b600080600060608486031215611f7f57600080fd5b8335611f8a81612666565b92506020840135611f9a81612666565b929592945050506040919091013590565b60008060008060808587031215611fc157600080fd5b8435611fcc81612666565b93506020850135611fdc81612666565b925060408501359150606085013567ffffffffffffffff811115611fff57600080fd5b8501601f8101871361201057600080fd5b61201f87823560208401611eb9565b91505092959194509250565b6000806040838503121561203e57600080fd5b823561204981612666565b915060208301358015158114611f5f57600080fd5b6000806040838503121561207157600080fd5b823561207c81612666565b946020939093013593505050565b6000602080838503121561209d57600080fd5b823567ffffffffffffffff808211156120b557600080fd5b818501915085601f8301126120c957600080fd5b8135818111156120db576120db612650565b8060051b91506120ec8483016124bd565b8181528481019084860184860187018a101561210757600080fd5b600095505b8386101561212a57803583526001959095019491860191860161210c565b5098975050505050505050565b60006020828403121561214957600080fd5b813561151a8161267b565b60006020828403121561216657600080fd5b815161151a8161267b565b60006020828403121561218357600080fd5b813567ffffffffffffffff81111561219a57600080fd5b8201601f810184136121ab57600080fd5b61166784823560208401611eb9565b6000602082840312156121cc57600080fd5b815167ffffffffffffffff8111156121e357600080fd5b8201601f810184136121f457600080fd5b8051612202611ec7826124ee565b81815285602083850101111561221757600080fd5b6111ba826020830160208601612578565b60006020828403121561223a57600080fd5b5035919050565b60006020828403121561225357600080fd5b813560ff8116811461151a57600080fd5b6000815180845261227c816020860160208601612578565b601f01601f19169290920160200192915050565b600081516122a2818560208601612578565b9290920192915050565b600080845481600182811c9150808316806122c857607f831692505b60208084108214156122e857634e487b7160e01b86526022600452602486fd5b8180156122fc576001811461230d5761233a565b60ff1986168952848901965061233a565b60008b81526020902060005b868110156123325781548b820152908501908301612319565b505084890196505b5050505050506111ba8185612290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061237d90830184612264565b9695505050505050565b60208152600061151a6020830184612264565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156124e6576124e6612650565b604052919050565b600067ffffffffffffffff82111561250857612508612650565b50601f01601f191660200190565b600082198211156125295761252961260e565b500190565b60008261253d5761253d612624565b500490565b600081600019048311821515161561255c5761255c61260e565b500290565b6000828210156125735761257361260e565b500390565b60005b8381101561259357818101518382015260200161257b565b83811115610f7c5750506000910152565b600181811c908216806125b857607f821691505b602082108114156125d957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125f3576125f361260e565b5060010190565b60008261260957612609612624565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461170757600080fd5b6001600160e01b03198116811461170757600080fdfea2646970667358221220943d2d4189d797c581af272b8a8abd4a7bf313c320aa2a1128edb4dd0a229ead64736f6c63430008070033000000000000000000000000d1a3fb44ef442ccea8154678dfa3ee273b23a25400000000000000000000000097597002980134bea46250aa0510c9b90d87a587000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000002710
Deployed Bytecode
0x6080604052600436106101f25760003560e01c80635541590e1161010d578063a0712d68116100a0578063c87b56dd1161006f578063c87b56dd1461057b578063cd7c03261461059b578063d26ea6c0146105bb578063e985e9c5146105db578063f2fde38b146105fb57600080fd5b8063a0712d6814610508578063a22cb4651461051b578063b88d4fde1461053b578063c074f4121461055b57600080fd5b8063715018a6116100dc578063715018a6146104a05780637b1a2c91146104b55780638da5cb5b146104d557806395d89b41146104f357600080fd5b80635541590e1461042d57806355f804b3146104405780636352211e1461046057806370a082311461048057600080fd5b806323b872dd116101855780633ccfd60b116101545780633ccfd60b146103ab5780634138d8b9146103c057806342842e0e146103ed5780634f6ccce71461040d57600080fd5b806323b872dd146103355780632ddbd13a146103555780632f745c591461036b57806331c07bbf1461038b57600080fd5b806312065fe0116101c157806312065fe0146102af57806312b40a9f146102cd57806317881cbf146102ed57806318160ddd1461032057600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d57600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b5061021e610219366004612137565b61061b565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610646565b60405161022a9190612387565b34801561026157600080fd5b50610275610270366004612228565b6106d8565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a836600461205e565b610765565b005b3480156102bb57600080fd5b5030315b60405190815260200161022a565b3480156102d957600080fd5b506102ad6102e8366004611ef7565b61087b565b3480156102f957600080fd5b50600a5461030e90600160a01b900460ff1681565b60405160ff909116815260200161022a565b34801561032c57600080fd5b506102bf6108c7565b34801561034157600080fd5b506102ad610350366004611f6a565b6108d6565b34801561036157600080fd5b506102bf60085481565b34801561037757600080fd5b506102bf61038636600461205e565b610907565b34801561039757600080fd5b506102ad6103a6366004612241565b6109b4565b3480156103b757600080fd5b506102ad610a42565b3480156103cc57600080fd5b506102bf6103db366004612228565b60096020526000908152604090205481565b3480156103f957600080fd5b506102ad610408366004611f6a565b610c25565b34801561041957600080fd5b506102bf610428366004612228565b610c40565b6102ad61043b36600461208a565b610cb1565b34801561044c57600080fd5b506102ad61045b366004612171565b610f82565b34801561046c57600080fd5b5061027561047b366004612228565b610fc3565b34801561048c57600080fd5b506102bf61049b366004611ef7565b61104f565b3480156104ac57600080fd5b506102ad61111e565b3480156104c157600080fd5b506102bf6104d0366004611ef7565b611154565b3480156104e157600080fd5b506005546001600160a01b0316610275565b3480156104ff57600080fd5b506102486111c3565b6102ad610516366004612228565b6111d2565b34801561052757600080fd5b506102ad61053636600461202b565b611341565b34801561054757600080fd5b506102ad610556366004611fab565b611406565b34801561056757600080fd5b50600a54610275906001600160a01b031681565b34801561058757600080fd5b50610248610596366004612228565b611438565b3480156105a757600080fd5b50600754610275906001600160a01b031681565b3480156105c757600080fd5b506102ad6105d6366004611ef7565b611553565b3480156105e757600080fd5b5061021e6105f6366004611f31565b61159f565b34801561060757600080fd5b506102ad610616366004611ef7565b61166f565b60006001600160e01b0319821663780e9d6360e01b148061064057506106408261170a565b92915050565b606060008054610655906125a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610681906125a4565b80156106ce5780601f106106a3576101008083540402835291602001916106ce565b820191906000526020600020905b8154815290600101906020018083116106b157829003601f168201915b5050505050905090565b60006106e38261175a565b6107495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061077082610fc3565b9050806001600160a01b0316836001600160a01b031614156107de5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610740565b336001600160a01b03821614806107fa57506107fa813361159f565b61086c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610740565b61087683836117a9565b505050565b6005546001600160a01b031633146108a55760405162461bcd60e51b815260040161074090612437565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006108d1611817565b905090565b6108e03382611829565b6108fc5760405162461bcd60e51b81526004016107409061246c565b6108768383836118eb565b60006109128361104f565b82106109305760405162461bcd60e51b81526004016107409061239a565b60008061093b611817565b905060015b81811161099b5761095081611a41565b6001600160a01b0316866001600160a01b03161415610989578483141561097b579250610640915050565b82610985816125df565b9350505b80610993816125df565b915050610940565b5060405162461bcd60e51b81526004016107409061239a565b6005546001600160a01b031633146109de5760405162461bcd60e51b815260040161074090612437565b60028160ff161115610a225760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420706861736560981b6044820152606401610740565b600a805460ff909216600160a01b0260ff60a01b19909216919091179055565b60026006541415610a955760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610740565b6002600655336000908152600e6020526040902054610af65760405162461bcd60e51b815260206004820152601760248201527f4e6f7420616c6c6f77656420746f2077697468647261770000000000000000006044820152606401610740565b6000610b0133611154565b905060008111610b535760405162461bcd60e51b815260206004820152601760248201527f416d6f756e74206d75737420626520706f7369746976650000000000000000006044820152606401610740565b336000908152600f602052604081208054839290610b72908490612516565b925050819055508060106000828254610b8b9190612516565b9091555050604051600090339083908381818185875af1925050503d8060008114610bd2576040519150601f19603f3d011682016040523d82523d6000602084013e610bd7565b606091505b5050905080610c1c5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610740565b50506001600655565b61087683838360405180602001604052806000815250611406565b6000610c4a611817565b8210610cad5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610740565b5090565b6000610cbb6108c7565b825160085491925090610cce8284612516565b1115610d145760405162461bcd60e51b8152602060048201526015602482015274135a5b9d1a5b99c8195e18d959591cc81d1bdd185b605a1b6044820152606401610740565b600a54600160a01b900460ff16600114610d625760405162461bcd60e51b815260206004820152600f60248201526e4d696e74206e6f742061637469766560881b6044820152606401610740565b34610d7482662386f26fc10000612542565b14610db15760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642066756e647360981b6044820152606401610740565b60005b8351811015610f7c576000848281518110610dd157610dd161263a565b60200260200101519050600082856001610deb9190612516565b610df59190612516565b60008381526009602052604090205490915015610e545760405162461bcd60e51b815260206004820152601760248201527f4d6564616c6c696f6e20616c7265616479206f776e65640000000000000000006044820152606401610740565b33600c546040516331a9108f60e11b8152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015610e9d57600080fd5b505afa158015610eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed59190611f14565b6001600160a01b031614610f225760405162461bcd60e51b81526020600482015260146024820152734d757374206f776e20616c6c2072756e6e65727360601b6044820152606401610740565b610f2c3382611a71565b60008281526009602052604080822083905551829184917f723a9749051c4e5b4bc628cde059b349f26a52dfc977fe1cb54bcebc410179c19190a350508080610f74906125df565b915050610db4565b50505050565b6005546001600160a01b03163314610fac5760405162461bcd60e51b815260040161074090612437565b8051610fbf90600d906020840190611e29565b5050565b60008060028381548110610fd957610fd961263a565b6000918252602090912001546001600160a01b03169050806106405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610740565b60006001600160a01b0382166110ba5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610740565b600060015b60025481101561111757600281815481106110dc576110dc61263a565b6000918252602090912001546001600160a01b038581169116141561110757611104826125df565b91505b611110816125df565b90506110bf565b5092915050565b6005546001600160a01b031633146111485760405162461bcd60e51b815260040161074090612437565b6111526000611b99565b565b6001600160a01b0381166000908152600e6020526040812054601054829061117c9047612516565b6001600160a01b0385166000908152600f6020526040812054919250906103e86111a68585612542565b6111b0919061252e565b6111ba9190612561565b95945050505050565b606060018054610655906125a4565b60006111dc6108c7565b905060088211156112225760405162461bcd60e51b815260206004820152601060248201526f4d696e74696e6720746f6f206d616e7960801b6044820152606401610740565b600a54600160a01b900460ff166002146112705760405162461bcd60e51b815260206004820152600f60248201526e4d696e74206e6f742061637469766560881b6044820152606401610740565b60085461127d8383612516565b11156112c35760405162461bcd60e51b8152602060048201526015602482015274135a5b9d1a5b99c8195e18d959591cc81d1bdd185b605a1b6044820152606401610740565b346112d58366354a6ba7a18000612542565b146113125760405162461bcd60e51b815260206004820152600d60248201526c496e76616c69642066756e647360981b6044820152606401610740565b60015b8281116108765761132f3361132a8385612516565b611a71565b80611339816125df565b915050611315565b6001600160a01b03821633141561139a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610740565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114103383611829565b61142c5760405162461bcd60e51b81526004016107409061246c565b610f7c84848484611beb565b60606114438261175a565b6114875760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610740565b600a546001600160a01b03161561152157600a5460405163c87b56dd60e01b8152600481018490526001600160a01b0390911690819063c87b56dd9060240160006040518083038186803b1580156114de57600080fd5b505afa1580156114f2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261151a91908101906121ba565b9392505050565b600d61152c83611c1e565b60405160200161153d9291906122ac565b6040516020818303038152906040529050919050565b6005546001600160a01b0316331461157d5760405162461bcd60e51b815260040161074090612437565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60075460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156115ec57600080fd5b505afa158015611600573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116249190611f14565b6001600160a01b0316141561163d576001915050610640565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6005546001600160a01b031633146116995760405162461bcd60e51b815260040161074090612437565b6001600160a01b0381166116fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610740565b61170781611b99565b50565b60006001600160e01b031982166380ac58cd60e01b148061173b57506001600160e01b03198216635b5e139f60e01b145b8061064057506301ffc9a760e01b6001600160e01b0319831614610640565b6000611764611817565b8211158015610640575060006001600160a01b03166002838154811061178c5761178c61263a565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117de82610fc3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6002546000906108d190600190612561565b60006118348261175a565b6118955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610740565b60006118a083610fc3565b9050806001600160a01b0316846001600160a01b031614806118db5750836001600160a01b03166118d0846106d8565b6001600160a01b0316145b806116675750611667818561159f565b826001600160a01b03166118fe82610fc3565b6001600160a01b0316146119665760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610740565b6001600160a01b0382166119c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610740565b6119d36000826117a9565b81600282815481106119e7576119e761263a565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600060028281548110611a5657611a5661263a565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b038216611ac75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610740565b611ad08161175a565b15611b1d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610740565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611bf68484846118eb565b611c0284848484611d1c565b610f7c5760405162461bcd60e51b8152600401610740906123e5565b606081611c425750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c6c5780611c56816125df565b9150611c659050600a8361252e565b9150611c46565b60008167ffffffffffffffff811115611c8757611c87612650565b6040519080825280601f01601f191660200182016040528015611cb1576020820181803683370190505b5090505b841561166757611cc6600183612561565b9150611cd3600a866125fa565b611cde906030612516565b60f81b818381518110611cf357611cf361263a565b60200101906001600160f81b031916908160001a905350611d15600a8661252e565b9450611cb5565b60006001600160a01b0384163b15611e1e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d6090339089908890889060040161234a565b602060405180830381600087803b158015611d7a57600080fd5b505af1925050508015611daa575060408051601f3d908101601f19168201909252611da791810190612154565b60015b611e04573d808015611dd8576040519150601f19603f3d011682016040523d82523d6000602084013e611ddd565b606091505b508051611dfc5760405162461bcd60e51b8152600401610740906123e5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611667565b506001949350505050565b828054611e35906125a4565b90600052602060002090601f016020900481019282611e575760008555611e9d565b82601f10611e7057805160ff1916838001178555611e9d565b82800160010185558215611e9d579182015b82811115611e9d578251825591602001919060010190611e82565b50610cad9291505b80821115610cad5760008155600101611ea5565b6000611ecc611ec7846124ee565b6124bd565b9050828152838383011115611ee057600080fd5b828260208301376000602084830101529392505050565b600060208284031215611f0957600080fd5b813561151a81612666565b600060208284031215611f2657600080fd5b815161151a81612666565b60008060408385031215611f4457600080fd5b8235611f4f81612666565b91506020830135611f5f81612666565b809150509250929050565b600080600060608486031215611f7f57600080fd5b8335611f8a81612666565b92506020840135611f9a81612666565b929592945050506040919091013590565b60008060008060808587031215611fc157600080fd5b8435611fcc81612666565b93506020850135611fdc81612666565b925060408501359150606085013567ffffffffffffffff811115611fff57600080fd5b8501601f8101871361201057600080fd5b61201f87823560208401611eb9565b91505092959194509250565b6000806040838503121561203e57600080fd5b823561204981612666565b915060208301358015158114611f5f57600080fd5b6000806040838503121561207157600080fd5b823561207c81612666565b946020939093013593505050565b6000602080838503121561209d57600080fd5b823567ffffffffffffffff808211156120b557600080fd5b818501915085601f8301126120c957600080fd5b8135818111156120db576120db612650565b8060051b91506120ec8483016124bd565b8181528481019084860184860187018a101561210757600080fd5b600095505b8386101561212a57803583526001959095019491860191860161210c565b5098975050505050505050565b60006020828403121561214957600080fd5b813561151a8161267b565b60006020828403121561216657600080fd5b815161151a8161267b565b60006020828403121561218357600080fd5b813567ffffffffffffffff81111561219a57600080fd5b8201601f810184136121ab57600080fd5b61166784823560208401611eb9565b6000602082840312156121cc57600080fd5b815167ffffffffffffffff8111156121e357600080fd5b8201601f810184136121f457600080fd5b8051612202611ec7826124ee565b81815285602083850101111561221757600080fd5b6111ba826020830160208601612578565b60006020828403121561223a57600080fd5b5035919050565b60006020828403121561225357600080fd5b813560ff8116811461151a57600080fd5b6000815180845261227c816020860160208601612578565b601f01601f19169290920160200192915050565b600081516122a2818560208601612578565b9290920192915050565b600080845481600182811c9150808316806122c857607f831692505b60208084108214156122e857634e487b7160e01b86526022600452602486fd5b8180156122fc576001811461230d5761233a565b60ff1986168952848901965061233a565b60008b81526020902060005b868110156123325781548b820152908501908301612319565b505084890196505b5050505050506111ba8185612290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061237d90830184612264565b9695505050505050565b60208152600061151a6020830184612264565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156124e6576124e6612650565b604052919050565b600067ffffffffffffffff82111561250857612508612650565b50601f01601f191660200190565b600082198211156125295761252961260e565b500190565b60008261253d5761253d612624565b500490565b600081600019048311821515161561255c5761255c61260e565b500290565b6000828210156125735761257361260e565b500390565b60005b8381101561259357818101518382015260200161257b565b83811115610f7c5750506000910152565b600181811c908216806125b857607f821691505b602082108114156125d957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125f3576125f361260e565b5060010190565b60008261260957612609612624565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461170757600080fd5b6001600160e01b03198116811461170757600080fdfea2646970667358221220943d2d4189d797c581af272b8a8abd4a7bf313c320aa2a1128edb4dd0a229ead64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d1a3fb44ef442ccea8154678dfa3ee273b23a25400000000000000000000000097597002980134bea46250aa0510c9b90d87a587000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000002710
-----Decoded View---------------
Arg [0] : foundryTreasuryAddress (address): 0xd1a3fB44eF442cCEa8154678Dfa3ee273B23a254
Arg [1] : chainRunnersAddress (address): 0x97597002980134beA46250Aa0510C9B90d87A587
Arg [2] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [3] : _total (uint256): 10000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000d1a3fb44ef442ccea8154678dfa3ee273b23a254
Arg [1] : 00000000000000000000000097597002980134bea46250aa0510c9b90d87a587
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.