Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 936 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24293067 | 54 days ago | IN | 0 ETH | 0.00000267 | ||||
| Set Approval For... | 23603596 | 150 days ago | IN | 0 ETH | 0.00000709 | ||||
| Set Approval For... | 23312850 | 191 days ago | IN | 0 ETH | 0.00000748 | ||||
| Set Approval For... | 23303575 | 192 days ago | IN | 0 ETH | 0.00001127 | ||||
| Set Approval For... | 20863800 | 533 days ago | IN | 0 ETH | 0.00079948 | ||||
| Transfer From | 20851278 | 535 days ago | IN | 0 ETH | 0.00047595 | ||||
| Set Approval For... | 18895765 | 809 days ago | IN | 0 ETH | 0.00092426 | ||||
| Set Approval For... | 18654859 | 842 days ago | IN | 0 ETH | 0.00136429 | ||||
| Safe Transfer Fr... | 18653917 | 843 days ago | IN | 0 ETH | 0.00174142 | ||||
| Set Approval For... | 17425409 | 1015 days ago | IN | 0 ETH | 0.00126126 | ||||
| Set Approval For... | 16670676 | 1121 days ago | IN | 0 ETH | 0.00278973 | ||||
| Set Approval For... | 16478748 | 1148 days ago | IN | 0 ETH | 0.00118894 | ||||
| Set Approval For... | 16396106 | 1159 days ago | IN | 0 ETH | 0.00088975 | ||||
| Set Approval For... | 16396093 | 1159 days ago | IN | 0 ETH | 0.00098603 | ||||
| Set Approval For... | 16396069 | 1159 days ago | IN | 0 ETH | 0.00097693 | ||||
| Set Approval For... | 16396059 | 1159 days ago | IN | 0 ETH | 0.00101563 | ||||
| Set Approval For... | 16395995 | 1159 days ago | IN | 0 ETH | 0.0008959 | ||||
| Set Approval For... | 16395956 | 1160 days ago | IN | 0 ETH | 0.00088975 | ||||
| Safe Transfer Fr... | 16395948 | 1160 days ago | IN | 0 ETH | 0.00116875 | ||||
| Set Approval For... | 16395800 | 1160 days ago | IN | 0 ETH | 0.00100185 | ||||
| Set Approval For... | 16395787 | 1160 days ago | IN | 0 ETH | 0.00094786 | ||||
| Set Approval For... | 16395768 | 1160 days ago | IN | 0 ETH | 0.00093514 | ||||
| Set Approval For... | 16395768 | 1160 days ago | IN | 0 ETH | 0.00093514 | ||||
| Set Approval For... | 16395767 | 1160 days ago | IN | 0 ETH | 0.00089142 | ||||
| Set Approval For... | 16395749 | 1160 days ago | IN | 0 ETH | 0.00060886 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 16395428 | 1160 days ago | 2.6624 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH | ||||
| Mint | 16395412 | 1160 days ago | 0.00512 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
OnChainMaze
Compiler Version
v0.8.17+commit.8df45f5f
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.17;
import "erc721a/contracts/ERC721A.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
contract OnChainMaze is DefaultOperatorFilterer, ERC721A, ReentrancyGuard, Ownable{
uint256 public MAX_COLLECTION_SIZE=1024;
uint256 public mintPrice=0.00256 ether;
uint256 public maxMintPerWallet=2;
string[][] palettes = [
["#144272", "#0A2647", "#FB5607", "#FBF8CC"], // Blue
["#3C2A21", "#1A120B", "#FF006E", "#B9FBC0"], // Brown
["#6D67E4", "#453C67", "#FFBE0B", "#FFCFD2"], // Blue
["#810CA8", "#2D033B", "#FFBE0B", "#98F5E1"], // Purple
["#3B185F", "#00005C", "#FF006E", "#FFD6A5"], // Purple + blue
["#282A3A", "#000000", "#3A86FF", "#BDB2FF"], // Gray
["#624F82", "#3F3B6C", "#FB5607", "#FFFFFC"], // purple
["#150050", "#000000", "#FFBE0B", "#CAFFBF"], // Blue
["#562B08", "#182747", "#FB5607", "#8EECF5"], // Blue + brown
["#553939", "#472D2D", "#8338EC", "#FFD6A5"], // Brown
["#51557E", "#1B2430", "#FF006E", "#FFADAD"] // Blue
];
uint256[] widths = [32, 64, 48, 80];
uint256[] heights = [32, 64, 48, 80];
uint256[] fogSizes = [4, 8, 16, 11, 13, 15, 17];
constructor() ERC721A("OnChainMaze", "OCM") {
}
function mint(uint256 quantity) external payable{
// Mint price: 0.00256, collection size 1024, max mint 2.
require(totalSupply() + quantity <= MAX_COLLECTION_SIZE, "Reached max supply");
require(_numberMinted(msg.sender) + quantity <= maxMintPerWallet, "Max 2 mint per wallet!");
require(quantity * mintPrice <= msg.value, "Funds not enough.");
/*
The funds will be used to deploy the 3D maze (should be the first on-chain 3d game!) contract on Ethereum.
256 holders (screenshot + raffle tbd) will get an airdrop of the 3D maze with 0.01024 eth mint price, total supply 1024.
The game is almost done but still needs some debuging + beautify + **code compression**.
ETA 2023/01/20.
It cost already 2 eth to deploy the contract so far... Really needs your help.
*/
_safeMint(msg.sender, quantity);
}
struct Maze {
bool passHint;
bool lightOut;
string hintColor;
string wallColor;
string cellColor;
string startColor;
string endColor;
string fogColor;
uint256 width;
uint256 height;
uint256 fogSize;
}
function random(string memory input) internal pure returns (uint256) {
return uint256(keccak256(abi.encodePacked(input)));
}
function randomRange(uint256 tokenId, string memory keyPrefix, uint256 lower, uint256 upper) internal pure returns (uint256) {
uint256 rand = random(string(abi.encodePacked(keyPrefix, Strings.toString(tokenId))));
return (rand % (upper - lower)) + lower;
}
function genMaze(uint256 tokenId) public view returns (Maze memory){
Maze memory m;
string[] memory palette = palettes[randomRange(tokenId, "Palette", 0, palettes.length)];
m.passHint = (randomRange(tokenId, "passHint", 0, 2) == 1) ? true : false;
m.lightOut = (randomRange(tokenId, "lightOut", 0, 2) == 1) ? true : false;
m.fogColor = m.lightOut ? palette[0] : "#000";
m.wallColor = palette[1];
m.hintColor = m.passHint ? palette[2] : "#000";
m.cellColor = palette[3];
m.startColor = "#000000";
m.endColor = palette[2];
m.width = widths[randomRange(tokenId, "width", 0, 4)];
m.height = heights[randomRange(tokenId, "height", 0, 4)];
m.fogSize = fogSizes[randomRange(tokenId, "fogSize", 0, 7)];
return m;
}
function property(Maze memory m) public pure returns (string memory){
string memory _property = "";
if(m.passHint){
_property = string(abi.encodePacked(_property,
'{"trait_type":"Hint?","value":"Yes"}, {"trait_type":"Hint Color","value":"', m.hintColor, '"},'
));
}
else{
_property = string(abi.encodePacked(_property, '{"trait_type":"Hint?","value":"None"},'));
}
if(m.lightOut){
_property = string(abi.encodePacked(_property, '{"trait_type":"Fog","value":"Yes"},{"trait_type":"Fog Color","value":"', m.fogColor, '"},{"display_type":"number","trait_type":"Fog size","value":', Strings.toString(m.fogSize), '},'));
}
else{
_property = string(abi.encodePacked(_property, '{"trait_type":"Fog","value":"None"},'));
}
_property = string(abi.encodePacked(
_property,
'{"trait_type":"Wall Color","value":"', m.wallColor, '"},',
'{"trait_type":"Cell Color","value":"', m.cellColor, '"},'
)
);
_property = string(abi.encodePacked(
_property,
'{"trait_type":"Start Color","value":"', m.startColor, '"},',
'{"trait_type":"End Color","value":"', m.endColor, '"},'
)
);
_property = string(abi.encodePacked(
_property,
'{"display_type":"number","trait_type":"Width","value":', Strings.toString(m.width), '},',
'{"display_type":"number","trait_type":"Height","value":', Strings.toString(m.height), '}'
)
);
return _property;
}
function animatedURI(Maze memory m) public pure returns (string memory){
string memory head = "<!DOCTYPE html><html lang='en' > <head> <meta charset='UTF-8'> <script> var w=";
string memory tail = " ** 2; </script><style>body { width: 100%; height: 100%;background-color: #555;}canvas {position: absolute;top: 0%;left: 0%; width: 100vmin; height: 100vmin;box-shadow: 0 0 2px #000;}#win {position: absolute;top: 0%;left: 0%;background-color: rgba(0,0,0,.8);text-align: center;width: 100vmin;height: 100vmin;color: #eee;opacity: 0;display: none;transition: opacity .5s;}#win.showing {display: inline-block;opacity: 1;}#win, input, button {font: 20px Helvetica;}input {width: 40px;}button {padding: 8px;}</style> </head> <body><canvas id=c></canvas><div id=win class=showing><p><button id=beginButton>Start</button></p></div><script>var s=c.width=c.height=512,finish=!1,ctx=c.getContext('2d'),maze=[],dirs=[{x:-2,y:0},{x:0,y:-2},{x:2,y:0},{x:0,y:2}],goal={},passed=[];function genMaze(){maze.length=0,passed.length=0,finish=!1;for(var e=0;e<w;++e){maze.push([]),passed.push([]);for(var a=0;a<h;++a)maze[e].push(0),passed[e].push(!1)}var s={x:1,y:1},r=[],i={i:0,t:s};maze[1][1]=1,passed[1][1]=1;do{var n=[{x:s.x+dirs[0].x,y:s.y+dirs[0].y,o:0},{x:s.x+dirs[1].x,y:s.y+dirs[1].y,o:1},{x:s.x+dirs[2].x,y:s.y+dirs[2].y,o:2},{x:s.x+dirs[3].x,y:s.y+dirs[3].y,o:3}].filter(function(e){return 0<e.x&&e.x<w&&0<e.y&&e.y<h&&0===maze[e.x][e.y]})}while(0<n.length?(r.push(s),n=n[Math.random()*n.length|0],maze[(s.x+n.x)/2][(s.y+n.y)/2]=1,maze[(s=n).x][s.y]=1):(i.i<r.length&&(i.i=r.length,i.t=s),r.pop(),s=r[r.length-1]),0<r.length);goal=i.t}function renderMaze(){ctx.fillStyle='#222',ctx.fillRect(0,0,s,s);var e=Math.min(s/w,s/h);ctx.translate(s/2-w*e/2,s/2-h*e/2);for(var a=0;a<w;++a)for(var r=0;r<h;++r)ctx.fillStyle=maze[a][r]?cellColor:wallColor,ctx.fillStyle=passed[a][r]&&passHint?hintColor:ctx.fillStyle,ctx.fillStyle=!lightOut||finish||Math.abs(a-player.x)**2+Math.abs(r-player.y)**2<fogSize?ctx.fillStyle:fogColor,ctx.fillRect(a*e-.5,r*e-.5,e+1,e+1);ctx.fillStyle=endColor,ctx.fillRect(goal.x*e-e/2,goal.y*e-e/2,2*e,2*e),ctx.fillStyle=startColor,ctx.fillRect(player.x*e+e/4,player.y*e+e/4,e/2,e/2),ctx.translate(-(s/2-w*e/2),-(s/2-h*e/2))}var keys=[{l:[37,72,65],pressed:!1},{l:[38,75,87],pressed:!1},{l:[39,76,68],pressed:!1},{l:[40,74,83],pressed:!1}],lastInput=Date.now(),player={x:1,y:1};function anim(){window.requestAnimationFrame(anim),keys.map(function(e,a){e.pressed&&20<Date.now()-lastInput&&(e=player.x+dirs[a].x/2,a=player.y+dirs[a].y/2,maze[e][a])&&(player.x=e,player.y=a,passed[e][a]=!0,lastInput=Date.now(),e===goal.x)&&a===goal.y&&(finish=!0,win.classList.add('showing'))}),renderMaze()}genMaze(),anim(),window.addEventListener('keydown',function(a){keys.map(function(e){-1<e.l.indexOf(a.keyCode)&&(e.pressed=!0)})}),window.addEventListener('keyup',function(a){keys.map(function(e){-1<e.l.indexOf(a.keyCode)&&(e.pressed=!1)})}),beginButton.addEventListener('click',function(){win.classList.remove('showing'),player.x=player.y=1,genMaze()}); </script> </body></html>";
string memory body = string.concat(Strings.toString(m.width),
",h=", Strings.toString(m.height),
",passHint=", m.passHint ? "true" : "false",
",hintColor='", m.hintColor,
"',wallColor='", m.wallColor
);
body = string.concat(body,
"',cellColor='", m.cellColor,
"',startColor='", m.startColor,
"',endColor='", m.endColor,
"',lightOut=", m.lightOut ? "true" : "false",
",fogColor='", m.fogColor,
"',fogSize=", Strings.toString(m.fogSize)
);
return string(abi.encodePacked("data:text/html;base64,", Base64.encode(bytes(string.concat(head, body, tail)))));
}
function text(string memory _text, string memory x, string memory y) internal pure returns (string memory){
return string.concat(' <text x="', x, '%" y="', y, '%" class="normal">', _text, '</text> ');
}
function image(Maze memory m) public pure returns (string memory){
string memory svg;
svg = string.concat(
'<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"> <style>.normal { fill: #FFFFFF; font-family: helvetica; font-size: 18px; dominant-baseline: bottom; text-anchor: text;} </style> <rect width="100%" height="100%" fill="#000000" />',
text(string.concat("Width: ", Strings.toString(m.width)), "0", "10"),
text(string.concat("Height: ", Strings.toString(m.height)), "0", "20"),
text(string.concat("Hint Color: ", m.hintColor), "0", "30"),
text(string.concat("Wall Color: ", m.wallColor), "0", "40"),
text(string.concat("Cell Color: ", m.cellColor), "0", "50")
);
svg = string.concat(
svg,
text(string.concat("Start Color: ", m.startColor), "0", "60"),
text(string.concat("End Color: ", m.endColor), "0", "70"),
text(string.concat("Fog Color: ", m.fogColor), "0", "80"),
text(string.concat("Fog Size: ", Strings.toString(m.fogSize)), "0", "90"),
'</svg>'
);
return string(abi.encodePacked("data:image/svg+xml;base64,", Base64.encode(bytes(svg))));
}
function tokenURI(uint256 tokenId) public view override returns (string memory){
string memory _name = string(abi.encodePacked("Maze #", Strings.toString(tokenId)));
string memory _description = "A fully on chain maze game. It is also your pass to our next 3D maze collection. Use WSAD to control the player for a better playing experience.";
Maze memory m = genMaze(tokenId);
return string(
abi.encodePacked(
"data:application/json;base64,",
Base64.encode(
bytes(
abi.encodePacked(
'{"name":"', _name,
'", "description": "', _description,
'", "attributes": [', property(m),
'], "image":"', image(m),
'", "animation_url":"', animatedURI(m), '"}'
)
)
)
)
);
}
function withdraw() external onlyOwner {
(bool success, ) = msg.sender.call{value: address(this).balance}("");
require(success, "Transfer failed.");
}
function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
super.setApprovalForAll(operator, approved);
}
function approve(address operator, uint256 tokenId) public override payable onlyAllowedOperatorApproval(operator) {
super.approve(operator, tokenId);
}
function transferFrom(address from, address to, uint256 tokenId) public override payable onlyAllowedOperator(from){
super.transferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId) public override payable onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override payable onlyAllowedOperator(from){
super.safeTransferFrom(from, to, tokenId, data);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides a set of functions to operate with Base64 strings.
*
* _Available since v4.5._
*/
library Base64 {
/**
* @dev Base64 Encoding/Decoding Table
*/
string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
* @dev Converts a `bytes` to its Bytes64 `string` representation.
*/
function encode(bytes memory data) internal pure returns (string memory) {
/**
* Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
* https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
*/
if (data.length == 0) return "";
// Loads the table into memory
string memory table = _TABLE;
// Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
// and split into 4 numbers of 6 bits.
// The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
// - `data.length + 2` -> Round up
// - `/ 3` -> Number of 3-bytes chunks
// - `4 *` -> 4 characters for each chunk
string memory result = new string(4 * ((data.length + 2) / 3));
/// @solidity memory-safe-assembly
assembly {
// Prepare the lookup table (skip the first "length" byte)
let tablePtr := add(table, 1)
// Prepare result pointer, jump over length
let resultPtr := add(result, 32)
// Run over the input, 3 bytes at a time
for {
let dataPtr := data
let endPtr := add(data, mload(data))
} lt(dataPtr, endPtr) {
} {
// Advance 3 bytes
dataPtr := add(dataPtr, 3)
let input := mload(dataPtr)
// To write each character, shift the 3 bytes (18 bits) chunk
// 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
// and apply logical AND with 0x3F which is the number of
// the previous character in the ASCII table prior to the Base64 Table
// The result is then added to the table to get the character to write,
// and finally write it in the result pointer but with a left shift
// of 256 (1 byte) - 8 (1 ASCII char) = 248 bits
mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
}
// When data `bytes` is not exactly 3 bytes long
// it is padded with `=` characters at the end
switch mod(mload(data), 3)
case 1 {
mstore8(sub(resultPtr, 1), 0x3d)
mstore8(sub(resultPtr, 2), 0x3d)
}
case 2 {
mstore8(sub(resultPtr, 1), 0x3d)
}
}
return result;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator
) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1);
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator,
Rounding rounding
) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10**64) {
value /= 10**64;
result += 64;
}
if (value >= 10**32) {
value /= 10**32;
result += 32;
}
if (value >= 10**16) {
value /= 10**16;
result += 16;
}
if (value >= 10**8) {
value /= 10**8;
result += 8;
}
if (value >= 10**4) {
value /= 10**4;
result += 4;
}
if (value >= 10**2) {
value /= 10**2;
result += 2;
}
if (value >= 10**1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @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] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @dev Interface of ERC721 token receiver.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @title ERC721A
*
* @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
* Non-Fungible Token Standard, including the Metadata extension.
* Optimized for lower gas during batch mints.
*
* Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
* starting from `_startTokenId()`.
*
* Assumptions:
*
* - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
* - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
struct TokenApprovalRef {
address value;
}
// =============================================================
// CONSTANTS
// =============================================================
// Mask of an entry in packed address data.
uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant _BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant _BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant _BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant _BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant _BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;
// The bit position of `extraData` in packed ownership.
uint256 private constant _BITPOS_EXTRA_DATA = 232;
// Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;
// The mask of the lower 160 bits for addresses.
uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;
// The maximum `quantity` that can be minted with {_mintERC2309}.
// This limit is to prevent overflows on the address data entries.
// For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
// is required to cause an overflow, which is unrealistic.
uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;
// The `Transfer` event signature is given by:
// `keccak256(bytes("Transfer(address,address,uint256)"))`.
bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;
// =============================================================
// STORAGE
// =============================================================
// The next token ID to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See {_packedOwnershipOf} implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
// - [232..255] `extraData`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => TokenApprovalRef) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
// =============================================================
// CONSTRUCTOR
// =============================================================
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
// =============================================================
// TOKEN COUNTING OPERATIONS
// =============================================================
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view virtual returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() public view virtual override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view virtual returns (uint256) {
// Counter underflow is impossible as `_currentIndex` does not decrement,
// and it is initialized to `_startTokenId()`.
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view virtual returns (uint256) {
return _burnCounter;
}
// =============================================================
// ADDRESS DATA OPERATIONS
// =============================================================
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
}
/**
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal virtual {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
// Cast `aux` with assembly to avoid redundant masking.
assembly {
auxCasted := aux
}
packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
_packedAddressData[owner] = packed;
}
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes
// of the XOR of all function selectors in the interface.
// See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
// (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the token collection symbol.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, it can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
// =============================================================
// OWNERSHIPS OPERATIONS
// =============================================================
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around over time.
*/
function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal virtual {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & _BITMASK_BURNED == 0) {
// Invariant:
// There will always be an initialized ownership slot
// (i.e. `ownership.addr != address(0) && ownership.burned == false`)
// before an unintialized ownership slot
// (i.e. `ownership.addr == address(0) && ownership.burned == false`)
// Hence, `curr` will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed will be zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
ownership.burned = packed & _BITMASK_BURNED != 0;
ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
}
/**
* @dev Packs ownership data into a single uint256.
*/
function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
}
}
/**
* @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
*/
function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
// For branchless setting of the `nextInitialized` flag.
assembly {
// `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
}
}
// =============================================================
// APPROVAL OPERATIONS
// =============================================================
/**
* @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) public payable virtual override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId].value = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId].value;
}
/**
* @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) public virtual override {
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @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. See {_mint}.
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
*/
function _isSenderApprovedOrOwner(
address approvedAddress,
address owner,
address msgSender
) private pure returns (bool result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
msgSender := and(msgSender, _BITMASK_ADDRESS)
// `msgSender == owner || msgSender == approvedAddress`.
result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
}
}
/**
* @dev Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedSlotAndAddress(uint256 tokenId)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
assembly {
approvedAddressSlot := tokenApproval.slot
approvedAddress := sload(approvedAddressSlot)
}
}
// =============================================================
// TRANSFER OPERATIONS
// =============================================================
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* 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
) public payable virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// We can directly increment and decrement the balances.
--_packedAddressData[from]; // Updates: `balance -= 1`.
++_packedAddressData[to]; // Updates: `balance += 1`.
// Updates:
// - `address` to the next owner.
// - `startTimestamp` to the timestamp of transfering.
// - `burned` to `false`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
to,
_BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @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 memory _data
) public payable virtual override {
transferFrom(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Hook that is called before a set of serially-ordered token IDs
* are about to be transferred. This includes minting.
* And also called before burning one token.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token IDs
* have been transferred. This includes minting.
* And also called after one token has been burned.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* `from` - Previous owner of the given token ID.
* `to` - Target address that will receive the token.
* `tokenId` - Token ID to be transferred.
* `_data` - Optional data to send along with the call.
*
* Returns whether the call correctly returned the expected magic value.
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
bytes4 retval
) {
return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
// =============================================================
// MINT OPERATIONS
// =============================================================
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event for each mint.
*/
function _mint(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// `balance` and `numberMinted` have a maximum limit of 2**64.
// `tokenId` has a maximum limit of 2**256.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
uint256 toMasked;
uint256 end = startTokenId + quantity;
// Use assembly to loop and emit the `Transfer` event for gas savings.
// The duplicated `log4` removes an extra check and reduces stack juggling.
// The assembly, together with the surrounding Solidity code, have been
// delicately arranged to nudge the compiler into producing optimized opcodes.
assembly {
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
toMasked := and(to, _BITMASK_ADDRESS)
// Emit the `Transfer` event.
log4(
0, // Start of data (0, since no data).
0, // End of data (0, since no data).
_TRANSFER_EVENT_SIGNATURE, // Signature.
0, // `address(0)`.
toMasked, // `to`.
startTokenId // `tokenId`.
)
// The `iszero(eq(,))` check ensures that large values of `quantity`
// that overflows uint256 will make the loop run out of gas.
// The compiler will optimize the `iszero` away for performance.
for {
let tokenId := add(startTokenId, 1)
} iszero(eq(tokenId, end)) {
tokenId := add(tokenId, 1)
} {
// Emit the `Transfer` event. Similar to above.
log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
}
}
if (toMasked == 0) revert MintToZeroAddress();
_currentIndex = end;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* This function is intended for efficient minting only during contract creation.
*
* It emits only one {ConsecutiveTransfer} as defined in
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
* instead of a sequence of {Transfer} event(s).
*
* Calling this function outside of contract creation WILL make your contract
* non-compliant with the ERC721 standard.
* For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
* {ConsecutiveTransfer} event is only permissible during contract creation.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {ConsecutiveTransfer} event.
*/
function _mintERC2309(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are unrealistic due to the above check for `quantity` to be below the limit.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);
_currentIndex = startTokenId + quantity;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* See {_mint}.
*
* Emits a {Transfer} event for each mint.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal virtual {
_mint(to, quantity);
unchecked {
if (to.code.length != 0) {
uint256 end = _currentIndex;
uint256 index = end - quantity;
do {
if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (index < end);
// Reentrancy protection.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, '');
}
// =============================================================
// BURN OPERATIONS
// =============================================================
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
if (approvalCheck) {
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// Updates:
// - `balance -= 1`.
// - `numberBurned += 1`.
//
// We can directly decrement the balance, and increment the number burned.
// This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
_packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;
// Updates:
// - `address` to the last owner.
// - `startTimestamp` to the timestamp of burning.
// - `burned` to `true`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
from,
(_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
// =============================================================
// EXTRA DATA OPERATIONS
// =============================================================
/**
* @dev Directly sets the extra data for the ownership data `index`.
*/
function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
uint256 packed = _packedOwnerships[index];
if (packed == 0) revert OwnershipNotInitializedForExtraData();
uint256 extraDataCasted;
// Cast `extraData` with assembly to avoid redundant masking.
assembly {
extraDataCasted := extraData
}
packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
_packedOwnerships[index] = packed;
}
/**
* @dev Called during each token transfer to set the 24bit `extraData` field.
* Intended to be overridden by the cosumer contract.
*
* `previousExtraData` - the value of `extraData` before transfer.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _extraData(
address from,
address to,
uint24 previousExtraData
) internal view virtual returns (uint24) {}
/**
* @dev Returns the next extra data for the packed ownership data.
* The returned result is shifted into position.
*/
function _nextExtraData(
address from,
address to,
uint256 prevOwnershipPacked
) private view returns (uint256) {
uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
}
// =============================================================
// OTHER OPERATIONS
// =============================================================
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a uint256 to its ASCII string decimal representation.
*/
function _toString(uint256 value) internal pure virtual returns (string memory str) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit), but
// we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
// We will need 1 word for the trailing zeros padding, 1 word for the length,
// and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
let m := add(mload(0x40), 0xa0)
// Update the free memory pointer to allocate.
mstore(0x40, m)
// Assign the `str` to the end.
str := sub(m, 0x20)
// Zeroize the slot after the string.
mstore(str, 0)
// Cache the end of the memory to calculate the length later.
let end := str
// We write the string from rightmost digit to leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// prettier-ignore
for { let temp := value } 1 {} {
str := sub(str, 1)
// Write the character to the pointer.
// The ASCII index of the '0' character is 48.
mstore8(str, add(48, mod(temp, 10)))
// Keep dividing `temp` until zero.
temp := div(temp, 10)
// prettier-ignore
if iszero(temp) { break }
}
let length := sub(end, str)
// Move the pointer 32 bytes leftwards to make room for the length.
str := sub(str, 0x20)
// Store the length.
mstore(str, length)
}
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721A.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* Cannot query the balance for the zero address.
*/
error BalanceQueryForZeroAddress();
/**
* Cannot mint to the zero address.
*/
error MintToZeroAddress();
/**
* The quantity of tokens minted must be more than zero.
*/
error MintZeroQuantity();
/**
* The token does not exist.
*/
error OwnerQueryForNonexistentToken();
/**
* The caller must own the token or be an approved operator.
*/
error TransferCallerNotOwnerNorApproved();
/**
* The token must be owned by `from`.
*/
error TransferFromIncorrectOwner();
/**
* Cannot safely transfer to a contract that does not implement the
* ERC721Receiver interface.
*/
error TransferToNonERC721ReceiverImplementer();
/**
* Cannot transfer to the zero address.
*/
error TransferToZeroAddress();
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
/**
* The `quantity` minted with ERC2309 exceeds the safety limit.
*/
error MintERC2309QuantityExceedsLimit();
/**
* The `extraData` cannot be set on an unintialized ownership slot.
*/
error OwnershipNotInitializedForExtraData();
// =============================================================
// STRUCTS
// =============================================================
struct TokenOwnership {
// The address of the owner.
address addr;
// Stores the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
// Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
uint24 extraData;
}
// =============================================================
// TOKEN COUNTERS
// =============================================================
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() external view returns (uint256);
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
// =============================================================
// IERC721
// =============================================================
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables
* (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`,
* 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,
bytes calldata data
) external payable;
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external payable;
/**
* @dev Transfers `tokenId` 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 payable;
/**
* @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 payable;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom}
* for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
// =============================================================
// IERC2309
// =============================================================
/**
* @dev Emitted when tokens in `fromTokenId` to `toTokenId`
* (inclusive) is transferred from `from` to `to`, as defined in the
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
*
* See {_mintERC2309} for more details.
*/
event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {OperatorFilterer} from "./OperatorFilterer.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
function register(address registrant) external;
function registerAndSubscribe(address registrant, address subscription) external;
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
function unregister(address addr) external;
function updateOperator(address registrant, address operator, bool filtered) external;
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
function subscribe(address registrant, address registrantToSubscribe) external;
function unsubscribe(address registrant, bool copyExistingEntries) external;
function subscriptionOf(address addr) external returns (address registrant);
function subscribers(address registrant) external returns (address[] memory);
function subscriberAt(address registrant, uint256 index) external returns (address);
function copyEntriesOf(address registrant, address registrantToCopy) external;
function isOperatorFiltered(address registrant, address operator) external returns (bool);
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
function filteredOperators(address addr) external returns (address[] memory);
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
function isRegistered(address addr) external returns (bool);
function codeHashOf(address addr) external returns (bytes32);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
*/
abstract contract OperatorFilterer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (subscribe) {
OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
OPERATOR_FILTER_REGISTRY.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if (from != msg.sender) {
_checkFilterOperator(msg.sender);
}
_;
}
modifier onlyAllowedOperatorApproval(address operator) virtual {
_checkFilterOperator(operator);
_;
}
function _checkFilterOperator(address operator) internal view virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
}
}{
"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"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_COLLECTION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"bool","name":"lightOut","type":"bool"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"cellColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"endColor","type":"string"},{"internalType":"string","name":"fogColor","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"},{"internalType":"uint256","name":"fogSize","type":"uint256"}],"internalType":"struct OnChainMaze.Maze","name":"m","type":"tuple"}],"name":"animatedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"genMaze","outputs":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"bool","name":"lightOut","type":"bool"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"cellColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"endColor","type":"string"},{"internalType":"string","name":"fogColor","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"},{"internalType":"uint256","name":"fogSize","type":"uint256"}],"internalType":"struct OnChainMaze.Maze","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"bool","name":"lightOut","type":"bool"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"cellColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"endColor","type":"string"},{"internalType":"string","name":"fogColor","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"},{"internalType":"uint256","name":"fogSize","type":"uint256"}],"internalType":"struct OnChainMaze.Maze","name":"m","type":"tuple"}],"name":"image","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"bool","name":"lightOut","type":"bool"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"cellColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"endColor","type":"string"},{"internalType":"string","name":"fogColor","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"},{"internalType":"uint256","name":"fogSize","type":"uint256"}],"internalType":"struct OnChainMaze.Maze","name":"m","type":"tuple"}],"name":"property","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
610400600a8190556609184e72a00000600b9081556002600c5560076102608181526611989a1a191b9960c91b610280526101e09081526102a0828152662330413236343760c81b6102c052610200526102e0828152662346423536303760c81b61030081905261022091909152610320838152662346424638434360c81b610340526102405260809182526103e0838152662333433241323160c81b909552610360948552610420838152661198a09899182160c91b6104405261038052610460838152662346463030364560c81b6104808190526103a0919091526104a0848152660234239464243360cc1b6104c0526103c05260a0959095526105608381526608cd910d8dd14d60ca1b610580526104e09081526105a0848152662334353343363760c81b6105c052610500526105e08481526611a3232122982160c91b610600819052610520919091526106208581526611a32321a3221960c91b610640526105405260c0919091526106e0848152660467062608682760cb1b6107005261066090815261072085815266119922181999a160c91b61074052610680526107608581526107808390526106a0526107a0858152662339384635453160c81b6107c0526106c05260e052610860848152661199a1189c1aa360c91b610880526107e09081526108a0858152662330303030354360c81b6108c052610800526108e085815261090088905261082052610920858152662346464436413560c81b61094081905261084091909152610100919091526109e0858152662332383241334160c81b610a0052610960908152610a20868152660233030303030360cc1b610a4081905261098091909152610a60878152661199a09c1b232360c91b610a80526109a052610aa08781526611a1222119232360c91b610ac0526109c05261012091909152610b6086815266119b191a231c1960c91b610b8052610ae0908152610ba0878152662333463342364360c81b610bc052610b0052610be0878152610c00869052610b2052610c20878152662346464646464360c81b610c4052610b405261014052610ce0868152660233135303035360cc1b610d0052610c60908152610d20878152610d4092909252610c8091909152610d60868152610d8093909352610ca092909252610da08581526611a1a0a323212360c91b610dc052610cc05261016091909152610e60848152660466a6c648460760cb1b610e8052610de0908152610ea0858152662331383237343760c81b610ec052610e0052610ee0858152610f0093909352610e2092909252610f20848152662338454543463560c81b610f4052610e405261018091909152610fe0838152662335353339333960c81b61100052610f609081526110208481526608cd0dcc910c9160ca1b61104052610f8052611060848152662338333338454360c81b61108052610fa0526110a08481526110c092909252610fc0919091526101a052611160828152662335313535374560c81b611180526110e09081526111a0838152660233142323433360cc1b6111c052611100526111e083815261120095909552611120949094526112606040526112209182526608d1919051105160ca1b61124052611140919091526101c092909252620004b791600d91620007a0565b50604080516080810182526020808252810182905260309181019190915260506060820152620004ec90600e906004620007fe565b506040805160808101825260208082528101829052603091810191909152605060608201526200052190600f906004620007fe565b506040805160e08101825260048152600860208201526010918101829052600b6060820152600d6080820152600f60a0820152601160c08201526200056991906007620007fe565b503480156200057757600080fd5b50604080518082018252600b81526a4f6e436861696e4d617a6560a81b602080830191909152825180840190935260038352624f434d60e81b9083015290733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620007115780156200065f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200064057600080fd5b505af115801562000655573d6000803e3d6000fd5b5050505062000711565b6001600160a01b03821615620006b05760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000625565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620006f757600080fd5b505af11580156200070c573d6000803e3d6000fd5b505050505b506002905062000722838262000a08565b50600362000731828262000a08565b50600080555050600160085562000748336200074e565b62000ad4565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054828255906000526020600020908101928215620007ec579160200282015b82811115620007ec578251620007db90839060046200084f565b5091602001919060010190620007c1565b50620007fa929150620008a8565b5090565b82805482825590600052602060002090810192821562000841579160200282015b8281111562000841578251829060ff169055916020019190600101906200081f565b50620007fa929150620008c9565b8280548282559060005260206000209081019282156200089a579160200282015b828111156200089a578251829062000889908262000a08565b509160200191906001019062000870565b50620007fa929150620008e0565b80821115620007fa576000620008bf828262000901565b50600101620008a8565b5b80821115620007fa5760008155600101620008ca565b80821115620007fa576000620008f7828262000924565b50600101620008e0565b5080546000825590600052602060002090810190620009219190620008e0565b50565b508054620009329062000979565b6000825580601f1062000943575050565b601f016020900490600052602060002090810190620009219190620008c9565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200098e57607f821691505b602082108103620009af57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000a0357600081815260208120601f850160051c81016020861015620009de5750805b601f850160051c820191505b81811015620009ff57828155600101620009ea565b5050505b505050565b81516001600160401b0381111562000a245762000a2462000963565b62000a3c8162000a35845462000979565b84620009b5565b602080601f83116001811462000a74576000841562000a5b5750858301515b600019600386901b1c1916600185901b178555620009ff565b600085815260208120601f198616915b8281101562000aa55788860151825594840194600190910190840162000a84565b508582101562000ac45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61412a8062000ae46000396000f3fe60806040526004361061019c5760003560e01c80636352211e116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610446578063d465831114610466578063e985e9c514610486578063f2fde38b146104a657600080fd5b8063a22cb465146103fd578063b228d9251461041d578063b88d4fde1461043357600080fd5b8063715018a6116100c6578063715018a6146103a25780638da5cb5b146103b757806395d89b41146103d5578063a0712d68146103ea57600080fd5b80636352211e1461034c5780636817c76c1461036c57806370a082311461038257600080fd5b806323b872dd116101595780634035cc6c116101335780634035cc6c146102e157806341f43434146102f757806342842e0e14610319578063602ab2ed1461032c57600080fd5b806323b872dd1461028c5780633929e6ac1461029f5780633ccfd60b146102cc57600080fd5b80630164745e146101a157806301ffc9a7146101d757806306fdde0314610207578063081812fc1461021c578063095ea7b31461025457806318160ddd14610269575b600080fd5b3480156101ad57600080fd5b506101c16101bc36600461211a565b6104c6565b6040516101ce91906122d1565b60405180910390f35b3480156101e357600080fd5b506101f76101f23660046122fa565b610682565b60405190151581526020016101ce565b34801561021357600080fd5b506101c16106d4565b34801561022857600080fd5b5061023c610237366004612317565b610766565b6040516001600160a01b0390911681526020016101ce565b610267610262366004612347565b6107aa565b005b34801561027557600080fd5b50600154600054035b6040519081526020016101ce565b61026761029a366004612371565b6107c3565b3480156102ab57600080fd5b506102bf6102ba366004612317565b6107ee565b6040516101ce91906123ad565b3480156102d857600080fd5b50610267610bcc565b3480156102ed57600080fd5b5061027e600a5481565b34801561030357600080fd5b5061023c6daaeb6d7670e522a718067333cd4e81565b610267610327366004612371565b610c67565b34801561033857600080fd5b506101c161034736600461211a565b610c8c565b34801561035857600080fd5b5061023c610367366004612317565b610e01565b34801561037857600080fd5b5061027e600b5481565b34801561038e57600080fd5b5061027e61039d3660046124b6565b610e0c565b3480156103ae57600080fd5b50610267610e5b565b3480156103c357600080fd5b506009546001600160a01b031661023c565b3480156103e157600080fd5b506101c1610e6f565b6102676103f8366004612317565b610e7e565b34801561040957600080fd5b506102676104183660046124d1565b610faa565b34801561042957600080fd5b5061027e600c5481565b610267610441366004612508565b610fbe565b34801561045257600080fd5b506101c1610461366004612317565b610feb565b34801561047257600080fd5b506101c161048136600461211a565b611083565b34801561049257600080fd5b506101f76104a1366004612584565b61143d565b3480156104b257600080fd5b506102676104c13660046124b6565b61146b565b606060006040518060800160405280604e815260200161349c604e91399050600060405180610b600160405280610b3b81526020016135ba610b3b9139905060006105158561010001516114e1565b6105238661012001516114e1565b865161054c576040518060400160405280600581526020016466616c736560d81b81525061056a565b604051806040016040528060048152602001637472756560e01b8152505b876040015188606001516040516020016105889594939291906125d3565b60405160208183030381529060405290508085608001518660a001518760c0015188602001516105d5576040518060400160405280600581526020016466616c736560d81b8152506105f3565b604051806040016040528060048152602001637472756560e01b8152505b8960e001516106068b61014001516114e1565b60405160200161061c979695949392919061269a565b6040516020818303038152906040529050610659838284604051602001610645939291906127b3565b604051602081830303815290604052611574565b60405160200161066991906127f6565b6040516020818303038152906040529350505050919050565b60006301ffc9a760e01b6001600160e01b0319831614806106b357506380ac58cd60e01b6001600160e01b03198316145b806106ce5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106e390612834565b80601f016020809104026020016040519081016040528092919081815260200182805461070f90612834565b801561075c5780601f106107315761010080835404028352916020019161075c565b820191906000526020600020905b81548152906001019060200180831161073f57829003601f168201915b5050505050905090565b6000610771826116c7565b61078e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816107b4816116ee565b6107be83836117a7565b505050565b826001600160a01b03811633146107dd576107dd336116ee565b6107e8848484611847565b50505050565b6107f6611fc8565b6107fe611fc8565b6000600d610833856040518060400160405280600781526020016650616c6574746560c81b8152506000600d805490506119df565b815481106108435761084361286e565b90600052602060002001805480602002602001604051908101604052809291908181526020016000905b8282101561091957838290600052602060002001805461088c90612834565b80601f01602080910402602001604051908101604052809291908181526020018280546108b890612834565b80156109055780601f106108da57610100808354040283529160200191610905565b820191906000526020600020905b8154815290600101906020018083116108e857829003601f168201915b50505050508152602001906001019061086d565b50505050905061094d84604051806040016040528060088152602001671c185cdcd21a5b9d60c21b815250600060026119df565b60011461095b57600061095e565b60015b151582526040805180820190915260088152671b1a59da1d13dd5d60c21b6020820152610990908590600060026119df565b60011461099e5760006109a1565b60015b1515602083018190526109d057604051806040016040528060048152602001630233030360e41b8152506109ec565b806000815181106109e3576109e361286e565b60200260200101515b60e0830152805181906001908110610a0657610a0661286e565b602090810291909101015160608301528151610a3e57604051806040016040528060048152602001630233030360e41b815250610a5a565b80600281518110610a5157610a5161286e565b60200260200101515b6040830152805181906003908110610a7457610a7461286e565b60200260200101518260800181905250604051806040016040528060078152602001660233030303030360cc1b8152508260a0018190525080600281518110610abf57610abf61286e565b60200260200101518260c00181905250600e610afc85604051806040016040528060058152602001640eed2c8e8d60db1b815250600060046119df565b81548110610b0c57610b0c61286e565b906000526020600020015482610100018181525050600f610b4f85604051806040016040528060068152602001651a195a59da1d60d21b815250600060046119df565b81548110610b5f57610b5f61286e565b9060005260206000200154826101200181815250506010610ba38560405180604001604052806007815260200166666f6753697a6560c81b815250600060076119df565b81548110610bb357610bb361286e565b6000918252602090912001546101408301525092915050565b610bd4611a41565b604051600090339047908381818185875af1925050503d8060008114610c16576040519150601f19603f3d011682016040523d82523d6000602084013e610c1b565b606091505b5050905080610c645760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b826001600160a01b0381163314610c8157610c81336116ee565b6107e8848484611a9b565b60408051602081019091526000815281516060919015610cd357808360400151604051602001610cbd929190612884565b6040516020818303038152906040529050610cf6565b80604051602001610ce49190612926565b60405160208183030381529060405290505b826020015115610d3c57808360e00151610d148561014001516114e1565b604051602001610d2693929190612976565b6040516020818303038152906040529050610d5f565b80604051602001610d4d9190612a78565b60405160208183030381529060405290505b8083606001518460800151604051602001610d7c93929190612ac6565b6040516020818303038152906040529050808360a001518460c00151604051602001610daa93929190612b8a565b604051602081830303815290604052905080610dca8461010001516114e1565b610dd88561012001516114e1565b604051602001610dea93929190612c51565b60408051601f198184030181529190529392505050565b60006106ce82611ab6565b60006001600160a01b038216610e35576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e63611a41565b610e6d6000611b24565b565b6060600380546106e390612834565b600a5481610e8f6001546000540390565b610e999190612d3d565b1115610edc5760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b6044820152606401610c5b565b600c5433600090815260056020526040908190205483911c67ffffffffffffffff16610f089190612d3d565b1115610f4f5760405162461bcd60e51b81526020600482015260166024820152754d61782032206d696e74207065722077616c6c65742160501b6044820152606401610c5b565b34600b5482610f5e9190612d50565b1115610fa05760405162461bcd60e51b8152602060048201526011602482015270233ab73239903737ba1032b737bab3b41760791b6044820152606401610c5b565b610c643382611b76565b81610fb4816116ee565b6107be8383611b94565b836001600160a01b0381163314610fd857610fd8336116ee565b610fe485858585611c00565b5050505050565b60606000610ff8836114e1565b6040516020016110089190612d67565b60408051601f1981840301815260c0830190915260908083529092506000919061352a60208301399050600061103d856107ee565b9050611073838361104d84610c8c565b61105685611083565b61105f866104c6565b604051602001610645959493929190612d95565b6040516020016106699190612ea6565b6060806110e86110978461010001516114e1565b6040516020016110a79190612eeb565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261031360f41b908301529190611c44565b61114a6110f98561012001516114e1565b6040516020016111099190612f1a565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261032360f41b908301529190611c44565b6111a385604001516040516020016111629190612f4a565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261033360f41b908301529190611c44565b6111fc86606001516040516020016111bb9190612f7e565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261034360f41b908301529190611c44565b61125587608001516040516020016112149190612fa5565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261035360f41b908301529190611c44565b604051602001611269959493929190612fcc565b6040516020818303038152906040529050806112d48460a001516040516020016112939190613166565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261036360f41b908301529190611c44565b61132d8560c001516040516020016112ec919061319b565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261037360f41b908301529190611c44565b6113868660e0015160405160200161134591906131ce565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261038360f41b908301529190611c44565b6113e86113978861014001516114e1565b6040516020016113a791906131f4565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261039360f41b908301529190611c44565b6040516020016113fc959493929190613226565b604051602081830303815290604052905061141681611574565b60405160200161142691906132a2565b604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611473611a41565b6001600160a01b0381166114d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c5b565b610c6481611b24565b606060006114ee83611c73565b600101905060008167ffffffffffffffff81111561150e5761150e612026565b6040519080825280601f01601f191660200182016040528015611538576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461154257509392505050565b6060815160000361159357505060408051602081019091526000815290565b60006040518060600160405280604081526020016134ea60409139905060006003845160026115c29190612d3d565b6115cc91906132fd565b6115d7906004612d50565b67ffffffffffffffff8111156115ef576115ef612026565b6040519080825280601f01601f191660200182016040528015611619576020820181803683370190505b509050600182016020820185865187015b80821015611685576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061162a565b50506003865106600181146116a157600281146116b4576116bc565b603d6001830353603d60028303536116bc565b603d60018303535b509195945050505050565b60008054821080156106ce575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610c6457604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561175b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177f9190613311565b610c6457604051633b79c77360e21b81526001600160a01b0382166004820152602401610c5b565b60006117b282610e01565b9050336001600160a01b038216146117eb576117ce813361143d565b6117eb576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061185282611ab6565b9050836001600160a01b0316816001600160a01b0316146118855760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176118d2576118b5863361143d565b6118d257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166118f957604051633a954ecd60e21b815260040160405180910390fd5b801561190457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611996576001840160008181526004602052604081205490036119945760005481146119945760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080611a14856119ef886114e1565b604051602001611a0092919061332e565b604051602081830303815290604052611d4b565b905083611a21818561335d565b611a2b9083613370565b611a359190612d3d565b9150505b949350505050565b6009546001600160a01b03163314610e6d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c5b565b6107be83838360405180602001604052806000815250610fbe565b600081600054811015611b0b5760008181526004602052604081205490600160e01b82169003611b09575b80600003611b02575060001901600081815260046020526040902054611ae1565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b90828260405180602001604052806000815250611d7c565b5050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611c0b8484846107c3565b6001600160a01b0383163b156107e857611c2784848484611de2565b6107e8576040516368d2bf6b60e11b815260040160405180910390fd5b6060828285604051602001611c5b93929190613384565b60405160208183030381529060405290509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611cb25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611cde576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611cfc57662386f26fc10000830492506010015b6305f5e1008310611d14576305f5e100830492506008015b6127108310611d2857612710830492506004015b60648310611d3a576064830492506002015b600a83106106ce5760010192915050565b600081604051602001611d5e9190613425565b60408051601f19818403018152919052805160209091012092915050565b611d868383611eca565b6001600160a01b0383163b156107be576000548281035b611db06000868380600101945086611de2565b611dcd576040516368d2bf6b60e11b815260040160405180910390fd5b818110611d9d578160005414610fe457600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e17903390899088908890600401613441565b6020604051808303816000875af1925050508015611e52575060408051601f3d908101601f19168201909252611e4f9181019061347e565b60015b611eb0573d808015611e80576040519150601f19603f3d011682016040523d82523d6000602084013e611e85565b606091505b508051600003611ea8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a39565b6000805490829003611eef5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611f9e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611f66565b5081600003611fbf57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6040518061016001604052806000151581526020016000151581526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016000815260200160008152602001600081525090565b634e487b7160e01b600052604160045260246000fd5b604051610160810167ffffffffffffffff8111828210171561206057612060612026565b60405290565b8015158114610c6457600080fd5b803561207f81612066565b919050565b600067ffffffffffffffff8084111561209f5761209f612026565b604051601f8501601f19908116603f011681019082821181831017156120c7576120c7612026565b816040528093508581528686860111156120e057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261210b57600080fd5b611b0283833560208501612084565b60006020828403121561212c57600080fd5b813567ffffffffffffffff8082111561214457600080fd5b90830190610160828603121561215957600080fd5b61216161203c565b61216a83612074565b815261217860208401612074565b602082015260408301358281111561218f57600080fd5b61219b878286016120fa565b6040830152506060830135828111156121b357600080fd5b6121bf878286016120fa565b6060830152506080830135828111156121d757600080fd5b6121e3878286016120fa565b60808301525060a0830135828111156121fb57600080fd5b612207878286016120fa565b60a08301525060c08301358281111561221f57600080fd5b61222b878286016120fa565b60c08301525060e08301358281111561224357600080fd5b61224f878286016120fa565b60e083015250610100838101359082015261012080840135908201526101409283013592810192909252509392505050565b60005b8381101561229c578181015183820152602001612284565b50506000910152565b600081518084526122bd816020860160208601612281565b601f01601f19169290920160200192915050565b602081526000611b0260208301846122a5565b6001600160e01b031981168114610c6457600080fd5b60006020828403121561230c57600080fd5b8135611b02816122e4565b60006020828403121561232957600080fd5b5035919050565b80356001600160a01b038116811461207f57600080fd5b6000806040838503121561235a57600080fd5b61236383612330565b946020939093013593505050565b60008060006060848603121561238657600080fd5b61238f84612330565b925061239d60208501612330565b9150604084013590509250925092565b602081526123c060208201835115159052565b600060208301516123d5604084018215159052565b5060408301516101608060608501526123f26101808501836122a5565b91506060850151601f198086850301608087015261241084836122a5565b935060808701519150808685030160a087015261242d84836122a5565b935060a08701519150808685030160c087015261244a84836122a5565b935060c08701519150808685030160e087015261246784836122a5565b935060e0870151915061010081878603018188015261248685846122a5565b90880151610120888101919091528801516101408089019190915290970151929095019190915250929392505050565b6000602082840312156124c857600080fd5b611b0282612330565b600080604083850312156124e457600080fd5b6124ed83612330565b915060208301356124fd81612066565b809150509250929050565b6000806000806080858703121561251e57600080fd5b61252785612330565b935061253560208601612330565b925060408501359150606085013567ffffffffffffffff81111561255857600080fd5b8501601f8101871361256957600080fd5b61257887823560208401612084565b91505092959194509250565b6000806040838503121561259757600080fd5b6125a083612330565b91506125ae60208401612330565b90509250929050565b600081516125c9818560208601612281565b9290920192915050565b600086516125e5818460208b01612281565b622c683d60e81b9083019081528651612605816003840160208b01612281565b692c7061737348696e743d60b01b60039290910191820152855161263081600d840160208a01612281565b6b2c68696e74436f6c6f723d2760a01b600d9290910191820152845161265d816019840160208901612281565b6c272c77616c6c436f6c6f723d2760981b60199290910191820152835161268b816026840160208801612281565b01602601979650505050505050565b600088516126ac818460208d01612281565b6c272c63656c6c436f6c6f723d2760981b90830190815288516126d681600d840160208d01612281565b6d272c7374617274436f6c6f723d2760901b600d9290910191820152875161270581601b840160208c01612281565b6b272c656e64436f6c6f723d2760a01b601b92909101918201528651612732816027840160208b01612281565b6a272c6c696768744f75743d60a81b60279290910191820152855161275e816032840160208a01612281565b01612779603282016a2c666f67436f6c6f723d2760a81b9052565b612786603d8201866125b7565b69272c666f6753697a653d60b01b815290506127a5600a8201856125b7565b9a9950505050505050505050565b600084516127c5818460208901612281565b8451908301906127d9818360208901612281565b84519101906127ec818360208801612281565b0195945050505050565b7519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b815260008251612827816016850160208701612281565b9190910160160192915050565b600181811c9082168061284857607f821691505b60208210810361286857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60008351612896818460208801612281565b80830190507f7b2274726169745f74797065223a2248696e743f222c2276616c7565223a225981527f6573227d2c207b2274726169745f74797065223a2248696e7420436f6c6f722260208201526916113b30b63ab2911d1160b11b6040820152835161290a81604a840160208801612281565b62089f4b60ea1b604a9290910191820152604d01949350505050565b60008251612938818460208701612281565b7f7b2274726169745f74797065223a2248696e743f222c2276616c7565223a224e920191825250651bdb99489f4b60d21b6020820152602601919050565b60008451612988818460208901612281565b80830190507f7b2274726169745f74797065223a22466f67222c2276616c7565223a2259657381527f227d2c7b2274726169745f74797065223a22466f6720436f6c6f72222c227661602082015265363ab2911d1160d11b604082015284516129f8816046840160208901612281565b7f227d2c7b22646973706c61795f74797065223a226e756d626572222c22747261604692909101918201527f69745f74797065223a22466f672073697a65222c2276616c7565223a0000000060668201528351612a5c816082840160208801612281565b611f4b60f21b6082929091019182015260840195945050505050565b60008251612a8a818460208701612281565b7f7b2274726169745f74797065223a22466f67222c2276616c7565223a224e6f6e9201918252506319489f4b60e21b6020820152602401919050565b60008451612ad8818460208901612281565b80830190507f7b2274726169745f74797065223a2257616c6c20436f6c6f72222c2276616c7581526332911d1160e11b8060208301528551612b21816024850160208a01612281565b62089f4b60ea1b9201602481018390527f7b2274726169745f74797065223a2243656c6c20436f6c6f72222c2276616c756027820152604781019190915284519091612b7482604b850160208901612281565b604b9290910191820152604e0195945050505050565b60008451612b9c818460208901612281565b80830190507f7b2274726169745f74797065223a22537461727420436f6c6f72222c2276616c8152643ab2911d1160d91b60208201528451612be5816025840160208901612281565b62089f4b60ea1b6025929091019182018190527f7b2274726169745f74797065223a22456e6420436f6c6f72222c2276616c7565602883015262111d1160e91b60488301528451612c3d81604b850160208901612281565b604b920191820152604e0195945050505050565b60008451612c63818460208901612281565b80830190507f7b22646973706c61795f74797065223a226e756d626572222c2274726169745f808252753a3cb832911d112bb4b23a341116113b30b63ab2911d60511b60208301528551612cbe816036850160208a01612281565b611f4b60f21b6036939091019283015260388201527f74797065223a22486569676874222c2276616c7565223a00000000000000000060588201528351612d0c81606f840160208801612281565b607d60f81b606f929091019182015260700195945050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106ce576106ce612d27565b80820281158282048414176106ce576106ce612d27565b654d617a65202360d01b815260008251612d88816006850160208701612281565b9190910160060192915050565b683d913730b6b2911d1160b91b81528551600090612dba816009850160208b01612281565b72111610113232b9b1b934b83a34b7b7111d101160691b6009918401918201528651612ded81601c840160208b01612281565b71222c202261747472696275746573223a205b60701b601c92909101918201528551612e2081602e840160208a01612281565b6b2e96101134b6b0b3b2911d1160a11b602e92909101918201528451612e4d81603a840160208901612281565b731116101130b734b6b0ba34b7b72fbab936111d1160611b603a92909101918201528351612e8281604e840160208801612281565b612e99604e8284010161227d60f01b815260020190565b9998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612ede81601d850160208701612281565b91909101601d0192915050565b6602bb4b23a341d160cd1b815260008251612f0d816007850160208701612281565b9190910160070192915050565b6702432b4b3b43a1d160c51b815260008251612f3d816008850160208701612281565b9190910160080192915050565b6b02434b73a1021b7b637b91d160a51b815260008251612f7181600c850160208701612281565b91909101600c0192915050565b6b02bb0b6361021b7b637b91d160a51b815260008251612f7181600c850160208701612281565b6b021b2b6361021b7b637b91d160a51b815260008251612f7181600c850160208701612281565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203335302033353060408201527f223e203c7374796c653e2e6e6f726d616c207b2066696c6c3a2023464646464660608201527f463b20666f6e742d66616d696c793a2068656c7665746963613b20666f6e742d60808201527f73697a653a20313870783b20646f6d696e616e742d626173656c696e653a206260a08201527f6f74746f6d3b20746578742d616e63686f723a20746578743b7d203c2f73747960c08201527f6c653e203c726563742077696474683d223130302522206865696768743d223160e08201527518181291103334b6361e91119818181818181110179f60511b610100820152600061011687516131308183860160208c01612281565b8751908401906131468184840160208c01612281565b6127a561316061315a85848601018b6125b7565b896125b7565b876125b7565b6c029ba30b93a1021b7b637b91d1609d1b81526000825161318e81600d850160208701612281565b91909101600d0192915050565b6a022b7321021b7b637b91d160ad1b8152600082516131c181600b850160208701612281565b91909101600b0192915050565b6a02337b39021b7b637b91d160ad1b8152600082516131c181600b850160208701612281565b6902337b39029b4bd329d160b51b81526000825161321981600a850160208701612281565b91909101600a0192915050565b60008651613238818460208b01612281565b86519083019061324c818360208b01612281565b865191019061325f818360208a01612281565b8551910190613272818360208901612281565b8451910190613285818360208801612281565b651e17b9bb339f60d11b9101908152600601979650505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152600082516132da81601a850160208701612281565b91909101601a0192915050565b634e487b7160e01b600052601260045260246000fd5b60008261330c5761330c6132e7565b500490565b60006020828403121561332357600080fd5b8151611b0281612066565b60008351613340818460208801612281565b835190830190613354818360208801612281565b01949350505050565b818103818111156106ce576106ce612d27565b60008261337f5761337f6132e7565b500690565b69101e3a32bc3a103c1e9160b11b815283516000906133aa81600a850160208901612281565b651291103c9e9160d11b600a9184019182015284516133d0816010840160208901612281565b7112911031b630b9b99e913737b936b0b6111f60711b601092909101918201528351613403816022840160208801612281565b6701e17ba32bc3a1f160c51b60229290910191820152602a0195945050505050565b60008251613437818460208701612281565b9190910192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613474908301846122a5565b9695505050505050565b60006020828403121561349057600080fd5b8151611b02816122e456fe3c21444f43545950452068746d6c3e3c68746d6c206c616e673d27656e27203e203c686561643e203c6d65746120636861727365743d275554462d38273e203c7363726970743e2076617220773d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f412066756c6c79206f6e20636861696e206d617a652067616d652e20497420697320616c736f20796f7572207061737320746f206f7572206e657874203344206d617a6520636f6c6c656374696f6e2e20557365205753414420746f20636f6e74726f6c2074686520706c6179657220666f7220612062657474657220706c6179696e6720657870657269656e63652e202a2a20323b203c2f7363726970743e3c7374796c653e626f6479207b2077696474683a20313030253b206865696768743a20313030253b6261636b67726f756e642d636f6c6f723a20233535353b7d63616e766173207b706f736974696f6e3a206162736f6c7574653b746f703a2030253b6c6566743a2030253b2077696474683a20313030766d696e3b206865696768743a20313030766d696e3b626f782d736861646f773a203020302032707820233030303b7d2377696e207b706f736974696f6e3a206162736f6c7574653b746f703a2030253b6c6566743a2030253b6261636b67726f756e642d636f6c6f723a207267626128302c302c302c2e38293b746578742d616c69676e3a2063656e7465723b77696474683a20313030766d696e3b6865696768743a20313030766d696e3b636f6c6f723a20236565653b6f7061636974793a20303b646973706c61793a206e6f6e653b7472616e736974696f6e3a206f706163697479202e35733b7d2377696e2e73686f77696e67207b646973706c61793a20696e6c696e652d626c6f636b3b6f7061636974793a20313b7d2377696e2c20696e7075742c20627574746f6e207b666f6e743a20323070782048656c7665746963613b7d696e707574207b77696474683a20343070783b7d627574746f6e207b70616464696e673a203870783b7d3c2f7374796c653e203c2f686561643e203c626f64793e3c63616e7661732069643d633e3c2f63616e7661733e3c6469762069643d77696e20636c6173733d73686f77696e673e3c703e3c627574746f6e2069643d626567696e427574746f6e3e53746172743c2f627574746f6e3e3c2f703e3c2f6469763e3c7363726970743e76617220733d632e77696474683d632e6865696768743d3531322c66696e6973683d21312c6374783d632e676574436f6e746578742827326427292c6d617a653d5b5d2c646972733d5b7b783a2d322c793a307d2c7b783a302c793a2d327d2c7b783a322c793a307d2c7b783a302c793a327d5d2c676f616c3d7b7d2c7061737365643d5b5d3b66756e6374696f6e2067656e4d617a6528297b6d617a652e6c656e6774683d302c7061737365642e6c656e6774683d302c66696e6973683d21313b666f722876617220653d303b653c773b2b2b65297b6d617a652e70757368285b5d292c7061737365642e70757368285b5d293b666f722876617220613d303b613c683b2b2b61296d617a655b655d2e707573682830292c7061737365645b655d2e70757368282131297d76617220733d7b783a312c793a317d2c723d5b5d2c693d7b693a302c743a737d3b6d617a655b315d5b315d3d312c7061737365645b315d5b315d3d313b646f7b766172206e3d5b7b783a732e782b646972735b305d2e782c793a732e792b646972735b305d2e792c6f3a307d2c7b783a732e782b646972735b315d2e782c793a732e792b646972735b315d2e792c6f3a317d2c7b783a732e782b646972735b325d2e782c793a732e792b646972735b325d2e792c6f3a327d2c7b783a732e782b646972735b335d2e782c793a732e792b646972735b335d2e792c6f3a337d5d2e66696c7465722866756e6374696f6e2865297b72657475726e20303c652e782626652e783c772626303c652e792626652e793c682626303d3d3d6d617a655b652e785d5b652e795d7d297d7768696c6528303c6e2e6c656e6774683f28722e707573682873292c6e3d6e5b4d6174682e72616e646f6d28292a6e2e6c656e6774687c305d2c6d617a655b28732e782b6e2e78292f325d5b28732e792b6e2e79292f325d3d312c6d617a655b28733d6e292e785d5b732e795d3d31293a28692e693c722e6c656e677468262628692e693d722e6c656e6774682c692e743d73292c722e706f7028292c733d725b722e6c656e6774682d315d292c303c722e6c656e677468293b676f616c3d692e747d66756e6374696f6e2072656e6465724d617a6528297b6374782e66696c6c5374796c653d2723323232272c6374782e66696c6c5265637428302c302c732c73293b76617220653d4d6174682e6d696e28732f772c732f68293b6374782e7472616e736c61746528732f322d772a652f322c732f322d682a652f32293b666f722876617220613d303b613c773b2b2b6129666f722876617220723d303b723c683b2b2b72296374782e66696c6c5374796c653d6d617a655b615d5b725d3f63656c6c436f6c6f723a77616c6c436f6c6f722c6374782e66696c6c5374796c653d7061737365645b615d5b725d26267061737348696e743f68696e74436f6c6f723a6374782e66696c6c5374796c652c6374782e66696c6c5374796c653d216c696768744f75747c7c66696e6973687c7c4d6174682e61627328612d706c617965722e78292a2a322b4d6174682e61627328722d706c617965722e79292a2a323c666f6753697a653f6374782e66696c6c5374796c653a666f67436f6c6f722c6374782e66696c6c5265637428612a652d2e352c722a652d2e352c652b312c652b31293b6374782e66696c6c5374796c653d656e64436f6c6f722c6374782e66696c6c5265637428676f616c2e782a652d652f322c676f616c2e792a652d652f322c322a652c322a65292c6374782e66696c6c5374796c653d7374617274436f6c6f722c6374782e66696c6c5265637428706c617965722e782a652b652f342c706c617965722e792a652b652f342c652f322c652f32292c6374782e7472616e736c617465282d28732f322d772a652f32292c2d28732f322d682a652f3229297d766172206b6579733d5b7b6c3a5b33372c37322c36355d2c707265737365643a21317d2c7b6c3a5b33382c37352c38375d2c707265737365643a21317d2c7b6c3a5b33392c37362c36385d2c707265737365643a21317d2c7b6c3a5b34302c37342c38335d2c707265737365643a21317d5d2c6c617374496e7075743d446174652e6e6f7728292c706c617965723d7b783a312c793a317d3b66756e6374696f6e20616e696d28297b77696e646f772e72657175657374416e696d6174696f6e4672616d6528616e696d292c6b6579732e6d61702866756e6374696f6e28652c61297b652e70726573736564262632303c446174652e6e6f7728292d6c617374496e707574262628653d706c617965722e782b646972735b615d2e782f322c613d706c617965722e792b646972735b615d2e792f322c6d617a655b655d5b615d29262628706c617965722e783d652c706c617965722e793d612c7061737365645b655d5b615d3d21302c6c617374496e7075743d446174652e6e6f7728292c653d3d3d676f616c2e78292626613d3d3d676f616c2e7926262866696e6973683d21302c77696e2e636c6173734c6973742e616464282773686f77696e672729297d292c72656e6465724d617a6528297d67656e4d617a6528292c616e696d28292c77696e646f772e6164644576656e744c697374656e657228276b6579646f776e272c66756e6374696f6e2861297b6b6579732e6d61702866756e6374696f6e2865297b2d313c652e6c2e696e6465784f6628612e6b6579436f646529262628652e707265737365643d2130297d297d292c77696e646f772e6164644576656e744c697374656e657228276b65797570272c66756e6374696f6e2861297b6b6579732e6d61702866756e6374696f6e2865297b2d313c652e6c2e696e6465784f6628612e6b6579436f646529262628652e707265737365643d2131297d297d292c626567696e427574746f6e2e6164644576656e744c697374656e65722827636c69636b272c66756e6374696f6e28297b77696e2e636c6173734c6973742e72656d6f7665282773686f77696e6727292c706c617965722e783d706c617965722e793d312c67656e4d617a6528297d293b203c2f7363726970743e203c2f626f64793e3c2f68746d6c3ea2646970667358221220cd3dc50e668d25c4657312ac1ceaf3e1ea65bdcfb8f75f2af464c77d6c21dbd764736f6c63430008110033
Deployed Bytecode
0x60806040526004361061019c5760003560e01c80636352211e116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610446578063d465831114610466578063e985e9c514610486578063f2fde38b146104a657600080fd5b8063a22cb465146103fd578063b228d9251461041d578063b88d4fde1461043357600080fd5b8063715018a6116100c6578063715018a6146103a25780638da5cb5b146103b757806395d89b41146103d5578063a0712d68146103ea57600080fd5b80636352211e1461034c5780636817c76c1461036c57806370a082311461038257600080fd5b806323b872dd116101595780634035cc6c116101335780634035cc6c146102e157806341f43434146102f757806342842e0e14610319578063602ab2ed1461032c57600080fd5b806323b872dd1461028c5780633929e6ac1461029f5780633ccfd60b146102cc57600080fd5b80630164745e146101a157806301ffc9a7146101d757806306fdde0314610207578063081812fc1461021c578063095ea7b31461025457806318160ddd14610269575b600080fd5b3480156101ad57600080fd5b506101c16101bc36600461211a565b6104c6565b6040516101ce91906122d1565b60405180910390f35b3480156101e357600080fd5b506101f76101f23660046122fa565b610682565b60405190151581526020016101ce565b34801561021357600080fd5b506101c16106d4565b34801561022857600080fd5b5061023c610237366004612317565b610766565b6040516001600160a01b0390911681526020016101ce565b610267610262366004612347565b6107aa565b005b34801561027557600080fd5b50600154600054035b6040519081526020016101ce565b61026761029a366004612371565b6107c3565b3480156102ab57600080fd5b506102bf6102ba366004612317565b6107ee565b6040516101ce91906123ad565b3480156102d857600080fd5b50610267610bcc565b3480156102ed57600080fd5b5061027e600a5481565b34801561030357600080fd5b5061023c6daaeb6d7670e522a718067333cd4e81565b610267610327366004612371565b610c67565b34801561033857600080fd5b506101c161034736600461211a565b610c8c565b34801561035857600080fd5b5061023c610367366004612317565b610e01565b34801561037857600080fd5b5061027e600b5481565b34801561038e57600080fd5b5061027e61039d3660046124b6565b610e0c565b3480156103ae57600080fd5b50610267610e5b565b3480156103c357600080fd5b506009546001600160a01b031661023c565b3480156103e157600080fd5b506101c1610e6f565b6102676103f8366004612317565b610e7e565b34801561040957600080fd5b506102676104183660046124d1565b610faa565b34801561042957600080fd5b5061027e600c5481565b610267610441366004612508565b610fbe565b34801561045257600080fd5b506101c1610461366004612317565b610feb565b34801561047257600080fd5b506101c161048136600461211a565b611083565b34801561049257600080fd5b506101f76104a1366004612584565b61143d565b3480156104b257600080fd5b506102676104c13660046124b6565b61146b565b606060006040518060800160405280604e815260200161349c604e91399050600060405180610b600160405280610b3b81526020016135ba610b3b9139905060006105158561010001516114e1565b6105238661012001516114e1565b865161054c576040518060400160405280600581526020016466616c736560d81b81525061056a565b604051806040016040528060048152602001637472756560e01b8152505b876040015188606001516040516020016105889594939291906125d3565b60405160208183030381529060405290508085608001518660a001518760c0015188602001516105d5576040518060400160405280600581526020016466616c736560d81b8152506105f3565b604051806040016040528060048152602001637472756560e01b8152505b8960e001516106068b61014001516114e1565b60405160200161061c979695949392919061269a565b6040516020818303038152906040529050610659838284604051602001610645939291906127b3565b604051602081830303815290604052611574565b60405160200161066991906127f6565b6040516020818303038152906040529350505050919050565b60006301ffc9a760e01b6001600160e01b0319831614806106b357506380ac58cd60e01b6001600160e01b03198316145b806106ce5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106e390612834565b80601f016020809104026020016040519081016040528092919081815260200182805461070f90612834565b801561075c5780601f106107315761010080835404028352916020019161075c565b820191906000526020600020905b81548152906001019060200180831161073f57829003601f168201915b5050505050905090565b6000610771826116c7565b61078e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816107b4816116ee565b6107be83836117a7565b505050565b826001600160a01b03811633146107dd576107dd336116ee565b6107e8848484611847565b50505050565b6107f6611fc8565b6107fe611fc8565b6000600d610833856040518060400160405280600781526020016650616c6574746560c81b8152506000600d805490506119df565b815481106108435761084361286e565b90600052602060002001805480602002602001604051908101604052809291908181526020016000905b8282101561091957838290600052602060002001805461088c90612834565b80601f01602080910402602001604051908101604052809291908181526020018280546108b890612834565b80156109055780601f106108da57610100808354040283529160200191610905565b820191906000526020600020905b8154815290600101906020018083116108e857829003601f168201915b50505050508152602001906001019061086d565b50505050905061094d84604051806040016040528060088152602001671c185cdcd21a5b9d60c21b815250600060026119df565b60011461095b57600061095e565b60015b151582526040805180820190915260088152671b1a59da1d13dd5d60c21b6020820152610990908590600060026119df565b60011461099e5760006109a1565b60015b1515602083018190526109d057604051806040016040528060048152602001630233030360e41b8152506109ec565b806000815181106109e3576109e361286e565b60200260200101515b60e0830152805181906001908110610a0657610a0661286e565b602090810291909101015160608301528151610a3e57604051806040016040528060048152602001630233030360e41b815250610a5a565b80600281518110610a5157610a5161286e565b60200260200101515b6040830152805181906003908110610a7457610a7461286e565b60200260200101518260800181905250604051806040016040528060078152602001660233030303030360cc1b8152508260a0018190525080600281518110610abf57610abf61286e565b60200260200101518260c00181905250600e610afc85604051806040016040528060058152602001640eed2c8e8d60db1b815250600060046119df565b81548110610b0c57610b0c61286e565b906000526020600020015482610100018181525050600f610b4f85604051806040016040528060068152602001651a195a59da1d60d21b815250600060046119df565b81548110610b5f57610b5f61286e565b9060005260206000200154826101200181815250506010610ba38560405180604001604052806007815260200166666f6753697a6560c81b815250600060076119df565b81548110610bb357610bb361286e565b6000918252602090912001546101408301525092915050565b610bd4611a41565b604051600090339047908381818185875af1925050503d8060008114610c16576040519150601f19603f3d011682016040523d82523d6000602084013e610c1b565b606091505b5050905080610c645760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b826001600160a01b0381163314610c8157610c81336116ee565b6107e8848484611a9b565b60408051602081019091526000815281516060919015610cd357808360400151604051602001610cbd929190612884565b6040516020818303038152906040529050610cf6565b80604051602001610ce49190612926565b60405160208183030381529060405290505b826020015115610d3c57808360e00151610d148561014001516114e1565b604051602001610d2693929190612976565b6040516020818303038152906040529050610d5f565b80604051602001610d4d9190612a78565b60405160208183030381529060405290505b8083606001518460800151604051602001610d7c93929190612ac6565b6040516020818303038152906040529050808360a001518460c00151604051602001610daa93929190612b8a565b604051602081830303815290604052905080610dca8461010001516114e1565b610dd88561012001516114e1565b604051602001610dea93929190612c51565b60408051601f198184030181529190529392505050565b60006106ce82611ab6565b60006001600160a01b038216610e35576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e63611a41565b610e6d6000611b24565b565b6060600380546106e390612834565b600a5481610e8f6001546000540390565b610e999190612d3d565b1115610edc5760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b6044820152606401610c5b565b600c5433600090815260056020526040908190205483911c67ffffffffffffffff16610f089190612d3d565b1115610f4f5760405162461bcd60e51b81526020600482015260166024820152754d61782032206d696e74207065722077616c6c65742160501b6044820152606401610c5b565b34600b5482610f5e9190612d50565b1115610fa05760405162461bcd60e51b8152602060048201526011602482015270233ab73239903737ba1032b737bab3b41760791b6044820152606401610c5b565b610c643382611b76565b81610fb4816116ee565b6107be8383611b94565b836001600160a01b0381163314610fd857610fd8336116ee565b610fe485858585611c00565b5050505050565b60606000610ff8836114e1565b6040516020016110089190612d67565b60408051601f1981840301815260c0830190915260908083529092506000919061352a60208301399050600061103d856107ee565b9050611073838361104d84610c8c565b61105685611083565b61105f866104c6565b604051602001610645959493929190612d95565b6040516020016106699190612ea6565b6060806110e86110978461010001516114e1565b6040516020016110a79190612eeb565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261031360f41b908301529190611c44565b61114a6110f98561012001516114e1565b6040516020016111099190612f1a565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261032360f41b908301529190611c44565b6111a385604001516040516020016111629190612f4a565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261033360f41b908301529190611c44565b6111fc86606001516040516020016111bb9190612f7e565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261034360f41b908301529190611c44565b61125587608001516040516020016112149190612fa5565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261035360f41b908301529190611c44565b604051602001611269959493929190612fcc565b6040516020818303038152906040529050806112d48460a001516040516020016112939190613166565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261036360f41b908301529190611c44565b61132d8560c001516040516020016112ec919061319b565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261037360f41b908301529190611c44565b6113868660e0015160405160200161134591906131ce565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261038360f41b908301529190611c44565b6113e86113978861014001516114e1565b6040516020016113a791906131f4565b60408051601f19818403018152828201825260018352600360fc1b60208481019190915282518084019093526002835261039360f41b908301529190611c44565b6040516020016113fc959493929190613226565b604051602081830303815290604052905061141681611574565b60405160200161142691906132a2565b604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611473611a41565b6001600160a01b0381166114d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c5b565b610c6481611b24565b606060006114ee83611c73565b600101905060008167ffffffffffffffff81111561150e5761150e612026565b6040519080825280601f01601f191660200182016040528015611538576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461154257509392505050565b6060815160000361159357505060408051602081019091526000815290565b60006040518060600160405280604081526020016134ea60409139905060006003845160026115c29190612d3d565b6115cc91906132fd565b6115d7906004612d50565b67ffffffffffffffff8111156115ef576115ef612026565b6040519080825280601f01601f191660200182016040528015611619576020820181803683370190505b509050600182016020820185865187015b80821015611685576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061162a565b50506003865106600181146116a157600281146116b4576116bc565b603d6001830353603d60028303536116bc565b603d60018303535b509195945050505050565b60008054821080156106ce575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610c6457604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561175b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177f9190613311565b610c6457604051633b79c77360e21b81526001600160a01b0382166004820152602401610c5b565b60006117b282610e01565b9050336001600160a01b038216146117eb576117ce813361143d565b6117eb576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061185282611ab6565b9050836001600160a01b0316816001600160a01b0316146118855760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176118d2576118b5863361143d565b6118d257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166118f957604051633a954ecd60e21b815260040160405180910390fd5b801561190457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611996576001840160008181526004602052604081205490036119945760005481146119945760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080611a14856119ef886114e1565b604051602001611a0092919061332e565b604051602081830303815290604052611d4b565b905083611a21818561335d565b611a2b9083613370565b611a359190612d3d565b9150505b949350505050565b6009546001600160a01b03163314610e6d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c5b565b6107be83838360405180602001604052806000815250610fbe565b600081600054811015611b0b5760008181526004602052604081205490600160e01b82169003611b09575b80600003611b02575060001901600081815260046020526040902054611ae1565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b90828260405180602001604052806000815250611d7c565b5050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611c0b8484846107c3565b6001600160a01b0383163b156107e857611c2784848484611de2565b6107e8576040516368d2bf6b60e11b815260040160405180910390fd5b6060828285604051602001611c5b93929190613384565b60405160208183030381529060405290509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611cb25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611cde576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611cfc57662386f26fc10000830492506010015b6305f5e1008310611d14576305f5e100830492506008015b6127108310611d2857612710830492506004015b60648310611d3a576064830492506002015b600a83106106ce5760010192915050565b600081604051602001611d5e9190613425565b60408051601f19818403018152919052805160209091012092915050565b611d868383611eca565b6001600160a01b0383163b156107be576000548281035b611db06000868380600101945086611de2565b611dcd576040516368d2bf6b60e11b815260040160405180910390fd5b818110611d9d578160005414610fe457600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e17903390899088908890600401613441565b6020604051808303816000875af1925050508015611e52575060408051601f3d908101601f19168201909252611e4f9181019061347e565b60015b611eb0573d808015611e80576040519150601f19603f3d011682016040523d82523d6000602084013e611e85565b606091505b508051600003611ea8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a39565b6000805490829003611eef5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611f9e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611f66565b5081600003611fbf57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6040518061016001604052806000151581526020016000151581526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016000815260200160008152602001600081525090565b634e487b7160e01b600052604160045260246000fd5b604051610160810167ffffffffffffffff8111828210171561206057612060612026565b60405290565b8015158114610c6457600080fd5b803561207f81612066565b919050565b600067ffffffffffffffff8084111561209f5761209f612026565b604051601f8501601f19908116603f011681019082821181831017156120c7576120c7612026565b816040528093508581528686860111156120e057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261210b57600080fd5b611b0283833560208501612084565b60006020828403121561212c57600080fd5b813567ffffffffffffffff8082111561214457600080fd5b90830190610160828603121561215957600080fd5b61216161203c565b61216a83612074565b815261217860208401612074565b602082015260408301358281111561218f57600080fd5b61219b878286016120fa565b6040830152506060830135828111156121b357600080fd5b6121bf878286016120fa565b6060830152506080830135828111156121d757600080fd5b6121e3878286016120fa565b60808301525060a0830135828111156121fb57600080fd5b612207878286016120fa565b60a08301525060c08301358281111561221f57600080fd5b61222b878286016120fa565b60c08301525060e08301358281111561224357600080fd5b61224f878286016120fa565b60e083015250610100838101359082015261012080840135908201526101409283013592810192909252509392505050565b60005b8381101561229c578181015183820152602001612284565b50506000910152565b600081518084526122bd816020860160208601612281565b601f01601f19169290920160200192915050565b602081526000611b0260208301846122a5565b6001600160e01b031981168114610c6457600080fd5b60006020828403121561230c57600080fd5b8135611b02816122e4565b60006020828403121561232957600080fd5b5035919050565b80356001600160a01b038116811461207f57600080fd5b6000806040838503121561235a57600080fd5b61236383612330565b946020939093013593505050565b60008060006060848603121561238657600080fd5b61238f84612330565b925061239d60208501612330565b9150604084013590509250925092565b602081526123c060208201835115159052565b600060208301516123d5604084018215159052565b5060408301516101608060608501526123f26101808501836122a5565b91506060850151601f198086850301608087015261241084836122a5565b935060808701519150808685030160a087015261242d84836122a5565b935060a08701519150808685030160c087015261244a84836122a5565b935060c08701519150808685030160e087015261246784836122a5565b935060e0870151915061010081878603018188015261248685846122a5565b90880151610120888101919091528801516101408089019190915290970151929095019190915250929392505050565b6000602082840312156124c857600080fd5b611b0282612330565b600080604083850312156124e457600080fd5b6124ed83612330565b915060208301356124fd81612066565b809150509250929050565b6000806000806080858703121561251e57600080fd5b61252785612330565b935061253560208601612330565b925060408501359150606085013567ffffffffffffffff81111561255857600080fd5b8501601f8101871361256957600080fd5b61257887823560208401612084565b91505092959194509250565b6000806040838503121561259757600080fd5b6125a083612330565b91506125ae60208401612330565b90509250929050565b600081516125c9818560208601612281565b9290920192915050565b600086516125e5818460208b01612281565b622c683d60e81b9083019081528651612605816003840160208b01612281565b692c7061737348696e743d60b01b60039290910191820152855161263081600d840160208a01612281565b6b2c68696e74436f6c6f723d2760a01b600d9290910191820152845161265d816019840160208901612281565b6c272c77616c6c436f6c6f723d2760981b60199290910191820152835161268b816026840160208801612281565b01602601979650505050505050565b600088516126ac818460208d01612281565b6c272c63656c6c436f6c6f723d2760981b90830190815288516126d681600d840160208d01612281565b6d272c7374617274436f6c6f723d2760901b600d9290910191820152875161270581601b840160208c01612281565b6b272c656e64436f6c6f723d2760a01b601b92909101918201528651612732816027840160208b01612281565b6a272c6c696768744f75743d60a81b60279290910191820152855161275e816032840160208a01612281565b01612779603282016a2c666f67436f6c6f723d2760a81b9052565b612786603d8201866125b7565b69272c666f6753697a653d60b01b815290506127a5600a8201856125b7565b9a9950505050505050505050565b600084516127c5818460208901612281565b8451908301906127d9818360208901612281565b84519101906127ec818360208801612281565b0195945050505050565b7519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b815260008251612827816016850160208701612281565b9190910160160192915050565b600181811c9082168061284857607f821691505b60208210810361286857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60008351612896818460208801612281565b80830190507f7b2274726169745f74797065223a2248696e743f222c2276616c7565223a225981527f6573227d2c207b2274726169745f74797065223a2248696e7420436f6c6f722260208201526916113b30b63ab2911d1160b11b6040820152835161290a81604a840160208801612281565b62089f4b60ea1b604a9290910191820152604d01949350505050565b60008251612938818460208701612281565b7f7b2274726169745f74797065223a2248696e743f222c2276616c7565223a224e920191825250651bdb99489f4b60d21b6020820152602601919050565b60008451612988818460208901612281565b80830190507f7b2274726169745f74797065223a22466f67222c2276616c7565223a2259657381527f227d2c7b2274726169745f74797065223a22466f6720436f6c6f72222c227661602082015265363ab2911d1160d11b604082015284516129f8816046840160208901612281565b7f227d2c7b22646973706c61795f74797065223a226e756d626572222c22747261604692909101918201527f69745f74797065223a22466f672073697a65222c2276616c7565223a0000000060668201528351612a5c816082840160208801612281565b611f4b60f21b6082929091019182015260840195945050505050565b60008251612a8a818460208701612281565b7f7b2274726169745f74797065223a22466f67222c2276616c7565223a224e6f6e9201918252506319489f4b60e21b6020820152602401919050565b60008451612ad8818460208901612281565b80830190507f7b2274726169745f74797065223a2257616c6c20436f6c6f72222c2276616c7581526332911d1160e11b8060208301528551612b21816024850160208a01612281565b62089f4b60ea1b9201602481018390527f7b2274726169745f74797065223a2243656c6c20436f6c6f72222c2276616c756027820152604781019190915284519091612b7482604b850160208901612281565b604b9290910191820152604e0195945050505050565b60008451612b9c818460208901612281565b80830190507f7b2274726169745f74797065223a22537461727420436f6c6f72222c2276616c8152643ab2911d1160d91b60208201528451612be5816025840160208901612281565b62089f4b60ea1b6025929091019182018190527f7b2274726169745f74797065223a22456e6420436f6c6f72222c2276616c7565602883015262111d1160e91b60488301528451612c3d81604b850160208901612281565b604b920191820152604e0195945050505050565b60008451612c63818460208901612281565b80830190507f7b22646973706c61795f74797065223a226e756d626572222c2274726169745f808252753a3cb832911d112bb4b23a341116113b30b63ab2911d60511b60208301528551612cbe816036850160208a01612281565b611f4b60f21b6036939091019283015260388201527f74797065223a22486569676874222c2276616c7565223a00000000000000000060588201528351612d0c81606f840160208801612281565b607d60f81b606f929091019182015260700195945050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106ce576106ce612d27565b80820281158282048414176106ce576106ce612d27565b654d617a65202360d01b815260008251612d88816006850160208701612281565b9190910160060192915050565b683d913730b6b2911d1160b91b81528551600090612dba816009850160208b01612281565b72111610113232b9b1b934b83a34b7b7111d101160691b6009918401918201528651612ded81601c840160208b01612281565b71222c202261747472696275746573223a205b60701b601c92909101918201528551612e2081602e840160208a01612281565b6b2e96101134b6b0b3b2911d1160a11b602e92909101918201528451612e4d81603a840160208901612281565b731116101130b734b6b0ba34b7b72fbab936111d1160611b603a92909101918201528351612e8281604e840160208801612281565b612e99604e8284010161227d60f01b815260020190565b9998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612ede81601d850160208701612281565b91909101601d0192915050565b6602bb4b23a341d160cd1b815260008251612f0d816007850160208701612281565b9190910160070192915050565b6702432b4b3b43a1d160c51b815260008251612f3d816008850160208701612281565b9190910160080192915050565b6b02434b73a1021b7b637b91d160a51b815260008251612f7181600c850160208701612281565b91909101600c0192915050565b6b02bb0b6361021b7b637b91d160a51b815260008251612f7181600c850160208701612281565b6b021b2b6361021b7b637b91d160a51b815260008251612f7181600c850160208701612281565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203335302033353060408201527f223e203c7374796c653e2e6e6f726d616c207b2066696c6c3a2023464646464660608201527f463b20666f6e742d66616d696c793a2068656c7665746963613b20666f6e742d60808201527f73697a653a20313870783b20646f6d696e616e742d626173656c696e653a206260a08201527f6f74746f6d3b20746578742d616e63686f723a20746578743b7d203c2f73747960c08201527f6c653e203c726563742077696474683d223130302522206865696768743d223160e08201527518181291103334b6361e91119818181818181110179f60511b610100820152600061011687516131308183860160208c01612281565b8751908401906131468184840160208c01612281565b6127a561316061315a85848601018b6125b7565b896125b7565b876125b7565b6c029ba30b93a1021b7b637b91d1609d1b81526000825161318e81600d850160208701612281565b91909101600d0192915050565b6a022b7321021b7b637b91d160ad1b8152600082516131c181600b850160208701612281565b91909101600b0192915050565b6a02337b39021b7b637b91d160ad1b8152600082516131c181600b850160208701612281565b6902337b39029b4bd329d160b51b81526000825161321981600a850160208701612281565b91909101600a0192915050565b60008651613238818460208b01612281565b86519083019061324c818360208b01612281565b865191019061325f818360208a01612281565b8551910190613272818360208901612281565b8451910190613285818360208801612281565b651e17b9bb339f60d11b9101908152600601979650505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152600082516132da81601a850160208701612281565b91909101601a0192915050565b634e487b7160e01b600052601260045260246000fd5b60008261330c5761330c6132e7565b500490565b60006020828403121561332357600080fd5b8151611b0281612066565b60008351613340818460208801612281565b835190830190613354818360208801612281565b01949350505050565b818103818111156106ce576106ce612d27565b60008261337f5761337f6132e7565b500690565b69101e3a32bc3a103c1e9160b11b815283516000906133aa81600a850160208901612281565b651291103c9e9160d11b600a9184019182015284516133d0816010840160208901612281565b7112911031b630b9b99e913737b936b0b6111f60711b601092909101918201528351613403816022840160208801612281565b6701e17ba32bc3a1f160c51b60229290910191820152602a0195945050505050565b60008251613437818460208701612281565b9190910192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613474908301846122a5565b9695505050505050565b60006020828403121561349057600080fd5b8151611b02816122e456fe3c21444f43545950452068746d6c3e3c68746d6c206c616e673d27656e27203e203c686561643e203c6d65746120636861727365743d275554462d38273e203c7363726970743e2076617220773d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f412066756c6c79206f6e20636861696e206d617a652067616d652e20497420697320616c736f20796f7572207061737320746f206f7572206e657874203344206d617a6520636f6c6c656374696f6e2e20557365205753414420746f20636f6e74726f6c2074686520706c6179657220666f7220612062657474657220706c6179696e6720657870657269656e63652e202a2a20323b203c2f7363726970743e3c7374796c653e626f6479207b2077696474683a20313030253b206865696768743a20313030253b6261636b67726f756e642d636f6c6f723a20233535353b7d63616e766173207b706f736974696f6e3a206162736f6c7574653b746f703a2030253b6c6566743a2030253b2077696474683a20313030766d696e3b206865696768743a20313030766d696e3b626f782d736861646f773a203020302032707820233030303b7d2377696e207b706f736974696f6e3a206162736f6c7574653b746f703a2030253b6c6566743a2030253b6261636b67726f756e642d636f6c6f723a207267626128302c302c302c2e38293b746578742d616c69676e3a2063656e7465723b77696474683a20313030766d696e3b6865696768743a20313030766d696e3b636f6c6f723a20236565653b6f7061636974793a20303b646973706c61793a206e6f6e653b7472616e736974696f6e3a206f706163697479202e35733b7d2377696e2e73686f77696e67207b646973706c61793a20696e6c696e652d626c6f636b3b6f7061636974793a20313b7d2377696e2c20696e7075742c20627574746f6e207b666f6e743a20323070782048656c7665746963613b7d696e707574207b77696474683a20343070783b7d627574746f6e207b70616464696e673a203870783b7d3c2f7374796c653e203c2f686561643e203c626f64793e3c63616e7661732069643d633e3c2f63616e7661733e3c6469762069643d77696e20636c6173733d73686f77696e673e3c703e3c627574746f6e2069643d626567696e427574746f6e3e53746172743c2f627574746f6e3e3c2f703e3c2f6469763e3c7363726970743e76617220733d632e77696474683d632e6865696768743d3531322c66696e6973683d21312c6374783d632e676574436f6e746578742827326427292c6d617a653d5b5d2c646972733d5b7b783a2d322c793a307d2c7b783a302c793a2d327d2c7b783a322c793a307d2c7b783a302c793a327d5d2c676f616c3d7b7d2c7061737365643d5b5d3b66756e6374696f6e2067656e4d617a6528297b6d617a652e6c656e6774683d302c7061737365642e6c656e6774683d302c66696e6973683d21313b666f722876617220653d303b653c773b2b2b65297b6d617a652e70757368285b5d292c7061737365642e70757368285b5d293b666f722876617220613d303b613c683b2b2b61296d617a655b655d2e707573682830292c7061737365645b655d2e70757368282131297d76617220733d7b783a312c793a317d2c723d5b5d2c693d7b693a302c743a737d3b6d617a655b315d5b315d3d312c7061737365645b315d5b315d3d313b646f7b766172206e3d5b7b783a732e782b646972735b305d2e782c793a732e792b646972735b305d2e792c6f3a307d2c7b783a732e782b646972735b315d2e782c793a732e792b646972735b315d2e792c6f3a317d2c7b783a732e782b646972735b325d2e782c793a732e792b646972735b325d2e792c6f3a327d2c7b783a732e782b646972735b335d2e782c793a732e792b646972735b335d2e792c6f3a337d5d2e66696c7465722866756e6374696f6e2865297b72657475726e20303c652e782626652e783c772626303c652e792626652e793c682626303d3d3d6d617a655b652e785d5b652e795d7d297d7768696c6528303c6e2e6c656e6774683f28722e707573682873292c6e3d6e5b4d6174682e72616e646f6d28292a6e2e6c656e6774687c305d2c6d617a655b28732e782b6e2e78292f325d5b28732e792b6e2e79292f325d3d312c6d617a655b28733d6e292e785d5b732e795d3d31293a28692e693c722e6c656e677468262628692e693d722e6c656e6774682c692e743d73292c722e706f7028292c733d725b722e6c656e6774682d315d292c303c722e6c656e677468293b676f616c3d692e747d66756e6374696f6e2072656e6465724d617a6528297b6374782e66696c6c5374796c653d2723323232272c6374782e66696c6c5265637428302c302c732c73293b76617220653d4d6174682e6d696e28732f772c732f68293b6374782e7472616e736c61746528732f322d772a652f322c732f322d682a652f32293b666f722876617220613d303b613c773b2b2b6129666f722876617220723d303b723c683b2b2b72296374782e66696c6c5374796c653d6d617a655b615d5b725d3f63656c6c436f6c6f723a77616c6c436f6c6f722c6374782e66696c6c5374796c653d7061737365645b615d5b725d26267061737348696e743f68696e74436f6c6f723a6374782e66696c6c5374796c652c6374782e66696c6c5374796c653d216c696768744f75747c7c66696e6973687c7c4d6174682e61627328612d706c617965722e78292a2a322b4d6174682e61627328722d706c617965722e79292a2a323c666f6753697a653f6374782e66696c6c5374796c653a666f67436f6c6f722c6374782e66696c6c5265637428612a652d2e352c722a652d2e352c652b312c652b31293b6374782e66696c6c5374796c653d656e64436f6c6f722c6374782e66696c6c5265637428676f616c2e782a652d652f322c676f616c2e792a652d652f322c322a652c322a65292c6374782e66696c6c5374796c653d7374617274436f6c6f722c6374782e66696c6c5265637428706c617965722e782a652b652f342c706c617965722e792a652b652f342c652f322c652f32292c6374782e7472616e736c617465282d28732f322d772a652f32292c2d28732f322d682a652f3229297d766172206b6579733d5b7b6c3a5b33372c37322c36355d2c707265737365643a21317d2c7b6c3a5b33382c37352c38375d2c707265737365643a21317d2c7b6c3a5b33392c37362c36385d2c707265737365643a21317d2c7b6c3a5b34302c37342c38335d2c707265737365643a21317d5d2c6c617374496e7075743d446174652e6e6f7728292c706c617965723d7b783a312c793a317d3b66756e6374696f6e20616e696d28297b77696e646f772e72657175657374416e696d6174696f6e4672616d6528616e696d292c6b6579732e6d61702866756e6374696f6e28652c61297b652e70726573736564262632303c446174652e6e6f7728292d6c617374496e707574262628653d706c617965722e782b646972735b615d2e782f322c613d706c617965722e792b646972735b615d2e792f322c6d617a655b655d5b615d29262628706c617965722e783d652c706c617965722e793d612c7061737365645b655d5b615d3d21302c6c617374496e7075743d446174652e6e6f7728292c653d3d3d676f616c2e78292626613d3d3d676f616c2e7926262866696e6973683d21302c77696e2e636c6173734c6973742e616464282773686f77696e672729297d292c72656e6465724d617a6528297d67656e4d617a6528292c616e696d28292c77696e646f772e6164644576656e744c697374656e657228276b6579646f776e272c66756e6374696f6e2861297b6b6579732e6d61702866756e6374696f6e2865297b2d313c652e6c2e696e6465784f6628612e6b6579436f646529262628652e707265737365643d2130297d297d292c77696e646f772e6164644576656e744c697374656e657228276b65797570272c66756e6374696f6e2861297b6b6579732e6d61702866756e6374696f6e2865297b2d313c652e6c2e696e6465784f6628612e6b6579436f646529262628652e707265737365643d2131297d297d292c626567696e427574746f6e2e6164644576656e744c697374656e65722827636c69636b272c66756e6374696f6e28297b77696e2e636c6173734c6973742e72656d6f7665282773686f77696e6727292c706c617965722e783d706c617965722e793d312c67656e4d617a6528297d293b203c2f7363726970743e203c2f626f64793e3c2f68746d6c3ea2646970667358221220cd3dc50e668d25c4657312ac1ceaf3e1ea65bdcfb8f75f2af464c77d6c21dbd764736f6c63430008110033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.