Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Source Code
Overview
Max Total Supply
6 ✲
Holders
4
Transfers
-
0
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
Field
Compiler Version
v0.8.13+commit.abaa5c0e
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.13;
import './Utils.sol';
import './FieldResponsive.sol';
import './FieldThumb.sol';
import './Base64.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/common/ERC2981.sol';
contract Field is ERC721, Ownable, ERC2981 {
string private constant JSON_PROTOCOL_URI = 'data:application/json;base64,';
string private constant SVG_PROTOCOL_URI = 'data:image/svg+xml;base64,';
string private constant HTML_PROTOCOL_URI = 'data:text/html;base64,';
constructor() ERC721('Field', unicode'✲') {
_setDefaultRoyalty(0x9011Eb570D1bE09eA4d10f38c119DCDF29725c41, 1000); // 10%
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC2981, ERC721)
returns (bool)
{
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC2981).interfaceId ||
super.supportsInterface(interfaceId);
}
function getImageSVG(uint256 tokenId) private pure returns (string memory) {
return
Base64.encode(
abi.encodePacked(renderThumb(tokenId, appearance(tokenId)))
);
}
function getAnimationSVG(uint256 tokenId)
private
pure
returns (string memory)
{
return
Base64.encode(
abi.encodePacked(
renderResponsiveAnimation(tokenId, appearance(tokenId))
)
);
}
// function example() external view returns (string memory) {
// return tokenURI(5);
// // uint256 tokenId = 5;
// // return renderThumb(tokenId, appearance(tokenId));
// }
function appearance(uint256 tokenId) internal pure returns (uint8) {
return uint8(tokenId - 1) / 2;
}
function traitsString(uint256 tokenId) private pure returns (bytes memory) {
uint8 a = appearance(tokenId);
string memory appearanceString = a == 0 ? 'auto' : a == 1
? 'classic'
: 'dark';
return
abi.encodePacked(
'"attributes":[{"trait_type":"appearance","value":"',
appearanceString,
'"},{"trait_type":"kind","value":"',
tokenId % 2 == 1 ? 'similar' : 'diverse',
'"}]'
);
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
bytes memory image = abi.encodePacked(
SVG_PROTOCOL_URI,
getImageSVG(tokenId)
);
bytes memory animation = abi.encodePacked(
HTML_PROTOCOL_URI,
getAnimationSVG(tokenId)
);
bytes memory json = abi.encodePacked(
'{"name":"Field ',
utils.uint2str(tokenId),
'",',
'"description":"Harm van den Dorpel, 2008-2023",',
'"image":"',
image,
'",',
'"animation_url":"',
animation,
'",',
traitsString(tokenId),
'}'
);
return string(abi.encodePacked(JSON_PROTOCOL_URI, Base64.encode(json)));
}
function adminMint(address recipient, uint256 tokenId) external onlyOwner {
require(tokenId <= 6, 'all minted');
_safeMint(recipient, tokenId);
}
function totalSupply() public pure returns (uint256) {
return 6;
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
// Core utils used extensively to format CSS and numbers.
library utils {
// used to simulate empty strings
string internal constant NULL = '';
// formats a CSS variable line. includes a semicolon for formatting.
function setCssVar(string memory _key, string memory _val)
internal
pure
returns (string memory)
{
return string.concat('--', _key, ':', _val, ';');
}
// formats getting a css variable
function getCssVar(string memory _key)
internal
pure
returns (string memory)
{
return string.concat('var(--', _key, ')');
}
// formats getting a def URL
function getDefURL(string memory _id)
internal
pure
returns (string memory)
{
return string.concat('url(#', _id, ')');
}
// formats rgba white with a specified opacity / alpha
function white_a(uint256 _a) internal pure returns (string memory) {
return rgba(255, 255, 255, _a);
}
// formats rgba black with a specified opacity / alpha
function black_a(uint256 _a) internal pure returns (string memory) {
return rgba(0, 0, 0, _a);
}
// formats generic rgba color in css
function rgba(
uint256 _r,
uint256 _g,
uint256 _b,
uint256 _a
) internal pure returns (string memory) {
string memory formattedA = _a < 100
? string.concat('0.', utils.uint2str(_a))
: '1';
return
string.concat(
'rgba(',
utils.uint2str(_r),
',',
utils.uint2str(_g),
',',
utils.uint2str(_b),
',',
formattedA,
')'
);
}
// checks if two strings are equal
function stringsEqual(string memory _a, string memory _b)
internal
pure
returns (bool)
{
return
keccak256(abi.encodePacked(_a)) == keccak256(abi.encodePacked(_b));
}
// returns the length of a string in characters
function utfStringLength(string memory _str)
internal
pure
returns (uint256 length)
{
uint256 i = 0;
bytes memory string_rep = bytes(_str);
while (i < string_rep.length) {
if (string_rep[i] >> 7 == 0) i += 1;
else if (string_rep[i] >> 5 == bytes1(uint8(0x6))) i += 2;
else if (string_rep[i] >> 4 == bytes1(uint8(0xE))) i += 3;
else if (string_rep[i] >> 3 == bytes1(uint8(0x1E)))
i += 4;
//For safety
else i += 1;
length++;
}
}
// converts an unsigned integer to a string
function uint2str(uint256 _i)
internal
pure
returns (string memory _uintAsString)
{
if (_i == 0) {
return '0';
}
uint256 j = _i;
uint256 len;
while (j != 0) {
len++;
j /= 10;
}
bytes memory bstr = new bytes(len);
uint256 k = len;
while (_i != 0) {
k = k - 1;
uint8 temp = (48 + uint8(_i - (_i / 10) * 10));
bytes1 b1 = bytes1(temp);
bstr[k] = b1;
_i /= 10;
}
return string(bstr);
}
function randomUint8(uint256 seed) internal pure returns (uint8) {
return uint8(uint256(keccak256(abi.encodePacked(seed))));
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import './Utils.sol';
function renderResponsiveAnimation(uint256 tokenId, uint8 appearance)
pure
returns (string memory)
{
return
string.concat(
"<!DOCTYPE html><html><style>html,body{height:100%;width:100%;padding:0;margin:0;overflow:hidden;}svg{display: block;}</style><body><svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='100%' height='100%' viewPort='0 0 100% 100%' id='a",
utils.uint2str(appearance),
"'><svg id='c'/><style>#a0,#a1{--fill:black;background:linear-gradient(#b9b6d0,#ffffff);display:flex;align-items:center;justify-content:center;}@keyframes s{0%{opacity:1;}100%{opacity:0;}}#a2{--fill:white;background:#202124;}#a1{background:#eee !important;}@media (prefers-color-scheme:dark){#a0{--fill:white;background:linear-gradient(#2d2a2a,#2b2f71);}}</style><script>//<![CDATA[ \n",
'let token=',
utils.uint2str(tokenId),
",ns='http://www.w3.org/2000/svg',r=Math.random,rou=Math.round,ce=(...e)=>document.createElementNS(...e),a=(e,...t)=>e.setAttribute(...t),de=document.documentElement,vp=[de.clientWidth,de.clientHeight];const same=token%2==1;function cS(e,t){let n=5*r()+.2,$=ce(ns,'svg'),l=ce(ns,'circle');a(l,'cx',20),a(l,'cy',20),a(l,'r',20),a(l,'fill','transparent'),$.appendChild(l),a($,'x',e+10),a($,'y',t+10),document.getElementById('c').appendChild($);let i=[],o=same?8:20*r()+1,d=same?2:1.5*r()+.5,p=same?'round':r()>.5?'butt':r()>.5?'round':'square',m=20+d/2,c=same?12:(12*r()<<0)+4,u=360/c;for(let f=0;f<c;f++){let _=ce(ns,'line');$.appendChild(_),a(_,'x1',0),a(_,'y1',m),a(_,'x2',o),a(_,'y2',m),a(_,'stroke-width',d),a(_,'stroke-linecap',p),a(_,'stroke','var(--fill)'),a(_,'transform',`rotate(${f*u} 20 ${m})`),i.push(_)}spd(i,n,c);let v,g=(...e)=>$.addEventListener(...e);function E(){spd(i,.2-r()/100,c),v&&clearTimeout(v),v=setTimeout(()=>spd(i,n,c),5e3)}g('mouseover',E),g('mouseout',E),g('mousemove',E),g('mouseup',E),g('mousedown',()=>spd(i,1e6))}function spd(e,t,n){let $=t/n;for(let l=0;l<e.length;l++){let i=e[l].style;i.animation=`s ${t}s linear infinite`,i.animationDelay=`${-(t-$)+l*$}s`}}let s=Math.min(...vp),margin=Math.min(Math.max(s/10,20),120),sp=70,[w,h]=vp,cl=rou((w-2*margin)/sp),rw=rou((h-2*margin)/sp);if(h<=500&&w<h)rw=cl;for(let x=0;x<cl;x++)for(let y=0;y<rw;y++)cS(x*sp+(w-cl*sp)/2,y*sp+(h-rw*sp)/2);window.addEventListener('resize',()=>location.href=location.href);//]]></script></svg></body></html>"
);
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import './SVG.sol';
import './Utils.sol';
function renderThumb(uint256 tokenId, uint8 appearance)
pure
returns (string memory)
{
string memory spinners;
for (uint8 y = 0; y < 3; y++) {
for (uint8 x = 0; x < 3; x++) {
spinners = string.concat(spinners, render(x, y, tokenId));
}
}
string
memory darkSnippet = '{--fill:white;background:linear-gradient(#2d2a2a,#2b2f71);}';
return
string.concat(
'<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300" id="a',
utils.uint2str(appearance),
'">',
spinners,
'<style>line{stroke-linecap:round;stroke:var(--fill);stroke-width:2} #a1,#a0{--fill:black;background:linear-gradient(#b9b6d0,#ffffff);}@media(prefers-color-scheme:dark){#a0',
darkSnippet,
'}#a2',
darkSnippet,
'@keyframes s {0% {opacity:1;}100%{opacity:0;}}#a1{background:#eee !important;}#a2{background:#202124 !important;}</style>',
'</svg>'
);
}
function render(
uint8 x,
uint8 y,
uint256 tokenId
) pure returns (string memory) {
uint256 duration = 1000 - utils.randomUint8(x * 50 + y + tokenId * 100);
return
svg.el(
'svg',
string.concat(
svg.prop('x', utils.uint2str(x * 70 + 60)),
svg.prop('y', utils.uint2str(y * 70 + 60))
),
parts(duration, tokenId, x, y)
);
}
function parts(
uint256 duration,
uint256 tokenId,
uint8 x,
uint8 y
) pure returns (string memory) {
uint256 seed = tokenId * 792 + x * 7 + y * 37;
bool same = tokenId % 2 == 1;
uint32 partsCount = same ? 12 : utils.randomUint8(seed) / 18 + 4;
string memory result;
uint8 x1 = same ? 2 : utils.randomUint8(seed) / 18 + 1;
uint8 x2 = same ? 9 : utils.randomUint8(seed + 1000) / 16 + 2;
for (uint8 index = 0; index < partsCount; index++) {
result = string.concat(
result,
linePart(duration, index, partsCount, seed, same, x1, x2)
);
}
return result;
}
function linePart(
uint256 duration,
uint32 index,
uint32 partsCount,
uint256 seed,
bool same,
uint8 x1,
uint8 x2
) pure returns (string memory) {
return
svg.el(
'line',
string.concat(
getLineParts(index, partsCount, x1, x2),
svg.prop(
'style',
linePartStyle(
duration,
index,
partsCount,
getStrokeWidth(same, seed)
)
)
)
);
}
function getLineParts(
uint32 index,
uint32 partsCount,
uint8 x1,
uint8 x2
) pure returns (string memory) {
return
string.concat(
svg.prop('transform', linePartTransform(index, partsCount)),
svg.prop('x1', utils.uint2str(x1)),
svg.prop('y1', '20'),
svg.prop('x2', utils.uint2str(x2)),
svg.prop('y2', '20')
);
}
function getStrokeWidth(bool same, uint256 seed) pure returns (string memory) {
return
same
? ''
: string.concat(
'stroke-width:',
utils.uint2str(utils.randomUint8(seed + 99) / 128 + 1)
);
}
function linePartTransform(uint32 index, uint32 partsCount)
pure
returns (string memory)
{
uint256 stepDeg = 360 / partsCount;
return string.concat('rotate(', utils.uint2str(index * stepDeg), ' 20 20)');
}
function linePartStyle(
uint256 duration,
uint32 index,
uint32 partsCount,
string memory strokeWidth
) pure returns (string memory) {
uint256 stepDuration = duration / partsCount;
uint256 delay = duration - index * stepDuration;
return
string.concat(
'animation:',
utils.uint2str(duration),
'ms linear -',
utils.uint2str(delay),
'ms infinite normal none running s;',
strokeWidth
);
}// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides a function for encoding some bytes in base64 library Base64 { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ""; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))) ) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } }
// 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 (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 (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: 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 {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public 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 {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 _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);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev 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 {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
external
view
virtual
override
returns (address, uint256)
{
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];
if (royalty.receiver == address(0)) {
royalty = _defaultRoyaltyInfo;
}
uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();
return (royalty.receiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: invalid receiver");
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `tokenId` must be already minted.
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setTokenRoyalty(
uint256 tokenId,
address receiver,
uint96 feeNumerator
) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: Invalid parameters");
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Resets royalty information for the token id back to the global default.
*/
function _resetTokenRoyalty(uint256 tokenId) internal virtual {
delete _tokenRoyaltyInfo[tokenId];
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import './Utils.sol';
// Core SVG utilitiy library which helps us construct
// onchain SVG's with a simple, web-like API.
library svg {
/* MAIN ELEMENTS */
function g(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('g', _props, _children);
}
function path(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('path', _props, _children);
}
function text(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('text', _props, _children);
}
function line(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('line', _props, _children);
}
function circle(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('circle', _props, _children);
}
function circle(string memory _props)
internal
pure
returns (string memory)
{
return el('circle', _props);
}
function rect(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('rect', _props, _children);
}
function rect(string memory _props)
internal
pure
returns (string memory)
{
return el('rect', _props);
}
function filter(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('filter', _props, _children);
}
function cdata(string memory _content)
internal
pure
returns (string memory)
{
return string.concat('<![CDATA[', _content, ']]>');
}
/* GRADIENTS */
function radialGradient(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('radialGradient', _props, _children);
}
function linearGradient(string memory _props, string memory _children)
internal
pure
returns (string memory)
{
return el('linearGradient', _props, _children);
}
function gradientStop(
uint256 offset,
string memory stopColor,
string memory _props
) internal pure returns (string memory) {
return
el(
'stop',
string.concat(
prop('stop-color', stopColor),
' ',
prop('offset', string.concat(utils.uint2str(offset), '%')),
' ',
_props
)
);
}
function animateTransform(string memory _props)
internal
pure
returns (string memory)
{
return el('animateTransform', _props);
}
function image(string memory _href, string memory _props)
internal
pure
returns (string memory)
{
return
el(
'image',
string.concat(prop('href', _href), ' ', _props)
);
}
/* COMMON */
// A generic element, can be used to construct any SVG (or HTML) element
function el(
string memory _tag,
string memory _props,
string memory _children
) internal pure returns (string memory) {
return
string.concat(
'<',
_tag,
' ',
_props,
'>',
_children,
'</',
_tag,
'>'
);
}
// A generic element, can be used to construct any SVG (or HTML) element without children
function el(
string memory _tag,
string memory _props
) internal pure returns (string memory) {
return
string.concat(
'<',
_tag,
' ',
_props,
'/>'
);
}
// an SVG attribute
function prop(string memory _key, string memory _val)
internal
pure
returns (string memory)
{
return string.concat(_key, '=', '"', _val, '" ');
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"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":"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":"recipient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","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":[{"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":"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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"pure","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"}]Contract Creation Code
60806040523480156200001157600080fd5b506040805180820182526005815264119a595b1960da1b602080830191825283518085019094526003845262714e5960e91b9084015281519192916200005a9160009162000210565b5080516200007090600190602084019062000210565b5050506200008d62000087620000b560201b60201c565b620000b9565b620000af739011eb570d1be09ea4d10f38c119dcdf29725c416103e86200010b565b620002f2565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200017f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620001d75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000176565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b8280546200021e90620002b6565b90600052602060002090601f0160209004810192826200024257600085556200028d565b82601f106200025d57805160ff19168380011785556200028d565b828001600101855582156200028d579182015b828111156200028d57825182559160200191906001019062000270565b506200029b9291506200029f565b5090565b5b808211156200029b5760008155600101620002a0565b600181811c90821680620002cb57607f821691505b602082108103620002ec57634e487b7160e01b600052602260045260246000fd5b50919050565b61354980620003026000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063b88d4fde11610071578063b88d4fde14610266578063c87b56dd14610279578063e58306f91461028c578063e985e9c51461029f578063f2fde38b146102db57600080fd5b806370a082311461021f578063715018a6146102325780638da5cb5b1461023a57806395d89b411461024b578063a22cb4651461025357600080fd5b806318160ddd116100f457806318160ddd146101a357806323b872dd146101b45780632a55205a146101c757806342842e0e146101f95780636352211e1461020c57600080fd5b806301ffc9a71461012657806306fdde031461014e578063081812fc14610163578063095ea7b31461018e575b600080fd5b610139610134366004611ce0565b6102ee565b60405190151581526020015b60405180910390f35b610156610334565b6040516101459190611d55565b610176610171366004611d68565b6103c6565b6040516001600160a01b039091168152602001610145565b6101a161019c366004611d9d565b610460565b005b60065b604051908152602001610145565b6101a16101c2366004611dc7565b610575565b6101da6101d5366004611e03565b6105a6565b604080516001600160a01b039093168352602083019190915201610145565b6101a1610207366004611dc7565b610652565b61017661021a366004611d68565b61066d565b6101a661022d366004611e25565b6106e4565b6101a161076b565b6006546001600160a01b0316610176565b6101566107a1565b6101a1610261366004611e40565b6107b0565b6101a1610274366004611e92565b6107bf565b610156610287366004611d68565b6107f7565b6101a161029a366004611d9d565b61094c565b6101396102ad366004611f6e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101a16102e9366004611e25565b6109be565b60006001600160e01b031982166380ac58cd60e01b148061031f57506001600160e01b0319821663152a902d60e11b145b8061032e575061032e82610a59565b92915050565b60606000805461034390611fa1565b80601f016020809104026020016040519081016040528092919081815260200182805461036f90611fa1565b80156103bc5780601f10610391576101008083540402835291602001916103bc565b820191906000526020600020905b81548152906001019060200180831161039f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104445760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061046b8261066d565b9050806001600160a01b0316836001600160a01b0316036104d85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161043b565b336001600160a01b03821614806104f457506104f481336102ad565b6105665760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161043b565b6105708383610a7e565b505050565b61057f3382610aec565b61059b5760405162461bcd60e51b815260040161043b90611fdb565b610570838383610be3565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161061b5750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061063a906001600160601b031687612042565b6106449190612077565b915196919550909350505050565b610570838383604051806020016040528060008152506107bf565b6000818152600260205260408120546001600160a01b03168061032e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161043b565b60006001600160a01b03821661074f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161043b565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146107955760405162461bcd60e51b815260040161043b9061208b565b61079f6000610d7f565b565b60606001805461034390611fa1565b6107bb338383610dd1565b5050565b6107c93383610aec565b6107e55760405162461bcd60e51b815260040161043b90611fdb565b6107f184848484610e9f565b50505050565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081525061083a84610ed2565b60405160200161084b9291906120dc565b60408051601f19818403018152828201909152601682527519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b6020830152915060009061088f85610f0d565b6040516020016108a09291906120dc565b604051602081830303815290604052905060006108bc85610f24565b83836108c788611050565b6040516020016108da949392919061210b565b60408051601f19818403018152828201909152601d82527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000602083015291506109228261115e565b6040516020016109339291906120dc565b6040516020818303038152906040529350505050919050565b6006546001600160a01b031633146109765760405162461bcd60e51b815260040161043b9061208b565b60068111156109b45760405162461bcd60e51b815260206004820152600a602482015269185b1b081b5a5b9d195960b21b604482015260640161043b565b6107bb82826112c5565b6006546001600160a01b031633146109e85760405162461bcd60e51b815260040161043b9061208b565b6001600160a01b038116610a4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161043b565b610a5681610d7f565b50565b60006001600160e01b0319821663152a902d60e11b148061032e575061032e826112df565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ab38261066d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610b655760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161043b565b6000610b708361066d565b9050806001600160a01b0316846001600160a01b03161480610bab5750836001600160a01b0316610ba0846103c6565b6001600160a01b0316145b80610bdb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610bf68261066d565b6001600160a01b031614610c5a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161043b565b6001600160a01b038216610cbc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161043b565b610cc7600082610a7e565b6001600160a01b0383166000908152600360205260408120805460019290610cf090849061220f565b90915550506001600160a01b0382166000908152600360205260408120805460019290610d1e908490612226565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610e325760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161043b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610eaa848484610be3565b610eb68484848461132f565b6107f15760405162461bcd60e51b815260040161043b9061223e565b606061032e610ee983610ee485611430565b611449565b604051602001610ef99190612290565b60405160208183030381529060405261115e565b606061032e610ee983610f1f85611430565b611517565b606081600003610f4b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610f755780610f5f816122ac565b9150610f6e9050600a83612077565b9150610f4f565b60008167ffffffffffffffff811115610f9057610f90611e7c565b6040519080825280601f01601f191660200182016040528015610fba576020820181803683370190505b509050815b851561104757610fd060018261220f565b90506000610fdf600a88612077565b610fea90600a612042565b610ff4908861220f565b610fff9060306122c5565b905060008160f81b90508084848151811061101c5761101c6122ea565b60200101906001600160f81b031916908160001a90535061103e600a89612077565b97505050610fbf565b50949350505050565b6060600061105d83611430565b9050600060ff8216156110bc578160ff1660011461109757604051806040016040528060048152602001636461726b60e01b8152506110da565b60405180604001604052806007815260200166636c617373696360c81b8152506110da565b604051806040016040528060048152602001636175746f60e01b8152505b9050806110e8600286612300565b60011461111457604051806040016040528060078152602001666469766572736560c81b815250611135565b6040518060400160405280600781526020016639b4b6b4b630b960c91b8152505b604051602001611146929190612314565b60405160208183030381529060405292505050919050565b6060815160000361117d57505060408051602081019091526000815290565b60006040518060600160405280604081526020016134d460409139905060006003845160026111ac9190612226565b6111b69190612077565b6111c1906004612042565b905060006111d0826020612226565b67ffffffffffffffff8111156111e8576111e8611e7c565b6040519080825280601f01601f191660200182016040528015611212576020820181803683370190505b509050818152600183018586518101602084015b818310156112805760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611226565b60038951066001811461129a57600281146112ab576112b7565b613d3d60f01b6001198301526112b7565b603d60f81b6000198301525b509398975050505050505050565b6107bb828260405180602001604052806000815250611556565b60006001600160e01b031982166380ac58cd60e01b148061131057506001600160e01b03198216635b5e139f60e01b145b8061032e57506301ffc9a760e01b6001600160e01b031983161461032e565b60006001600160a01b0384163b1561142557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906113739033908990889088906004016123ca565b6020604051808303816000875af19250505080156113ae575060408051601f3d908101601f191682019092526113ab91810190612407565b60015b61140b573d8080156113dc576040519150601f19603f3d011682016040523d82523d6000602084013e6113e1565b606091505b5080516000036114035760405162461bcd60e51b815260040161043b9061223e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610bdb565b506001949350505050565b6000600261143f60018461220f565b61032e9190612424565b60608060005b60038160ff1610156114be5760005b60038160ff1610156114ab5782611476828489611589565b6040516020016114879291906120dc565b604051602081830303815290604052925080806114a390612446565b91505061145e565b50806114b681612446565b91505061144f565b5060006040518060600160405280603b8152602001613499603b913990506114e88460ff16610f24565b8282836040516020016114fe9493929190612465565b6040516020818303038152906040529250505092915050565b60606115258260ff16610f24565b61152e84610f24565b60405160200161153f9291906126c1565b604051602081830303815290604052905092915050565b61156083836116a0565b61156d600084848461132f565b6105705760405162461bcd60e51b815260040161043b9061223e565b606060006115c361159b846064612042565b856115a788603261315d565b6115b191906122c5565b60ff166115be9190612226565b6117e2565b6115d29060ff166103e8613186565b61ffff1690506116976040518060400160405280600381526020016273766760e81b81525061163c604051806040016040528060018152602001600f60fb1b815250611637896046611624919061315d565b61162f90603c6122c5565b60ff16610f24565b611815565b6040805180820190915260018152607960f81b6020820152611666906116376116248a604661315d565b6040516020016116779291906120dc565b60405160208183030381529060405261169284878a8a61182a565b611988565b95945050505050565b6001600160a01b0382166116f65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161043b565b6000818152600260205260409020546001600160a01b03161561175b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161043b565b6001600160a01b0382166000908152600360205260408120805460019290611784908490612226565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000816040516020016117f791815260200190565b60408051601f19818403018152919052805160209091012092915050565b6060828260405160200161153f9291906131a9565b6060600061183983602561315d565b60ff1661184785600761315d565b60ff1661185687610318612042565b6118609190612226565b61186a9190612226565b90506000611879600287612300565b60011490506000816118aa576012611890846117e2565b61189a9190612424565b6118a59060046122c5565b6118ad565b600c5b60ff16905060606000836118e05760126118c6866117e2565b6118d09190612424565b6118db9060016122c5565b6118e3565b60025b90506000846119175760106118fd6115be886103e8612226565b6119079190612424565b6119129060026122c5565b61191a565b60095b905060005b8463ffffffff168160ff16101561197857836119438d8360ff16888b8b89896119b9565b6040516020016119549291906120dc565b6040516020818303038152906040529350808061197090612446565b91505061191f565b50919a9950505050505050505050565b6060838383866040516020016119a194939291906131fe565b60405160208183030381529060405290509392505050565b6060611a42604051806040016040528060048152602001636c696e6560e01b8152506119e789898787611a4e565b611a1d604051806040016040528060058152602001647374796c6560d81b8152506116378d8d8d611a188d8f611b7c565b611be7565b604051602001611a2e9291906120dc565b604051602081830303815290604052611c5b565b98975050505050505050565b6060611a7f604051806040016040528060098152602001687472616e73666f726d60b81b8152506116378787611c70565b611aa960405180604001604052806002815260200161783160f01b8152506116378660ff16610f24565b611ae760405180604001604052806002815260200161793160f01b81525060405180604001604052806002815260200161032360f41b815250611815565b611b11604051806040016040528060028152602001613c1960f11b8152506116378760ff16610f24565b611b4f604051806040016040528060028152602001613c9960f11b81525060405180604001604052806002815260200161032360f41b815250611815565b604051602001611b63959493929190613297565b6040516020818303038152906040529050949350505050565b606082611bcf57611bab6080611b966115be856063612226565b611ba09190612424565b61162f9060016122c5565b604051602001611bbb9190613302565b604051602081830303815290604052611be0565b604051806020016040528060008152505b9392505050565b60606000611bfb63ffffffff851687612077565b90506000611c0f8263ffffffff8816612042565b611c19908861220f565b9050611c2487610f24565b611c2d82610f24565b85604051602001611c4093929190613337565b60405160208183030381529060405292505050949350505050565b6060828260405160200161153f9291906133dd565b60606000611c8083610168613435565b63ffffffff169050611ca2818563ffffffff16611c9d9190612042565b610f24565b604051602001611cb29190613458565b60405160208183030381529060405291505092915050565b6001600160e01b031981168114610a5657600080fd5b600060208284031215611cf257600080fd5b8135611be081611cca565b60005b83811015611d18578181015183820152602001611d00565b838111156107f15750506000910152565b60008151808452611d41816020860160208601611cfd565b601f01601f19169290920160200192915050565b602081526000611be06020830184611d29565b600060208284031215611d7a57600080fd5b5035919050565b80356001600160a01b0381168114611d9857600080fd5b919050565b60008060408385031215611db057600080fd5b611db983611d81565b946020939093013593505050565b600080600060608486031215611ddc57600080fd5b611de584611d81565b9250611df360208501611d81565b9150604084013590509250925092565b60008060408385031215611e1657600080fd5b50508035926020909101359150565b600060208284031215611e3757600080fd5b611be082611d81565b60008060408385031215611e5357600080fd5b611e5c83611d81565b915060208301358015158114611e7157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611ea857600080fd5b611eb185611d81565b9350611ebf60208601611d81565b925060408501359150606085013567ffffffffffffffff80821115611ee357600080fd5b818701915087601f830112611ef757600080fd5b813581811115611f0957611f09611e7c565b604051601f8201601f19908116603f01168101908382118183101715611f3157611f31611e7c565b816040528281528a6020848701011115611f4a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611f8157600080fd5b611f8a83611d81565b9150611f9860208401611d81565b90509250929050565b600181811c90821680611fb557607f821691505b602082108103611fd557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561205c5761205c61202c565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261208657612086612061565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081516120d2818560208601611cfd565b9290920192915050565b600083516120ee818460208801611cfd565b835190830190612102818360208801611cfd565b01949350505050565b6e03d913730b6b2911d112334b2b6321608d1b8152845160009061213681600f850160208a01611cfd565b61088b60f21b600f9184019182018190527f226465736372697074696f6e223a224861726d2076616e2064656e20446f727060118301526e195b0b080c8c0c0e0b4c8c0c8cc88b608a1b6031830152681134b6b0b3b2911d1160b91b604083015286516121aa816049850160208b01611cfd565b6049920191820152701130b734b6b0ba34b7b72fbab936111d1160791b604b82015284516121df81605c840160208901611cfd565b611a426122026121fc605c8486010161088b60f21b815260020190565b876120c0565b607d60f81b815260010190565b6000828210156122215761222161202c565b500390565b600082198211156122395761223961202c565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082516122a2818460208701611cfd565b9190910192915050565b6000600182016122be576122be61202c565b5060010190565b600060ff821660ff84168060ff038211156122e2576122e261202c565b019392505050565b634e487b7160e01b600052603260045260246000fd5b60008261230f5761230f612061565b500690565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2261707081527132b0b930b731b29116113b30b63ab2911d1160711b602082015260008351612367816032850160208801611cfd565b7f227d2c7b2274726169745f74797065223a226b696e64222c2276616c7565223a603291840191820152601160f91b605282015283516123ae816053840160208801611cfd565b62227d5d60e81b60539290910191820152605601949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123fd90830184611d29565b9695505050505050565b60006020828403121561241957600080fd5b8151611be081611cca565b600060ff83168061243757612437612061565b8060ff84160491505092915050565b600060ff821660ff810361245c5761245c61202c565b60010192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222077696474683d2233303022206865696768743d223330302260208201527f2076696577426f783d223020302033303020333030222069643d2261000000006040820152600085516124e981605c850160208a01611cfd565b61111f60f11b605c91840191820152855161250b81605e840160208a01611cfd565b7f3c7374796c653e6c696e657b7374726f6b652d6c696e656361703a726f756e64605e92909101918201527f3b7374726f6b653a766172282d2d66696c6c293b7374726f6b652d7769647468607e8201527f3a327d202361312c2361307b2d2d66696c6c3a626c61636b3b6261636b67726f609e8201527f756e643a6c696e6561722d6772616469656e7428236239623664302c2366666660be8201527f666666293b7d406d6564696128707265666572732d636f6c6f722d736368656d60de8201526a0653a6461726b297b2361360ac1b60fe8201526125f06101098201866120c0565b633e91b09960e11b815290506126a761260c60048301866120c0565b7f406b65796672616d65732073207b3025207b6f7061636974793a313b7d31303081527f257b6f7061636974793a303b7d7d2361317b6261636b67726f756e643a23656560208201527f652021696d706f7274616e743b7d2361327b6261636b67726f756e643a23323060408201527f323132342021696d706f7274616e743b7d3c2f7374796c653e00000000000000606082015260790190565b651e17b9bb339f60d11b8152600601979650505050505050565b7f3c21444f43545950452068746d6c3e3c68746d6c3e3c7374796c653e68746d6c81527f2c626f64797b6865696768743a313030253b77696474683a313030253b70616460208201527f64696e673a303b6d617267696e3a303b6f766572666c6f773a68696464656e3b60408201527f7d7376677b646973706c61793a20626c6f636b3b7d3c2f7374796c653e3c626f60608201527f64793e3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f726760808201527f2f323030302f7376672720786d6c6e733a786c696e6b3d27687474703a2f2f7760a08201527f77772e77332e6f72672f313939392f786c696e6b272077696474683d2731303060c08201527f2527206865696768743d2731303025272076696577506f72743d27302030203160e08201526e3030252031303025272069643d276160881b610100820152600061010f845161281e8183860160208901611cfd565b6129f682828601017f273e3c7376672069643d2763272f3e3c7374796c653e2361302c2361317b2d2d81527f66696c6c3a626c61636b3b6261636b67726f756e643a6c696e6561722d67726160208201527f6469656e7428236239623664302c23666666666666293b646973706c61793a6660408201527f6c65783b616c69676e2d6974656d733a63656e7465723b6a7573746966792d6360608201527f6f6e74656e743a63656e7465723b7d406b65796672616d657320737b30257b6f60808201527f7061636974793a313b7d313030257b6f7061636974793a303b7d7d2361327b2d60a08201527f2d66696c6c3a77686974653b6261636b67726f756e643a233230323132343b7d60c08201527f2361317b6261636b67726f756e643a236565652021696d706f7274616e743b7d60e08201527f406d656469612028707265666572732d636f6c6f722d736368656d653a6461726101008201527f6b297b2361307b2d2d66696c6c3a77686974653b6261636b67726f756e643a6c6101208201527f696e6561722d6772616469656e7428233264326132612c23326232663731293b6101408201527f7d7d3c2f7374796c653e3c7363726970743e2f2f3c215b43444154415b200a0061016082015261017f0190565b915050612a0f81696c657420746f6b656e3d60b01b9052565b611697612a1f600a8301866120c0565b7f2c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f7376672781527f2c723d4d6174682e72616e646f6d2c726f753d4d6174682e726f756e642c636560208201527f3d282e2e2e65293d3e646f63756d656e742e637265617465456c656d656e744e60408201527f53282e2e2e65292c613d28652c2e2e2e74293d3e652e7365744174747269627560608201527f7465282e2e2e74292c64653d646f63756d656e742e646f63756d656e74456c6560808201527f6d656e742c76703d5b64652e636c69656e7457696474682c64652e636c69656e60a08201527f744865696768745d3b636f6e73742073616d653d746f6b656e25323d3d313b6660c08201527f756e6374696f6e20635328652c74297b6c6574206e3d352a7228292b2e322c2460e08201527f3d6365286e732c2773766727292c6c3d6365286e732c27636972636c6527293b6101008201527f61286c2c276378272c3230292c61286c2c276379272c3230292c61286c2c27726101208201527f272c3230292c61286c2c2766696c6c272c277472616e73706172656e7427292c6101408201527f242e617070656e644368696c64286c292c6128242c2778272c652b3130292c616101608201527f28242c2779272c742b3130292c646f63756d656e742e676574456c656d656e746101808201527f4279496428276327292e617070656e644368696c642824293b6c657420693d5b6101a08201527f5d2c6f3d73616d653f383a32302a7228292b312c643d73616d653f323a312e356101c08201527f2a7228292b2e352c703d73616d653f27726f756e64273a7228293e2e353f27626101e08201527f757474273a7228293e2e353f27726f756e64273a27737175617265272c6d3d326102008201527f302b642f322c633d73616d653f31323a2831322a7228293c3c30292b342c753d6102208201527f3336302f633b666f72286c657420663d303b663c633b662b2b297b6c6574205f6102408201527f3d6365286e732c276c696e6527293b242e617070656e644368696c64285f292c6102608201527f61285f2c277831272c30292c61285f2c277931272c6d292c61285f2c277832276102808201527f2c6f292c61285f2c277932272c6d292c61285f2c277374726f6b652d776964746102a08201527f68272c64292c61285f2c277374726f6b652d6c696e65636170272c70292c61286102c08201527f5f2c277374726f6b65272c27766172282d2d66696c6c2927292c61285f2c27746102e08201527f72616e73666f726d272c60726f7461746528247b662a757d20323020247b6d7d6103008201527f2960292c692e70757368285f297d73706428692c6e2c63293b6c657420762c676103208201527f3d282e2e2e65293d3e242e6164644576656e744c697374656e6572282e2e2e656103408201527f293b66756e6374696f6e204528297b73706428692c2e322d7228292f3130302c6103608201527f63292c762626636c65617254696d656f75742876292c763d73657454696d656f6103808201527f75742828293d3e73706428692c6e2c63292c356533297d6728276d6f7573656f6103a08201527f766572272c45292c6728276d6f7573656f7574272c45292c6728276d6f7573656103c08201527f6d6f7665272c45292c6728276d6f7573657570272c45292c6728276d6f7573656103e08201527f646f776e272c28293d3e73706428692c31653629297d66756e6374696f6e20736104008201527f706428652c742c6e297b6c657420243d742f6e3b666f72286c6574206c3d303b6104208201527f6c3c652e6c656e6774683b6c2b2b297b6c657420693d655b6c5d2e7374796c656104408201527f3b692e616e696d6174696f6e3d607320247b747d73206c696e65617220696e666104608201527f696e697465602c692e616e696d6174696f6e44656c61793d60247b2d28742d246104808201527f292b6c2a247d73607d7d6c657420733d4d6174682e6d696e282e2e2e7670292c6104a08201527f6d617267696e3d4d6174682e6d696e284d6174682e6d617828732f31302c32306104c08201527f292c313230292c73703d37302c5b772c685d3d76702c636c3d726f752828772d6104e08201527f322a6d617267696e292f7370292c72773d726f752828682d322a6d617267696e6105008201527f292f7370293b696628683c3d3530302626773c682972773d636c3b666f72286c6105208201527f657420783d303b783c636c3b782b2b29666f72286c657420793d303b793c72776105408201527f3b792b2b29635328782a73702b28772d636c2a7370292f322c792a73702b28686105608201527f2d72772a7370292f32293b77696e646f772e6164644576656e744c697374656e6105808201527f65722827726573697a65272c28293d3e6c6f636174696f6e2e687265663d6c6f6105a08201527f636174696f6e2e68726566293b2f2f5d5d3e3c2f7363726970743e3c2f7376676105c08201526e1f1e17b137b23c9f1e17b43a36b61f60891b6105e08201526105ef0190565b600060ff821660ff84168160ff048111821515161561317e5761317e61202c565b029392505050565b600061ffff838116908316818110156131a1576131a161202c565b039392505050565b600083516131bb818460208801611cfd565b603d60f81b908301908152601160f91b600182015283516131e3816002840160208801611cfd565b61011160f51b60029290910191820152600401949350505050565b600f60fa1b81526000855161321a816001850160208a01611cfd565b600160fd1b600191840191820152855161323b816002840160208a01611cfd565b808201915050601f60f91b806002830152855161325f816003850160208a01611cfd565b613c2f60f01b600393909101928301528451613282816005850160208901611cfd565b60059201918201526006019695505050505050565b600086516132a9818460208b01611cfd565b8651908301906132bd818360208b01611cfd565b86519101906132d0818360208a01611cfd565b85519101906132e3818360208901611cfd565b84519101906132f6818360208801611cfd565b01979650505050505050565b6c39ba3937b5b296bbb4b23a341d60991b81526000825161332a81600d850160208701611cfd565b91909101600d0192915050565b6930b734b6b0ba34b7b71d60b11b81526000845161335c81600a850160208901611cfd565b6a6d73206c696e656172202d60a81b600a918401918201528451613387816015840160208901611cfd565b7f6d7320696e66696e697465206e6f726d616c206e6f6e652072756e6e696e67206015929091019182015261733b60f01b603582015283516133d0816037840160208801611cfd565b0160370195945050505050565b600f60fa1b8152600083516133f9816001850160208801611cfd565b600160fd1b600191840191820152835161341a816002840160208801611cfd565b61179f60f11b60029290910191820152600401949350505050565b600063ffffffff8084168061344c5761344c612061565b92169190910492915050565b660e4dee8c2e8ca560cb1b81526000825161347a816007850160208701611cfd565b662032302032302960c81b6007939091019283015250600e0191905056fe7b2d2d66696c6c3a77686974653b6261636b67726f756e643a6c696e6561722d6772616469656e7428233264326132612c23326232663731293b7d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203b5e5809d050b9bc0b7634776fb8d23e87d59375d3db641a203a86c16b00f41c64736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063b88d4fde11610071578063b88d4fde14610266578063c87b56dd14610279578063e58306f91461028c578063e985e9c51461029f578063f2fde38b146102db57600080fd5b806370a082311461021f578063715018a6146102325780638da5cb5b1461023a57806395d89b411461024b578063a22cb4651461025357600080fd5b806318160ddd116100f457806318160ddd146101a357806323b872dd146101b45780632a55205a146101c757806342842e0e146101f95780636352211e1461020c57600080fd5b806301ffc9a71461012657806306fdde031461014e578063081812fc14610163578063095ea7b31461018e575b600080fd5b610139610134366004611ce0565b6102ee565b60405190151581526020015b60405180910390f35b610156610334565b6040516101459190611d55565b610176610171366004611d68565b6103c6565b6040516001600160a01b039091168152602001610145565b6101a161019c366004611d9d565b610460565b005b60065b604051908152602001610145565b6101a16101c2366004611dc7565b610575565b6101da6101d5366004611e03565b6105a6565b604080516001600160a01b039093168352602083019190915201610145565b6101a1610207366004611dc7565b610652565b61017661021a366004611d68565b61066d565b6101a661022d366004611e25565b6106e4565b6101a161076b565b6006546001600160a01b0316610176565b6101566107a1565b6101a1610261366004611e40565b6107b0565b6101a1610274366004611e92565b6107bf565b610156610287366004611d68565b6107f7565b6101a161029a366004611d9d565b61094c565b6101396102ad366004611f6e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101a16102e9366004611e25565b6109be565b60006001600160e01b031982166380ac58cd60e01b148061031f57506001600160e01b0319821663152a902d60e11b145b8061032e575061032e82610a59565b92915050565b60606000805461034390611fa1565b80601f016020809104026020016040519081016040528092919081815260200182805461036f90611fa1565b80156103bc5780601f10610391576101008083540402835291602001916103bc565b820191906000526020600020905b81548152906001019060200180831161039f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104445760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061046b8261066d565b9050806001600160a01b0316836001600160a01b0316036104d85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161043b565b336001600160a01b03821614806104f457506104f481336102ad565b6105665760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161043b565b6105708383610a7e565b505050565b61057f3382610aec565b61059b5760405162461bcd60e51b815260040161043b90611fdb565b610570838383610be3565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161061b5750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061063a906001600160601b031687612042565b6106449190612077565b915196919550909350505050565b610570838383604051806020016040528060008152506107bf565b6000818152600260205260408120546001600160a01b03168061032e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161043b565b60006001600160a01b03821661074f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161043b565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146107955760405162461bcd60e51b815260040161043b9061208b565b61079f6000610d7f565b565b60606001805461034390611fa1565b6107bb338383610dd1565b5050565b6107c93383610aec565b6107e55760405162461bcd60e51b815260040161043b90611fdb565b6107f184848484610e9f565b50505050565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081525061083a84610ed2565b60405160200161084b9291906120dc565b60408051601f19818403018152828201909152601682527519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b6020830152915060009061088f85610f0d565b6040516020016108a09291906120dc565b604051602081830303815290604052905060006108bc85610f24565b83836108c788611050565b6040516020016108da949392919061210b565b60408051601f19818403018152828201909152601d82527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000602083015291506109228261115e565b6040516020016109339291906120dc565b6040516020818303038152906040529350505050919050565b6006546001600160a01b031633146109765760405162461bcd60e51b815260040161043b9061208b565b60068111156109b45760405162461bcd60e51b815260206004820152600a602482015269185b1b081b5a5b9d195960b21b604482015260640161043b565b6107bb82826112c5565b6006546001600160a01b031633146109e85760405162461bcd60e51b815260040161043b9061208b565b6001600160a01b038116610a4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161043b565b610a5681610d7f565b50565b60006001600160e01b0319821663152a902d60e11b148061032e575061032e826112df565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ab38261066d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610b655760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161043b565b6000610b708361066d565b9050806001600160a01b0316846001600160a01b03161480610bab5750836001600160a01b0316610ba0846103c6565b6001600160a01b0316145b80610bdb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610bf68261066d565b6001600160a01b031614610c5a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161043b565b6001600160a01b038216610cbc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161043b565b610cc7600082610a7e565b6001600160a01b0383166000908152600360205260408120805460019290610cf090849061220f565b90915550506001600160a01b0382166000908152600360205260408120805460019290610d1e908490612226565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610e325760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161043b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610eaa848484610be3565b610eb68484848461132f565b6107f15760405162461bcd60e51b815260040161043b9061223e565b606061032e610ee983610ee485611430565b611449565b604051602001610ef99190612290565b60405160208183030381529060405261115e565b606061032e610ee983610f1f85611430565b611517565b606081600003610f4b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610f755780610f5f816122ac565b9150610f6e9050600a83612077565b9150610f4f565b60008167ffffffffffffffff811115610f9057610f90611e7c565b6040519080825280601f01601f191660200182016040528015610fba576020820181803683370190505b509050815b851561104757610fd060018261220f565b90506000610fdf600a88612077565b610fea90600a612042565b610ff4908861220f565b610fff9060306122c5565b905060008160f81b90508084848151811061101c5761101c6122ea565b60200101906001600160f81b031916908160001a90535061103e600a89612077565b97505050610fbf565b50949350505050565b6060600061105d83611430565b9050600060ff8216156110bc578160ff1660011461109757604051806040016040528060048152602001636461726b60e01b8152506110da565b60405180604001604052806007815260200166636c617373696360c81b8152506110da565b604051806040016040528060048152602001636175746f60e01b8152505b9050806110e8600286612300565b60011461111457604051806040016040528060078152602001666469766572736560c81b815250611135565b6040518060400160405280600781526020016639b4b6b4b630b960c91b8152505b604051602001611146929190612314565b60405160208183030381529060405292505050919050565b6060815160000361117d57505060408051602081019091526000815290565b60006040518060600160405280604081526020016134d460409139905060006003845160026111ac9190612226565b6111b69190612077565b6111c1906004612042565b905060006111d0826020612226565b67ffffffffffffffff8111156111e8576111e8611e7c565b6040519080825280601f01601f191660200182016040528015611212576020820181803683370190505b509050818152600183018586518101602084015b818310156112805760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611226565b60038951066001811461129a57600281146112ab576112b7565b613d3d60f01b6001198301526112b7565b603d60f81b6000198301525b509398975050505050505050565b6107bb828260405180602001604052806000815250611556565b60006001600160e01b031982166380ac58cd60e01b148061131057506001600160e01b03198216635b5e139f60e01b145b8061032e57506301ffc9a760e01b6001600160e01b031983161461032e565b60006001600160a01b0384163b1561142557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906113739033908990889088906004016123ca565b6020604051808303816000875af19250505080156113ae575060408051601f3d908101601f191682019092526113ab91810190612407565b60015b61140b573d8080156113dc576040519150601f19603f3d011682016040523d82523d6000602084013e6113e1565b606091505b5080516000036114035760405162461bcd60e51b815260040161043b9061223e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610bdb565b506001949350505050565b6000600261143f60018461220f565b61032e9190612424565b60608060005b60038160ff1610156114be5760005b60038160ff1610156114ab5782611476828489611589565b6040516020016114879291906120dc565b604051602081830303815290604052925080806114a390612446565b91505061145e565b50806114b681612446565b91505061144f565b5060006040518060600160405280603b8152602001613499603b913990506114e88460ff16610f24565b8282836040516020016114fe9493929190612465565b6040516020818303038152906040529250505092915050565b60606115258260ff16610f24565b61152e84610f24565b60405160200161153f9291906126c1565b604051602081830303815290604052905092915050565b61156083836116a0565b61156d600084848461132f565b6105705760405162461bcd60e51b815260040161043b9061223e565b606060006115c361159b846064612042565b856115a788603261315d565b6115b191906122c5565b60ff166115be9190612226565b6117e2565b6115d29060ff166103e8613186565b61ffff1690506116976040518060400160405280600381526020016273766760e81b81525061163c604051806040016040528060018152602001600f60fb1b815250611637896046611624919061315d565b61162f90603c6122c5565b60ff16610f24565b611815565b6040805180820190915260018152607960f81b6020820152611666906116376116248a604661315d565b6040516020016116779291906120dc565b60405160208183030381529060405261169284878a8a61182a565b611988565b95945050505050565b6001600160a01b0382166116f65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161043b565b6000818152600260205260409020546001600160a01b03161561175b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161043b565b6001600160a01b0382166000908152600360205260408120805460019290611784908490612226565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000816040516020016117f791815260200190565b60408051601f19818403018152919052805160209091012092915050565b6060828260405160200161153f9291906131a9565b6060600061183983602561315d565b60ff1661184785600761315d565b60ff1661185687610318612042565b6118609190612226565b61186a9190612226565b90506000611879600287612300565b60011490506000816118aa576012611890846117e2565b61189a9190612424565b6118a59060046122c5565b6118ad565b600c5b60ff16905060606000836118e05760126118c6866117e2565b6118d09190612424565b6118db9060016122c5565b6118e3565b60025b90506000846119175760106118fd6115be886103e8612226565b6119079190612424565b6119129060026122c5565b61191a565b60095b905060005b8463ffffffff168160ff16101561197857836119438d8360ff16888b8b89896119b9565b6040516020016119549291906120dc565b6040516020818303038152906040529350808061197090612446565b91505061191f565b50919a9950505050505050505050565b6060838383866040516020016119a194939291906131fe565b60405160208183030381529060405290509392505050565b6060611a42604051806040016040528060048152602001636c696e6560e01b8152506119e789898787611a4e565b611a1d604051806040016040528060058152602001647374796c6560d81b8152506116378d8d8d611a188d8f611b7c565b611be7565b604051602001611a2e9291906120dc565b604051602081830303815290604052611c5b565b98975050505050505050565b6060611a7f604051806040016040528060098152602001687472616e73666f726d60b81b8152506116378787611c70565b611aa960405180604001604052806002815260200161783160f01b8152506116378660ff16610f24565b611ae760405180604001604052806002815260200161793160f01b81525060405180604001604052806002815260200161032360f41b815250611815565b611b11604051806040016040528060028152602001613c1960f11b8152506116378760ff16610f24565b611b4f604051806040016040528060028152602001613c9960f11b81525060405180604001604052806002815260200161032360f41b815250611815565b604051602001611b63959493929190613297565b6040516020818303038152906040529050949350505050565b606082611bcf57611bab6080611b966115be856063612226565b611ba09190612424565b61162f9060016122c5565b604051602001611bbb9190613302565b604051602081830303815290604052611be0565b604051806020016040528060008152505b9392505050565b60606000611bfb63ffffffff851687612077565b90506000611c0f8263ffffffff8816612042565b611c19908861220f565b9050611c2487610f24565b611c2d82610f24565b85604051602001611c4093929190613337565b60405160208183030381529060405292505050949350505050565b6060828260405160200161153f9291906133dd565b60606000611c8083610168613435565b63ffffffff169050611ca2818563ffffffff16611c9d9190612042565b610f24565b604051602001611cb29190613458565b60405160208183030381529060405291505092915050565b6001600160e01b031981168114610a5657600080fd5b600060208284031215611cf257600080fd5b8135611be081611cca565b60005b83811015611d18578181015183820152602001611d00565b838111156107f15750506000910152565b60008151808452611d41816020860160208601611cfd565b601f01601f19169290920160200192915050565b602081526000611be06020830184611d29565b600060208284031215611d7a57600080fd5b5035919050565b80356001600160a01b0381168114611d9857600080fd5b919050565b60008060408385031215611db057600080fd5b611db983611d81565b946020939093013593505050565b600080600060608486031215611ddc57600080fd5b611de584611d81565b9250611df360208501611d81565b9150604084013590509250925092565b60008060408385031215611e1657600080fd5b50508035926020909101359150565b600060208284031215611e3757600080fd5b611be082611d81565b60008060408385031215611e5357600080fd5b611e5c83611d81565b915060208301358015158114611e7157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611ea857600080fd5b611eb185611d81565b9350611ebf60208601611d81565b925060408501359150606085013567ffffffffffffffff80821115611ee357600080fd5b818701915087601f830112611ef757600080fd5b813581811115611f0957611f09611e7c565b604051601f8201601f19908116603f01168101908382118183101715611f3157611f31611e7c565b816040528281528a6020848701011115611f4a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611f8157600080fd5b611f8a83611d81565b9150611f9860208401611d81565b90509250929050565b600181811c90821680611fb557607f821691505b602082108103611fd557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561205c5761205c61202c565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261208657612086612061565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081516120d2818560208601611cfd565b9290920192915050565b600083516120ee818460208801611cfd565b835190830190612102818360208801611cfd565b01949350505050565b6e03d913730b6b2911d112334b2b6321608d1b8152845160009061213681600f850160208a01611cfd565b61088b60f21b600f9184019182018190527f226465736372697074696f6e223a224861726d2076616e2064656e20446f727060118301526e195b0b080c8c0c0e0b4c8c0c8cc88b608a1b6031830152681134b6b0b3b2911d1160b91b604083015286516121aa816049850160208b01611cfd565b6049920191820152701130b734b6b0ba34b7b72fbab936111d1160791b604b82015284516121df81605c840160208901611cfd565b611a426122026121fc605c8486010161088b60f21b815260020190565b876120c0565b607d60f81b815260010190565b6000828210156122215761222161202c565b500390565b600082198211156122395761223961202c565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082516122a2818460208701611cfd565b9190910192915050565b6000600182016122be576122be61202c565b5060010190565b600060ff821660ff84168060ff038211156122e2576122e261202c565b019392505050565b634e487b7160e01b600052603260045260246000fd5b60008261230f5761230f612061565b500690565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2261707081527132b0b930b731b29116113b30b63ab2911d1160711b602082015260008351612367816032850160208801611cfd565b7f227d2c7b2274726169745f74797065223a226b696e64222c2276616c7565223a603291840191820152601160f91b605282015283516123ae816053840160208801611cfd565b62227d5d60e81b60539290910191820152605601949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123fd90830184611d29565b9695505050505050565b60006020828403121561241957600080fd5b8151611be081611cca565b600060ff83168061243757612437612061565b8060ff84160491505092915050565b600060ff821660ff810361245c5761245c61202c565b60010192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222077696474683d2233303022206865696768743d223330302260208201527f2076696577426f783d223020302033303020333030222069643d2261000000006040820152600085516124e981605c850160208a01611cfd565b61111f60f11b605c91840191820152855161250b81605e840160208a01611cfd565b7f3c7374796c653e6c696e657b7374726f6b652d6c696e656361703a726f756e64605e92909101918201527f3b7374726f6b653a766172282d2d66696c6c293b7374726f6b652d7769647468607e8201527f3a327d202361312c2361307b2d2d66696c6c3a626c61636b3b6261636b67726f609e8201527f756e643a6c696e6561722d6772616469656e7428236239623664302c2366666660be8201527f666666293b7d406d6564696128707265666572732d636f6c6f722d736368656d60de8201526a0653a6461726b297b2361360ac1b60fe8201526125f06101098201866120c0565b633e91b09960e11b815290506126a761260c60048301866120c0565b7f406b65796672616d65732073207b3025207b6f7061636974793a313b7d31303081527f257b6f7061636974793a303b7d7d2361317b6261636b67726f756e643a23656560208201527f652021696d706f7274616e743b7d2361327b6261636b67726f756e643a23323060408201527f323132342021696d706f7274616e743b7d3c2f7374796c653e00000000000000606082015260790190565b651e17b9bb339f60d11b8152600601979650505050505050565b7f3c21444f43545950452068746d6c3e3c68746d6c3e3c7374796c653e68746d6c81527f2c626f64797b6865696768743a313030253b77696474683a313030253b70616460208201527f64696e673a303b6d617267696e3a303b6f766572666c6f773a68696464656e3b60408201527f7d7376677b646973706c61793a20626c6f636b3b7d3c2f7374796c653e3c626f60608201527f64793e3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f726760808201527f2f323030302f7376672720786d6c6e733a786c696e6b3d27687474703a2f2f7760a08201527f77772e77332e6f72672f313939392f786c696e6b272077696474683d2731303060c08201527f2527206865696768743d2731303025272076696577506f72743d27302030203160e08201526e3030252031303025272069643d276160881b610100820152600061010f845161281e8183860160208901611cfd565b6129f682828601017f273e3c7376672069643d2763272f3e3c7374796c653e2361302c2361317b2d2d81527f66696c6c3a626c61636b3b6261636b67726f756e643a6c696e6561722d67726160208201527f6469656e7428236239623664302c23666666666666293b646973706c61793a6660408201527f6c65783b616c69676e2d6974656d733a63656e7465723b6a7573746966792d6360608201527f6f6e74656e743a63656e7465723b7d406b65796672616d657320737b30257b6f60808201527f7061636974793a313b7d313030257b6f7061636974793a303b7d7d2361327b2d60a08201527f2d66696c6c3a77686974653b6261636b67726f756e643a233230323132343b7d60c08201527f2361317b6261636b67726f756e643a236565652021696d706f7274616e743b7d60e08201527f406d656469612028707265666572732d636f6c6f722d736368656d653a6461726101008201527f6b297b2361307b2d2d66696c6c3a77686974653b6261636b67726f756e643a6c6101208201527f696e6561722d6772616469656e7428233264326132612c23326232663731293b6101408201527f7d7d3c2f7374796c653e3c7363726970743e2f2f3c215b43444154415b200a0061016082015261017f0190565b915050612a0f81696c657420746f6b656e3d60b01b9052565b611697612a1f600a8301866120c0565b7f2c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f7376672781527f2c723d4d6174682e72616e646f6d2c726f753d4d6174682e726f756e642c636560208201527f3d282e2e2e65293d3e646f63756d656e742e637265617465456c656d656e744e60408201527f53282e2e2e65292c613d28652c2e2e2e74293d3e652e7365744174747269627560608201527f7465282e2e2e74292c64653d646f63756d656e742e646f63756d656e74456c6560808201527f6d656e742c76703d5b64652e636c69656e7457696474682c64652e636c69656e60a08201527f744865696768745d3b636f6e73742073616d653d746f6b656e25323d3d313b6660c08201527f756e6374696f6e20635328652c74297b6c6574206e3d352a7228292b2e322c2460e08201527f3d6365286e732c2773766727292c6c3d6365286e732c27636972636c6527293b6101008201527f61286c2c276378272c3230292c61286c2c276379272c3230292c61286c2c27726101208201527f272c3230292c61286c2c2766696c6c272c277472616e73706172656e7427292c6101408201527f242e617070656e644368696c64286c292c6128242c2778272c652b3130292c616101608201527f28242c2779272c742b3130292c646f63756d656e742e676574456c656d656e746101808201527f4279496428276327292e617070656e644368696c642824293b6c657420693d5b6101a08201527f5d2c6f3d73616d653f383a32302a7228292b312c643d73616d653f323a312e356101c08201527f2a7228292b2e352c703d73616d653f27726f756e64273a7228293e2e353f27626101e08201527f757474273a7228293e2e353f27726f756e64273a27737175617265272c6d3d326102008201527f302b642f322c633d73616d653f31323a2831322a7228293c3c30292b342c753d6102208201527f3336302f633b666f72286c657420663d303b663c633b662b2b297b6c6574205f6102408201527f3d6365286e732c276c696e6527293b242e617070656e644368696c64285f292c6102608201527f61285f2c277831272c30292c61285f2c277931272c6d292c61285f2c277832276102808201527f2c6f292c61285f2c277932272c6d292c61285f2c277374726f6b652d776964746102a08201527f68272c64292c61285f2c277374726f6b652d6c696e65636170272c70292c61286102c08201527f5f2c277374726f6b65272c27766172282d2d66696c6c2927292c61285f2c27746102e08201527f72616e73666f726d272c60726f7461746528247b662a757d20323020247b6d7d6103008201527f2960292c692e70757368285f297d73706428692c6e2c63293b6c657420762c676103208201527f3d282e2e2e65293d3e242e6164644576656e744c697374656e6572282e2e2e656103408201527f293b66756e6374696f6e204528297b73706428692c2e322d7228292f3130302c6103608201527f63292c762626636c65617254696d656f75742876292c763d73657454696d656f6103808201527f75742828293d3e73706428692c6e2c63292c356533297d6728276d6f7573656f6103a08201527f766572272c45292c6728276d6f7573656f7574272c45292c6728276d6f7573656103c08201527f6d6f7665272c45292c6728276d6f7573657570272c45292c6728276d6f7573656103e08201527f646f776e272c28293d3e73706428692c31653629297d66756e6374696f6e20736104008201527f706428652c742c6e297b6c657420243d742f6e3b666f72286c6574206c3d303b6104208201527f6c3c652e6c656e6774683b6c2b2b297b6c657420693d655b6c5d2e7374796c656104408201527f3b692e616e696d6174696f6e3d607320247b747d73206c696e65617220696e666104608201527f696e697465602c692e616e696d6174696f6e44656c61793d60247b2d28742d246104808201527f292b6c2a247d73607d7d6c657420733d4d6174682e6d696e282e2e2e7670292c6104a08201527f6d617267696e3d4d6174682e6d696e284d6174682e6d617828732f31302c32306104c08201527f292c313230292c73703d37302c5b772c685d3d76702c636c3d726f752828772d6104e08201527f322a6d617267696e292f7370292c72773d726f752828682d322a6d617267696e6105008201527f292f7370293b696628683c3d3530302626773c682972773d636c3b666f72286c6105208201527f657420783d303b783c636c3b782b2b29666f72286c657420793d303b793c72776105408201527f3b792b2b29635328782a73702b28772d636c2a7370292f322c792a73702b28686105608201527f2d72772a7370292f32293b77696e646f772e6164644576656e744c697374656e6105808201527f65722827726573697a65272c28293d3e6c6f636174696f6e2e687265663d6c6f6105a08201527f636174696f6e2e68726566293b2f2f5d5d3e3c2f7363726970743e3c2f7376676105c08201526e1f1e17b137b23c9f1e17b43a36b61f60891b6105e08201526105ef0190565b600060ff821660ff84168160ff048111821515161561317e5761317e61202c565b029392505050565b600061ffff838116908316818110156131a1576131a161202c565b039392505050565b600083516131bb818460208801611cfd565b603d60f81b908301908152601160f91b600182015283516131e3816002840160208801611cfd565b61011160f51b60029290910191820152600401949350505050565b600f60fa1b81526000855161321a816001850160208a01611cfd565b600160fd1b600191840191820152855161323b816002840160208a01611cfd565b808201915050601f60f91b806002830152855161325f816003850160208a01611cfd565b613c2f60f01b600393909101928301528451613282816005850160208901611cfd565b60059201918201526006019695505050505050565b600086516132a9818460208b01611cfd565b8651908301906132bd818360208b01611cfd565b86519101906132d0818360208a01611cfd565b85519101906132e3818360208901611cfd565b84519101906132f6818360208801611cfd565b01979650505050505050565b6c39ba3937b5b296bbb4b23a341d60991b81526000825161332a81600d850160208701611cfd565b91909101600d0192915050565b6930b734b6b0ba34b7b71d60b11b81526000845161335c81600a850160208901611cfd565b6a6d73206c696e656172202d60a81b600a918401918201528451613387816015840160208901611cfd565b7f6d7320696e66696e697465206e6f726d616c206e6f6e652072756e6e696e67206015929091019182015261733b60f01b603582015283516133d0816037840160208801611cfd565b0160370195945050505050565b600f60fa1b8152600083516133f9816001850160208801611cfd565b600160fd1b600191840191820152835161341a816002840160208801611cfd565b61179f60f11b60029290910191820152600401949350505050565b600063ffffffff8084168061344c5761344c612061565b92169190910492915050565b660e4dee8c2e8ca560cb1b81526000825161347a816007850160208701611cfd565b662032302032302960c81b6007939091019283015250600e0191905056fe7b2d2d66696c6c3a77686974653b6261636b67726f756e643a6c696e6561722d6772616469656e7428233264326132612c23326232663731293b7d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203b5e5809d050b9bc0b7634776fb8d23e87d59375d3db641a203a86c16b00f41c64736f6c634300080d0033
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.