ERC-721
Overview
Max Total Supply
0 WEB
Holders
282
Market
Volume (24H)
0.0382 ETH
Min Price (24H)
$100.35 @ 0.038152 ETH
Max Price (24H)
$100.35 @ 0.038152 ETH
Other Info
Token Contract
Balance
0 WEBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Web
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import { Base64 } from "base64-sol/base64.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./interfaces/IDelegationRegistry.sol"; import "./interfaces/IDescriptor.sol"; contract Web is ERC721, Ownable, ReentrancyGuard { using Strings for uint256; IDelegationRegistry delegationRegistry = IDelegationRegistry(0x00000000000076A84feF008CDAbe6409d2FE638B); struct TokenData { string seed; string name; uint8 color; uint8 complexity; uint8 coverage; } string[] public colorOptions = [ '#FF0000', '#FF8000', '#FFFF00', '#80FF00', '#00FF00', '#00FF80', '#00FFFF', '#0080FF', '#0000FF', '#8000FF', '#FF00FF', '#FF0080' ]; string[3] public complexityOptions = ['Simple', 'Medium', 'Intricate']; string[3] public coverageOptions = ['Thin', 'Medium', 'Full']; TokenData[] public tokenData; bytes32 public holderMerkleRoot = 0x9c4647684312cdd1cd10365dc25ce3be8aae724cd4654d13d91deda5417d4c25; // 20% discount bytes32 public fpMembersMerkleRoot = 0xe79d621b6ce06c4c74de82ba8f7a7e320228f93cde3e368de3d5e268b74e1c2d; // 20% discount bytes32 public communitiesMerkleRoot = 0x31605546a4c8b9934eedbb27b9de88bb7121c4bfc1f4b753f1305e6d9885faff; // 15% discount uint256 internal immutable FUNDS_SEND_GAS_LIMIT = 210_000; SalesConfig public config; struct SalesConfig { uint64 startTime; uint64 endTime; uint256 startPriceInWei; // 1 eth uint256 endPriceInWei; // .1 eth address payable fundsRecipient; } mapping(uint256 => bool) public tokenIsMinted; uint256 private nextAvailableRandomId; uint256 public supplyCount; uint256 public maxSupply = 1000; /// @dev this work is entirely on chain but we'll serve static images as thumbnails string public ipfsHash = 'bafybeib2zkka7bqpuucbbirwu2g6vjen66buetxovijrafsh7wuhdjvdbu'; string public externalUrl = 'https://web.leegte.org/?id='; /// @dev optional descriptor in case we need to adjust on chain elements address public descriptor; event NewMint(address indexed _owner, uint256 indexed _tokenId); constructor() ERC721("Web", "WEB") { config.startTime = uint64(1695225600); config.endTime = uint64(1695225600 + 3600); config.startPriceInWei = 1000000000000000000; // 1 eth config.endPriceInWei = 100000000000000000; // .1 eth config.fundsRecipient = payable(0x9220e3df5f4A8439B7DecfbB9f39BE98c188F5f2); } function getCurrentPrice() public view returns (uint256) { uint256 elapsedTime = ((block.timestamp - config.startTime) / 10 ) * 10; uint256 duration = config.endTime - config.startTime; uint256 halflife = 950; // adjust this to adjust speed of decay if (block.timestamp < config.startTime) { return config.startPriceInWei; } if (elapsedTime >= duration) { return config.endPriceInWei; } // h/t artblocks for exponential decaying price math uint256 decayedPrice = config.startPriceInWei; // Divide by two (via bit-shifting) for the number of entirely completed // half-lives that have elapsed since auction start time. decayedPrice >>= elapsedTime / halflife; // Perform a linear interpolation between partial half-life points, to // approximate the current place on a perfect exponential decay curve. decayedPrice -= (decayedPrice * (elapsedTime % halflife)) / halflife / 2; if (decayedPrice < config.endPriceInWei) { // Price may not decay below stay `basePrice`. return config.endPriceInWei; } decayedPrice = (decayedPrice / 1000000000000000) * 1000000000000000; return decayedPrice; } function _mintWithChecks(uint256 tokenId, bytes32[] calldata merkleProof, address vault) internal { require(block.timestamp >= config.startTime && block.timestamp <= config.endTime, "Sale inactive"); uint256 currentPrice = getCurrentPrice(); if (merkleProof.length > 0) { // check delegate.cash to see if this sender is a delegate for a vault bool senderIsVaultDelegate = delegationRegistry.checkDelegateForAll(msg.sender, vault); address addressToCheck = senderIsVaultDelegate ? vault : msg.sender; // check address against merkle roots for various allowlists and then apply appropriate discount bool isCommunity = checkMerkleProof(merkleProof, addressToCheck, communitiesMerkleRoot); bool isHolder = checkMerkleProof(merkleProof, addressToCheck, holderMerkleRoot); bool isFpMember = checkMerkleProof(merkleProof, addressToCheck, fpMembersMerkleRoot); if (isHolder || isFpMember) { currentPrice = (currentPrice * 80) / 100; // 20% off } else if (isCommunity) { currentPrice = (currentPrice * 85) / 100; // 15% off } } require(msg.value >= currentPrice, "Not enough ether"); tokenIsMinted[tokenId] = true; supplyCount++; _safeMint(msg.sender, tokenId); emit NewMint(msg.sender, tokenId); } function mintSpecific(uint256 tokenId, bytes32[] calldata merkleProof, address vault) external payable nonReentrant { require(tokenId < maxSupply, "Invalid token requested"); require(!_exists(tokenId), "Token already minted!"); _mintWithChecks(tokenId, merkleProof, vault); } function mintRandom(bytes32[] calldata merkleProof, address vault) external payable nonReentrant { require(supplyCount < 1000, "All tokens minted"); uint256 nextAvailable = this._findAvailable(nextAvailableRandomId); nextAvailableRandomId = nextAvailable + 1; _mintWithChecks(nextAvailable, merkleProof, vault); } /// @dev if the one requested is already minted, try the next one. this can /// run out of gas in cases where few people mintRandom and all mintSpecific mints /// are consolidated in specific regions (highly unlikely) function _findAvailable(uint256 index) public view returns (uint256) { if (tokenIsMinted[index] == true) { return _findAvailable(index + 1); } else { return index; } } string public templateA = '<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"></head><body><script>let e;var t,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function i(e){return e&&e.__esModule?e.default:e}var r={};r=\'html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{font-size:100%;font:inherit;vertical-align:baseline;border:0;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}\';var o={};o="html,body{width:100%;height:100%;margin:0;padding:0}.container{width:100%;height:100%;display:flex;position:relative}.element{box-sizing:border-box;flex-grow:1;flex-shrink:1;min-width:0;min-height:0;display:flex}input,button{box-sizing:border-box;max-width:100%}select{width:100%}";var a={init:e=>{var t,n,i,r;e+="";let o=function(e){let t=1779033703,n=3144134277,i=1013904242,r=2773480762;for(let o=0,a;o<e.length;o++)t=n^Math.imul(t^(a=e.charCodeAt(o)),597399067),n=i^Math.imul(n^a,2869860233),i=r^Math.imul(i^a,951274213),r=t^Math.imul(r^a,2716044179);return t=Math.imul(i^t>>>18,597399067),n=Math.imul(r^n>>>22,2869860233),i=Math.imul(t^i>>>17,951274213),r=Math.imul(n^r>>>19,2716044179),[(t^n^i^r)>>>0,(n^t)>>>0,(i^t)>>>0,(r^t)>>>0]}(e),a=(t=o[0],n=o[1],i=o[2],r=o[3],function(){t>>>=0,n>>>=0,i>>>=0,r>>>=0;var e=t+n|0;return t=n^n>>>9,n=i+(i<<3)|0,i=i<<21|i>>>11,e=e+(r=r+1|0)|0,i=i+e|0,(e>>>0)/4294967296});return{value:()=>a(),range:(e=0,t=1)=>e+a()*(t-e),rangeInteger:(e=0,t=1)=>e+Math.round(a()*(t-e)),pick:e=>e[Math.floor(a()*e.length)],probability:e=>a()<e,shuffle:e=>{let t=e.length,n,i;for(;0!==t;)i=Math.floor(a()*t),t-=1,n=e[t],e[t]=e[i],e[i]=n;return e}}}};function l(e,t,n){return Math.min(Math.max(e,t),n)}var c={init:e=>{let t={r:e.rangeInteger(0,255),g:e.rangeInteger(0,255),b:e.rangeInteger(0,255)},n={min:0,max:255},i=e.rangeInteger(50);function r(){let r=e.rangeInteger(1,i);t.r+=e.rangeInteger(-r,r),t.r=l(t.r,n.min,n.max),t.g+=e.rangeInteger(-r,r),t.g=l(t.g,n.min,n.max),t.b+=e.rangeInteger(-r,r),t.b=l(t.b,n.min,n.max)}return{single:()=>(function(){r();let e={...t};return e})(),set:()=>(r(),{low:{r:l(t.r-30,n.min,n.max),g:l(t.g-30,n.min,n.max),b:l(t.b-30,n.min,n.max)},mid:{r:t.r,g:t.g,b:t.b},high:{r:l(t.r+30,n.min,n.max),g:l(t.g+30,n.min,n.max),b:l(t.b+30,n.min,n.max)}})}},stringify:(e,t=1)=>`rgba(${e.r},${e.g},${e.b}, ${t})`,distanceSquared:(e,t)=>Math.pow(e.r-t.r,2)+Math.pow(e.g-t.g,2)+Math.pow(e.b-t.b,2),rgbToHsv:e=>{let t,n=e.r/255,i=e.g/255,r=e.b/255,o=Math.max(n,i,r),a=Math.min(n,i,r),l=o-a;if(o==a)t=0;else{switch(o){case n:t=(i-r)/l+(i<r?6:0);break;case i:t=(r-n)/l+2;break;case r:t=(n-i)/l+4}t/=6}return{h:t,s:0==o?0:l/o,v:o}}};const s=a.init("JRLxSPRPSxJK"),d="Document".split("");d[0]=" "+d[0].toUpperCase();const g=s.shuffle(function(e){let t=[];return!function n(i){if(1===i)t.push([...e]);else for(let t=0;t<i;t++)n(i-1),function(t,n){let i=e[t];e[t]=e[n],e[n]=i}(i%2?0:t,i-1)}(e.length),t}(d));\nn.oid=\''; string public templateB = '\',\n[/*@__PURE__*/i(r),/*@__PURE__*/i(o)].forEach(e=>{let t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t)});const m=a.init("0x5cfcf4"),h={MAX_LEVELS:5,MICRO_CLUSTER_PROBABILITY:.05},u={NONE:0,RADIO_BUTTON:1,SELECT:2,INPUT:3,BUTTON:4,IMAGE:5},f=[66,145,239,305,330,380,401,487,516,754,786,791,935],b=Array(1e3).fill(0).map(function(){let e="";for(let t=0;t<16;t++)e+=m.rangeInteger(0,256).toString(16).padStart(2,"0");return e}),p=({generate:e=>{let t=g.slice(0,e).map(e=>e.join(""));return t}}).generate(1e3),y=n.oid||((e=decodeURIComponent((window.location.search.match(RegExp("(?:[?|&]id=)([^&]+)"))||[,""])[1].replace(/\\+/g,"%20"))||null)&&b.includes(e)||(e=b[911],window.history.replaceState({},"",`?id=${e}`)),e),x=(Object.keys(t=function(e){Object.keys(e).forEach(t=>{e[t].color=c.rgbToHsv(e[t].mainColor).h});let t=Object.keys(e).map(t=>e[t].color),n=Math.min(...t),i=Math.max(...t);return Object.keys(e).forEach(t=>{e[t].color=(e[t].color-n)/(i-n)}),e}(function(e){Object.keys(e).forEach(t=>{let n=e[t].elements;e[t].coverage=function(e){let t=0,n=.4*Math.min(1,1-(e.margin-70)/30)+.6;return function e(n,i){if(n.visibility&&1!==n.basis)t+=n.basis*i*n.coverage*(0!==n.alignment?.5:1);else for(let t of(i*=n.basis,n.children))e(t,i)}(e,n),t}(n)});let t=Object.keys(e).reduce((t,n)=>{let i=e[n].coverage;return t.min=Math.min(t.min,i),t.max=Math.max(t.max,i),t},{min:1/0,max:-1/0});return Object.keys(e).forEach(n=>{e[n].coverage=(e[n].coverage-t.min)/(t.max-t.min),e[n].coverage=Math.max(.001,Math.min(.999,e[n].coverage))}),e}(function(e){Object.keys(e).forEach(t=>{e[t].complexity=e[t].elements.descendants.length});let t=Object.keys(e).reduce((t,n)=>{let i=e[n].complexity;return t.min=Math.min(t.min,i),t.max=Math.max(t.max,i),t},{min:1/0,max:-1/0});return Object.keys(e).forEach(n=>{e[n].complexity=Math.pow((e[n].complexity-t.min)/(t.max-t.min),.5),e[n].coverage=Math.max(.001,Math.min(.999,e[n].coverage))}),e}(b.reduce((e,t)=>(e[t]=function(e){let t=a.init(e),n=c.init(t),i=t.value(),r={margin:{value:i>.5?i:0,min:0,max:10},variance:{value:t.value(),min:0,max:1},fragmentation:{value:t.value(),min:2,max:5},distribution:{value:t.value(),min:0,max:1},padding:{value:i>.5?t.value():0,min:0,max:.05},alignment:{value:t.value(),min:0,max:1},filtering:{value:t.value(),min:0,max:1},raise:{value:t.value(),min:0,max:3},shadow:{value:t.value(),min:0,max:1},coverage:{value:t.value(),min:.5,max:1}},o=function e(i,r,o=!1){var a,l,c;if(r>=(o?h.MAX_LEVELS+1:t.rangeInteger(3,h.MAX_LEVELS)))return;let g=[],m=r===Math.floor((l=s((a=i.raise).value,0),c=a.min,l*(a.max+1-c)+c)),u=t.rangeInteger(o?1:0,8-r);0===r&&0===u&&(u=t.rangeInteger(1,i.fragmentation.max));let f=r===h.MAX_LEVELS-1||0===u,b=t.value()*r>2*t.value();for(let n=0;n<u;n++){let n=e(i,r+1,o||t.probability(h.MICRO_CLUSTER_PROBABILITY));n&&g.push(n)}let p=d(i.distribution,i.variance.value),y=Array(u).fill(0).map(()=>t.range(0,1)),x=y.reduce((e,t)=>e+t,0);y=y.map(e=>e/x).map(e=>e*p+1/u*(1-p)),g.forEach((e,t)=>{e.basis=y[t]});let v=[,,,,].fill(0).map(()=>d(i.padding,i.variance.value)),M=b?t.rangeInteger(1,3):0,k=!0;k=!!o||(r<3?!t.probability(d(i.filtering,i.variance.value)):t.probability(.2*r));let w=m?d(i.shadow,1):0,E=m?t.rangeInteger(1,5):0,I=m?d(i.coverage,1):1,O=f&&!o?t.rangeInteger(0,5):0,$=n.set(),T=n.set(),C={background:$.mid,border:{top:r%2==0?$.high:$.low,left:r%2==0?$.high:$.low,bottom:r%2==0?$.low:$.high,right:r%2==0?$.low:$.high},content:T},S={basis:1,margin:0===r?d(i.margin,0):0,padding:v,alignment:M,visibility:k,shadow:w,parent:null,content:O,contentSize:t.value(),contentValue:t.value(),colors:C,zIndex:E,coverage:I,children:g,link:null,descendants:[...g.map(e=>e.descendants),...g].flat()};return g.forEach(e=>{e.parent=S}),S}(r,0);if(!o.descendants.some(e=>e.visibility)){let e=t.pick(o.descendants);e.visibility=!0}if(!o.descendants.some(e=>0!==e.content&&e.visibility)){let e=t.pick(o.descendants);e.content=t.rangeInteger(1,5)}let l={id:e,mainColor:n.set().low,elements:o};return l;function s(e,n){let i=Math.max(0,e-n/2),r=Math.min(1,e+n/2);return t.range(i,r)}function d(e,t){var n,i;return n=s(e.value,t),i=e.min,n*(e.max-i)+i}}(t),e),{}))))).forEach((e,n)=>{t[e].title=p[n]}),Object.keys(t).map(e=>(delete t[e].distance,delete t[e].axis,delete t[e].direction,t[e])).filter(e=>e.id!==y).forEach(e=>{let n=[{axis:"complexity",distance:Math.abs(e.complexity-t[y].complexity)},{axis:"coverage",distance:Math.abs(e.coverage-t[y].coverage)},{axis:"color",distance:Math.sqrt(Math.pow(e.mainColor.r/255-t[y].mainColor.r/255,2)+Math.pow(e.mainColor.g/255-t[y].mainColor.g/255,2)+Math.pow(e.mainColor.b/255-t[y].mainColor.b/255,2))}],i=n.reduce((e,{axis:t,distance:n})=>e+n,0),r=n.sort((e,t)=>e.distance-t.distance)[0].axis,o=e[r]>t[y][r]?"greater":"less";e.distance=i,e.axis=r,e.direction=o}),t),v=function(){let e=document.createElement("div");return e.classList.add("container"),document.body.appendChild(e),e}();x[y].title;const M=[];function k(e,t,n){return Object.values(e).filter(({axis:e,direction:i})=>e===t&&i===n).sort((e,t)=>e.distance-t.distance).map(({id:e})=>e)}const w={complexity:{prev:k(x,"complexity","less"),next:k(x,"complexity","greater")},coverage:{prev:k(x,"coverage","less"),next:k(x,"coverage","greater")},color:{prev:k(x,"color","less"),next:k(x,"color","greater")},force:[]};f.includes(b.indexOf(y)+1)?w.force=[b[b.indexOf(y)+10]]:f.includes(b.indexOf(y))&&(w.force=[b[b.indexOf(y)-10]]),function(e,t,i,r){t.innerHTML="",document.title="Web - "+e.title,document.body.style.backgroundColor=c.stringify(e.mainColor);let o={complexity:{prev:0,next:0},coverage:{prev:0,next:0},force:0};e.elements.descendants.forEach(t=>{if(!t.visibility)return;let n=null;if(t.content!==u.NONE){if(o.force<r.force.length)n=r.force[o.force],o.force++,M.push(n);else switch(t.content){case u.RADIO_BUTTON:n=r.complexity.prev[o.complexity.prev%r.complexity.prev.length],o.complexity.prev++;break;case u.SELECT:n=r.complexity.next[o.complexity.next%r.complexity.next.length],o.complexity.next++;break;case u.INPUT:n=r.coverage.prev[o.coverage.prev%r.coverage.prev.length],o.coverage.prev++;break;case u.BUTTON:n=r.coverage.next[o.coverage.next%r.coverage.next.length],o.coverage.next++;break;case u.IMAGE:let a=t.colors.background,l=Object.keys(i).reduce((t,n)=>{let r=i[n],o=c.distanceSquared(a,r);return o<t.distance&&n!=e.id&&(t.distance=o,t.color=a,t.id=n),t},{distance:1/0,color:null,id:null});n=l.id}}n&&(t.link=n,M.push(n))}),function e(t,i,r){let o=document.createElement("div");if(o.classList.add("element"),o.style.flexBasis=`${100*i.basis}%`,o.style.flexGrow=1,o.style.flexDirection=r%2?"column":"row",o.style.padding=i.padding.map(e=>`${100*e}%`).join(" "),o.style.margin=`min(${10*Math.round(i.margin)}px, ${Math.round(i.margin)}%)`,o.style.width=`${100*i.coverage}%`,i.visibility&&(o.style.backgroundColor=c.stringify(i.colors.background),o.style.borderWidth="1px",o.style.borderStyle="solid",o.style.borderColor=`${c.stringify(i.colors.border.top)} ${c.stringify(i.colors.border.right)} ${c.stringify(i.colors.border.bottom)} ${c.stringify(i.colors.border.left)}`),0!==i.alignment&&(o.style.alignSelf=["start","center","end"][i.alignment-1]),0!==i.shadow&&i.visibility){let e=Math.floor(15*i.shadow+5);o.style.boxShadow=`${e}px ${e}px ${2*e}px #000C`,o.style.zIndex=i.zIndex}if(i.visibility){let e=null,t=null;switch(i.content){case u.NONE:break;case u.RADIO_BUTTON:e="change";let r=Array(Math.floor(3*i.contentSize)+2).fill(0).map(()=>\'<input type="radio" name="r">\');r[Math.floor(i.contentValue*r.length)]=\'<input type="radio" name="r" checked>\',t=`<form>${r.join("")}</form>`;break;case u.SELECT:e="change",t=`<select style="background-color: ${c.stringify(i.colors.content.high)}"">${Array.from({length:Math.floor(15*i.contentSize+2)}).fill("<option></option>").join("")}</select>`;break;case u.INPUT:e="click",t=`<input type="text" style="width: ${18*(Math.floor(6*i.contentSize)+3)}px; height: 18px; background-color: ${c.stringify(i.colors.content.high)}; border-top-color: ${c.stringify(i.colors.content.high)}; border-left-color: ${c.stringify(i.colors.content.high)}; border-right-color: ${c.stringify(i.colors.content.low)}; border-bottom-color: ${c.stringify(i.colors.content.low)};">`;break;case u.BUTTON:e="click",t=`<button style="width: ${18*(Math.floor(4*i.contentSize)+1)}px; height: 18px; background-color: ${c.stringify(i.colors.content.low)}; border-top-color: ${c.stringify(i.colors.content.high)}; border-left-color: ${c.stringify(i.colors.content.high)}; border-right-color: ${c.stringify(i.colors.content.low)}; border-bottom-color: ${c.stringify(i.colors.content.low)};"></button>`;break;case u.IMAGE:t=null===n.oid?`<a href=${i.link?`?id=${i.link}`:"#"} style="display: block; border: none;"><img src="#" style="width: 100%; height: 100%;"></a>`:\'<img src="#" style="width: 100%; height: 100%;">\'}null!==t&&(o.innerHTML=t,i.link&&null!==e&&null===n.oid&&o.children[0].addEventListener(e,e=>{window.location.href=`?id=${i.link}`}))}t.appendChild(o),i.children.forEach(t=>{e(o,t,r+1)})}(t,e.elements,0)}(x[y],v,Object.keys(x).reduce((e,t)=>(e[t]=x[t].mainColor,e),{}),w),Object.keys(x).forEach(e=>{let t=[];x[e].elements.visibility&&t.push(x[e].elements.colors.background),t.push(...x[e].elements.descendants.filter(e=>e.visibility).map(e=>e.colors.background)),x[e].colors=t,delete x[e].elements});const E=document.createElement("canvas"),I=E.getContext("2d");E.width=16,E.height=16,function(e,t,n,i){t.fillStyle=c.stringify(e.mainColor,1),t.fillRect(n,i,16,16);let r=e.colors;t.fillStyle=c.stringify(r[0],1),t.fillRect(n+2,i+2,12,12),r=r.map(e=>{let t=c.rgbToHsv(e);return{...e,...t}}).sort((e,t)=>t.s-e.s);for(let e=0;e<12;e++)for(let o=0;o<12;o++){let a=o+12*e,l=a/144,s=Math.floor(l*(r.length-1)),d=r[s];t.fillStyle=c.stringify(d,1),t.fillRect(n+2+e,i+2+o,1,1)}}(x[y],I,0,0);const O=document.createElement("link");O.type="image/x-icon",O.rel="shortcut icon",O.href=E.toDataURL("image/x-icon"),document.getElementsByTagName("head")[0].appendChild(O);</script></body></html>'; function tokenURI(uint256 tokenId) public view override returns (string memory) { if (descriptor != address(0)) { return IDescriptor(descriptor).tokenURI(tokenId); } TokenData memory token = tokenData[tokenId]; string memory description = "Web is a monument to the hyperlink, a poem dedicated to machine learning and a computer's d\u00E9rive within itself.\\n \\n The project is a fully on-chain generative cross-linked network of webpages released in partnership with Fingerprints DAO and is a coproduction with Superposition. Blockchain development by Jake Allen."; string memory finalTemplate = Base64.encode(bytes(string(abi.encodePacked(templateA, token.seed, templateB)))); string memory json1 = string(abi.encodePacked('{"name":"', token.name, '", "description":"', description, '", "image": "ipfs://', ipfsHash, '/', tokenId.toString() ,'.png", ')); string memory json2 = string(abi.encodePacked('"animation_url":"data:text/html;base64,', finalTemplate, '", "attributes":[{"trait_type":"Color","value":"', colorOptions[token.color],'"}, {"trait_type":"Complexity", "value":"', complexityOptions[token.complexity],'"}, {"trait_type": "Coverage", "value": "', coverageOptions[token.coverage],'"}], "external_url": "', externalUrl, token.seed, '"}')); string memory encodedJson = Base64.encode(bytes(string(abi.encodePacked(json1, json2)))); return string(abi.encodePacked('data:application/json;base64,', encodedJson)); } /// @dev check whether the merkleProof is valid for a given address and root function checkMerkleProof( bytes32[] calldata merkleProof, address _address, bytes32 _root ) public pure returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_address)); return MerkleProof.verify(merkleProof, _root, leaf); } //======================= ADMIN FUNCTIONS ================================ function updateConfig( uint64 startTime, uint64 endTime, uint256 startPriceInWei, // 1 eth uint256 endPriceInWei, // .1 eth address payable fundsRecipient ) external onlyOwner { config.startTime = startTime; config.endTime = endTime; config.startPriceInWei = startPriceInWei; config.endPriceInWei = endPriceInWei; config.fundsRecipient = fundsRecipient; } function withdraw() external nonReentrant { uint256 funds = address(this).balance; // Payout recipient (bool sent, ) = config.fundsRecipient.call{ value: funds, gas: FUNDS_SEND_GAS_LIMIT }(""); require(sent, "Ether not withdrawn"); } function adminMint(address to, uint256 tokenId) external onlyOwner { tokenIsMinted[tokenId] = true; supplyCount++; _safeMint(to, tokenId); } function addTokenData(TokenData[] memory _tokenData) external onlyOwner { for (uint i = 0; i < _tokenData.length; i++) { tokenData.push(_tokenData[i]); } } function updateMerkleRoots(bytes32 _holderRoot, bytes32 _fbMemberRoot, bytes32 _communityRoot) external onlyOwner { holderMerkleRoot = _holderRoot; fpMembersMerkleRoot = _fbMemberRoot; communitiesMerkleRoot = _communityRoot; } function updateIPFSHash(string memory _hash) external onlyOwner { ipfsHash = _hash; } function updateExternalURL(string memory _url) external onlyOwner { externalUrl = _url; } function updateDelegateAddress(address _address) external onlyOwner { delegationRegistry = IDelegationRegistry(_address); } function setDescriptor(address _descriptor) external onlyOwner { descriptor = _descriptor; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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.9.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; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, 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 << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity ^0.8.17; /** * @title An immutable registry contract to be deployed as a standalone primitive * @dev See EIP-5639, new project launches can read previous cold wallet -> hot wallet delegations * from here and integrate those permissions into their flow */ interface IDelegationRegistry { /// @notice Delegation type enum DelegationType { NONE, ALL, CONTRACT, TOKEN } /// @notice Info about a single delegation, used for onchain enumeration struct DelegationInfo { DelegationType type_; address vault; address delegate; address contract_; uint256 tokenId; } /// @notice Info about a single contract-level delegation struct ContractDelegation { address contract_; address delegate; } /// @notice Info about a single token-level delegation struct TokenDelegation { address contract_; uint256 tokenId; address delegate; } /// @notice Emitted when a user delegates their entire wallet event DelegateForAll(address vault, address delegate, bool value); /// @notice Emitted when a user delegates a specific contract event DelegateForContract(address vault, address delegate, address contract_, bool value); /// @notice Emitted when a user delegates a specific token event DelegateForToken(address vault, address delegate, address contract_, uint256 tokenId, bool value); /// @notice Emitted when a user revokes all delegations event RevokeAllDelegates(address vault); /// @notice Emitted when a user revoes all delegations for a given delegate event RevokeDelegate(address vault, address delegate); /** * ----------- WRITE ----------- */ /** * @notice Allow the delegate to act on your behalf for all contracts * @param delegate The hotwallet to act on your behalf * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking */ function delegateForAll(address delegate, bool value) external; /** * @notice Allow the delegate to act on your behalf for a specific contract * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking */ function delegateForContract(address delegate, address contract_, bool value) external; /** * @notice Allow the delegate to act on your behalf for a specific token * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param tokenId The token id for the token you're delegating * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking */ function delegateForToken(address delegate, address contract_, uint256 tokenId, bool value) external; /** * @notice Revoke all delegates */ function revokeAllDelegates() external; /** * @notice Revoke a specific delegate for all their permissions * @param delegate The hotwallet to revoke */ function revokeDelegate(address delegate) external; /** * @notice Remove yourself as a delegate for a specific vault * @param vault The vault which delegated to the msg.sender, and should be removed */ function revokeSelf(address vault) external; /** * ----------- READ ----------- */ /** * @notice Returns all active delegations a given delegate is able to claim on behalf of * @param delegate The delegate that you would like to retrieve delegations for * @return info Array of DelegationInfo structs */ function getDelegationsByDelegate(address delegate) external view returns (DelegationInfo[] memory); /** * @notice Returns an array of wallet-level delegates for a given vault * @param vault The cold wallet who issued the delegation * @return addresses Array of wallet-level delegates for a given vault */ function getDelegatesForAll(address vault) external view returns (address[] memory); /** * @notice Returns an array of contract-level delegates for a given vault and contract * @param vault The cold wallet who issued the delegation * @param contract_ The address for the contract you're delegating * @return addresses Array of contract-level delegates for a given vault and contract */ function getDelegatesForContract(address vault, address contract_) external view returns (address[] memory); /** * @notice Returns an array of contract-level delegates for a given vault's token * @param vault The cold wallet who issued the delegation * @param contract_ The address for the contract holding the token * @param tokenId The token id for the token you're delegating * @return addresses Array of contract-level delegates for a given vault's token */ function getDelegatesForToken(address vault, address contract_, uint256 tokenId) external view returns (address[] memory); /** * @notice Returns all contract-level delegations for a given vault * @param vault The cold wallet who issued the delegations * @return delegations Array of ContractDelegation structs */ function getContractLevelDelegations(address vault) external view returns (ContractDelegation[] memory delegations); /** * @notice Returns all token-level delegations for a given vault * @param vault The cold wallet who issued the delegations * @return delegations Array of TokenDelegation structs */ function getTokenLevelDelegations(address vault) external view returns (TokenDelegation[] memory delegations); /** * @notice Returns true if the address is delegated to act on the entire vault * @param delegate The hotwallet to act on your behalf * @param vault The cold wallet who issued the delegation */ function checkDelegateForAll(address delegate, address vault) external view returns (bool); /** * @notice Returns true if the address is delegated to act on your behalf for a token contract or an entire vault * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param vault The cold wallet who issued the delegation */ function checkDelegateForContract(address delegate, address vault, address contract_) external view returns (bool); /** * @notice Returns true if the address is delegated to act on your behalf for a specific token, the token's contract or an entire vault * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param tokenId The token id for the token you're delegating * @param vault The cold wallet who issued the delegation */ function checkDelegateForToken(address delegate, address vault, address contract_, uint256 tokenId) external view returns (bool); }
// SPDX-License-Identifier: GPL-3.0 /// @title IDescriptor interface pragma solidity ^0.8.6; interface IDescriptor { function tokenURI(uint256 tokenId) external view returns (string memory); }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"NewMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"_findAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"seed","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint8","name":"color","type":"uint8"},{"internalType":"uint8","name":"complexity","type":"uint8"},{"internalType":"uint8","name":"coverage","type":"uint8"}],"internalType":"struct Web.TokenData[]","name":"_tokenData","type":"tuple[]"}],"name":"addTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"checkMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"colorOptions","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communitiesMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"complexityOptions","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"endTime","type":"uint64"},{"internalType":"uint256","name":"startPriceInWei","type":"uint256"},{"internalType":"uint256","name":"endPriceInWei","type":"uint256"},{"internalType":"address payable","name":"fundsRecipient","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"coverageOptions","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descriptor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fpMembersMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holderMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"vault","type":"address"}],"name":"mintRandom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"vault","type":"address"}],"name":"mintSpecific","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_descriptor","type":"address"}],"name":"setDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"templateA","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"templateB","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenData","outputs":[{"internalType":"string","name":"seed","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint8","name":"color","type":"uint8"},{"internalType":"uint8","name":"complexity","type":"uint8"},{"internalType":"uint8","name":"coverage","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIsMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"endTime","type":"uint64"},{"internalType":"uint256","name":"startPriceInWei","type":"uint256"},{"internalType":"uint256","name":"endPriceInWei","type":"uint256"},{"internalType":"address payable","name":"fundsRecipient","type":"address"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"updateDelegateAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"updateExternalURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"updateIPFSHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_holderRoot","type":"bytes32"},{"internalType":"bytes32","name":"_fbMemberRoot","type":"bytes32"},{"internalType":"bytes32","name":"_communityRoot","type":"bytes32"}],"name":"updateMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600880546001600160a01b0319166d76a84fef008cdabe6409d2fe638b1790556007610220818152660234646303030360cc1b6102405260a0908152610260828152660234646383030360cc1b6102805260c0526102a0828152660234646464630360cc1b6102c05260e0526102e0828152660233830464630360cc1b6103005261010052610320828152660233030464630360cc1b6103405261012052610360828152660233030464638360cc1b61038052610140526103a0828152661198182323232360c91b6103c052610160526103e0828152661198181c18232360c91b6104005261018052610420828152661198181818232360c91b610440526101a05261046082815266119c181818232360c91b610480526101c0526104a08281526611a3231818232360c91b6104c0526101e0526105206040526104e0918252660234646303038360cc1b61050052610200919091526200016590600990600c620004e8565b5060405180606001604052806040518060400160405280600681526020016553696d706c6560d01b8152508152602001604051806040016040528060068152602001654d656469756d60d01b815250815260200160405180604001604052806009815260200168496e7472696361746560b81b815250815250600a906003620001f092919062000545565b506040805160a081018252600460608201818152632a3434b760e11b608084015282528251808401845260068152654d656469756d60d01b602082810191909152808401919091528351808501855291825263119d5b1b60e21b90820152918101919091526200026590600d90600362000545565b507f9c4647684312cdd1cd10365dc25ce3be8aae724cd4654d13d91deda5417d4c256011557fe79d621b6ce06c4c74de82ba8f7a7e320228f93cde3e368de3d5e268b74e1c2d6012557f31605546a4c8b9934eedbb27b9de88bb7121c4bfc1f4b753f1305e6d9885faff601355620334506080526103e8601b556040805160608101909152603b808252620045176020830139601c90620003079082620006a2565b5060408051808201909152601b81527f68747470733a2f2f7765622e6c65656774652e6f72672f3f69643d00000000006020820152601d906200034b9082620006a2565b5060405180610e400160405280610e0c815260200162006c8d610e0c9139601f90620003789082620006a2565b5060405180612760016040528061273b81526020016200455261273b9139602090620003a59082620006a2565b50348015620003b357600080fd5b50604051806040016040528060038152602001622bb2b160e91b815250604051806040016040528060038152602001622ba2a160e91b8152508160009081620003fd9190620006a2565b5060016200040c8282620006a2565b50505062000429620004236200049260201b60201c565b62000496565b6001600755601480546b650b251000000000650b17006001600160801b0319909116179055670de0b6b3a764000060155567016345785d8a0000601655601780546001600160a01b031916739220e3df5f4a8439b7decfbb9f39be98c188f5f21790556200076e565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000533579160200282015b82811115620005335782518290620005229082620006a2565b509160200191906001019062000509565b506200054192915062000583565b5090565b826003810192821562000533579160200282015b82811115620005335782518290620005729082620006a2565b509160200191906001019062000559565b80821115620005415760006200059a8282620005a4565b5060010162000583565b508054620005b29062000613565b6000825580601f10620005c3575050565b601f016020900490600052602060002090810190620005e39190620005e6565b50565b5b80821115620005415760008155600101620005e7565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200062857607f821691505b6020821081036200064957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200069d57600081815260208120601f850160051c81016020861015620006785750805b601f850160051c820191505b81811015620006995782815560010162000684565b5050505b505050565b81516001600160401b03811115620006be57620006be620005fd565b620006d681620006cf845462000613565b846200064f565b602080601f8311600181146200070e5760008415620006f55750858301515b600019600386901b1c1916600185901b17855562000699565b600085815260208120601f198616915b828110156200073f578886015182559484019460019091019084016200071e565b50858210156200075e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051613d8d6200078a6000396000610f0b0152613d8d6000f3fe6080604052600436106102fd5760003560e01c80638da5cb5b1161018f578063d1be3091116100e1578063e985e9c51161008a578063ed2069c711610064578063ed2069c7146108b6578063f16c7bde146108c9578063f2fde38b146108e957600080fd5b8063e985e9c514610842578063eb91d37e1461088b578063eb9fea3b146108a057600080fd5b8063dbbc5a75116100bb578063dbbc5a75146107ed578063e4fa02eb1461080d578063e58306f91461082257600080fd5b8063d1be309114610787578063d227975c146107b7578063d5abeb01146107d757600080fd5b8063a67fd0a711610143578063c623674f1161011d578063c623674f14610732578063c87b56dd14610747578063cfa1d3171461076757600080fd5b8063a67fd0a7146106c1578063b4b5b48f146106e1578063b88d4fde1461071257600080fd5b806395d6a3cc1161017457806395d6a3cc1461066c57806395d89b411461068c578063a22cb465146106a157600080fd5b80638da5cb5b146106395780638fc734841461065757600080fd5b806328194cb51161025357806355cb9a9a116101fc57806370a08231116101d657806370a0823114610580578063715018a6146105a057806379502c55146105b557600080fd5b806355cb9a9a1461052a5780636352211e1461054a57806366e375481461056a57600080fd5b8063323162291161022d57806332316229146104d55780633ccfd60b146104f557806342842e0e1461050a57600080fd5b806328194cb51461047557806328c58c5414610495578063303e74df146104b557600080fd5b80630a3cc18d116102b557806318c668041161028f57806318c668041461042c57806323b872dd146104425780632609e81e1461046257600080fd5b80630a3cc18d146103d35780630e66e621146103e8578063143efd1c1461040857600080fd5b806306fdde03116102e657806306fdde0314610359578063081812fc1461037b578063095ea7b3146103b357600080fd5b806301b9a3971461030257806301ffc9a714610324575b600080fd5b34801561030e57600080fd5b5061032261031d366004612ccf565b610909565b005b34801561033057600080fd5b5061034461033f366004612d1a565b61094b565b60405190151581526020015b60405180910390f35b34801561036557600080fd5b5061036e610a30565b6040516103509190612d87565b34801561038757600080fd5b5061039b610396366004612d9a565b610ac2565b6040516001600160a01b039091168152602001610350565b3480156103bf57600080fd5b506103226103ce366004612db3565b610ae9565b3480156103df57600080fd5b5061036e610c3d565b3480156103f457600080fd5b50610322610403366004612ccf565b610ccb565b34801561041457600080fd5b5061041e60115481565b604051908152602001610350565b34801561043857600080fd5b5061041e60125481565b34801561044e57600080fd5b5061032261045d366004612ddf565b610d0d565b610322610470366004612e6c565b610d94565b34801561048157600080fd5b5061036e610490366004612d9a565b610e6e565b3480156104a157600080fd5b5061036e6104b0366004612d9a565b610e8d565b3480156104c157600080fd5b50601e5461039b906001600160a01b031681565b3480156104e157600080fd5b5061041e6104f0366004612d9a565b610eb8565b34801561050157600080fd5b50610322610eea565b34801561051657600080fd5b50610322610525366004612ddf565b610fca565b34801561053657600080fd5b50610322610545366004612ecb565b610fe5565b34801561055657600080fd5b5061039b610565366004612d9a565b610ffb565b34801561057657600080fd5b5061041e60135481565b34801561058c57600080fd5b5061041e61059b366004612ccf565b611060565b3480156105ac57600080fd5b506103226110fa565b3480156105c157600080fd5b506014546015546016546017546105fc9367ffffffffffffffff8082169468010000000000000000909204169290916001600160a01b031685565b6040805167ffffffffffffffff96871681529590941660208601529284019190915260608301526001600160a01b0316608082015260a001610350565b34801561064557600080fd5b506006546001600160a01b031661039b565b34801561066357600080fd5b5061036e61110c565b34801561067857600080fd5b50610344610687366004612ef7565b611119565b34801561069857600080fd5b5061036e6111b4565b3480156106ad57600080fd5b506103226106bc366004612f62565b6111c3565b3480156106cd57600080fd5b5061036e6106dc366004612d9a565b6111d2565b3480156106ed57600080fd5b506107016106fc366004612d9a565b6111e2565b604051610350959493929190612f9b565b34801561071e57600080fd5b5061032261072d3660046130d4565b611342565b34801561073e57600080fd5b5061036e6113ca565b34801561075357600080fd5b5061036e610762366004612d9a565b6113d7565b34801561077357600080fd5b50610322610782366004613185565b61175d565b34801561079357600080fd5b506103446107a2366004612d9a565b60186020526000908152604090205460ff1681565b3480156107c357600080fd5b506103226107d23660046132f0565b611859565b3480156107e357600080fd5b5061041e601b5481565b3480156107f957600080fd5b5061032261080836600461334b565b6118ee565b34801561081957600080fd5b5061036e611902565b34801561082e57600080fd5b5061032261083d366004612db3565b61190f565b34801561084e57600080fd5b5061034461085d366004613380565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561089757600080fd5b5061041e61196b565b3480156108ac57600080fd5b5061041e601a5481565b6103226108c43660046133ae565b611a8c565b3480156108d557600080fd5b506103226108e436600461334b565b611b93565b3480156108f557600080fd5b50610322610904366004612ccf565b611ba7565b610911611c37565b601e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109de57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a2a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610a3f90613405565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6b90613405565b8015610ab85780601f10610a8d57610100808354040283529160200191610ab8565b820191906000526020600020905b815481529060010190602001808311610a9b57829003601f168201915b5050505050905090565b6000610acd82611c91565b506000908152600460205260409020546001600160a01b031690565b6000610af482610ffb565b9050806001600160a01b0316836001600160a01b031603610b825760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610bbc57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610c2e5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610b79565b610c388383611cf5565b505050565b60208054610c4a90613405565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7690613405565b8015610cc35780601f10610c9857610100808354040283529160200191610cc3565b820191906000526020600020905b815481529060010190602001808311610ca657829003601f168201915b505050505081565b610cd3611c37565b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610d173382611d7b565b610d895760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b79565b610c38838383611df9565b610d9c61203a565b601b548410610ded5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420746f6b656e207265717565737465640000000000000000006044820152606401610b79565b6000848152600260205260409020546001600160a01b031615610e525760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20616c7265616479206d696e7465642100000000000000000000006044820152606401610b79565b610e5e84848484612093565b610e686001600755565b50505050565b600a8160038110610e7e57600080fd5b018054909150610c4a90613405565b60098181548110610e9d57600080fd5b906000526020600020016000915090508054610c4a90613405565b60008181526018602052604081205460ff161515600103610ee157610a2a6104f0836001613487565b5090565b919050565b610ef261203a565b60175460405147916000916001600160a01b03909116907f000000000000000000000000000000000000000000000000000000000000000090849084818181858888f193505050503d8060008114610f66576040519150601f19603f3d011682016040523d82523d6000602084013e610f6b565b606091505b5050905080610fbc5760405162461bcd60e51b815260206004820152601360248201527f4574686572206e6f742077697468647261776e000000000000000000000000006044820152606401610b79565b5050610fc86001600755565b565b610c3883838360405180602001604052806000815250611342565b610fed611c37565b601192909255601255601355565b6000818152600260205260408120546001600160a01b031680610a2a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b79565b60006001600160a01b0382166110de5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b79565b506001600160a01b031660009081526003602052604090205490565b611102611c37565b610fc86000612326565b601d8054610c4a90613405565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506111a88686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508591506123909050565b9150505b949350505050565b606060018054610a3f90613405565b6111ce3383836123a6565b5050565b600d8160038110610e7e57600080fd5b601081815481106111f257600080fd5b906000526020600020906003020160009150905080600001805461121590613405565b80601f016020809104026020016040519081016040528092919081815260200182805461124190613405565b801561128e5780601f106112635761010080835404028352916020019161128e565b820191906000526020600020905b81548152906001019060200180831161127157829003601f168201915b5050505050908060010180546112a390613405565b80601f01602080910402602001604051908101604052809291908181526020018280546112cf90613405565b801561131c5780601f106112f15761010080835404028352916020019161131c565b820191906000526020600020905b8154815290600101906020018083116112ff57829003601f168201915b5050506002909301549192505060ff808216916101008104821691620100009091041685565b61134c3383611d7b565b6113be5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b79565b610e6884848484612492565b601c8054610c4a90613405565b601e546060906001600160a01b03161561147557601e546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa15801561144d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a2a919081019061349a565b60006010838154811061148a5761148a613508565b90600052602060002090600302016040518060a00160405290816000820180546114b390613405565b80601f01602080910402602001604051908101604052809291908181526020018280546114df90613405565b801561152c5780601f106115015761010080835404028352916020019161152c565b820191906000526020600020905b81548152906001019060200180831161150f57829003601f168201915b5050505050815260200160018201805461154590613405565b80601f016020809104026020016040519081016040528092919081815260200182805461157190613405565b80156115be5780601f10611593576101008083540402835291602001916115be565b820191906000526020600020905b8154815290600101906020018083116115a157829003601f168201915b50505091835250506002919091015460ff80821660208085019190915261010083048216604080860191909152620100009093049091166060909301929092528051610160810190915261013f8082529293506000929091613bd99083013990506000611653601f8460000151602060405160200161163f939291906135c8565b60405160208183030381529060405261251b565b90506000836020015183601c611668896126d5565b60405160200161167b94939291906135fb565b60405160208183030381529060405290506000826009866040015160ff16815481106116a9576116a9613508565b90600052602060002001600a876060015160ff16600381106116cd576116cd613508565b01600d886080015160ff16600381106116e8576116e8613508565b01601d896000015160405160200161170596959493929190613718565b6040516020818303038152906040529050600061172e838360405160200161163f929190613904565b9050806040516020016117419190613933565b6040516020818303038152906040529650505050505050919050565b611765611c37565b60005b81518110156111ce57601082828151811061178557611785613508565b602090810291909101810151825460018101845560009384529190922082516003909202019081906117b790826139c6565b50602082015160018201906117cc90826139c6565b50604082015160029091018054606084015160809094015160ff90811662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff958216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909316919094161717929092161790558061185181613a86565b915050611768565b611861611c37565b6014805467ffffffffffffffff9687167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161768010000000000000000959096169490940294909417909255601555601655601780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909216919091179055565b6118f6611c37565b601d6111ce82826139c6565b601f8054610c4a90613405565b611917611c37565b600081815260186020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055601a80549161195c83613a86565b91905055506111ce8282612775565b6014546000908190600a9061198a9067ffffffffffffffff1642613aa0565b6119949190613ae2565b61199f90600a613af6565b6014549091506000906119cb9067ffffffffffffffff8082169168010000000000000000900416613b0d565b60145467ffffffffffffffff91821692506103b691164210156119f357505060155492915050565b818310611a0557505060165492915050565b601554611a128285613ae2565b1c600282611a208187613b35565b611a2a9084613af6565b611a349190613ae2565b611a3e9190613ae2565b611a489082613aa0565b601654909150811015611a615750506016549392505050565b611a7266038d7ea4c6800082613ae2565b611a839066038d7ea4c68000613af6565b95945050505050565b611a9461203a565b6103e8601a5410611ae75760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610b79565b6019546040517f323162290000000000000000000000000000000000000000000000000000000081526000913091633231622991611b2b9160040190815260200190565b602060405180830381865afa158015611b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6c9190613b49565b9050611b79816001613487565b601955611b8881858585612093565b50610c386001600755565b611b9b611c37565b601c6111ce82826139c6565b611baf611c37565b6001600160a01b038116611c2b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b79565b611c3481612326565b50565b6006546001600160a01b03163314610fc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b79565b6000818152600260205260409020546001600160a01b0316611c345760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b79565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190611d4282610ffb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d8783610ffb565b9050806001600160a01b0316846001600160a01b03161480611dce57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806111ac5750836001600160a01b0316611de784610ac2565b6001600160a01b031614949350505050565b826001600160a01b0316611e0c82610ffb565b6001600160a01b031614611e885760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b79565b6001600160a01b038216611f035760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b79565b826001600160a01b0316611f1682610ffb565b6001600160a01b031614611f925760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b79565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60026007540361208c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b79565b6002600755565b60145467ffffffffffffffff1642108015906120c7575060145468010000000000000000900467ffffffffffffffff164211155b6121135760405162461bcd60e51b815260206004820152600d60248201527f53616c6520696e616374697665000000000000000000000000000000000000006044820152606401610b79565b600061211d61196b565b9050821561224e576008546040517f9c395bc20000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384811660248301526000921690639c395bc290604401602060405180830381865afa15801561218f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b39190613b62565b90506000816121c257336121c4565b835b905060006121d6878784601354611119565b905060006121e8888885601154611119565b905060006121fa898986601254611119565b905081806122055750805b15612228576064612217876050613af6565b6122219190613ae2565b9550612248565b821561224857606461223b876055613af6565b6122459190613ae2565b95505b50505050505b8034101561229e5760405162461bcd60e51b815260206004820152601060248201527f4e6f7420656e6f756768206574686572000000000000000000000000000000006044820152606401610b79565b600085815260186020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055601a8054916122e383613a86565b91905055506122f23386612775565b604051859033907f52277f0b4a9b555c5aa96900a13546f972bda413737ec164aac947c87eec602490600090a35050505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261239d858461278f565b14949350505050565b816001600160a01b0316836001600160a01b0316036124075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b79565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61249d848484611df9565b6124a9848484846127dc565b610e685760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b79565b6060815160000361253a57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613d1860409139905060006003845160026125699190613487565b6125739190613ae2565b61257e906004613af6565b9050600061258d826020613487565b67ffffffffffffffff8111156125a5576125a5612fe5565b6040519080825280601f01601f1916602001820160405280156125cf576020820181803683370190505b509050818152600183018586518101602084015b8183101561263b576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016125e3565b600389510660018114612655576002811461269f576126c7565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526126c7565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b606060006126e28361297a565b600101905060008167ffffffffffffffff81111561270257612702612fe5565b6040519080825280601f01601f19166020018201604052801561272c576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461273657509392505050565b6111ce828260405180602001604052806000815250612a5c565b600081815b84518110156127d4576127c0828683815181106127b3576127b3613508565b6020026020010151612ae5565b9150806127cc81613a86565b915050612794565b509392505050565b60006001600160a01b0384163b15612972576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612839903390899088908890600401613b7f565b6020604051808303816000875af1925050508015612874575060408051601f3d908101601f1916820190925261287191810190613bbb565b60015b612927573d8080156128a2576040519150601f19603f3d011682016040523d82523d6000602084013e6128a7565b606091505b50805160000361291f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b79565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506111ac565b5060016111ac565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106129c3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106129ef576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612a0d57662386f26fc10000830492506010015b6305f5e1008310612a25576305f5e100830492506008015b6127108310612a3957612710830492506004015b60648310612a4b576064830492506002015b600a8310610a2a5760010192915050565b612a668383612b17565b612a7360008484846127dc565b610c385760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b79565b6000818310612b01576000828152602084905260409020612b10565b60008381526020839052604090205b9392505050565b6001600160a01b038216612b6d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b79565b6000818152600260205260409020546001600160a01b031615612bd25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b79565b6000818152600260205260409020546001600160a01b031615612c375760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b79565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0381168114611c3457600080fd5b600060208284031215612ce157600080fd5b8135612b1081612cba565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c3457600080fd5b600060208284031215612d2c57600080fd5b8135612b1081612cec565b60005b83811015612d52578181015183820152602001612d3a565b50506000910152565b60008151808452612d73816020860160208601612d37565b601f01601f19169290920160200192915050565b602081526000612b106020830184612d5b565b600060208284031215612dac57600080fd5b5035919050565b60008060408385031215612dc657600080fd5b8235612dd181612cba565b946020939093013593505050565b600080600060608486031215612df457600080fd5b8335612dff81612cba565b92506020840135612e0f81612cba565b929592945050506040919091013590565b60008083601f840112612e3257600080fd5b50813567ffffffffffffffff811115612e4a57600080fd5b6020830191508360208260051b8501011115612e6557600080fd5b9250929050565b60008060008060608587031215612e8257600080fd5b84359350602085013567ffffffffffffffff811115612ea057600080fd5b612eac87828801612e20565b9094509250506040850135612ec081612cba565b939692955090935050565b600080600060608486031215612ee057600080fd5b505081359360208301359350604090920135919050565b60008060008060608587031215612f0d57600080fd5b843567ffffffffffffffff811115612f2457600080fd5b612f3087828801612e20565b9095509350506020850135612f4481612cba565b9396929550929360400135925050565b8015158114611c3457600080fd5b60008060408385031215612f7557600080fd5b8235612f8081612cba565b91506020830135612f9081612f54565b809150509250929050565b60a081526000612fae60a0830188612d5b565b8281036020840152612fc08188612d5b565b60ff968716604085015294861660608401525050921660809092019190915292915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561303757613037612fe5565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561306657613066612fe5565b604052919050565b600067ffffffffffffffff82111561308857613088612fe5565b50601f01601f191660200190565b60006130a96130a48461306e565b61303d565b90508281528383830111156130bd57600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156130ea57600080fd5b84356130f581612cba565b9350602085013561310581612cba565b925060408501359150606085013567ffffffffffffffff81111561312857600080fd5b8501601f8101871361313957600080fd5b61314887823560208401613096565b91505092959194509250565b600082601f83011261316557600080fd5b612b1083833560208501613096565b803560ff81168114610ee557600080fd5b6000602080838503121561319857600080fd5b823567ffffffffffffffff808211156131b057600080fd5b818501915085601f8301126131c457600080fd5b8135818111156131d6576131d6612fe5565b8060051b6131e585820161303d565b91825283810185019185810190898411156131ff57600080fd5b86860192505b838310156132cb5782358581111561321d5760008081fd5b860160a0818c03601f19018113156132355760008081fd5b61323d613014565b898301358881111561324f5760008081fd5b61325d8e8c83870101613154565b825250604080840135898111156132745760008081fd5b6132828f8d83880101613154565b8c840152506060613294818601613174565b82840152608091506132a7828601613174565b908301526132b6848401613174565b90820152845250509186019190860190613205565b9998505050505050505050565b803567ffffffffffffffff81168114610ee557600080fd5b600080600080600060a0868803121561330857600080fd5b613311866132d8565b945061331f602087016132d8565b93506040860135925060608601359150608086013561333d81612cba565b809150509295509295909350565b60006020828403121561335d57600080fd5b813567ffffffffffffffff81111561337457600080fd5b6111ac84828501613154565b6000806040838503121561339357600080fd5b823561339e81612cba565b91506020830135612f9081612cba565b6000806000604084860312156133c357600080fd5b833567ffffffffffffffff8111156133da57600080fd5b6133e686828701612e20565b90945092505060208401356133fa81612cba565b809150509250925092565b600181811c9082168061341957607f821691505b602082108103613452577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610a2a57610a2a613458565b6000602082840312156134ac57600080fd5b815167ffffffffffffffff8111156134c357600080fd5b8201601f810184136134d457600080fd5b80516134e26130a48261306e565b8181528560208385010111156134f757600080fd5b611a83826020830160208601612d37565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815461354481613405565b6001828116801561355c576001811461358f576135be565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528215158302870194506135be565b8560005260208060002060005b858110156135b55781548a82015290840190820161359c565b50505082870194505b5050505092915050565b60006135d48286613537565b84516135e4818360208901612d37565b6135f081830186613537565b979650505050505050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000815260008551613633816009850160208a01612d37565b7f222c20226465736372697074696f6e223a220000000000000000000000000000600991840191820152855161367081601b840160208a01612d37565b7f222c2022696d616765223a2022697066733a2f2f000000000000000000000000601b92909101918201526136a8602f820186613537565b90507f2f00000000000000000000000000000000000000000000000000000000000000815283516136e0816001840160208801612d37565b7f2e706e67222c2000000000000000000000000000000000000000000000000000600192909101918201526008019695505050505050565b7f22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6c3b81527f6261736536342c00000000000000000000000000000000000000000000000000602082015260008751613776816027850160208c01612d37565b7f222c202261747472696275746573223a5b7b2274726169745f74797065223a226027918401918201527f436f6c6f72222c2276616c7565223a220000000000000000000000000000000060478201526137d36057820189613537565b90507f227d2c207b2274726169745f74797065223a22436f6d706c6578697479222c2081527f2276616c7565223a220000000000000000000000000000000000000000000000602082015261382b6029820188613537565b90507f227d2c207b2274726169745f74797065223a2022436f766572616765222c202281527f76616c7565223a2022000000000000000000000000000000000000000000000060208201526138836029820187613537565b90507f227d5d2c202265787465726e616c5f75726c223a20220000000000000000000081526138b56016820186613537565b905083516138c7818360208801612d37565b6138f68183017f227d000000000000000000000000000000000000000000000000000000000000815260020190565b9a9950505050505050505050565b60008351613916818460208801612d37565b83519083019061392a818360208801612d37565b01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161396b81601d850160208701612d37565b91909101601d0192915050565b601f821115610c3857600081815260208120601f850160051c8101602086101561399f5750805b601f850160051c820191505b818110156139be578281556001016139ab565b505050505050565b815167ffffffffffffffff8111156139e0576139e0612fe5565b6139f4816139ee8454613405565b84613978565b602080601f831160018114613a295760008415613a115750858301515b600019600386901b1c1916600185901b1785556139be565b600085815260208120601f198616915b82811015613a5857888601518255948401946001909101908401613a39565b5085821015613a765787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006000198203613a9957613a99613458565b5060010190565b81810381811115610a2a57610a2a613458565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613af157613af1613ab3565b500490565b8082028115828204841417610a2a57610a2a613458565b67ffffffffffffffff828116828216039080821115613b2e57613b2e613458565b5092915050565b600082613b4457613b44613ab3565b500690565b600060208284031215613b5b57600080fd5b5051919050565b600060208284031215613b7457600080fd5b8151612b1081612f54565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bb16080830184612d5b565b9695505050505050565b600060208284031215613bcd57600080fd5b8151612b1081612cec56fe5765622069732061206d6f6e756d656e7420746f207468652068797065726c696e6b2c206120706f656d2064656469636174656420746f206d616368696e65206c6561726e696e6720616e64206120636f6d707574657227732064c3a9726976652077697468696e20697473656c662e5c6e205c6e205468652070726f6a65637420697320612066756c6c79206f6e2d636861696e2067656e657261746976652063726f73732d6c696e6b6564206e6574776f726b206f662077656270616765732072656c656173656420696e20706172746e65727368697020776974682046696e6765727072696e74732044414f20616e64206973206120636f70726f64756374696f6e2077697468205375706572706f736974696f6e2e20426c6f636b636861696e20646576656c6f706d656e74206279204a616b6520416c6c656e2e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220aaa6a505ec70546f3074d8d372de9c18f40e701a3dfe8f012408cddc3414a91764736f6c634300081100336261667962656962327a6b6b6137627170757563626269727775326736766a656e363662756574786f76696a726166736837777568646a76646275272c0a5b2f2a405f5f505552455f5f2a2f692872292c2f2a405f5f505552455f5f2a2f69286f295d2e666f724561636828653d3e7b6c657420743d646f63756d656e742e637265617465456c656d656e7428227374796c6522293b742e696e6e657248544d4c3d652c646f63756d656e742e686561642e617070656e644368696c642874297d293b636f6e7374206d3d612e696e69742822307835636663663422292c683d7b4d41585f4c4556454c533a352c4d4943524f5f434c55535445525f50524f424142494c4954593a2e30357d2c753d7b4e4f4e453a302c524144494f5f425554544f4e3a312c53454c4543543a322c494e5055543a332c425554544f4e3a342c494d4147453a357d2c663d5b36362c3134352c3233392c3330352c3333302c3338302c3430312c3438372c3531362c3735342c3738362c3739312c3933355d2c623d417272617928316533292e66696c6c2830292e6d61702866756e6374696f6e28297b6c657420653d22223b666f72286c657420743d303b743c31363b742b2b29652b3d6d2e72616e6765496e746567657228302c323536292e746f537472696e67283136292e706164537461727428322c223022293b72657475726e20657d292c703d287b67656e65726174653a653d3e7b6c657420743d672e736c69636528302c65292e6d617028653d3e652e6a6f696e28222229293b72657475726e20747d7d292e67656e657261746528316533292c793d6e2e6f69647c7c2828653d6465636f6465555249436f6d706f6e656e74282877696e646f772e6c6f636174696f6e2e7365617263682e6d61746368285265674578702822283f3a5b3f7c265d69643d29285b5e265d2b292229297c7c5b2c22225d295b315d2e7265706c616365282f5c2b2f672c222532302229297c7c6e756c6c292626622e696e636c756465732865297c7c28653d625b3931315d2c77696e646f772e686973746f72792e7265706c6163655374617465287b7d2c22222c603f69643d247b657d6029292c65292c783d284f626a6563742e6b65797328743d66756e6374696f6e2865297b4f626a6563742e6b6579732865292e666f724561636828743d3e7b655b745d2e636f6c6f723d632e726762546f48737628655b745d2e6d61696e436f6c6f72292e687d293b6c657420743d4f626a6563742e6b6579732865292e6d617028743d3e655b745d2e636f6c6f72292c6e3d4d6174682e6d696e282e2e2e74292c693d4d6174682e6d6178282e2e2e74293b72657475726e204f626a6563742e6b6579732865292e666f724561636828743d3e7b655b745d2e636f6c6f723d28655b745d2e636f6c6f722d6e292f28692d6e297d292c657d2866756e6374696f6e2865297b4f626a6563742e6b6579732865292e666f724561636828743d3e7b6c6574206e3d655b745d2e656c656d656e74733b655b745d2e636f7665726167653d66756e6374696f6e2865297b6c657420743d302c6e3d2e342a4d6174682e6d696e28312c312d28652e6d617267696e2d3730292f3330292b2e363b72657475726e2066756e6374696f6e2065286e2c69297b6966286e2e7669736962696c697479262631213d3d6e2e626173697329742b3d6e2e62617369732a692a6e2e636f7665726167652a2830213d3d6e2e616c69676e6d656e743f2e353a31293b656c736520666f72286c65742074206f6628692a3d6e2e62617369732c6e2e6368696c6472656e29296528742c69297d28652c6e292c747d286e297d293b6c657420743d4f626a6563742e6b6579732865292e7265647563652828742c6e293d3e7b6c657420693d655b6e5d2e636f7665726167653b72657475726e20742e6d696e3d4d6174682e6d696e28742e6d696e2c69292c742e6d61783d4d6174682e6d617828742e6d61782c69292c747d2c7b6d696e3a312f302c6d61783a2d312f307d293b72657475726e204f626a6563742e6b6579732865292e666f7245616368286e3d3e7b655b6e5d2e636f7665726167653d28655b6e5d2e636f7665726167652d742e6d696e292f28742e6d61782d742e6d696e292c655b6e5d2e636f7665726167653d4d6174682e6d6178282e3030312c4d6174682e6d696e282e3939392c655b6e5d2e636f76657261676529297d292c657d2866756e6374696f6e2865297b4f626a6563742e6b6579732865292e666f724561636828743d3e7b655b745d2e636f6d706c65786974793d655b745d2e656c656d656e74732e64657363656e64616e74732e6c656e6774687d293b6c657420743d4f626a6563742e6b6579732865292e7265647563652828742c6e293d3e7b6c657420693d655b6e5d2e636f6d706c65786974793b72657475726e20742e6d696e3d4d6174682e6d696e28742e6d696e2c69292c742e6d61783d4d6174682e6d617828742e6d61782c69292c747d2c7b6d696e3a312f302c6d61783a2d312f307d293b72657475726e204f626a6563742e6b6579732865292e666f7245616368286e3d3e7b655b6e5d2e636f6d706c65786974793d4d6174682e706f772828655b6e5d2e636f6d706c65786974792d742e6d696e292f28742e6d61782d742e6d696e292c2e35292c655b6e5d2e636f7665726167653d4d6174682e6d6178282e3030312c4d6174682e6d696e282e3939392c655b6e5d2e636f76657261676529297d292c657d28622e7265647563652828652c74293d3e28655b745d3d66756e6374696f6e2865297b6c657420743d612e696e69742865292c6e3d632e696e69742874292c693d742e76616c756528292c723d7b6d617267696e3a7b76616c75653a693e2e353f693a302c6d696e3a302c6d61783a31307d2c76617269616e63653a7b76616c75653a742e76616c756528292c6d696e3a302c6d61783a317d2c667261676d656e746174696f6e3a7b76616c75653a742e76616c756528292c6d696e3a322c6d61783a357d2c646973747269627574696f6e3a7b76616c75653a742e76616c756528292c6d696e3a302c6d61783a317d2c70616464696e673a7b76616c75653a693e2e353f742e76616c756528293a302c6d696e3a302c6d61783a2e30357d2c616c69676e6d656e743a7b76616c75653a742e76616c756528292c6d696e3a302c6d61783a317d2c66696c746572696e673a7b76616c75653a742e76616c756528292c6d696e3a302c6d61783a317d2c72616973653a7b76616c75653a742e76616c756528292c6d696e3a302c6d61783a337d2c736861646f773a7b76616c75653a742e76616c756528292c6d696e3a302c6d61783a317d2c636f7665726167653a7b76616c75653a742e76616c756528292c6d696e3a2e352c6d61783a317d7d2c6f3d66756e6374696f6e206528692c722c6f3d2131297b76617220612c6c2c633b696628723e3d286f3f682e4d41585f4c4556454c532b313a742e72616e6765496e746567657228332c682e4d41585f4c4556454c5329292972657475726e3b6c657420673d5b5d2c6d3d723d3d3d4d6174682e666c6f6f7228286c3d732828613d692e7261697365292e76616c75652c30292c633d612e6d696e2c6c2a28612e6d61782b312d63292b6329292c753d742e72616e6765496e7465676572286f3f313a302c382d72293b303d3d3d722626303d3d3d75262628753d742e72616e6765496e746567657228312c692e667261676d656e746174696f6e2e6d617829293b6c657420663d723d3d3d682e4d41585f4c4556454c532d317c7c303d3d3d752c623d742e76616c756528292a723e322a742e76616c756528293b666f72286c6574206e3d303b6e3c753b6e2b2b297b6c6574206e3d6528692c722b312c6f7c7c742e70726f626162696c69747928682e4d4943524f5f434c55535445525f50524f424142494c49545929293b6e2626672e70757368286e297d6c657420703d6428692e646973747269627574696f6e2c692e76617269616e63652e76616c7565292c793d41727261792875292e66696c6c2830292e6d61702828293d3e742e72616e676528302c3129292c783d792e7265647563652828652c74293d3e652b742c30293b793d792e6d617028653d3e652f78292e6d617028653d3e652a702b312f752a28312d7029292c672e666f72456163682828652c74293d3e7b652e62617369733d795b745d7d293b6c657420763d5b2c2c2c2c5d2e66696c6c2830292e6d61702828293d3e6428692e70616464696e672c692e76617269616e63652e76616c756529292c4d3d623f742e72616e6765496e746567657228312c33293a302c6b3d21303b6b3d21216f7c7c28723c333f21742e70726f626162696c697479286428692e66696c746572696e672c692e76617269616e63652e76616c756529293a742e70726f626162696c697479282e322a7229293b6c657420773d6d3f6428692e736861646f772c31293a302c453d6d3f742e72616e6765496e746567657228312c35293a302c493d6d3f6428692e636f7665726167652c31293a312c4f3d662626216f3f742e72616e6765496e746567657228302c35293a302c243d6e2e73657428292c543d6e2e73657428292c433d7b6261636b67726f756e643a242e6d69642c626f726465723a7b746f703a7225323d3d303f242e686967683a242e6c6f772c6c6566743a7225323d3d303f242e686967683a242e6c6f772c626f74746f6d3a7225323d3d303f242e6c6f773a242e686967682c72696768743a7225323d3d303f242e6c6f773a242e686967687d2c636f6e74656e743a547d2c533d7b62617369733a312c6d617267696e3a303d3d3d723f6428692e6d617267696e2c30293a302c70616464696e673a762c616c69676e6d656e743a4d2c7669736962696c6974793a6b2c736861646f773a772c706172656e743a6e756c6c2c636f6e74656e743a4f2c636f6e74656e7453697a653a742e76616c756528292c636f6e74656e7456616c75653a742e76616c756528292c636f6c6f72733a432c7a496e6465783a452c636f7665726167653a492c6368696c6472656e3a672c6c696e6b3a6e756c6c2c64657363656e64616e74733a5b2e2e2e672e6d617028653d3e652e64657363656e64616e7473292c2e2e2e675d2e666c617428297d3b72657475726e20672e666f724561636828653d3e7b652e706172656e743d537d292c537d28722c30293b696628216f2e64657363656e64616e74732e736f6d6528653d3e652e7669736962696c69747929297b6c657420653d742e7069636b286f2e64657363656e64616e7473293b652e7669736962696c6974793d21307d696628216f2e64657363656e64616e74732e736f6d6528653d3e30213d3d652e636f6e74656e742626652e7669736962696c69747929297b6c657420653d742e7069636b286f2e64657363656e64616e7473293b652e636f6e74656e743d742e72616e6765496e746567657228312c35297d6c6574206c3d7b69643a652c6d61696e436f6c6f723a6e2e73657428292e6c6f772c656c656d656e74733a6f7d3b72657475726e206c3b66756e6374696f6e207328652c6e297b6c657420693d4d6174682e6d617828302c652d6e2f32292c723d4d6174682e6d696e28312c652b6e2f32293b72657475726e20742e72616e676528692c72297d66756e6374696f6e206428652c74297b766172206e2c693b72657475726e206e3d7328652e76616c75652c74292c693d652e6d696e2c6e2a28652e6d61782d69292b697d7d2874292c65292c7b7d29292929292e666f72456163682828652c6e293d3e7b745b655d2e7469746c653d705b6e5d7d292c4f626a6563742e6b6579732874292e6d617028653d3e2864656c65746520745b655d2e64697374616e63652c64656c65746520745b655d2e617869732c64656c65746520745b655d2e646972656374696f6e2c745b655d29292e66696c74657228653d3e652e6964213d3d79292e666f724561636828653d3e7b6c6574206e3d5b7b617869733a22636f6d706c6578697479222c64697374616e63653a4d6174682e61627328652e636f6d706c65786974792d745b795d2e636f6d706c6578697479297d2c7b617869733a22636f766572616765222c64697374616e63653a4d6174682e61627328652e636f7665726167652d745b795d2e636f766572616765297d2c7b617869733a22636f6c6f72222c64697374616e63653a4d6174682e73717274284d6174682e706f7728652e6d61696e436f6c6f722e722f3235352d745b795d2e6d61696e436f6c6f722e722f3235352c32292b4d6174682e706f7728652e6d61696e436f6c6f722e672f3235352d745b795d2e6d61696e436f6c6f722e672f3235352c32292b4d6174682e706f7728652e6d61696e436f6c6f722e622f3235352d745b795d2e6d61696e436f6c6f722e622f3235352c3229297d5d2c693d6e2e7265647563652828652c7b617869733a742c64697374616e63653a6e7d293d3e652b6e2c30292c723d6e2e736f72742828652c74293d3e652e64697374616e63652d742e64697374616e6365295b305d2e617869732c6f3d655b725d3e745b795d5b725d3f2267726561746572223a226c657373223b652e64697374616e63653d692c652e617869733d722c652e646972656374696f6e3d6f7d292c74292c763d66756e6374696f6e28297b6c657420653d646f63756d656e742e637265617465456c656d656e74282264697622293b72657475726e20652e636c6173734c6973742e6164642822636f6e7461696e657222292c646f63756d656e742e626f64792e617070656e644368696c642865292c657d28293b785b795d2e7469746c653b636f6e7374204d3d5b5d3b66756e6374696f6e206b28652c742c6e297b72657475726e204f626a6563742e76616c7565732865292e66696c74657228287b617869733a652c646972656374696f6e3a697d293d3e653d3d3d742626693d3d3d6e292e736f72742828652c74293d3e652e64697374616e63652d742e64697374616e6365292e6d617028287b69643a657d293d3e65297d636f6e737420773d7b636f6d706c65786974793a7b707265763a6b28782c22636f6d706c6578697479222c226c65737322292c6e6578743a6b28782c22636f6d706c6578697479222c226772656174657222297d2c636f7665726167653a7b707265763a6b28782c22636f766572616765222c226c65737322292c6e6578743a6b28782c22636f766572616765222c226772656174657222297d2c636f6c6f723a7b707265763a6b28782c22636f6c6f72222c226c65737322292c6e6578743a6b28782c22636f6c6f72222c226772656174657222297d2c666f7263653a5b5d7d3b662e696e636c7564657328622e696e6465784f662879292b31293f772e666f7263653d5b625b622e696e6465784f662879292b31305d5d3a662e696e636c7564657328622e696e6465784f6628792929262628772e666f7263653d5b625b622e696e6465784f662879292d31305d5d292c66756e6374696f6e28652c742c692c72297b742e696e6e657248544d4c3d22222c646f63756d656e742e7469746c653d22576562202d20222b652e7469746c652c646f63756d656e742e626f64792e7374796c652e6261636b67726f756e64436f6c6f723d632e737472696e6769667928652e6d61696e436f6c6f72293b6c6574206f3d7b636f6d706c65786974793a7b707265763a302c6e6578743a307d2c636f7665726167653a7b707265763a302c6e6578743a307d2c666f7263653a307d3b652e656c656d656e74732e64657363656e64616e74732e666f724561636828743d3e7b69662821742e7669736962696c6974792972657475726e3b6c6574206e3d6e756c6c3b696628742e636f6e74656e74213d3d752e4e4f4e45297b6966286f2e666f7263653c722e666f7263652e6c656e677468296e3d722e666f7263655b6f2e666f7263655d2c6f2e666f7263652b2b2c4d2e70757368286e293b656c73652073776974636828742e636f6e74656e74297b6361736520752e524144494f5f425554544f4e3a6e3d722e636f6d706c65786974792e707265765b6f2e636f6d706c65786974792e7072657625722e636f6d706c65786974792e707265762e6c656e6774685d2c6f2e636f6d706c65786974792e707265762b2b3b627265616b3b6361736520752e53454c4543543a6e3d722e636f6d706c65786974792e6e6578745b6f2e636f6d706c65786974792e6e65787425722e636f6d706c65786974792e6e6578742e6c656e6774685d2c6f2e636f6d706c65786974792e6e6578742b2b3b627265616b3b6361736520752e494e5055543a6e3d722e636f7665726167652e707265765b6f2e636f7665726167652e7072657625722e636f7665726167652e707265762e6c656e6774685d2c6f2e636f7665726167652e707265762b2b3b627265616b3b6361736520752e425554544f4e3a6e3d722e636f7665726167652e6e6578745b6f2e636f7665726167652e6e65787425722e636f7665726167652e6e6578742e6c656e6774685d2c6f2e636f7665726167652e6e6578742b2b3b627265616b3b6361736520752e494d4147453a6c657420613d742e636f6c6f72732e6261636b67726f756e642c6c3d4f626a6563742e6b6579732869292e7265647563652828742c6e293d3e7b6c657420723d695b6e5d2c6f3d632e64697374616e63655371756172656428612c72293b72657475726e206f3c742e64697374616e636526266e213d652e6964262628742e64697374616e63653d6f2c742e636f6c6f723d612c742e69643d6e292c747d2c7b64697374616e63653a312f302c636f6c6f723a6e756c6c2c69643a6e756c6c7d293b6e3d6c2e69647d7d6e262628742e6c696e6b3d6e2c4d2e70757368286e29297d292c66756e6374696f6e206528742c692c72297b6c6574206f3d646f63756d656e742e637265617465456c656d656e74282264697622293b6966286f2e636c6173734c6973742e6164642822656c656d656e7422292c6f2e7374796c652e666c657842617369733d60247b3130302a692e62617369737d25602c6f2e7374796c652e666c657847726f773d312c6f2e7374796c652e666c6578446972656374696f6e3d7225323f22636f6c756d6e223a22726f77222c6f2e7374796c652e70616464696e673d692e70616464696e672e6d617028653d3e60247b3130302a657d2560292e6a6f696e28222022292c6f2e7374796c652e6d617267696e3d606d696e28247b31302a4d6174682e726f756e6428692e6d617267696e297d70782c20247b4d6174682e726f756e6428692e6d617267696e297d2529602c6f2e7374796c652e77696474683d60247b3130302a692e636f7665726167657d25602c692e7669736962696c6974792626286f2e7374796c652e6261636b67726f756e64436f6c6f723d632e737472696e6769667928692e636f6c6f72732e6261636b67726f756e64292c6f2e7374796c652e626f7264657257696474683d22317078222c6f2e7374796c652e626f726465725374796c653d22736f6c6964222c6f2e7374796c652e626f72646572436f6c6f723d60247b632e737472696e6769667928692e636f6c6f72732e626f726465722e746f70297d20247b632e737472696e6769667928692e636f6c6f72732e626f726465722e7269676874297d20247b632e737472696e6769667928692e636f6c6f72732e626f726465722e626f74746f6d297d20247b632e737472696e6769667928692e636f6c6f72732e626f726465722e6c656674297d60292c30213d3d692e616c69676e6d656e742626286f2e7374796c652e616c69676e53656c663d5b227374617274222c2263656e746572222c22656e64225d5b692e616c69676e6d656e742d315d292c30213d3d692e736861646f772626692e7669736962696c697479297b6c657420653d4d6174682e666c6f6f722831352a692e736861646f772b35293b6f2e7374796c652e626f78536861646f773d60247b657d707820247b657d707820247b322a657d7078202330303043602c6f2e7374796c652e7a496e6465783d692e7a496e6465787d696628692e7669736962696c697479297b6c657420653d6e756c6c2c743d6e756c6c3b73776974636828692e636f6e74656e74297b6361736520752e4e4f4e453a627265616b3b6361736520752e524144494f5f425554544f4e3a653d226368616e6765223b6c657420723d4172726179284d6174682e666c6f6f7228332a692e636f6e74656e7453697a65292b32292e66696c6c2830292e6d61702828293d3e273c696e70757420747970653d22726164696f22206e616d653d2272223e27293b725b4d6174682e666c6f6f7228692e636f6e74656e7456616c75652a722e6c656e677468295d3d273c696e70757420747970653d22726164696f22206e616d653d22722220636865636b65643e272c743d603c666f726d3e247b722e6a6f696e282222297d3c2f666f726d3e603b627265616b3b6361736520752e53454c4543543a653d226368616e6765222c743d603c73656c656374207374796c653d226261636b67726f756e642d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e68696768297d22223e247b41727261792e66726f6d287b6c656e6774683a4d6174682e666c6f6f722831352a692e636f6e74656e7453697a652b32297d292e66696c6c28223c6f7074696f6e3e3c2f6f7074696f6e3e22292e6a6f696e282222297d3c2f73656c6563743e603b627265616b3b6361736520752e494e5055543a653d22636c69636b222c743d603c696e70757420747970653d227465787422207374796c653d2277696474683a20247b31382a284d6174682e666c6f6f7228362a692e636f6e74656e7453697a65292b33297d70783b206865696768743a20313870783b206261636b67726f756e642d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e68696768297d3b20626f726465722d746f702d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e68696768297d3b20626f726465722d6c6566742d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e68696768297d3b20626f726465722d72696768742d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e6c6f77297d3b20626f726465722d626f74746f6d2d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e6c6f77297d3b223e603b627265616b3b6361736520752e425554544f4e3a653d22636c69636b222c743d603c627574746f6e207374796c653d2277696474683a20247b31382a284d6174682e666c6f6f7228342a692e636f6e74656e7453697a65292b31297d70783b206865696768743a20313870783b206261636b67726f756e642d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e6c6f77297d3b20626f726465722d746f702d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e68696768297d3b20626f726465722d6c6566742d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e68696768297d3b20626f726465722d72696768742d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e6c6f77297d3b20626f726465722d626f74746f6d2d636f6c6f723a20247b632e737472696e6769667928692e636f6c6f72732e636f6e74656e742e6c6f77297d3b223e3c2f627574746f6e3e603b627265616b3b6361736520752e494d4147453a743d6e756c6c3d3d3d6e2e6f69643f603c6120687265663d247b692e6c696e6b3f603f69643d247b692e6c696e6b7d603a2223227d207374796c653d22646973706c61793a20626c6f636b3b20626f726465723a206e6f6e653b223e3c696d67207372633d222322207374796c653d2277696474683a20313030253b206865696768743a20313030253b223e3c2f613e603a273c696d67207372633d222322207374796c653d2277696474683a20313030253b206865696768743a20313030253b223e277d6e756c6c213d3d742626286f2e696e6e657248544d4c3d742c692e6c696e6b26266e756c6c213d3d6526266e756c6c3d3d3d6e2e6f696426266f2e6368696c6472656e5b305d2e6164644576656e744c697374656e657228652c653d3e7b77696e646f772e6c6f636174696f6e2e687265663d603f69643d247b692e6c696e6b7d607d29297d742e617070656e644368696c64286f292c692e6368696c6472656e2e666f724561636828743d3e7b65286f2c742c722b31297d297d28742c652e656c656d656e74732c30297d28785b795d2c762c4f626a6563742e6b6579732878292e7265647563652828652c74293d3e28655b745d3d785b745d2e6d61696e436f6c6f722c65292c7b7d292c77292c4f626a6563742e6b6579732878292e666f724561636828653d3e7b6c657420743d5b5d3b785b655d2e656c656d656e74732e7669736962696c6974792626742e7075736828785b655d2e656c656d656e74732e636f6c6f72732e6261636b67726f756e64292c742e70757368282e2e2e785b655d2e656c656d656e74732e64657363656e64616e74732e66696c74657228653d3e652e7669736962696c697479292e6d617028653d3e652e636f6c6f72732e6261636b67726f756e6429292c785b655d2e636f6c6f72733d742c64656c65746520785b655d2e656c656d656e74737d293b636f6e737420453d646f63756d656e742e637265617465456c656d656e74282263616e76617322292c493d452e676574436f6e746578742822326422293b452e77696474683d31362c452e6865696768743d31362c66756e6374696f6e28652c742c6e2c69297b742e66696c6c5374796c653d632e737472696e6769667928652e6d61696e436f6c6f722c31292c742e66696c6c52656374286e2c692c31362c3136293b6c657420723d652e636f6c6f72733b742e66696c6c5374796c653d632e737472696e6769667928725b305d2c31292c742e66696c6c52656374286e2b322c692b322c31322c3132292c723d722e6d617028653d3e7b6c657420743d632e726762546f4873762865293b72657475726e7b2e2e2e652c2e2e2e747d7d292e736f72742828652c74293d3e742e732d652e73293b666f72286c657420653d303b653c31323b652b2b29666f72286c6574206f3d303b6f3c31323b6f2b2b297b6c657420613d6f2b31322a652c6c3d612f3134342c733d4d6174682e666c6f6f72286c2a28722e6c656e6774682d3129292c643d725b735d3b742e66696c6c5374796c653d632e737472696e6769667928642c31292c742e66696c6c52656374286e2b322b652c692b322b6f2c312c31297d7d28785b795d2c492c302c30293b636f6e7374204f3d646f63756d656e742e637265617465456c656d656e7428226c696e6b22293b4f2e747970653d22696d6167652f782d69636f6e222c4f2e72656c3d2273686f72746375742069636f6e222c4f2e687265663d452e746f4461746155524c2822696d6167652f782d69636f6e22292c646f63756d656e742e676574456c656d656e747342795461674e616d6528226865616422295b305d2e617070656e644368696c64284f293b3c2f7363726970743e3c2f626f64793e3c2f68746d6c3e3c21444f43545950452068746d6c3e3c68746d6c3e3c686561643e3c6d65746120636861727365743d227574662d38223e3c6d657461206e616d653d2276696577706f72742220636f6e74656e743d2277696474683d6465766963652d77696474682c20696e697469616c2d7363616c653d31223e3c2f686561643e3c626f64793e3c7363726970743e6c657420653b76617220742c6e3d22756e646566696e656422213d747970656f6620676c6f62616c546869733f676c6f62616c546869733a22756e646566696e656422213d747970656f662073656c663f73656c663a22756e646566696e656422213d747970656f662077696e646f773f77696e646f773a22756e646566696e656422213d747970656f6620676c6f62616c3f676c6f62616c3a7b7d3b66756e6374696f6e20692865297b72657475726e20652626652e5f5f65734d6f64756c653f652e64656661756c743a657d76617220723d7b7d3b723d2768746d6c2c626f64792c6469762c7370616e2c6170706c65742c6f626a6563742c696672616d652c68312c68322c68332c68342c68352c68362c702c626c6f636b71756f74652c7072652c612c616262722c6163726f6e796d2c616464726573732c6269672c636974652c636f64652c64656c2c64666e2c656d2c696d672c696e732c6b62642c712c732c73616d702c736d616c6c2c737472696b652c7374726f6e672c7375622c7375702c74742c7661722c622c752c692c63656e7465722c646c2c64742c64642c6f6c2c756c2c6c692c6669656c647365742c666f726d2c6c6162656c2c6c6567656e642c7461626c652c63617074696f6e2c74626f64792c74666f6f742c74686561642c74722c74682c74642c61727469636c652c61736964652c63616e7661732c64657461696c732c656d6265642c6669677572652c66696763617074696f6e2c666f6f7465722c6865616465722c6867726f75702c6d656e752c6e61762c6f75747075742c727562792c73656374696f6e2c73756d6d6172792c74696d652c6d61726b2c617564696f2c766964656f7b666f6e742d73697a653a313030253b666f6e743a696e68657269743b766572746963616c2d616c69676e3a626173656c696e653b626f726465723a303b6d617267696e3a303b70616464696e673a307d61727469636c652c61736964652c64657461696c732c66696763617074696f6e2c6669677572652c666f6f7465722c6865616465722c6867726f75702c6d656e752c6e61762c73656374696f6e7b646973706c61793a626c6f636b7d626f64797b6c696e652d6865696768743a317d6f6c2c756c7b6c6973742d7374796c653a6e6f6e657d626c6f636b71756f74652c717b71756f7465733a6e6f6e657d626c6f636b71756f74653a6265666f72652c626c6f636b71756f74653a61667465722c713a6265666f72652c713a61667465727b636f6e74656e743a22223b636f6e74656e743a6e6f6e657d7461626c657b626f726465722d636f6c6c617073653a636f6c6c617073653b626f726465722d73706163696e673a307d273b766172206f3d7b7d3b6f3d2268746d6c2c626f64797b77696474683a313030253b6865696768743a313030253b6d617267696e3a303b70616464696e673a307d2e636f6e7461696e65727b77696474683a313030253b6865696768743a313030253b646973706c61793a666c65783b706f736974696f6e3a72656c61746976657d2e656c656d656e747b626f782d73697a696e673a626f726465722d626f783b666c65782d67726f773a313b666c65782d736872696e6b3a313b6d696e2d77696474683a303b6d696e2d6865696768743a303b646973706c61793a666c65787d696e7075742c627574746f6e7b626f782d73697a696e673a626f726465722d626f783b6d61782d77696474683a313030257d73656c6563747b77696474683a313030257d223b76617220613d7b696e69743a653d3e7b76617220742c6e2c692c723b652b3d22223b6c6574206f3d66756e6374696f6e2865297b6c657420743d313737393033333730332c6e3d333134343133343237372c693d313031333930343234322c723d323737333438303736323b666f72286c6574206f3d302c613b6f3c652e6c656e6774683b6f2b2b29743d6e5e4d6174682e696d756c28745e28613d652e63686172436f64654174286f29292c353937333939303637292c6e3d695e4d6174682e696d756c286e5e612c32383639383630323333292c693d725e4d6174682e696d756c28695e612c393531323734323133292c723d745e4d6174682e696d756c28725e612c32373136303434313739293b72657475726e20743d4d6174682e696d756c28695e743e3e3e31382c353937333939303637292c6e3d4d6174682e696d756c28725e6e3e3e3e32322c32383639383630323333292c693d4d6174682e696d756c28745e693e3e3e31372c393531323734323133292c723d4d6174682e696d756c286e5e723e3e3e31392c32373136303434313739292c5b28745e6e5e695e72293e3e3e302c286e5e74293e3e3e302c28695e74293e3e3e302c28725e74293e3e3e305d7d2865292c613d28743d6f5b305d2c6e3d6f5b315d2c693d6f5b325d2c723d6f5b335d2c66756e6374696f6e28297b743e3e3e3d302c6e3e3e3e3d302c693e3e3e3d302c723e3e3e3d303b76617220653d742b6e7c303b72657475726e20743d6e5e6e3e3e3e392c6e3d692b28693c3c33297c302c693d693c3c32317c693e3e3e31312c653d652b28723d722b317c30297c302c693d692b657c302c28653e3e3e30292f343239343936373239367d293b72657475726e7b76616c75653a28293d3e6128292c72616e67653a28653d302c743d31293d3e652b6128292a28742d65292c72616e6765496e74656765723a28653d302c743d31293d3e652b4d6174682e726f756e64286128292a28742d6529292c7069636b3a653d3e655b4d6174682e666c6f6f72286128292a652e6c656e677468295d2c70726f626162696c6974793a653d3e6128293c652c73687566666c653a653d3e7b6c657420743d652e6c656e6774682c6e2c693b666f72283b30213d3d743b29693d4d6174682e666c6f6f72286128292a74292c742d3d312c6e3d655b745d2c655b745d3d655b695d2c655b695d3d6e3b72657475726e20657d7d7d7d3b66756e6374696f6e206c28652c742c6e297b72657475726e204d6174682e6d696e284d6174682e6d617828652c74292c6e297d76617220633d7b696e69743a653d3e7b6c657420743d7b723a652e72616e6765496e746567657228302c323535292c673a652e72616e6765496e746567657228302c323535292c623a652e72616e6765496e746567657228302c323535297d2c6e3d7b6d696e3a302c6d61783a3235357d2c693d652e72616e6765496e7465676572283530293b66756e6374696f6e207228297b6c657420723d652e72616e6765496e746567657228312c69293b742e722b3d652e72616e6765496e7465676572282d722c72292c742e723d6c28742e722c6e2e6d696e2c6e2e6d6178292c742e672b3d652e72616e6765496e7465676572282d722c72292c742e673d6c28742e672c6e2e6d696e2c6e2e6d6178292c742e622b3d652e72616e6765496e7465676572282d722c72292c742e623d6c28742e622c6e2e6d696e2c6e2e6d6178297d72657475726e7b73696e676c653a28293d3e2866756e6374696f6e28297b7228293b6c657420653d7b2e2e2e747d3b72657475726e20657d2928292c7365743a28293d3e287228292c7b6c6f773a7b723a6c28742e722d33302c6e2e6d696e2c6e2e6d6178292c673a6c28742e672d33302c6e2e6d696e2c6e2e6d6178292c623a6c28742e622d33302c6e2e6d696e2c6e2e6d6178297d2c6d69643a7b723a742e722c673a742e672c623a742e627d2c686967683a7b723a6c28742e722b33302c6e2e6d696e2c6e2e6d6178292c673a6c28742e672b33302c6e2e6d696e2c6e2e6d6178292c623a6c28742e622b33302c6e2e6d696e2c6e2e6d6178297d7d297d7d2c737472696e676966793a28652c743d31293d3e607267626128247b652e727d2c247b652e677d2c247b652e627d2c20247b747d29602c64697374616e6365537175617265643a28652c74293d3e4d6174682e706f7728652e722d742e722c32292b4d6174682e706f7728652e672d742e672c32292b4d6174682e706f7728652e622d742e622c32292c726762546f4873763a653d3e7b6c657420742c6e3d652e722f3235352c693d652e672f3235352c723d652e622f3235352c6f3d4d6174682e6d6178286e2c692c72292c613d4d6174682e6d696e286e2c692c72292c6c3d6f2d613b6966286f3d3d6129743d303b656c73657b737769746368286f297b63617365206e3a743d28692d72292f6c2b28693c723f363a30293b627265616b3b6361736520693a743d28722d6e292f6c2b323b627265616b3b6361736520723a743d286e2d69292f6c2b347d742f3d367d72657475726e7b683a742c733a303d3d6f3f303a6c2f6f2c763a6f7d7d7d3b636f6e737420733d612e696e697428224a524c785350525053784a4b22292c643d22446f63756d656e74222e73706c6974282222293b645b305d3d2220222b645b305d2e746f55707065724361736528293b636f6e737420673d732e73687566666c652866756e6374696f6e2865297b6c657420743d5b5d3b72657475726e2166756e6374696f6e206e2869297b696628313d3d3d6929742e70757368285b2e2e2e655d293b656c736520666f72286c657420743d303b743c693b742b2b296e28692d31292c66756e6374696f6e28742c6e297b6c657420693d655b745d3b655b745d3d655b6e5d2c655b6e5d3d697d286925323f303a742c692d31297d28652e6c656e677468292c747d286429293b0a6e2e6f69643d27
Deployed Bytecode
0x6080604052600436106102fd5760003560e01c80638da5cb5b1161018f578063d1be3091116100e1578063e985e9c51161008a578063ed2069c711610064578063ed2069c7146108b6578063f16c7bde146108c9578063f2fde38b146108e957600080fd5b8063e985e9c514610842578063eb91d37e1461088b578063eb9fea3b146108a057600080fd5b8063dbbc5a75116100bb578063dbbc5a75146107ed578063e4fa02eb1461080d578063e58306f91461082257600080fd5b8063d1be309114610787578063d227975c146107b7578063d5abeb01146107d757600080fd5b8063a67fd0a711610143578063c623674f1161011d578063c623674f14610732578063c87b56dd14610747578063cfa1d3171461076757600080fd5b8063a67fd0a7146106c1578063b4b5b48f146106e1578063b88d4fde1461071257600080fd5b806395d6a3cc1161017457806395d6a3cc1461066c57806395d89b411461068c578063a22cb465146106a157600080fd5b80638da5cb5b146106395780638fc734841461065757600080fd5b806328194cb51161025357806355cb9a9a116101fc57806370a08231116101d657806370a0823114610580578063715018a6146105a057806379502c55146105b557600080fd5b806355cb9a9a1461052a5780636352211e1461054a57806366e375481461056a57600080fd5b8063323162291161022d57806332316229146104d55780633ccfd60b146104f557806342842e0e1461050a57600080fd5b806328194cb51461047557806328c58c5414610495578063303e74df146104b557600080fd5b80630a3cc18d116102b557806318c668041161028f57806318c668041461042c57806323b872dd146104425780632609e81e1461046257600080fd5b80630a3cc18d146103d35780630e66e621146103e8578063143efd1c1461040857600080fd5b806306fdde03116102e657806306fdde0314610359578063081812fc1461037b578063095ea7b3146103b357600080fd5b806301b9a3971461030257806301ffc9a714610324575b600080fd5b34801561030e57600080fd5b5061032261031d366004612ccf565b610909565b005b34801561033057600080fd5b5061034461033f366004612d1a565b61094b565b60405190151581526020015b60405180910390f35b34801561036557600080fd5b5061036e610a30565b6040516103509190612d87565b34801561038757600080fd5b5061039b610396366004612d9a565b610ac2565b6040516001600160a01b039091168152602001610350565b3480156103bf57600080fd5b506103226103ce366004612db3565b610ae9565b3480156103df57600080fd5b5061036e610c3d565b3480156103f457600080fd5b50610322610403366004612ccf565b610ccb565b34801561041457600080fd5b5061041e60115481565b604051908152602001610350565b34801561043857600080fd5b5061041e60125481565b34801561044e57600080fd5b5061032261045d366004612ddf565b610d0d565b610322610470366004612e6c565b610d94565b34801561048157600080fd5b5061036e610490366004612d9a565b610e6e565b3480156104a157600080fd5b5061036e6104b0366004612d9a565b610e8d565b3480156104c157600080fd5b50601e5461039b906001600160a01b031681565b3480156104e157600080fd5b5061041e6104f0366004612d9a565b610eb8565b34801561050157600080fd5b50610322610eea565b34801561051657600080fd5b50610322610525366004612ddf565b610fca565b34801561053657600080fd5b50610322610545366004612ecb565b610fe5565b34801561055657600080fd5b5061039b610565366004612d9a565b610ffb565b34801561057657600080fd5b5061041e60135481565b34801561058c57600080fd5b5061041e61059b366004612ccf565b611060565b3480156105ac57600080fd5b506103226110fa565b3480156105c157600080fd5b506014546015546016546017546105fc9367ffffffffffffffff8082169468010000000000000000909204169290916001600160a01b031685565b6040805167ffffffffffffffff96871681529590941660208601529284019190915260608301526001600160a01b0316608082015260a001610350565b34801561064557600080fd5b506006546001600160a01b031661039b565b34801561066357600080fd5b5061036e61110c565b34801561067857600080fd5b50610344610687366004612ef7565b611119565b34801561069857600080fd5b5061036e6111b4565b3480156106ad57600080fd5b506103226106bc366004612f62565b6111c3565b3480156106cd57600080fd5b5061036e6106dc366004612d9a565b6111d2565b3480156106ed57600080fd5b506107016106fc366004612d9a565b6111e2565b604051610350959493929190612f9b565b34801561071e57600080fd5b5061032261072d3660046130d4565b611342565b34801561073e57600080fd5b5061036e6113ca565b34801561075357600080fd5b5061036e610762366004612d9a565b6113d7565b34801561077357600080fd5b50610322610782366004613185565b61175d565b34801561079357600080fd5b506103446107a2366004612d9a565b60186020526000908152604090205460ff1681565b3480156107c357600080fd5b506103226107d23660046132f0565b611859565b3480156107e357600080fd5b5061041e601b5481565b3480156107f957600080fd5b5061032261080836600461334b565b6118ee565b34801561081957600080fd5b5061036e611902565b34801561082e57600080fd5b5061032261083d366004612db3565b61190f565b34801561084e57600080fd5b5061034461085d366004613380565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561089757600080fd5b5061041e61196b565b3480156108ac57600080fd5b5061041e601a5481565b6103226108c43660046133ae565b611a8c565b3480156108d557600080fd5b506103226108e436600461334b565b611b93565b3480156108f557600080fd5b50610322610904366004612ccf565b611ba7565b610911611c37565b601e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109de57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a2a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610a3f90613405565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6b90613405565b8015610ab85780601f10610a8d57610100808354040283529160200191610ab8565b820191906000526020600020905b815481529060010190602001808311610a9b57829003601f168201915b5050505050905090565b6000610acd82611c91565b506000908152600460205260409020546001600160a01b031690565b6000610af482610ffb565b9050806001600160a01b0316836001600160a01b031603610b825760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610bbc57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610c2e5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610b79565b610c388383611cf5565b505050565b60208054610c4a90613405565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7690613405565b8015610cc35780601f10610c9857610100808354040283529160200191610cc3565b820191906000526020600020905b815481529060010190602001808311610ca657829003601f168201915b505050505081565b610cd3611c37565b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610d173382611d7b565b610d895760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b79565b610c38838383611df9565b610d9c61203a565b601b548410610ded5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420746f6b656e207265717565737465640000000000000000006044820152606401610b79565b6000848152600260205260409020546001600160a01b031615610e525760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20616c7265616479206d696e7465642100000000000000000000006044820152606401610b79565b610e5e84848484612093565b610e686001600755565b50505050565b600a8160038110610e7e57600080fd5b018054909150610c4a90613405565b60098181548110610e9d57600080fd5b906000526020600020016000915090508054610c4a90613405565b60008181526018602052604081205460ff161515600103610ee157610a2a6104f0836001613487565b5090565b919050565b610ef261203a565b60175460405147916000916001600160a01b03909116907f000000000000000000000000000000000000000000000000000000000003345090849084818181858888f193505050503d8060008114610f66576040519150601f19603f3d011682016040523d82523d6000602084013e610f6b565b606091505b5050905080610fbc5760405162461bcd60e51b815260206004820152601360248201527f4574686572206e6f742077697468647261776e000000000000000000000000006044820152606401610b79565b5050610fc86001600755565b565b610c3883838360405180602001604052806000815250611342565b610fed611c37565b601192909255601255601355565b6000818152600260205260408120546001600160a01b031680610a2a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b79565b60006001600160a01b0382166110de5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b79565b506001600160a01b031660009081526003602052604090205490565b611102611c37565b610fc86000612326565b601d8054610c4a90613405565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506111a88686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508591506123909050565b9150505b949350505050565b606060018054610a3f90613405565b6111ce3383836123a6565b5050565b600d8160038110610e7e57600080fd5b601081815481106111f257600080fd5b906000526020600020906003020160009150905080600001805461121590613405565b80601f016020809104026020016040519081016040528092919081815260200182805461124190613405565b801561128e5780601f106112635761010080835404028352916020019161128e565b820191906000526020600020905b81548152906001019060200180831161127157829003601f168201915b5050505050908060010180546112a390613405565b80601f01602080910402602001604051908101604052809291908181526020018280546112cf90613405565b801561131c5780601f106112f15761010080835404028352916020019161131c565b820191906000526020600020905b8154815290600101906020018083116112ff57829003601f168201915b5050506002909301549192505060ff808216916101008104821691620100009091041685565b61134c3383611d7b565b6113be5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610b79565b610e6884848484612492565b601c8054610c4a90613405565b601e546060906001600160a01b03161561147557601e546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa15801561144d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a2a919081019061349a565b60006010838154811061148a5761148a613508565b90600052602060002090600302016040518060a00160405290816000820180546114b390613405565b80601f01602080910402602001604051908101604052809291908181526020018280546114df90613405565b801561152c5780601f106115015761010080835404028352916020019161152c565b820191906000526020600020905b81548152906001019060200180831161150f57829003601f168201915b5050505050815260200160018201805461154590613405565b80601f016020809104026020016040519081016040528092919081815260200182805461157190613405565b80156115be5780601f10611593576101008083540402835291602001916115be565b820191906000526020600020905b8154815290600101906020018083116115a157829003601f168201915b50505091835250506002919091015460ff80821660208085019190915261010083048216604080860191909152620100009093049091166060909301929092528051610160810190915261013f8082529293506000929091613bd99083013990506000611653601f8460000151602060405160200161163f939291906135c8565b60405160208183030381529060405261251b565b90506000836020015183601c611668896126d5565b60405160200161167b94939291906135fb565b60405160208183030381529060405290506000826009866040015160ff16815481106116a9576116a9613508565b90600052602060002001600a876060015160ff16600381106116cd576116cd613508565b01600d886080015160ff16600381106116e8576116e8613508565b01601d896000015160405160200161170596959493929190613718565b6040516020818303038152906040529050600061172e838360405160200161163f929190613904565b9050806040516020016117419190613933565b6040516020818303038152906040529650505050505050919050565b611765611c37565b60005b81518110156111ce57601082828151811061178557611785613508565b602090810291909101810151825460018101845560009384529190922082516003909202019081906117b790826139c6565b50602082015160018201906117cc90826139c6565b50604082015160029091018054606084015160809094015160ff90811662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff958216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909316919094161717929092161790558061185181613a86565b915050611768565b611861611c37565b6014805467ffffffffffffffff9687167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161768010000000000000000959096169490940294909417909255601555601655601780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909216919091179055565b6118f6611c37565b601d6111ce82826139c6565b601f8054610c4a90613405565b611917611c37565b600081815260186020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055601a80549161195c83613a86565b91905055506111ce8282612775565b6014546000908190600a9061198a9067ffffffffffffffff1642613aa0565b6119949190613ae2565b61199f90600a613af6565b6014549091506000906119cb9067ffffffffffffffff8082169168010000000000000000900416613b0d565b60145467ffffffffffffffff91821692506103b691164210156119f357505060155492915050565b818310611a0557505060165492915050565b601554611a128285613ae2565b1c600282611a208187613b35565b611a2a9084613af6565b611a349190613ae2565b611a3e9190613ae2565b611a489082613aa0565b601654909150811015611a615750506016549392505050565b611a7266038d7ea4c6800082613ae2565b611a839066038d7ea4c68000613af6565b95945050505050565b611a9461203a565b6103e8601a5410611ae75760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610b79565b6019546040517f323162290000000000000000000000000000000000000000000000000000000081526000913091633231622991611b2b9160040190815260200190565b602060405180830381865afa158015611b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6c9190613b49565b9050611b79816001613487565b601955611b8881858585612093565b50610c386001600755565b611b9b611c37565b601c6111ce82826139c6565b611baf611c37565b6001600160a01b038116611c2b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b79565b611c3481612326565b50565b6006546001600160a01b03163314610fc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b79565b6000818152600260205260409020546001600160a01b0316611c345760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b79565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190611d4282610ffb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d8783610ffb565b9050806001600160a01b0316846001600160a01b03161480611dce57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806111ac5750836001600160a01b0316611de784610ac2565b6001600160a01b031614949350505050565b826001600160a01b0316611e0c82610ffb565b6001600160a01b031614611e885760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b79565b6001600160a01b038216611f035760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b79565b826001600160a01b0316611f1682610ffb565b6001600160a01b031614611f925760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b79565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60026007540361208c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b79565b6002600755565b60145467ffffffffffffffff1642108015906120c7575060145468010000000000000000900467ffffffffffffffff164211155b6121135760405162461bcd60e51b815260206004820152600d60248201527f53616c6520696e616374697665000000000000000000000000000000000000006044820152606401610b79565b600061211d61196b565b9050821561224e576008546040517f9c395bc20000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384811660248301526000921690639c395bc290604401602060405180830381865afa15801561218f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b39190613b62565b90506000816121c257336121c4565b835b905060006121d6878784601354611119565b905060006121e8888885601154611119565b905060006121fa898986601254611119565b905081806122055750805b15612228576064612217876050613af6565b6122219190613ae2565b9550612248565b821561224857606461223b876055613af6565b6122459190613ae2565b95505b50505050505b8034101561229e5760405162461bcd60e51b815260206004820152601060248201527f4e6f7420656e6f756768206574686572000000000000000000000000000000006044820152606401610b79565b600085815260186020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055601a8054916122e383613a86565b91905055506122f23386612775565b604051859033907f52277f0b4a9b555c5aa96900a13546f972bda413737ec164aac947c87eec602490600090a35050505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261239d858461278f565b14949350505050565b816001600160a01b0316836001600160a01b0316036124075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b79565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61249d848484611df9565b6124a9848484846127dc565b610e685760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b79565b6060815160000361253a57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613d1860409139905060006003845160026125699190613487565b6125739190613ae2565b61257e906004613af6565b9050600061258d826020613487565b67ffffffffffffffff8111156125a5576125a5612fe5565b6040519080825280601f01601f1916602001820160405280156125cf576020820181803683370190505b509050818152600183018586518101602084015b8183101561263b576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016125e3565b600389510660018114612655576002811461269f576126c7565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526126c7565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b606060006126e28361297a565b600101905060008167ffffffffffffffff81111561270257612702612fe5565b6040519080825280601f01601f19166020018201604052801561272c576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461273657509392505050565b6111ce828260405180602001604052806000815250612a5c565b600081815b84518110156127d4576127c0828683815181106127b3576127b3613508565b6020026020010151612ae5565b9150806127cc81613a86565b915050612794565b509392505050565b60006001600160a01b0384163b15612972576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612839903390899088908890600401613b7f565b6020604051808303816000875af1925050508015612874575060408051601f3d908101601f1916820190925261287191810190613bbb565b60015b612927573d8080156128a2576040519150601f19603f3d011682016040523d82523d6000602084013e6128a7565b606091505b50805160000361291f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b79565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506111ac565b5060016111ac565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106129c3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106129ef576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612a0d57662386f26fc10000830492506010015b6305f5e1008310612a25576305f5e100830492506008015b6127108310612a3957612710830492506004015b60648310612a4b576064830492506002015b600a8310610a2a5760010192915050565b612a668383612b17565b612a7360008484846127dc565b610c385760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b79565b6000818310612b01576000828152602084905260409020612b10565b60008381526020839052604090205b9392505050565b6001600160a01b038216612b6d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b79565b6000818152600260205260409020546001600160a01b031615612bd25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b79565b6000818152600260205260409020546001600160a01b031615612c375760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b79565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0381168114611c3457600080fd5b600060208284031215612ce157600080fd5b8135612b1081612cba565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c3457600080fd5b600060208284031215612d2c57600080fd5b8135612b1081612cec565b60005b83811015612d52578181015183820152602001612d3a565b50506000910152565b60008151808452612d73816020860160208601612d37565b601f01601f19169290920160200192915050565b602081526000612b106020830184612d5b565b600060208284031215612dac57600080fd5b5035919050565b60008060408385031215612dc657600080fd5b8235612dd181612cba565b946020939093013593505050565b600080600060608486031215612df457600080fd5b8335612dff81612cba565b92506020840135612e0f81612cba565b929592945050506040919091013590565b60008083601f840112612e3257600080fd5b50813567ffffffffffffffff811115612e4a57600080fd5b6020830191508360208260051b8501011115612e6557600080fd5b9250929050565b60008060008060608587031215612e8257600080fd5b84359350602085013567ffffffffffffffff811115612ea057600080fd5b612eac87828801612e20565b9094509250506040850135612ec081612cba565b939692955090935050565b600080600060608486031215612ee057600080fd5b505081359360208301359350604090920135919050565b60008060008060608587031215612f0d57600080fd5b843567ffffffffffffffff811115612f2457600080fd5b612f3087828801612e20565b9095509350506020850135612f4481612cba565b9396929550929360400135925050565b8015158114611c3457600080fd5b60008060408385031215612f7557600080fd5b8235612f8081612cba565b91506020830135612f9081612f54565b809150509250929050565b60a081526000612fae60a0830188612d5b565b8281036020840152612fc08188612d5b565b60ff968716604085015294861660608401525050921660809092019190915292915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561303757613037612fe5565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561306657613066612fe5565b604052919050565b600067ffffffffffffffff82111561308857613088612fe5565b50601f01601f191660200190565b60006130a96130a48461306e565b61303d565b90508281528383830111156130bd57600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156130ea57600080fd5b84356130f581612cba565b9350602085013561310581612cba565b925060408501359150606085013567ffffffffffffffff81111561312857600080fd5b8501601f8101871361313957600080fd5b61314887823560208401613096565b91505092959194509250565b600082601f83011261316557600080fd5b612b1083833560208501613096565b803560ff81168114610ee557600080fd5b6000602080838503121561319857600080fd5b823567ffffffffffffffff808211156131b057600080fd5b818501915085601f8301126131c457600080fd5b8135818111156131d6576131d6612fe5565b8060051b6131e585820161303d565b91825283810185019185810190898411156131ff57600080fd5b86860192505b838310156132cb5782358581111561321d5760008081fd5b860160a0818c03601f19018113156132355760008081fd5b61323d613014565b898301358881111561324f5760008081fd5b61325d8e8c83870101613154565b825250604080840135898111156132745760008081fd5b6132828f8d83880101613154565b8c840152506060613294818601613174565b82840152608091506132a7828601613174565b908301526132b6848401613174565b90820152845250509186019190860190613205565b9998505050505050505050565b803567ffffffffffffffff81168114610ee557600080fd5b600080600080600060a0868803121561330857600080fd5b613311866132d8565b945061331f602087016132d8565b93506040860135925060608601359150608086013561333d81612cba565b809150509295509295909350565b60006020828403121561335d57600080fd5b813567ffffffffffffffff81111561337457600080fd5b6111ac84828501613154565b6000806040838503121561339357600080fd5b823561339e81612cba565b91506020830135612f9081612cba565b6000806000604084860312156133c357600080fd5b833567ffffffffffffffff8111156133da57600080fd5b6133e686828701612e20565b90945092505060208401356133fa81612cba565b809150509250925092565b600181811c9082168061341957607f821691505b602082108103613452577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610a2a57610a2a613458565b6000602082840312156134ac57600080fd5b815167ffffffffffffffff8111156134c357600080fd5b8201601f810184136134d457600080fd5b80516134e26130a48261306e565b8181528560208385010111156134f757600080fd5b611a83826020830160208601612d37565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815461354481613405565b6001828116801561355c576001811461358f576135be565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528215158302870194506135be565b8560005260208060002060005b858110156135b55781548a82015290840190820161359c565b50505082870194505b5050505092915050565b60006135d48286613537565b84516135e4818360208901612d37565b6135f081830186613537565b979650505050505050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000815260008551613633816009850160208a01612d37565b7f222c20226465736372697074696f6e223a220000000000000000000000000000600991840191820152855161367081601b840160208a01612d37565b7f222c2022696d616765223a2022697066733a2f2f000000000000000000000000601b92909101918201526136a8602f820186613537565b90507f2f00000000000000000000000000000000000000000000000000000000000000815283516136e0816001840160208801612d37565b7f2e706e67222c2000000000000000000000000000000000000000000000000000600192909101918201526008019695505050505050565b7f22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6c3b81527f6261736536342c00000000000000000000000000000000000000000000000000602082015260008751613776816027850160208c01612d37565b7f222c202261747472696275746573223a5b7b2274726169745f74797065223a226027918401918201527f436f6c6f72222c2276616c7565223a220000000000000000000000000000000060478201526137d36057820189613537565b90507f227d2c207b2274726169745f74797065223a22436f6d706c6578697479222c2081527f2276616c7565223a220000000000000000000000000000000000000000000000602082015261382b6029820188613537565b90507f227d2c207b2274726169745f74797065223a2022436f766572616765222c202281527f76616c7565223a2022000000000000000000000000000000000000000000000060208201526138836029820187613537565b90507f227d5d2c202265787465726e616c5f75726c223a20220000000000000000000081526138b56016820186613537565b905083516138c7818360208801612d37565b6138f68183017f227d000000000000000000000000000000000000000000000000000000000000815260020190565b9a9950505050505050505050565b60008351613916818460208801612d37565b83519083019061392a818360208801612d37565b01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161396b81601d850160208701612d37565b91909101601d0192915050565b601f821115610c3857600081815260208120601f850160051c8101602086101561399f5750805b601f850160051c820191505b818110156139be578281556001016139ab565b505050505050565b815167ffffffffffffffff8111156139e0576139e0612fe5565b6139f4816139ee8454613405565b84613978565b602080601f831160018114613a295760008415613a115750858301515b600019600386901b1c1916600185901b1785556139be565b600085815260208120601f198616915b82811015613a5857888601518255948401946001909101908401613a39565b5085821015613a765787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006000198203613a9957613a99613458565b5060010190565b81810381811115610a2a57610a2a613458565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613af157613af1613ab3565b500490565b8082028115828204841417610a2a57610a2a613458565b67ffffffffffffffff828116828216039080821115613b2e57613b2e613458565b5092915050565b600082613b4457613b44613ab3565b500690565b600060208284031215613b5b57600080fd5b5051919050565b600060208284031215613b7457600080fd5b8151612b1081612f54565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bb16080830184612d5b565b9695505050505050565b600060208284031215613bcd57600080fd5b8151612b1081612cec56fe5765622069732061206d6f6e756d656e7420746f207468652068797065726c696e6b2c206120706f656d2064656469636174656420746f206d616368696e65206c6561726e696e6720616e64206120636f6d707574657227732064c3a9726976652077697468696e20697473656c662e5c6e205c6e205468652070726f6a65637420697320612066756c6c79206f6e2d636861696e2067656e657261746976652063726f73732d6c696e6b6564206e6574776f726b206f662077656270616765732072656c656173656420696e20706172746e65727368697020776974682046696e6765727072696e74732044414f20616e64206973206120636f70726f64756374696f6e2077697468205375706572706f736974696f6e2e20426c6f636b636861696e20646576656c6f706d656e74206279204a616b6520416c6c656e2e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220aaa6a505ec70546f3074d8d372de9c18f40e701a3dfe8f012408cddc3414a91764736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.